@rulemetric/local 0.17.0 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,600 +33,600 @@ function yc(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
33
33
|
* @license MIT
|
|
34
34
|
*/var go="popstate";function kc(e={}){function t(r,o){let{pathname:s,search:a,hash:c}=r.location;return nr("",{pathname:s,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:jt(o)}return Rc(t,n,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sc(){return Math.random().toString(36).substring(2,10)}function vo(e,t){return{usr:e.state,key:e.key,idx:t}}function nr(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pt(t):t,state:n,key:t&&t.key||r||Sc()}}function jt({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function pt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Rc(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,c="POP",d=null,u=f();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function f(){return(a.state||{idx:null}).idx}function p(){c="POP";let v=f(),b=v==null?null:v-u;u=v,d&&d({action:c,location:m.location,delta:b})}function h(v,b){c="PUSH";let C=nr(m.location,v,b);u=f()+1;let w=vo(C,u),E=m.createHref(C);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}s&&d&&d({action:c,location:m.location,delta:1})}function g(v,b){c="REPLACE";let C=nr(m.location,v,b);u=f();let w=vo(C,u),E=m.createHref(C);a.replaceState(w,"",E),s&&d&&d({action:c,location:m.location,delta:0})}function x(v){return Tc(v)}let m={get action(){return c},get location(){return e(o,a)},listen(v){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(go,p),d=v,()=>{o.removeEventListener(go,p),d=null}},createHref(v){return t(o,v)},createURL:x,encodeLocation(v){let b=x(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:g,go(v){return a.go(v)}};return m}function Tc(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ae(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:jt(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function os(e,t,n="/"){return Mc(e,t,n,!1)}function Mc(e,t,n,r){let o=typeof t=="string"?pt(t):t,s=Fe(o.pathname||"/",n);if(s==null)return null;let a=ss(e);Pc(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let u=Uc(s);c=Fc(a[d],u,r)}return c}function ss(e,t=[],n=[],r="",o=!1){let s=(a,c,d=o,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:c,route:a};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&d)return;ae(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let p=De([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(ae(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ss(a.children,t,h,p,d)),!(a.path==null&&!a.index)&&t.push({path:p,score:Lc(p,a.index),routesMeta:h})};return e.forEach((a,c)=>{var d;if(a.path===""||!((d=a.path)!=null&&d.includes("?")))s(a,c);else for(let u of as(a.path))s(a,c,!0,u)}),t}function as(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=as(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Pc(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Dc(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var jc=/^:[\w-]+$/,Ac=3,Nc=2,_c=1,Ic=10,Oc=-2,yo=e=>e==="*";function Lc(e,t){let n=e.split("/"),r=n.length;return n.some(yo)&&(r+=Oc),t&&(r+=Nc),n.filter(o=>!yo(o)).reduce((o,s)=>o+(jc.test(s)?Ac:s===""?_c:Ic),r)}function Dc(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Fc(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],u=c===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=on({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},f),h=d.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=on({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},f)),!p)return null;Object.assign(o,p.params),a.push({params:o,pathname:De([s,p.pathname]),pathnameBase:Wc(De([s,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(s=De([s,p.pathnameBase]))}return a}function on(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$c(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:p},h)=>{if(f==="*"){let x=c[h]||"";a=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const g=c[h];return p&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function $c(e,t=!1,n=!0){xe(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Uc(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xe(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Hc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Bc(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?pt(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=xo(n.substring(1),"/"):s=xo(n,t)):s=t,{pathname:s,search:Vc(r),hash:Gc(o)}}function xo(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Un(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wr(e){let t=zc(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Cr(e,t,n,r=!1){let o;typeof e=="string"?o=pt(e):(o={...e},ae(!o.pathname||!o.pathname.includes("?"),Un("?","pathname","search",o)),ae(!o.pathname||!o.pathname.includes("#"),Un("#","pathname","hash",o)),ae(!o.search||!o.search.includes("#"),Un("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,c;if(a==null)c=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}c=p>=0?t[p]:"/"}let d=Bc(o,c),u=a&&a!=="/"&&a.endsWith("/"),f=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||f)&&(d.pathname+="/"),d}var De=e=>e.join("/").replace(/\/\/+/g,"/"),Wc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vc=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gc=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qc=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Kc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Yc(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var is=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cs(e,t){let n=e;if(typeof n!="string"||!Hc.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(is)try{let s=new URL(window.location.href),a=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=Fe(a.pathname,t);a.origin===s.origin&&c!=null?n=c+a.search+a.hash:o=!0}catch{xe(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ls=["POST","PUT","PATCH","DELETE"];new Set(ls);var Xc=["GET",...ls];new Set(Xc);var ht=l.createContext(null);ht.displayName="DataRouter";var hn=l.createContext(null);hn.displayName="DataRouterState";var Zc=l.createContext(!1),us=l.createContext({isTransitioning:!1});us.displayName="ViewTransition";var Jc=l.createContext(new Map);Jc.displayName="Fetchers";var Qc=l.createContext(null);Qc.displayName="Await";var me=l.createContext(null);me.displayName="Navigation";var Ot=l.createContext(null);Ot.displayName="Location";var be=l.createContext({outlet:null,matches:[],isDataRoute:!1});be.displayName="Route";var Er=l.createContext(null);Er.displayName="RouteError";var ds="REACT_ROUTER_ERROR",el="REDIRECT",tl="ROUTE_ERROR_RESPONSE";function nl(e){if(e.startsWith(`${ds}:${el}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function rl(e){if(e.startsWith(`${ds}:${tl}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qc(t.status,t.statusText,t.data)}catch{}}function ol(e,{relative:t}={}){ae(mt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=l.useContext(me),{hash:o,pathname:s,search:a}=Lt(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:De([n,s])),r.createHref({pathname:c,search:a,hash:o})}function mt(){return l.useContext(Ot)!=null}function He(){return ae(mt(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(Ot).location}var fs="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ps(e){l.useContext(me).static||l.useLayoutEffect(e)}function kr(){let{isDataRoute:e}=l.useContext(be);return e?xl():sl()}function sl(){ae(mt(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(ht),{basename:t,navigator:n}=l.useContext(me),{matches:r}=l.useContext(be),{pathname:o}=He(),s=JSON.stringify(wr(r)),a=l.useRef(!1);return ps(()=>{a.current=!0}),l.useCallback((d,u={})=>{if(xe(a.current,fs),!a.current)return;if(typeof d=="number"){n.go(d);return}let f=Cr(d,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:De([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,s,o,e])}var al=l.createContext(null);function il(e){let t=l.useContext(be).outlet;return l.useMemo(()=>t&&l.createElement(al.Provider,{value:e},t),[t,e])}function Ig(){let{matches:e}=l.useContext(be),t=e[e.length-1];return t?t.params:{}}function Lt(e,{relative:t}={}){let{matches:n}=l.useContext(be),{pathname:r}=He(),o=JSON.stringify(wr(n));return l.useMemo(()=>Cr(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function cl(e,t){return hs(e,t)}function hs(e,t,n,r,o){var C;ae(mt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=l.useContext(me),{matches:a}=l.useContext(be),c=a[a.length-1],d=c?c.params:{},u=c?c.pathname:"/",f=c?c.pathnameBase:"/",p=c&&c.route;{let w=p&&p.path||"";gs(u,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
35
35
|
|
|
36
|
-
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=He(),g;if(t){let w=typeof t=="string"?pt(t):t;ae(f==="/"||((C=w.pathname)==null?void 0:C.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=h;let x=g.pathname||"/",m=x;if(f!=="/"){let w=f.replace(/^\//,"").split("/");m="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=os(e,{pathname:m});xe(p||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),xe(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=pl(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},d,w.params),pathname:De([f,s.encodeLocation?s.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:De([f,s.encodeLocation?s.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?l.createElement(Ot.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},b):b}function ll(){let e=yl(),t=Kc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:s},"ErrorBoundary")," or"," ",l.createElement("code",{style:s},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,a)}var ul=l.createElement(ll,null),ms=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=rl(e.digest);n&&(e=n)}let t=e!==void 0?l.createElement(be.Provider,{value:this.props.routeContext},l.createElement(Er.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(dl,{error:e},t):t}};ms.contextType=Zc;var Hn=new WeakMap;function dl({children:e,error:t}){let{basename:n}=l.useContext(me);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=nl(t.digest);if(r){let o=Hn.get(t);if(o)throw o;let s=cs(r.location,n);if(is&&!Hn.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Hn.set(t,a),a}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function fl({routeContext:e,match:t,children:n}){let r=l.useContext(ht);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(be.Provider,{value:e},n)}function pl(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=n==null?void 0:n.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);ae(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let c=!1,d=-1;if(n)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:h,errors:g}=n,x=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!g||g[p.route.id]===void 0);if(p.route.lazy||x){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let u=n&&r?(f,p)=>{var h,g;r(f,{location:n.location,params:((g=(h=n.matches)==null?void 0:h[0])==null?void 0:g.params)??{},unstable_pattern:Yc(n.matches),errorInfo:p})}:void 0;return s.reduceRight((f,p,h)=>{let g,x=!1,m=null,v=null;n&&(g=a&&p.route.id?a[p.route.id]:void 0,m=p.route.errorElement||ul,c&&(d<0&&h===0?(gs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,v=null):d===h&&(x=!0,v=p.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),C=()=>{let w;return g?w=m:x?w=v:p.route.Component?w=l.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=f,l.createElement(fl,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?l.createElement(ms,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:C(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):C()},null)}function Sr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hl(e){let t=l.useContext(ht);return ae(t,Sr(e)),t}function ml(e){let t=l.useContext(hn);return ae(t,Sr(e)),t}function gl(e){let t=l.useContext(be);return ae(t,Sr(e)),t}function Rr(e){let t=gl(e),n=t.matches[t.matches.length-1];return ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function vl(){return Rr("useRouteId")}function yl(){var r;let e=l.useContext(Er),t=ml("useRouteError"),n=Rr("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function xl(){let{router:e}=hl("useNavigate"),t=Rr("useNavigate"),n=l.useRef(!1);return ps(()=>{n.current=!0}),l.useCallback(async(o,s={})=>{xe(n.current,fs),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var bo={};function gs(e,t,n){!t&&!bo[e]&&(bo[e]=!0,xe(!1,n))}l.memo(bl);function bl({routes:e,future:t,state:n,onError:r}){return hs(e,void 0,n,r,t)}function Og({to:e,replace:t,state:n,relative:r}){ae(mt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=l.useContext(me);xe(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=l.useContext(be),{pathname:a}=He(),c=kr(),d=Cr(e,wr(s),a,r==="path"),u=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Lg(e){return il(e.context)}function wl(e){ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Cl({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1,unstable_useTransitions:a}){ae(!mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:c,navigator:o,static:s,unstable_useTransitions:a,future:{}}),[c,o,s,a]);typeof n=="string"&&(n=pt(n));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:g="default"}=n,x=l.useMemo(()=>{let m=Fe(u,c);return m==null?null:{location:{pathname:m,search:f,hash:p,state:h,key:g},navigationType:r}},[c,u,f,p,h,g,r]);return xe(x!=null,`<Router basename="${c}"> is not able to match the URL "${u}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:l.createElement(me.Provider,{value:d},l.createElement(Ot.Provider,{children:t,value:x}))}function Dg({children:e,location:t}){return cl(rr(e),t)}function rr(e,t=[]){let n=[];return l.Children.forEach(e,(r,o)=>{if(!l.isValidElement(r))return;let s=[...t,o];if(r.type===l.Fragment){n.push.apply(n,rr(r.props.children,s));return}ae(r.type===wl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rr(r.props.children,s)),n.push(a)}),n}var Qt="get",en="application/x-www-form-urlencoded";function mn(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function El(e){return mn(e)&&e.tagName.toLowerCase()==="button"}function kl(e){return mn(e)&&e.tagName.toLowerCase()==="form"}function Sl(e){return mn(e)&&e.tagName.toLowerCase()==="input"}function Rl(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tl(e,t){return e.button===0&&(!t||t==="_self")&&!Rl(e)}function or(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Ml(e,t){let n=or(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Gt=null;function Pl(){if(Gt===null)try{new FormData(document.createElement("form"),0),Gt=!1}catch{Gt=!0}return Gt}var jl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bn(e){return e!=null&&!jl.has(e)?(xe(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${en}"`),null):e}function Al(e,t){let n,r,o,s,a;if(kl(e)){let c=e.getAttribute("action");r=c?Fe(c,t):null,n=e.getAttribute("method")||Qt,o=Bn(e.getAttribute("enctype"))||en,s=new FormData(e)}else if(El(e)||Sl(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Fe(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Qt,o=Bn(e.getAttribute("formenctype"))||Bn(c.getAttribute("enctype"))||en,s=new FormData(c,e),!Pl()){let{name:u,type:f,value:p}=e;if(f==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,p)}}else{if(mn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qt,r=null,o=en,a=e}return s&&o==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nl(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Fe(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function _l(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Il(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ol(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let a=await _l(s,n);return a.links?a.links():[]}return[]}));return $l(r.flat(1).filter(Il).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function wo(e,t,n,r,o,s){let a=(d,u)=>n[u]?d.route.id!==n[u].route.id:!0,c=(d,u)=>{var f;return n[u].pathname!==d.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,u)=>a(d,u)||c(d,u)):s==="data"?t.filter((d,u)=>{var p;let f=r.routes[d.route.id];if(!f||!f.hasLoader)return!1;if(a(d,u)||c(d,u))return!0;if(d.route.shouldRevalidate){let h=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Ll(e,t,{includeHydrateFallback:n}={}){return Dl(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function Dl(e){return[...new Set(e)]}function Fl(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $l(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(Fl(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function vs(){let e=l.useContext(ht);return Tr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ul(){let e=l.useContext(hn);return Tr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mr=l.createContext(void 0);Mr.displayName="FrameworkContext";function ys(){let e=l.useContext(Mr);return Tr(e,"You must render this element inside a <HydratedRouter> element"),e}function Hl(e,t){let n=l.useContext(Mr),[r,o]=l.useState(!1),[s,a]=l.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:u,onMouseLeave:f,onTouchStart:p}=t,h=l.useRef(null);l.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(C=>{a(C.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),l.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let g=()=>{o(!0)},x=()=>{o(!1),a(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:St(c,g),onBlur:St(d,x),onMouseEnter:St(u,g),onMouseLeave:St(f,x),onTouchStart:St(p,g)}]:[!1,h,{}]}function St(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bl({page:e,...t}){let{router:n}=vs(),r=l.useMemo(()=>os(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(Wl,{page:e,matches:r,...t}):null}function zl(e){let{manifest:t,routeModules:n}=ys(),[r,o]=l.useState([]);return l.useEffect(()=>{let s=!1;return Ol(e,t,n).then(a=>{s||o(a)}),()=>{s=!0}},[e,t,n]),r}function Wl({page:e,matches:t,...n}){let r=He(),{future:o,manifest:s,routeModules:a}=ys(),{basename:c}=vs(),{loaderData:d,matches:u}=Ul(),f=l.useMemo(()=>wo(e,t,u,s,r,"data"),[e,t,u,s,r]),p=l.useMemo(()=>wo(e,t,u,s,r,"assets"),[e,t,u,s,r]),h=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,v=!1;if(t.forEach(C=>{var E;let w=s.routes[C.route.id];!w||!w.hasLoader||(!f.some(S=>S.route.id===C.route.id)&&C.route.id in d&&((E=a[C.route.id])!=null&&E.shouldRevalidate)||w.hasClientLoader?v=!0:m.add(C.route.id))}),m.size===0)return[];let b=Nl(e,c,o.unstable_trailingSlashAwareDataRequests,"data");return v&&m.size>0&&b.searchParams.set("_routes",t.filter(C=>m.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[c,o.unstable_trailingSlashAwareDataRequests,d,r,s,f,t,e,a]),g=l.useMemo(()=>Ll(p,s),[p,s]),x=zl(p);return l.createElement(l.Fragment,null,h.map(m=>l.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),g.map(m=>l.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),x.map(({key:m,link:v})=>l.createElement("link",{key:m,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function Vl(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Gl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gl&&(window.__reactRouterVersion="7.13.0")}catch{}function Fg({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=l.useRef();o.current==null&&(o.current=kc({window:r,v5Compat:!0}));let s=o.current,[a,c]=l.useState({action:s.action,location:s.location}),d=l.useCallback(u=>{n===!1?c(u):l.startTransition(()=>c(u))},[n]);return l.useLayoutEffect(()=>s.listen(d),[s,d]),l.createElement(Cl,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s,unstable_useTransitions:n})}var xs=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=l.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:a,state:c,target:d,to:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x){let{basename:m,unstable_useTransitions:v}=l.useContext(me),b=typeof u=="string"&&xs.test(u),C=cs(u,m);u=C.to;let w=ol(u,{relative:o}),[E,S,M]=Hl(r,g),k=Xl(u,{replace:a,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:v});function A(F){t&&t(F),F.defaultPrevented||k(F)}let D=l.createElement("a",{...g,...M,href:C.absoluteURL||w,onClick:C.isExternal||s?t:A,ref:Vl(x,S),target:d,"data-discover":!b&&n==="render"?"true":void 0});return E&&!b?l.createElement(l.Fragment,null,D,l.createElement(Bl,{page:w})):D});gn.displayName="Link";var ql=l.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:a,viewTransition:c,children:d,...u},f){let p=Lt(a,{relative:u.relative}),h=He(),g=l.useContext(hn),{navigator:x,basename:m}=l.useContext(me),v=g!=null&&nu(p)&&c===!0,b=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,C=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(C=C.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=Fe(w,m)||w);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let S=C===b||!o&&C.startsWith(b)&&C.charAt(E)==="/",M=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),k={isActive:S,isPending:M,isTransitioning:v},A=S?t:void 0,D;typeof r=="function"?D=r(k):D=[r,S?"active":null,M?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(k):s;return l.createElement(gn,{...u,"aria-current":A,className:D,ref:f,style:F,to:a,viewTransition:c},typeof d=="function"?d(k):d)});ql.displayName="NavLink";var Kl=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:a=Qt,action:c,onSubmit:d,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x)=>{let{unstable_useTransitions:m}=l.useContext(me),v=eu(),b=tu(c,{relative:u}),C=a.toLowerCase()==="get"?"get":"post",w=typeof c=="string"&&xs.test(c),E=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let M=S.nativeEvent.submitter,k=(M==null?void 0:M.getAttribute("formmethod"))||a,A=()=>v(M||S.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:s,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});m&&n!==!1?l.startTransition(()=>A()):A()};return l.createElement("form",{ref:x,method:C,action:b,onSubmit:r?d:E,...g,"data-discover":!w&&e==="render"?"true":void 0})});Kl.displayName="Form";function Yl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bs(e){let t=l.useContext(ht);return ae(t,Yl(e)),t}function Xl(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c,unstable_useTransitions:d}={}){let u=kr(),f=He(),p=Lt(e,{relative:s});return l.useCallback(h=>{if(Tl(h,t)){h.preventDefault();let g=n!==void 0?n:jt(f)===jt(p),x=()=>u(e,{replace:g,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c});d?l.startTransition(()=>x()):x()}},[f,u,p,n,r,t,e,o,s,a,c,d])}function Zl(e){xe(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(or(e)),n=l.useRef(!1),r=He(),o=l.useMemo(()=>Ml(r.search,n.current?null:t.current),[r.search]),s=kr(),a=l.useCallback((c,d)=>{const u=or(typeof c=="function"?c(new URLSearchParams(o)):c);n.current=!0,s("?"+u,d)},[s,o]);return[o,a]}var Jl=0,Ql=()=>`__${String(++Jl)}__`;function eu(){let{router:e}=bs("useSubmit"),{basename:t}=l.useContext(me),n=vl(),r=e.fetch,o=e.navigate;return l.useCallback(async(s,a={})=>{let{action:c,method:d,encType:u,formData:f,body:p}=Al(s,t);if(a.navigate===!1){let h=a.fetcherKey||Ql();await r(h,n,a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function tu(e,{relative:t}={}){let{basename:n}=l.useContext(me),r=l.useContext(be);ae(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...Lt(e||".",{relative:t})},a=He();if(e==null){s.search=a.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(f=>f==="")){c.delete("index"),d.filter(p=>p).forEach(p=>c.append("index",p));let f=c.toString();s.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:De([n,s.pathname])),jt(s)}function nu(e,{relative:t}={}){let n=l.useContext(us);ae(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bs("useViewTransitionState"),o=Lt(e,{relative:t});if(!n.isTransitioning)return!1;let s=Fe(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Fe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return on(o.pathname,a)!=null||on(o.pathname,s)!=null}/**
|
|
36
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=He(),g;if(t){let w=typeof t=="string"?pt(t):t;ae(f==="/"||((C=w.pathname)==null?void 0:C.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=h;let x=g.pathname||"/",m=x;if(f!=="/"){let w=f.replace(/^\//,"").split("/");m="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=os(e,{pathname:m});xe(p||v!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),xe(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=pl(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},d,w.params),pathname:De([f,s.encodeLocation?s.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:De([f,s.encodeLocation?s.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?l.createElement(Ot.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},b):b}function ll(){let e=yl(),t=Kc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:s},"ErrorBoundary")," or"," ",l.createElement("code",{style:s},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,a)}var ul=l.createElement(ll,null),ms=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=rl(e.digest);n&&(e=n)}let t=e!==void 0?l.createElement(be.Provider,{value:this.props.routeContext},l.createElement(Er.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(dl,{error:e},t):t}};ms.contextType=Zc;var Hn=new WeakMap;function dl({children:e,error:t}){let{basename:n}=l.useContext(me);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=nl(t.digest);if(r){let o=Hn.get(t);if(o)throw o;let s=cs(r.location,n);if(is&&!Hn.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Hn.set(t,a),a}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function fl({routeContext:e,match:t,children:n}){let r=l.useContext(ht);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(be.Provider,{value:e},n)}function pl(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=n==null?void 0:n.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);ae(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let c=!1,d=-1;if(n)for(let f=0;f<s.length;f++){let p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:h,errors:g}=n,x=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!g||g[p.route.id]===void 0);if(p.route.lazy||x){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let u=n&&r?(f,p)=>{var h,g;r(f,{location:n.location,params:((g=(h=n.matches)==null?void 0:h[0])==null?void 0:g.params)??{},unstable_pattern:Yc(n.matches),errorInfo:p})}:void 0;return s.reduceRight((f,p,h)=>{let g,x=!1,m=null,v=null;n&&(g=a&&p.route.id?a[p.route.id]:void 0,m=p.route.errorElement||ul,c&&(d<0&&h===0?(gs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,v=null):d===h&&(x=!0,v=p.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),C=()=>{let w;return g?w=m:x?w=v:p.route.Component?w=l.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=f,l.createElement(fl,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?l.createElement(ms,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:C(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):C()},null)}function Sr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hl(e){let t=l.useContext(ht);return ae(t,Sr(e)),t}function ml(e){let t=l.useContext(hn);return ae(t,Sr(e)),t}function gl(e){let t=l.useContext(be);return ae(t,Sr(e)),t}function Rr(e){let t=gl(e),n=t.matches[t.matches.length-1];return ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function vl(){return Rr("useRouteId")}function yl(){var r;let e=l.useContext(Er),t=ml("useRouteError"),n=Rr("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function xl(){let{router:e}=hl("useNavigate"),t=Rr("useNavigate"),n=l.useRef(!1);return ps(()=>{n.current=!0}),l.useCallback(async(o,s={})=>{xe(n.current,fs),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var bo={};function gs(e,t,n){!t&&!bo[e]&&(bo[e]=!0,xe(!1,n))}l.memo(bl);function bl({routes:e,future:t,state:n,onError:r}){return hs(e,void 0,n,r,t)}function Og({to:e,replace:t,state:n,relative:r}){ae(mt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=l.useContext(me);xe(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=l.useContext(be),{pathname:a}=He(),c=kr(),d=Cr(e,wr(s),a,r==="path"),u=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Lg(e){return il(e.context)}function wl(e){ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Cl({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1,unstable_useTransitions:a}){ae(!mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:c,navigator:o,static:s,unstable_useTransitions:a,future:{}}),[c,o,s,a]);typeof n=="string"&&(n=pt(n));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:g="default"}=n,x=l.useMemo(()=>{let m=Fe(u,c);return m==null?null:{location:{pathname:m,search:f,hash:p,state:h,key:g},navigationType:r}},[c,u,f,p,h,g,r]);return xe(x!=null,`<Router basename="${c}"> is not able to match the URL "${u}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:l.createElement(me.Provider,{value:d},l.createElement(Ot.Provider,{children:t,value:x}))}function Dg({children:e,location:t}){return cl(rr(e),t)}function rr(e,t=[]){let n=[];return l.Children.forEach(e,(r,o)=>{if(!l.isValidElement(r))return;let s=[...t,o];if(r.type===l.Fragment){n.push.apply(n,rr(r.props.children,s));return}ae(r.type===wl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rr(r.props.children,s)),n.push(a)}),n}var Qt="get",en="application/x-www-form-urlencoded";function mn(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function El(e){return mn(e)&&e.tagName.toLowerCase()==="button"}function kl(e){return mn(e)&&e.tagName.toLowerCase()==="form"}function Sl(e){return mn(e)&&e.tagName.toLowerCase()==="input"}function Rl(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tl(e,t){return e.button===0&&(!t||t==="_self")&&!Rl(e)}function or(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Ml(e,t){let n=or(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Gt=null;function Pl(){if(Gt===null)try{new FormData(document.createElement("form"),0),Gt=!1}catch{Gt=!0}return Gt}var jl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bn(e){return e!=null&&!jl.has(e)?(xe(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${en}"`),null):e}function Al(e,t){let n,r,o,s,a;if(kl(e)){let c=e.getAttribute("action");r=c?Fe(c,t):null,n=e.getAttribute("method")||Qt,o=Bn(e.getAttribute("enctype"))||en,s=new FormData(e)}else if(El(e)||Sl(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Fe(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Qt,o=Bn(e.getAttribute("formenctype"))||Bn(c.getAttribute("enctype"))||en,s=new FormData(c,e),!Pl()){let{name:u,type:f,value:p}=e;if(f==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,p)}}else{if(mn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qt,r=null,o=en,a=e}return s&&o==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nl(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Fe(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function _l(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Il(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ol(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let a=await _l(s,n);return a.links?a.links():[]}return[]}));return $l(r.flat(1).filter(Il).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function wo(e,t,n,r,o,s){let a=(d,u)=>n[u]?d.route.id!==n[u].route.id:!0,c=(d,u)=>{var f;return n[u].pathname!==d.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,u)=>a(d,u)||c(d,u)):s==="data"?t.filter((d,u)=>{var p;let f=r.routes[d.route.id];if(!f||!f.hasLoader)return!1;if(a(d,u)||c(d,u))return!0;if(d.route.shouldRevalidate){let h=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Ll(e,t,{includeHydrateFallback:n}={}){return Dl(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function Dl(e){return[...new Set(e)]}function Fl(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $l(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(Fl(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function vs(){let e=l.useContext(ht);return Tr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ul(){let e=l.useContext(hn);return Tr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mr=l.createContext(void 0);Mr.displayName="FrameworkContext";function ys(){let e=l.useContext(Mr);return Tr(e,"You must render this element inside a <HydratedRouter> element"),e}function Hl(e,t){let n=l.useContext(Mr),[r,o]=l.useState(!1),[s,a]=l.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:u,onMouseLeave:f,onTouchStart:p}=t,h=l.useRef(null);l.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(C=>{a(C.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),l.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let g=()=>{o(!0)},x=()=>{o(!1),a(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:St(c,g),onBlur:St(d,x),onMouseEnter:St(u,g),onMouseLeave:St(f,x),onTouchStart:St(p,g)}]:[!1,h,{}]}function St(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bl({page:e,...t}){let{router:n}=vs(),r=l.useMemo(()=>os(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(Wl,{page:e,matches:r,...t}):null}function zl(e){let{manifest:t,routeModules:n}=ys(),[r,o]=l.useState([]);return l.useEffect(()=>{let s=!1;return Ol(e,t,n).then(a=>{s||o(a)}),()=>{s=!0}},[e,t,n]),r}function Wl({page:e,matches:t,...n}){let r=He(),{future:o,manifest:s,routeModules:a}=ys(),{basename:c}=vs(),{loaderData:d,matches:u}=Ul(),f=l.useMemo(()=>wo(e,t,u,s,r,"data"),[e,t,u,s,r]),p=l.useMemo(()=>wo(e,t,u,s,r,"assets"),[e,t,u,s,r]),h=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,v=!1;if(t.forEach(C=>{var E;let w=s.routes[C.route.id];!w||!w.hasLoader||(!f.some(S=>S.route.id===C.route.id)&&C.route.id in d&&((E=a[C.route.id])!=null&&E.shouldRevalidate)||w.hasClientLoader?v=!0:m.add(C.route.id))}),m.size===0)return[];let b=Nl(e,c,o.unstable_trailingSlashAwareDataRequests,"data");return v&&m.size>0&&b.searchParams.set("_routes",t.filter(C=>m.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[c,o.unstable_trailingSlashAwareDataRequests,d,r,s,f,t,e,a]),g=l.useMemo(()=>Ll(p,s),[p,s]),x=zl(p);return l.createElement(l.Fragment,null,h.map(m=>l.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),g.map(m=>l.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),x.map(({key:m,link:v})=>l.createElement("link",{key:m,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function Vl(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Gl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gl&&(window.__reactRouterVersion="7.13.0")}catch{}function Fg({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=l.useRef();o.current==null&&(o.current=kc({window:r,v5Compat:!0}));let s=o.current,[a,c]=l.useState({action:s.action,location:s.location}),d=l.useCallback(u=>{n===!1?c(u):l.startTransition(()=>c(u))},[n]);return l.useLayoutEffect(()=>s.listen(d),[s,d]),l.createElement(Cl,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s,unstable_useTransitions:n})}var xs=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=l.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:a,state:c,target:d,to:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x){let{basename:m,unstable_useTransitions:v}=l.useContext(me),b=typeof u=="string"&&xs.test(u),C=cs(u,m);u=C.to;let w=ol(u,{relative:o}),[E,S,M]=Hl(r,g),k=Xl(u,{replace:a,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:v});function A(F){t&&t(F),F.defaultPrevented||k(F)}let D=l.createElement("a",{...g,...M,href:C.absoluteURL||w,onClick:C.isExternal||s?t:A,ref:Vl(x,S),target:d,"data-discover":!b&&n==="render"?"true":void 0});return E&&!b?l.createElement(l.Fragment,null,D,l.createElement(Bl,{page:w})):D});gn.displayName="Link";var ql=l.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:a,viewTransition:c,children:d,...u},f){let p=Lt(a,{relative:u.relative}),h=He(),g=l.useContext(hn),{navigator:x,basename:m}=l.useContext(me),v=g!=null&&nu(p)&&c===!0,b=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,C=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(C=C.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=Fe(w,m)||w);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let S=C===b||!o&&C.startsWith(b)&&C.charAt(E)==="/",M=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),k={isActive:S,isPending:M,isTransitioning:v},A=S?t:void 0,D;typeof r=="function"?D=r(k):D=[r,S?"active":null,M?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(k):s;return l.createElement(gn,{...u,"aria-current":A,className:D,ref:f,style:F,to:a,viewTransition:c},typeof d=="function"?d(k):d)});ql.displayName="NavLink";var Kl=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:a=Qt,action:c,onSubmit:d,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},x)=>{let{unstable_useTransitions:m}=l.useContext(me),v=eu(),b=tu(c,{relative:u}),C=a.toLowerCase()==="get"?"get":"post",w=typeof c=="string"&&xs.test(c),E=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let M=S.nativeEvent.submitter,k=(M==null?void 0:M.getAttribute("formmethod"))||a,A=()=>v(M||S.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:s,relative:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});m&&n!==!1?l.startTransition(()=>A()):A()};return l.createElement("form",{ref:x,method:C,action:b,onSubmit:r?d:E,...g,"data-discover":!w&&e==="render"?"true":void 0})});Kl.displayName="Form";function Yl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bs(e){let t=l.useContext(ht);return ae(t,Yl(e)),t}function Xl(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c,unstable_useTransitions:d}={}){let u=kr(),f=He(),p=Lt(e,{relative:s});return l.useCallback(h=>{if(Tl(h,t)){h.preventDefault();let g=n!==void 0?n:jt(f)===jt(p),x=()=>u(e,{replace:g,state:r,preventScrollReset:o,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:c});d?l.startTransition(()=>x()):x()}},[f,u,p,n,r,t,e,o,s,a,c,d])}function Zl(e){xe(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(or(e)),n=l.useRef(!1),r=He(),o=l.useMemo(()=>Ml(r.search,n.current?null:t.current),[r.search]),s=kr(),a=l.useCallback((c,d)=>{const u=or(typeof c=="function"?c(new URLSearchParams(o)):c);n.current=!0,s("?"+u,d)},[s,o]);return[o,a]}var Jl=0,Ql=()=>`__${String(++Jl)}__`;function eu(){let{router:e}=bs("useSubmit"),{basename:t}=l.useContext(me),n=vl(),r=e.fetch,o=e.navigate;return l.useCallback(async(s,a={})=>{let{action:c,method:d,encType:u,formData:f,body:p}=Al(s,t);if(a.navigate===!1){let h=a.fetcherKey||Ql();await r(h,n,a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||c,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||d,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function tu(e,{relative:t}={}){let{basename:n}=l.useContext(me),r=l.useContext(be);ae(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...Lt(e||".",{relative:t})},a=He();if(e==null){s.search=a.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(f=>f==="")){c.delete("index"),d.filter(p=>p).forEach(p=>c.append("index",p));let f=c.toString();s.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:De([n,s.pathname])),jt(s)}function nu(e,{relative:t}={}){let n=l.useContext(us);ae(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bs("useViewTransitionState"),o=Lt(e,{relative:t});if(!n.isTransitioning)return!1;let s=Fe(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Fe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return on(o.pathname,a)!=null||on(o.pathname,s)!=null}var je=function(){return je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},je.apply(this,arguments)};function ws(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 $g(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function c(f){try{u(r.next(f))}catch(p){a(p)}}function d(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?s(f.value):o(f.value).then(c,d)}u((r=r.apply(e,t||[])).next())})}function ru(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Cs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Cs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Es(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Cs(e))&&(r&&(r+=" "),r+=t);return r}const Co=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eo=Es,Pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Eo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=s==null?void 0:s[u];if(f===null)return null;const h=Co(f)||Co(p);return o[u][h]}),c=n&&Object.entries(n).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(x=>{let[m,v]=x;return Array.isArray(v)?v.includes({...s,...c}[m]):{...s,...c}[m]===v})?[...u,p,h]:u},[]);return Eo(e,a,d,n==null?void 0:n.class,n==null?void 0:n.className)};var Dt=Ec();const ou=ns(Dt);function ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ko(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ko(e[o],null)}}}}function ne(...e){return l.useCallback(vn(...e),e)}function Xe(e){const t=su(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,c=l.Children.toArray(s),d=c.find(iu);if(d){const u=d.props.children,f=c.map(p=>p===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return i.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var ks=Xe("Slot");function su(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=lu(o),c=cu(s,o.props);return o.type!==l.Fragment&&(c.ref=r?vn(r,a):a),l.cloneElement(o,c)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ss=Symbol("radix.slottable");function au(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ss,t}function iu(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ss}function cu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function lu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=uu.reduce((e,t)=>{const n=Xe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rs(e,t){e&&Dt.flushSync(()=>e.dispatchEvent(t))}var Ts=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),du="VisuallyHidden",Ms=l.forwardRef((e,t)=>i.jsx(z.span,{...e,ref:t,style:{...Ts,...e.style}}));Ms.displayName=du;var fu=Ms;function pu(e,t){const n=l.createContext(t),r=s=>{const{children:a,...c}=s,d=l.useMemo(()=>c,Object.values(c));return i.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ie(e,t=[]){let n=[];function r(s,a){const c=l.createContext(a),d=n.length;n=[...n,a];const u=p=>{var b;const{scope:h,children:g,...x}=p,m=((b=h==null?void 0:h[e])==null?void 0:b[d])||c,v=l.useMemo(()=>x,Object.values(x));return i.jsx(m.Provider,{value:v,children:g})};u.displayName=s+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[d])||c,x=l.useContext(g);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,hu(o,...t)]}function hu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const p=d(s)[`__scope${u}`];return{...c,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function jr(e){const t=e+"CollectionProvider",[n,r]=Ie(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:v,children:b}=m,C=We.useRef(null),w=We.useRef(new Map).current;return i.jsx(o,{scope:v,itemMap:w,collectionRef:C,children:b})};a.displayName=t;const c=e+"CollectionSlot",d=Xe(c),u=We.forwardRef((m,v)=>{const{scope:b,children:C}=m,w=s(c,b),E=ne(v,w.collectionRef);return i.jsx(d,{ref:E,children:C})});u.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=Xe(f),g=We.forwardRef((m,v)=>{const{scope:b,children:C,...w}=m,E=We.useRef(null),S=ne(v,E),M=s(f,b);return We.useEffect(()=>(M.itemMap.set(E,{ref:E,...w}),()=>void M.itemMap.delete(E))),i.jsx(h,{[p]:"",ref:S,children:C})});g.displayName=f;function x(m){const v=s(e+"CollectionConsumer",m);return We.useCallback(()=>{const C=v.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((M,k)=>w.indexOf(M.ref.current)-w.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},x,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},mu=rs[" useInsertionEffect ".trim().toString()]||ie;function Ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=gu({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const u=l.useCallback(f=>{var p;if(c){const h=vu(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[c,e,s,a]);return[d,u]}function gu({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return mu(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function vu(e){return typeof e=="function"}function yu(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Te=e=>{const{present:t,children:n}=e,r=xu(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ne(r.ref,bu(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Te.displayName="Presence";function xu(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[c,d]=yu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=qt(r.current);s.current=c==="mounted"?u:"none"},[c]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=qt(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const m=qt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=qt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qt(e){return(e==null?void 0:e.animationName)||"none"}function bu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wu=rs[" useId ".trim().toString()]||(()=>{}),Cu=0;function Ee(e){const[t,n]=l.useState(wu());return ie(()=>{n(r=>r??String(Cu++))},[e]),e||(t?`radix-${t}`:"")}var Eu=l.createContext(void 0);function yn(e){const t=l.useContext(Eu);return e||t||"ltr"}function ke(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ku(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e);l.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 Su="DismissableLayer",sr="dismissableLayer.update",Ru="dismissableLayer.pointerDownOutside",Tu="dismissableLayer.focusOutside",So,Ps=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=l.useContext(Ps),[f,p]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),x=ne(t,k=>p(k)),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(v),C=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=b,S=ju(k=>{const A=k.target,D=[...u.branches].some(F=>F.contains(A));!E||D||(o==null||o(k),a==null||a(k),k.defaultPrevented||c==null||c())},h),M=Au(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(s==null||s(k),a==null||a(k),k.defaultPrevented||c==null||c())},h);return ku(k=>{C===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(So=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ro(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=So)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,u]),l.useEffect(()=>{const k=()=>g({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),i.jsx(z.div,{...d,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,M.onFocusCapture),onBlurCapture:N(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,S.onPointerDownCapture)})});Ft.displayName=Su;var Mu="DismissableLayerBranch",Pu=l.forwardRef((e,t)=>{const n=l.useContext(Ps),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(z.div,{...e,ref:o})});Pu.displayName=Mu;function ju(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){js(Ru,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Au(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&js(Tu,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ro(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function js(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Rs(o,s):o.dispatchEvent(s)}var zn="focusScope.autoFocusOnMount",Wn="focusScope.autoFocusOnUnmount",To={bubbles:!1,cancelable:!0},Nu="FocusScope",xn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=l.useState(null),u=ke(o),f=ke(s),p=l.useRef(null),h=ne(t,m=>d(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(g.paused||!c)return;const E=w.target;c.contains(E)?p.current=E:Ve(p.current,{select:!0})},v=function(w){if(g.paused||!c)return;const E=w.relatedTarget;E!==null&&(c.contains(E)||Ve(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),C.disconnect()}}},[r,c,g.paused]),l.useEffect(()=>{if(c){Po.add(g);const m=document.activeElement;if(!c.contains(m)){const b=new CustomEvent(zn,To);c.addEventListener(zn,u),c.dispatchEvent(b),b.defaultPrevented||(_u(Fu(As(c)),{select:!0}),document.activeElement===m&&Ve(c))}return()=>{c.removeEventListener(zn,u),setTimeout(()=>{const b=new CustomEvent(Wn,To);c.addEventListener(Wn,f),c.dispatchEvent(b),b.defaultPrevented||Ve(m??document.body,{select:!0}),c.removeEventListener(Wn,f),Po.remove(g)},0)}}},[c,u,f,g]);const x=l.useCallback(m=>{if(!n&&!r||g.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(v&&b){const C=m.currentTarget,[w,E]=Iu(C);w&&E?!m.shiftKey&&b===E?(m.preventDefault(),n&&Ve(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&Ve(E,{select:!0})):b===C&&m.preventDefault()}},[n,r,g.paused]);return i.jsx(z.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});xn.displayName=Nu;function _u(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function Iu(e){const t=As(e),n=Mo(t,e),r=Mo(t.reverse(),e);return[n,r]}function As(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 Mo(e,t){for(const n of e)if(!Ou(n,{upTo:t}))return n}function Ou(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 Lu(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Lu(e)&&t&&e.select()}}var Po=Du();function Du(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jo(e,t),e.unshift(t)},remove(t){var n;e=jo(e,t),(n=e[0])==null||n.resume()}}}function jo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fu(e){return e.filter(t=>t.tagName!=="A")}var $u="Portal",$t=l.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?ou.createPortal(i.jsx(z.div,{...r,ref:t}),a):null});$t.displayName=$u;var Vn=0;function Ar(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ao()),document.body.insertAdjacentElement("beforeend",e[1]??Ao()),Vn++,()=>{Vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vn--}},[])}function Ao(){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 tn="right-scroll-bar-position",nn="width-before-scroll-bar",Uu="with-scroll-bars-hidden",Hu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bu(e,t){var n=l.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 zu=typeof window<"u"?l.useLayoutEffect:l.useEffect,No=new WeakMap;function Wu(e,t){var n=Bu(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return zu(function(){var r=No.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Gn(c,null)}),s.forEach(function(c){o.has(c)||Gn(c,a)})}No.set(n,e)},[e]),n}function Vu(e){return e}function Gu(e,t){t===void 0&&(t=Vu);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(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function qu(e){e===void 0&&(e={});var t=Gu(null);return t.options=je({async:!0,ssr:!1},e),t}var Ns=function(e){var t=e.sideCar,n=ws(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 l.createElement(r,je({},n))};Ns.isSideCarExport=!0;function Ku(e,t){return e.useMedium(t),Ns}var _s=qu(),qn=function(){},bn=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:qn,onWheelCapture:qn,onTouchMoveCapture:qn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,x=e.noIsolation,m=e.inert,v=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,w=e.gapMode,E=ws(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,M=Wu([n,t]),k=je(je({},E),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:_s,removeScrollBar:u,shards:p,noRelative:g,noIsolation:x,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(c),je(je({},k),{ref:M})):l.createElement(C,je({},k,{className:d,ref:M}),c))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bn.classNames={fullWidth:nn,zeroRight:tn};var Yu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yu();return t&&e.setAttribute("nonce",t),e}function Zu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ju(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xu())&&(Zu(t,n),Ju(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ed=function(){var e=Qu();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Is=function(){var e=ed(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},td={left:0,top:0,right:0,gap:0},Kn=function(e){return parseInt(e||"",10)||0},nd=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[Kn(n),Kn(r),Kn(o)]},rd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return td;var t=nd(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])}},od=Is(),ct="data-scroll-locked",sd=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
37
|
+
.`.concat(Uu,` {
|
|
38
|
+
overflow: hidden `).concat(r,`;
|
|
39
|
+
padding-right: `).concat(c,"px ").concat(r,`;
|
|
40
|
+
}
|
|
41
|
+
body[`).concat(ct,`] {
|
|
42
|
+
overflow: hidden `).concat(r,`;
|
|
43
|
+
overscroll-behavior: contain;
|
|
44
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
45
|
+
padding-left: `.concat(o,`px;
|
|
46
|
+
padding-top: `).concat(s,`px;
|
|
47
|
+
padding-right: `).concat(a,`px;
|
|
48
|
+
margin-left:0;
|
|
49
|
+
margin-top:0;
|
|
50
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
51
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.`).concat(tn,` {
|
|
55
|
+
right: `).concat(c,"px ").concat(r,`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.`).concat(nn,` {
|
|
59
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.`).concat(tn," .").concat(tn,` {
|
|
63
|
+
right: 0 `).concat(r,`;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.`).concat(nn," .").concat(nn,` {
|
|
67
|
+
margin-right: 0 `).concat(r,`;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
body[`).concat(ct,`] {
|
|
71
|
+
`).concat(Hu,": ").concat(c,`px;
|
|
72
|
+
}
|
|
73
|
+
`)},_o=function(){var e=parseInt(document.body.getAttribute(ct)||"0",10);return isFinite(e)?e:0},ad=function(){l.useEffect(function(){return document.body.setAttribute(ct,(_o()+1).toString()),function(){var e=_o()-1;e<=0?document.body.removeAttribute(ct):document.body.setAttribute(ct,e.toString())}},[])},id=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ad();var s=l.useMemo(function(){return rd(o)},[o]);return l.createElement(od,{styles:sd(s,!t,o,n?"":"!important")})},ar=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return ar=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{ar=!1}var ot=ar?{passive:!1}:!1,cd=function(e){return e.tagName==="TEXTAREA"},Os=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!cd(e)&&n[t]==="visible")},ld=function(e){return Os(e,"overflowY")},ud=function(e){return Os(e,"overflowX")},Io=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ls(e,r);if(o){var s=Ds(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ls=function(e,t){return e==="v"?ld(t):ud(t)},Ds=function(e,t){return e==="v"?dd(t):fd(t)},pd=function(e,t){return e==="h"&&t==="rtl"?-1:1},hd=function(e,t,n,r,o){var s=pd(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,f=a>0,p=0,h=0;do{if(!c)break;var g=Ds(e,c),x=g[0],m=g[1],v=g[2],b=m-v-s*x;(x||b)&&Ls(e,c)&&(p+=b,h+=x);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oo=function(e){return[e.deltaX,e.deltaY]},Lo=function(e){return e&&"current"in e?e.current:e},md=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gd=function(e){return`
|
|
74
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
75
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
76
|
+
`)},vd=0,st=[];function yd(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(vd++)[0],s=l.useState(Is)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ru([e.lockRef.current],(e.shards||[]).map(Lo),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=Yt(m),C=n.current,w="deltaX"in m?m.deltaX:C[0]-b[0],E="deltaY"in m?m.deltaY:C[1]-b[1],S,M=m.target,k=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&k==="h"&&M.type==="range")return!1;var A=window.getSelection(),D=A&&A.anchorNode,F=D?D===M||D.contains(M):!1;if(F)return!1;var H=Io(k,M);if(!H)return!0;if(H?S=k:(S=k==="v"?"h":"v",H=Io(k,M)),!H)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=S),!S)return!0;var _=r.current||S;return hd(_,v,m,_==="h"?w:E)},[]),d=l.useCallback(function(m){var v=m;if(!(!st.length||st[st.length-1]!==s)){var b="deltaY"in v?Oo(v):Yt(v),C=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&md(S.delta,b)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var w=(a.current.shards||[]).map(Lo).filter(Boolean).filter(function(S){return S.contains(v.target)}),E=w.length>0?c(v,w[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=l.useCallback(function(m,v,b,C){var w={name:m,delta:v,target:b,should:C,shadowParent:xd(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=l.useCallback(function(m){n.current=Yt(m),r.current=void 0},[]),p=l.useCallback(function(m){u(m.type,Oo(m),m.target,c(m,e.lockRef.current))},[]),h=l.useCallback(function(m){u(m.type,Yt(m),m.target,c(m,e.lockRef.current))},[]);l.useEffect(function(){return st.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",d,ot),document.addEventListener("touchmove",d,ot),document.addEventListener("touchstart",f,ot),function(){st=st.filter(function(m){return m!==s}),document.removeEventListener("wheel",d,ot),document.removeEventListener("touchmove",d,ot),document.removeEventListener("touchstart",f,ot)}},[]);var g=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(s,{styles:gd(o)}):null,g?l.createElement(id,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bd=Ku(_s,yd);var wn=l.forwardRef(function(e,t){return l.createElement(bn,je({},e,{ref:t,sideCar:bd}))});wn.classNames=bn.classNames;var wd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,Xt=new WeakMap,Zt={},Yn=0,Fs=function(e){return e&&(e.host||Fs(e.parentNode))},Cd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Fs(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})},Ed=function(e,t,n,r){var o=Cd(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var s=Zt[n],a=[],c=new Set,d=new Set(o),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))f(h);else try{var g=h.getAttribute(r),x=g!==null&&g!=="false",m=(at.get(h)||0)+1,v=(s.get(h)||0)+1;at.set(h,m),s.set(h,v),a.push(h),m===1&&x&&Xt.set(h,!0),v===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),c.clear(),Yn++,function(){a.forEach(function(p){var h=at.get(p)-1,g=s.get(p)-1;at.set(p,h),s.set(p,g),h||(Xt.has(p)||p.removeAttribute(r),Xt.delete(p)),g||p.removeAttribute(n)}),Yn--,Yn||(at=new WeakMap,at=new WeakMap,Xt=new WeakMap,Zt={})}},Nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=wd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ed(r,o,n,"aria-hidden")):function(){return null}},Cn="Dialog",[$s]=Ie(Cn),[kd,Me]=$s(Cn),Us=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=l.useRef(null),d=l.useRef(null),[u,f]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:Cn});return i.jsx(kd,{scope:t,triggerRef:c,contentRef:d,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:n})};Us.displayName=Cn;var Hs="DialogTrigger",Bs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Hs,n),s=ne(t,o.triggerRef);return i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Or(o.open),...r,ref:s,onClick:N(e.onClick,o.onOpenToggle)})});Bs.displayName=Hs;var _r="DialogPortal",[Sd,zs]=$s(_r,{forceMount:void 0}),Ws=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Me(_r,t);return i.jsx(Sd,{scope:t,forceMount:n,children:l.Children.map(r,a=>i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:a})}))})};Ws.displayName=_r;var sn="DialogOverlay",Vs=l.forwardRef((e,t)=>{const n=zs(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Me(sn,e.__scopeDialog);return s.modal?i.jsx(Te,{present:r||s.open,children:i.jsx(Td,{...o,ref:t})}):null});Vs.displayName=sn;var Rd=Xe("DialogOverlay.RemoveScroll"),Td=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(sn,n);return i.jsx(wn,{as:Rd,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(z.div,{"data-state":Or(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Je="DialogContent",Gs=l.forwardRef((e,t)=>{const n=zs(Je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Me(Je,e.__scopeDialog);return i.jsx(Te,{present:r||s.open,children:s.modal?i.jsx(Md,{...o,ref:t}):i.jsx(Pd,{...o,ref:t})})});Gs.displayName=Je;var Md=l.forwardRef((e,t)=>{const n=Me(Je,e.__scopeDialog),r=l.useRef(null),o=ne(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(qs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault())})}),Pd=l.forwardRef((e,t)=>{const n=Me(Je,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(qs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),qs=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Me(Je,n),d=l.useRef(null),u=ne(t,d);return Ar(),i.jsxs(i.Fragment,{children:[i.jsx(xn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Ft,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Or(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(jd,{titleId:c.titleId}),i.jsx(Nd,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ir="DialogTitle",Ks=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Ir,n);return i.jsx(z.h2,{id:o.titleId,...r,ref:t})});Ks.displayName=Ir;var Ys="DialogDescription",Xs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Ys,n);return i.jsx(z.p,{id:o.descriptionId,...r,ref:t})});Xs.displayName=Ys;var Zs="DialogClose",Js=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Zs,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});Js.displayName=Zs;function Or(e){return e?"open":"closed"}var Qs="DialogTitleWarning",[Ug,ea]=pu(Qs,{contentName:Je,titleName:Ir,docsSlug:"dialog"}),jd=({titleId:e})=>{const t=ea(Qs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
77
|
+
|
|
78
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
79
|
+
|
|
80
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ad="DialogDescriptionWarning",Nd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ea(Ad).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Hg=Us,Bg=Bs,zg=Ws,Wg=Vs,Vg=Gs,Gg=Ks,qg=Xs,Kg=Js,Xn={exports:{}},Zn={};/**
|
|
81
|
+
* @license React
|
|
82
|
+
* use-sync-external-store-shim.production.js
|
|
83
|
+
*
|
|
84
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/var Do;function _d(){if(Do)return Zn;Do=1;var e=br();function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function c(p,h){var g=h(),x=r({inst:{value:g,getSnapshot:h}}),m=x[0].inst,v=x[1];return s(function(){m.value=g,m.getSnapshot=h,d(m)&&v({inst:m})},[p,g,h]),o(function(){return d(m)&&v({inst:m}),p(function(){d(m)&&v({inst:m})})},[p]),a(g),g}function d(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!n(p,g)}catch{return!0}}function u(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Zn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Zn}var Fo;function Id(){return Fo||(Fo=1,Xn.exports=_d()),Xn.exports}var Od=Id();function Ld(){return Od.useSyncExternalStore(Dd,()=>!0,()=>!1)}function Dd(){return()=>{}}var Lr="Avatar",[Fd]=Ie(Lr),[$d,ta]=Fd(Lr),na=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=l.useState("idle");return i.jsx($d,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:i.jsx(z.span,{...r,ref:t})})});na.displayName=Lr;var ra="AvatarImage",Ud=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=ta(ra,n),c=Hd(r,s),d=ke(u=>{o(u),a.onImageLoadingStatusChange(u)});return ie(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?i.jsx(z.img,{...s,ref:t,src:r}):null});Ud.displayName=ra;var oa="AvatarFallback",sa=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=ta(oa,n),[a,c]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(d)}},[r]),a&&s.imageLoadingStatus!=="loaded"?i.jsx(z.span,{...o,ref:t}):null});sa.displayName=oa;function $o(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Hd(e,{referrerPolicy:t,crossOrigin:n}){const r=Ld(),o=l.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,c]=l.useState(()=>$o(s,e));return ie(()=>{c($o(s,e))},[s,e]),ie(()=>{const d=p=>()=>{c(p)};if(!s)return;const u=d("loaded"),f=d("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var Yg=na,Xg=sa;function Bd(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function zd(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Wd=["top","right","bottom","left"],Ge=Math.min,pe=Math.max,an=Math.round,Jt=Math.floor,Ne=e=>({x:e,y:e}),Vd={left:"right",right:"left",bottom:"top",top:"bottom"},Gd={start:"end",end:"start"};function ir(e,t,n){return pe(e,Ge(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Dr(e){return e==="x"?"y":"x"}function Fr(e){return e==="y"?"height":"width"}const qd=new Set(["top","bottom"]);function Ae(e){return qd.has(Ue(e))?"y":"x"}function $r(e){return Dr(Ae(e))}function Kd(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=$r(e),s=Fr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=cn(a)),[a,cn(a)]}function Yd(e){const t=cn(e);return[cr(e),t,cr(t)]}function cr(e){return e.replace(/start|end/g,t=>Gd[t])}const Uo=["left","right"],Ho=["right","left"],Xd=["top","bottom"],Zd=["bottom","top"];function Jd(e,t,n){switch(e){case"top":case"bottom":return n?t?Ho:Uo:t?Uo:Ho;case"left":case"right":return t?Xd:Zd;default:return[]}}function Qd(e,t,n,r){const o=gt(e);let s=Jd(Ue(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(cr)))),s}function cn(e){return e.replace(/left|right|bottom|top/g,t=>Vd[t])}function ef(e){return{top:0,right:0,bottom:0,left:0,...e}}function aa(e){return typeof e!="number"?ef(e):{top:e,right:e,bottom:e,left:e}}function ln(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 Bo(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),a=$r(t),c=Fr(a),d=Ue(t),u=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let g;switch(d){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(gt(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}async function tf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=$e(t,e),x=aa(g),v=c[h?p==="floating"?"reference":"floating":p],b=ln(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),C=p==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ln(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:w,strategy:d}):C);return{top:(b.top-S.top+x.top)/E.y,bottom:(S.bottom-b.bottom+x.bottom)/E.y,left:(b.left-S.left+x.left)/E.x,right:(S.right-b.right+x.right)/E.x}}const nf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Bo(u,r,d),h=r,g={},x=0;for(let v=0;v<c.length;v++){var m;const{name:b,fn:C}=c[v],{x:w,y:E,data:S,reset:M}=await C({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:tf},elements:{reference:e,floating:t}});f=w??f,p=E??p,g={...g,[b]:{...g[b],...S}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(h=M.placement),M.rects&&(u=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:f,y:p}=Bo(u,h,d)),v=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}},rf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:f=0}=$e(e,t)||{};if(u==null)return{};const p=aa(f),h={x:n,y:r},g=$r(o),x=Fr(g),m=await a.getDimensions(u),v=g==="y",b=v?"top":"left",C=v?"bottom":"right",w=v?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[g]-h[g]-s.floating[x],S=h[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let k=M?M[w]:0;(!k||!await(a.isElement==null?void 0:a.isElement(M)))&&(k=c.floating[w]||s.floating[x]);const A=E/2-S/2,D=k/2-m[x]/2-1,F=Ge(p[b],D),H=Ge(p[C],D),_=F,Y=k-m[x]-H,U=k/2-m[x]/2+A,J=ir(_,U,Y),O=!d.arrow&>(o)!=null&&U!==J&&s.reference[x]/2-(U<_?F:H)-m[x]/2<0,K=O?U<_?U-_:U-Y:0;return{[g]:h[g]+K,data:{[g]:J,centerOffset:U-J-K,...O&&{alignmentOffset:K}},reset:O}}}),of=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...v}=$e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Ue(o),C=Ae(c),w=Ue(c)===c,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=h||(w||!m?[cn(c)]:Yd(c)),M=x!=="none";!h&&M&&S.push(...Qd(c,m,x,E));const k=[c,...S],A=await d.detectOverflow(t,v),D=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(A[b]),p){const U=Kd(o,a,E);D.push(A[U[0]],A[U[1]])}if(F=[...F,{placement:o,overflows:D}],!D.every(U=>U<=0)){var H,_;const U=(((H=s.flip)==null?void 0:H.index)||0)+1,J=k[U];if(J&&(!(p==="alignment"?C!==Ae(J):!1)||F.every(I=>Ae(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:U,overflows:F},reset:{placement:J}};let O=(_=F.filter(K=>K.overflows[0]<=0).sort((K,I)=>K.overflows[1]-I.overflows[1])[0])==null?void 0:_.placement;if(!O)switch(g){case"bestFit":{var Y;const K=(Y=F.filter(I=>{if(M){const j=Ae(I.placement);return j===C||j==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,Q)=>j+Q,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:Y[0];K&&(O=K);break}case"initialPlacement":O=c;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wo(e){return Wd.some(t=>e[t]>=0)}const sf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=$e(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=zo(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wo(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),c=zo(a,n.floating);return{data:{escapedOffsets:c,escaped:Wo(c)}}}default:return{}}}}},ia=new Set(["left","top"]);async function af(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),c=gt(n),d=Ae(n)==="y",u=ia.has(a)?-1:1,f=s&&d?-1:1,p=$e(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),d?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const cf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await af(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},lf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:d={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...u}=$e(e,t),f={x:n,y:r},p=await s.detectOverflow(t,u),h=Ae(Ue(o)),g=Dr(h);let x=f[g],m=f[h];if(a){const b=g==="y"?"top":"left",C=g==="y"?"bottom":"right",w=x+p[b],E=x-p[C];x=ir(w,x,E)}if(c){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+p[b],E=m-p[C];m=ir(w,m,E)}const v=d.fn({...t,[g]:x,[h]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:a,[h]:c}}}}}},uf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=$e(e,t),f={x:n,y:r},p=Ae(o),h=Dr(p);let g=f[h],x=f[p];const m=$e(c,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const w=h==="y"?"height":"width",E=s.reference[h]-s.floating[w]+v.mainAxis,S=s.reference[h]+s.reference[w]-v.mainAxis;g<E?g=E:g>S&&(g=S)}if(u){var b,C;const w=h==="y"?"width":"height",E=ia.has(Ue(o)),S=s.reference[p]-s.floating[w]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),M=s.reference[p]+s.reference[w]+(E?0:((C=a.offset)==null?void 0:C[p])||0)-(E?v.crossAxis:0);x<S?x=S:x>M&&(x=M)}return{[h]:g,[p]:x}}}},df=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=$e(e,t),f=await a.detectOverflow(t,u),p=Ue(o),h=gt(o),g=Ae(o)==="y",{width:x,height:m}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const C=m-f.top-f.bottom,w=x-f.left-f.right,E=Ge(m-f[v],C),S=Ge(x-f[b],w),M=!t.middlewareData.shift;let k=E,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),M&&!h){const F=pe(f.left,0),H=pe(f.right,0),_=pe(f.top,0),Y=pe(f.bottom,0);g?A=x-2*(F!==0||H!==0?F+H:pe(f.left,f.right)):k=m-2*(_!==0||Y!==0?_+Y:pe(f.top,f.bottom))}await d({...t,availableWidth:A,availableHeight:k});const D=await a.getDimensions(c.floating);return x!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function vt(e){return ca(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(ca(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ca(e){return En()?e instanceof Node||e instanceof he(e).Node:!1}function Se(e){return En()?e instanceof Element||e instanceof he(e).Element:!1}function _e(e){return En()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Vo(e){return!En()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const ff=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ff.has(o)}const pf=new Set(["table","td","th"]);function hf(e){return pf.has(vt(e))}const mf=[":popover-open",":modal"];function kn(e){return mf.some(t=>{try{return e.matches(t)}catch{return!1}})}const gf=["transform","translate","scale","rotate","perspective"],vf=["transform","translate","scale","rotate","perspective","filter"],yf=["paint","layout","strict","content"];function Ur(e){const t=Hr(),n=Se(e)?Re(e):e;return gf.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)||vf.some(r=>(n.willChange||"").includes(r))||yf.some(r=>(n.contain||"").includes(r))}function xf(e){let t=qe(e);for(;_e(t)&&!dt(t);){if(Ur(t))return t;if(kn(t))return null;t=qe(t)}return null}function Hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bf=new Set(["html","body","#document"]);function dt(e){return bf.has(vt(e))}function Re(e){return he(e).getComputedStyle(e)}function Sn(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qe(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Oe(e);return Vo(t)?t.host:t}function la(e){const t=qe(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&Ut(t)?t:la(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=la(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=he(o);if(s){const c=lr(a);return t.concat(a,a.visualViewport||[],Ut(o)?o:[],c&&n?At(c):[])}return t.concat(o,At(o,[],n))}function lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ua(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_e(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=an(n)!==s||an(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Br(e){return Se(e)?e:e.contextElement}function lt(e){const t=Br(e);if(!_e(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ua(t);let a=(s?an(n.width):n.width)/r,c=(s?an(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const wf=Ne(0);function da(e){const t=he(e);return!Hr()||!t.visualViewport?wf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function Qe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Br(e);let a=Ne(1);t&&(r?Se(r)&&(a=lt(r)):a=lt(e));const c=Cf(s,n,r)?da(s):Ne(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=he(s),g=r&&Se(r)?he(r):r;let x=h,m=lr(x);for(;m&&r&&g!==x;){const v=lt(m),b=m.getBoundingClientRect(),C=Re(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*v.x,E=b.top+(m.clientTop+parseFloat(C.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=w,u+=E,x=he(m),m=lr(x)}}return ln({width:f,height:p,x:d,y:u})}function Rn(e,t){const n=Sn(e).scrollLeft;return t?t.left+n:Qe(Oe(e)).left+n}function fa(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ef(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?kn(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ne(1);const f=Ne(0),p=_e(r);if((p||!p&&!s)&&((vt(r)!=="body"||Ut(a))&&(d=Sn(r)),_e(r))){const g=Qe(r);u=lt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!p&&!s?fa(a,d):Ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-d.scrollTop*u.y+f.y+h.y}}function kf(e){return Array.from(e.getClientRects())}function Sf(e){const t=Oe(e),n=Sn(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Rn(e);const c=-n.scrollTop;return Re(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const Go=25;function Rf(e,t){const n=he(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const f=Hr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=Rn(r);if(u<=0){const f=r.ownerDocument,p=f.body,h=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-g);x<=Go&&(s-=x)}else u<=Go&&(s+=u);return{width:s,height:a,x:c,y:d}}const Tf=new Set(["absolute","fixed"]);function Mf(e,t){const n=Qe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=_e(e)?lt(e):Ne(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function qo(e,t,n){let r;if(t==="viewport")r=Rf(e,n);else if(t==="document")r=Sf(Oe(e));else if(Se(t))r=Mf(t,n);else{const o=da(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ln(r)}function pa(e,t){const n=qe(e);return n===t||!Se(n)||dt(n)?!1:Re(n).position==="fixed"||pa(n,t)}function Pf(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(c=>Se(c)&&vt(c)!=="body"),o=null;const s=Re(e).position==="fixed";let a=s?qe(e):e;for(;Se(a)&&!dt(a);){const c=Re(a),d=Ur(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&Tf.has(o.position)||Ut(a)&&!d&&pa(e,a))?r=r.filter(f=>f!==a):o=c,a=qe(a)}return t.set(e,r),r}function jf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?kn(t)?[]:Pf(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,f)=>{const p=qo(t,f,o);return u.top=pe(p.top,u.top),u.right=Ge(p.right,u.right),u.bottom=Ge(p.bottom,u.bottom),u.left=pe(p.left,u.left),u},qo(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Af(e){const{width:t,height:n}=ua(e);return{width:t,height:n}}function Nf(e,t,n){const r=_e(t),o=Oe(t),s=n==="fixed",a=Qe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ne(0);function u(){d.x=Rn(o)}if(r||!r&&!s)if((vt(t)!=="body"||Ut(o))&&(c=Sn(t)),r){const g=Qe(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?fa(o,c):Ne(0),p=a.left+c.scrollLeft-d.x-f.x,h=a.top+c.scrollTop-d.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function Jn(e){return Re(e).position==="static"}function Ko(e,t){if(!_e(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function ha(e,t){const n=he(e);if(kn(e))return n;if(!_e(e)){let o=qe(e);for(;o&&!dt(o);){if(Se(o)&&!Jn(o))return o;o=qe(o)}return n}let r=Ko(e,t);for(;r&&hf(r)&&Jn(r);)r=Ko(r,t);return r&&dt(r)&&Jn(r)&&!Ur(r)?n:r||xf(e)||n}const _f=async function(e){const t=this.getOffsetParent||ha,n=this.getDimensions,r=await n(e.floating);return{reference:Nf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function If(e){return Re(e).direction==="rtl"}const Of={convertOffsetParentRelativeRectToViewportRelativeRect:Ef,getDocumentElement:Oe,getClippingRect:jf,getOffsetParent:ha,getElementRects:_f,getClientRects:kf,getDimensions:Af,getScale:lt,isElement:Se,isRTL:If};function ma(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lf(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=u;if(c||t(),!h||!g)return;const x=Jt(p),m=Jt(o.clientWidth-(f+h)),v=Jt(o.clientHeight-(p+g)),b=Jt(f),w={rootMargin:-x+"px "+-m+"px "+-v+"px "+-b+"px",threshold:pe(0,Ge(1,d))||1};let E=!0;function S(M){const k=M[0].intersectionRatio;if(k!==d){if(!E)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!ma(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return a(!0),s}function Df(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Br(e),f=o||s?[...u?At(u):[],...At(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=u&&c?Lf(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(b=>{let[C]=b;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!d&&g.observe(u),g.observe(t));let x,m=d?Qe(e):null;d&&v();function v(){const b=Qe(e);m&&!ma(m,b)&&n(),m=b,x=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p==null||p(),(b=g)==null||b.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const Ff=cf,$f=lf,Uf=of,Hf=df,Bf=sf,Yo=rf,zf=uf,Wf=(e,t,n)=>{const r=new Map,o={platform:Of,...n},s={...o.platform,_c:r};return nf(e,t,{...o,platform:s})};var Vf=typeof document<"u",Gf=function(){},rn=Vf?l.useLayoutEffect:Gf;function un(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(!un(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ga(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xo(e,t){const n=ga(e);return Math.round(t*n)/n}function Qn(e){const t=l.useRef(e);return rn(()=>{t.current=e}),t}function qf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);un(h,r)||g(r);const[x,m]=l.useState(null),[v,b]=l.useState(null),C=l.useCallback(I=>{I!==M.current&&(M.current=I,m(I))},[]),w=l.useCallback(I=>{I!==k.current&&(k.current=I,b(I))},[]),E=s||x,S=a||v,M=l.useRef(null),k=l.useRef(null),A=l.useRef(f),D=d!=null,F=Qn(d),H=Qn(o),_=Qn(u),Y=l.useCallback(()=>{if(!M.current||!k.current)return;const I={placement:t,strategy:n,middleware:h};H.current&&(I.platform=H.current),Wf(M.current,k.current,I).then(j=>{const Q={...j,isPositioned:_.current!==!1};U.current&&!un(A.current,Q)&&(A.current=Q,Dt.flushSync(()=>{p(Q)}))})},[h,t,n,H,_]);rn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const U=l.useRef(!1);rn(()=>(U.current=!0,()=>{U.current=!1}),[]),rn(()=>{if(E&&(M.current=E),S&&(k.current=S),E&&S){if(F.current)return F.current(E,S,Y);Y()}},[E,S,Y,F,D]);const J=l.useMemo(()=>({reference:M,floating:k,setReference:C,setFloating:w}),[C,w]),O=l.useMemo(()=>({reference:E,floating:S}),[E,S]),K=l.useMemo(()=>{const I={position:n,left:0,top:0};if(!O.floating)return I;const j=Xo(O.floating,f.x),Q=Xo(O.floating,f.y);return c?{...I,transform:"translate("+j+"px, "+Q+"px)",...ga(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:Q}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:J,elements:O,floatingStyles:K}),[f,Y,J,O,K])}const Kf=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?Yo({element:r.current,padding:o}).fn(n):{}:r?Yo({element:r,padding:o}).fn(n):{}}}},Yf=(e,t)=>({...Ff(e),options:[e,t]}),Xf=(e,t)=>({...$f(e),options:[e,t]}),Zf=(e,t)=>({...zf(e),options:[e,t]}),Jf=(e,t)=>({...Uf(e),options:[e,t]}),Qf=(e,t)=>({...Hf(e),options:[e,t]}),ep=(e,t)=>({...Bf(e),options:[e,t]}),tp=(e,t)=>({...Kf(e),options:[e,t]});var np="Arrow",va=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(z.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});va.displayName=np;var rp=va,zr="Popper",[ya,yt]=Ie(zr),[op,xa]=ya(zr),ba=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(op,{scope:t,anchor:r,onAnchorChange:o,children:n})};ba.displayName=zr;var wa="PopperAnchor",Ca=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=xa(wa,n),a=l.useRef(null),c=ne(t,a),d=l.useRef(null);return l.useEffect(()=>{const u=d.current;d.current=(r==null?void 0:r.current)||a.current,u!==d.current&&s.onAnchorChange(d.current)}),r?null:i.jsx(z.div,{...o,ref:c})});Ca.displayName=wa;var Wr="PopperContent",[sp,ap]=ya(Wr),Ea=l.forwardRef((e,t)=>{var P,X,G,ee,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:x,...m}=e,v=xa(Wr,n),[b,C]=l.useState(null),w=ne(t,fe=>C(fe)),[E,S]=l.useState(null),M=zd(E),k=(M==null?void 0:M.width)??0,A=(M==null?void 0:M.height)??0,D=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(u)?u:[u],_=H.length>0,Y={padding:F,boundary:H.filter(cp),altBoundary:_},{refs:U,floatingStyles:J,placement:O,isPositioned:K,middlewareData:I}=qf({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>Df(...fe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Yf({mainAxis:o+A,alignmentAxis:a}),d&&Xf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Zf():void 0,...Y}),d&&Jf({...Y}),Qf({...Y,apply:({elements:fe,rects:Pe,availableWidth:wt,availableHeight:Ct})=>{const{width:Et,height:vc}=Pe.reference,Vt=fe.floating.style;Vt.setProperty("--radix-popper-available-width",`${wt}px`),Vt.setProperty("--radix-popper-available-height",`${Ct}px`),Vt.setProperty("--radix-popper-anchor-width",`${Et}px`),Vt.setProperty("--radix-popper-anchor-height",`${vc}px`)}}),E&&tp({element:E,padding:c}),lp({arrowWidth:k,arrowHeight:A}),h&&ep({strategy:"referenceHidden",...Y})]}),[j,Q]=Ra(O),y=ke(x);ie(()=>{K&&(y==null||y())},[K,y]);const T=(P=I.arrow)==null?void 0:P.x,$=(X=I.arrow)==null?void 0:X.y,L=((G=I.arrow)==null?void 0:G.centerOffset)!==0,[V,W]=l.useState();return ie(()=>{b&&W(window.getComputedStyle(b).zIndex)},[b]),i.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(ee=I.transformOrigin)==null?void 0:ee.x,(re=I.transformOrigin)==null?void 0:re.y].join(" "),...((oe=I.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(sp,{scope:n,placedSide:j,onArrowChange:S,arrowX:T,arrowY:$,shouldHideArrow:L,children:i.jsx(z.div,{"data-side":j,"data-align":Q,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});Ea.displayName=Wr;var ka="PopperArrow",ip={top:"bottom",right:"left",bottom:"top",left:"right"},Sa=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ap(ka,r),a=ip[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(rp,{...o,ref:n,style:{...o.style,display:"block"}})})});Sa.displayName=ka;function cp(e){return e!==null}var lp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,C;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,f]=Ra(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+d/2;let x="",m="";return u==="bottom"?(x=a?p:`${h}px`,m=`${-d}px`):u==="top"?(x=a?p:`${h}px`,m=`${r.floating.height+d}px`):u==="right"?(x=`${-d}px`,m=a?p:`${g}px`):u==="left"&&(x=`${r.floating.width+d}px`,m=a?p:`${g}px`),{data:{x,y:m}}}});function Ra(e){const[t,n="center"]=e.split("-");return[t,n]}var Vr=ba,Gr=Ca,qr=Ea,Kr=Sa,er="rovingFocusGroup.onEntryFocus",up={bubbles:!1,cancelable:!0},Ht="RovingFocusGroup",[ur,Ta,dp]=jr(Ht),[fp,Tn]=Ie(Ht,[dp]),[pp,hp]=fp(Ht),Ma=l.forwardRef((e,t)=>i.jsx(ur.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(ur.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(mp,{...e,ref:t})})}));Ma.displayName=Ht;var mp=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,h=l.useRef(null),g=ne(t,h),x=yn(s),[m,v]=Ze({prop:a,defaultProp:c??null,onChange:d,caller:Ht}),[b,C]=l.useState(!1),w=ke(u),E=Ta(n),S=l.useRef(!1),[M,k]=l.useState(0);return l.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(er,w),()=>A.removeEventListener(er,w)},[w]),i.jsx(pp,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(A=>v(A),[v]),onItemShiftTab:l.useCallback(()=>C(!0),[]),onFocusableItemAdd:l.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:l.useCallback(()=>k(A=>A-1),[]),children:i.jsx(z.div,{tabIndex:b||M===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{S.current=!0}),onFocus:N(e.onFocus,A=>{const D=!S.current;if(A.target===A.currentTarget&&D&&!b){const F=new CustomEvent(er,up);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const H=E().filter(O=>O.focusable),_=H.find(O=>O.active),Y=H.find(O=>O.id===m),J=[_,Y,...H].filter(Boolean).map(O=>O.ref.current);Aa(J,f)}}S.current=!1}),onBlur:N(e.onBlur,()=>C(!1))})})}),Pa="RovingFocusGroupItem",ja=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...c}=e,d=Ee(),u=s||d,f=hp(Pa,n),p=f.currentTabStopId===u,h=Ta(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:m}=f;return l.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),i.jsx(ur.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:i.jsx(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?f.onItemFocus(u):v.preventDefault()}),onFocus:N(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=yp(v,f.orientation,f.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=h().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const E=w.indexOf(v.currentTarget);w=f.loop?xp(w,E+1):w.slice(E+1)}setTimeout(()=>Aa(w))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:m!=null}):a})})});ja.displayName=Pa;var gp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yp(e,t,n){const r=vp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gp[r]}function Aa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function xp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Na=Ma,_a=ja,dr=["Enter"," "],bp=["ArrowDown","PageUp","Home"],Ia=["ArrowUp","PageDown","End"],wp=[...bp,...Ia],Cp={ltr:[...dr,"ArrowRight"],rtl:[...dr,"ArrowLeft"]},Ep={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bt="Menu",[Nt,kp,Sp]=jr(Bt),[nt,Oa]=Ie(Bt,[Sp,yt,Tn]),Mn=yt(),La=Tn(),[Rp,rt]=nt(Bt),[Tp,zt]=nt(Bt),Da=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=Mn(t),[d,u]=l.useState(null),f=l.useRef(!1),p=ke(s),h=yn(o);return l.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),i.jsx(Vr,{...c,children:i.jsx(Rp,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:i.jsx(Tp,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};Da.displayName=Bt;var Mp="MenuAnchor",Yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mn(n);return i.jsx(Gr,{...o,...r,ref:t})});Yr.displayName=Mp;var Xr="MenuPortal",[Pp,Fa]=nt(Xr,{forceMount:void 0}),$a=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=rt(Xr,t);return i.jsx(Pp,{scope:t,forceMount:n,children:i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};$a.displayName=Xr;var ye="MenuContent",[jp,Zr]=nt(ye),Ua=l.forwardRef((e,t)=>{const n=Fa(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Te,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(Ap,{...o,ref:t}):i.jsx(Np,{...o,ref:t})})})})}),Ap=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Jr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Np=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu);return i.jsx(Jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_p=Xe("MenuContent.ScrollLock"),Jr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,disableOutsideScroll:x,...m}=e,v=rt(ye,n),b=zt(ye,n),C=Mn(n),w=La(n),E=kp(n),[S,M]=l.useState(null),k=l.useRef(null),A=ne(t,k,v.onContentChange),D=l.useRef(0),F=l.useRef(""),H=l.useRef(0),_=l.useRef(null),Y=l.useRef("right"),U=l.useRef(0),J=x?wn:l.Fragment,O=x?{as:_p,allowPinchZoom:!0}:void 0,K=j=>{var P,X;const Q=F.current+j,y=E().filter(G=>!G.disabled),T=document.activeElement,$=(P=y.find(G=>G.ref.current===T))==null?void 0:P.textValue,L=y.map(G=>G.textValue),V=Vp(L,Q,$),W=(X=y.find(G=>G.textValue===V))==null?void 0:X.ref.current;(function G(ee){F.current=ee,window.clearTimeout(D.current),ee!==""&&(D.current=window.setTimeout(()=>G(""),1e3))})(Q),W&&setTimeout(()=>W.focus())};l.useEffect(()=>()=>window.clearTimeout(D.current),[]),Ar();const I=l.useCallback(j=>{var y,T;return Y.current===((y=_.current)==null?void 0:y.side)&&qp(j,(T=_.current)==null?void 0:T.area)},[]);return i.jsx(jp,{scope:n,searchRef:F,onItemEnter:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),onItemLeave:l.useCallback(j=>{var Q;I(j)||((Q=k.current)==null||Q.focus(),M(null))},[I]),onTriggerLeave:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),pointerGraceTimerRef:H,onPointerGraceIntentChange:l.useCallback(j=>{_.current=j},[]),children:i.jsx(J,{...O,children:i.jsx(xn,{asChild:!0,trapped:o,onMountAutoFocus:N(s,j=>{var Q;j.preventDefault(),(Q=k.current)==null||Q.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,children:i.jsx(Na,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:N(d,j=>{b.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(qr,{role:"menu","aria-orientation":"vertical","data-state":ni(v.open),"data-radix-menu-content":"",dir:b.dir,...C,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:N(m.onKeyDown,j=>{const y=j.target.closest("[data-radix-menu-content]")===j.currentTarget,T=j.ctrlKey||j.altKey||j.metaKey,$=j.key.length===1;y&&(j.key==="Tab"&&j.preventDefault(),!T&&$&&K(j.key));const L=k.current;if(j.target!==L||!wp.includes(j.key))return;j.preventDefault();const W=E().filter(P=>!P.disabled).map(P=>P.ref.current);Ia.includes(j.key)&&W.reverse(),zp(W)}),onBlur:N(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(D.current),F.current="")}),onPointerMove:N(e.onPointerMove,_t(j=>{const Q=j.target,y=U.current!==j.clientX;if(j.currentTarget.contains(Q)&&y){const T=j.clientX>U.current?"right":"left";Y.current=T,U.current=j.clientX}}))})})})})})})});Ua.displayName=ye;var Ip="MenuGroup",Qr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"group",...r,ref:t})});Qr.displayName=Ip;var Op="MenuLabel",Ha=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{...r,ref:t})});Ha.displayName=Op;var dn="MenuItem",Zo="menu.itemSelect",Pn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=zt(dn,e.__scopeMenu),c=Zr(dn,e.__scopeMenu),d=ne(t,s),u=l.useRef(!1),f=()=>{const p=s.current;if(!n&&p){const h=new CustomEvent(Zo,{bubbles:!0,cancelable:!0});p.addEventListener(Zo,g=>r==null?void 0:r(g),{once:!0}),Rs(p,h),h.defaultPrevented?u.current=!1:a.onClose()}};return i.jsx(Ba,{...o,ref:d,disabled:n,onClick:N(e.onClick,f),onPointerDown:p=>{var h;(h=e.onPointerDown)==null||h.call(e,p),u.current=!0},onPointerUp:N(e.onPointerUp,p=>{var h;u.current||(h=p.currentTarget)==null||h.click()}),onKeyDown:N(e.onKeyDown,p=>{const h=c.searchRef.current!=="";n||h&&p.key===" "||dr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Pn.displayName=dn;var Ba=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Zr(dn,n),c=La(n),d=l.useRef(null),u=ne(t,d),[f,p]=l.useState(!1),[h,g]=l.useState("");return l.useEffect(()=>{const x=d.current;x&&g((x.textContent??"").trim())},[s.children]),i.jsx(Nt.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:i.jsx(_a,{asChild:!0,...c,focusable:!r,children:i.jsx(z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:N(e.onPointerMove,_t(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,_t(x=>a.onItemLeave(x))),onFocus:N(e.onFocus,()=>p(!0)),onBlur:N(e.onBlur,()=>p(!1))})})})}),Lp="MenuCheckboxItem",za=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Ka,{scope:e.__scopeMenu,checked:n,children:i.jsx(Pn,{role:"menuitemcheckbox","aria-checked":fn(n)?"mixed":n,...o,ref:t,"data-state":to(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(fn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});za.displayName=Lp;var Wa="MenuRadioGroup",[Dp,Fp]=nt(Wa,{value:void 0,onValueChange:()=>{}}),Va=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ke(r);return i.jsx(Dp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Qr,{...o,ref:t})})});Va.displayName=Wa;var Ga="MenuRadioItem",qa=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=Fp(Ga,e.__scopeMenu),s=n===o.value;return i.jsx(Ka,{scope:e.__scopeMenu,checked:s,children:i.jsx(Pn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":to(s),onSelect:N(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});qa.displayName=Ga;var eo="MenuItemIndicator",[Ka,$p]=nt(eo,{checked:!1}),Ya=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=$p(eo,n);return i.jsx(Te,{present:r||fn(s.checked)||s.checked===!0,children:i.jsx(z.span,{...o,ref:t,"data-state":to(s.checked)})})});Ya.displayName=eo;var Up="MenuSeparator",Xa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Xa.displayName=Up;var Hp="MenuArrow",Za=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mn(n);return i.jsx(Kr,{...o,...r,ref:t})});Za.displayName=Hp;var Bp="MenuSub",[Zg,Ja]=nt(Bp),Mt="MenuSubTrigger",Qa=l.forwardRef((e,t)=>{const n=rt(Mt,e.__scopeMenu),r=zt(Mt,e.__scopeMenu),o=Ja(Mt,e.__scopeMenu),s=Zr(Mt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,u={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),d(null)}},[c,d]),i.jsx(Yr,{asChild:!0,...u,children:i.jsx(Ba,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ni(n.open),...e,ref:vn(t,o.onTriggerChange),onClick:p=>{var h;(h=e.onClick)==null||h.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,_t(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:N(e.onPointerLeave,_t(p=>{var g,x;f();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const m=(x=n.content)==null?void 0:x.dataset.side,v=m==="right",b=v?-5:5,C=h[v?"left":"right"],w=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+b,y:p.clientY},{x:C,y:h.top},{x:w,y:h.top},{x:w,y:h.bottom},{x:C,y:h.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,p=>{var g;const h=s.searchRef.current!=="";e.disabled||h&&p.key===" "||Cp[r.dir].includes(p.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),p.preventDefault())})})})});Qa.displayName=Mt;var ei="MenuSubContent",ti=l.forwardRef((e,t)=>{const n=Fa(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu),c=Ja(ei,e.__scopeMenu),d=l.useRef(null),u=ne(t,d);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Te,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:i.jsx(Jr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;a.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:N(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:N(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),h=Ep[a.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),f.preventDefault())})})})})})});ti.displayName=ei;function ni(e){return e?"open":"closed"}function fn(e){return e==="indeterminate"}function to(e){return fn(e)?"indeterminate":e?"checked":"unchecked"}function zp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Vp(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Wp(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Gp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function qp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Gp(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Kp=Da,Yp=Yr,Xp=$a,Zp=Ua,Jp=Qr,Qp=Ha,eh=Pn,th=za,nh=Va,rh=qa,oh=Ya,sh=Xa,ah=Za,ih=Qa,ch=ti,jn="DropdownMenu",[lh]=Ie(jn,[Oa]),le=Oa(),[uh,ri]=lh(jn),oi=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,d=le(t),u=l.useRef(null),[f,p]=Ze({prop:o,defaultProp:s??!1,onChange:a,caller:jn});return i.jsx(uh,{scope:t,triggerId:Ee(),triggerRef:u,contentId:Ee(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(h=>!h),[p]),modal:c,children:i.jsx(Kp,{...d,open:f,onOpenChange:p,dir:r,modal:c,children:n})})};oi.displayName=jn;var si="DropdownMenuTrigger",ai=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ri(si,n),a=le(n);return i.jsx(Yp,{asChild:!0,...a,children:i.jsx(z.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:vn(t,s.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});ai.displayName=si;var dh="DropdownMenuPortal",ii=e=>{const{__scopeDropdownMenu:t,...n}=e,r=le(t);return i.jsx(Xp,{...r,...n})};ii.displayName=dh;var ci="DropdownMenuContent",li=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ri(ci,n),s=le(n),a=l.useRef(!1);return i.jsx(Zp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var d;a.current||(d=o.triggerRef.current)==null||d.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(a.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)"}})});li.displayName=ci;var fh="DropdownMenuGroup",ph=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(Jp,{...o,...r,ref:t})});ph.displayName=fh;var hh="DropdownMenuLabel",ui=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(Qp,{...o,...r,ref:t})});ui.displayName=hh;var mh="DropdownMenuItem",di=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(eh,{...o,...r,ref:t})});di.displayName=mh;var gh="DropdownMenuCheckboxItem",vh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(th,{...o,...r,ref:t})});vh.displayName=gh;var yh="DropdownMenuRadioGroup",xh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(nh,{...o,...r,ref:t})});xh.displayName=yh;var bh="DropdownMenuRadioItem",wh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(rh,{...o,...r,ref:t})});wh.displayName=bh;var Ch="DropdownMenuItemIndicator",Eh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(oh,{...o,...r,ref:t})});Eh.displayName=Ch;var kh="DropdownMenuSeparator",fi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(sh,{...o,...r,ref:t})});fi.displayName=kh;var Sh="DropdownMenuArrow",Rh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(ah,{...o,...r,ref:t})});Rh.displayName=Sh;var Th="DropdownMenuSubTrigger",Mh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(ih,{...o,...r,ref:t})});Mh.displayName=Th;var Ph="DropdownMenuSubContent",jh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(ch,{...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)"}})});jh.displayName=Ph;var Jg=oi,Qg=ai,ev=ii,tv=li,nv=ui,rv=di,ov=fi,Ah="Label",pi=l.forwardRef((e,t)=>i.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));pi.displayName=Ah;var sv=pi;function Jo(e,[t,n]){return Math.min(n,Math.max(t,e))}var Nh=[" ","Enter","ArrowUp","ArrowDown"],_h=[" ","Enter"],et="Select",[An,Nn,Ih]=jr(et),[xt]=Ie(et,[Ih,yt]),_n=yt(),[Oh,Ke]=xt(et),[Lh,Dh]=xt(et),hi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:h,required:g,form:x}=e,m=_n(t),[v,b]=l.useState(null),[C,w]=l.useState(null),[E,S]=l.useState(!1),M=yn(u),[k,A]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:et}),[D,F]=Ze({prop:a,defaultProp:c,onChange:d,caller:et}),H=l.useRef(null),_=v?x||!!v.closest("form"):!0,[Y,U]=l.useState(new Set),J=Array.from(Y).map(O=>O.props.value).join(";");return i.jsx(Vr,{...m,children:i.jsxs(Oh,{required:g,scope:t,trigger:v,onTriggerChange:b,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:Ee(),value:D,onValueChange:F,open:k,onOpenChange:A,dir:M,triggerPointerDownPosRef:H,disabled:h,children:[i.jsx(An.Provider,{scope:t,children:i.jsx(Lh,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{U(K=>new Set(K).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{U(K=>{const I=new Set(K);return I.delete(O),I})},[]),children:n})}),_?i.jsxs(Li,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:O=>F(O.target.value),disabled:h,form:x,children:[D===void 0?i.jsx("option",{value:""}):null,Array.from(Y)]},J):null]})})};hi.displayName=et;var mi="SelectTrigger",gi=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=_n(n),a=Ke(mi,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=Nn(n),f=l.useRef("touch"),[p,h,g]=Fi(m=>{const v=u().filter(w=>!w.disabled),b=v.find(w=>w.value===a.value),C=$i(v,m,b);C!==void 0&&a.onValueChange(C.value)}),x=m=>{c||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return i.jsx(Gr,{asChild:!0,...s,children:i.jsx(z.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Di(a.value)?"":void 0,...o,ref:d,onClick:N(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&x(m)}),onPointerDown:N(o.onPointerDown,m=>{f.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:N(o.onKeyDown,m=>{const v=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(v&&m.key===" ")&&Nh.includes(m.key)&&(x(),m.preventDefault())})})})});gi.displayName=mi;var vi="SelectValue",yi=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Ke(vi,n),{onValueNodeHasChildrenChange:u}=d,f=s!==void 0,p=ne(t,d.onValueNodeChange);return ie(()=>{u(f)},[u,f]),i.jsx(z.span,{...c,ref:p,style:{pointerEvents:"none"},children:Di(d.value)?i.jsx(i.Fragment,{children:a}):s})});yi.displayName=vi;var Fh="SelectIcon",xi=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});xi.displayName=Fh;var $h="SelectPortal",bi=e=>i.jsx($t,{asChild:!0,...e});bi.displayName=$h;var tt="SelectContent",wi=l.forwardRef((e,t)=>{const n=Ke(tt,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Dt.createPortal(i.jsx(Ci,{scope:e.__scopeSelect,children:i.jsx(An.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(Ei,{...e,ref:t})});wi.displayName=tt;var Ce=10,[Ci,Ye]=xt(tt),Uh="SelectContentImpl",Hh=Xe("SelectContent.RemoveScroll"),Ei=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v,...b}=e,C=Ke(tt,n),[w,E]=l.useState(null),[S,M]=l.useState(null),k=ne(t,P=>E(P)),[A,D]=l.useState(null),[F,H]=l.useState(null),_=Nn(n),[Y,U]=l.useState(!1),J=l.useRef(!1);l.useEffect(()=>{if(w)return Nr(w)},[w]),Ar();const O=l.useCallback(P=>{const[X,...G]=_().map(oe=>oe.ref.current),[ee]=G.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===X&&S&&(S.scrollTop=0),oe===ee&&S&&(S.scrollTop=S.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[_,S]),K=l.useCallback(()=>O([A,w]),[O,A,w]);l.useEffect(()=>{Y&&K()},[Y,K]);const{onOpenChange:I,triggerPointerDownPosRef:j}=C;l.useEffect(()=>{if(w){let P={x:0,y:0};const X=ee=>{var re,oe;P={x:Math.abs(Math.round(ee.pageX)-(((re=j.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((oe=j.current)==null?void 0:oe.y)??0))}},G=ee=>{P.x<=10&&P.y<=10?ee.preventDefault():w.contains(ee.target)||I(!1),document.removeEventListener("pointermove",X),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,I,j]),l.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[Q,y]=Fi(P=>{const X=_().filter(re=>!re.disabled),G=X.find(re=>re.ref.current===document.activeElement),ee=$i(X,P,G);ee&&setTimeout(()=>ee.ref.current.focus())}),T=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&(D(P),ee&&(J.current=!0))},[C.value]),$=l.useCallback(()=>w==null?void 0:w.focus(),[w]),L=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&H(P)},[C.value]),V=r==="popper"?fr:ki,W=V===fr?{side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v}:{};return i.jsx(Ci,{scope:n,content:w,viewport:S,onViewportChange:M,itemRefCallback:T,selectedItem:A,onItemLeave:$,itemTextRefCallback:L,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:Y,searchRef:Q,children:i.jsx(wn,{as:Hh,allowPinchZoom:!0,children:i.jsx(xn,{asChild:!0,trapped:C.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:N(o,P=>{var X;(X=C.trigger)==null||X.focus({preventScroll:!0}),P.preventDefault()}),children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:i.jsx(V,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:P=>P.preventDefault(),...b,...W,onPlaced:()=>U(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:N(b.onKeyDown,P=>{const X=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!X&&P.key.length===1&&y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let ee=_().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=ee.indexOf(re);ee=ee.slice(oe+1)}setTimeout(()=>O(ee)),P.preventDefault()}})})})})})})});Ei.displayName=Uh;var Bh="SelectItemAlignedPosition",ki=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ke(tt,n),a=Ye(tt,n),[c,d]=l.useState(null),[u,f]=l.useState(null),p=ne(t,k=>f(k)),h=Nn(n),g=l.useRef(!1),x=l.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:b,focusSelectedItem:C}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&v&&b){const k=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(s.dir!=="rtl"){const re=F.left-A.left,oe=D.left-re,fe=k.left-oe,Pe=k.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,Et=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.left=Et+"px"}else{const re=A.right-F.right,oe=window.innerWidth-D.right-re,fe=window.innerWidth-k.right-oe,Pe=k.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,Et=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.right=Et+"px"}const H=h(),_=window.innerHeight-Ce*2,Y=m.scrollHeight,U=window.getComputedStyle(u),J=parseInt(U.borderTopWidth,10),O=parseInt(U.paddingTop,10),K=parseInt(U.borderBottomWidth,10),I=parseInt(U.paddingBottom,10),j=J+O+Y+I+K,Q=Math.min(v.offsetHeight*5,j),y=window.getComputedStyle(m),T=parseInt(y.paddingTop,10),$=parseInt(y.paddingBottom,10),L=k.top+k.height/2-Ce,V=_-L,W=v.offsetHeight/2,P=v.offsetTop+W,X=J+O+P,G=j-X;if(X<=L){const re=H.length>0&&v===H[H.length-1].ref.current;c.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(V,W+(re?$:0)+oe+K),Pe=X+fe;c.style.height=Pe+"px"}else{const re=H.length>0&&v===H[0].ref.current;c.style.top="0px";const fe=Math.max(L,J+m.offsetTop+(re?T:0)+W)+G;c.style.height=fe+"px",m.scrollTop=X-L+m.offsetTop}c.style.margin=`${Ce}px 0`,c.style.minHeight=Q+"px",c.style.maxHeight=_+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,c,u,m,v,b,s.dir,r]);ie(()=>w(),[w]);const[E,S]=l.useState();ie(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const M=l.useCallback(k=>{k&&x.current===!0&&(w(),C==null||C(),x.current=!1)},[w,C]);return i.jsx(Wh,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:M,children:i.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:i.jsx(z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ki.displayName=Bh;var zh="SelectPopperPosition",fr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ce,...s}=e,a=_n(n);return i.jsx(qr,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});fr.displayName=zh;var[Wh,no]=xt(tt,{}),pr="SelectViewport",Si=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ye(pr,n),a=no(pr,n),c=ne(t,s.onViewportChange),d=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),i.jsx(An.Slot,{scope:n,children:i.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&p){const g=Math.abs(d.current-f.scrollTop);if(g>0){const x=window.innerHeight-Ce*2,m=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),b=Math.max(m,v);if(b<x){const C=b+g,w=Math.min(x,C),E=C-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});Si.displayName=pr;var Ri="SelectGroup",[Vh,Gh]=xt(Ri),qh=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ee();return i.jsx(Vh,{scope:n,id:o,children:i.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});qh.displayName=Ri;var Ti="SelectLabel",Kh=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Gh(Ti,n);return i.jsx(z.div,{id:o.id,...r,ref:t})});Kh.displayName=Ti;var pn="SelectItem",[Yh,Mi]=xt(pn),Pi=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Ke(pn,n),d=Ye(pn,n),u=c.value===r,[f,p]=l.useState(s??""),[h,g]=l.useState(!1),x=ne(t,C=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,C,r,o)}),m=Ee(),v=l.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(Yh,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(C=>{p(w=>w||((C==null?void 0:C.textContent)??"").trim())},[]),children:i.jsx(An.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:N(a.onFocus,()=>g(!0)),onBlur:N(a.onBlur,()=>g(!1)),onClick:N(a.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:N(a.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:N(a.onPointerDown,C=>{v.current=C.pointerType}),onPointerMove:N(a.onPointerMove,C=>{var w;v.current=C.pointerType,o?(w=d.onItemLeave)==null||w.call(d):v.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(a.onPointerLeave,C=>{var w;C.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:N(a.onKeyDown,C=>{var E;((E=d.searchRef)==null?void 0:E.current)!==""&&C.key===" "||(_h.includes(C.key)&&b(),C.key===" "&&C.preventDefault())})})})})});Pi.displayName=pn;var Pt="SelectItemText",ji=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Ke(Pt,n),c=Ye(Pt,n),d=Mi(Pt,n),u=Dh(Pt,n),[f,p]=l.useState(null),h=ne(t,b=>p(b),d.onItemTextChange,b=>{var C;return(C=c.itemTextRefCallback)==null?void 0:C.call(c,b,d.value,d.disabled)}),g=f==null?void 0:f.textContent,x=l.useMemo(()=>i.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return ie(()=>(m(x),()=>v(x)),[m,v,x]),i.jsxs(i.Fragment,{children:[i.jsx(z.span,{id:d.textId,...s,ref:h}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Dt.createPortal(s.children,a.valueNode):null]})});ji.displayName=Pt;var Ai="SelectItemIndicator",Ni=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Mi(Ai,n).isSelected?i.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});Ni.displayName=Ai;var hr="SelectScrollUpButton",_i=l.forwardRef((e,t)=>{const n=Ye(hr,e.__scopeSelect),r=no(hr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Oi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});_i.displayName=hr;var mr="SelectScrollDownButton",Ii=l.forwardRef((e,t)=>{const n=Ye(mr,e.__scopeSelect),r=no(mr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;s(f)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Oi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});Ii.displayName=mr;var Oi=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ye("SelectScrollButton",n),a=l.useRef(null),c=Nn(n),d=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>d(),[d]),ie(()=>{var f;const u=c().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),i.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{d()})})}),Xh="SelectSeparator",Zh=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});Zh.displayName=Xh;var gr="SelectArrow",Jh=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_n(n),s=Ke(gr,n),a=Ye(gr,n);return s.open&&a.position==="popper"?i.jsx(Kr,{...o,...r,ref:t}):null});Jh.displayName=gr;var Qh="SelectBubbleInput",Li=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=ne(r,o),a=Bd(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(p)}},[a,t]),i.jsx(z.select,{...n,style:{...Ts,...n.style},ref:s,defaultValue:t})});Li.displayName=Qh;function Di(e){return e===""||e===void 0}function Fi(e){const t=ke(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const c=n.current+a;t(c),(function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function $i(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=em(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function em(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var av=hi,iv=gi,cv=yi,lv=xi,uv=bi,dv=wi,fv=Si,pv=Pi,hv=ji,mv=Ni,gv=_i,vv=Ii,tm="Separator",Qo="horizontal",nm=["horizontal","vertical"],Ui=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Qo,...o}=e,s=rm(r)?r:Qo,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(z.div,{"data-orientation":s,...c,...o,ref:t})});Ui.displayName=tm;function rm(e){return nm.includes(e)}var yv=Ui,In="Tabs",[om]=Ie(In,[Tn]),Hi=Tn(),[sm,ro]=om(In),Bi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:c,activationMode:d="automatic",...u}=e,f=yn(c),[p,h]=Ze({prop:r,onChange:o,defaultProp:s??"",caller:In});return i.jsx(sm,{scope:n,baseId:Ee(),value:p,onValueChange:h,orientation:a,dir:f,activationMode:d,children:i.jsx(z.div,{dir:f,"data-orientation":a,...u,ref:t})})});Bi.displayName=In;var zi="TabsList",Wi=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=ro(zi,n),a=Hi(n);return i.jsx(Na,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:i.jsx(z.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Wi.displayName=zi;var Vi="TabsTrigger",Gi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=ro(Vi,n),c=Hi(n),d=Yi(a.baseId,r),u=Xi(a.baseId,r),f=r===a.value;return i.jsx(_a,{asChild:!0,...c,focusable:!o,active:f,children:i.jsx(z.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:N(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?a.onValueChange(r):p.preventDefault()}),onKeyDown:N(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&a.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const p=a.activationMode!=="manual";!f&&!o&&p&&a.onValueChange(r)})})})});Gi.displayName=Vi;var qi="TabsContent",Ki=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,c=ro(qi,n),d=Yi(c.baseId,r),u=Xi(c.baseId,r),f=r===c.value,p=l.useRef(f);return l.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),i.jsx(Te,{present:o||f,children:({present:h})=>i.jsx(z.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!h,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&s})})});Ki.displayName=qi;function Yi(e,t){return`${e}-trigger-${t}`}function Xi(e,t){return`${e}-content-${t}`}var am=Bi,im=Wi,cm=Gi,lm=Ki,[On]=Ie("Tooltip",[yt]),Ln=yt(),Zi="TooltipProvider",um=700,vr="tooltip.open",[dm,oo]=On(Zi),Ji=e=>{const{__scopeTooltip:t,delayDuration:n=um,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),i.jsx(dm,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};Ji.displayName=Zi;var It="Tooltip",[fm,Wt]=On(It),Qi=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=oo(It,e.__scopeTooltip),u=Ln(t),[f,p]=l.useState(null),h=Ee(),g=l.useRef(0),x=a??d.disableHoverableContent,m=c??d.delayDuration,v=l.useRef(!1),[b,C]=Ze({prop:r,defaultProp:o??!1,onChange:k=>{k?(d.onOpen(),document.dispatchEvent(new CustomEvent(vr))):d.onClose(),s==null||s(k)},caller:It}),w=l.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),E=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,C(!0)},[C]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),M=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,C(!0),g.current=0},m)},[m,C]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),i.jsx(Vr,{...u,children:i.jsx(fm,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{d.isOpenDelayedRef.current?M():E()},[d.isOpenDelayedRef,M,E]),onTriggerLeave:l.useCallback(()=>{x?S():(window.clearTimeout(g.current),g.current=0)},[S,x]),onOpen:E,onClose:S,disableHoverableContent:x,children:n})})};Qi.displayName=It;var yr="TooltipTrigger",ec=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(yr,n),s=oo(yr,n),a=Ln(n),c=l.useRef(null),d=ne(t,c,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),i.jsx(Gr,{asChild:!0,...a,children:i.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:N(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:N(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});ec.displayName=yr;var so="TooltipPortal",[pm,hm]=On(so,{forceMount:void 0}),tc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wt(so,t);return i.jsx(pm,{scope:t,forceMount:n,children:i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};tc.displayName=so;var ft="TooltipContent",nc=l.forwardRef((e,t)=>{const n=hm(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Wt(ft,e.__scopeTooltip);return i.jsx(Te,{present:r||a.open,children:a.disableHoverableContent?i.jsx(rc,{side:o,...s,ref:t}):i.jsx(mm,{side:o,...s,ref:t})})}),mm=l.forwardRef((e,t)=>{const n=Wt(ft,e.__scopeTooltip),r=oo(ft,e.__scopeTooltip),o=l.useRef(null),s=ne(t,o),[a,c]=l.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{c(null),p(!1)},[p]),g=l.useCallback((x,m)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},C=xm(b,v.getBoundingClientRect()),w=bm(b,C),E=wm(m.getBoundingClientRect()),S=Em([...w,...E]);c(S),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(d&&f){const x=v=>g(v,f),m=v=>g(v,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",m)}}},[d,f,g,h]),l.useEffect(()=>{if(a){const x=m=>{const v=m.target,b={x:m.clientX,y:m.clientY},C=(d==null?void 0:d.contains(v))||(f==null?void 0:f.contains(v)),w=!Cm(b,a);C?h():w&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,a,u,h]),i.jsx(rc,{...e,ref:s})}),[gm,vm]=On(It,{isInside:!1}),ym=au("TooltipContent"),rc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=Wt(ft,n),u=Ln(n),{onClose:f}=d;return l.useEffect(()=>(document.addEventListener(vr,f),()=>document.removeEventListener(vr,f)),[f]),l.useEffect(()=>{if(d.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:i.jsxs(qr,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.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:[i.jsx(ym,{children:r}),i.jsx(gm,{scope:n,isInside:!0,children:i.jsx(fu,{id:d.contentId,role:"tooltip",children:o||r})})]})})});nc.displayName=ft;var oc="TooltipArrow",sc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ln(n);return vm(oc,n).isInside?null:i.jsx(Kr,{...o,...r,ref:t})});sc.displayName=oc;function xm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bm(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 wm(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 Cm(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function Em(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),km(t)}function km(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 xv=Ji,bv=Qi,wv=ec,Cv=tc,Ev=nc,kv=sc;const ao="-",Sm=e=>{const t=Tm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(ao);return c[0]===""&&c.length!==1&&c.shift(),ac(c,t)||Rm(a)},getConflictingClassGroupIds:(a,c)=>{const d=n[a]||[];return c&&r[a]?[...d,...r[a]]:d}}},ac=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ac(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ao);return(a=t.validators.find(({validator:c})=>c(s)))==null?void 0:a.classGroupId},es=/^\[(.+)\]$/,Rm=e=>{if(es.test(e)){const t=es.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tm=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Pm(Object.entries(e.classGroups),n).forEach(([s,a])=>{xr(a,r,s,t)}),r},xr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ts(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Mm(o)){xr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{xr(a,ts(t,s),n,r)})})},ts=(e,t)=>{let n=e;return t.split(ao).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mm=e=>e.isThemeGetter,Pm=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,c])=>[t+a,c])):s);return[n,o]}):e,jm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},ic="!",Am=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=c=>{const d=[];let u=0,f=0,p;for(let v=0;v<c.length;v++){let b=c[v];if(u===0){if(b===o&&(r||c.slice(v,v+s)===t)){d.push(c.slice(f,v)),f=v+s;continue}if(b==="/"){p=v;continue}}b==="["?u++:b==="]"&&u--}const h=d.length===0?c:c.substring(f),g=h.startsWith(ic),x=g?h.substring(1):h,m=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:m}};return n?c=>n({className:c,parseClassName:a}):a},Nm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},_m=e=>({cache:jm(e.cacheSize),parseClassName:Am(e),...Sm(e)}),Im=/\s+/,Om=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Im);let c="";for(let d=a.length-1;d>=0;d-=1){const u=a[d],{modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);let x=!!g,m=r(x?h.substring(0,g):h);if(!m){if(!x){c=u+(c.length>0?" "+c:c);continue}if(m=r(h),!m){c=u+(c.length>0?" "+c:c);continue}x=!1}const v=Nm(f).join(":"),b=p?v+ic:v,C=b+m;if(s.includes(C))continue;s.push(C);const w=o(m,x);for(let E=0;E<w.length;++E){const S=w[E];s.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function Lm(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=cc(t))&&(r&&(r+=" "),r+=n);return r}const cc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cc(e[r]))&&(n&&(n+=" "),n+=t);return n};function Dm(e,...t){let n,r,o,s=a;function a(d){const u=t.reduce((f,p)=>p(f),e());return n=_m(u),r=n.cache.get,o=n.cache.set,s=c,c(d)}function c(d){const u=r(d);if(u)return u;const f=Om(d,n);return o(d,f),f}return function(){return s(Lm.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},lc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fm=/^\d+\/\d+$/,$m=new Set(["px","full","screen"]),Um=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ut(e)||$m.has(e)||Fm.test(e),Be=e=>bt(e,"length",Jm),ut=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>bt(e,"number",ut),Rt=e=>!!e&&Number.isInteger(Number(e)),Vm=e=>e.endsWith("%")&&ut(e.slice(0,-1)),q=e=>lc.test(e),ze=e=>Um.test(e),Gm=new Set(["length","size","percentage"]),qm=e=>bt(e,Gm,uc),Km=e=>bt(e,"position",uc),Ym=new Set(["image","url"]),Xm=e=>bt(e,Ym,eg),Zm=e=>bt(e,"",Qm),Tt=()=>!0,bt=(e,t,n)=>{const r=lc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Jm=e=>Hm.test(e)&&!Bm.test(e),uc=()=>!1,Qm=e=>zm.test(e),eg=e=>Wm.test(e),tg=()=>{const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),o=se("borderColor"),s=se("borderRadius"),a=se("borderSpacing"),c=se("borderWidth"),d=se("contrast"),u=se("grayscale"),f=se("hueRotate"),p=se("invert"),h=se("gap"),g=se("gradientColorStops"),x=se("gradientColorStopPositions"),m=se("inset"),v=se("margin"),b=se("opacity"),C=se("padding"),w=se("saturate"),E=se("scale"),S=se("sepia"),M=se("skew"),k=se("space"),A=se("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",q,t],_=()=>[q,t],Y=()=>["",Le,Be],U=()=>["auto",ut,q],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",q],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>[ut,q];return{cacheSize:500,separator:":",theme:{colors:[Tt],spacing:[Le,Be],blur:["none","",ze,q],brightness:y(),borderColor:[e],borderRadius:["none","","full",ze,q],borderSpacing:_(),borderWidth:Y(),contrast:y(),grayscale:j(),hueRotate:y(),invert:j(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[Vm,Be],inset:H(),margin:H(),opacity:y(),padding:_(),saturate:y(),scale:y(),sepia:j(),skew:y(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[ze]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rt,q]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Rt,q]}],"grid-cols":[{"grid-cols":[Tt]}],"col-start-end":[{col:["auto",{span:["full",Rt,q]},q]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Tt]}],"row-start-end":[{row:["auto",{span:[Rt,q]},q]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[ze]},ze]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ze,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[Tt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",ut,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Be]}],"underline-offset":[{"underline-offset":["auto",Le,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Km]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Le,q]}],"outline-w":[{outline:[Le,Be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Le,Be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ze,Zm]}],"shadow-color":[{shadow:[Tt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ze,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:y()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:y()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Rt,q]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Be,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ng=Dm(tg);function we(...e){return ng(Es(e))}const rg=Pr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function og({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?ks:"button";return i.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:we(rg({variant:t,size:n,className:e})),...o})}/**
|
|
37
89
|
* @license lucide-react v0.468.0 - ISC
|
|
38
90
|
*
|
|
39
91
|
* This source code is licensed under the ISC license.
|
|
40
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
93
|
+
*/const sg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
42
94
|
* @license lucide-react v0.468.0 - ISC
|
|
43
95
|
*
|
|
44
96
|
* This source code is licensed under the ISC license.
|
|
45
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var
|
|
98
|
+
*/var ag={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
47
99
|
* @license lucide-react v0.468.0 - ISC
|
|
48
100
|
*
|
|
49
101
|
* This source code is licensed under the ISC license.
|
|
50
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
103
|
+
*/const ig=l.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...c},d)=>l.createElement("svg",{ref:d,...ag,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:dc("lucide",o),...c},[...a.map(([u,f])=>l.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
|
|
52
104
|
* @license lucide-react v0.468.0 - ISC
|
|
53
105
|
*
|
|
54
106
|
* This source code is licensed under the ISC license.
|
|
55
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const R=(e,t)=>{const n=l.forwardRef(({className:r,...o},s)=>l.createElement(
|
|
108
|
+
*/const R=(e,t)=>{const n=l.forwardRef(({className:r,...o},s)=>l.createElement(ig,{ref:s,iconNode:t,className:dc(`lucide-${sg(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
57
109
|
* @license lucide-react v0.468.0 - ISC
|
|
58
110
|
*
|
|
59
111
|
* This source code is licensed under the ISC license.
|
|
60
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
113
|
+
*/const Sv=R("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
62
114
|
* @license lucide-react v0.468.0 - ISC
|
|
63
115
|
*
|
|
64
116
|
* This source code is licensed under the ISC license.
|
|
65
117
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
118
|
+
*/const Rv=R("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
|
67
119
|
* @license lucide-react v0.468.0 - ISC
|
|
68
120
|
*
|
|
69
121
|
* This source code is licensed under the ISC license.
|
|
70
122
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
123
|
+
*/const Tv=R("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
72
124
|
* @license lucide-react v0.468.0 - ISC
|
|
73
125
|
*
|
|
74
126
|
* This source code is licensed under the ISC license.
|
|
75
127
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
128
|
+
*/const Mv=R("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
77
129
|
* @license lucide-react v0.468.0 - ISC
|
|
78
130
|
*
|
|
79
131
|
* This source code is licensed under the ISC license.
|
|
80
132
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
133
|
+
*/const Pv=R("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/**
|
|
82
134
|
* @license lucide-react v0.468.0 - ISC
|
|
83
135
|
*
|
|
84
136
|
* This source code is licensed under the ISC license.
|
|
85
137
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
138
|
+
*/const jv=R("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
87
139
|
* @license lucide-react v0.468.0 - ISC
|
|
88
140
|
*
|
|
89
141
|
* This source code is licensed under the ISC license.
|
|
90
142
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
143
|
+
*/const Av=R("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
|
|
92
144
|
* @license lucide-react v0.468.0 - ISC
|
|
93
145
|
*
|
|
94
146
|
* This source code is licensed under the ISC license.
|
|
95
147
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
148
|
+
*/const Nv=R("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
97
149
|
* @license lucide-react v0.468.0 - ISC
|
|
98
150
|
*
|
|
99
151
|
* This source code is licensed under the ISC license.
|
|
100
152
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
153
|
+
*/const _v=R("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
102
154
|
* @license lucide-react v0.468.0 - ISC
|
|
103
155
|
*
|
|
104
156
|
* This source code is licensed under the ISC license.
|
|
105
157
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
158
|
+
*/const Iv=R("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
|
|
107
159
|
* @license lucide-react v0.468.0 - ISC
|
|
108
160
|
*
|
|
109
161
|
* This source code is licensed under the ISC license.
|
|
110
162
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
163
|
+
*/const Ov=R("BellRing",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]]);/**
|
|
112
164
|
* @license lucide-react v0.468.0 - ISC
|
|
113
165
|
*
|
|
114
166
|
* This source code is licensed under the ISC license.
|
|
115
167
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
168
|
+
*/const Lv=R("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
|
|
117
169
|
* @license lucide-react v0.468.0 - ISC
|
|
118
170
|
*
|
|
119
171
|
* This source code is licensed under the ISC license.
|
|
120
172
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
173
|
+
*/const cg=R("BookOpen",[["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"}]]);/**
|
|
122
174
|
* @license lucide-react v0.468.0 - ISC
|
|
123
175
|
*
|
|
124
176
|
* This source code is licensed under the ISC license.
|
|
125
177
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
178
|
+
*/const Dv=R("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
127
179
|
* @license lucide-react v0.468.0 - ISC
|
|
128
180
|
*
|
|
129
181
|
* This source code is licensed under the ISC license.
|
|
130
182
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
183
|
+
*/const Fv=R("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
132
184
|
* @license lucide-react v0.468.0 - ISC
|
|
133
185
|
*
|
|
134
186
|
* This source code is licensed under the ISC license.
|
|
135
187
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
188
|
+
*/const $v=R("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
|
|
137
189
|
* @license lucide-react v0.468.0 - ISC
|
|
138
190
|
*
|
|
139
191
|
* This source code is licensed under the ISC license.
|
|
140
192
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
193
|
+
*/const Uv=R("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
142
194
|
* @license lucide-react v0.468.0 - ISC
|
|
143
195
|
*
|
|
144
196
|
* This source code is licensed under the ISC license.
|
|
145
197
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
198
|
+
*/const Hv=R("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
|
|
147
199
|
* @license lucide-react v0.468.0 - ISC
|
|
148
200
|
*
|
|
149
201
|
* This source code is licensed under the ISC license.
|
|
150
202
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const
|
|
203
|
+
*/const lg=R("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
152
204
|
* @license lucide-react v0.468.0 - ISC
|
|
153
205
|
*
|
|
154
206
|
* This source code is licensed under the ISC license.
|
|
155
207
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
208
|
+
*/const Bv=R("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
157
209
|
* @license lucide-react v0.468.0 - ISC
|
|
158
210
|
*
|
|
159
211
|
* This source code is licensed under the ISC license.
|
|
160
212
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const
|
|
213
|
+
*/const fc=R("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
162
214
|
* @license lucide-react v0.468.0 - ISC
|
|
163
215
|
*
|
|
164
216
|
* This source code is licensed under the ISC license.
|
|
165
217
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const
|
|
218
|
+
*/const zv=R("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
167
219
|
* @license lucide-react v0.468.0 - ISC
|
|
168
220
|
*
|
|
169
221
|
* This source code is licensed under the ISC license.
|
|
170
222
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const
|
|
223
|
+
*/const Wv=R("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
172
224
|
* @license lucide-react v0.468.0 - ISC
|
|
173
225
|
*
|
|
174
226
|
* This source code is licensed under the ISC license.
|
|
175
227
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const
|
|
228
|
+
*/const Vv=R("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/**
|
|
177
229
|
* @license lucide-react v0.468.0 - ISC
|
|
178
230
|
*
|
|
179
231
|
* This source code is licensed under the ISC license.
|
|
180
232
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const
|
|
233
|
+
*/const Gv=R("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
182
234
|
* @license lucide-react v0.468.0 - ISC
|
|
183
235
|
*
|
|
184
236
|
* This source code is licensed under the ISC license.
|
|
185
237
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const
|
|
238
|
+
*/const qv=R("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
187
239
|
* @license lucide-react v0.468.0 - ISC
|
|
188
240
|
*
|
|
189
241
|
* This source code is licensed under the ISC license.
|
|
190
242
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const
|
|
243
|
+
*/const Kv=R("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
|
|
192
244
|
* @license lucide-react v0.468.0 - ISC
|
|
193
245
|
*
|
|
194
246
|
* This source code is licensed under the ISC license.
|
|
195
247
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const
|
|
248
|
+
*/const Yv=R("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
197
249
|
* @license lucide-react v0.468.0 - ISC
|
|
198
250
|
*
|
|
199
251
|
* This source code is licensed under the ISC license.
|
|
200
252
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const
|
|
253
|
+
*/const Xv=R("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
|
|
202
254
|
* @license lucide-react v0.468.0 - ISC
|
|
203
255
|
*
|
|
204
256
|
* This source code is licensed under the ISC license.
|
|
205
257
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const
|
|
258
|
+
*/const Zv=R("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
207
259
|
* @license lucide-react v0.468.0 - ISC
|
|
208
260
|
*
|
|
209
261
|
* This source code is licensed under the ISC license.
|
|
210
262
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const
|
|
263
|
+
*/const Jv=R("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
|
212
264
|
* @license lucide-react v0.468.0 - ISC
|
|
213
265
|
*
|
|
214
266
|
* This source code is licensed under the ISC license.
|
|
215
267
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const
|
|
268
|
+
*/const Qv=R("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
|
|
217
269
|
* @license lucide-react v0.468.0 - ISC
|
|
218
270
|
*
|
|
219
271
|
* This source code is licensed under the ISC license.
|
|
220
272
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const
|
|
273
|
+
*/const ey=R("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
222
274
|
* @license lucide-react v0.468.0 - ISC
|
|
223
275
|
*
|
|
224
276
|
* This source code is licensed under the ISC license.
|
|
225
277
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const
|
|
278
|
+
*/const ug=R("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
227
279
|
* @license lucide-react v0.468.0 - ISC
|
|
228
280
|
*
|
|
229
281
|
* This source code is licensed under the ISC license.
|
|
230
282
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const
|
|
283
|
+
*/const dg=R("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
232
284
|
* @license lucide-react v0.468.0 - ISC
|
|
233
285
|
*
|
|
234
286
|
* This source code is licensed under the ISC license.
|
|
235
287
|
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const
|
|
288
|
+
*/const ty=R("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
237
289
|
* @license lucide-react v0.468.0 - ISC
|
|
238
290
|
*
|
|
239
291
|
* This source code is licensed under the ISC license.
|
|
240
292
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const
|
|
293
|
+
*/const ny=R("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
|
|
242
294
|
* @license lucide-react v0.468.0 - ISC
|
|
243
295
|
*
|
|
244
296
|
* This source code is licensed under the ISC license.
|
|
245
297
|
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const
|
|
298
|
+
*/const ry=R("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
247
299
|
* @license lucide-react v0.468.0 - ISC
|
|
248
300
|
*
|
|
249
301
|
* This source code is licensed under the ISC license.
|
|
250
302
|
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const
|
|
303
|
+
*/const oy=R("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
252
304
|
* @license lucide-react v0.468.0 - ISC
|
|
253
305
|
*
|
|
254
306
|
* This source code is licensed under the ISC license.
|
|
255
307
|
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const
|
|
308
|
+
*/const sy=R("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
257
309
|
* @license lucide-react v0.468.0 - ISC
|
|
258
310
|
*
|
|
259
311
|
* This source code is licensed under the ISC license.
|
|
260
312
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const
|
|
313
|
+
*/const ay=R("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
262
314
|
* @license lucide-react v0.468.0 - ISC
|
|
263
315
|
*
|
|
264
316
|
* This source code is licensed under the ISC license.
|
|
265
317
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const
|
|
318
|
+
*/const iy=R("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
267
319
|
* @license lucide-react v0.468.0 - ISC
|
|
268
320
|
*
|
|
269
321
|
* This source code is licensed under the ISC license.
|
|
270
322
|
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const
|
|
323
|
+
*/const cy=R("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
|
|
272
324
|
* @license lucide-react v0.468.0 - ISC
|
|
273
325
|
*
|
|
274
326
|
* This source code is licensed under the ISC license.
|
|
275
327
|
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const
|
|
328
|
+
*/const ly=R("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
277
329
|
* @license lucide-react v0.468.0 - ISC
|
|
278
330
|
*
|
|
279
331
|
* This source code is licensed under the ISC license.
|
|
280
332
|
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const
|
|
333
|
+
*/const fg=R("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
|
|
282
334
|
* @license lucide-react v0.468.0 - ISC
|
|
283
335
|
*
|
|
284
336
|
* This source code is licensed under the ISC license.
|
|
285
337
|
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const
|
|
338
|
+
*/const uy=R("Folder",[["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"}]]);/**
|
|
287
339
|
* @license lucide-react v0.468.0 - ISC
|
|
288
340
|
*
|
|
289
341
|
* This source code is licensed under the ISC license.
|
|
290
342
|
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const
|
|
343
|
+
*/const dy=R("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
292
344
|
* @license lucide-react v0.468.0 - ISC
|
|
293
345
|
*
|
|
294
346
|
* This source code is licensed under the ISC license.
|
|
295
347
|
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const
|
|
348
|
+
*/const fy=R("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
297
349
|
* @license lucide-react v0.468.0 - ISC
|
|
298
350
|
*
|
|
299
351
|
* This source code is licensed under the ISC license.
|
|
300
352
|
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const
|
|
353
|
+
*/const py=R("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
|
|
302
354
|
* @license lucide-react v0.468.0 - ISC
|
|
303
355
|
*
|
|
304
356
|
* This source code is licensed under the ISC license.
|
|
305
357
|
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const
|
|
358
|
+
*/const hy=R("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/**
|
|
307
359
|
* @license lucide-react v0.468.0 - ISC
|
|
308
360
|
*
|
|
309
361
|
* This source code is licensed under the ISC license.
|
|
310
362
|
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const
|
|
363
|
+
*/const my=R("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|
312
364
|
* @license lucide-react v0.468.0 - ISC
|
|
313
365
|
*
|
|
314
366
|
* This source code is licensed under the ISC license.
|
|
315
367
|
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const
|
|
368
|
+
*/const gy=R("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
317
369
|
* @license lucide-react v0.468.0 - ISC
|
|
318
370
|
*
|
|
319
371
|
* This source code is licensed under the ISC license.
|
|
320
372
|
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
-
*/const
|
|
373
|
+
*/const pc=R("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
322
374
|
* @license lucide-react v0.468.0 - ISC
|
|
323
375
|
*
|
|
324
376
|
* This source code is licensed under the ISC license.
|
|
325
377
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const
|
|
378
|
+
*/const vy=R("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/**
|
|
327
379
|
* @license lucide-react v0.468.0 - ISC
|
|
328
380
|
*
|
|
329
381
|
* This source code is licensed under the ISC license.
|
|
330
382
|
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/const
|
|
383
|
+
*/const yy=R("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
332
384
|
* @license lucide-react v0.468.0 - ISC
|
|
333
385
|
*
|
|
334
386
|
* This source code is licensed under the ISC license.
|
|
335
387
|
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
-
*/const
|
|
388
|
+
*/const xy=R("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
337
389
|
* @license lucide-react v0.468.0 - ISC
|
|
338
390
|
*
|
|
339
391
|
* This source code is licensed under the ISC license.
|
|
340
392
|
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
-
*/const
|
|
393
|
+
*/const by=R("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
342
394
|
* @license lucide-react v0.468.0 - ISC
|
|
343
395
|
*
|
|
344
396
|
* This source code is licensed under the ISC license.
|
|
345
397
|
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
-
*/const
|
|
398
|
+
*/const wy=R("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
347
399
|
* @license lucide-react v0.468.0 - ISC
|
|
348
400
|
*
|
|
349
401
|
* This source code is licensed under the ISC license.
|
|
350
402
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/const
|
|
403
|
+
*/const Cy=R("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
352
404
|
* @license lucide-react v0.468.0 - ISC
|
|
353
405
|
*
|
|
354
406
|
* This source code is licensed under the ISC license.
|
|
355
407
|
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
-
*/const
|
|
408
|
+
*/const Ey=R("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
357
409
|
* @license lucide-react v0.468.0 - ISC
|
|
358
410
|
*
|
|
359
411
|
* This source code is licensed under the ISC license.
|
|
360
412
|
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const
|
|
413
|
+
*/const ky=R("LogOut",[["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"}]]);/**
|
|
362
414
|
* @license lucide-react v0.468.0 - ISC
|
|
363
415
|
*
|
|
364
416
|
* This source code is licensed under the ISC license.
|
|
365
417
|
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/const
|
|
418
|
+
*/const Sy=R("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
367
419
|
* @license lucide-react v0.468.0 - ISC
|
|
368
420
|
*
|
|
369
421
|
* This source code is licensed under the ISC license.
|
|
370
422
|
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/const
|
|
423
|
+
*/const Ry=R("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
|
|
372
424
|
* @license lucide-react v0.468.0 - ISC
|
|
373
425
|
*
|
|
374
426
|
* This source code is licensed under the ISC license.
|
|
375
427
|
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
-
*/const
|
|
428
|
+
*/const Ty=R("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
377
429
|
* @license lucide-react v0.468.0 - ISC
|
|
378
430
|
*
|
|
379
431
|
* This source code is licensed under the ISC license.
|
|
380
432
|
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
-
*/const
|
|
433
|
+
*/const My=R("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
382
434
|
* @license lucide-react v0.468.0 - ISC
|
|
383
435
|
*
|
|
384
436
|
* This source code is licensed under the ISC license.
|
|
385
437
|
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
-
*/const
|
|
438
|
+
*/const Py=R("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
387
439
|
* @license lucide-react v0.468.0 - ISC
|
|
388
440
|
*
|
|
389
441
|
* This source code is licensed under the ISC license.
|
|
390
442
|
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
-
*/const
|
|
443
|
+
*/const jy=R("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
392
444
|
* @license lucide-react v0.468.0 - ISC
|
|
393
445
|
*
|
|
394
446
|
* This source code is licensed under the ISC license.
|
|
395
447
|
* See the LICENSE file in the root directory of this source tree.
|
|
396
|
-
*/const
|
|
448
|
+
*/const Ay=R("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/**
|
|
397
449
|
* @license lucide-react v0.468.0 - ISC
|
|
398
450
|
*
|
|
399
451
|
* This source code is licensed under the ISC license.
|
|
400
452
|
* See the LICENSE file in the root directory of this source tree.
|
|
401
|
-
*/const
|
|
453
|
+
*/const Ny=R("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
402
454
|
* @license lucide-react v0.468.0 - ISC
|
|
403
455
|
*
|
|
404
456
|
* This source code is licensed under the ISC license.
|
|
405
457
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
-
*/const
|
|
458
|
+
*/const _y=R("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
407
459
|
* @license lucide-react v0.468.0 - ISC
|
|
408
460
|
*
|
|
409
461
|
* This source code is licensed under the ISC license.
|
|
410
462
|
* See the LICENSE file in the root directory of this source tree.
|
|
411
|
-
*/const
|
|
463
|
+
*/const Iy=R("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
412
464
|
* @license lucide-react v0.468.0 - ISC
|
|
413
465
|
*
|
|
414
466
|
* This source code is licensed under the ISC license.
|
|
415
467
|
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
-
*/const
|
|
468
|
+
*/const Oy=R("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
417
469
|
* @license lucide-react v0.468.0 - ISC
|
|
418
470
|
*
|
|
419
471
|
* This source code is licensed under the ISC license.
|
|
420
472
|
* See the LICENSE file in the root directory of this source tree.
|
|
421
|
-
*/const
|
|
473
|
+
*/const Ly=R("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
|
|
422
474
|
* @license lucide-react v0.468.0 - ISC
|
|
423
475
|
*
|
|
424
476
|
* This source code is licensed under the ISC license.
|
|
425
477
|
* See the LICENSE file in the root directory of this source tree.
|
|
426
|
-
*/const
|
|
478
|
+
*/const pg=R("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
427
479
|
* @license lucide-react v0.468.0 - ISC
|
|
428
480
|
*
|
|
429
481
|
* This source code is licensed under the ISC license.
|
|
430
482
|
* See the LICENSE file in the root directory of this source tree.
|
|
431
|
-
*/const
|
|
483
|
+
*/const Dy=R("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
432
484
|
* @license lucide-react v0.468.0 - ISC
|
|
433
485
|
*
|
|
434
486
|
* This source code is licensed under the ISC license.
|
|
435
487
|
* See the LICENSE file in the root directory of this source tree.
|
|
436
|
-
*/const
|
|
488
|
+
*/const Fy=R("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
|
|
437
489
|
* @license lucide-react v0.468.0 - ISC
|
|
438
490
|
*
|
|
439
491
|
* This source code is licensed under the ISC license.
|
|
440
492
|
* See the LICENSE file in the root directory of this source tree.
|
|
441
|
-
*/const
|
|
493
|
+
*/const $y=R("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
442
494
|
* @license lucide-react v0.468.0 - ISC
|
|
443
495
|
*
|
|
444
496
|
* This source code is licensed under the ISC license.
|
|
445
497
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
|
-
*/const
|
|
498
|
+
*/const Uy=R("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
447
499
|
* @license lucide-react v0.468.0 - ISC
|
|
448
500
|
*
|
|
449
501
|
* This source code is licensed under the ISC license.
|
|
450
502
|
* See the LICENSE file in the root directory of this source tree.
|
|
451
|
-
*/const
|
|
503
|
+
*/const Hy=R("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
452
504
|
* @license lucide-react v0.468.0 - ISC
|
|
453
505
|
*
|
|
454
506
|
* This source code is licensed under the ISC license.
|
|
455
507
|
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
-
*/const
|
|
508
|
+
*/const By=R("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
457
509
|
* @license lucide-react v0.468.0 - ISC
|
|
458
510
|
*
|
|
459
511
|
* This source code is licensed under the ISC license.
|
|
460
512
|
* See the LICENSE file in the root directory of this source tree.
|
|
461
|
-
*/const
|
|
513
|
+
*/const hg=R("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
462
514
|
* @license lucide-react v0.468.0 - ISC
|
|
463
515
|
*
|
|
464
516
|
* This source code is licensed under the ISC license.
|
|
465
517
|
* See the LICENSE file in the root directory of this source tree.
|
|
466
|
-
*/const
|
|
518
|
+
*/const zy=R("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
467
519
|
* @license lucide-react v0.468.0 - ISC
|
|
468
520
|
*
|
|
469
521
|
* This source code is licensed under the ISC license.
|
|
470
522
|
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
-
*/const
|
|
523
|
+
*/const Wy=R("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
472
524
|
* @license lucide-react v0.468.0 - ISC
|
|
473
525
|
*
|
|
474
526
|
* This source code is licensed under the ISC license.
|
|
475
527
|
* See the LICENSE file in the root directory of this source tree.
|
|
476
|
-
*/const
|
|
528
|
+
*/const Vy=R("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
477
529
|
* @license lucide-react v0.468.0 - ISC
|
|
478
530
|
*
|
|
479
531
|
* This source code is licensed under the ISC license.
|
|
480
532
|
* See the LICENSE file in the root directory of this source tree.
|
|
481
|
-
*/const
|
|
533
|
+
*/const Gy=R("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
482
534
|
* @license lucide-react v0.468.0 - ISC
|
|
483
535
|
*
|
|
484
536
|
* This source code is licensed under the ISC license.
|
|
485
537
|
* See the LICENSE file in the root directory of this source tree.
|
|
486
|
-
*/const
|
|
538
|
+
*/const qy=R("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
487
539
|
* @license lucide-react v0.468.0 - ISC
|
|
488
540
|
*
|
|
489
541
|
* This source code is licensed under the ISC license.
|
|
490
542
|
* See the LICENSE file in the root directory of this source tree.
|
|
491
|
-
*/const
|
|
543
|
+
*/const mg=R("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
492
544
|
* @license lucide-react v0.468.0 - ISC
|
|
493
545
|
*
|
|
494
546
|
* This source code is licensed under the ISC license.
|
|
495
547
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
|
-
*/const
|
|
548
|
+
*/const Ky=R("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/**
|
|
497
549
|
* @license lucide-react v0.468.0 - ISC
|
|
498
550
|
*
|
|
499
551
|
* This source code is licensed under the ISC license.
|
|
500
552
|
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
-
*/const
|
|
553
|
+
*/const Yy=R("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
502
554
|
* @license lucide-react v0.468.0 - ISC
|
|
503
555
|
*
|
|
504
556
|
* This source code is licensed under the ISC license.
|
|
505
557
|
* See the LICENSE file in the root directory of this source tree.
|
|
506
|
-
*/const
|
|
558
|
+
*/const Xy=R("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
|
|
507
559
|
* @license lucide-react v0.468.0 - ISC
|
|
508
560
|
*
|
|
509
561
|
* This source code is licensed under the ISC license.
|
|
510
562
|
* See the LICENSE file in the root directory of this source tree.
|
|
511
|
-
*/const
|
|
563
|
+
*/const Zy=R("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
512
564
|
* @license lucide-react v0.468.0 - ISC
|
|
513
565
|
*
|
|
514
566
|
* This source code is licensed under the ISC license.
|
|
515
567
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
|
-
*/const
|
|
568
|
+
*/const gg=R("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
517
569
|
* @license lucide-react v0.468.0 - ISC
|
|
518
570
|
*
|
|
519
571
|
* This source code is licensed under the ISC license.
|
|
520
572
|
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
-
*/const
|
|
573
|
+
*/const Jy=R("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
522
574
|
* @license lucide-react v0.468.0 - ISC
|
|
523
575
|
*
|
|
524
576
|
* This source code is licensed under the ISC license.
|
|
525
577
|
* See the LICENSE file in the root directory of this source tree.
|
|
526
|
-
*/const
|
|
578
|
+
*/const Qy=R("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
527
579
|
* @license lucide-react v0.468.0 - ISC
|
|
528
580
|
*
|
|
529
581
|
* This source code is licensed under the ISC license.
|
|
530
582
|
* See the LICENSE file in the root directory of this source tree.
|
|
531
|
-
*/const
|
|
583
|
+
*/const ex=R("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
532
584
|
* @license lucide-react v0.468.0 - ISC
|
|
533
585
|
*
|
|
534
586
|
* This source code is licensed under the ISC license.
|
|
535
587
|
* See the LICENSE file in the root directory of this source tree.
|
|
536
|
-
*/const
|
|
588
|
+
*/const tx=R("UserCheck",[["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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
|
|
537
589
|
* @license lucide-react v0.468.0 - ISC
|
|
538
590
|
*
|
|
539
591
|
* This source code is licensed under the ISC license.
|
|
540
592
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
|
-
*/const
|
|
593
|
+
*/const nx=R("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
|
|
542
594
|
* @license lucide-react v0.468.0 - ISC
|
|
543
595
|
*
|
|
544
596
|
* This source code is licensed under the ISC license.
|
|
545
597
|
* See the LICENSE file in the root directory of this source tree.
|
|
546
|
-
*/const
|
|
598
|
+
*/const rx=R("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
547
599
|
* @license lucide-react v0.468.0 - ISC
|
|
548
600
|
*
|
|
549
601
|
* This source code is licensed under the ISC license.
|
|
550
602
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
|
-
*/const
|
|
603
|
+
*/const ox=R("Users",[["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"}]]);/**
|
|
552
604
|
* @license lucide-react v0.468.0 - ISC
|
|
553
605
|
*
|
|
554
606
|
* This source code is licensed under the ISC license.
|
|
555
607
|
* See the LICENSE file in the root directory of this source tree.
|
|
556
|
-
*/const
|
|
608
|
+
*/const sx=R("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
557
609
|
* @license lucide-react v0.468.0 - ISC
|
|
558
610
|
*
|
|
559
611
|
* This source code is licensed under the ISC license.
|
|
560
612
|
* See the LICENSE file in the root directory of this source tree.
|
|
561
|
-
*/const
|
|
613
|
+
*/const ax=R("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
562
614
|
* @license lucide-react v0.468.0 - ISC
|
|
563
615
|
*
|
|
564
616
|
* This source code is licensed under the ISC license.
|
|
565
617
|
* See the LICENSE file in the root directory of this source tree.
|
|
566
|
-
*/const
|
|
618
|
+
*/const ix=R("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
567
619
|
* @license lucide-react v0.468.0 - ISC
|
|
568
620
|
*
|
|
569
621
|
* This source code is licensed under the ISC license.
|
|
570
622
|
* See the LICENSE file in the root directory of this source tree.
|
|
571
|
-
*/const
|
|
623
|
+
*/const cx=R("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
572
624
|
* @license lucide-react v0.468.0 - ISC
|
|
573
625
|
*
|
|
574
626
|
* This source code is licensed under the ISC license.
|
|
575
627
|
* See the LICENSE file in the root directory of this source tree.
|
|
576
|
-
*/const Ey=R("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var Dt=Ec();const mu=ns(Dt);function ks(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ks(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ss(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ks(e))&&(r&&(r+=" "),r+=t);return r}const Co=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eo=Ss,Pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Eo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=s==null?void 0:s[u];if(f===null)return null;const h=Co(f)||Co(p);return o[u][h]}),c=n&&Object.entries(n).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(x=>{let[m,v]=x;return Array.isArray(v)?v.includes({...s,...c}[m]):{...s,...c}[m]===v})?[...u,p,h]:u},[]);return Eo(e,a,d,n==null?void 0:n.class,n==null?void 0:n.className)};function ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ko(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ko(e[o],null)}}}}function ne(...e){return l.useCallback(vn(...e),e)}function Xe(e){const t=gu(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,c=l.Children.toArray(s),d=c.find(yu);if(d){const u=d.props.children,f=c.map(p=>p===d?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return i.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Rs=Xe("Slot");function gu(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=bu(o),c=xu(s,o.props);return o.type!==l.Fragment&&(c.ref=r?vn(r,a):a),l.cloneElement(o,c)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ts=Symbol("radix.slottable");function vu(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ts,t}function yu(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ts}function xu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=wu.reduce((e,t)=>{const n=Xe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...c}=o,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ms(e,t){e&&Dt.flushSync(()=>e.dispatchEvent(t))}var Ps=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Cu="VisuallyHidden",js=l.forwardRef((e,t)=>i.jsx(z.span,{...e,ref:t,style:{...Ps,...e.style}}));js.displayName=Cu;var Eu=js;function ku(e,t){const n=l.createContext(t),r=s=>{const{children:a,...c}=s,d=l.useMemo(()=>c,Object.values(c));return i.jsx(n.Provider,{value:d,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ie(e,t=[]){let n=[];function r(s,a){const c=l.createContext(a),d=n.length;n=[...n,a];const u=p=>{var b;const{scope:h,children:g,...x}=p,m=((b=h==null?void 0:h[e])==null?void 0:b[d])||c,v=l.useMemo(()=>x,Object.values(x));return i.jsx(m.Provider,{value:v,children:g})};u.displayName=s+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[d])||c,x=l.useContext(g);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(c){const d=(c==null?void 0:c[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,Su(o,...t)]}function Su(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:d,scopeName:u})=>{const p=d(s)[`__scope${u}`];return{...c,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function jr(e){const t=e+"CollectionProvider",[n,r]=Ie(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:v,children:b}=m,C=We.useRef(null),w=We.useRef(new Map).current;return i.jsx(o,{scope:v,itemMap:w,collectionRef:C,children:b})};a.displayName=t;const c=e+"CollectionSlot",d=Xe(c),u=We.forwardRef((m,v)=>{const{scope:b,children:C}=m,w=s(c,b),E=ne(v,w.collectionRef);return i.jsx(d,{ref:E,children:C})});u.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=Xe(f),g=We.forwardRef((m,v)=>{const{scope:b,children:C,...w}=m,E=We.useRef(null),S=ne(v,E),M=s(f,b);return We.useEffect(()=>(M.itemMap.set(E,{ref:E,...w}),()=>void M.itemMap.delete(E))),i.jsx(h,{[p]:"",ref:S,children:C})});g.displayName=f;function x(m){const v=s(e+"CollectionConsumer",m);return We.useCallback(()=>{const C=v.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((M,k)=>w.indexOf(M.ref.current)-w.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},x,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Ru=rs[" useInsertionEffect ".trim().toString()]||ie;function Ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Tu({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const u=l.useCallback(f=>{var p;if(c){const h=Mu(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[c,e,s,a]);return[d,u]}function Tu({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return Ru(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Mu(e){return typeof e=="function"}function Pu(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Te=e=>{const{present:t,children:n}=e,r=ju(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ne(r.ref,Au(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Te.displayName="Presence";function ju(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[c,d]=Pu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=qt(r.current);s.current=c==="mounted"?u:"none"},[c]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=qt(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const m=qt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=qt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qt(e){return(e==null?void 0:e.animationName)||"none"}function Au(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nu=rs[" useId ".trim().toString()]||(()=>{}),_u=0;function Ee(e){const[t,n]=l.useState(Nu());return ie(()=>{n(r=>r??String(_u++))},[e]),e||(t?`radix-${t}`:"")}var Iu=l.createContext(void 0);function yn(e){const t=l.useContext(Iu);return e||t||"ltr"}function ke(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ou(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e);l.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 Lu="DismissableLayer",sr="dismissableLayer.update",Du="dismissableLayer.pointerDownOutside",Fu="dismissableLayer.focusOutside",So,As=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...d}=e,u=l.useContext(As),[f,p]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),x=ne(t,k=>p(k)),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(v),C=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=b,S=Hu(k=>{const A=k.target,D=[...u.branches].some(F=>F.contains(A));!E||D||(o==null||o(k),a==null||a(k),k.defaultPrevented||c==null||c())},h),M=Bu(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(s==null||s(k),a==null||a(k),k.defaultPrevented||c==null||c())},h);return Ou(k=>{C===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(So=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ro(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=So)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,u]),l.useEffect(()=>{const k=()=>g({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),i.jsx(z.div,{...d,ref:x,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,M.onFocusCapture),onBlurCapture:N(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,S.onPointerDownCapture)})});Ft.displayName=Lu;var $u="DismissableLayerBranch",Uu=l.forwardRef((e,t)=>{const n=l.useContext(As),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(z.div,{...e,ref:o})});Uu.displayName=$u;function Hu(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Ns(Du,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bu(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ns(Fu,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ro(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function Ns(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ms(o,s):o.dispatchEvent(s)}var zn="focusScope.autoFocusOnMount",Wn="focusScope.autoFocusOnUnmount",To={bubbles:!1,cancelable:!0},zu="FocusScope",xn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,d]=l.useState(null),u=ke(o),f=ke(s),p=l.useRef(null),h=ne(t,m=>d(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(g.paused||!c)return;const E=w.target;c.contains(E)?p.current=E:Ve(p.current,{select:!0})},v=function(w){if(g.paused||!c)return;const E=w.relatedTarget;E!==null&&(c.contains(E)||Ve(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ve(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),C.disconnect()}}},[r,c,g.paused]),l.useEffect(()=>{if(c){Po.add(g);const m=document.activeElement;if(!c.contains(m)){const b=new CustomEvent(zn,To);c.addEventListener(zn,u),c.dispatchEvent(b),b.defaultPrevented||(Wu(Yu(_s(c)),{select:!0}),document.activeElement===m&&Ve(c))}return()=>{c.removeEventListener(zn,u),setTimeout(()=>{const b=new CustomEvent(Wn,To);c.addEventListener(Wn,f),c.dispatchEvent(b),b.defaultPrevented||Ve(m??document.body,{select:!0}),c.removeEventListener(Wn,f),Po.remove(g)},0)}}},[c,u,f,g]);const x=l.useCallback(m=>{if(!n&&!r||g.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(v&&b){const C=m.currentTarget,[w,E]=Vu(C);w&&E?!m.shiftKey&&b===E?(m.preventDefault(),n&&Ve(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&Ve(E,{select:!0})):b===C&&m.preventDefault()}},[n,r,g.paused]);return i.jsx(z.div,{tabIndex:-1,...a,ref:h,onKeyDown:x})});xn.displayName=zu;function Wu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ve(r,{select:t}),document.activeElement!==n)return}function Vu(e){const t=_s(e),n=Mo(t,e),r=Mo(t.reverse(),e);return[n,r]}function _s(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 Mo(e,t){for(const n of e)if(!Gu(n,{upTo:t}))return n}function Gu(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 qu(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qu(e)&&t&&e.select()}}var Po=Ku();function Ku(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jo(e,t),e.unshift(t)},remove(t){var n;e=jo(e,t),(n=e[0])==null||n.resume()}}}function jo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Yu(e){return e.filter(t=>t.tagName!=="A")}var Xu="Portal",$t=l.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?mu.createPortal(i.jsx(z.div,{...r,ref:t}),a):null});$t.displayName=Xu;var Vn=0;function Ar(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ao()),document.body.insertAdjacentElement("beforeend",e[1]??Ao()),Vn++,()=>{Vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vn--}},[])}function Ao(){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 je=function(){return je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},je.apply(this,arguments)};function Is(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 ky(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function c(f){try{u(r.next(f))}catch(p){a(p)}}function d(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?s(f.value):o(f.value).then(c,d)}u((r=r.apply(e,t||[])).next())})}function Zu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var tn="right-scroll-bar-position",nn="width-before-scroll-bar",Ju="with-scroll-bars-hidden",Qu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ed(e,t){var n=l.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 td=typeof window<"u"?l.useLayoutEffect:l.useEffect,No=new WeakMap;function nd(e,t){var n=ed(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return td(function(){var r=No.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||Gn(c,null)}),s.forEach(function(c){o.has(c)||Gn(c,a)})}No.set(n,e)},[e]),n}function rd(e){return e}function od(e,t){t===void 0&&(t=rd);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(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var d=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function sd(e){e===void 0&&(e={});var t=od(null);return t.options=je({async:!0,ssr:!1},e),t}var Os=function(e){var t=e.sideCar,n=Is(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 l.createElement(r,je({},n))};Os.isSideCarExport=!0;function ad(e,t){return e.useMedium(t),Os}var Ls=sd(),qn=function(){},bn=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:qn,onWheelCapture:qn,onTouchMoveCapture:qn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,x=e.noIsolation,m=e.inert,v=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,w=e.gapMode,E=Is(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,M=nd([n,t]),k=je(je({},E),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:Ls,removeScrollBar:u,shards:p,noRelative:g,noIsolation:x,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(c),je(je({},k),{ref:M})):l.createElement(C,je({},k,{className:d,ref:M}),c))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bn.classNames={fullWidth:nn,zeroRight:tn};var id=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=id();return t&&e.setAttribute("nonce",t),e}function ld(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ud(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cd())&&(ld(t,n),ud(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fd=function(){var e=dd();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ds=function(){var e=fd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},pd={left:0,top:0,right:0,gap:0},Kn=function(e){return parseInt(e||"",10)||0},hd=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[Kn(n),Kn(r),Kn(o)]},md=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pd;var t=hd(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])}},gd=Ds(),ct="data-scroll-locked",vd=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
577
|
-
|
|
578
|
-
overflow: hidden `).concat(r,`;
|
|
579
|
-
padding-right: `).concat(c,"px ").concat(r,`;
|
|
580
|
-
}
|
|
581
|
-
body[`).concat(ct,`] {
|
|
582
|
-
overflow: hidden `).concat(r,`;
|
|
583
|
-
overscroll-behavior: contain;
|
|
584
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
585
|
-
padding-left: `.concat(o,`px;
|
|
586
|
-
padding-top: `).concat(s,`px;
|
|
587
|
-
padding-right: `).concat(a,`px;
|
|
588
|
-
margin-left:0;
|
|
589
|
-
margin-top:0;
|
|
590
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
591
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
.`).concat(tn,` {
|
|
595
|
-
right: `).concat(c,"px ").concat(r,`;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.`).concat(nn,` {
|
|
599
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.`).concat(tn," .").concat(tn,` {
|
|
603
|
-
right: 0 `).concat(r,`;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.`).concat(nn," .").concat(nn,` {
|
|
607
|
-
margin-right: 0 `).concat(r,`;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
body[`).concat(ct,`] {
|
|
611
|
-
`).concat(Qu,": ").concat(c,`px;
|
|
612
|
-
}
|
|
613
|
-
`)},_o=function(){var e=parseInt(document.body.getAttribute(ct)||"0",10);return isFinite(e)?e:0},yd=function(){l.useEffect(function(){return document.body.setAttribute(ct,(_o()+1).toString()),function(){var e=_o()-1;e<=0?document.body.removeAttribute(ct):document.body.setAttribute(ct,e.toString())}},[])},xd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;yd();var s=l.useMemo(function(){return md(o)},[o]);return l.createElement(gd,{styles:vd(s,!t,o,n?"":"!important")})},ar=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return ar=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{ar=!1}var ot=ar?{passive:!1}:!1,bd=function(e){return e.tagName==="TEXTAREA"},Fs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bd(e)&&n[t]==="visible")},wd=function(e){return Fs(e,"overflowY")},Cd=function(e){return Fs(e,"overflowX")},Io=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=$s(e,r);if(o){var s=Us(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ed=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},kd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$s=function(e,t){return e==="v"?wd(t):Cd(t)},Us=function(e,t){return e==="v"?Ed(t):kd(t)},Sd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rd=function(e,t,n,r,o){var s=Sd(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),u=!1,f=a>0,p=0,h=0;do{if(!c)break;var g=Us(e,c),x=g[0],m=g[1],v=g[2],b=m-v-s*x;(x||b)&&$s(e,c)&&(p+=b,h+=x);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oo=function(e){return[e.deltaX,e.deltaY]},Lo=function(e){return e&&"current"in e?e.current:e},Td=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Md=function(e){return`
|
|
614
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
615
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
616
|
-
`)},Pd=0,st=[];function jd(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Pd++)[0],s=l.useState(Ds)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Zu([e.lockRef.current],(e.shards||[]).map(Lo),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=Yt(m),C=n.current,w="deltaX"in m?m.deltaX:C[0]-b[0],E="deltaY"in m?m.deltaY:C[1]-b[1],S,M=m.target,k=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&k==="h"&&M.type==="range")return!1;var A=window.getSelection(),D=A&&A.anchorNode,F=D?D===M||D.contains(M):!1;if(F)return!1;var H=Io(k,M);if(!H)return!0;if(H?S=k:(S=k==="v"?"h":"v",H=Io(k,M)),!H)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=S),!S)return!0;var _=r.current||S;return Rd(_,v,m,_==="h"?w:E)},[]),d=l.useCallback(function(m){var v=m;if(!(!st.length||st[st.length-1]!==s)){var b="deltaY"in v?Oo(v):Yt(v),C=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Td(S.delta,b)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var w=(a.current.shards||[]).map(Lo).filter(Boolean).filter(function(S){return S.contains(v.target)}),E=w.length>0?c(v,w[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=l.useCallback(function(m,v,b,C){var w={name:m,delta:v,target:b,should:C,shadowParent:Ad(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=l.useCallback(function(m){n.current=Yt(m),r.current=void 0},[]),p=l.useCallback(function(m){u(m.type,Oo(m),m.target,c(m,e.lockRef.current))},[]),h=l.useCallback(function(m){u(m.type,Yt(m),m.target,c(m,e.lockRef.current))},[]);l.useEffect(function(){return st.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",d,ot),document.addEventListener("touchmove",d,ot),document.addEventListener("touchstart",f,ot),function(){st=st.filter(function(m){return m!==s}),document.removeEventListener("wheel",d,ot),document.removeEventListener("touchmove",d,ot),document.removeEventListener("touchstart",f,ot)}},[]);var g=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(s,{styles:Md(o)}):null,g?l.createElement(xd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ad(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nd=ad(Ls,jd);var wn=l.forwardRef(function(e,t){return l.createElement(bn,je({},e,{ref:t,sideCar:Nd}))});wn.classNames=bn.classNames;var _d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,Xt=new WeakMap,Zt={},Yn=0,Hs=function(e){return e&&(e.host||Hs(e.parentNode))},Id=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hs(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})},Od=function(e,t,n,r){var o=Id(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var s=Zt[n],a=[],c=new Set,d=new Set(o),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))f(h);else try{var g=h.getAttribute(r),x=g!==null&&g!=="false",m=(at.get(h)||0)+1,v=(s.get(h)||0)+1;at.set(h,m),s.set(h,v),a.push(h),m===1&&x&&Xt.set(h,!0),v===1&&h.setAttribute(n,"true"),x||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),c.clear(),Yn++,function(){a.forEach(function(p){var h=at.get(p)-1,g=s.get(p)-1;at.set(p,h),s.set(p,g),h||(Xt.has(p)||p.removeAttribute(r),Xt.delete(p)),g||p.removeAttribute(n)}),Yn--,Yn||(at=new WeakMap,at=new WeakMap,Xt=new WeakMap,Zt={})}},Nr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_d(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Od(r,o,n,"aria-hidden")):function(){return null}},Cn="Dialog",[Bs]=Ie(Cn),[Ld,Me]=Bs(Cn),zs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=l.useRef(null),d=l.useRef(null),[u,f]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:Cn});return i.jsx(Ld,{scope:t,triggerRef:c,contentRef:d,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:n})};zs.displayName=Cn;var Ws="DialogTrigger",Vs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Ws,n),s=ne(t,o.triggerRef);return i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Or(o.open),...r,ref:s,onClick:N(e.onClick,o.onOpenToggle)})});Vs.displayName=Ws;var _r="DialogPortal",[Dd,Gs]=Bs(_r,{forceMount:void 0}),qs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Me(_r,t);return i.jsx(Dd,{scope:t,forceMount:n,children:l.Children.map(r,a=>i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:a})}))})};qs.displayName=_r;var sn="DialogOverlay",Ks=l.forwardRef((e,t)=>{const n=Gs(sn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Me(sn,e.__scopeDialog);return s.modal?i.jsx(Te,{present:r||s.open,children:i.jsx($d,{...o,ref:t})}):null});Ks.displayName=sn;var Fd=Xe("DialogOverlay.RemoveScroll"),$d=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(sn,n);return i.jsx(wn,{as:Fd,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(z.div,{"data-state":Or(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Je="DialogContent",Ys=l.forwardRef((e,t)=>{const n=Gs(Je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Me(Je,e.__scopeDialog);return i.jsx(Te,{present:r||s.open,children:s.modal?i.jsx(Ud,{...o,ref:t}):i.jsx(Hd,{...o,ref:t})})});Ys.displayName=Je;var Ud=l.forwardRef((e,t)=>{const n=Me(Je,e.__scopeDialog),r=l.useRef(null),o=ne(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Xs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault())})}),Hd=l.forwardRef((e,t)=>{const n=Me(Je,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(Xs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Xs=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=Me(Je,n),d=l.useRef(null),u=ne(t,d);return Ar(),i.jsxs(i.Fragment,{children:[i.jsx(xn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Ft,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Or(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(Bd,{titleId:c.titleId}),i.jsx(Wd,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Ir="DialogTitle",Zs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Ir,n);return i.jsx(z.h2,{id:o.titleId,...r,ref:t})});Zs.displayName=Ir;var Js="DialogDescription",Qs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(Js,n);return i.jsx(z.p,{id:o.descriptionId,...r,ref:t})});Qs.displayName=Js;var ea="DialogClose",ta=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Me(ea,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});ta.displayName=ea;function Or(e){return e?"open":"closed"}var na="DialogTitleWarning",[Sy,ra]=ku(na,{contentName:Je,titleName:Ir,docsSlug:"dialog"}),Bd=({titleId:e})=>{const t=ra(na),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
617
|
-
|
|
618
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
619
|
-
|
|
620
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},zd="DialogDescriptionWarning",Wd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ra(zd).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ry=zs,Ty=Vs,My=qs,Py=Ks,jy=Ys,Ay=Zs,Ny=Qs,_y=ta,Xn={exports:{}},Zn={};/**
|
|
621
|
-
* @license React
|
|
622
|
-
* use-sync-external-store-shim.production.js
|
|
623
|
-
*
|
|
624
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
625
|
-
*
|
|
626
|
-
* This source code is licensed under the MIT license found in the
|
|
627
|
-
* LICENSE file in the root directory of this source tree.
|
|
628
|
-
*/var Do;function Vd(){if(Do)return Zn;Do=1;var e=br();function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function c(p,h){var g=h(),x=r({inst:{value:g,getSnapshot:h}}),m=x[0].inst,v=x[1];return s(function(){m.value=g,m.getSnapshot=h,d(m)&&v({inst:m})},[p,g,h]),o(function(){return d(m)&&v({inst:m}),p(function(){d(m)&&v({inst:m})})},[p]),a(g),g}function d(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!n(p,g)}catch{return!0}}function u(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Zn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Zn}var Fo;function Gd(){return Fo||(Fo=1,Xn.exports=Vd()),Xn.exports}var qd=Gd();function Kd(){return qd.useSyncExternalStore(Yd,()=>!0,()=>!1)}function Yd(){return()=>{}}var Lr="Avatar",[Xd]=Ie(Lr),[Zd,oa]=Xd(Lr),sa=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=l.useState("idle");return i.jsx(Zd,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:i.jsx(z.span,{...r,ref:t})})});sa.displayName=Lr;var aa="AvatarImage",Jd=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=oa(aa,n),c=Qd(r,s),d=ke(u=>{o(u),a.onImageLoadingStatusChange(u)});return ie(()=>{c!=="idle"&&d(c)},[c,d]),c==="loaded"?i.jsx(z.img,{...s,ref:t,src:r}):null});Jd.displayName=aa;var ia="AvatarFallback",ca=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=oa(ia,n),[a,c]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(d)}},[r]),a&&s.imageLoadingStatus!=="loaded"?i.jsx(z.span,{...o,ref:t}):null});ca.displayName=ia;function $o(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Qd(e,{referrerPolicy:t,crossOrigin:n}){const r=Kd(),o=l.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,c]=l.useState(()=>$o(s,e));return ie(()=>{c($o(s,e))},[s,e]),ie(()=>{const d=p=>()=>{c(p)};if(!s)return;const u=d("loaded"),f=d("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var Iy=sa,Oy=ca;function ef(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function tf(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const nf=["top","right","bottom","left"],Ge=Math.min,pe=Math.max,an=Math.round,Jt=Math.floor,Ne=e=>({x:e,y:e}),rf={left:"right",right:"left",bottom:"top",top:"bottom"},of={start:"end",end:"start"};function ir(e,t,n){return pe(e,Ge(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Dr(e){return e==="x"?"y":"x"}function Fr(e){return e==="y"?"height":"width"}const sf=new Set(["top","bottom"]);function Ae(e){return sf.has(Ue(e))?"y":"x"}function $r(e){return Dr(Ae(e))}function af(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=$r(e),s=Fr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=cn(a)),[a,cn(a)]}function cf(e){const t=cn(e);return[cr(e),t,cr(t)]}function cr(e){return e.replace(/start|end/g,t=>of[t])}const Uo=["left","right"],Ho=["right","left"],lf=["top","bottom"],uf=["bottom","top"];function df(e,t,n){switch(e){case"top":case"bottom":return n?t?Ho:Uo:t?Uo:Ho;case"left":case"right":return t?lf:uf;default:return[]}}function ff(e,t,n,r){const o=gt(e);let s=df(Ue(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(cr)))),s}function cn(e){return e.replace(/left|right|bottom|top/g,t=>rf[t])}function pf(e){return{top:0,right:0,bottom:0,left:0,...e}}function la(e){return typeof e!="number"?pf(e):{top:e,right:e,bottom:e,left:e}}function ln(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 Bo(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),a=$r(t),c=Fr(a),d=Ue(t),u=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let g;switch(d){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(gt(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}async function hf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=$e(t,e),x=la(g),v=c[h?p==="floating"?"reference":"floating":p],b=ln(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),C=p==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ln(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:w,strategy:d}):C);return{top:(b.top-S.top+x.top)/E.y,bottom:(S.bottom-b.bottom+x.bottom)/E.y,left:(b.left-S.left+x.left)/E.x,right:(S.right-b.right+x.right)/E.x}}const mf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Bo(u,r,d),h=r,g={},x=0;for(let v=0;v<c.length;v++){var m;const{name:b,fn:C}=c[v],{x:w,y:E,data:S,reset:M}=await C({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:hf},elements:{reference:e,floating:t}});f=w??f,p=E??p,g={...g,[b]:{...g[b],...S}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(h=M.placement),M.rects&&(u=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:f,y:p}=Bo(u,h,d)),v=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}},gf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:f=0}=$e(e,t)||{};if(u==null)return{};const p=la(f),h={x:n,y:r},g=$r(o),x=Fr(g),m=await a.getDimensions(u),v=g==="y",b=v?"top":"left",C=v?"bottom":"right",w=v?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[g]-h[g]-s.floating[x],S=h[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let k=M?M[w]:0;(!k||!await(a.isElement==null?void 0:a.isElement(M)))&&(k=c.floating[w]||s.floating[x]);const A=E/2-S/2,D=k/2-m[x]/2-1,F=Ge(p[b],D),H=Ge(p[C],D),_=F,Y=k-m[x]-H,U=k/2-m[x]/2+A,J=ir(_,U,Y),O=!d.arrow&>(o)!=null&&U!==J&&s.reference[x]/2-(U<_?F:H)-m[x]/2<0,K=O?U<_?U-_:U-Y:0;return{[g]:h[g]+K,data:{[g]:J,centerOffset:U-J-K,...O&&{alignmentOffset:K}},reset:O}}}),vf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...v}=$e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Ue(o),C=Ae(c),w=Ue(c)===c,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=h||(w||!m?[cn(c)]:cf(c)),M=x!=="none";!h&&M&&S.push(...ff(c,m,x,E));const k=[c,...S],A=await d.detectOverflow(t,v),D=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(A[b]),p){const U=af(o,a,E);D.push(A[U[0]],A[U[1]])}if(F=[...F,{placement:o,overflows:D}],!D.every(U=>U<=0)){var H,_;const U=(((H=s.flip)==null?void 0:H.index)||0)+1,J=k[U];if(J&&(!(p==="alignment"?C!==Ae(J):!1)||F.every(I=>Ae(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:U,overflows:F},reset:{placement:J}};let O=(_=F.filter(K=>K.overflows[0]<=0).sort((K,I)=>K.overflows[1]-I.overflows[1])[0])==null?void 0:_.placement;if(!O)switch(g){case"bestFit":{var Y;const K=(Y=F.filter(I=>{if(M){const j=Ae(I.placement);return j===C||j==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,Q)=>j+Q,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:Y[0];K&&(O=K);break}case"initialPlacement":O=c;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wo(e){return nf.some(t=>e[t]>=0)}const yf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=$e(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=zo(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wo(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),c=zo(a,n.floating);return{data:{escapedOffsets:c,escaped:Wo(c)}}}default:return{}}}}},ua=new Set(["left","top"]);async function xf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),c=gt(n),d=Ae(n)==="y",u=ua.has(a)?-1:1,f=s&&d?-1:1,p=$e(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),d?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const bf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,d=await xf(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:a}}}}},wf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:d={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...u}=$e(e,t),f={x:n,y:r},p=await s.detectOverflow(t,u),h=Ae(Ue(o)),g=Dr(h);let x=f[g],m=f[h];if(a){const b=g==="y"?"top":"left",C=g==="y"?"bottom":"right",w=x+p[b],E=x-p[C];x=ir(w,x,E)}if(c){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+p[b],E=m-p[C];m=ir(w,m,E)}const v=d.fn({...t,[g]:x,[h]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:a,[h]:c}}}}}},Cf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=$e(e,t),f={x:n,y:r},p=Ae(o),h=Dr(p);let g=f[h],x=f[p];const m=$e(c,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const w=h==="y"?"height":"width",E=s.reference[h]-s.floating[w]+v.mainAxis,S=s.reference[h]+s.reference[w]-v.mainAxis;g<E?g=E:g>S&&(g=S)}if(u){var b,C;const w=h==="y"?"width":"height",E=ua.has(Ue(o)),S=s.reference[p]-s.floating[w]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),M=s.reference[p]+s.reference[w]+(E?0:((C=a.offset)==null?void 0:C[p])||0)-(E?v.crossAxis:0);x<S?x=S:x>M&&(x=M)}return{[h]:g,[p]:x}}}},Ef=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:d=()=>{},...u}=$e(e,t),f=await a.detectOverflow(t,u),p=Ue(o),h=gt(o),g=Ae(o)==="y",{width:x,height:m}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const C=m-f.top-f.bottom,w=x-f.left-f.right,E=Ge(m-f[v],C),S=Ge(x-f[b],w),M=!t.middlewareData.shift;let k=E,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),M&&!h){const F=pe(f.left,0),H=pe(f.right,0),_=pe(f.top,0),Y=pe(f.bottom,0);g?A=x-2*(F!==0||H!==0?F+H:pe(f.left,f.right)):k=m-2*(_!==0||Y!==0?_+Y:pe(f.top,f.bottom))}await d({...t,availableWidth:A,availableHeight:k});const D=await a.getDimensions(c.floating);return x!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function vt(e){return da(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(da(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function da(e){return En()?e instanceof Node||e instanceof he(e).Node:!1}function Se(e){return En()?e instanceof Element||e instanceof he(e).Element:!1}function _e(e){return En()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function Vo(e){return!En()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const kf=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!kf.has(o)}const Sf=new Set(["table","td","th"]);function Rf(e){return Sf.has(vt(e))}const Tf=[":popover-open",":modal"];function kn(e){return Tf.some(t=>{try{return e.matches(t)}catch{return!1}})}const Mf=["transform","translate","scale","rotate","perspective"],Pf=["transform","translate","scale","rotate","perspective","filter"],jf=["paint","layout","strict","content"];function Ur(e){const t=Hr(),n=Se(e)?Re(e):e;return Mf.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)||Pf.some(r=>(n.willChange||"").includes(r))||jf.some(r=>(n.contain||"").includes(r))}function Af(e){let t=qe(e);for(;_e(t)&&!dt(t);){if(Ur(t))return t;if(kn(t))return null;t=qe(t)}return null}function Hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nf=new Set(["html","body","#document"]);function dt(e){return Nf.has(vt(e))}function Re(e){return he(e).getComputedStyle(e)}function Sn(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qe(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Oe(e);return Vo(t)?t.host:t}function fa(e){const t=qe(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&Ut(t)?t:fa(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fa(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=he(o);if(s){const c=lr(a);return t.concat(a,a.visualViewport||[],Ut(o)?o:[],c&&n?At(c):[])}return t.concat(o,At(o,[],n))}function lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pa(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_e(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=an(n)!==s||an(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Br(e){return Se(e)?e:e.contextElement}function lt(e){const t=Br(e);if(!_e(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=pa(t);let a=(s?an(n.width):n.width)/r,c=(s?an(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const _f=Ne(0);function ha(e){const t=he(e);return!Hr()||!t.visualViewport?_f:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function If(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function Qe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Br(e);let a=Ne(1);t&&(r?Se(r)&&(a=lt(r)):a=lt(e));const c=If(s,n,r)?ha(s):Ne(0);let d=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=he(s),g=r&&Se(r)?he(r):r;let x=h,m=lr(x);for(;m&&r&&g!==x;){const v=lt(m),b=m.getBoundingClientRect(),C=Re(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*v.x,E=b.top+(m.clientTop+parseFloat(C.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=w,u+=E,x=he(m),m=lr(x)}}return ln({width:f,height:p,x:d,y:u})}function Rn(e,t){const n=Sn(e).scrollLeft;return t?t.left+n:Qe(Oe(e)).left+n}function ma(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Of(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Oe(r),c=t?kn(t.floating):!1;if(r===a||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Ne(1);const f=Ne(0),p=_e(r);if((p||!p&&!s)&&((vt(r)!=="body"||Ut(a))&&(d=Sn(r)),_e(r))){const g=Qe(r);u=lt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!p&&!s?ma(a,d):Ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-d.scrollTop*u.y+f.y+h.y}}function Lf(e){return Array.from(e.getClientRects())}function Df(e){const t=Oe(e),n=Sn(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Rn(e);const c=-n.scrollTop;return Re(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const Go=25;function Ff(e,t){const n=he(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(o){s=o.width,a=o.height;const f=Hr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=Rn(r);if(u<=0){const f=r.ownerDocument,p=f.body,h=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-g);x<=Go&&(s-=x)}else u<=Go&&(s+=u);return{width:s,height:a,x:c,y:d}}const $f=new Set(["absolute","fixed"]);function Uf(e,t){const n=Qe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=_e(e)?lt(e):Ne(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:a,height:c,x:d,y:u}}function qo(e,t,n){let r;if(t==="viewport")r=Ff(e,n);else if(t==="document")r=Df(Oe(e));else if(Se(t))r=Uf(t,n);else{const o=ha(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ln(r)}function ga(e,t){const n=qe(e);return n===t||!Se(n)||dt(n)?!1:Re(n).position==="fixed"||ga(n,t)}function Hf(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(c=>Se(c)&&vt(c)!=="body"),o=null;const s=Re(e).position==="fixed";let a=s?qe(e):e;for(;Se(a)&&!dt(a);){const c=Re(a),d=Ur(a);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&$f.has(o.position)||Ut(a)&&!d&&ga(e,a))?r=r.filter(f=>f!==a):o=c,a=qe(a)}return t.set(e,r),r}function Bf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?kn(t)?[]:Hf(t,this._c):[].concat(n),r],c=a[0],d=a.reduce((u,f)=>{const p=qo(t,f,o);return u.top=pe(p.top,u.top),u.right=Ge(p.right,u.right),u.bottom=Ge(p.bottom,u.bottom),u.left=pe(p.left,u.left),u},qo(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zf(e){const{width:t,height:n}=pa(e);return{width:t,height:n}}function Wf(e,t,n){const r=_e(t),o=Oe(t),s=n==="fixed",a=Qe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ne(0);function u(){d.x=Rn(o)}if(r||!r&&!s)if((vt(t)!=="body"||Ut(o))&&(c=Sn(t)),r){const g=Qe(t,!0,s,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?ma(o,c):Ne(0),p=a.left+c.scrollLeft-d.x-f.x,h=a.top+c.scrollTop-d.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function Jn(e){return Re(e).position==="static"}function Ko(e,t){if(!_e(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function va(e,t){const n=he(e);if(kn(e))return n;if(!_e(e)){let o=qe(e);for(;o&&!dt(o);){if(Se(o)&&!Jn(o))return o;o=qe(o)}return n}let r=Ko(e,t);for(;r&&Rf(r)&&Jn(r);)r=Ko(r,t);return r&&dt(r)&&Jn(r)&&!Ur(r)?n:r||Af(e)||n}const Vf=async function(e){const t=this.getOffsetParent||va,n=this.getDimensions,r=await n(e.floating);return{reference:Wf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gf(e){return Re(e).direction==="rtl"}const qf={convertOffsetParentRelativeRectToViewportRelativeRect:Of,getDocumentElement:Oe,getClippingRect:Bf,getOffsetParent:va,getElementRects:Vf,getClientRects:Lf,getDimensions:zf,getScale:lt,isElement:Se,isRTL:Gf};function ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kf(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=u;if(c||t(),!h||!g)return;const x=Jt(p),m=Jt(o.clientWidth-(f+h)),v=Jt(o.clientHeight-(p+g)),b=Jt(f),w={rootMargin:-x+"px "+-m+"px "+-v+"px "+-b+"px",threshold:pe(0,Ge(1,d))||1};let E=!0;function S(M){const k=M[0].intersectionRatio;if(k!==d){if(!E)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!ya(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return a(!0),s}function Yf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Br(e),f=o||s?[...u?At(u):[],...At(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=u&&c?Kf(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(b=>{let[C]=b;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!d&&g.observe(u),g.observe(t));let x,m=d?Qe(e):null;d&&v();function v(){const b=Qe(e);m&&!ya(m,b)&&n(),m=b,x=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),p==null||p(),(b=g)==null||b.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const Xf=bf,Zf=wf,Jf=vf,Qf=Ef,ep=yf,Yo=gf,tp=Cf,np=(e,t,n)=>{const r=new Map,o={platform:qf,...n},s={...o.platform,_c:r};return mf(e,t,{...o,platform:s})};var rp=typeof document<"u",op=function(){},rn=rp?l.useLayoutEffect:op;function un(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(!un(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function xa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xo(e,t){const n=xa(e);return Math.round(t*n)/n}function Qn(e){const t=l.useRef(e);return rn(()=>{t.current=e}),t}function sp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);un(h,r)||g(r);const[x,m]=l.useState(null),[v,b]=l.useState(null),C=l.useCallback(I=>{I!==M.current&&(M.current=I,m(I))},[]),w=l.useCallback(I=>{I!==k.current&&(k.current=I,b(I))},[]),E=s||x,S=a||v,M=l.useRef(null),k=l.useRef(null),A=l.useRef(f),D=d!=null,F=Qn(d),H=Qn(o),_=Qn(u),Y=l.useCallback(()=>{if(!M.current||!k.current)return;const I={placement:t,strategy:n,middleware:h};H.current&&(I.platform=H.current),np(M.current,k.current,I).then(j=>{const Q={...j,isPositioned:_.current!==!1};U.current&&!un(A.current,Q)&&(A.current=Q,Dt.flushSync(()=>{p(Q)}))})},[h,t,n,H,_]);rn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const U=l.useRef(!1);rn(()=>(U.current=!0,()=>{U.current=!1}),[]),rn(()=>{if(E&&(M.current=E),S&&(k.current=S),E&&S){if(F.current)return F.current(E,S,Y);Y()}},[E,S,Y,F,D]);const J=l.useMemo(()=>({reference:M,floating:k,setReference:C,setFloating:w}),[C,w]),O=l.useMemo(()=>({reference:E,floating:S}),[E,S]),K=l.useMemo(()=>{const I={position:n,left:0,top:0};if(!O.floating)return I;const j=Xo(O.floating,f.x),Q=Xo(O.floating,f.y);return c?{...I,transform:"translate("+j+"px, "+Q+"px)",...xa(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:Q}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:J,elements:O,floatingStyles:K}),[f,Y,J,O,K])}const ap=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?Yo({element:r.current,padding:o}).fn(n):{}:r?Yo({element:r,padding:o}).fn(n):{}}}},ip=(e,t)=>({...Xf(e),options:[e,t]}),cp=(e,t)=>({...Zf(e),options:[e,t]}),lp=(e,t)=>({...tp(e),options:[e,t]}),up=(e,t)=>({...Jf(e),options:[e,t]}),dp=(e,t)=>({...Qf(e),options:[e,t]}),fp=(e,t)=>({...ep(e),options:[e,t]}),pp=(e,t)=>({...ap(e),options:[e,t]});var hp="Arrow",ba=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(z.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ba.displayName=hp;var mp=ba,zr="Popper",[wa,yt]=Ie(zr),[gp,Ca]=wa(zr),Ea=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(gp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ea.displayName=zr;var ka="PopperAnchor",Sa=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ca(ka,n),a=l.useRef(null),c=ne(t,a),d=l.useRef(null);return l.useEffect(()=>{const u=d.current;d.current=(r==null?void 0:r.current)||a.current,u!==d.current&&s.onAnchorChange(d.current)}),r?null:i.jsx(z.div,{...o,ref:c})});Sa.displayName=ka;var Wr="PopperContent",[vp,yp]=wa(Wr),Ra=l.forwardRef((e,t)=>{var P,X,G,ee,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:x,...m}=e,v=Ca(Wr,n),[b,C]=l.useState(null),w=ne(t,fe=>C(fe)),[E,S]=l.useState(null),M=tf(E),k=(M==null?void 0:M.width)??0,A=(M==null?void 0:M.height)??0,D=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(u)?u:[u],_=H.length>0,Y={padding:F,boundary:H.filter(bp),altBoundary:_},{refs:U,floatingStyles:J,placement:O,isPositioned:K,middlewareData:I}=sp({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>Yf(...fe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[ip({mainAxis:o+A,alignmentAxis:a}),d&&cp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?lp():void 0,...Y}),d&&up({...Y}),dp({...Y,apply:({elements:fe,rects:Pe,availableWidth:wt,availableHeight:Ct})=>{const{width:Et,height:vc}=Pe.reference,Vt=fe.floating.style;Vt.setProperty("--radix-popper-available-width",`${wt}px`),Vt.setProperty("--radix-popper-available-height",`${Ct}px`),Vt.setProperty("--radix-popper-anchor-width",`${Et}px`),Vt.setProperty("--radix-popper-anchor-height",`${vc}px`)}}),E&&pp({element:E,padding:c}),wp({arrowWidth:k,arrowHeight:A}),h&&fp({strategy:"referenceHidden",...Y})]}),[j,Q]=Pa(O),y=ke(x);ie(()=>{K&&(y==null||y())},[K,y]);const T=(P=I.arrow)==null?void 0:P.x,$=(X=I.arrow)==null?void 0:X.y,L=((G=I.arrow)==null?void 0:G.centerOffset)!==0,[V,W]=l.useState();return ie(()=>{b&&W(window.getComputedStyle(b).zIndex)},[b]),i.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(ee=I.transformOrigin)==null?void 0:ee.x,(re=I.transformOrigin)==null?void 0:re.y].join(" "),...((oe=I.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(vp,{scope:n,placedSide:j,onArrowChange:S,arrowX:T,arrowY:$,shouldHideArrow:L,children:i.jsx(z.div,{"data-side":j,"data-align":Q,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});Ra.displayName=Wr;var Ta="PopperArrow",xp={top:"bottom",right:"left",bottom:"top",left:"right"},Ma=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=yp(Ta,r),a=xp[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(mp,{...o,ref:n,style:{...o.style,display:"block"}})})});Ma.displayName=Ta;function bp(e){return e!==null}var wp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,C;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,f]=Pa(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+d/2;let x="",m="";return u==="bottom"?(x=a?p:`${h}px`,m=`${-d}px`):u==="top"?(x=a?p:`${h}px`,m=`${r.floating.height+d}px`):u==="right"?(x=`${-d}px`,m=a?p:`${g}px`):u==="left"&&(x=`${r.floating.width+d}px`,m=a?p:`${g}px`),{data:{x,y:m}}}});function Pa(e){const[t,n="center"]=e.split("-");return[t,n]}var Vr=Ea,Gr=Sa,qr=Ra,Kr=Ma,er="rovingFocusGroup.onEntryFocus",Cp={bubbles:!1,cancelable:!0},Ht="RovingFocusGroup",[ur,ja,Ep]=jr(Ht),[kp,Tn]=Ie(Ht,[Ep]),[Sp,Rp]=kp(Ht),Aa=l.forwardRef((e,t)=>i.jsx(ur.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(ur.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Tp,{...e,ref:t})})}));Aa.displayName=Ht;var Tp=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,h=l.useRef(null),g=ne(t,h),x=yn(s),[m,v]=Ze({prop:a,defaultProp:c??null,onChange:d,caller:Ht}),[b,C]=l.useState(!1),w=ke(u),E=ja(n),S=l.useRef(!1),[M,k]=l.useState(0);return l.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(er,w),()=>A.removeEventListener(er,w)},[w]),i.jsx(Sp,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(A=>v(A),[v]),onItemShiftTab:l.useCallback(()=>C(!0),[]),onFocusableItemAdd:l.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:l.useCallback(()=>k(A=>A-1),[]),children:i.jsx(z.div,{tabIndex:b||M===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{S.current=!0}),onFocus:N(e.onFocus,A=>{const D=!S.current;if(A.target===A.currentTarget&&D&&!b){const F=new CustomEvent(er,Cp);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const H=E().filter(O=>O.focusable),_=H.find(O=>O.active),Y=H.find(O=>O.id===m),J=[_,Y,...H].filter(Boolean).map(O=>O.ref.current);Ia(J,f)}}S.current=!1}),onBlur:N(e.onBlur,()=>C(!1))})})}),Na="RovingFocusGroupItem",_a=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...c}=e,d=Ee(),u=s||d,f=Rp(Na,n),p=f.currentTabStopId===u,h=ja(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:m}=f;return l.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),i.jsx(ur.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:i.jsx(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?f.onItemFocus(u):v.preventDefault()}),onFocus:N(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=jp(v,f.orientation,f.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=h().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const E=w.indexOf(v.currentTarget);w=f.loop?Ap(w,E+1):w.slice(E+1)}setTimeout(()=>Ia(w))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:m!=null}):a})})});_a.displayName=Na;var Mp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jp(e,t,n){const r=Pp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Mp[r]}function Ia(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Oa=Aa,La=_a,dr=["Enter"," "],Np=["ArrowDown","PageUp","Home"],Da=["ArrowUp","PageDown","End"],_p=[...Np,...Da],Ip={ltr:[...dr,"ArrowRight"],rtl:[...dr,"ArrowLeft"]},Op={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bt="Menu",[Nt,Lp,Dp]=jr(Bt),[nt,Fa]=Ie(Bt,[Dp,yt,Tn]),Mn=yt(),$a=Tn(),[Fp,rt]=nt(Bt),[$p,zt]=nt(Bt),Ua=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=Mn(t),[d,u]=l.useState(null),f=l.useRef(!1),p=ke(s),h=yn(o);return l.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),i.jsx(Vr,{...c,children:i.jsx(Fp,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:i.jsx($p,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};Ua.displayName=Bt;var Up="MenuAnchor",Yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mn(n);return i.jsx(Gr,{...o,...r,ref:t})});Yr.displayName=Up;var Xr="MenuPortal",[Hp,Ha]=nt(Xr,{forceMount:void 0}),Ba=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=rt(Xr,t);return i.jsx(Hp,{scope:t,forceMount:n,children:i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};Ba.displayName=Xr;var ye="MenuContent",[Bp,Zr]=nt(ye),za=l.forwardRef((e,t)=>{const n=Ha(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Te,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(zp,{...o,ref:t}):i.jsx(Wp,{...o,ref:t})})})})}),zp=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu),r=l.useRef(null),o=ne(t,r);return l.useEffect(()=>{const s=r.current;if(s)return Nr(s)},[]),i.jsx(Jr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Wp=l.forwardRef((e,t)=>{const n=rt(ye,e.__scopeMenu);return i.jsx(Jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vp=Xe("MenuContent.ScrollLock"),Jr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,disableOutsideScroll:x,...m}=e,v=rt(ye,n),b=zt(ye,n),C=Mn(n),w=$a(n),E=Lp(n),[S,M]=l.useState(null),k=l.useRef(null),A=ne(t,k,v.onContentChange),D=l.useRef(0),F=l.useRef(""),H=l.useRef(0),_=l.useRef(null),Y=l.useRef("right"),U=l.useRef(0),J=x?wn:l.Fragment,O=x?{as:Vp,allowPinchZoom:!0}:void 0,K=j=>{var P,X;const Q=F.current+j,y=E().filter(G=>!G.disabled),T=document.activeElement,$=(P=y.find(G=>G.ref.current===T))==null?void 0:P.textValue,L=y.map(G=>G.textValue),V=rh(L,Q,$),W=(X=y.find(G=>G.textValue===V))==null?void 0:X.ref.current;(function G(ee){F.current=ee,window.clearTimeout(D.current),ee!==""&&(D.current=window.setTimeout(()=>G(""),1e3))})(Q),W&&setTimeout(()=>W.focus())};l.useEffect(()=>()=>window.clearTimeout(D.current),[]),Ar();const I=l.useCallback(j=>{var y,T;return Y.current===((y=_.current)==null?void 0:y.side)&&sh(j,(T=_.current)==null?void 0:T.area)},[]);return i.jsx(Bp,{scope:n,searchRef:F,onItemEnter:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),onItemLeave:l.useCallback(j=>{var Q;I(j)||((Q=k.current)==null||Q.focus(),M(null))},[I]),onTriggerLeave:l.useCallback(j=>{I(j)&&j.preventDefault()},[I]),pointerGraceTimerRef:H,onPointerGraceIntentChange:l.useCallback(j=>{_.current=j},[]),children:i.jsx(J,{...O,children:i.jsx(xn,{asChild:!0,trapped:o,onMountAutoFocus:N(s,j=>{var Q;j.preventDefault(),(Q=k.current)==null||Q.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:g,children:i.jsx(Oa,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:N(d,j=>{b.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(qr,{role:"menu","aria-orientation":"vertical","data-state":si(v.open),"data-radix-menu-content":"",dir:b.dir,...C,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:N(m.onKeyDown,j=>{const y=j.target.closest("[data-radix-menu-content]")===j.currentTarget,T=j.ctrlKey||j.altKey||j.metaKey,$=j.key.length===1;y&&(j.key==="Tab"&&j.preventDefault(),!T&&$&&K(j.key));const L=k.current;if(j.target!==L||!_p.includes(j.key))return;j.preventDefault();const W=E().filter(P=>!P.disabled).map(P=>P.ref.current);Da.includes(j.key)&&W.reverse(),th(W)}),onBlur:N(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(D.current),F.current="")}),onPointerMove:N(e.onPointerMove,_t(j=>{const Q=j.target,y=U.current!==j.clientX;if(j.currentTarget.contains(Q)&&y){const T=j.clientX>U.current?"right":"left";Y.current=T,U.current=j.clientX}}))})})})})})})});za.displayName=ye;var Gp="MenuGroup",Qr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"group",...r,ref:t})});Qr.displayName=Gp;var qp="MenuLabel",Wa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{...r,ref:t})});Wa.displayName=qp;var dn="MenuItem",Zo="menu.itemSelect",Pn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=zt(dn,e.__scopeMenu),c=Zr(dn,e.__scopeMenu),d=ne(t,s),u=l.useRef(!1),f=()=>{const p=s.current;if(!n&&p){const h=new CustomEvent(Zo,{bubbles:!0,cancelable:!0});p.addEventListener(Zo,g=>r==null?void 0:r(g),{once:!0}),Ms(p,h),h.defaultPrevented?u.current=!1:a.onClose()}};return i.jsx(Va,{...o,ref:d,disabled:n,onClick:N(e.onClick,f),onPointerDown:p=>{var h;(h=e.onPointerDown)==null||h.call(e,p),u.current=!0},onPointerUp:N(e.onPointerUp,p=>{var h;u.current||(h=p.currentTarget)==null||h.click()}),onKeyDown:N(e.onKeyDown,p=>{const h=c.searchRef.current!=="";n||h&&p.key===" "||dr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Pn.displayName=dn;var Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Zr(dn,n),c=$a(n),d=l.useRef(null),u=ne(t,d),[f,p]=l.useState(!1),[h,g]=l.useState("");return l.useEffect(()=>{const x=d.current;x&&g((x.textContent??"").trim())},[s.children]),i.jsx(Nt.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:i.jsx(La,{asChild:!0,...c,focusable:!r,children:i.jsx(z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:N(e.onPointerMove,_t(x=>{r?a.onItemLeave(x):(a.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,_t(x=>a.onItemLeave(x))),onFocus:N(e.onFocus,()=>p(!0)),onBlur:N(e.onBlur,()=>p(!1))})})})}),Kp="MenuCheckboxItem",Ga=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Za,{scope:e.__scopeMenu,checked:n,children:i.jsx(Pn,{role:"menuitemcheckbox","aria-checked":fn(n)?"mixed":n,...o,ref:t,"data-state":to(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(fn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ga.displayName=Kp;var qa="MenuRadioGroup",[Yp,Xp]=nt(qa,{value:void 0,onValueChange:()=>{}}),Ka=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ke(r);return i.jsx(Yp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Qr,{...o,ref:t})})});Ka.displayName=qa;var Ya="MenuRadioItem",Xa=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=Xp(Ya,e.__scopeMenu),s=n===o.value;return i.jsx(Za,{scope:e.__scopeMenu,checked:s,children:i.jsx(Pn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":to(s),onSelect:N(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Xa.displayName=Ya;var eo="MenuItemIndicator",[Za,Zp]=nt(eo,{checked:!1}),Ja=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Zp(eo,n);return i.jsx(Te,{present:r||fn(s.checked)||s.checked===!0,children:i.jsx(z.span,{...o,ref:t,"data-state":to(s.checked)})})});Ja.displayName=eo;var Jp="MenuSeparator",Qa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Qa.displayName=Jp;var Qp="MenuArrow",ei=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mn(n);return i.jsx(Kr,{...o,...r,ref:t})});ei.displayName=Qp;var eh="MenuSub",[Ly,ti]=nt(eh),Mt="MenuSubTrigger",ni=l.forwardRef((e,t)=>{const n=rt(Mt,e.__scopeMenu),r=zt(Mt,e.__scopeMenu),o=ti(Mt,e.__scopeMenu),s=Zr(Mt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,u={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),d(null)}},[c,d]),i.jsx(Yr,{asChild:!0,...u,children:i.jsx(Va,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":si(n.open),...e,ref:vn(t,o.onTriggerChange),onClick:p=>{var h;(h=e.onClick)==null||h.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,_t(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:N(e.onPointerLeave,_t(p=>{var g,x;f();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const m=(x=n.content)==null?void 0:x.dataset.side,v=m==="right",b=v?-5:5,C=h[v?"left":"right"],w=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+b,y:p.clientY},{x:C,y:h.top},{x:w,y:h.top},{x:w,y:h.bottom},{x:C,y:h.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,p=>{var g;const h=s.searchRef.current!=="";e.disabled||h&&p.key===" "||Ip[r.dir].includes(p.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),p.preventDefault())})})})});ni.displayName=Mt;var ri="MenuSubContent",oi=l.forwardRef((e,t)=>{const n=Ha(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=rt(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu),c=ti(ri,e.__scopeMenu),d=l.useRef(null),u=ne(t,d);return i.jsx(Nt.Provider,{scope:e.__scopeMenu,children:i.jsx(Te,{present:r||s.open,children:i.jsx(Nt.Slot,{scope:e.__scopeMenu,children:i.jsx(Jr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;a.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:N(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:N(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),h=Op[a.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),f.preventDefault())})})})})})});oi.displayName=ri;function si(e){return e?"open":"closed"}function fn(e){return e==="indeterminate"}function to(e){return fn(e)?"indeterminate":e?"checked":"unchecked"}function th(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rh(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=nh(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function oh(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function sh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return oh(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ah=Ua,ih=Yr,ch=Ba,lh=za,uh=Qr,dh=Wa,fh=Pn,ph=Ga,hh=Ka,mh=Xa,gh=Ja,vh=Qa,yh=ei,xh=ni,bh=oi,jn="DropdownMenu",[wh]=Ie(jn,[Fa]),le=Fa(),[Ch,ai]=wh(jn),ii=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,d=le(t),u=l.useRef(null),[f,p]=Ze({prop:o,defaultProp:s??!1,onChange:a,caller:jn});return i.jsx(Ch,{scope:t,triggerId:Ee(),triggerRef:u,contentId:Ee(),open:f,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(h=>!h),[p]),modal:c,children:i.jsx(ah,{...d,open:f,onOpenChange:p,dir:r,modal:c,children:n})})};ii.displayName=jn;var ci="DropdownMenuTrigger",li=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ai(ci,n),a=le(n);return i.jsx(ih,{asChild:!0,...a,children:i.jsx(z.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:vn(t,s.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});li.displayName=ci;var Eh="DropdownMenuPortal",ui=e=>{const{__scopeDropdownMenu:t,...n}=e,r=le(t);return i.jsx(ch,{...r,...n})};ui.displayName=Eh;var di="DropdownMenuContent",fi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ai(di,n),s=le(n),a=l.useRef(!1);return i.jsx(lh,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var d;a.current||(d=o.triggerRef.current)==null||d.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(a.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)"}})});fi.displayName=di;var kh="DropdownMenuGroup",Sh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(uh,{...o,...r,ref:t})});Sh.displayName=kh;var Rh="DropdownMenuLabel",pi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(dh,{...o,...r,ref:t})});pi.displayName=Rh;var Th="DropdownMenuItem",hi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(fh,{...o,...r,ref:t})});hi.displayName=Th;var Mh="DropdownMenuCheckboxItem",Ph=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(ph,{...o,...r,ref:t})});Ph.displayName=Mh;var jh="DropdownMenuRadioGroup",Ah=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(hh,{...o,...r,ref:t})});Ah.displayName=jh;var Nh="DropdownMenuRadioItem",_h=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(mh,{...o,...r,ref:t})});_h.displayName=Nh;var Ih="DropdownMenuItemIndicator",Oh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(gh,{...o,...r,ref:t})});Oh.displayName=Ih;var Lh="DropdownMenuSeparator",mi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(vh,{...o,...r,ref:t})});mi.displayName=Lh;var Dh="DropdownMenuArrow",Fh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(yh,{...o,...r,ref:t})});Fh.displayName=Dh;var $h="DropdownMenuSubTrigger",Uh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(xh,{...o,...r,ref:t})});Uh.displayName=$h;var Hh="DropdownMenuSubContent",Bh=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=le(n);return i.jsx(bh,{...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)"}})});Bh.displayName=Hh;var Dy=ii,Fy=li,$y=ui,Uy=fi,Hy=pi,By=hi,zy=mi,zh="Label",gi=l.forwardRef((e,t)=>i.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));gi.displayName=zh;var Wy=gi;function Jo(e,[t,n]){return Math.min(n,Math.max(t,e))}var Wh=[" ","Enter","ArrowUp","ArrowDown"],Vh=[" ","Enter"],et="Select",[An,Nn,Gh]=jr(et),[xt]=Ie(et,[Gh,yt]),_n=yt(),[qh,Ke]=xt(et),[Kh,Yh]=xt(et),vi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:h,required:g,form:x}=e,m=_n(t),[v,b]=l.useState(null),[C,w]=l.useState(null),[E,S]=l.useState(!1),M=yn(u),[k,A]=Ze({prop:r,defaultProp:o??!1,onChange:s,caller:et}),[D,F]=Ze({prop:a,defaultProp:c,onChange:d,caller:et}),H=l.useRef(null),_=v?x||!!v.closest("form"):!0,[Y,U]=l.useState(new Set),J=Array.from(Y).map(O=>O.props.value).join(";");return i.jsx(Vr,{...m,children:i.jsxs(qh,{required:g,scope:t,trigger:v,onTriggerChange:b,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:Ee(),value:D,onValueChange:F,open:k,onOpenChange:A,dir:M,triggerPointerDownPosRef:H,disabled:h,children:[i.jsx(An.Provider,{scope:t,children:i.jsx(Kh,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{U(K=>new Set(K).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{U(K=>{const I=new Set(K);return I.delete(O),I})},[]),children:n})}),_?i.jsxs($i,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:O=>F(O.target.value),disabled:h,form:x,children:[D===void 0?i.jsx("option",{value:""}):null,Array.from(Y)]},J):null]})})};vi.displayName=et;var yi="SelectTrigger",xi=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=_n(n),a=Ke(yi,n),c=a.disabled||r,d=ne(t,a.onTriggerChange),u=Nn(n),f=l.useRef("touch"),[p,h,g]=Hi(m=>{const v=u().filter(w=>!w.disabled),b=v.find(w=>w.value===a.value),C=Bi(v,m,b);C!==void 0&&a.onValueChange(C.value)}),x=m=>{c||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return i.jsx(Gr,{asChild:!0,...s,children:i.jsx(z.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ui(a.value)?"":void 0,...o,ref:d,onClick:N(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&x(m)}),onPointerDown:N(o.onPointerDown,m=>{f.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:N(o.onKeyDown,m=>{const v=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(v&&m.key===" ")&&Wh.includes(m.key)&&(x(),m.preventDefault())})})})});xi.displayName=yi;var bi="SelectValue",wi=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,d=Ke(bi,n),{onValueNodeHasChildrenChange:u}=d,f=s!==void 0,p=ne(t,d.onValueNodeChange);return ie(()=>{u(f)},[u,f]),i.jsx(z.span,{...c,ref:p,style:{pointerEvents:"none"},children:Ui(d.value)?i.jsx(i.Fragment,{children:a}):s})});wi.displayName=bi;var Xh="SelectIcon",Ci=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ci.displayName=Xh;var Zh="SelectPortal",Ei=e=>i.jsx($t,{asChild:!0,...e});Ei.displayName=Zh;var tt="SelectContent",ki=l.forwardRef((e,t)=>{const n=Ke(tt,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Dt.createPortal(i.jsx(Si,{scope:e.__scopeSelect,children:i.jsx(An.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(Ri,{...e,ref:t})});ki.displayName=tt;var Ce=10,[Si,Ye]=xt(tt),Jh="SelectContentImpl",Qh=Xe("SelectContent.RemoveScroll"),Ri=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v,...b}=e,C=Ke(tt,n),[w,E]=l.useState(null),[S,M]=l.useState(null),k=ne(t,P=>E(P)),[A,D]=l.useState(null),[F,H]=l.useState(null),_=Nn(n),[Y,U]=l.useState(!1),J=l.useRef(!1);l.useEffect(()=>{if(w)return Nr(w)},[w]),Ar();const O=l.useCallback(P=>{const[X,...G]=_().map(oe=>oe.ref.current),[ee]=G.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===X&&S&&(S.scrollTop=0),oe===ee&&S&&(S.scrollTop=S.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[_,S]),K=l.useCallback(()=>O([A,w]),[O,A,w]);l.useEffect(()=>{Y&&K()},[Y,K]);const{onOpenChange:I,triggerPointerDownPosRef:j}=C;l.useEffect(()=>{if(w){let P={x:0,y:0};const X=ee=>{var re,oe;P={x:Math.abs(Math.round(ee.pageX)-(((re=j.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((oe=j.current)==null?void 0:oe.y)??0))}},G=ee=>{P.x<=10&&P.y<=10?ee.preventDefault():w.contains(ee.target)||I(!1),document.removeEventListener("pointermove",X),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,I,j]),l.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[Q,y]=Hi(P=>{const X=_().filter(re=>!re.disabled),G=X.find(re=>re.ref.current===document.activeElement),ee=Bi(X,P,G);ee&&setTimeout(()=>ee.ref.current.focus())}),T=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&(D(P),ee&&(J.current=!0))},[C.value]),$=l.useCallback(()=>w==null?void 0:w.focus(),[w]),L=l.useCallback((P,X,G)=>{const ee=!J.current&&!G;(C.value!==void 0&&C.value===X||ee)&&H(P)},[C.value]),V=r==="popper"?fr:Ti,W=V===fr?{side:c,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:v}:{};return i.jsx(Si,{scope:n,content:w,viewport:S,onViewportChange:M,itemRefCallback:T,selectedItem:A,onItemLeave:$,itemTextRefCallback:L,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:Y,searchRef:Q,children:i.jsx(wn,{as:Qh,allowPinchZoom:!0,children:i.jsx(xn,{asChild:!0,trapped:C.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:N(o,P=>{var X;(X=C.trigger)==null||X.focus({preventScroll:!0}),P.preventDefault()}),children:i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:i.jsx(V,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:P=>P.preventDefault(),...b,...W,onPlaced:()=>U(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:N(b.onKeyDown,P=>{const X=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!X&&P.key.length===1&&y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let ee=_().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=ee.indexOf(re);ee=ee.slice(oe+1)}setTimeout(()=>O(ee)),P.preventDefault()}})})})})})})});Ri.displayName=Jh;var em="SelectItemAlignedPosition",Ti=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ke(tt,n),a=Ye(tt,n),[c,d]=l.useState(null),[u,f]=l.useState(null),p=ne(t,k=>f(k)),h=Nn(n),g=l.useRef(!1),x=l.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:b,focusSelectedItem:C}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&v&&b){const k=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(s.dir!=="rtl"){const re=F.left-A.left,oe=D.left-re,fe=k.left-oe,Pe=k.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,Et=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.left=Et+"px"}else{const re=A.right-F.right,oe=window.innerWidth-D.right-re,fe=window.innerWidth-k.right-oe,Pe=k.width+fe,wt=Math.max(Pe,A.width),Ct=window.innerWidth-Ce,Et=Jo(oe,[Ce,Math.max(Ce,Ct-wt)]);c.style.minWidth=Pe+"px",c.style.right=Et+"px"}const H=h(),_=window.innerHeight-Ce*2,Y=m.scrollHeight,U=window.getComputedStyle(u),J=parseInt(U.borderTopWidth,10),O=parseInt(U.paddingTop,10),K=parseInt(U.borderBottomWidth,10),I=parseInt(U.paddingBottom,10),j=J+O+Y+I+K,Q=Math.min(v.offsetHeight*5,j),y=window.getComputedStyle(m),T=parseInt(y.paddingTop,10),$=parseInt(y.paddingBottom,10),L=k.top+k.height/2-Ce,V=_-L,W=v.offsetHeight/2,P=v.offsetTop+W,X=J+O+P,G=j-X;if(X<=L){const re=H.length>0&&v===H[H.length-1].ref.current;c.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(V,W+(re?$:0)+oe+K),Pe=X+fe;c.style.height=Pe+"px"}else{const re=H.length>0&&v===H[0].ref.current;c.style.top="0px";const fe=Math.max(L,J+m.offsetTop+(re?T:0)+W)+G;c.style.height=fe+"px",m.scrollTop=X-L+m.offsetTop}c.style.margin=`${Ce}px 0`,c.style.minHeight=Q+"px",c.style.maxHeight=_+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,c,u,m,v,b,s.dir,r]);ie(()=>w(),[w]);const[E,S]=l.useState();ie(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const M=l.useCallback(k=>{k&&x.current===!0&&(w(),C==null||C(),x.current=!1)},[w,C]);return i.jsx(nm,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:M,children:i.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:i.jsx(z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ti.displayName=em;var tm="SelectPopperPosition",fr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ce,...s}=e,a=_n(n);return i.jsx(qr,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});fr.displayName=tm;var[nm,no]=xt(tt,{}),pr="SelectViewport",Mi=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ye(pr,n),a=no(pr,n),c=ne(t,s.onViewportChange),d=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),i.jsx(An.Slot,{scope:n,children:i.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&p){const g=Math.abs(d.current-f.scrollTop);if(g>0){const x=window.innerHeight-Ce*2,m=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),b=Math.max(m,v);if(b<x){const C=b+g,w=Math.min(x,C),E=C-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});Mi.displayName=pr;var Pi="SelectGroup",[rm,om]=xt(Pi),sm=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ee();return i.jsx(rm,{scope:n,id:o,children:i.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});sm.displayName=Pi;var ji="SelectLabel",am=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=om(ji,n);return i.jsx(z.div,{id:o.id,...r,ref:t})});am.displayName=ji;var pn="SelectItem",[im,Ai]=xt(pn),Ni=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Ke(pn,n),d=Ye(pn,n),u=c.value===r,[f,p]=l.useState(s??""),[h,g]=l.useState(!1),x=ne(t,C=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,C,r,o)}),m=Ee(),v=l.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(im,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(C=>{p(w=>w||((C==null?void 0:C.textContent)??"").trim())},[]),children:i.jsx(An.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:x,onFocus:N(a.onFocus,()=>g(!0)),onBlur:N(a.onBlur,()=>g(!1)),onClick:N(a.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:N(a.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:N(a.onPointerDown,C=>{v.current=C.pointerType}),onPointerMove:N(a.onPointerMove,C=>{var w;v.current=C.pointerType,o?(w=d.onItemLeave)==null||w.call(d):v.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(a.onPointerLeave,C=>{var w;C.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:N(a.onKeyDown,C=>{var E;((E=d.searchRef)==null?void 0:E.current)!==""&&C.key===" "||(Vh.includes(C.key)&&b(),C.key===" "&&C.preventDefault())})})})})});Ni.displayName=pn;var Pt="SelectItemText",_i=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Ke(Pt,n),c=Ye(Pt,n),d=Ai(Pt,n),u=Yh(Pt,n),[f,p]=l.useState(null),h=ne(t,b=>p(b),d.onItemTextChange,b=>{var C;return(C=c.itemTextRefCallback)==null?void 0:C.call(c,b,d.value,d.disabled)}),g=f==null?void 0:f.textContent,x=l.useMemo(()=>i.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return ie(()=>(m(x),()=>v(x)),[m,v,x]),i.jsxs(i.Fragment,{children:[i.jsx(z.span,{id:d.textId,...s,ref:h}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Dt.createPortal(s.children,a.valueNode):null]})});_i.displayName=Pt;var Ii="SelectItemIndicator",Oi=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ai(Ii,n).isSelected?i.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});Oi.displayName=Ii;var hr="SelectScrollUpButton",Li=l.forwardRef((e,t)=>{const n=Ye(hr,e.__scopeSelect),r=no(hr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;s(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Fi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});Li.displayName=hr;var mr="SelectScrollDownButton",Di=l.forwardRef((e,t)=>{const n=Ye(mr,e.__scopeSelect),r=no(mr,e.__scopeSelect),[o,s]=l.useState(!1),a=ne(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;s(f)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Fi,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});Di.displayName=mr;var Fi=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ye("SelectScrollButton",n),a=l.useRef(null),c=Nn(n),d=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>d(),[d]),ie(()=>{var f;const u=c().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),i.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{d()})})}),cm="SelectSeparator",lm=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});lm.displayName=cm;var gr="SelectArrow",um=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_n(n),s=Ke(gr,n),a=Ye(gr,n);return s.open&&a.position==="popper"?i.jsx(Kr,{...o,...r,ref:t}):null});um.displayName=gr;var dm="SelectBubbleInput",$i=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=ne(r,o),a=ef(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(p)}},[a,t]),i.jsx(z.select,{...n,style:{...Ps,...n.style},ref:s,defaultValue:t})});$i.displayName=dm;function Ui(e){return e===""||e===void 0}function Hi(e){const t=ke(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const c=n.current+a;t(c),(function d(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Bi(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=fm(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function fm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Vy=vi,Gy=xi,qy=wi,Ky=Ci,Yy=Ei,Xy=ki,Zy=Mi,Jy=Ni,Qy=_i,ex=Oi,tx=Li,nx=Di,pm="Separator",Qo="horizontal",hm=["horizontal","vertical"],zi=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Qo,...o}=e,s=mm(r)?r:Qo,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(z.div,{"data-orientation":s,...c,...o,ref:t})});zi.displayName=pm;function mm(e){return hm.includes(e)}var rx=zi,In="Tabs",[gm]=Ie(In,[Tn]),Wi=Tn(),[vm,ro]=gm(In),Vi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:c,activationMode:d="automatic",...u}=e,f=yn(c),[p,h]=Ze({prop:r,onChange:o,defaultProp:s??"",caller:In});return i.jsx(vm,{scope:n,baseId:Ee(),value:p,onValueChange:h,orientation:a,dir:f,activationMode:d,children:i.jsx(z.div,{dir:f,"data-orientation":a,...u,ref:t})})});Vi.displayName=In;var Gi="TabsList",qi=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=ro(Gi,n),a=Wi(n);return i.jsx(Oa,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:i.jsx(z.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});qi.displayName=Gi;var Ki="TabsTrigger",Yi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=ro(Ki,n),c=Wi(n),d=Ji(a.baseId,r),u=Qi(a.baseId,r),f=r===a.value;return i.jsx(La,{asChild:!0,...c,focusable:!o,active:f,children:i.jsx(z.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:N(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?a.onValueChange(r):p.preventDefault()}),onKeyDown:N(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&a.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const p=a.activationMode!=="manual";!f&&!o&&p&&a.onValueChange(r)})})})});Yi.displayName=Ki;var Xi="TabsContent",Zi=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,c=ro(Xi,n),d=Ji(c.baseId,r),u=Qi(c.baseId,r),f=r===c.value,p=l.useRef(f);return l.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),i.jsx(Te,{present:o||f,children:({present:h})=>i.jsx(z.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!h,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&s})})});Zi.displayName=Xi;function Ji(e,t){return`${e}-trigger-${t}`}function Qi(e,t){return`${e}-content-${t}`}var ym=Vi,xm=qi,bm=Yi,wm=Zi,[On]=Ie("Tooltip",[yt]),Ln=yt(),ec="TooltipProvider",Cm=700,vr="tooltip.open",[Em,oo]=On(ec),tc=e=>{const{__scopeTooltip:t,delayDuration:n=Cm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),i.jsx(Em,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};tc.displayName=ec;var It="Tooltip",[km,Wt]=On(It),nc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=oo(It,e.__scopeTooltip),u=Ln(t),[f,p]=l.useState(null),h=Ee(),g=l.useRef(0),x=a??d.disableHoverableContent,m=c??d.delayDuration,v=l.useRef(!1),[b,C]=Ze({prop:r,defaultProp:o??!1,onChange:k=>{k?(d.onOpen(),document.dispatchEvent(new CustomEvent(vr))):d.onClose(),s==null||s(k)},caller:It}),w=l.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),E=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,C(!0)},[C]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),M=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,C(!0),g.current=0},m)},[m,C]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),i.jsx(Vr,{...u,children:i.jsx(km,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{d.isOpenDelayedRef.current?M():E()},[d.isOpenDelayedRef,M,E]),onTriggerLeave:l.useCallback(()=>{x?S():(window.clearTimeout(g.current),g.current=0)},[S,x]),onOpen:E,onClose:S,disableHoverableContent:x,children:n})})};nc.displayName=It;var yr="TooltipTrigger",rc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(yr,n),s=oo(yr,n),a=Ln(n),c=l.useRef(null),d=ne(t,c,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),i.jsx(Gr,{asChild:!0,...a,children:i.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:N(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:N(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});rc.displayName=yr;var so="TooltipPortal",[Sm,Rm]=On(so,{forceMount:void 0}),oc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Wt(so,t);return i.jsx(Sm,{scope:t,forceMount:n,children:i.jsx(Te,{present:n||s.open,children:i.jsx($t,{asChild:!0,container:o,children:r})})})};oc.displayName=so;var ft="TooltipContent",sc=l.forwardRef((e,t)=>{const n=Rm(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Wt(ft,e.__scopeTooltip);return i.jsx(Te,{present:r||a.open,children:a.disableHoverableContent?i.jsx(ac,{side:o,...s,ref:t}):i.jsx(Tm,{side:o,...s,ref:t})})}),Tm=l.forwardRef((e,t)=>{const n=Wt(ft,e.__scopeTooltip),r=oo(ft,e.__scopeTooltip),o=l.useRef(null),s=ne(t,o),[a,c]=l.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{c(null),p(!1)},[p]),g=l.useCallback((x,m)=>{const v=x.currentTarget,b={x:x.clientX,y:x.clientY},C=Am(b,v.getBoundingClientRect()),w=Nm(b,C),E=_m(m.getBoundingClientRect()),S=Om([...w,...E]);c(S),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(d&&f){const x=v=>g(v,f),m=v=>g(v,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",m)}}},[d,f,g,h]),l.useEffect(()=>{if(a){const x=m=>{const v=m.target,b={x:m.clientX,y:m.clientY},C=(d==null?void 0:d.contains(v))||(f==null?void 0:f.contains(v)),w=!Im(b,a);C?h():w&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,a,u,h]),i.jsx(ac,{...e,ref:s})}),[Mm,Pm]=On(It,{isInside:!1}),jm=vu("TooltipContent"),ac=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,d=Wt(ft,n),u=Ln(n),{onClose:f}=d;return l.useEffect(()=>(document.addEventListener(vr,f),()=>document.removeEventListener(vr,f)),[f]),l.useEffect(()=>{if(d.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),i.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:i.jsxs(qr,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.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:[i.jsx(jm,{children:r}),i.jsx(Mm,{scope:n,isInside:!0,children:i.jsx(Eu,{id:d.contentId,role:"tooltip",children:o||r})})]})})});sc.displayName=ft;var ic="TooltipArrow",cc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ln(n);return Pm(ic,n).isInside?null:i.jsx(Kr,{...o,...r,ref:t})});cc.displayName=ic;function Am(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Nm(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 _m(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 Im(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],d=t[a],u=c.x,f=c.y,p=d.x,h=d.y;f>r!=h>r&&n<(p-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function Om(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),Lm(t)}function Lm(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 ox=tc,sx=nc,ax=rc,ix=oc,cx=sc,lx=cc;const ao="-",Dm=e=>{const t=$m(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(ao);return c[0]===""&&c.length!==1&&c.shift(),lc(c,t)||Fm(a)},getConflictingClassGroupIds:(a,c)=>{const d=n[a]||[];return c&&r[a]?[...d,...r[a]]:d}}},lc=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?lc(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ao);return(a=t.validators.find(({validator:c})=>c(s)))==null?void 0:a.classGroupId},es=/^\[(.+)\]$/,Fm=e=>{if(es.test(e)){const t=es.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$m=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hm(Object.entries(e.classGroups),n).forEach(([s,a])=>{xr(a,r,s,t)}),r},xr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ts(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Um(o)){xr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{xr(a,ts(t,s),n,r)})})},ts=(e,t)=>{let n=e;return t.split(ao).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Um=e=>e.isThemeGetter,Hm=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,c])=>[t+a,c])):s);return[n,o]}):e,Bm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},uc="!",zm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=c=>{const d=[];let u=0,f=0,p;for(let v=0;v<c.length;v++){let b=c[v];if(u===0){if(b===o&&(r||c.slice(v,v+s)===t)){d.push(c.slice(f,v)),f=v+s;continue}if(b==="/"){p=v;continue}}b==="["?u++:b==="]"&&u--}const h=d.length===0?c:c.substring(f),g=h.startsWith(uc),x=g?h.substring(1):h,m=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:m}};return n?c=>n({className:c,parseClassName:a}):a},Wm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Vm=e=>({cache:Bm(e.cacheSize),parseClassName:zm(e),...Dm(e)}),Gm=/\s+/,qm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Gm);let c="";for(let d=a.length-1;d>=0;d-=1){const u=a[d],{modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);let x=!!g,m=r(x?h.substring(0,g):h);if(!m){if(!x){c=u+(c.length>0?" "+c:c);continue}if(m=r(h),!m){c=u+(c.length>0?" "+c:c);continue}x=!1}const v=Wm(f).join(":"),b=p?v+uc:v,C=b+m;if(s.includes(C))continue;s.push(C);const w=o(m,x);for(let E=0;E<w.length;++E){const S=w[E];s.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function Km(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=dc(t))&&(r&&(r+=" "),r+=n);return r}const dc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=dc(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ym(e,...t){let n,r,o,s=a;function a(d){const u=t.reduce((f,p)=>p(f),e());return n=Vm(u),r=n.cache.get,o=n.cache.set,s=c,c(d)}function c(d){const u=r(d);if(u)return u;const f=qm(d,n);return o(d,f),f}return function(){return s(Km.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xm=/^\d+\/\d+$/,Zm=new Set(["px","full","screen"]),Jm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ng=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>ut(e)||Zm.has(e)||Xm.test(e),Be=e=>bt(e,"length",ug),ut=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>bt(e,"number",ut),Rt=e=>!!e&&Number.isInteger(Number(e)),rg=e=>e.endsWith("%")&&ut(e.slice(0,-1)),q=e=>fc.test(e),ze=e=>Jm.test(e),og=new Set(["length","size","percentage"]),sg=e=>bt(e,og,pc),ag=e=>bt(e,"position",pc),ig=new Set(["image","url"]),cg=e=>bt(e,ig,fg),lg=e=>bt(e,"",dg),Tt=()=>!0,bt=(e,t,n)=>{const r=fc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ug=e=>Qm.test(e)&&!eg.test(e),pc=()=>!1,dg=e=>tg.test(e),fg=e=>ng.test(e),pg=()=>{const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),o=se("borderColor"),s=se("borderRadius"),a=se("borderSpacing"),c=se("borderWidth"),d=se("contrast"),u=se("grayscale"),f=se("hueRotate"),p=se("invert"),h=se("gap"),g=se("gradientColorStops"),x=se("gradientColorStopPositions"),m=se("inset"),v=se("margin"),b=se("opacity"),C=se("padding"),w=se("saturate"),E=se("scale"),S=se("sepia"),M=se("skew"),k=se("space"),A=se("translate"),D=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",q,t],_=()=>[q,t],Y=()=>["",Le,Be],U=()=>["auto",ut,q],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",q],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>[ut,q];return{cacheSize:500,separator:":",theme:{colors:[Tt],spacing:[Le,Be],blur:["none","",ze,q],brightness:y(),borderColor:[e],borderRadius:["none","","full",ze,q],borderSpacing:_(),borderWidth:Y(),contrast:y(),grayscale:j(),hueRotate:y(),invert:j(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[rg,Be],inset:H(),margin:H(),opacity:y(),padding:_(),saturate:y(),scale:y(),sepia:j(),skew:y(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[ze]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rt,q]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Rt,q]}],"grid-cols":[{"grid-cols":[Tt]}],"col-start-end":[{col:["auto",{span:["full",Rt,q]},q]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Tt]}],"row-start-end":[{row:["auto",{span:[Rt,q]},q]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[ze]},ze]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ze,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[Tt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",ut,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Le,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Le,Be]}],"underline-offset":[{"underline-offset":["auto",Le,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ag]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Le,q]}],"outline-w":[{outline:[Le,Be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Le,Be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ze,lg]}],"shadow-color":[{shadow:[Tt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ze,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:y()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:y()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Rt,q]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Le,Be,tr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},hg=Ym(pg);function we(...e){return hg(Ss(e))}const mg=Pr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function gg({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?Rs:"button";return i.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:we(mg({variant:t,size:n,className:e})),...o})}const io="@rulemetric/cli",vg=`npm install -g ${io}`,ux=`npm install -g ${io}@latest`,dx=`npm i -g ${io}@latest`,yg=Pr("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 [button&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 [button&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 [button&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline [button&]:hover:underline"}},defaultVariants:{variant:"default"}});function co({className:e,variant:t="default",asChild:n=!1,...r}){const o=n?Rs:"span";return i.jsx(o,{"data-slot":"badge","data-variant":t,className:we(yg({variant:t}),e),...r})}function xg(e=2e3){const[t,n]=l.useState(!1),r=l.useCallback(async o=>{const s=()=>{n(!0),setTimeout(()=>n(!1),e)};try{return await navigator.clipboard.writeText(o),s(),!0}catch{try{const a=document.createElement("textarea");return a.value=o,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),s(),!0}catch{return!1}}},[e]);return{copied:t,copy:r}}function ge({className:e,...t}){return i.jsx("div",{"data-slot":"card",className:we("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function fx({className:e,...t}){return i.jsx("div",{"data-slot":"card-header",className:we("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function px({className:e,...t}){return i.jsx("div",{"data-slot":"card-title",className:we("leading-none font-semibold",e),...t})}function hx({className:e,...t}){return i.jsx("div",{"data-slot":"card-description",className:we("text-muted-foreground text-sm",e),...t})}function ve({className:e,...t}){return i.jsx("div",{"data-slot":"card-content",className:we("px-6",e),...t})}function mx({className:e,...t}){return i.jsx("div",{"data-slot":"card-footer",className:we("flex items-center px-6 [.border-t]:pt-6",e),...t})}function hc({className:e,orientation:t="horizontal",...n}){return i.jsx(ym,{"data-slot":"tabs","data-orientation":t,orientation:t,className:we("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...n})}const bg=Pr("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit max-w-full items-center justify-center group-data-[orientation=horizontal]/tabs:overflow-x-auto group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function mc({className:e,variant:t="default",...n}){return i.jsx(xm,{"data-slot":"tabs-list","data-variant":t,className:we(bg({variant:t}),e),...n})}function ue({className:e,...t}){return i.jsx(bm,{"data-slot":"tabs-trigger",className:we("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all cursor-pointer group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function de({className:e,...t}){return i.jsx(wm,{"data-slot":"tabs-content",className:we("flex-1 outline-none",e),...t})}function gc(e,t,n="tab"){const[r,o]=Zl(),s=r.get(n);return[s!=null&&e.includes(s)?s:t,d=>{o(u=>{const f=new URLSearchParams(u);return d===t?f.delete(n):f.set(n,d),f},{replace:!0})}]}const wg=[{group:"Auth",commands:[{name:"auth login",desc:"Log in to RuleMetric (email/password)"},{name:"auth create-key",desc:"Create a long-lived API key for hooks and proxy"},{name:"auth revoke-key",desc:"Revoke an API key"},{name:"auth logout",desc:"Log out and clear stored credentials"},{name:"auth status",desc:"Show current auth status"}]},{group:"Instructions",commands:[{name:"instructions list",desc:"List all your instructions"},{name:"import <file>",desc:"Import a CLAUDE.md, .cursorrules, etc."},{name:"catalog",desc:"Browse the org/team instruction catalog"}]},{group:"Sessions",commands:[{name:"sessions list",desc:"List captured sessions (supports --tool, --limit)"},{name:"sessions import <file>",desc:"Import session from JSONL/JSON (auto-detects tool)"}]},{group:"Hooks",commands:[{name:"hooks install",desc:"Install session tracking hooks in current project"},{name:"hooks install --global",desc:"Install hooks for all projects"},{name:"hooks uninstall",desc:"Remove hooks from current project"},{name:"hooks run <name>",desc:"Execute a hook script (called by AI tools)"}]},{group:"Evals",commands:[{name:"evals create <target-id>",desc:"Create eval test cases for a target"},{name:"evals run <target-id>",desc:"Execute evals (with/without target, grading)"},{name:"evals benchmark <target-id>",desc:"Aggregate runs into statistical benchmarks"},{name:"evals optimize <target-id>",desc:"Iteratively optimize instruction content"},{name:"evals optimize-description <target-id>",desc:"Optimize trigger description using queries"},{name:"evals compare <a-id> <b-id>",desc:"Blind A/B comparison between two targets"},{name:"evals agent",desc:"Run the worker in the foreground (one-off)"}]},{group:"Proxy",commands:[{name:"proxy start",desc:"Start the mitmproxy context sniffer"},{name:"proxy stop",desc:"Stop mitmproxy (gateway stays alive)"},{name:"proxy status",desc:"Check gateway and proxy health"}]},{group:"Worker / Service",commands:[{name:"service install --worker-only",desc:"Install the worker as a persistent service (launchd/systemd) — no repo needed"},{name:"service status",desc:"Check installed RuleMetric services"},{name:"service uninstall",desc:"Remove installed RuleMetric services"}]}],Cg=[{group:"Instructions",endpoints:[{method:"GET",path:"/api/instructions",desc:"List instructions (supports ?scope=, ?search=)"},{method:"POST",path:"/api/instructions",desc:"Create a new instruction"},{method:"GET",path:"/api/instructions/:id",desc:"Get instruction by ID"},{method:"PUT",path:"/api/instructions/:id",desc:"Update instruction (creates version on content change)"},{method:"DELETE",path:"/api/instructions/:id",desc:"Archive an instruction"}]},{group:"Sessions",endpoints:[{method:"POST",path:"/api/sessions",desc:"Create a new session"},{method:"GET",path:"/api/sessions",desc:"List sessions (?tool, ?outcome, ?friction, ?instructionId, ?projectPath)"},{method:"GET",path:"/api/sessions/:id",desc:"Get session with linked instructions"},{method:"POST",path:"/api/sessions/:id/events",desc:"Append event (atomic sequence assignment)"},{method:"PATCH",path:"/api/sessions/:id/enrich",desc:"Merge metadata, analysis, tokenUsage, externalSessionId"},{method:"POST",path:"/api/sessions/:id/analyze",desc:"AI-powered session analysis"},{method:"POST",path:"/api/sessions/import",desc:"Import from raw content (auto-detects tool)"},{method:"POST",path:"/api/sessions/link-instructions",desc:"Scan snapshots, auto-create + link instructions"}]},{group:"Context Snapshots",endpoints:[{method:"POST",path:"/api/sessions/:id/context-snapshots",desc:"Store captured LLM request snapshot"},{method:"GET",path:"/api/sessions/:id/context-snapshots",desc:"List snapshots (supports ?limit=, ?offset=)"},{method:"GET",path:"/api/context-snapshots/:id",desc:"Get single snapshot"}]},{group:"Eval Targets & Cases",endpoints:[{method:"POST",path:"/api/eval-targets",desc:"Create eval target"},{method:"GET",path:"/api/eval-targets",desc:"List targets (supports ?type=, ?content_hash=)"},{method:"GET",path:"/api/eval-targets/:id",desc:"Get target by ID"},{method:"PUT",path:"/api/eval-targets/:id",desc:"Update target (content change = new version)"},{method:"POST",path:"/api/eval-targets/:id/evals",desc:"Create test case for target"},{method:"GET",path:"/api/eval-targets/:id/evals",desc:"List test cases"}]},{group:"Eval Runs & Benchmarks",endpoints:[{method:"POST",path:"/api/eval-runs",desc:"Create eval run (posted by CLI worker)"},{method:"GET",path:"/api/eval-targets/:id/runs",desc:"List runs (supports ?iteration=, ?limit=)"},{method:"POST",path:"/api/eval-targets/:id/benchmarks",desc:"Create aggregated benchmark"},{method:"GET",path:"/api/eval-targets/:id/benchmarks",desc:"List benchmarks"}]},{group:"Eval Jobs",endpoints:[{method:"POST",path:"/api/eval-jobs",desc:"Create pending eval job (web UI triggers); the local CLI worker claims it via GET /api/work/next"},{method:"GET",path:"/api/eval-targets/:id/jobs",desc:"List jobs for a target"},{method:"PATCH",path:"/api/eval-jobs/:id/progress",desc:"Update job progress"},{method:"PATCH",path:"/api/eval-jobs/:id/state",desc:"Mirror state updates from worker (driven by runner.events)"},{method:"POST",path:"/api/eval-jobs/:id/cancel",desc:"Cancel a pending job"}]},{group:"Eval from Context",endpoints:[{method:"POST",path:"/api/eval-from-context",desc:"Find-or-create target + auto-generate evals + create job"}]},{group:"Eval Conversations",endpoints:[{method:"POST",path:"/api/eval-targets/:id/conversations",desc:"Get-or-create chat conversation"},{method:"POST",path:"/api/eval-conversations/:id/messages",desc:"Send user message (creates worker job)"},{method:"POST",path:"/api/eval-conversations/:id/messages/assistant",desc:"Worker posts assistant message"},{method:"POST",path:"/api/eval-conversations/:id/apply-proposal",desc:"Apply proposed content changes"}]},{group:"Insights",endpoints:[{method:"GET",path:"/api/insights/compute",desc:"Live aggregation (?projectPath, ?since, ?until)"},{method:"GET",path:"/api/insights/instruction-impact",desc:"With-vs-without comparison (?instructionId)"}]},{group:"API Keys",endpoints:[{method:"GET",path:"/api/auth/api-keys",desc:"List API keys for current user"},{method:"POST",path:"/api/auth/api-keys",desc:"Create new API key (returns key once)"},{method:"DELETE",path:"/api/auth/api-keys/:id",desc:"Revoke an API key"}]},{group:"Worker Status",endpoints:[{method:"POST",path:"/api/workers/heartbeat",desc:"Upsert worker connection heartbeat"},{method:"GET",path:"/api/workers/status",desc:"List all worker connections for user"}]}],Eg={GET:"text-teal-500 bg-teal-500/10 border-teal-500/20",POST:"text-blue-500 bg-blue-500/10 border-blue-500/20",PUT:"text-amber-500 bg-amber-500/10 border-amber-500/20",PATCH:"text-pink-500 bg-pink-500/10 border-pink-500/20",DELETE:"text-red-500 bg-red-500/10 border-red-500/20"},it=window.location.origin;function kg({text:e}){const{copied:t,copy:n}=xg();return i.jsx(gg,{variant:"ghost",size:"sm",onClick:()=>n(e),className:"cursor-pointer h-7 text-xs",children:t?i.jsxs(i.Fragment,{children:[i.jsx(iu,{className:"mr-1 h-3 w-3"}),"Copied"]}):i.jsxs(i.Fragment,{children:[i.jsx(lu,{className:"mr-1 h-3 w-3"}),"Copy"]})})}function Z({label:e,code:t}){return i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:e}),i.jsx(kg,{text:t})]}),i.jsx("pre",{className:"overflow-auto rounded-lg border border-border bg-[#0B1120] p-4 text-sm font-mono whitespace-pre-wrap",children:t})]})}function te({title:e,children:t}){return i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"text-lg font-mono font-semibold tracking-tight",children:e}),t]})}function Sg(){const[e,t]=gc(["claude-code","cursor","copilot","antigravity","windsurf","other"],"claude-code","tool");return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"1. Sign Up & Log In",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Create an account on this dashboard, then authenticate the CLI:"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Rather keep everything on your own machine?"," ",i.jsx(gn,{to:"/docs?tab=local",className:"text-primary hover:underline",children:"Local Mode"})," ","runs the same product with no cloud contact — no account required."]}),i.jsx(Z,{label:"Terminal",code:`# Install the CLI
|
|
629
|
-
${vg}
|
|
628
|
+
*/const lx=R("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function ge({className:e,...t}){return i.jsx("div",{"data-slot":"card",className:we("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ux({className:e,...t}){return i.jsx("div",{"data-slot":"card-header",className:we("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function dx({className:e,...t}){return i.jsx("div",{"data-slot":"card-title",className:we("leading-none font-semibold",e),...t})}function fx({className:e,...t}){return i.jsx("div",{"data-slot":"card-description",className:we("text-muted-foreground text-sm",e),...t})}function ve({className:e,...t}){return i.jsx("div",{"data-slot":"card-content",className:we("px-6",e),...t})}function px({className:e,...t}){return i.jsx("div",{"data-slot":"card-footer",className:we("flex items-center px-6 [.border-t]:pt-6",e),...t})}function vg(e=2e3){const[t,n]=l.useState(!1),r=l.useCallback(async o=>{const s=()=>{n(!0),setTimeout(()=>n(!1),e)};try{return await navigator.clipboard.writeText(o),s(),!0}catch{try{const a=document.createElement("textarea");return a.value=o,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),s(),!0}catch{return!1}}},[e]);return{copied:t,copy:r}}const io="@rulemetric/cli",yg=`npm install -g ${io}`,hx=`npm install -g ${io}@latest`,mx=`npm i -g ${io}@latest`,xg=Pr("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 [button&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 [button&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 [button&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground [button&]:hover:bg-accent [button&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline [button&]:hover:underline"}},defaultVariants:{variant:"default"}});function co({className:e,variant:t="default",asChild:n=!1,...r}){const o=n?ks:"span";return i.jsx(o,{"data-slot":"badge","data-variant":t,className:we(xg({variant:t}),e),...r})}function hc({className:e,orientation:t="horizontal",...n}){return i.jsx(am,{"data-slot":"tabs","data-orientation":t,orientation:t,className:we("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...n})}const bg=Pr("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit max-w-full items-center justify-center group-data-[orientation=horizontal]/tabs:overflow-x-auto group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function mc({className:e,variant:t="default",...n}){return i.jsx(im,{"data-slot":"tabs-list","data-variant":t,className:we(bg({variant:t}),e),...n})}function ue({className:e,...t}){return i.jsx(cm,{"data-slot":"tabs-trigger",className:we("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all cursor-pointer group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function de({className:e,...t}){return i.jsx(lm,{"data-slot":"tabs-content",className:we("flex-1 outline-none",e),...t})}function gc(e,t,n="tab"){const[r,o]=Zl(),s=r.get(n);return[s!=null&&e.includes(s)?s:t,d=>{o(u=>{const f=new URLSearchParams(u);return d===t?f.delete(n):f.set(n,d),f},{replace:!0})}]}const wg=[{group:"Auth",commands:[{name:"auth login",desc:"Log in to RuleMetric (email/password)"},{name:"auth create-key",desc:"Create a long-lived API key for hooks and proxy"},{name:"auth revoke-key",desc:"Revoke an API key"},{name:"auth logout",desc:"Log out and clear stored credentials"},{name:"auth status",desc:"Show current auth status"}]},{group:"Instructions",commands:[{name:"instructions list",desc:"List all your instructions"},{name:"import <file>",desc:"Import a CLAUDE.md, .cursorrules, etc."},{name:"catalog",desc:"Browse the org/team instruction catalog"}]},{group:"Sessions",commands:[{name:"sessions list",desc:"List captured sessions (supports --tool, --limit)"},{name:"sessions import <file>",desc:"Import session from JSONL/JSON (auto-detects tool)"}]},{group:"Hooks",commands:[{name:"hooks install",desc:"Install session tracking hooks in current project"},{name:"hooks install --global",desc:"Install hooks for all projects"},{name:"hooks uninstall",desc:"Remove hooks from current project"},{name:"hooks run <name>",desc:"Execute a hook script (called by AI tools)"}]},{group:"Evals",commands:[{name:"evals create <target-id>",desc:"Create eval test cases for a target"},{name:"evals run <target-id>",desc:"Execute evals (with/without target, grading)"},{name:"evals benchmark <target-id>",desc:"Aggregate runs into statistical benchmarks"},{name:"evals optimize <target-id>",desc:"Iteratively optimize instruction content"},{name:"evals optimize-description <target-id>",desc:"Optimize trigger description using queries"},{name:"evals compare <a-id> <b-id>",desc:"Blind A/B comparison between two targets"},{name:"evals agent",desc:"Run the worker in the foreground (one-off)"}]},{group:"Proxy",commands:[{name:"proxy start",desc:"Start the mitmproxy context sniffer"},{name:"proxy stop",desc:"Stop mitmproxy (gateway stays alive)"},{name:"proxy status",desc:"Check gateway and proxy health"}]},{group:"Worker / Service",commands:[{name:"service install --worker-only",desc:"Install the worker as a persistent service (launchd/systemd) — no repo needed"},{name:"service status",desc:"Check installed RuleMetric services"},{name:"service uninstall",desc:"Remove installed RuleMetric services"}]}],Cg=[{group:"Instructions",endpoints:[{method:"GET",path:"/api/instructions",desc:"List instructions (supports ?scope=, ?search=)"},{method:"POST",path:"/api/instructions",desc:"Create a new instruction"},{method:"GET",path:"/api/instructions/:id",desc:"Get instruction by ID"},{method:"PUT",path:"/api/instructions/:id",desc:"Update instruction (creates version on content change)"},{method:"DELETE",path:"/api/instructions/:id",desc:"Archive an instruction"}]},{group:"Sessions",endpoints:[{method:"POST",path:"/api/sessions",desc:"Create a new session"},{method:"GET",path:"/api/sessions",desc:"List sessions (?tool, ?outcome, ?friction, ?instructionId, ?projectPath)"},{method:"GET",path:"/api/sessions/:id",desc:"Get session with linked instructions"},{method:"POST",path:"/api/sessions/:id/events",desc:"Append event (atomic sequence assignment)"},{method:"PATCH",path:"/api/sessions/:id/enrich",desc:"Merge metadata, analysis, tokenUsage, externalSessionId"},{method:"POST",path:"/api/sessions/:id/analyze",desc:"AI-powered session analysis"},{method:"POST",path:"/api/sessions/import",desc:"Import from raw content (auto-detects tool)"},{method:"POST",path:"/api/sessions/link-instructions",desc:"Scan snapshots, auto-create + link instructions"}]},{group:"Context Snapshots",endpoints:[{method:"POST",path:"/api/sessions/:id/context-snapshots",desc:"Store captured LLM request snapshot"},{method:"GET",path:"/api/sessions/:id/context-snapshots",desc:"List snapshots (supports ?limit=, ?offset=)"},{method:"GET",path:"/api/context-snapshots/:id",desc:"Get single snapshot"}]},{group:"Eval Targets & Cases",endpoints:[{method:"POST",path:"/api/eval-targets",desc:"Create eval target"},{method:"GET",path:"/api/eval-targets",desc:"List targets (supports ?type=, ?content_hash=)"},{method:"GET",path:"/api/eval-targets/:id",desc:"Get target by ID"},{method:"PUT",path:"/api/eval-targets/:id",desc:"Update target (content change = new version)"},{method:"POST",path:"/api/eval-targets/:id/evals",desc:"Create test case for target"},{method:"GET",path:"/api/eval-targets/:id/evals",desc:"List test cases"}]},{group:"Eval Runs & Benchmarks",endpoints:[{method:"POST",path:"/api/eval-runs",desc:"Create eval run (posted by CLI worker)"},{method:"GET",path:"/api/eval-targets/:id/runs",desc:"List runs (supports ?iteration=, ?limit=)"},{method:"POST",path:"/api/eval-targets/:id/benchmarks",desc:"Create aggregated benchmark"},{method:"GET",path:"/api/eval-targets/:id/benchmarks",desc:"List benchmarks"}]},{group:"Eval Jobs",endpoints:[{method:"POST",path:"/api/eval-jobs",desc:"Create pending eval job (web UI triggers); the local CLI worker claims it via GET /api/work/next"},{method:"GET",path:"/api/eval-targets/:id/jobs",desc:"List jobs for a target"},{method:"PATCH",path:"/api/eval-jobs/:id/progress",desc:"Update job progress"},{method:"PATCH",path:"/api/eval-jobs/:id/state",desc:"Mirror state updates from worker (driven by runner.events)"},{method:"POST",path:"/api/eval-jobs/:id/cancel",desc:"Cancel a pending job"}]},{group:"Eval from Context",endpoints:[{method:"POST",path:"/api/eval-from-context",desc:"Find-or-create target + auto-generate evals + create job"}]},{group:"Eval Conversations",endpoints:[{method:"POST",path:"/api/eval-targets/:id/conversations",desc:"Get-or-create chat conversation"},{method:"POST",path:"/api/eval-conversations/:id/messages",desc:"Send user message (creates worker job)"},{method:"POST",path:"/api/eval-conversations/:id/messages/assistant",desc:"Worker posts assistant message"},{method:"POST",path:"/api/eval-conversations/:id/apply-proposal",desc:"Apply proposed content changes"}]},{group:"Insights",endpoints:[{method:"GET",path:"/api/insights/compute",desc:"Live aggregation (?projectPath, ?since, ?until)"},{method:"GET",path:"/api/insights/instruction-impact",desc:"With-vs-without comparison (?instructionId)"}]},{group:"API Keys",endpoints:[{method:"GET",path:"/api/auth/api-keys",desc:"List API keys for current user"},{method:"POST",path:"/api/auth/api-keys",desc:"Create new API key (returns key once)"},{method:"DELETE",path:"/api/auth/api-keys/:id",desc:"Revoke an API key"}]},{group:"Worker Status",endpoints:[{method:"POST",path:"/api/workers/heartbeat",desc:"Upsert worker connection heartbeat"},{method:"GET",path:"/api/workers/status",desc:"List all worker connections for user"}]}],Eg={GET:"text-teal-500 bg-teal-500/10 border-teal-500/20",POST:"text-blue-500 bg-blue-500/10 border-blue-500/20",PUT:"text-amber-500 bg-amber-500/10 border-amber-500/20",PATCH:"text-pink-500 bg-pink-500/10 border-pink-500/20",DELETE:"text-red-500 bg-red-500/10 border-red-500/20"},it=window.location.origin;function kg({text:e}){const{copied:t,copy:n}=vg();return i.jsx(og,{variant:"ghost",size:"sm",onClick:()=>n(e),className:"cursor-pointer h-7 text-xs",children:t?i.jsxs(i.Fragment,{children:[i.jsx(lg,{className:"mr-1 h-3 w-3"}),"Copied"]}):i.jsxs(i.Fragment,{children:[i.jsx(dg,{className:"mr-1 h-3 w-3"}),"Copy"]})})}function Z({label:e,code:t}){return i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:e}),i.jsx(kg,{text:t})]}),i.jsx("pre",{className:"overflow-auto rounded-lg border border-border bg-[#0B1120] p-4 text-sm font-mono whitespace-pre-wrap",children:t})]})}function te({title:e,children:t}){return i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"text-lg font-mono font-semibold tracking-tight",children:e}),t]})}function Sg(){const[e,t]=gc(["claude-code","cursor","copilot","antigravity","windsurf","other"],"claude-code","tool");return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"1. Sign Up & Log In",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Create an account on this dashboard, then authenticate the CLI:"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Rather keep everything on your own machine?"," ",i.jsx(gn,{to:"/docs?tab=local",className:"text-primary hover:underline",children:"Local Mode"})," ","runs the same product with no cloud contact — no account required."]}),i.jsx(Z,{label:"Terminal",code:`# Install the CLI
|
|
629
|
+
${yg}
|
|
630
630
|
|
|
631
631
|
# Log in (email/password prompt)
|
|
632
632
|
rulemetric auth login
|
|
@@ -720,7 +720,7 @@ rulemetric skills install <id>`}),i.jsx("p",{className:"text-sm text-muted-foreg
|
|
|
720
720
|
└── Tools: list, search, catalog, recommend
|
|
721
721
|
|
|
|
722
722
|
v
|
|
723
|
-
RuleMetric API → Supabase DB → Web Dashboard`})})})]})}function Rg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All commands are prefixed with ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rulemetric"}),". Use ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"--help"})," on any command for full options."]}),wg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-2",children:e.commands.map(t=>i.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-background p-3",children:[i.jsx("code",{className:"font-mono text-xs bg-muted px-2 py-1 rounded shrink-0",children:t.name}),i.jsx("span",{className:"text-sm text-muted-foreground",children:t.desc})]},t.name))})]},e.group))]})}function Tg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All API endpoints require authentication via ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"Authorization: Bearer <api-key-or-jwt>"})," header. Use an API key (",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rm_..."}),") for CLI/proxy or a Supabase JWT for web sessions. Base URL: ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:it})]}),Cg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-1.5",children:e.endpoints.map(t=>i.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2",children:[i.jsx(co,{variant:"outline",className:`font-mono text-xs w-14 justify-center shrink-0 ${Eg[t.method]??""}`,children:t.method}),i.jsx("code",{className:"font-mono text-xs shrink-0",children:t.path}),i.jsx(
|
|
723
|
+
RuleMetric API → Supabase DB → Web Dashboard`})})})]})}function Rg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All commands are prefixed with ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rulemetric"}),". Use ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"--help"})," on any command for full options."]}),wg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-2",children:e.commands.map(t=>i.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-background p-3",children:[i.jsx("code",{className:"font-mono text-xs bg-muted px-2 py-1 rounded shrink-0",children:t.name}),i.jsx("span",{className:"text-sm text-muted-foreground",children:t.desc})]},t.name))})]},e.group))]})}function Tg(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["All API endpoints require authentication via ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"Authorization: Bearer <api-key-or-jwt>"})," header. Use an API key (",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"rm_..."}),") for CLI/proxy or a Supabase JWT for web sessions. Base URL: ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:it})]}),Cg.map(e=>i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:e.group}),i.jsx("div",{className:"grid gap-1.5",children:e.endpoints.map(t=>i.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2",children:[i.jsx(co,{variant:"outline",className:`font-mono text-xs w-14 justify-center shrink-0 ${Eg[t.method]??""}`,children:t.method}),i.jsx("code",{className:"font-mono text-xs shrink-0",children:t.path}),i.jsx(fc,{className:"h-3 w-3 text-muted-foreground shrink-0"}),i.jsx("span",{className:"text-sm text-muted-foreground truncate",children:t.desc})]},`${t.method}-${t.path}`))})]},e.group))]})}function Mg(){return i.jsxs("div",{className:"space-y-8",children:[i.jsxs(te,{title:"Overview",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["The eval system measures whether your instructions actually improve AI behavior. It compares AI output ",i.jsx("strong",{children:"with"})," vs ",i.jsx("strong",{children:"without"})," your instruction, grades against expectations, and tracks quality over time."]}),i.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-4",children:i.jsx("pre",{className:"text-xs font-mono text-muted-foreground whitespace-pre overflow-x-auto",children:`Instruction (eval target)
|
|
724
724
|
|
|
|
725
725
|
├── Test Cases (evals) — prompts + expectations
|
|
726
726
|
| |
|
|
@@ -779,7 +779,7 @@ RULEMETRIC_API_URL=http://localhost:3000 rulemetric auth login
|
|
|
779
779
|
|
|
780
780
|
rulemetric hooks install`})]})})}),i.jsx(te,{title:"4. Guarantee zero cloud egress",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-3",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Strict mode turns every ",i.jsx("em",{children:"implicit"})," fallback to"," ",i.jsx("code",{className:"bg-muted px-1 rounded",children:"https://rulemetric.com"})," into a loud failure instead of a silent upload — across the CLI, hooks, the error beacon, and the proxy reporter. A URL you configured explicitly always satisfies it."]}),i.jsx(Z,{label:"strict local",code:"echo 'RULEMETRIC_STRICT_LOCAL=1' >> ~/.config/rulemetric/env"})]})})}),i.jsx(te,{title:"5. Stop, restart, or wipe",children:i.jsx(Z,{label:"lifecycle",code:`rulemetric local down # stop; your data stays on disk
|
|
781
781
|
rulemetric local up # pick it back up
|
|
782
|
-
rulemetric local down --delete-data # stop and delete the local database (irreversible)`})})]})}function Ng(){return i.jsxs("div",{className:"space-y-8",children:[i.jsx(te,{title:"Data Retention Policy",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-3",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["RuleMetric captures AI coding sessions to measure which instructions actually work. That data is yours: it is ",i.jsx("strong",{children:"retained until you delete it"})," — there is no silent expiry of session content, because longitudinal measurement is the product. Deletion is self-serve, immediate, and complete."]}),i.jsxs(gn,{to:"/docs?tab=local",className:"group flex items-center gap-2 rounded-lg border border-primary/40 bg-primary/[0.06] px-3 py-2 no-underline transition-colors hover:bg-primary/[0.1]",children:[i.jsx(
|
|
782
|
+
rulemetric local down --delete-data # stop and delete the local database (irreversible)`})})]})}function Ng(){return i.jsxs("div",{className:"space-y-8",children:[i.jsx(te,{title:"Data Retention Policy",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-3",children:[i.jsxs("p",{className:"text-sm text-muted-foreground",children:["RuleMetric captures AI coding sessions to measure which instructions actually work. That data is yours: it is ",i.jsx("strong",{children:"retained until you delete it"})," — there is no silent expiry of session content, because longitudinal measurement is the product. Deletion is self-serve, immediate, and complete."]}),i.jsxs(gn,{to:"/docs?tab=local",className:"group flex items-center gap-2 rounded-lg border border-primary/40 bg-primary/[0.06] px-3 py-2 no-underline transition-colors hover:bg-primary/[0.1]",children:[i.jsx(pc,{className:"h-4 w-4 shrink-0 text-primary"}),i.jsx("span",{className:"min-w-0 flex-1 text-sm",children:"Prefer none of this to leave your machine? Run RuleMetric fully locally."}),i.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-sm font-medium text-primary",children:["Local Mode",i.jsx(fc,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]})})}),i.jsx(te,{title:"What is stored, and for how long",children:i.jsx(ge,{children:i.jsx(ve,{className:"pt-6 space-y-4",children:i.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Session content — kept until you delete it"}),i.jsx("p",{children:"Events (your prompts, assistant responses, tool calls), context snapshots (system prompts, injected instructions), and offloaded conversation blobs. No automatic expiry."})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Derived data — documented separately, survives session deletion"}),i.jsxs("p",{children:["Effectiveness statistics, distilled memories, and eval baselines are ",i.jsx("em",{children:"derived from"})," sessions. Aggregates (pass rates, outcome deltas) contain no transcript text and are retained independently. Text-bearing derived artifacts (memories, suggestion reasons, eval targets) can be deleted individually, and account deletion removes all of them."]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Operational telemetry — 12 months"}),i.jsx("p",{children:"Setup events, error beacons, and usage-limit observations are pruned after 12 months. They contain command names and error codes, not session content."})]}),i.jsxs("div",{children:[i.jsx("p",{className:"font-medium text-foreground",children:"Backups — 7 days"}),i.jsx("p",{children:"The database is backed up daily with a 7-day retention window. Deleted data leaves all backups within 7 days of deletion."})]})]})})})}),i.jsx(te,{title:"Deleting your data",children:i.jsx(ge,{children:i.jsxs(ve,{className:"pt-6 space-y-4",children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Session deletion removes the session and everything stored under it — events, context snapshots, and offloaded storage blobs (blobs are content-addressed and shared, so removal is reference-counted: nothing another session needs is touched, nothing yours had is left behind). The command reports exactly what was erased."}),i.jsx(Z,{label:"Delete sessions (CLI ≥ 0.7.39)",code:`# One or more sessions by id
|
|
783
783
|
rulemetric sessions delete <session-id>
|
|
784
784
|
|
|
785
785
|
# Everything captured under a project (bulk scrub)
|
|
@@ -789,4 +789,4 @@ rulemetric capture scope --tool hooks --off
|
|
|
789
789
|
|
|
790
790
|
# The worker's Codex transcript sweep
|
|
791
791
|
rulemetric capture scope --add ~/work/client-a
|
|
792
|
-
rulemetric capture scope --off`}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"One honest caveat: the optional mitmproxy network-capture chain is governed by its host allowlist, not by these scopes. Hooks-first capture (the default) is fully governed."})]})})})]})}function gx(){const[e,t]=gc(["getting-started","cli","api","evals","proxy","insights","data","local"],"getting-started");return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-mono font-bold tracking-tight",children:"Documentation"}),i.jsx("p",{className:"text-muted-foreground",children:"Guides, CLI reference, API reference, and system documentation"})]}),i.jsxs(hc,{value:e,onValueChange:t,children:[i.jsxs(mc,{children:[i.jsxs(ue,{value:"getting-started",className:"cursor-pointer",children:[i.jsx(
|
|
792
|
+
rulemetric capture scope --off`}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"One honest caveat: the optional mitmproxy network-capture chain is governed by its host allowlist, not by these scopes. Hooks-first capture (the default) is fully governed."})]})})})]})}function gx(){const[e,t]=gc(["getting-started","cli","api","evals","proxy","insights","data","local"],"getting-started");return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl font-mono font-bold tracking-tight",children:"Documentation"}),i.jsx("p",{className:"text-muted-foreground",children:"Guides, CLI reference, API reference, and system documentation"})]}),i.jsxs(hc,{value:e,onValueChange:t,children:[i.jsxs(mc,{children:[i.jsxs(ue,{value:"getting-started",className:"cursor-pointer",children:[i.jsx(cg,{className:"mr-2 h-4 w-4"}),"Quick Start"]}),i.jsxs(ue,{value:"cli",className:"cursor-pointer",children:[i.jsx(mg,{className:"mr-2 h-4 w-4"}),"CLI Reference"]}),i.jsxs(ue,{value:"api",className:"cursor-pointer",children:[i.jsx(ug,{className:"mr-2 h-4 w-4"}),"API Reference"]}),i.jsxs(ue,{value:"evals",className:"cursor-pointer",children:[i.jsx(fg,{className:"mr-2 h-4 w-4"}),"Eval System"]}),i.jsxs(ue,{value:"proxy",className:"cursor-pointer",children:[i.jsx(pg,{className:"mr-2 h-4 w-4"}),"Proxy & Context"]}),i.jsxs(ue,{value:"insights",className:"cursor-pointer",children:[i.jsx(gg,{className:"mr-2 h-4 w-4"}),"Insights"]}),i.jsxs(ue,{value:"local",className:"cursor-pointer",children:[i.jsx(pc,{className:"mr-2 h-4 w-4"}),"Local Mode"]}),i.jsxs(ue,{value:"data",className:"cursor-pointer",children:[i.jsx(hg,{className:"mr-2 h-4 w-4"}),"Data & Retention"]})]}),i.jsx(de,{value:"getting-started",className:"mt-6",children:i.jsx(Sg,{})}),i.jsx(de,{value:"cli",className:"mt-6",children:i.jsx(Rg,{})}),i.jsx(de,{value:"api",className:"mt-6",children:i.jsx(Tg,{})}),i.jsx(de,{value:"evals",className:"mt-6",children:i.jsx(Mg,{})}),i.jsx(de,{value:"proxy",className:"mt-6",children:i.jsx(Pg,{})}),i.jsx(de,{value:"insights",className:"mt-6",children:i.jsx(jg,{})}),i.jsx(de,{value:"local",className:"mt-6",children:i.jsx(Ag,{})}),i.jsx(de,{value:"data",className:"mt-6",children:i.jsx(Ng,{})})]})]})}export{Jg as $,Iy as A,og as B,Vg as C,qg as D,Sv as E,fg as F,by as G,gg as H,yy as I,Fv as J,ny as K,gn as L,gy as M,Og as N,Wg as O,zg as P,Cy as Q,Hg as R,Vy as S,Gg as T,Ky as U,Wy as V,cg as W,cx as X,zy as Y,Ry as Z,$g as _,Ec as a,ay as a$,Qg as a0,ev as a1,tv as a2,rv as a3,ov as a4,nv as a5,Yg as a6,Xg as a7,Bg as a8,kr as a9,sv as aA,Zl as aB,fx as aC,px as aD,xv as aE,bv as aF,wv as aG,Cv as aH,Ev as aI,kv as aJ,lx as aK,My as aL,ug as aM,Uv as aN,py as aO,ey as aP,ly as aQ,fc as aR,gc as aS,hc as aT,mc as aU,ue as aV,de as aW,ry as aX,ax as aY,sx as aZ,xy as a_,Lv as aa,Hv as ab,Wv as ac,Qv as ad,_v as ae,Ov as af,Ty as ag,rx as ah,ky as ai,Vv as aj,mx as ak,Zv as al,yg as am,hx as an,vy as ao,Dy as ap,co as aq,Ay as ar,Ly as as,Hy as at,Jv as au,jv as av,Kv as aw,dy as ax,hy as ay,my as az,l as b,iy as b0,Oy as b1,Zy as b2,mg as b3,cy as b4,Bv as b5,Nv as b6,Tv as b7,Av as b8,Mv as b9,ex as bA,Uy as bB,Ny as bC,$y as bD,Rv as bE,qy as bF,Dv as bG,Qy as bH,Xv as bI,Iv as bJ,$v as bK,ox as bL,Sy as bM,nx as bN,oy as bO,Pv as bP,ty as bQ,tx as bR,By as bS,Fg as bT,Dg as bU,wl as bV,fy as ba,Yv as bb,av as bc,iv as bd,lv as be,cv as bf,uv as bg,dv as bh,fv as bi,pv as bj,mv as bk,hv as bl,gv as bm,zv as bn,vv as bo,Fy as bp,uy as bq,_y as br,Xy as bs,Yy as bt,Gy as bu,gx as bv,qv as bw,jy as bx,ix as by,sy as bz,ws as c,we as d,Kg as e,lg as f,_g as g,dg as h,ge as i,i as j,ux as k,dx as l,ve as m,Ig as n,We as o,Ey as p,Py as q,br as r,Jy as s,Gv as t,vg as u,ou as v,Lg as w,He as x,yv as y,wy as z};
|