@service_laboratory/ui 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
- (function(A,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(A=typeof globalThis<"u"?globalThis:A||self,D(A.ui={},A.react))})(this,(function(A,D){"use strict";function ii(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ii(D);function ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}},tt={};var gr;function li(){if(gr)return tt;gr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return tt.Fragment=t,tt.jsx=n,tt.jsxs=n,tt}var nt={};var hr;function ui(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===B?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case C:return(S.displayName||"Context")+".Provider";case x:return(S._context.displayName||"Context")+".Consumer";case w:var I=S.render;return S=S.displayName,S||(S=I.displayName||I.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case O:return I=S.displayName||null,I!==null?I:e(S.type)||"Memo";case R:I=S._payload,S=S._init;try{return e(S(I))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var I=!1}catch{I=!0}if(I){I=console;var G=I.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return G.call(I,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(S)}}function r(S){if(S===h)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===R)return"<...>";try{var I=e(S);return I?"<"+I+">":"<...>"}catch{return"<...>"}}function o(){var S=U.A;return S===null?null:S.getOwner()}function a(){return Error("react-stack-top-frame")}function s(S){if(H.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function i(S,I){function G(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",I))}G.isReactWarning=!0,Object.defineProperty(S,"key",{get:G,configurable:!0})}function l(){var S=e(this.type);return F[S]||(F[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function c(S,I,G,V,q,ee,se,$){return G=ee.ref,S={$$typeof:g,type:S,key:I,props:ee,_owner:q},(G!==void 0?G:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function p(S,I,G,V,q,ee,se,$){var J=I.children;if(J!==void 0)if(V)if(X(J)){for(V=0;V<J.length;V++)u(J[V]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(J);if(H.call(I,"key")){J=e(S);var le=Object.keys(I).filter(function($e){return $e!=="key"});V=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",k[J+V]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(O,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(O=typeof globalThis<"u"?globalThis:O||self,D(O.ui={},O.react))})(this,(function(O,D){"use strict";function ci(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ci(D);function li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}},nt={};var gr;function ui(){if(gr)return nt;gr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return nt.Fragment=t,nt.jsx=n,nt.jsxs=n,nt}var rt={};var hr;function di(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===B?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case C:return(S.displayName||"Context")+".Provider";case x:return(S._context.displayName||"Context")+".Consumer";case w:var I=S.render;return S=S.displayName,S||(S=I.displayName||I.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case A:return I=S.displayName||null,I!==null?I:e(S.type)||"Memo";case R:I=S._payload,S=S._init;try{return e(S(I))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var I=!1}catch{I=!0}if(I){I=console;var G=I.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return G.call(I,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(S)}}function r(S){if(S===h)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===R)return"<...>";try{var I=e(S);return I?"<"+I+">":"<...>"}catch{return"<...>"}}function o(){var S=U.A;return S===null?null:S.getOwner()}function a(){return Error("react-stack-top-frame")}function s(S){if(H.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function i(S,I){function G(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",I))}G.isReactWarning=!0,Object.defineProperty(S,"key",{get:G,configurable:!0})}function l(){var S=e(this.type);return F[S]||(F[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function c(S,I,G,V,q,ee,se,$){return G=ee.ref,S={$$typeof:g,type:S,key:I,props:ee,_owner:q},(G!==void 0?G:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function p(S,I,G,V,q,ee,se,$){var J=I.children;if(J!==void 0)if(V)if(X(J)){for(V=0;V<J.length;V++)u(J[V]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(J);if(H.call(I,"key")){J=e(S);var le=Object.keys(I).filter(function($e){return $e!=="key"});V=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",N[J+V]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,V,J,le,J),k[J+V]=!0)}if(J=null,G!==void 0&&(n(G),J=""+G),s(I)&&(n(I.key),J=""+I.key),"key"in I){G={};for(var Ce in I)Ce!=="key"&&(G[Ce]=I[Ce])}else G=I;return J&&i(G,typeof S=="function"?S.displayName||S.name||"Unknown":S),c(S,J,ee,q,o(),G,se,$)}function u(S){typeof S=="object"&&S!==null&&S.$$typeof===g&&S._store&&(S._store.validated=1)}var f=D,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),U=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(S){return S()}};var Z,F={},K=f.react_stack_bottom_frame.bind(f,a)(),_=W(r(a)),k={};nt.Fragment=h,nt.jsx=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!1,V,q,ee?Error("react-stack-top-frame"):K,ee?W(r(S)):_)},nt.jsxs=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!0,V,q,ee?Error("react-stack-top-frame"):K,ee?W(r(S)):_)}})()),nt}var vr;function di(){return vr||(vr=1,process.env.NODE_ENV==="production"?wt.exports=li():wt.exports=ui()),wt.exports}var m=di();function fi(e,t){const n=d.createContext(t),r=a=>{const{children:s,...i}=a,l=d.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ee(e,t=[]){let n=[];function r(a,s){const i=d.createContext(s),l=n.length;n=[...n,s];const c=u=>{const{scope:f,children:g,...v}=u,h=f?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return m.jsx(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(u,f){const g=f?.[e]?.[l]||i,v=d.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=n.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,pi(o,...t)]}function pi(...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(a){const s=r.reduce((i,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...i,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function fe(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}var ue=globalThis?.document?d.useLayoutEffect:()=>{},St={exports:{}},ne={};var br;function mi(){if(br)return ne;br=1;var e=D;function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,c,p){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:u==null?null:""+u,children:l,containerInfo:c,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(l,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(l,c,null,p)},ne.flushSync=function(l){var c=s.T,p=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=c,r.p=p,r.d.f()}},ne.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},ne.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},ne.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;p==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:u,integrity:f,fetchPriority:g}):p==="script"&&r.d.X(l,{crossOrigin:u,integrity:f,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},ne.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var p=i(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},ne.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin);r.d.L(l,p,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},ne.preloadModule=function(l,c){if(typeof l=="string")if(c){var p=i(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},ne.requestFormReset=function(l){r.d.r(l)},ne.unstable_batchedUpdates=function(l,c){return l(c)},ne.useFormState=function(l,c,p){return s.H.useFormState(l,c,p)},ne.useFormStatus=function(){return s.H.useHostTransitionStatus()},ne.version="19.1.1",ne}var re={};var yr;function gi(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(u){return""+u}function n(u,f,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:c,key:v==null?null:""+v,children:u,containerInfo:f,implementation:g}}function r(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function o(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":'something with type "'+typeof u+'"'}function a(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":typeof u=="string"?JSON.stringify(u):typeof u=="number"?"`"+u+"`":'something with type "'+typeof u+'"'}function s(){var u=p.H;return u===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
6
+ <%s key={someKey} {...props} />`,V,J,le,J),N[J+V]=!0)}if(J=null,G!==void 0&&(n(G),J=""+G),s(I)&&(n(I.key),J=""+I.key),"key"in I){G={};for(var Ce in I)Ce!=="key"&&(G[Ce]=I[Ce])}else G=I;return J&&i(G,typeof S=="function"?S.displayName||S.name||"Unknown":S),c(S,J,ee,q,o(),G,se,$)}function u(S){typeof S=="object"&&S!==null&&S.$$typeof===g&&S._store&&(S._store.validated=1)}var f=D,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),U=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(S){return S()}};var Z,F={},K=f.react_stack_bottom_frame.bind(f,a)(),_=W(r(a)),N={};rt.Fragment=h,rt.jsx=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!1,V,q,ee?Error("react-stack-top-frame"):K,ee?W(r(S)):_)},rt.jsxs=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!0,V,q,ee?Error("react-stack-top-frame"):K,ee?W(r(S)):_)}})()),rt}var vr;function fi(){return vr||(vr=1,process.env.NODE_ENV==="production"?wt.exports=ui():wt.exports=di()),wt.exports}var m=fi();function pi(e,t){const n=d.createContext(t),r=a=>{const{children:s,...i}=a,l=d.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ee(e,t=[]){let n=[];function r(a,s){const i=d.createContext(s),l=n.length;n=[...n,s];const c=u=>{const{scope:f,children:g,...v}=u,h=f?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return m.jsx(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(u,f){const g=f?.[e]?.[l]||i,v=d.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=n.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,mi(o,...t)]}function mi(...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(a){const s=r.reduce((i,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...i,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function fe(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}var ue=globalThis?.document?d.useLayoutEffect:()=>{},St={exports:{}},ne={};var br;function gi(){if(br)return ne;br=1;var e=D;function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,c,p){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:u==null?null:""+u,children:l,containerInfo:c,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(l,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(l,c,null,p)},ne.flushSync=function(l){var c=s.T,p=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=c,r.p=p,r.d.f()}},ne.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},ne.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},ne.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;p==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:u,integrity:f,fetchPriority:g}):p==="script"&&r.d.X(l,{crossOrigin:u,integrity:f,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},ne.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var p=i(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},ne.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin);r.d.L(l,p,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},ne.preloadModule=function(l,c){if(typeof l=="string")if(c){var p=i(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},ne.requestFormReset=function(l){r.d.r(l)},ne.unstable_batchedUpdates=function(l,c){return l(c)},ne.useFormState=function(l,c,p){return s.H.useFormState(l,c,p)},ne.useFormStatus=function(){return s.H.useHostTransitionStatus()},ne.version="19.1.1",ne}var re={};var yr;function hi(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(u){return""+u}function n(u,f,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:c,key:v==null?null:""+v,children:u,containerInfo:f,implementation:g}}function r(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function o(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":'something with type "'+typeof u+'"'}function a(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":typeof u=="string"?JSON.stringify(u):typeof u=="number"?"`"+u+"`":'something with type "'+typeof u+'"'}function s(){var u=p.H;return u===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
7
7
  1. You might have mismatching versions of React and the renderer (such as React DOM)
8
8
  2. You might be breaking the Rules of Hooks
9
9
  3. You might have more than one copy of React in the same app
10
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,re.createPortal=function(u,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,f,null,g)},re.flushSync=function(u){var f=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=f,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},re.preconnect=function(u,f){typeof u=="string"&&u?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(u,f))},re.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f))}typeof u=="string"&&l.d.D(u)},re.preinit=function(u,f){if(typeof u=="string"&&u?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&f&&typeof f.as=="string"){var g=f.as,v=r(g,f.crossOrigin),h=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?l.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},re.preinitModule=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(g+=" The `as` option encountered was "+a(f.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=f&&typeof f.as=="string"?f.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(g=r(f.as,f.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(u))},re.preload=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f==null||typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){g=f.as;var v=r(g,f.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},re.preloadModule=function(u,f){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(f?(g=r(f.as,f.crossOrigin),l.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(u))},re.requestFormReset=function(u){l.d.r(u)},re.unstable_batchedUpdates=function(u,f){return u(f)},re.useFormState=function(u,f,g){return s().useFormState(u,f,g)},re.useFormStatus=function(){return s().useHostTransitionStatus()},re.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),re}var xr;function hi(){if(xr)return St.exports;xr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=mi()):St.exports=gi(),St.exports}var sn=hi();const vi=ci(sn);function wr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=wr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():wr(e[o],null)}}}}function Q(...e){return d.useCallback(rt(...e),e)}function ze(e){const t=bi(e),n=d.forwardRef((r,o)=>{const{children:a,...s}=r,i=d.Children.toArray(a),l=i.find(xi);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ae=ze("Slot");function bi(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const s=Si(o),i=wi(a,o.props);return o.type!==d.Fragment&&(i.ref=r?rt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sr=Symbol("radix.slottable");function yi(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sr,t}function xi(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sr}function wi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Si(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Ci.reduce((e,t)=>{const n=ze(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cr(e,t){e&&sn.flushSync(()=>e.dispatchEvent(t))}var Ct={exports:{}},cn={};var Er;function Ei(){if(Er)return cn;Er=1;var e=D;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,f){var g=f(),v=r({inst:{value:g,getSnapshot:f}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=f,l(h)&&b({inst:h})},[u,g,f]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!n(u,g)}catch{return!0}}function c(u,f){return f()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,cn}var ln={};var _r;function _i(){return _r||(_r=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=h,y.getSnapshot=v,n(y)&&x({inst:y})},[g,h,v]),i(function(){return n(y)&&x({inst:y}),g(function(){n(y)&&x({inst:y})})},[g]),c(h),h}function n(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ln.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ln}var Rr;function Ri(){return Rr||(Rr=1,process.env.NODE_ENV==="production"?Ct.exports=Ei():Ct.exports=_i()),Ct.exports}var Oi=Ri();function Ai(){return Oi.useSyncExternalStore(Mi,()=>!0,()=>!1)}function Mi(){return()=>{}}var un="Avatar",[Ti,xg]=Ee(un),[Pi,Or]=Ti(un),Ar=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return m.jsx(Pi,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Y.span,{...r,ref:t})})});Ar.displayName=un;var Mr="AvatarImage",Tr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Or(Mr,n),i=ki(r,a),l=fe(c=>{o(c),s.onImageLoadingStatusChange(c)});return ue(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Y.img,{...a,ref:t,src:r}):null});Tr.displayName=Mr;var Pr="AvatarFallback",kr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Or(Pr,n),[s,i]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Y.span,{...o,ref:t}):null});kr.displayName=Pr;function Nr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ki(e,{referrerPolicy:t,crossOrigin:n}){const r=Ai(),o=d.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=d.useState(()=>Nr(a,e));return ue(()=>{i(Nr(a,e))},[a,e]),ue(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,n,t]),s}var Ni=Ar,Di=Tr,Ii=kr;function Dr(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=Dr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dr(e))&&(r&&(r+=" "),r+=t);return r}const dn="-",ji=e=>{const t=Fi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(dn);return i[0]===""&&i.length!==1&&i.shift(),jr(i,t)||Li(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},jr=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?jr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(dn);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Lr=/^\[(.+)\]$/,Li=e=>{if(Lr.test(e)){const t=Lr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Fi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)fn(n[o],r,o,t);return r},fn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Fr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if($i(o)){fn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{fn(s,Fr(t,a),n,r)})})},Fr=(e,t)=>{let n=e;return t.split(dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$i=e=>e.isThemeGetter,zi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},pn="!",mn=":",Vi=mn.length,Bi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===mn){a.push(o.slice(l,v)),l=v+Vi;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=Gi(p),f=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+mn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Gi=e=>e.endsWith(pn)?e.substring(0,e.length-1):e.startsWith(pn)?e.substring(1):e,Wi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ui=e=>({cache:zi(e.cacheSize),parseClassName:Bi(e),sortModifiers:Wi(e),...ji(e)}),Hi=/\s+/,Ki=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Hi);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:f,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=r(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const x=a(f).join(":"),C=g?x+pn:x,w=C+y;if(s.includes(w))continue;s.push(w);const E=o(y,b);for(let M=0;M<E.length;++M){const O=E[M];s.push(C+O)}l=p+(l.length>0?" "+l:l)}return l};function Yi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$r(t))&&(r&&(r+=" "),r+=n);return r}const $r=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$r(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xi(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return n=Ui(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const p=Ki(l,n);return o(l,p),p}return function(){return a(Yi.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qi=/^\d+\/\d+$/,Zi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ji=/\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$/,Qi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ec=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>qi.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&z(e.slice(0,-1)),_e=e=>Zi.test(e),nc=()=>!0,rc=e=>Ji.test(e)&&!Qi.test(e),Br=()=>!1,oc=e=>ec.test(e),ac=e=>tc.test(e),sc=e=>!T(e)&&!P(e),ic=e=>Be(e,Kr,Br),T=e=>zr.test(e),De=e=>Be(e,Yr,rc),hn=e=>Be(e,fc,z),Gr=e=>Be(e,Ur,Br),cc=e=>Be(e,Hr,ac),Et=e=>Be(e,Xr,oc),P=e=>Vr.test(e),ot=e=>Ge(e,Yr),lc=e=>Ge(e,pc),Wr=e=>Ge(e,Ur),uc=e=>Ge(e,Kr),dc=e=>Ge(e,Hr),_t=e=>Ge(e,Xr,!0),Be=(e,t,n)=>{const r=zr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Vr.exec(e);return r?r[1]?t(r[1]):n:!1},Ur=e=>e==="position"||e==="percentage",Hr=e=>e==="image"||e==="url",Kr=e=>e==="length"||e==="size"||e==="bg-size",Yr=e=>e==="length",fc=e=>e==="number",pc=e=>e==="family-name",Xr=e=>e==="shadow",mc=Xi(()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),f=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),x=te("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[P,T,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",P,T],U=()=>["auto",{span:["full",Me,P,T]},Me,P,T],H=()=>[Me,"auto",P,T],X=()=>["auto","min","max","fr",P,T],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,P,T],k=()=>[...w(),Wr,Gr,{position:[P,T]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",uc,ic,{size:[P,T]}],G=()=>[gn,ot,De],V=()=>["","none","full",c,P,T],q=()=>["",z,ot,De],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,gn,Wr,Gr],J=()=>["","none",v,P,T],le=()=>["none",z,P,T],Ce=()=>["none",z,P,T],$e=()=>[z,P,T],et=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[nc],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[sc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",z],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,T,P,b]}],container:["container"],columns:[{columns:[z,T,P,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:E()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",P,T]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",T]}],grow:[{grow:["",z,P,T]}],shrink:[{shrink:["",z,P,T]}],order:[{order:[Me,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,ot,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,T]}],"font-family":[{font:[lc,T,t]}],"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:[o,P,T]}],"line-clamp":[{"line-clamp":[z,"none",P,hn]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",P,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",P,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",P,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,P,T],radial:["",P,T],conic:[Me,P,T]},dc,cc]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,P,T]}],"outline-w":[{outline:["",z,ot,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Et]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Et]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,_t,Et]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,P,T]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:J()}],brightness:[{brightness:[z,P,T]}],contrast:[{contrast:[z,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Et]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,P,T]}],"hue-rotate":[{"hue-rotate":[z,P,T]}],invert:[{invert:["",z,P,T]}],saturate:[{saturate:[z,P,T]}],sepia:[{sepia:["",z,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[z,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,P,T]}],"backdrop-invert":[{"backdrop-invert":["",z,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[z,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[z,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",z,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",P,T]}],ease:[{ease:["linear","initial",y,P,T]}],delay:[{delay:[z,P,T]}],animate:[{animate:["none",x,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",P,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",P,T]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,ot,De,hn]}],stroke:[{stroke:["none",..._()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function N(...e){return mc(Ir(e))}function gc({className:e,...t}){return m.jsx(Ni,{"data-slot":"avatar",className:N("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function hc({className:e,...t}){return m.jsx(Di,{"data-slot":"avatar-image",className:N("aspect-square size-full",e),...t})}function vc({className:e,...t}){return m.jsx(Ii,{"data-slot":"avatar-fallback",className:N("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zr=Ir,vn=(e,t)=>n=>{var r;if(t?.variants==null)return Zr(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=n?.[c],u=a?.[c];if(p===null)return null;const f=qr(p)||qr(u);return o[c][f]}),i=n&&Object.entries(n).reduce((c,p)=>{let[u,f]=p;return f===void 0||(c[u]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:f,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,f]:c},[]);return Zr(e,s,l,n?.class,n?.className)},Jr=vn("inline-flex items-center justify-center rounded-md border 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:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function bc({className:e,variant:t,asChild:n=!1,...r}){const o=n?Ae:"span";return m.jsx(o,{"data-slot":"badge",className:N(Jr({variant:t}),e),...r})}const Qr=vn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all 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",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-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function eo({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Ae:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:N(Qr({variant:t,size:n,className:e})),...o})}function yc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function xc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function wc({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:N("leading-none font-semibold",e),...t})}function Sc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:N("text-muted-foreground text-sm",e),...t})}function Cc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:N("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Ec({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:N("px-6",e),...t})}function _c({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:N("flex items-center px-6 [.border-t]:pt-6",e),...t})}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Rc=d[" useInsertionEffect ".trim().toString()]||ue;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Oc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"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.`),p.current=i},[i,r])}const c=d.useCallback(p=>{if(i){const u=Ac(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function Oc({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return Rc(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Ac(e){return typeof e=="function"}function Mc(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var pe=e=>{const{present:t,children:n}=e,r=Tc(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=Q(r.ref,Pc(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};pe.displayName="Presence";function Tc(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Mc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Rt(r.current);a.current=i==="mounted"?c:"none"},[i]),ue(()=>{const c=r.current,p=o.current;if(p!==e){const f=a.current,g=Rt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ue(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Rt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=g=>{g.target===t&&(a.current=Rt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Rt(e){return e?.animationName||"none"}function Pc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kc=d[" useId ".trim().toString()]||(()=>{}),Nc=0;function ve(e){const[t,n]=d.useState(kc());return ue(()=>{n(r=>r??String(Nc++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[Dc,Sg]=Ee(Ot),[Ic,bn]=Dc(Ot),to=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,c]=We({prop:r,defaultProp:o??!1,onChange:s,caller:Ot});return m.jsx(Ic,{scope:n,disabled:a,contentId:ve(),open:l,onOpenToggle:d.useCallback(()=>c(p=>!p),[c]),children:m.jsx(Y.div,{"data-state":xn(l),"data-disabled":a?"":void 0,...i,ref:t})})});to.displayName=Ot;var no="CollapsibleTrigger",ro=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=bn(no,n);return m.jsx(Y.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":xn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});ro.displayName=no;var yn="CollapsibleContent",oo=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=bn(yn,e.__scopeCollapsible);return m.jsx(pe,{present:n||o.open,children:({present:a})=>m.jsx(jc,{...r,ref:t,present:a})})});oo.displayName=yn;var jc=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=bn(yn,n),[i,l]=d.useState(r),c=d.useRef(null),p=Q(t,c),u=d.useRef(0),f=u.current,g=d.useRef(0),v=g.current,h=s.open||i,b=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),ue(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();u.current=C.height,g.current=C.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),m.jsx(Y.div,{"data-state":xn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function xn(e){return e?"open":"closed"}var Lc=to;function Fc({...e}){return m.jsx(Lc,{"data-slot":"collapsible",...e})}function $c({...e}){return m.jsx(ro,{"data-slot":"collapsible-trigger",...e})}function zc({...e}){return m.jsx(oo,{"data-slot":"collapsible-content",...e})}function ao(e){const t=e+"CollectionProvider",[n,r]=Ee(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,x=D.useRef(null),C=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:C,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:x}=h,C=a(i,y),w=Q(b,C.collectionRef);return m.jsx(l,{ref:w,children:x})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",f=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:x,...C}=h,w=D.useRef(null),E=Q(b,w),M=a(p,y);return D.useEffect(()=>(M.itemMap.set(w,{ref:w,...C}),()=>void M.itemMap.delete(w))),m.jsx(f,{[u]:"",ref:E,children:x})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,O)=>C.indexOf(M.ref.current)-C.indexOf(O.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,r]}var Vc=d.createContext(void 0);function so(e){const t=d.useContext(Vc);return e||t||"ltr"}function Bc(e,t=globalThis?.document){const n=fe(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Gc="DismissableLayer",wn="dismissableLayer.update",Wc="dismissableLayer.pointerDownOutside",Uc="dismissableLayer.focusOutside",io,co=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=d.useContext(co),[p,u]=d.useState(null),f=p?.ownerDocument??globalThis?.document,[,g]=d.useState({}),v=Q(t,O=>u(O)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,E=Yc(O=>{const R=O.target,L=[...c.branches].some(B=>B.contains(R));!w||L||(o?.(O),s?.(O),O.defaultPrevented||i?.())},f),M=Xc(O=>{const R=O.target;[...c.branches].some(B=>B.contains(R))||(a?.(O),s?.(O),O.defaultPrevented||i?.())},f);return Bc(O=>{x===c.layers.size-1&&(r?.(O),!O.defaultPrevented&&i&&(O.preventDefault(),i()))},f),d.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(io=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),lo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=io)}},[p,f,n,c]),d.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),lo())},[p,c]),d.useEffect(()=>{const O=()=>g({});return document.addEventListener(wn,O),()=>document.removeEventListener(wn,O)},[]),m.jsx(Y.div,{...l,ref:v,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});At.displayName=Gc;var Hc="DismissableLayerBranch",Kc=d.forwardRef((e,t)=>{const n=d.useContext(co),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Y.div,{...e,ref:o})});Kc.displayName=Hc;function Yc(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){uo(Wc,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xc(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&uo(Uc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lo(){const e=new CustomEvent(wn);document.dispatchEvent(e)}function uo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cr(o,a):o.dispatchEvent(a)}var Sn=0;function fo(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??po()),document.body.insertAdjacentElement("beforeend",e[1]??po()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function po(){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 Cn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",mo={bubbles:!1,cancelable:!0},qc="FocusScope",_n=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=d.useState(null),c=fe(o),p=fe(a),u=d.useRef(null),f=Q(t,h=>l(h)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let h=function(C){if(g.paused||!i)return;const w=C.target;i.contains(w)?u.current=w:Te(u.current,{select:!0})},b=function(C){if(g.paused||!i)return;const w=C.relatedTarget;w!==null&&(i.contains(w)||Te(u.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,g.paused]),d.useEffect(()=>{if(i){vo.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(Cn,mo);i.addEventListener(Cn,c),i.dispatchEvent(y),y.defaultPrevented||(Zc(nl(go(i)),{select:!0}),document.activeElement===h&&Te(i))}return()=>{i.removeEventListener(Cn,c),setTimeout(()=>{const y=new CustomEvent(En,mo);i.addEventListener(En,p),i.dispatchEvent(y),y.defaultPrevented||Te(h??document.body,{select:!0}),i.removeEventListener(En,p),vo.remove(g)},0)}}},[i,c,p,g]);const v=d.useCallback(h=>{if(!n&&!r||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const x=h.currentTarget,[C,w]=Jc(x);C&&w?!h.shiftKey&&y===w?(h.preventDefault(),n&&Te(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Te(w,{select:!0})):y===x&&h.preventDefault()}},[n,r,g.paused]);return m.jsx(Y.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});_n.displayName=qc;function Zc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Jc(e){const t=go(e),n=ho(t,e),r=ho(t.reverse(),e);return[n,r]}function go(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 ho(e,t){for(const n of e)if(!Qc(n,{upTo:t}))return n}function Qc(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 el(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&el(e)&&t&&e.select()}}var vo=tl();function tl(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bo(e,t),e.unshift(t)},remove(t){e=bo(e,t),e[0]?.resume()}}}function bo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nl(e){return e.filter(t=>t.tagName!=="A")}const rl=["top","right","bottom","left"],Pe=Math.min,ie=Math.max,Mt=Math.round,Tt=Math.floor,be=e=>({x:e,y:e}),ol={left:"right",right:"left",bottom:"top",top:"bottom"},al={start:"end",end:"start"};function Rn(e,t,n){return ie(e,Pe(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function Ue(e){return e.split("-")[1]}function On(e){return e==="x"?"y":"x"}function An(e){return e==="y"?"height":"width"}const sl=new Set(["top","bottom"]);function ye(e){return sl.has(Oe(e))?"y":"x"}function Mn(e){return On(ye(e))}function il(e,t,n){n===void 0&&(n=!1);const r=Ue(e),o=Mn(e),a=An(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function cl(e){const t=Pt(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>al[t])}const yo=["left","right"],xo=["right","left"],ll=["top","bottom"],ul=["bottom","top"];function dl(e,t,n){switch(e){case"top":case"bottom":return n?t?xo:yo:t?yo:xo;case"left":case"right":return t?ll:ul;default:return[]}}function fl(e,t,n,r){const o=Ue(e);let a=dl(Oe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Tn)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>ol[t])}function pl(e){return{top:0,right:0,bottom:0,left:0,...e}}function wo(e){return typeof e!="number"?pl(e):{top:e,right:e,bottom:e,left:e}}function kt(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 So(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Mn(t),i=An(s),l=Oe(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(Ue(t)){case"start":g[s]-=f*(n&&c?-1:1);break;case"end":g[s]+=f*(n&&c?-1:1);break}return g}const ml=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=So(c,r,l),f=r,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x,y:C,data:w,reset:E}=await y({x:p,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,u=C??u,g={...g,[b]:{...g[b],...w}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:u}=So(c,f,l)),h=-1)}return{x:p,y:u,placement:f,strategy:o,middlewareData:g}};async function at(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=Re(t,e),v=wo(g),b=i[f?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),x=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-E.top+v.top)/w.y,bottom:(E.bottom-y.bottom+v.bottom)/w.y,left:(y.left-E.left+v.left)/w.x,right:(E.right-y.right+v.right)/w.x}}const gl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=Re(e,t)||{};if(c==null)return{};const u=wo(p),f={x:n,y:r},g=Mn(o),v=An(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",C=b?"clientHeight":"clientWidth",w=a.reference[v]+a.reference[g]-f[g]-a.floating[v],E=f[g]-a.reference[g],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=M?M[C]:0;(!O||!await(s.isElement==null?void 0:s.isElement(M)))&&(O=i.floating[C]||a.floating[v]);const R=w/2-E/2,L=O/2-h[v]/2-1,B=Pe(u[y],L),U=Pe(u[x],L),H=B,X=O-h[v]-U,W=O/2-h[v]/2+R,Z=Rn(H,W,X),F=!l.arrow&&Ue(o)!=null&&W!==Z&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-X:0;return{[g]:f[g]+K,data:{[g]:Z,centerOffset:W-Z-K,...F&&{alignmentOffset:K}},reset:F}}}),hl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=Re(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Oe(o),x=ye(i),C=Oe(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(C||!h?[Pt(i)]:cl(i)),M=v!=="none";!f&&M&&E.push(...fl(i,h,v,w));const O=[i,...E],R=await at(t,b),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(R[y]),u){const W=il(o,s,w);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,Z=O[W];if(Z&&(!(u==="alignment"?x!==ye(Z):!1)||B.every(_=>ye(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:Z}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var X;const K=(X=B.filter(_=>{if(M){const k=ye(_.placement);return k===x||k==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(k=>k>0).reduce((k,S)=>k+S,0)]).sort((_,k)=>_[1]-k[1])[0])==null?void 0:X[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Co(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eo(e){return rl.some(t=>e[t]>=0)}const vl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const a=await at(t,{...o,elementContext:"reference"}),s=Co(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Eo(s)}}}case"escaped":{const a=await at(t,{...o,altBoundary:!0}),s=Co(a,n.floating);return{data:{escapedOffsets:s,escaped:Eo(s)}}}default:return{}}}}},_o=new Set(["left","top"]);async function bl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Oe(n),i=Ue(n),l=ye(n)==="y",c=_o.has(s)?-1:1,p=a&&l?-1:1,u=Re(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:f*c}:{x:f*c,y:g*p}}const yl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await bl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},xl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Re(e,t),c={x:n,y:r},p=await at(t,l),u=ye(Oe(o)),f=On(u);let g=c[f],v=c[u];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+p[b],C=g-p[y];g=Rn(x,g,C)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=v+p[b],C=v-p[y];v=Rn(x,v,C)}const h=i.fn({...t,[f]:g,[u]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[u]:s}}}}}},wl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Re(e,t),p={x:n,y:r},u=ye(o),f=On(u);let g=p[f],v=p[u];const h=Re(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=f==="y"?"height":"width",w=a.reference[f]-a.floating[C]+b.mainAxis,E=a.reference[f]+a.reference[C]-b.mainAxis;g<w?g=w:g>E&&(g=E)}if(c){var y,x;const C=f==="y"?"width":"height",w=_o.has(Oe(o)),E=a.reference[u]-a.floating[C]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:b.crossAxis),M=a.reference[u]+a.reference[C]+(w?0:((x=s.offset)==null?void 0:x[u])||0)-(w?b.crossAxis:0);v<E?v=E:v>M&&(v=M)}return{[f]:g,[u]:v}}}},Sl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=Re(e,t),p=await at(t,c),u=Oe(o),f=Ue(o),g=ye(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const x=h-p.top-p.bottom,C=v-p.left-p.right,w=Pe(h-p[b],x),E=Pe(v-p[y],C),M=!t.middlewareData.shift;let O=w,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=x),M&&!f){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),X=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):O=h-2*(H!==0||X!==0?H+X:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:O});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function He(e){return Ro(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Ro(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ro(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function we(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Oo(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Cl=new Set(["inline","contents"]);function st(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Cl.has(o)}const El=new Set(["table","td","th"]);function _l(e){return El.has(He(e))}const Rl=[":popover-open",":modal"];function Dt(e){return Rl.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ol=["transform","translate","scale","rotate","perspective"],Al=["transform","translate","scale","rotate","perspective","filter"],Ml=["paint","layout","strict","content"];function Pn(e){const t=kn(),n=me(e)?ge(e):e;return Ol.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)||Al.some(r=>(n.willChange||"").includes(r))||Ml.some(r=>(n.contain||"").includes(r))}function Tl(e){let t=ke(e);for(;we(t)&&!Ke(t);){if(Pn(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pl=new Set(["html","body","#document"]);function Ke(e){return Pl.has(He(e))}function ge(e){return ce(e).getComputedStyle(e)}function It(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Oo(e)&&e.host||xe(e);return Oo(t)?t.host:t}function Ao(e){const t=ke(e);return Ke(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&st(t)?t:Ao(t)}function it(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ao(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=Nn(s);return t.concat(s,s.visualViewport||[],st(o)?o:[],i&&n?it(i):[])}return t.concat(o,it(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mo(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Mt(n)!==a||Mt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Dn(e){return me(e)?e:e.contextElement}function Ye(e){const t=Dn(e);if(!we(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Mo(t);let s=(a?Mt(n.width):n.width)/r,i=(a?Mt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const kl=be(0);function To(e){const t=ce(e);return!kn()||!t.visualViewport?kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dn(e);let s=be(1);t&&(r?me(r)&&(s=Ye(r)):s=Ye(e));const i=Nl(a,n,r)?To(a):be(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const f=ce(a),g=r&&me(r)?ce(r):r;let v=f,h=Nn(v);for(;h&&r&&g!==v;){const b=Ye(h),y=h.getBoundingClientRect(),x=ge(h),C=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,w=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=C,c+=w,v=ce(h),h=Nn(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const n=It(e).scrollLeft;return t?t.left+n:Ie(xe(e)).left+n}function Po(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Dl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=xe(r),i=t?Dt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=be(1);const p=be(0),u=we(r);if((u||!u&&!a)&&((He(r)!=="body"||st(s))&&(l=It(r)),we(r))){const g=Ie(r);c=Ye(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const f=s&&!u&&!a?Po(s,l):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:n.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Il(e){return Array.from(e.getClientRects())}function jl(e){const t=xe(e),n=It(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ko=25;function Ll(e,t){const n=ce(e),r=xe(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(r);if(c<=0){const p=r.ownerDocument,u=p.body,f=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-g);v<=ko&&(a-=v)}else c<=ko&&(a+=c);return{width:a,height:s,x:i,y:l}}const Fl=new Set(["absolute","fixed"]);function $l(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=we(e)?Ye(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function No(e,t,n){let r;if(t==="viewport")r=Ll(e,n);else if(t==="document")r=jl(xe(e));else if(me(t))r=$l(t,n);else{const o=To(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Do(e,t){const n=ke(e);return n===t||!me(n)||Ke(n)?!1:ge(n).position==="fixed"||Do(n,t)}function zl(e,t){const n=t.get(e);if(n)return n;let r=it(e,[],!1).filter(i=>me(i)&&He(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?ke(e):e;for(;me(s)&&!Ke(s);){const i=ge(s),l=Pn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Fl.has(o.position)||st(s)&&!l&&Do(e,s))?r=r.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,r),r}function Vl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:zl(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((c,p)=>{const u=No(t,p,o);return c.top=ie(u.top,c.top),c.right=Pe(u.right,c.right),c.bottom=Pe(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},No(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bl(e){const{width:t,height:n}=Mo(e);return{width:t,height:n}}function Gl(e,t,n){const r=we(t),o=xe(t),a=n==="fixed",s=Ie(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=be(0);function c(){l.x=jt(o)}if(r||!r&&!a)if((He(t)!=="body"||st(o))&&(i=It(t)),r){const g=Ie(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!r&&o&&c();const p=o&&!r&&!a?Po(o,i):be(0),u=s.left+i.scrollLeft-l.x-p.x,f=s.top+i.scrollTop-l.y-p.y;return{x:u,y:f,width:s.width,height:s.height}}function In(e){return ge(e).position==="static"}function Io(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xe(e)===n&&(n=n.ownerDocument.body),n}function jo(e,t){const n=ce(e);if(Dt(e))return n;if(!we(e)){let o=ke(e);for(;o&&!Ke(o);){if(me(o)&&!In(o))return o;o=ke(o)}return n}let r=Io(e,t);for(;r&&_l(r)&&In(r);)r=Io(r,t);return r&&Ke(r)&&In(r)&&!Pn(r)?n:r||Tl(e)||n}const Wl=async function(e){const t=this.getOffsetParent||jo,n=this.getDimensions,r=await n(e.floating);return{reference:Gl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ul(e){return ge(e).direction==="rtl"}const Hl={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:xe,getClippingRect:Vl,getOffsetParent:jo,getElementRects:Wl,getClientRects:Il,getDimensions:Bl,getScale:Ye,isElement:me,isRTL:Ul};function Lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kl(e,t){let n=null,r;const o=xe(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:f,height:g}=c;if(i||t(),!f||!g)return;const v=Tt(u),h=Tt(o.clientWidth-(p+f)),b=Tt(o.clientHeight-(u+g)),y=Tt(p),C={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Pe(1,l))||1};let w=!0;function E(M){const O=M[0].intersectionRatio;if(O!==l){if(!w)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Lo(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return s(!0),a}function Yl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dn(e),p=o||a?[...c?it(c):[],...it(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?Kl(c,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Ie(e):null;l&&b();function b(){const y=Ie(e);h&&!Lo(h,y)&&n(),h=y,v=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Xl=yl,ql=xl,Zl=hl,Jl=Sl,Ql=vl,Fo=gl,eu=wl,tu=(e,t,n)=>{const r=new Map,o={platform:Hl,...n},a={...o.platform,_c:r};return ml(e,t,{...o,platform:a})};var nu=typeof document<"u",ru=function(){},Lt=nu?D.useLayoutEffect:ru;function Ft(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(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function $o(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zo(e,t){const n=$o(e);return Math.round(t*n)/n}function jn(e){const t=d.useRef(e);return Lt(()=>{t.current=e}),t}function ou(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(r);Ft(f,r)||g(r);const[v,h]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(_=>{_!==M.current&&(M.current=_,h(_))},[]),C=d.useCallback(_=>{_!==O.current&&(O.current=_,y(_))},[]),w=a||v,E=s||b,M=d.useRef(null),O=d.useRef(null),R=d.useRef(p),L=l!=null,B=jn(l),U=jn(o),H=jn(c),X=d.useCallback(()=>{if(!M.current||!O.current)return;const _={placement:t,strategy:n,middleware:f};U.current&&(_.platform=U.current),tu(M.current,O.current,_).then(k=>{const S={...k,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,sn.flushSync(()=>{u(S)}))})},[f,t,n,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=d.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(w&&(M.current=w),E&&(O.current=E),w&&E){if(B.current)return B.current(w,E,X);X()}},[w,E,X,B,L]);const Z=d.useMemo(()=>({reference:M,floating:O,setReference:x,setFloating:C}),[x,C]),F=d.useMemo(()=>({reference:w,floating:E}),[w,E]),K=d.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const k=zo(F.floating,p.x),S=zo(F.floating,p.y);return i?{..._,transform:"translate("+k+"px, "+S+"px)",...$o(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:S}},[n,i,F.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:X,refs:Z,elements:F,floatingStyles:K}),[p,X,Z,F,K])}const au=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?Fo({element:r.current,padding:o}).fn(n):{}:r?Fo({element:r,padding:o}).fn(n):{}}}},su=(e,t)=>({...Xl(e),options:[e,t]}),iu=(e,t)=>({...ql(e),options:[e,t]}),cu=(e,t)=>({...eu(e),options:[e,t]}),lu=(e,t)=>({...Zl(e),options:[e,t]}),uu=(e,t)=>({...Jl(e),options:[e,t]}),du=(e,t)=>({...Ql(e),options:[e,t]}),fu=(e,t)=>({...au(e),options:[e,t]});var pu="Arrow",Vo=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(Y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vo.displayName=pu;var mu=Vo;function gu(e){const[t,n]=d.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ln="Popper",[Bo,$t]=Ee(Ln),[hu,Go]=Bo(Ln),Wo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return m.jsx(hu,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wo.displayName=Ln;var Uo="PopperAnchor",Ho=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Go(Uo,n),s=d.useRef(null),i=Q(t,s),l=d.useRef(null);return d.useEffect(()=>{const c=l.current;l.current=r?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Y.div,{...o,ref:i})});Ho.displayName=Uo;var Fn="PopperContent",[vu,bu]=Bo(Fn),Ko=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=Go(Fn,n),[y,x]=d.useState(null),C=Q(t,$=>x($)),[w,E]=d.useState(null),M=gu(w),O=M?.width??0,R=M?.height??0,L=r+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,X={padding:B,boundary:U.filter(xu),altBoundary:H},{refs:W,floatingStyles:Z,placement:F,isPositioned:K,middlewareData:_}=ou({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>Yl(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[su({mainAxis:o+R,alignmentAxis:s}),l&&iu({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?cu():void 0,...X}),l&&lu({...X}),uu({...X,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Ce})=>{const{width:$e,height:et}=J.reference,an=$.floating.style;an.setProperty("--radix-popper-available-width",`${le}px`),an.setProperty("--radix-popper-available-height",`${Ce}px`),an.setProperty("--radix-popper-anchor-width",`${$e}px`),an.setProperty("--radix-popper-anchor-height",`${et}px`)}}),w&&fu({element:w,padding:i}),wu({arrowWidth:O,arrowHeight:R}),f&&du({strategy:"referenceHidden",...X})]}),[k,S]=qo(F),I=fe(v);ue(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,q=_.arrow?.centerOffset!==0,[ee,se]=d.useState();return ue(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:K?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(vu,{scope:n,placedSide:k,onArrowChange:E,arrowX:G,arrowY:V,shouldHideArrow:q,children:m.jsx(Y.div,{"data-side":k,"data-align":S,...h,ref:C,style:{...h.style,animation:K?void 0:"none"}})})})});Ko.displayName=Fn;var Yo="PopperArrow",yu={top:"bottom",right:"left",bottom:"top",left:"right"},Xo=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=bu(Yo,r),s=yu[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(mu,{...o,ref:n,style:{...o.style,display:"block"}})})});Xo.displayName=Yo;function xu(e){return e!==null}var wu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=qo(n),u={start:"0%",center:"50%",end:"100%"}[p],f=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${f}px`,h=`${-l}px`):c==="top"?(v=s?u:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${r.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function qo(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Wo,Zo=Ho,Jo=Ko,Qo=Xo,Su="Portal",zt=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=d.useState(!1);ue(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?vi.createPortal(m.jsx(Y.div,{...r,ref:t}),s):null});zt.displayName=Su;var zn="rovingFocusGroup.onEntryFocus",Cu={bubbles:!1,cancelable:!0},ct="RovingFocusGroup",[Vn,ea,Eu]=ao(ct),[_u,ta]=Ee(ct,[Eu]),[Ru,Ou]=_u(ct),na=d.forwardRef((e,t)=>m.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Au,{...e,ref:t})})}));na.displayName=ct;var Au=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,f=d.useRef(null),g=Q(t,f),v=so(a),[h,b]=We({prop:s,defaultProp:i??null,onChange:l,caller:ct}),[y,x]=d.useState(!1),C=fe(c),w=ea(n),E=d.useRef(!1),[M,O]=d.useState(0);return d.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(zn,C),()=>R.removeEventListener(zn,C)},[C]),m.jsx(Ru,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(R=>b(R),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>O(R=>R+1),[]),onFocusableItemRemove:d.useCallback(()=>O(R=>R-1),[]),children:m.jsx(Y.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,R=>{const L=!E.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zn,Cu);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=w().filter(F=>F.focusable),H=U.find(F=>F.active),X=U.find(F=>F.id===h),Z=[H,X,...U].filter(Boolean).map(F=>F.ref.current);aa(Z,p)}}E.current=!1}),onBlur:j(e.onBlur,()=>x(!1))})})}),ra="RovingFocusGroupItem",oa=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ve(),c=a||l,p=Ou(ra,n),u=p.currentTabStopId===c,f=ea(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return d.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),m.jsx(Vn.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(Y.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Pu(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const w=C.indexOf(b.currentTarget);C=p.loop?ku(C,w+1):C.slice(w+1)}setTimeout(()=>aa(C))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});oa.displayName=ra;var Mu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Pu(e,t,n){const r=Tu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Mu[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 ku(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Nu=na,Du=oa,Iu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Vt=new WeakMap,Bt={},Bn=0,sa=function(e){return e&&(e.host||sa(e.parentNode))},ju=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sa(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})},Lu=function(e,t,n,r){var o=ju(t,Array.isArray(e)?e:[e]);Bt[n]||(Bt[n]=new WeakMap);var a=Bt[n],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(r),v=g!==null&&g!=="false",h=(Xe.get(f)||0)+1,b=(a.get(f)||0)+1;Xe.set(f,h),a.set(f,b),s.push(f),h===1&&v&&Vt.set(f,!0),b===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return p(t),i.clear(),Bn++,function(){s.forEach(function(u){var f=Xe.get(u)-1,g=a.get(u)-1;Xe.set(u,f),a.set(u,g),f||(Vt.has(u)||u.removeAttribute(r),Vt.delete(u)),g||u.removeAttribute(n)}),Bn--,Bn||(Xe=new WeakMap,Xe=new WeakMap,Vt=new WeakMap,Bt={})}},ia=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Iu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Lu(r,o,n,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function ca(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 Fu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Wt="width-before-scroll-bar",$u="with-scroll-bars-hidden",zu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vu(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Bu=typeof window<"u"?d.useLayoutEffect:d.useEffect,la=new WeakMap;function Gu(e,t){var n=Vu(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return Bu(function(){var r=la.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Gn(i,null)}),a.forEach(function(i){o.has(i)||Gn(i,s)})}la.set(n,e)},[e]),n}function Wu(e){return e}function Uu(e,t){t===void 0&&(t=Wu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return o}function Hu(e){e===void 0&&(e={});var t=Uu(null);return t.options=Se({async:!0,ssr:!1},e),t}var ua=function(e){var t=e.sideCar,n=ca(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Se({},n))};ua.isSideCarExport=!0;function Ku(e,t){return e.useMedium(t),ua}var da=Hu(),Wn=function(){},Ut=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,f=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,w=ca(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,M=Gu([n,t]),O=Se(Se({},w),o);return d.createElement(d.Fragment,null,p&&d.createElement(E,{sideCar:da,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:C}),s?d.cloneElement(d.Children.only(i),Se(Se({},O),{ref:M})):d.createElement(x,Se({},O,{className:l,ref:M}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Wt,zeroRight:Gt};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 qu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ju=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xu())&&(qu(t,n),Zu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qu=function(){var e=Ju();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fa=function(){var e=Qu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ed={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},td=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[Un(n),Un(r),Un(o)]},nd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ed;var t=td(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])}},rd=fa(),qe="data-scroll-locked",od=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
11
- .`.concat($u,` {
10
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,re.createPortal=function(u,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,f,null,g)},re.flushSync=function(u){var f=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=f,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},re.preconnect=function(u,f){typeof u=="string"&&u?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(u,f))},re.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f))}typeof u=="string"&&l.d.D(u)},re.preinit=function(u,f){if(typeof u=="string"&&u?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&f&&typeof f.as=="string"){var g=f.as,v=r(g,f.crossOrigin),h=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?l.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},re.preinitModule=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(g+=" The `as` option encountered was "+a(f.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=f&&typeof f.as=="string"?f.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(g=r(f.as,f.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(u))},re.preload=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f==null||typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){g=f.as;var v=r(g,f.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},re.preloadModule=function(u,f){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(f?(g=r(f.as,f.crossOrigin),l.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(u))},re.requestFormReset=function(u){l.d.r(u)},re.unstable_batchedUpdates=function(u,f){return u(f)},re.useFormState=function(u,f,g){return s().useFormState(u,f,g)},re.useFormStatus=function(){return s().useHostTransitionStatus()},re.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),re}var xr;function vi(){if(xr)return St.exports;xr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=gi()):St.exports=hi(),St.exports}var sn=vi();const bi=li(sn);function wr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ot(...e){return t=>{let n=!1;const r=e.map(o=>{const a=wr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():wr(e[o],null)}}}}function Q(...e){return d.useCallback(ot(...e),e)}function ze(e){const t=yi(e),n=d.forwardRef((r,o)=>{const{children:a,...s}=r,i=d.Children.toArray(a),l=i.find(wi);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var _e=ze("Slot");function yi(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const s=Ci(o),i=Si(a,o.props);return o.type!==d.Fragment&&(i.ref=r?ot(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sr=Symbol("radix.slottable");function xi(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sr,t}function wi(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sr}function Si(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Ci(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ei=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Ei.reduce((e,t)=>{const n=ze(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cr(e,t){e&&sn.flushSync(()=>e.dispatchEvent(t))}var Ct={exports:{}},cn={};var Er;function _i(){if(Er)return cn;Er=1;var e=D;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,f){var g=f(),v=r({inst:{value:g,getSnapshot:f}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=f,l(h)&&b({inst:h})},[u,g,f]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!n(u,g)}catch{return!0}}function c(u,f){return f()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,cn}var ln={};var _r;function Ri(){return _r||(_r=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=h,y.getSnapshot=v,n(y)&&x({inst:y})},[g,h,v]),i(function(){return n(y)&&x({inst:y}),g(function(){n(y)&&x({inst:y})})},[g]),c(h),h}function n(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ln.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ln}var Rr;function Oi(){return Rr||(Rr=1,process.env.NODE_ENV==="production"?Ct.exports=_i():Ct.exports=Ri()),Ct.exports}var Ai=Oi();function Mi(){return Ai.useSyncExternalStore(Ti,()=>!0,()=>!1)}function Ti(){return()=>{}}var un="Avatar",[Pi,Ag]=Ee(un),[ki,Or]=Pi(un),Ar=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return m.jsx(ki,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Y.span,{...r,ref:t})})});Ar.displayName=un;var Mr="AvatarImage",Tr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Or(Mr,n),i=Ni(r,a),l=fe(c=>{o(c),s.onImageLoadingStatusChange(c)});return ue(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Y.img,{...a,ref:t,src:r}):null});Tr.displayName=Mr;var Pr="AvatarFallback",kr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Or(Pr,n),[s,i]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Y.span,{...o,ref:t}):null});kr.displayName=Pr;function Nr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Ni(e,{referrerPolicy:t,crossOrigin:n}){const r=Mi(),o=d.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=d.useState(()=>Nr(a,e));return ue(()=>{i(Nr(a,e))},[a,e]),ue(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,n,t]),s}var Di=Ar,Ii=Tr,ji=kr;function Dr(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=Dr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dr(e))&&(r&&(r+=" "),r+=t);return r}const dn="-",Li=e=>{const t=$i(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(dn);return i[0]===""&&i.length!==1&&i.shift(),jr(i,t)||Fi(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},jr=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?jr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(dn);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Lr=/^\[(.+)\]$/,Fi=e=>{if(Lr.test(e)){const t=Lr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$i=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)fn(n[o],r,o,t);return r},fn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Fr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(zi(o)){fn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{fn(s,Fr(t,a),n,r)})})},Fr=(e,t)=>{let n=e;return t.split(dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},zi=e=>e.isThemeGetter,Vi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},pn="!",mn=":",Bi=mn.length,Gi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===mn){a.push(o.slice(l,v)),l=v+Bi;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=Wi(p),f=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+mn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Wi=e=>e.endsWith(pn)?e.substring(0,e.length-1):e.startsWith(pn)?e.substring(1):e,Ui=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Hi=e=>({cache:Vi(e.cacheSize),parseClassName:Gi(e),sortModifiers:Ui(e),...Li(e)}),Ki=/\s+/,Yi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Ki);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:f,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=r(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const x=a(f).join(":"),C=g?x+pn:x,w=C+y;if(s.includes(w))continue;s.push(w);const E=o(y,b);for(let M=0;M<E.length;++M){const A=E[M];s.push(C+A)}l=p+(l.length>0?" "+l:l)}return l};function Xi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$r(t))&&(r&&(r+=" "),r+=n);return r}const $r=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$r(e[r]))&&(n&&(n+=" "),n+=t);return n};function qi(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return n=Hi(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const p=Yi(l,n);return o(l,p),p}return function(){return a(Xi.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zi=/^\d+\/\d+$/,Ji=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qi=/\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$/,ec=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Zi.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&z(e.slice(0,-1)),Re=e=>Ji.test(e),rc=()=>!0,oc=e=>Qi.test(e)&&!ec.test(e),Br=()=>!1,ac=e=>tc.test(e),sc=e=>nc.test(e),ic=e=>!P(e)&&!k(e),cc=e=>Be(e,Kr,Br),P=e=>zr.test(e),De=e=>Be(e,Yr,oc),hn=e=>Be(e,pc,z),Gr=e=>Be(e,Ur,Br),lc=e=>Be(e,Hr,sc),Et=e=>Be(e,Xr,ac),k=e=>Vr.test(e),at=e=>Ge(e,Yr),uc=e=>Ge(e,mc),Wr=e=>Ge(e,Ur),dc=e=>Ge(e,Kr),fc=e=>Ge(e,Hr),_t=e=>Ge(e,Xr,!0),Be=(e,t,n)=>{const r=zr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Vr.exec(e);return r?r[1]?t(r[1]):n:!1},Ur=e=>e==="position"||e==="percentage",Hr=e=>e==="image"||e==="url",Kr=e=>e==="length"||e==="size"||e==="bg-size",Yr=e=>e==="length",pc=e=>e==="number",mc=e=>e==="family-name",Xr=e=>e==="shadow",gc=qi(()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),f=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),x=te("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),k,P],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],R=()=>[k,P,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",k,P],U=()=>["auto",{span:["full",Me,k,P]},Me,k,P],H=()=>[Me,"auto",k,P],X=()=>["auto","min","max","fr",k,P],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,k,P],N=()=>[...w(),Wr,Gr,{position:[k,P]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",dc,cc,{size:[k,P]}],G=()=>[gn,at,De],V=()=>["","none","full",c,k,P],q=()=>["",z,at,De],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,gn,Wr,Gr],J=()=>["","none",v,k,P],le=()=>["none",z,k,P],Ce=()=>["none",z,k,P],$e=()=>[z,k,P],tt=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[rc],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[ic],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",z],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,P,k,b]}],container:["container"],columns:[{columns:[z,P,k,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:E()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",k,P]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",P]}],grow:[{grow:["",z,k,P]}],shrink:[{shrink:["",z,k,P]}],order:[{order:[Me,"first","last","none",k,P]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,at,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,P]}],"font-family":[{font:[uc,P,t]}],"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:[o,k,P]}],"line-clamp":[{"line-clamp":[z,"none",k,hn]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",k,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",k,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",k,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,k,P],radial:["",k,P],conic:[Me,k,P]},fc,lc]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,k,P]}],"outline-w":[{outline:["",z,at,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Et]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Et]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,_t,Et]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,k,P]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[k,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,P]}],filter:[{filter:["","none",k,P]}],blur:[{blur:J()}],brightness:[{brightness:[z,k,P]}],contrast:[{contrast:[z,k,P]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Et]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,k,P]}],"hue-rotate":[{"hue-rotate":[z,k,P]}],invert:[{invert:["",z,k,P]}],saturate:[{saturate:[z,k,P]}],sepia:[{sepia:["",z,k,P]}],"backdrop-filter":[{"backdrop-filter":["","none",k,P]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,k,P]}],"backdrop-contrast":[{"backdrop-contrast":[z,k,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,k,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,k,P]}],"backdrop-invert":[{"backdrop-invert":["",z,k,P]}],"backdrop-opacity":[{"backdrop-opacity":[z,k,P]}],"backdrop-saturate":[{"backdrop-saturate":[z,k,P]}],"backdrop-sepia":[{"backdrop-sepia":["",z,k,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",k,P]}],ease:[{ease:["linear","initial",y,k,P]}],delay:[{delay:[z,k,P]}],animate:[{animate:["none",x,k,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,k,P]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[k,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tt()}],"translate-x":[{"translate-x":tt()}],"translate-y":[{"translate-y":tt()}],"translate-z":[{"translate-z":tt()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",k,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",k,P]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,at,De,hn]}],stroke:[{stroke:["none",..._()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function T(...e){return gc(Ir(e))}function hc({className:e,...t}){return m.jsx(Di,{"data-slot":"avatar",className:T("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function vc({className:e,...t}){return m.jsx(Ii,{"data-slot":"avatar-image",className:T("aspect-square size-full",e),...t})}function bc({className:e,...t}){return m.jsx(ji,{"data-slot":"avatar-fallback",className:T("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zr=Ir,vn=(e,t)=>n=>{var r;if(t?.variants==null)return Zr(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=n?.[c],u=a?.[c];if(p===null)return null;const f=qr(p)||qr(u);return o[c][f]}),i=n&&Object.entries(n).reduce((c,p)=>{let[u,f]=p;return f===void 0||(c[u]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:f,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,f]:c},[]);return Zr(e,s,l,n?.class,n?.className)},Jr=vn("inline-flex items-center justify-center rounded-md border 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:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function yc({className:e,variant:t,asChild:n=!1,...r}){const o=n?_e:"span";return m.jsx(o,{"data-slot":"badge",className:T(Jr({variant:t}),e),...r})}const xc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Qr=e=>{const t=wc(e);return t.charAt(0).toUpperCase()+t.slice(1)},eo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Sc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Cc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ec=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Cc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:eo("lucide",o),...!a&&!Sc(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const We=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(Ec,{ref:a,iconNode:t,className:eo(`lucide-${xc(Qr(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Qr(e),n};const _c=We("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const to=We("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Rc=We("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Oc=We("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"}]]);const Ac=We("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const Mc=We("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Tc({...e}){return m.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Pc({className:e,...t}){return m.jsx("ol",{"data-slot":"breadcrumb-list",className:T("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function kc({className:e,...t}){return m.jsx("li",{"data-slot":"breadcrumb-item",className:T("inline-flex items-center gap-1.5",e),...t})}function Nc({asChild:e,className:t,...n}){const r=e?_e:"a";return m.jsx(r,{"data-slot":"breadcrumb-link",className:T("hover:text-foreground transition-colors",t),...n})}function Dc({className:e,...t}){return m.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:T("text-foreground font-normal",e),...t})}function Ic({children:e,className:t,...n}){return m.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:T("[&>svg]:size-3.5",t),...n,children:e??m.jsx(to,{})})}function jc({className:e,...t}){return m.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:T("flex size-9 items-center justify-center",e),...t,children:[m.jsx(Oc,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"More"})]})}const no=vn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all 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",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-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ro({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?_e:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:T(no({variant:t,size:n,className:e})),...o})}function Lc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:T("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Fc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:T("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function $c({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:T("leading-none font-semibold",e),...t})}function zc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:T("text-muted-foreground text-sm",e),...t})}function Vc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:T("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Bc({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:T("px-6",e),...t})}function Gc({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:T("flex items-center px-6 [.border-t]:pt-6",e),...t})}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Wc=d[" useInsertionEffect ".trim().toString()]||ue;function Ue({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Uc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"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.`),p.current=i},[i,r])}const c=d.useCallback(p=>{if(i){const u=Hc(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function Uc({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return Wc(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Hc(e){return typeof e=="function"}function Kc(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var pe=e=>{const{present:t,children:n}=e,r=Yc(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=Q(r.ref,Xc(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};pe.displayName="Presence";function Yc(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Kc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Rt(r.current);a.current=i==="mounted"?c:"none"},[i]),ue(()=>{const c=r.current,p=o.current;if(p!==e){const f=a.current,g=Rt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ue(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Rt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=g=>{g.target===t&&(a.current=Rt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Rt(e){return e?.animationName||"none"}function Xc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qc=d[" useId ".trim().toString()]||(()=>{}),Zc=0;function ve(e){const[t,n]=d.useState(qc());return ue(()=>{n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[Jc,jg]=Ee(Ot),[Qc,bn]=Jc(Ot),oo=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,c]=Ue({prop:r,defaultProp:o??!1,onChange:s,caller:Ot});return m.jsx(Qc,{scope:n,disabled:a,contentId:ve(),open:l,onOpenToggle:d.useCallback(()=>c(p=>!p),[c]),children:m.jsx(Y.div,{"data-state":xn(l),"data-disabled":a?"":void 0,...i,ref:t})})});oo.displayName=Ot;var ao="CollapsibleTrigger",so=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=bn(ao,n);return m.jsx(Y.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":xn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});so.displayName=ao;var yn="CollapsibleContent",io=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=bn(yn,e.__scopeCollapsible);return m.jsx(pe,{present:n||o.open,children:({present:a})=>m.jsx(el,{...r,ref:t,present:a})})});io.displayName=yn;var el=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=bn(yn,n),[i,l]=d.useState(r),c=d.useRef(null),p=Q(t,c),u=d.useRef(0),f=u.current,g=d.useRef(0),v=g.current,h=s.open||i,b=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),ue(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();u.current=C.height,g.current=C.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),m.jsx(Y.div,{"data-state":xn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function xn(e){return e?"open":"closed"}var tl=oo;function nl({...e}){return m.jsx(tl,{"data-slot":"collapsible",...e})}function rl({...e}){return m.jsx(so,{"data-slot":"collapsible-trigger",...e})}function ol({...e}){return m.jsx(io,{"data-slot":"collapsible-content",...e})}function co(e){const t=e+"CollectionProvider",[n,r]=Ee(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,x=D.useRef(null),C=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:C,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:x}=h,C=a(i,y),w=Q(b,C.collectionRef);return m.jsx(l,{ref:w,children:x})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",f=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:x,...C}=h,w=D.useRef(null),E=Q(b,w),M=a(p,y);return D.useEffect(()=>(M.itemMap.set(w,{ref:w,...C}),()=>void M.itemMap.delete(w))),m.jsx(f,{[u]:"",ref:E,children:x})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,A)=>C.indexOf(M.ref.current)-C.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,r]}var al=d.createContext(void 0);function lo(e){const t=d.useContext(al);return e||t||"ltr"}function sl(e,t=globalThis?.document){const n=fe(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var il="DismissableLayer",wn="dismissableLayer.update",cl="dismissableLayer.pointerDownOutside",ll="dismissableLayer.focusOutside",uo,fo=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=d.useContext(fo),[p,u]=d.useState(null),f=p?.ownerDocument??globalThis?.document,[,g]=d.useState({}),v=Q(t,A=>u(A)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,E=fl(A=>{const R=A.target,L=[...c.branches].some(B=>B.contains(R));!w||L||(o?.(A),s?.(A),A.defaultPrevented||i?.())},f),M=pl(A=>{const R=A.target;[...c.branches].some(B=>B.contains(R))||(a?.(A),s?.(A),A.defaultPrevented||i?.())},f);return sl(A=>{x===c.layers.size-1&&(r?.(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},f),d.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(uo=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),po(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=uo)}},[p,f,n,c]),d.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),po())},[p,c]),d.useEffect(()=>{const A=()=>g({});return document.addEventListener(wn,A),()=>document.removeEventListener(wn,A)},[]),m.jsx(Y.div,{...l,ref:v,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});At.displayName=il;var ul="DismissableLayerBranch",dl=d.forwardRef((e,t)=>{const n=d.useContext(fo),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Y.div,{...e,ref:o})});dl.displayName=ul;function fl(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){mo(cl,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pl(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&mo(ll,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function po(){const e=new CustomEvent(wn);document.dispatchEvent(e)}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cr(o,a):o.dispatchEvent(a)}var Sn=0;function go(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ho()),document.body.insertAdjacentElement("beforeend",e[1]??ho()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function ho(){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 Cn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",vo={bubbles:!1,cancelable:!0},ml="FocusScope",_n=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=d.useState(null),c=fe(o),p=fe(a),u=d.useRef(null),f=Q(t,h=>l(h)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let h=function(C){if(g.paused||!i)return;const w=C.target;i.contains(w)?u.current=w:Te(u.current,{select:!0})},b=function(C){if(g.paused||!i)return;const w=C.relatedTarget;w!==null&&(i.contains(w)||Te(u.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,g.paused]),d.useEffect(()=>{if(i){xo.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(Cn,vo);i.addEventListener(Cn,c),i.dispatchEvent(y),y.defaultPrevented||(gl(xl(bo(i)),{select:!0}),document.activeElement===h&&Te(i))}return()=>{i.removeEventListener(Cn,c),setTimeout(()=>{const y=new CustomEvent(En,vo);i.addEventListener(En,p),i.dispatchEvent(y),y.defaultPrevented||Te(h??document.body,{select:!0}),i.removeEventListener(En,p),xo.remove(g)},0)}}},[i,c,p,g]);const v=d.useCallback(h=>{if(!n&&!r||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const x=h.currentTarget,[C,w]=hl(x);C&&w?!h.shiftKey&&y===w?(h.preventDefault(),n&&Te(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Te(w,{select:!0})):y===x&&h.preventDefault()}},[n,r,g.paused]);return m.jsx(Y.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});_n.displayName=ml;function gl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function hl(e){const t=bo(e),n=yo(t,e),r=yo(t.reverse(),e);return[n,r]}function bo(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 yo(e,t){for(const n of e)if(!vl(n,{upTo:t}))return n}function vl(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 bl(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bl(e)&&t&&e.select()}}var xo=yl();function yl(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wo(e,t),e.unshift(t)},remove(t){e=wo(e,t),e[0]?.resume()}}}function wo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function xl(e){return e.filter(t=>t.tagName!=="A")}const wl=["top","right","bottom","left"],Pe=Math.min,ie=Math.max,Mt=Math.round,Tt=Math.floor,be=e=>({x:e,y:e}),Sl={left:"right",right:"left",bottom:"top",top:"bottom"},Cl={start:"end",end:"start"};function Rn(e,t,n){return ie(e,Pe(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function On(e){return e==="x"?"y":"x"}function An(e){return e==="y"?"height":"width"}const El=new Set(["top","bottom"]);function ye(e){return El.has(Ae(e))?"y":"x"}function Mn(e){return On(ye(e))}function _l(e,t,n){n===void 0&&(n=!1);const r=He(e),o=Mn(e),a=An(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function Rl(e){const t=Pt(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>Cl[t])}const So=["left","right"],Co=["right","left"],Ol=["top","bottom"],Al=["bottom","top"];function Ml(e,t,n){switch(e){case"top":case"bottom":return n?t?Co:So:t?So:Co;case"left":case"right":return t?Ol:Al;default:return[]}}function Tl(e,t,n,r){const o=He(e);let a=Ml(Ae(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Tn)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>Sl[t])}function Pl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Eo(e){return typeof e!="number"?Pl(e):{top:e,right:e,bottom:e,left:e}}function kt(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 _o(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Mn(t),i=An(s),l=Ae(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(He(t)){case"start":g[s]-=f*(n&&c?-1:1);break;case"end":g[s]+=f*(n&&c?-1:1);break}return g}const kl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=_o(c,r,l),f=r,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x,y:C,data:w,reset:E}=await y({x:p,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,u=C??u,g={...g,[b]:{...g[b],...w}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:u}=_o(c,f,l)),h=-1)}return{x:p,y:u,placement:f,strategy:o,middlewareData:g}};async function st(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=Oe(t,e),v=Eo(g),b=i[f?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),x=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-E.top+v.top)/w.y,bottom:(E.bottom-y.bottom+v.bottom)/w.y,left:(y.left-E.left+v.left)/w.x,right:(E.right-y.right+v.right)/w.x}}const Nl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=Oe(e,t)||{};if(c==null)return{};const u=Eo(p),f={x:n,y:r},g=Mn(o),v=An(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",C=b?"clientHeight":"clientWidth",w=a.reference[v]+a.reference[g]-f[g]-a.floating[v],E=f[g]-a.reference[g],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let A=M?M[C]:0;(!A||!await(s.isElement==null?void 0:s.isElement(M)))&&(A=i.floating[C]||a.floating[v]);const R=w/2-E/2,L=A/2-h[v]/2-1,B=Pe(u[y],L),U=Pe(u[x],L),H=B,X=A-h[v]-U,W=A/2-h[v]/2+R,Z=Rn(H,W,X),F=!l.arrow&&He(o)!=null&&W!==Z&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-X:0;return{[g]:f[g]+K,data:{[g]:Z,centerOffset:W-Z-K,...F&&{alignmentOffset:K}},reset:F}}}),Dl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=Oe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Ae(o),x=ye(i),C=Ae(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(C||!h?[Pt(i)]:Rl(i)),M=v!=="none";!f&&M&&E.push(...Tl(i,h,v,w));const A=[i,...E],R=await st(t,b),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(R[y]),u){const W=_l(o,s,w);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,Z=A[W];if(Z&&(!(u==="alignment"?x!==ye(Z):!1)||B.every(_=>ye(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:Z}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var X;const K=(X=B.filter(_=>{if(M){const N=ye(_.placement);return N===x||N==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(N=>N>0).reduce((N,S)=>N+S,0)]).sort((_,N)=>_[1]-N[1])[0])==null?void 0:X[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Ro(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oo(e){return wl.some(t=>e[t]>=0)}const Il=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Oe(e,t);switch(r){case"referenceHidden":{const a=await st(t,{...o,elementContext:"reference"}),s=Ro(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Oo(s)}}}case"escaped":{const a=await st(t,{...o,altBoundary:!0}),s=Ro(a,n.floating);return{data:{escapedOffsets:s,escaped:Oo(s)}}}default:return{}}}}},Ao=new Set(["left","top"]);async function jl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ae(n),i=He(n),l=ye(n)==="y",c=Ao.has(s)?-1:1,p=a&&l?-1:1,u=Oe(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:f*c}:{x:f*c,y:g*p}}const Ll=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await jl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Fl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Oe(e,t),c={x:n,y:r},p=await st(t,l),u=ye(Ae(o)),f=On(u);let g=c[f],v=c[u];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+p[b],C=g-p[y];g=Rn(x,g,C)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=v+p[b],C=v-p[y];v=Rn(x,v,C)}const h=i.fn({...t,[f]:g,[u]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[u]:s}}}}}},$l=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Oe(e,t),p={x:n,y:r},u=ye(o),f=On(u);let g=p[f],v=p[u];const h=Oe(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=f==="y"?"height":"width",w=a.reference[f]-a.floating[C]+b.mainAxis,E=a.reference[f]+a.reference[C]-b.mainAxis;g<w?g=w:g>E&&(g=E)}if(c){var y,x;const C=f==="y"?"width":"height",w=Ao.has(Ae(o)),E=a.reference[u]-a.floating[C]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:b.crossAxis),M=a.reference[u]+a.reference[C]+(w?0:((x=s.offset)==null?void 0:x[u])||0)-(w?b.crossAxis:0);v<E?v=E:v>M&&(v=M)}return{[f]:g,[u]:v}}}},zl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=Oe(e,t),p=await st(t,c),u=Ae(o),f=He(o),g=ye(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const x=h-p.top-p.bottom,C=v-p.left-p.right,w=Pe(h-p[b],x),E=Pe(v-p[y],C),M=!t.middlewareData.shift;let A=w,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),M&&!f){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),X=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):A=h-2*(H!==0||X!==0?H+X:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:A});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function Ke(e){return Mo(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Mo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mo(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function we(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function To(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Vl=new Set(["inline","contents"]);function it(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Vl.has(o)}const Bl=new Set(["table","td","th"]);function Gl(e){return Bl.has(Ke(e))}const Wl=[":popover-open",":modal"];function Dt(e){return Wl.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ul=["transform","translate","scale","rotate","perspective"],Hl=["transform","translate","scale","rotate","perspective","filter"],Kl=["paint","layout","strict","content"];function Pn(e){const t=kn(),n=me(e)?ge(e):e;return Ul.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)||Hl.some(r=>(n.willChange||"").includes(r))||Kl.some(r=>(n.contain||"").includes(r))}function Yl(e){let t=ke(e);for(;we(t)&&!Ye(t);){if(Pn(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xl=new Set(["html","body","#document"]);function Ye(e){return Xl.has(Ke(e))}function ge(e){return ce(e).getComputedStyle(e)}function It(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||To(e)&&e.host||xe(e);return To(t)?t.host:t}function Po(e){const t=ke(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&it(t)?t:Po(t)}function ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Po(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=Nn(s);return t.concat(s,s.visualViewport||[],it(o)?o:[],i&&n?ct(i):[])}return t.concat(o,ct(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ko(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Mt(n)!==a||Mt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Dn(e){return me(e)?e:e.contextElement}function Xe(e){const t=Dn(e);if(!we(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ko(t);let s=(a?Mt(n.width):n.width)/r,i=(a?Mt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const ql=be(0);function No(e){const t=ce(e);return!kn()||!t.visualViewport?ql:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dn(e);let s=be(1);t&&(r?me(r)&&(s=Xe(r)):s=Xe(e));const i=Zl(a,n,r)?No(a):be(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const f=ce(a),g=r&&me(r)?ce(r):r;let v=f,h=Nn(v);for(;h&&r&&g!==v;){const b=Xe(h),y=h.getBoundingClientRect(),x=ge(h),C=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,w=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=C,c+=w,v=ce(h),h=Nn(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const n=It(e).scrollLeft;return t?t.left+n:Ie(xe(e)).left+n}function Do(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Jl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=xe(r),i=t?Dt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=be(1);const p=be(0),u=we(r);if((u||!u&&!a)&&((Ke(r)!=="body"||it(s))&&(l=It(r)),we(r))){const g=Ie(r);c=Xe(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const f=s&&!u&&!a?Do(s,l):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:n.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Ql(e){return Array.from(e.getClientRects())}function eu(e){const t=xe(e),n=It(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Io=25;function tu(e,t){const n=ce(e),r=xe(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(r);if(c<=0){const p=r.ownerDocument,u=p.body,f=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-g);v<=Io&&(a-=v)}else c<=Io&&(a+=c);return{width:a,height:s,x:i,y:l}}const nu=new Set(["absolute","fixed"]);function ru(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=we(e)?Xe(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function jo(e,t,n){let r;if(t==="viewport")r=tu(e,n);else if(t==="document")r=eu(xe(e));else if(me(t))r=ru(t,n);else{const o=No(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Lo(e,t){const n=ke(e);return n===t||!me(n)||Ye(n)?!1:ge(n).position==="fixed"||Lo(n,t)}function ou(e,t){const n=t.get(e);if(n)return n;let r=ct(e,[],!1).filter(i=>me(i)&&Ke(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?ke(e):e;for(;me(s)&&!Ye(s);){const i=ge(s),l=Pn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&nu.has(o.position)||it(s)&&!l&&Lo(e,s))?r=r.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,r),r}function au(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:ou(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((c,p)=>{const u=jo(t,p,o);return c.top=ie(u.top,c.top),c.right=Pe(u.right,c.right),c.bottom=Pe(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},jo(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function su(e){const{width:t,height:n}=ko(e);return{width:t,height:n}}function iu(e,t,n){const r=we(t),o=xe(t),a=n==="fixed",s=Ie(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=be(0);function c(){l.x=jt(o)}if(r||!r&&!a)if((Ke(t)!=="body"||it(o))&&(i=It(t)),r){const g=Ie(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!r&&o&&c();const p=o&&!r&&!a?Do(o,i):be(0),u=s.left+i.scrollLeft-l.x-p.x,f=s.top+i.scrollTop-l.y-p.y;return{x:u,y:f,width:s.width,height:s.height}}function In(e){return ge(e).position==="static"}function Fo(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xe(e)===n&&(n=n.ownerDocument.body),n}function $o(e,t){const n=ce(e);if(Dt(e))return n;if(!we(e)){let o=ke(e);for(;o&&!Ye(o);){if(me(o)&&!In(o))return o;o=ke(o)}return n}let r=Fo(e,t);for(;r&&Gl(r)&&In(r);)r=Fo(r,t);return r&&Ye(r)&&In(r)&&!Pn(r)?n:r||Yl(e)||n}const cu=async function(e){const t=this.getOffsetParent||$o,n=this.getDimensions,r=await n(e.floating);return{reference:iu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lu(e){return ge(e).direction==="rtl"}const uu={convertOffsetParentRelativeRectToViewportRelativeRect:Jl,getDocumentElement:xe,getClippingRect:au,getOffsetParent:$o,getElementRects:cu,getClientRects:Ql,getDimensions:su,getScale:Xe,isElement:me,isRTL:lu};function zo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function du(e,t){let n=null,r;const o=xe(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:f,height:g}=c;if(i||t(),!f||!g)return;const v=Tt(u),h=Tt(o.clientWidth-(p+f)),b=Tt(o.clientHeight-(u+g)),y=Tt(p),C={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Pe(1,l))||1};let w=!0;function E(M){const A=M[0].intersectionRatio;if(A!==l){if(!w)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!zo(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return s(!0),a}function fu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dn(e),p=o||a?[...c?ct(c):[],...ct(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?du(c,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Ie(e):null;l&&b();function b(){const y=Ie(e);h&&!zo(h,y)&&n(),h=y,v=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const pu=Ll,mu=Fl,gu=Dl,hu=zl,vu=Il,Vo=Nl,bu=$l,yu=(e,t,n)=>{const r=new Map,o={platform:uu,...n},a={...o.platform,_c:r};return kl(e,t,{...o,platform:a})};var xu=typeof document<"u",wu=function(){},Lt=xu?D.useLayoutEffect:wu;function Ft(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(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Bo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Go(e,t){const n=Bo(e);return Math.round(t*n)/n}function jn(e){const t=d.useRef(e);return Lt(()=>{t.current=e}),t}function Su(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(r);Ft(f,r)||g(r);const[v,h]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(_=>{_!==M.current&&(M.current=_,h(_))},[]),C=d.useCallback(_=>{_!==A.current&&(A.current=_,y(_))},[]),w=a||v,E=s||b,M=d.useRef(null),A=d.useRef(null),R=d.useRef(p),L=l!=null,B=jn(l),U=jn(o),H=jn(c),X=d.useCallback(()=>{if(!M.current||!A.current)return;const _={placement:t,strategy:n,middleware:f};U.current&&(_.platform=U.current),yu(M.current,A.current,_).then(N=>{const S={...N,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,sn.flushSync(()=>{u(S)}))})},[f,t,n,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=d.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(w&&(M.current=w),E&&(A.current=E),w&&E){if(B.current)return B.current(w,E,X);X()}},[w,E,X,B,L]);const Z=d.useMemo(()=>({reference:M,floating:A,setReference:x,setFloating:C}),[x,C]),F=d.useMemo(()=>({reference:w,floating:E}),[w,E]),K=d.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const N=Go(F.floating,p.x),S=Go(F.floating,p.y);return i?{..._,transform:"translate("+N+"px, "+S+"px)",...Bo(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,i,F.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:X,refs:Z,elements:F,floatingStyles:K}),[p,X,Z,F,K])}const Cu=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?Vo({element:r.current,padding:o}).fn(n):{}:r?Vo({element:r,padding:o}).fn(n):{}}}},Eu=(e,t)=>({...pu(e),options:[e,t]}),_u=(e,t)=>({...mu(e),options:[e,t]}),Ru=(e,t)=>({...bu(e),options:[e,t]}),Ou=(e,t)=>({...gu(e),options:[e,t]}),Au=(e,t)=>({...hu(e),options:[e,t]}),Mu=(e,t)=>({...vu(e),options:[e,t]}),Tu=(e,t)=>({...Cu(e),options:[e,t]});var Pu="Arrow",Wo=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(Y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Wo.displayName=Pu;var ku=Wo;function Nu(e){const[t,n]=d.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ln="Popper",[Uo,$t]=Ee(Ln),[Du,Ho]=Uo(Ln),Ko=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return m.jsx(Du,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ko.displayName=Ln;var Yo="PopperAnchor",Xo=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ho(Yo,n),s=d.useRef(null),i=Q(t,s),l=d.useRef(null);return d.useEffect(()=>{const c=l.current;l.current=r?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Y.div,{...o,ref:i})});Xo.displayName=Yo;var Fn="PopperContent",[Iu,ju]=Uo(Fn),qo=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=Ho(Fn,n),[y,x]=d.useState(null),C=Q(t,$=>x($)),[w,E]=d.useState(null),M=Nu(w),A=M?.width??0,R=M?.height??0,L=r+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,X={padding:B,boundary:U.filter(Fu),altBoundary:H},{refs:W,floatingStyles:Z,placement:F,isPositioned:K,middlewareData:_}=Su({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>fu(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[Eu({mainAxis:o+R,alignmentAxis:s}),l&&_u({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Ru():void 0,...X}),l&&Ou({...X}),Au({...X,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Ce})=>{const{width:$e,height:tt}=J.reference,an=$.floating.style;an.setProperty("--radix-popper-available-width",`${le}px`),an.setProperty("--radix-popper-available-height",`${Ce}px`),an.setProperty("--radix-popper-anchor-width",`${$e}px`),an.setProperty("--radix-popper-anchor-height",`${tt}px`)}}),w&&Tu({element:w,padding:i}),$u({arrowWidth:A,arrowHeight:R}),f&&Mu({strategy:"referenceHidden",...X})]}),[N,S]=Qo(F),I=fe(v);ue(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,q=_.arrow?.centerOffset!==0,[ee,se]=d.useState();return ue(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:K?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Iu,{scope:n,placedSide:N,onArrowChange:E,arrowX:G,arrowY:V,shouldHideArrow:q,children:m.jsx(Y.div,{"data-side":N,"data-align":S,...h,ref:C,style:{...h.style,animation:K?void 0:"none"}})})})});qo.displayName=Fn;var Zo="PopperArrow",Lu={top:"bottom",right:"left",bottom:"top",left:"right"},Jo=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=ju(Zo,r),s=Lu[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(ku,{...o,ref:n,style:{...o.style,display:"block"}})})});Jo.displayName=Zo;function Fu(e){return e!==null}var $u=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=Qo(n),u={start:"0%",center:"50%",end:"100%"}[p],f=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${f}px`,h=`${-l}px`):c==="top"?(v=s?u:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${r.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function Qo(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Ko,ea=Xo,ta=qo,na=Jo,zu="Portal",zt=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=d.useState(!1);ue(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?bi.createPortal(m.jsx(Y.div,{...r,ref:t}),s):null});zt.displayName=zu;var zn="rovingFocusGroup.onEntryFocus",Vu={bubbles:!1,cancelable:!0},lt="RovingFocusGroup",[Vn,ra,Bu]=co(lt),[Gu,oa]=Ee(lt,[Bu]),[Wu,Uu]=Gu(lt),aa=d.forwardRef((e,t)=>m.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Hu,{...e,ref:t})})}));aa.displayName=lt;var Hu=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,f=d.useRef(null),g=Q(t,f),v=lo(a),[h,b]=Ue({prop:s,defaultProp:i??null,onChange:l,caller:lt}),[y,x]=d.useState(!1),C=fe(c),w=ra(n),E=d.useRef(!1),[M,A]=d.useState(0);return d.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(zn,C),()=>R.removeEventListener(zn,C)},[C]),m.jsx(Wu,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(R=>b(R),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>A(R=>R+1),[]),onFocusableItemRemove:d.useCallback(()=>A(R=>R-1),[]),children:m.jsx(Y.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,R=>{const L=!E.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zn,Vu);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=w().filter(F=>F.focusable),H=U.find(F=>F.active),X=U.find(F=>F.id===h),Z=[H,X,...U].filter(Boolean).map(F=>F.ref.current);ca(Z,p)}}E.current=!1}),onBlur:j(e.onBlur,()=>x(!1))})})}),sa="RovingFocusGroupItem",ia=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ve(),c=a||l,p=Uu(sa,n),u=p.currentTabStopId===c,f=ra(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return d.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),m.jsx(Vn.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(Y.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Xu(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const w=C.indexOf(b.currentTarget);C=p.loop?qu(C,w+1):C.slice(w+1)}setTimeout(()=>ca(C))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});ia.displayName=sa;var Ku={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Xu(e,t,n){const r=Yu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ku[r]}function ca(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function qu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zu=aa,Ju=ia,Qu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qe=new WeakMap,Vt=new WeakMap,Bt={},Bn=0,la=function(e){return e&&(e.host||la(e.parentNode))},ed=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=la(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})},td=function(e,t,n,r){var o=ed(t,Array.isArray(e)?e:[e]);Bt[n]||(Bt[n]=new WeakMap);var a=Bt[n],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(r),v=g!==null&&g!=="false",h=(qe.get(f)||0)+1,b=(a.get(f)||0)+1;qe.set(f,h),a.set(f,b),s.push(f),h===1&&v&&Vt.set(f,!0),b===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return p(t),i.clear(),Bn++,function(){s.forEach(function(u){var f=qe.get(u)-1,g=a.get(u)-1;qe.set(u,f),a.set(u,g),f||(Vt.has(u)||u.removeAttribute(r),Vt.delete(u)),g||u.removeAttribute(n)}),Bn--,Bn||(qe=new WeakMap,qe=new WeakMap,Vt=new WeakMap,Bt={})}},ua=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),td(r,o,n,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function da(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 nd(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Wt="width-before-scroll-bar",rd="with-scroll-bars-hidden",od="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ad(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var sd=typeof window<"u"?d.useLayoutEffect:d.useEffect,fa=new WeakMap;function id(e,t){var n=ad(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return sd(function(){var r=fa.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Gn(i,null)}),a.forEach(function(i){o.has(i)||Gn(i,s)})}fa.set(n,e)},[e]),n}function cd(e){return e}function ld(e,t){t===void 0&&(t=cd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return o}function ud(e){e===void 0&&(e={});var t=ld(null);return t.options=Se({async:!0,ssr:!1},e),t}var pa=function(e){var t=e.sideCar,n=da(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Se({},n))};pa.isSideCarExport=!0;function dd(e,t){return e.useMedium(t),pa}var ma=ud(),Wn=function(){},Ut=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,f=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,w=da(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,M=id([n,t]),A=Se(Se({},w),o);return d.createElement(d.Fragment,null,p&&d.createElement(E,{sideCar:ma,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:C}),s?d.cloneElement(d.Children.only(i),Se(Se({},A),{ref:M})):d.createElement(x,Se({},A,{className:l,ref:M}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Wt,zeroRight:Gt};var fd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fd();return t&&e.setAttribute("nonce",t),e}function md(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pd())&&(md(t,n),gd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vd=function(){var e=hd();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ga=function(){var e=vd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bd={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},yd=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[Un(n),Un(r),Un(o)]},xd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bd;var t=yd(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])}},wd=ga(),Ze="data-scroll-locked",Sd=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
11
+ .`.concat(rd,` {
12
12
  overflow: hidden `).concat(r,`;
13
13
  padding-right: `).concat(i,"px ").concat(r,`;
14
14
  }
15
- body[`).concat(qe,`] {
15
+ body[`).concat(Ze,`] {
16
16
  overflow: hidden `).concat(r,`;
17
17
  overscroll-behavior: contain;
18
18
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -41,14 +41,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
41
41
  margin-right: 0 `).concat(r,`;
42
42
  }
43
43
 
44
- body[`).concat(qe,`] {
45
- `).concat(zu,": ").concat(i,`px;
44
+ body[`).concat(Ze,`] {
45
+ `).concat(od,": ").concat(i,`px;
46
46
  }
47
- `)},pa=function(){var e=parseInt(document.body.getAttribute(qe)||"0",10);return isFinite(e)?e:0},ad=function(){d.useEffect(function(){return document.body.setAttribute(qe,(pa()+1).toString()),function(){var e=pa()-1;e<=0?document.body.removeAttribute(qe):document.body.setAttribute(qe,e.toString())}},[])},sd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ad();var a=d.useMemo(function(){return nd(o)},[o]);return d.createElement(rd,{styles:od(a,!t,o,n?"":"!important")})},Hn=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{Hn=!1}var Ze=Hn?{passive:!1}:!1,id=function(e){return e.tagName==="TEXTAREA"},ma=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!id(e)&&n[t]==="visible")},cd=function(e){return ma(e,"overflowY")},ld=function(e){return ma(e,"overflowX")},ga=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ha(e,r);if(o){var a=va(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ud=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ha=function(e,t){return e==="v"?cd(t):ld(t)},va=function(e,t){return e==="v"?ud(t):dd(t)},fd=function(e,t){return e==="h"&&t==="rtl"?-1:1},pd=function(e,t,n,r,o){var a=fd(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),c=!1,p=s>0,u=0,f=0;do{if(!i)break;var g=va(e,i),v=g[0],h=g[1],b=g[2],y=h-b-a*v;(v||y)&&ha(e,i)&&(u+=y,f+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(u)<1||!p&&Math.abs(f)<1)&&(c=!0),c},Kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ba=function(e){return[e.deltaX,e.deltaY]},ya=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`
47
+ `)},ha=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},Cd=function(){d.useEffect(function(){return document.body.setAttribute(Ze,(ha()+1).toString()),function(){var e=ha()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},Ed=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Cd();var a=d.useMemo(function(){return xd(o)},[o]);return d.createElement(wd,{styles:Sd(a,!t,o,n?"":"!important")})},Hn=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{Hn=!1}var Je=Hn?{passive:!1}:!1,_d=function(e){return e.tagName==="TEXTAREA"},va=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_d(e)&&n[t]==="visible")},Rd=function(e){return va(e,"overflowY")},Od=function(e){return va(e,"overflowX")},ba=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ya(e,r);if(o){var a=xa(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ad=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Md=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ya=function(e,t){return e==="v"?Rd(t):Od(t)},xa=function(e,t){return e==="v"?Ad(t):Md(t)},Td=function(e,t){return e==="h"&&t==="rtl"?-1:1},Pd=function(e,t,n,r,o){var a=Td(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),c=!1,p=s>0,u=0,f=0;do{if(!i)break;var g=xa(e,i),v=g[0],h=g[1],b=g[2],y=h-b-a*v;(v||y)&&ya(e,i)&&(u+=y,f+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(u)<1||!p&&Math.abs(f)<1)&&(c=!0),c},Kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wa=function(e){return[e.deltaX,e.deltaY]},Sa=function(e){return e&&"current"in e?e.current:e},kd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nd=function(e){return`
48
48
  .block-interactivity-`.concat(e,` {pointer-events: none;}
49
49
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
50
- `)},hd=0,Je=[];function vd(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(hd++)[0],a=d.useState(fa)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Fu([e.lockRef.current],(e.shards||[]).map(ya),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Kt(h),x=n.current,C="deltaX"in h?h.deltaX:x[0]-y[0],w="deltaY"in h?h.deltaY:x[1]-y[1],E,M=h.target,O=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in h&&O==="h"&&M.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===M||L.contains(M):!1;if(B)return!1;var U=ga(O,M);if(!U)return!0;if(U?E=O:(E=O==="v"?"h":"v",U=ga(O,M)),!U)return!1;if(!r.current&&"changedTouches"in h&&(C||w)&&(r.current=E),!E)return!0;var H=r.current||E;return pd(H,b,h,H==="h"?C:w)},[]),l=d.useCallback(function(h){var b=h;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in b?ba(b):Kt(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&md(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(ya).filter(Boolean).filter(function(E){return E.contains(b.target)}),w=C.length>0?i(b,C[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=d.useCallback(function(h,b,y,x){var C={name:h,delta:b,target:y,should:x,shadowParent:bd(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),p=d.useCallback(function(h){n.current=Kt(h),r.current=void 0},[]),u=d.useCallback(function(h){c(h.type,ba(h),h.target,i(h,e.lockRef.current))},[]),f=d.useCallback(function(h){c(h.type,Kt(h),h.target,i(h,e.lockRef.current))},[]);d.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ze),document.addEventListener("touchmove",l,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Ze),document.removeEventListener("touchmove",l,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var g=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:gd(o)}):null,g?d.createElement(sd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yd=Ku(da,vd);var Kn=d.forwardRef(function(e,t){return d.createElement(Ut,Se({},e,{ref:t,sideCar:yd}))});Kn.classNames=Ut.classNames;var Yn=["Enter"," "],xd=["ArrowDown","PageUp","Home"],xa=["ArrowUp","PageDown","End"],wd=[...xd,...xa],Sd={ltr:[...Yn,"ArrowRight"],rtl:[...Yn,"ArrowLeft"]},Cd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},lt="Menu",[ut,Ed,_d]=ao(lt),[je,wa]=Ee(lt,[_d,$t,ta]),dt=$t(),Sa=ta(),[Ca,Ne]=je(lt),[Rd,ft]=je(lt),Ea=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=dt(t),[l,c]=d.useState(null),p=d.useRef(!1),u=fe(a),f=so(o);return d.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($n,{...i,children:m.jsx(Ca,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(Rd,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:s,children:r})})})};Ea.displayName=lt;var Od="MenuAnchor",Xn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return m.jsx(Zo,{...o,...r,ref:t})});Xn.displayName=Od;var qn="MenuPortal",[Ad,_a]=je(qn,{forceMount:void 0}),Ra=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(qn,t);return m.jsx(Ad,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Ra.displayName=qn;var de="MenuContent",[Md,Zn]=je(de),Oa=d.forwardRef((e,t)=>{const n=_a(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=ft(de,e.__scopeMenu);return m.jsx(ut.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(ut.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(Td,{...o,ref:t}):m.jsx(Pd,{...o,ref:t})})})})}),Td=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),m.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Pd=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu);return m.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),kd=ze("MenuContent.ScrollLock"),Jn=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(de,n),y=ft(de,n),x=dt(n),C=Sa(n),w=Ed(n),[E,M]=d.useState(null),O=d.useRef(null),R=Q(t,O,b.onContentChange),L=d.useRef(0),B=d.useRef(""),U=d.useRef(0),H=d.useRef(null),X=d.useRef("right"),W=d.useRef(0),Z=v?Kn:d.Fragment,F=v?{as:kd,allowPinchZoom:!0}:void 0,K=k=>{const S=B.current+k,I=w().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,q=I.map($=>$.textValue),ee=Wd(q,S,V),se=I.find($=>$.textValue===ee)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};d.useEffect(()=>()=>window.clearTimeout(L.current),[]),fo();const _=d.useCallback(k=>X.current===H.current?.side&&Hd(k,H.current?.area),[]);return m.jsx(Md,{scope:n,searchRef:B,onItemEnter:d.useCallback(k=>{_(k)&&k.preventDefault()},[_]),onItemLeave:d.useCallback(k=>{_(k)||(O.current?.focus(),M(null))},[_]),onTriggerLeave:d.useCallback(k=>{_(k)&&k.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:d.useCallback(k=>{H.current=k},[]),children:m.jsx(Z,{...F,children:m.jsx(_n,{asChild:!0,trapped:o,onMountAutoFocus:j(a,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:m.jsx(Nu,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:j(l,k=>{y.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Jo,{role:"menu","aria-orientation":"vertical","data-state":Ua(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,k=>{const I=k.target.closest("[data-radix-menu-content]")===k.currentTarget,G=k.ctrlKey||k.altKey||k.metaKey,V=k.key.length===1;I&&(k.key==="Tab"&&k.preventDefault(),!G&&V&&K(k.key));const q=O.current;if(k.target!==q||!wd.includes(k.key))return;k.preventDefault();const se=w().filter($=>!$.disabled).map($=>$.ref.current);xa.includes(k.key)&&se.reverse(),Bd(se)}),onBlur:j(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,mt(k=>{const S=k.target,I=W.current!==k.clientX;if(k.currentTarget.contains(S)&&I){const G=k.clientX>W.current?"right":"left";X.current=G,W.current=k.clientX}}))})})})})})})});Oa.displayName=de;var Nd="MenuGroup",Qn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"group",...r,ref:t})});Qn.displayName=Nd;var Dd="MenuLabel",Aa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{...r,ref:t})});Aa.displayName=Dd;var Yt="MenuItem",Ma="menu.itemSelect",Xt=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),s=ft(Yt,e.__scopeMenu),i=Zn(Yt,e.__scopeMenu),l=Q(t,a),c=d.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const f=new CustomEvent(Ma,{bubbles:!0,cancelable:!0});u.addEventListener(Ma,g=>r?.(g),{once:!0}),Cr(u,f),f.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(Ta,{...o,ref:l,disabled:n,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const f=i.searchRef.current!=="";n||f&&u.key===" "||Yn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Xt.displayName=Yt;var Ta=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Zn(Yt,n),i=Sa(n),l=d.useRef(null),c=Q(t,l),[p,u]=d.useState(!1),[f,g]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(ut.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Du,{asChild:!0,...i,focusable:!r,children:m.jsx(Y.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,mt(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,mt(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),Id="MenuCheckboxItem",Pa=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(ja,{scope:e.__scopeMenu,checked:n,children:m.jsx(Xt,{role:"menuitemcheckbox","aria-checked":qt(n)?"mixed":n,...o,ref:t,"data-state":nr(n),onSelect:j(o.onSelect,()=>r?.(qt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Pa.displayName=Id;var ka="MenuRadioGroup",[jd,Ld]=je(ka,{value:void 0,onValueChange:()=>{}}),Na=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=fe(r);return m.jsx(jd,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Qn,{...o,ref:t})})});Na.displayName=ka;var Da="MenuRadioItem",Ia=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=Ld(Da,e.__scopeMenu),a=n===o.value;return m.jsx(ja,{scope:e.__scopeMenu,checked:a,children:m.jsx(Xt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nr(a),onSelect:j(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ia.displayName=Da;var er="MenuItemIndicator",[ja,Fd]=je(er,{checked:!1}),La=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Fd(er,n);return m.jsx(pe,{present:r||qt(a.checked)||a.checked===!0,children:m.jsx(Y.span,{...o,ref:t,"data-state":nr(a.checked)})})});La.displayName=er;var $d="MenuSeparator",Fa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Fa.displayName=$d;var zd="MenuArrow",$a=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return m.jsx(Qo,{...o,...r,ref:t})});$a.displayName=zd;var tr="MenuSub",[Vd,za]=je(tr),Va=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(tr,t),s=dt(t),[i,l]=d.useState(null),[c,p]=d.useState(null),u=fe(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($n,{...s,children:m.jsx(Ca,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(Vd,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:l,children:n})})})};Va.displayName=tr;var pt="MenuSubTrigger",Ba=d.forwardRef((e,t)=>{const n=Ne(pt,e.__scopeMenu),r=ft(pt,e.__scopeMenu),o=za(pt,e.__scopeMenu),a=Zn(pt,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xn,{asChild:!0,...c,children:m.jsx(Ta,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ua(n.open),...e,ref:rt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,mt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,mt(u=>{p();const f=n.content?.getBoundingClientRect();if(f){const g=n.content?.dataset.side,v=g==="right",h=v?-5:5,b=f[v?"left":"right"],y=f[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const f=a.searchRef.current!=="";e.disabled||f&&u.key===" "||Sd[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Ba.displayName=pt;var Ga="MenuSubContent",Wa=d.forwardRef((e,t)=>{const n=_a(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=ft(de,e.__scopeMenu),i=za(Ga,e.__scopeMenu),l=d.useRef(null),c=Q(t,l);return m.jsx(ut.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(ut.Slot,{scope:e.__scopeMenu,children:m.jsx(Jn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),f=Cd[s.dir].includes(p.key);u&&f&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Wa.displayName=Ga;function Ua(e){return e?"open":"closed"}function qt(e){return e==="indeterminate"}function nr(e){return qt(e)?"indeterminate":e?"checked":"unchecked"}function Bd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Gd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Gd(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Ud(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Hd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ud(n,t)}function mt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Kd=Ea,Yd=Xn,Xd=Ra,qd=Oa,Zd=Qn,Jd=Aa,Qd=Xt,ef=Pa,tf=Na,nf=Ia,rf=La,of=Fa,af=$a,sf=Va,cf=Ba,lf=Wa,Zt="DropdownMenu",[uf,Cg]=Ee(Zt,[wa]),oe=wa(),[df,Ha]=uf(Zt),Ka=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=d.useRef(null),[p,u]=We({prop:o,defaultProp:a??!1,onChange:s,caller:Zt});return m.jsx(df,{scope:t,triggerId:ve(),triggerRef:c,contentId:ve(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:i,children:m.jsx(Kd,{...l,open:p,onOpenChange:u,dir:r,modal:i,children:n})})};Ka.displayName=Zt;var Ya="DropdownMenuTrigger",Xa=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ha(Ya,n),s=oe(n);return m.jsx(Yd,{asChild:!0,...s,children:m.jsx(Y.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:rt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Xa.displayName=Ya;var ff="DropdownMenuPortal",qa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oe(t);return m.jsx(Xd,{...r,...n})};qa.displayName=ff;var Za="DropdownMenuContent",Ja=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ha(Za,n),a=oe(n),s=d.useRef(!1);return m.jsx(qd,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.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)"}})});Ja.displayName=Za;var pf="DropdownMenuGroup",Qa=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Zd,{...o,...r,ref:t})});Qa.displayName=pf;var mf="DropdownMenuLabel",es=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Jd,{...o,...r,ref:t})});es.displayName=mf;var gf="DropdownMenuItem",ts=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Qd,{...o,...r,ref:t})});ts.displayName=gf;var hf="DropdownMenuCheckboxItem",ns=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(ef,{...o,...r,ref:t})});ns.displayName=hf;var vf="DropdownMenuRadioGroup",rs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(tf,{...o,...r,ref:t})});rs.displayName=vf;var bf="DropdownMenuRadioItem",os=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(nf,{...o,...r,ref:t})});os.displayName=bf;var yf="DropdownMenuItemIndicator",as=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(rf,{...o,...r,ref:t})});as.displayName=yf;var xf="DropdownMenuSeparator",ss=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(of,{...o,...r,ref:t})});ss.displayName=xf;var wf="DropdownMenuArrow",Sf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(af,{...o,...r,ref:t})});Sf.displayName=wf;var Cf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=We({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(sf,{...s,open:i,onOpenChange:l,children:n})},Ef="DropdownMenuSubTrigger",is=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(cf,{...o,...r,ref:t})});is.displayName=Ef;var _f="DropdownMenuSubContent",cs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(lf,{...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)"}})});cs.displayName=_f;var Rf=Ka,Of=Xa,ls=qa,Af=Ja,Mf=Qa,Tf=es,Pf=ts,kf=ns,Nf=rs,Df=os,us=as,If=ss,jf=Cf,Lf=is,Ff=cs;const $f=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ds=e=>{const t=zf(e);return t.charAt(0).toUpperCase()+t.slice(1)},fs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Vf=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Bf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Gf=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Bf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fs("lucide",o),...!a&&!Vf(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const gt=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(Gf,{ref:a,iconNode:t,className:fs(`lucide-${$f(ds(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ds(e),n};const Wf=gt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Uf=gt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Hf=gt("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Kf=gt("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const Yf=gt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Xf({...e}){return m.jsx(Rf,{"data-slot":"dropdown-menu",...e})}function qf({...e}){return m.jsx(ls,{"data-slot":"dropdown-menu-portal",...e})}function Zf({...e}){return m.jsx(Of,{"data-slot":"dropdown-menu-trigger",...e})}function Jf({className:e,sideOffset:t=4,...n}){return m.jsx(ls,{children:m.jsx(Af,{"data-slot":"dropdown-menu-content",sideOffset:t,className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Qf({...e}){return m.jsx(Mf,{"data-slot":"dropdown-menu-group",...e})}function ep({className:e,inset:t,variant:n="default",...r}){return m.jsx(Pf,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:N("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function tp({className:e,children:t,checked:n,...r}){return m.jsxs(kf,{"data-slot":"dropdown-menu-checkbox-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(us,{children:m.jsx(Wf,{className:"size-4"})})}),t]})}function np({...e}){return m.jsx(Nf,{"data-slot":"dropdown-menu-radio-group",...e})}function rp({className:e,children:t,...n}){return m.jsxs(Df,{"data-slot":"dropdown-menu-radio-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(us,{children:m.jsx(Hf,{className:"size-2 fill-current"})})}),t]})}function op({className:e,inset:t,...n}){return m.jsx(Tf,{"data-slot":"dropdown-menu-label","data-inset":t,className:N("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function ap({className:e,...t}){return m.jsx(If,{"data-slot":"dropdown-menu-separator",className:N("bg-border -mx-1 my-1 h-px",e),...t})}function sp({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:N("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function ip({...e}){return m.jsx(jf,{"data-slot":"dropdown-menu-sub",...e})}function cp({className:e,inset:t,children:n,...r}){return m.jsxs(Lf,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:N("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(Uf,{className:"ml-auto size-4"})]})}function lp({className:e,...t}){return m.jsx(Ff,{"data-slot":"dropdown-menu-sub-content",className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var up="Label",ps=d.forwardRef((e,t)=>m.jsx(Y.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ps.displayName=up;var dp=ps,fp=e=>e.type==="checkbox",ht=e=>e instanceof Date,rr=e=>e==null;const ms=e=>typeof e=="object";var Le=e=>!rr(e)&&!Array.isArray(e)&&ms(e)&&!ht(e),pp=e=>Le(e)&&e.target?fp(e.target)?e.target.checked:e.target.value:e,mp=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,gp=(e,t)=>e.has(mp(t)),hp=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},vp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function gs(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(vp&&(e instanceof Blob||r))&&(n||Le(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!hp(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=gs(e[o]));else return e;return t}var hs=e=>/^\w*$/.test(e),or=e=>e===void 0,bp=e=>Array.isArray(e)?e.filter(Boolean):[],vs=e=>bp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,n)=>{if(!t||!Le(e))return n;const r=(hs(t)?[t]:vs(t)).reduce((o,a)=>rr(o)?o:o[a],e);return or(r)||r===e?or(e[t])?n:e[t]:r},ar=e=>typeof e=="boolean",bs=(e,t,n)=>{let r=-1;const o=hs(t)?[t]:vs(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const c=e[i];l=Le(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const ys={BLUR:"blur",CHANGE:"change"},xs={all:"all"},sr=D.createContext(null);sr.displayName="HookFormContext";const Jt=()=>D.useContext(sr),yp=e=>{const{children:t,...n}=e;return D.createElement(sr.Provider,{value:n},t)};var xp=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==xs.all&&(t._proxyFormState[s]=!r||xs.all),n&&(n[s]=!0),e[s]}});return o};const ws=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Ss(e){const t=Jt(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=D.useState(n._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ws(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!r&&i({...n._formState,...c})}}),[o,r,a]),D.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>xp(s,n,l.current,!1),[s,n])}var wp=e=>typeof e=="string",Cs=(e,t,n,r,o)=>wp(e)?ae(n,e,o):Array.isArray(e)?e.map(a=>ae(n,a)):n,Es=e=>rr(e)||!ms(e);function Qt(e,t,n=new WeakSet){if(Es(e)||Es(t))return Object.is(e,t);if(ht(e)&&ht(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ht(s)&&ht(i)||Le(s)&&Le(i)||Array.isArray(s)&&Array.isArray(i)?!Qt(s,i,n):!Object.is(s,i))return!1}}return!0}function Sp(e){const t=Jt(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(n),f=D.useRef(r);c.current=i;const[g,v]=D.useState(()=>{const w=n._getWatch(r,l.current);return c.current?c.current(w):w}),h=D.useCallback(w=>{const E=Cs(r,n._names,w||n._formValues,!1,l.current);return c.current?c.current(E):E},[n._formValues,n._names,r]),b=D.useCallback(w=>{if(!a){const E=Cs(r,n._names,w||n._formValues,!1,l.current);if(c.current){const M=c.current(E);Qt(M,p.current)||(v(M),p.current=M)}else v(E)}},[n._formValues,n._names,a,r]);ws(()=>((u.current!==n||!Qt(f.current,r))&&(u.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{b(w.values)}})),[n,s,r,b]),D.useEffect(()=>n._removeUnmounted());const y=u.current!==n,x=f.current,C=D.useMemo(()=>{if(a)return null;const w=!y&&!Qt(x,r);return y||w?h():null},[a,y,r,x,h]);return C!==null?C:g}function Cp(e){const t=Jt(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=gp(o._names.array,n),c=D.useMemo(()=>ae(o._formValues,n,ae(o._defaultValues,n,s)),[o,n,s]),p=Sp({control:o,name:n,defaultValue:c,exact:i}),u=Ss({control:o,name:n,exact:i}),f=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(n,{...e.rules,value:p,...ar(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,n)},error:{enumerable:!0,get:()=>ae(u.errors,n)}}),[u,n]),b=D.useCallback(w=>v.current.onChange({target:{value:pp(w),name:n},type:ys.CHANGE}),[n]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,n),name:n},type:ys.BLUR}),[n,o._formValues]),x=D.useCallback(w=>{const E=ae(o._fields,n);E&&w&&(E._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:M=>w.setCustomValidity(M),reportValidity:()=>w.reportValidity()})},[o._fields,n]),C=D.useMemo(()=>({name:n,value:p,...ar(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:b,onBlur:y,ref:x}),[n,r,u.disabled,b,y,x,p]);return D.useEffect(()=>{const w=o._options.shouldUnregister||a,E=g.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...ar(f.current.disabled)?{disabled:f.current.disabled}:{}});const M=(O,R)=>{const L=ae(o._fields,O);L&&L._f&&(L._f.mount=R)};if(M(n,!0),w){const O=gs(ae(o._options.defaultValues,n,f.current.defaultValue));bs(o._defaultValues,n,O),or(ae(o._formValues,n))&&bs(o._formValues,n,O)}return!l&&o.register(n),g.current=n,()=>{(l?w&&!o._state.action:w)?o.unregister(n):M(n,!1)}},[n,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:C,formState:u,fieldState:h}),[C,u,h])}const Ep=e=>e.render(Cp(e));function _s({className:e,...t}){return m.jsx(dp,{"data-slot":"label",className:N("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const _p=yp,Rs=d.createContext({}),Rp=({...e})=>m.jsx(Rs.Provider,{value:{name:e.name},children:m.jsx(Ep,{...e})}),vt=()=>{const e=d.useContext(Rs),t=d.useContext(Os),{getFieldState:n}=Jt(),r=Ss({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Os=d.createContext({});function Op({className:e,...t}){const n=d.useId();return m.jsx(Os.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:N("grid gap-2",e),...t})})}function Ap({className:e,...t}){const{error:n,formItemId:r}=vt();return m.jsx(_s,{"data-slot":"form-label","data-error":!!n,className:N("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Mp({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=vt();return m.jsx(Ae,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Tp({className:e,...t}){const{formDescriptionId:n}=vt();return m.jsx("p",{"data-slot":"form-description",id:n,className:N("text-muted-foreground text-sm",e),...t})}function Pp({className:e,...t}){const{error:n,formMessageId:r}=vt(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:N("text-destructive text-sm",e),...t,children:o}):null}function As({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",e),...n})}var kp=Symbol.for("react.lazy"),en=d[" use ".trim().toString()];function Np(e){return typeof e=="object"&&e!==null&&"then"in e}function Ms(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kp&&"_payload"in e&&Np(e._payload)}function Dp(e){const t=Ip(e),n=d.forwardRef((r,o)=>{let{children:a,...s}=r;Ms(a)&&typeof en=="function"&&(a=en(a._payload));const i=d.Children.toArray(a),l=i.find(Lp);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Ip(e){const t=d.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ms(o)&&typeof en=="function"&&(o=en(o._payload)),d.isValidElement(o)){const s=$p(o),i=Fp(a,o.props);return o.type!==d.Fragment&&(i.ref=r?rt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jp=Symbol("radix.slottable");function Lp(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jp}function Fp(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function $p(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vp=zp.reduce((e,t)=>{const n=Dp(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Bp="Separator",Ts="horizontal",Gp=["horizontal","vertical"],Ps=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ts,...o}=e,a=Wp(r)?r:Ts,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(Vp.div,{"data-orientation":a,...i,...o,ref:t})});Ps.displayName=Bp;function Wp(e){return Gp.includes(e)}var Up=Ps;function ks({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(Up,{"data-slot":"separator",decorative:n,orientation:t,className:N("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}const ir=768;function Hp(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ir-1}px)`),r=()=>{t(window.innerWidth<ir)};return n.addEventListener("change",r),t(window.innerWidth<ir),()=>n.removeEventListener("change",r)},[]),!!e}var tn="Dialog",[Ns,Mg]=Ee(tn),[Kp,he]=Ns(tn),Ds=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),l=d.useRef(null),[c,p]=We({prop:r,defaultProp:o??!1,onChange:a,caller:tn});return m.jsx(Kp,{scope:t,triggerRef:i,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};Ds.displayName=tn;var Is="DialogTrigger",Yp=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Is,n),a=Q(t,o.triggerRef);return m.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ur(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Yp.displayName=Is;var cr="DialogPortal",[Xp,js]=Ns(cr,{forceMount:void 0}),Ls=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=he(cr,t);return m.jsx(Xp,{scope:t,forceMount:n,children:d.Children.map(r,s=>m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};Ls.displayName=cr;var nn="DialogOverlay",Fs=d.forwardRef((e,t)=>{const n=js(nn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(nn,e.__scopeDialog);return a.modal?m.jsx(pe,{present:r||a.open,children:m.jsx(Zp,{...o,ref:t})}):null});Fs.displayName=nn;var qp=ze("DialogOverlay.RemoveScroll"),Zp=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(nn,n);return m.jsx(Kn,{as:qp,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Y.div,{"data-state":ur(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",$s=d.forwardRef((e,t)=>{const n=js(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(Fe,e.__scopeDialog);return m.jsx(pe,{present:r||a.open,children:a.modal?m.jsx(Jp,{...o,ref:t}):m.jsx(Qp,{...o,ref:t})})});$s.displayName=Fe;var Jp=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(null),o=Q(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),m.jsx(zs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Qp=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return m.jsx(zs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),zs=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(Fe,n),l=d.useRef(null),c=Q(t,l);return fo(),m.jsxs(m.Fragment,{children:[m.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ur(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(em,{titleId:i.titleId}),m.jsx(nm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),lr="DialogTitle",Vs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(lr,n);return m.jsx(Y.h2,{id:o.titleId,...r,ref:t})});Vs.displayName=lr;var Bs="DialogDescription",Gs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Bs,n);return m.jsx(Y.p,{id:o.descriptionId,...r,ref:t})});Gs.displayName=Bs;var Ws="DialogClose",Us=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Ws,n);return m.jsx(Y.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Us.displayName=Ws;function ur(e){return e?"open":"closed"}var Hs="DialogTitleWarning",[Tg,Ks]=fi(Hs,{contentName:Fe,titleName:lr,docsSlug:"dialog"}),em=({titleId:e})=>{const t=Ks(Hs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
50
+ `)},Dd=0,Qe=[];function Id(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Dd++)[0],a=d.useState(ga)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=nd([e.lockRef.current],(e.shards||[]).map(Sa),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Kt(h),x=n.current,C="deltaX"in h?h.deltaX:x[0]-y[0],w="deltaY"in h?h.deltaY:x[1]-y[1],E,M=h.target,A=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in h&&A==="h"&&M.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===M||L.contains(M):!1;if(B)return!1;var U=ba(A,M);if(!U)return!0;if(U?E=A:(E=A==="v"?"h":"v",U=ba(A,M)),!U)return!1;if(!r.current&&"changedTouches"in h&&(C||w)&&(r.current=E),!E)return!0;var H=r.current||E;return Pd(H,b,h,H==="h"?C:w)},[]),l=d.useCallback(function(h){var b=h;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var y="deltaY"in b?wa(b):Kt(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&kd(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(Sa).filter(Boolean).filter(function(E){return E.contains(b.target)}),w=C.length>0?i(b,C[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=d.useCallback(function(h,b,y,x){var C={name:h,delta:b,target:y,should:x,shadowParent:jd(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),p=d.useCallback(function(h){n.current=Kt(h),r.current=void 0},[]),u=d.useCallback(function(h){c(h.type,wa(h),h.target,i(h,e.lockRef.current))},[]),f=d.useCallback(function(h){c(h.type,Kt(h),h.target,i(h,e.lockRef.current))},[]);d.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Je),document.addEventListener("touchmove",l,Je),document.addEventListener("touchstart",p,Je),function(){Qe=Qe.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Je),document.removeEventListener("touchmove",l,Je),document.removeEventListener("touchstart",p,Je)}},[]);var g=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:Nd(o)}):null,g?d.createElement(Ed,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ld=dd(ma,Id);var Kn=d.forwardRef(function(e,t){return d.createElement(Ut,Se({},e,{ref:t,sideCar:Ld}))});Kn.classNames=Ut.classNames;var Yn=["Enter"," "],Fd=["ArrowDown","PageUp","Home"],Ca=["ArrowUp","PageDown","End"],$d=[...Fd,...Ca],zd={ltr:[...Yn,"ArrowRight"],rtl:[...Yn,"ArrowLeft"]},Vd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ut="Menu",[dt,Bd,Gd]=co(ut),[je,Ea]=Ee(ut,[Gd,$t,oa]),ft=$t(),_a=oa(),[Ra,Ne]=je(ut),[Wd,pt]=je(ut),Oa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=ft(t),[l,c]=d.useState(null),p=d.useRef(!1),u=fe(a),f=lo(o);return d.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($n,{...i,children:m.jsx(Ra,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(Wd,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:s,children:r})})})};Oa.displayName=ut;var Ud="MenuAnchor",Xn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ft(n);return m.jsx(ea,{...o,...r,ref:t})});Xn.displayName=Ud;var qn="MenuPortal",[Hd,Aa]=je(qn,{forceMount:void 0}),Ma=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(qn,t);return m.jsx(Hd,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Ma.displayName=qn;var de="MenuContent",[Kd,Zn]=je(de),Ta=d.forwardRef((e,t)=>{const n=Aa(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=pt(de,e.__scopeMenu);return m.jsx(dt.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(dt.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(Yd,{...o,ref:t}):m.jsx(Xd,{...o,ref:t})})})})}),Yd=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return ua(a)},[]),m.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Xd=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu);return m.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qd=ze("MenuContent.ScrollLock"),Jn=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(de,n),y=pt(de,n),x=ft(n),C=_a(n),w=Bd(n),[E,M]=d.useState(null),A=d.useRef(null),R=Q(t,A,b.onContentChange),L=d.useRef(0),B=d.useRef(""),U=d.useRef(0),H=d.useRef(null),X=d.useRef("right"),W=d.useRef(0),Z=v?Kn:d.Fragment,F=v?{as:qd,allowPinchZoom:!0}:void 0,K=N=>{const S=B.current+N,I=w().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,q=I.map($=>$.textValue),ee=lf(q,S,V),se=I.find($=>$.textValue===ee)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};d.useEffect(()=>()=>window.clearTimeout(L.current),[]),go();const _=d.useCallback(N=>X.current===H.current?.side&&df(N,H.current?.area),[]);return m.jsx(Kd,{scope:n,searchRef:B,onItemEnter:d.useCallback(N=>{_(N)&&N.preventDefault()},[_]),onItemLeave:d.useCallback(N=>{_(N)||(A.current?.focus(),M(null))},[_]),onTriggerLeave:d.useCallback(N=>{_(N)&&N.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:d.useCallback(N=>{H.current=N},[]),children:m.jsx(Z,{...F,children:m.jsx(_n,{asChild:!0,trapped:o,onMountAutoFocus:j(a,N=>{N.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:m.jsx(Zu,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:j(l,N=>{y.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(ta,{role:"menu","aria-orientation":"vertical","data-state":Ya(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,N=>{const I=N.target.closest("[data-radix-menu-content]")===N.currentTarget,G=N.ctrlKey||N.altKey||N.metaKey,V=N.key.length===1;I&&(N.key==="Tab"&&N.preventDefault(),!G&&V&&K(N.key));const q=A.current;if(N.target!==q||!$d.includes(N.key))return;N.preventDefault();const se=w().filter($=>!$.disabled).map($=>$.ref.current);Ca.includes(N.key)&&se.reverse(),sf(se)}),onBlur:j(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,gt(N=>{const S=N.target,I=W.current!==N.clientX;if(N.currentTarget.contains(S)&&I){const G=N.clientX>W.current?"right":"left";X.current=G,W.current=N.clientX}}))})})})})})})});Ta.displayName=de;var Zd="MenuGroup",Qn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"group",...r,ref:t})});Qn.displayName=Zd;var Jd="MenuLabel",Pa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{...r,ref:t})});Pa.displayName=Jd;var Yt="MenuItem",ka="menu.itemSelect",Xt=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),s=pt(Yt,e.__scopeMenu),i=Zn(Yt,e.__scopeMenu),l=Q(t,a),c=d.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const f=new CustomEvent(ka,{bubbles:!0,cancelable:!0});u.addEventListener(ka,g=>r?.(g),{once:!0}),Cr(u,f),f.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(Na,{...o,ref:l,disabled:n,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const f=i.searchRef.current!=="";n||f&&u.key===" "||Yn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Xt.displayName=Yt;var Na=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Zn(Yt,n),i=_a(n),l=d.useRef(null),c=Q(t,l),[p,u]=d.useState(!1),[f,g]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(dt.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Ju,{asChild:!0,...i,focusable:!r,children:m.jsx(Y.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,gt(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,gt(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),Qd="MenuCheckboxItem",Da=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx($a,{scope:e.__scopeMenu,checked:n,children:m.jsx(Xt,{role:"menuitemcheckbox","aria-checked":qt(n)?"mixed":n,...o,ref:t,"data-state":nr(n),onSelect:j(o.onSelect,()=>r?.(qt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Da.displayName=Qd;var Ia="MenuRadioGroup",[ef,tf]=je(Ia,{value:void 0,onValueChange:()=>{}}),ja=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=fe(r);return m.jsx(ef,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Qn,{...o,ref:t})})});ja.displayName=Ia;var La="MenuRadioItem",Fa=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=tf(La,e.__scopeMenu),a=n===o.value;return m.jsx($a,{scope:e.__scopeMenu,checked:a,children:m.jsx(Xt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nr(a),onSelect:j(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Fa.displayName=La;var er="MenuItemIndicator",[$a,nf]=je(er,{checked:!1}),za=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=nf(er,n);return m.jsx(pe,{present:r||qt(a.checked)||a.checked===!0,children:m.jsx(Y.span,{...o,ref:t,"data-state":nr(a.checked)})})});za.displayName=er;var rf="MenuSeparator",Va=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Va.displayName=rf;var of="MenuArrow",Ba=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ft(n);return m.jsx(na,{...o,...r,ref:t})});Ba.displayName=of;var tr="MenuSub",[af,Ga]=je(tr),Wa=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(tr,t),s=ft(t),[i,l]=d.useState(null),[c,p]=d.useState(null),u=fe(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($n,{...s,children:m.jsx(Ra,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(af,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:l,children:n})})})};Wa.displayName=tr;var mt="MenuSubTrigger",Ua=d.forwardRef((e,t)=>{const n=Ne(mt,e.__scopeMenu),r=pt(mt,e.__scopeMenu),o=Ga(mt,e.__scopeMenu),a=Zn(mt,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xn,{asChild:!0,...c,children:m.jsx(Na,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ya(n.open),...e,ref:ot(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,gt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,gt(u=>{p();const f=n.content?.getBoundingClientRect();if(f){const g=n.content?.dataset.side,v=g==="right",h=v?-5:5,b=f[v?"left":"right"],y=f[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const f=a.searchRef.current!=="";e.disabled||f&&u.key===" "||zd[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Ua.displayName=mt;var Ha="MenuSubContent",Ka=d.forwardRef((e,t)=>{const n=Aa(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=pt(de,e.__scopeMenu),i=Ga(Ha,e.__scopeMenu),l=d.useRef(null),c=Q(t,l);return m.jsx(dt.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(dt.Slot,{scope:e.__scopeMenu,children:m.jsx(Jn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),f=Vd[s.dir].includes(p.key);u&&f&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Ka.displayName=Ha;function Ya(e){return e?"open":"closed"}function qt(e){return e==="indeterminate"}function nr(e){return qt(e)?"indeterminate":e?"checked":"unchecked"}function sf(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function lf(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=cf(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function uf(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function df(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return uf(n,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ff=Oa,pf=Xn,mf=Ma,gf=Ta,hf=Qn,vf=Pa,bf=Xt,yf=Da,xf=ja,wf=Fa,Sf=za,Cf=Va,Ef=Ba,_f=Wa,Rf=Ua,Of=Ka,Zt="DropdownMenu",[Af,Lg]=Ee(Zt,[Ea]),oe=Ea(),[Mf,Xa]=Af(Zt),qa=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=d.useRef(null),[p,u]=Ue({prop:o,defaultProp:a??!1,onChange:s,caller:Zt});return m.jsx(Mf,{scope:t,triggerId:ve(),triggerRef:c,contentId:ve(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:i,children:m.jsx(ff,{...l,open:p,onOpenChange:u,dir:r,modal:i,children:n})})};qa.displayName=Zt;var Za="DropdownMenuTrigger",Ja=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Xa(Za,n),s=oe(n);return m.jsx(pf,{asChild:!0,...s,children:m.jsx(Y.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:ot(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ja.displayName=Za;var Tf="DropdownMenuPortal",Qa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oe(t);return m.jsx(mf,{...r,...n})};Qa.displayName=Tf;var es="DropdownMenuContent",ts=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xa(es,n),a=oe(n),s=d.useRef(!1);return m.jsx(gf,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.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)"}})});ts.displayName=es;var Pf="DropdownMenuGroup",ns=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(hf,{...o,...r,ref:t})});ns.displayName=Pf;var kf="DropdownMenuLabel",rs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(vf,{...o,...r,ref:t})});rs.displayName=kf;var Nf="DropdownMenuItem",os=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(bf,{...o,...r,ref:t})});os.displayName=Nf;var Df="DropdownMenuCheckboxItem",as=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(yf,{...o,...r,ref:t})});as.displayName=Df;var If="DropdownMenuRadioGroup",ss=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(xf,{...o,...r,ref:t})});ss.displayName=If;var jf="DropdownMenuRadioItem",is=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(wf,{...o,...r,ref:t})});is.displayName=jf;var Lf="DropdownMenuItemIndicator",cs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Sf,{...o,...r,ref:t})});cs.displayName=Lf;var Ff="DropdownMenuSeparator",ls=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Cf,{...o,...r,ref:t})});ls.displayName=Ff;var $f="DropdownMenuArrow",zf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Ef,{...o,...r,ref:t})});zf.displayName=$f;var Vf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=Ue({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(_f,{...s,open:i,onOpenChange:l,children:n})},Bf="DropdownMenuSubTrigger",us=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Rf,{...o,...r,ref:t})});us.displayName=Bf;var Gf="DropdownMenuSubContent",ds=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Of,{...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)"}})});ds.displayName=Gf;var Wf=qa,Uf=Ja,fs=Qa,Hf=ts,Kf=ns,Yf=rs,Xf=os,qf=as,Zf=ss,Jf=is,ps=cs,Qf=ls,ep=Vf,tp=us,np=ds;function rp({...e}){return m.jsx(Wf,{"data-slot":"dropdown-menu",...e})}function op({...e}){return m.jsx(fs,{"data-slot":"dropdown-menu-portal",...e})}function ap({...e}){return m.jsx(Uf,{"data-slot":"dropdown-menu-trigger",...e})}function sp({className:e,sideOffset:t=4,...n}){return m.jsx(fs,{children:m.jsx(Hf,{"data-slot":"dropdown-menu-content",sideOffset:t,className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function ip({...e}){return m.jsx(Kf,{"data-slot":"dropdown-menu-group",...e})}function cp({className:e,inset:t,variant:n="default",...r}){return m.jsx(Xf,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function lp({className:e,children:t,checked:n,...r}){return m.jsxs(qf,{"data-slot":"dropdown-menu-checkbox-item",className:T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(ps,{children:m.jsx(_c,{className:"size-4"})})}),t]})}function up({...e}){return m.jsx(Zf,{"data-slot":"dropdown-menu-radio-group",...e})}function dp({className:e,children:t,...n}){return m.jsxs(Jf,{"data-slot":"dropdown-menu-radio-item",className:T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(ps,{children:m.jsx(Rc,{className:"size-2 fill-current"})})}),t]})}function fp({className:e,inset:t,...n}){return m.jsx(Yf,{"data-slot":"dropdown-menu-label","data-inset":t,className:T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function pp({className:e,...t}){return m.jsx(Qf,{"data-slot":"dropdown-menu-separator",className:T("bg-border -mx-1 my-1 h-px",e),...t})}function mp({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:T("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function gp({...e}){return m.jsx(ep,{"data-slot":"dropdown-menu-sub",...e})}function hp({className:e,inset:t,children:n,...r}){return m.jsxs(tp,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:T("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(to,{className:"ml-auto size-4"})]})}function vp({className:e,...t}){return m.jsx(np,{"data-slot":"dropdown-menu-sub-content",className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var bp="Label",ms=d.forwardRef((e,t)=>m.jsx(Y.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ms.displayName=bp;var yp=ms,xp=e=>e.type==="checkbox",ht=e=>e instanceof Date,rr=e=>e==null;const gs=e=>typeof e=="object";var Le=e=>!rr(e)&&!Array.isArray(e)&&gs(e)&&!ht(e),wp=e=>Le(e)&&e.target?xp(e.target)?e.target.checked:e.target.value:e,Sp=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Cp=(e,t)=>e.has(Sp(t)),Ep=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},_p=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hs(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(_p&&(e instanceof Blob||r))&&(n||Le(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Ep(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=hs(e[o]));else return e;return t}var vs=e=>/^\w*$/.test(e),or=e=>e===void 0,Rp=e=>Array.isArray(e)?e.filter(Boolean):[],bs=e=>Rp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,n)=>{if(!t||!Le(e))return n;const r=(vs(t)?[t]:bs(t)).reduce((o,a)=>rr(o)?o:o[a],e);return or(r)||r===e?or(e[t])?n:e[t]:r},ar=e=>typeof e=="boolean",ys=(e,t,n)=>{let r=-1;const o=vs(t)?[t]:bs(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const c=e[i];l=Le(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const xs={BLUR:"blur",CHANGE:"change"},ws={all:"all"},sr=D.createContext(null);sr.displayName="HookFormContext";const Jt=()=>D.useContext(sr),Op=e=>{const{children:t,...n}=e;return D.createElement(sr.Provider,{value:n},t)};var Ap=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==ws.all&&(t._proxyFormState[s]=!r||ws.all),n&&(n[s]=!0),e[s]}});return o};const Ss=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Cs(e){const t=Jt(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=D.useState(n._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ss(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!r&&i({...n._formState,...c})}}),[o,r,a]),D.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>Ap(s,n,l.current,!1),[s,n])}var Mp=e=>typeof e=="string",Es=(e,t,n,r,o)=>Mp(e)?ae(n,e,o):Array.isArray(e)?e.map(a=>ae(n,a)):n,_s=e=>rr(e)||!gs(e);function Qt(e,t,n=new WeakSet){if(_s(e)||_s(t))return Object.is(e,t);if(ht(e)&&ht(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ht(s)&&ht(i)||Le(s)&&Le(i)||Array.isArray(s)&&Array.isArray(i)?!Qt(s,i,n):!Object.is(s,i))return!1}}return!0}function Tp(e){const t=Jt(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(n),f=D.useRef(r);c.current=i;const[g,v]=D.useState(()=>{const w=n._getWatch(r,l.current);return c.current?c.current(w):w}),h=D.useCallback(w=>{const E=Es(r,n._names,w||n._formValues,!1,l.current);return c.current?c.current(E):E},[n._formValues,n._names,r]),b=D.useCallback(w=>{if(!a){const E=Es(r,n._names,w||n._formValues,!1,l.current);if(c.current){const M=c.current(E);Qt(M,p.current)||(v(M),p.current=M)}else v(E)}},[n._formValues,n._names,a,r]);Ss(()=>((u.current!==n||!Qt(f.current,r))&&(u.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{b(w.values)}})),[n,s,r,b]),D.useEffect(()=>n._removeUnmounted());const y=u.current!==n,x=f.current,C=D.useMemo(()=>{if(a)return null;const w=!y&&!Qt(x,r);return y||w?h():null},[a,y,r,x,h]);return C!==null?C:g}function Pp(e){const t=Jt(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=Cp(o._names.array,n),c=D.useMemo(()=>ae(o._formValues,n,ae(o._defaultValues,n,s)),[o,n,s]),p=Tp({control:o,name:n,defaultValue:c,exact:i}),u=Cs({control:o,name:n,exact:i}),f=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(n,{...e.rules,value:p,...ar(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,n)},error:{enumerable:!0,get:()=>ae(u.errors,n)}}),[u,n]),b=D.useCallback(w=>v.current.onChange({target:{value:wp(w),name:n},type:xs.CHANGE}),[n]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,n),name:n},type:xs.BLUR}),[n,o._formValues]),x=D.useCallback(w=>{const E=ae(o._fields,n);E&&w&&(E._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:M=>w.setCustomValidity(M),reportValidity:()=>w.reportValidity()})},[o._fields,n]),C=D.useMemo(()=>({name:n,value:p,...ar(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:b,onBlur:y,ref:x}),[n,r,u.disabled,b,y,x,p]);return D.useEffect(()=>{const w=o._options.shouldUnregister||a,E=g.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...ar(f.current.disabled)?{disabled:f.current.disabled}:{}});const M=(A,R)=>{const L=ae(o._fields,A);L&&L._f&&(L._f.mount=R)};if(M(n,!0),w){const A=hs(ae(o._options.defaultValues,n,f.current.defaultValue));ys(o._defaultValues,n,A),or(ae(o._formValues,n))&&ys(o._formValues,n,A)}return!l&&o.register(n),g.current=n,()=>{(l?w&&!o._state.action:w)?o.unregister(n):M(n,!1)}},[n,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:C,formState:u,fieldState:h}),[C,u,h])}const kp=e=>e.render(Pp(e));function Rs({className:e,...t}){return m.jsx(yp,{"data-slot":"label",className:T("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Np=Op,Os=d.createContext({}),Dp=({...e})=>m.jsx(Os.Provider,{value:{name:e.name},children:m.jsx(kp,{...e})}),vt=()=>{const e=d.useContext(Os),t=d.useContext(As),{getFieldState:n}=Jt(),r=Cs({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},As=d.createContext({});function Ip({className:e,...t}){const n=d.useId();return m.jsx(As.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:T("grid gap-2",e),...t})})}function jp({className:e,...t}){const{error:n,formItemId:r}=vt();return m.jsx(Rs,{"data-slot":"form-label","data-error":!!n,className:T("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Lp({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=vt();return m.jsx(_e,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Fp({className:e,...t}){const{formDescriptionId:n}=vt();return m.jsx("p",{"data-slot":"form-description",id:n,className:T("text-muted-foreground text-sm",e),...t})}function $p({className:e,...t}){const{error:n,formMessageId:r}=vt(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:T("text-destructive text-sm",e),...t,children:o}):null}function Ms({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:T("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",e),...n})}var zp=Symbol.for("react.lazy"),en=d[" use ".trim().toString()];function Vp(e){return typeof e=="object"&&e!==null&&"then"in e}function Ts(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===zp&&"_payload"in e&&Vp(e._payload)}function Bp(e){const t=Gp(e),n=d.forwardRef((r,o)=>{let{children:a,...s}=r;Ts(a)&&typeof en=="function"&&(a=en(a._payload));const i=d.Children.toArray(a),l=i.find(Up);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Gp(e){const t=d.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ts(o)&&typeof en=="function"&&(o=en(o._payload)),d.isValidElement(o)){const s=Kp(o),i=Hp(a,o.props);return o.type!==d.Fragment&&(i.ref=r?ot(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wp=Symbol("radix.slottable");function Up(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wp}function Hp(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Kp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Yp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xp=Yp.reduce((e,t)=>{const n=Bp(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qp="Separator",Ps="horizontal",Zp=["horizontal","vertical"],ks=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ps,...o}=e,a=Jp(r)?r:Ps,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(Xp.div,{"data-orientation":a,...i,...o,ref:t})});ks.displayName=qp;function Jp(e){return Zp.includes(e)}var Qp=ks;function Ns({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(Qp,{"data-slot":"separator",decorative:n,orientation:t,className:T("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}const ir=768;function em(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ir-1}px)`),r=()=>{t(window.innerWidth<ir)};return n.addEventListener("change",r),t(window.innerWidth<ir),()=>n.removeEventListener("change",r)},[]),!!e}var tn="Dialog",[Ds,Fg]=Ee(tn),[tm,he]=Ds(tn),Is=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),l=d.useRef(null),[c,p]=Ue({prop:r,defaultProp:o??!1,onChange:a,caller:tn});return m.jsx(tm,{scope:t,triggerRef:i,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};Is.displayName=tn;var js="DialogTrigger",nm=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(js,n),a=Q(t,o.triggerRef);return m.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ur(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});nm.displayName=js;var cr="DialogPortal",[rm,Ls]=Ds(cr,{forceMount:void 0}),Fs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=he(cr,t);return m.jsx(rm,{scope:t,forceMount:n,children:d.Children.map(r,s=>m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};Fs.displayName=cr;var nn="DialogOverlay",$s=d.forwardRef((e,t)=>{const n=Ls(nn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(nn,e.__scopeDialog);return a.modal?m.jsx(pe,{present:r||a.open,children:m.jsx(am,{...o,ref:t})}):null});$s.displayName=nn;var om=ze("DialogOverlay.RemoveScroll"),am=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(nn,n);return m.jsx(Kn,{as:om,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Y.div,{"data-state":ur(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",zs=d.forwardRef((e,t)=>{const n=Ls(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(Fe,e.__scopeDialog);return m.jsx(pe,{present:r||a.open,children:a.modal?m.jsx(sm,{...o,ref:t}):m.jsx(im,{...o,ref:t})})});zs.displayName=Fe;var sm=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(null),o=Q(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return ua(a)},[]),m.jsx(Vs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),im=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return m.jsx(Vs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Vs=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(Fe,n),l=d.useRef(null),c=Q(t,l);return go(),m.jsxs(m.Fragment,{children:[m.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ur(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(cm,{titleId:i.titleId}),m.jsx(um,{contentRef:l,descriptionId:i.descriptionId})]})]})}),lr="DialogTitle",Bs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(lr,n);return m.jsx(Y.h2,{id:o.titleId,...r,ref:t})});Bs.displayName=lr;var Gs="DialogDescription",Ws=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Gs,n);return m.jsx(Y.p,{id:o.descriptionId,...r,ref:t})});Ws.displayName=Gs;var Us="DialogClose",Hs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Us,n);return m.jsx(Y.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Hs.displayName=Us;function ur(e){return e?"open":"closed"}var Ks="DialogTitleWarning",[$g,Ys]=pi(Ks,{contentName:Fe,titleName:lr,docsSlug:"dialog"}),cm=({titleId:e})=>{const t=Ys(Ks),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
51
51
 
52
52
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
53
53
 
54
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tm="DialogDescriptionWarning",nm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ks(tm).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rm=Ds,om=Ls,am=Fs,sm=$s,im=Vs,cm=Gs,lm=Us;function um({...e}){return m.jsx(rm,{"data-slot":"sheet",...e})}function dm({...e}){return m.jsx(om,{"data-slot":"sheet-portal",...e})}function fm({className:e,...t}){return m.jsx(am,{"data-slot":"sheet-overlay",className:N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function pm({className:e,children:t,side:n="right",...r}){return m.jsxs(dm,{children:[m.jsx(fm,{}),m.jsxs(sm,{"data-slot":"sheet-content",className:N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(lm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx(Yf,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function mm({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:N("flex flex-col gap-1.5 p-4",e),...t})}function gm({className:e,...t}){return m.jsx(im,{"data-slot":"sheet-title",className:N("text-foreground font-semibold",e),...t})}function hm({className:e,...t}){return m.jsx(cm,{"data-slot":"sheet-description",className:N("text-muted-foreground text-sm",e),...t})}function Ys({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:N("bg-accent animate-pulse rounded-md",e),...t})}var vm=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"}),bm="VisuallyHidden",Xs=d.forwardRef((e,t)=>m.jsx(Y.span,{...e,ref:t,style:{...vm,...e.style}}));Xs.displayName=bm;var ym=Xs,[rn,Pg]=Ee("Tooltip",[$t]),on=$t(),qs="TooltipProvider",xm=700,dr="tooltip.open",[wm,fr]=rn(qs),Zs=e=>{const{__scopeTooltip:t,delayDuration:n=xm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(wm,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};Zs.displayName=qs;var bt="Tooltip",[Sm,yt]=rn(bt),Js=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=fr(bt,e.__scopeTooltip),c=on(t),[p,u]=d.useState(null),f=ve(),g=d.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=d.useRef(!1),[y,x]=We({prop:r,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(dr))):l.onClose(),a?.(O)},caller:bt}),C=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),w=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),M=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,x(!0),g.current=0},h)},[h,x]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($n,{...c,children:m.jsx(Sm,{scope:t,contentId:f,open:y,stateAttribute:C,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?M():w()},[l.isOpenDelayedRef,M,w]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(g.current),g.current=0)},[E,v]),onOpen:w,onClose:E,disableHoverableContent:v,children:n})})};Js.displayName=bt;var pr="TooltipTrigger",Qs=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yt(pr,n),a=fr(pr,n),s=on(n),i=d.useRef(null),l=Q(t,i,o.onTriggerChange),c=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(Zo,{asChild:!0,...s,children:m.jsx(Y.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,f=>{f.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Qs.displayName=pr;var mr="TooltipPortal",[Cm,Em]=rn(mr,{forceMount:void 0}),ei=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=yt(mr,t);return m.jsx(Cm,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};ei.displayName=mr;var Qe="TooltipContent",ti=d.forwardRef((e,t)=>{const n=Em(Qe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=yt(Qe,e.__scopeTooltip);return m.jsx(pe,{present:r||s.open,children:s.disableHoverableContent?m.jsx(ni,{side:o,...a,ref:t}):m.jsx(_m,{side:o,...a,ref:t})})}),_m=d.forwardRef((e,t)=>{const n=yt(Qe,e.__scopeTooltip),r=fr(Qe,e.__scopeTooltip),o=d.useRef(null),a=Q(t,o),[s,i]=d.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,f=d.useCallback(()=>{i(null),u(!1)},[u]),g=d.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Mm(y,b.getBoundingClientRect()),C=Tm(y,x),w=Pm(h.getBoundingClientRect()),E=Nm([...C,...w]);i(E),u(!0)},[u]);return d.useEffect(()=>()=>f(),[f]),d.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,f]),d.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},x=l?.contains(b)||p?.contains(b),C=!km(y,s);x?f():C&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,f]),m.jsx(ni,{...e,ref:a})}),[Rm,Om]=rn(bt,{isInside:!1}),Am=yi("TooltipContent"),ni=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(Qe,n),c=on(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(dr,p),()=>document.removeEventListener(dr,p)),[p]),d.useEffect(()=>{if(l.trigger){const u=f=>{f.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(Jo,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(Am,{children:r}),m.jsx(Rm,{scope:n,isInside:!0,children:m.jsx(ym,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ti.displayName=Qe;var ri="TooltipArrow",oi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(n);return Om(ri,n).isInside?null:m.jsx(Qo,{...o,...r,ref:t})});oi.displayName=ri;function Mm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Tm(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 Pm(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 km(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Nm(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),Dm(t)}function Dm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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 Im=Zs,jm=Js,Lm=Qs,Fm=ei,$m=ti,zm=oi;function ai({delayDuration:e=0,...t}){return m.jsx(Im,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Vm({...e}){return m.jsx(ai,{children:m.jsx(jm,{"data-slot":"tooltip",...e})})}function Bm({...e}){return m.jsx(Lm,{"data-slot":"tooltip-trigger",...e})}function Gm({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Fm,{children:m.jsxs($m,{"data-slot":"tooltip-content",sideOffset:t,className:N("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(zm,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Wm="sidebar_state",Um=3600*24*7,Hm="16rem",Km="18rem",Ym="3rem",Xm="b",si=d.createContext(null);function xt(){const e=d.useContext(si);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function qm({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=Hp(),[l,c]=d.useState(!1),[p,u]=d.useState(e),f=t??p,g=d.useCallback(y=>{const x=typeof y=="function"?y(f):y;n?n(x):u(x),document.cookie=`${Wm}=${x}; path=/; max-age=${Um}`},[n,f]),v=d.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);d.useEffect(()=>{const y=x=>{x.key===Xm&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=f?"expanded":"collapsed",b=d.useMemo(()=>({state:h,open:f,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,f,g,i,l,c,v]);return m.jsx(si.Provider,{value:b,children:m.jsx(ai,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Hm,"--sidebar-width-icon":Ym,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Zm({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?m.jsx(um,{open:l,onOpenChange:c,...a,children:m.jsxs(pm,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Km},side:e,children:[m.jsxs(mm,{className:"sr-only",children:[m.jsx(gm,{children:"Sidebar"}),m.jsx(hm,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function Jm({className:e,onClick:t,...n}){const{toggleSidebar:r}=xt();return m.jsxs(eo,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:N("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[m.jsx(Kf,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Qm({className:e,...t}){const{toggleSidebar:n}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function eg({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function tg({className:e,...t}){return m.jsx(As,{"data-slot":"sidebar-input","data-sidebar":"input",className:N("bg-background h-8 w-full shadow-none",e),...t})}function ng({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t})}function rg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t})}function og({className:e,...t}){return m.jsx(ks,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t})}function ag({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function sg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t})}function ig({className:e,asChild:t=!1,...n}){const r=t?Ae:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function cg({className:e,asChild:t=!1,...n}){const r=t?Ae:"button";return m.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function lg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t})}function ug({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t})}function dg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t})}const fg=vn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pg({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?Ae:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(fg({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Vm,{children:[m.jsx(Bm,{asChild:!0,children:p}),m.jsx(Gm,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function mg({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Ae:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function gg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function hg({className:e,showIcon:t=!1,...n}){const r=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&m.jsx(Ys,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(Ys,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function vg({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function bg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t})}function yg({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Ae:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}A.Avatar=gc,A.AvatarFallback=vc,A.AvatarImage=hc,A.Badge=bc,A.Button=eo,A.Card=yc,A.CardAction=Cc,A.CardContent=Ec,A.CardDescription=Sc,A.CardFooter=_c,A.CardHeader=xc,A.CardTitle=wc,A.Collapsible=Fc,A.CollapsibleContent=zc,A.CollapsibleTrigger=$c,A.DropdownMenu=Xf,A.DropdownMenuCheckboxItem=tp,A.DropdownMenuContent=Jf,A.DropdownMenuGroup=Qf,A.DropdownMenuItem=ep,A.DropdownMenuLabel=op,A.DropdownMenuPortal=qf,A.DropdownMenuRadioGroup=np,A.DropdownMenuRadioItem=rp,A.DropdownMenuSeparator=ap,A.DropdownMenuShortcut=sp,A.DropdownMenuSub=ip,A.DropdownMenuSubContent=lp,A.DropdownMenuSubTrigger=cp,A.DropdownMenuTrigger=Zf,A.Form=_p,A.FormControl=Mp,A.FormDescription=Tp,A.FormField=Rp,A.FormItem=Op,A.FormLabel=Ap,A.FormMessage=Pp,A.Input=As,A.Label=_s,A.Separator=ks,A.Sidebar=Zm,A.SidebarContent=ag,A.SidebarFooter=rg,A.SidebarGroup=sg,A.SidebarGroupAction=cg,A.SidebarGroupContent=lg,A.SidebarGroupLabel=ig,A.SidebarHeader=ng,A.SidebarInput=tg,A.SidebarInset=eg,A.SidebarMenu=ug,A.SidebarMenuAction=mg,A.SidebarMenuBadge=gg,A.SidebarMenuButton=pg,A.SidebarMenuItem=dg,A.SidebarMenuSkeleton=hg,A.SidebarMenuSub=vg,A.SidebarMenuSubButton=yg,A.SidebarMenuSubItem=bg,A.SidebarProvider=qm,A.SidebarRail=Qm,A.SidebarSeparator=og,A.SidebarTrigger=Jm,A.badgeVariants=Jr,A.buttonVariants=Qr,A.cn=N,A.useFormField=vt,A.useSidebar=xt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
54
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lm="DialogDescriptionWarning",um=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ys(lm).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},dm=Is,fm=Fs,pm=$s,mm=zs,gm=Bs,hm=Ws,vm=Hs;function bm({...e}){return m.jsx(dm,{"data-slot":"sheet",...e})}function ym({...e}){return m.jsx(fm,{"data-slot":"sheet-portal",...e})}function xm({className:e,...t}){return m.jsx(pm,{"data-slot":"sheet-overlay",className:T("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function wm({className:e,children:t,side:n="right",...r}){return m.jsxs(ym,{children:[m.jsx(xm,{}),m.jsxs(mm,{"data-slot":"sheet-content",className:T("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(vm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx(Mc,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Sm({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:T("flex flex-col gap-1.5 p-4",e),...t})}function Cm({className:e,...t}){return m.jsx(gm,{"data-slot":"sheet-title",className:T("text-foreground font-semibold",e),...t})}function Em({className:e,...t}){return m.jsx(hm,{"data-slot":"sheet-description",className:T("text-muted-foreground text-sm",e),...t})}function Xs({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:T("bg-accent animate-pulse rounded-md",e),...t})}var _m=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"}),Rm="VisuallyHidden",qs=d.forwardRef((e,t)=>m.jsx(Y.span,{...e,ref:t,style:{..._m,...e.style}}));qs.displayName=Rm;var Om=qs,[rn,zg]=Ee("Tooltip",[$t]),on=$t(),Zs="TooltipProvider",Am=700,dr="tooltip.open",[Mm,fr]=rn(Zs),Js=e=>{const{__scopeTooltip:t,delayDuration:n=Am,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(Mm,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};Js.displayName=Zs;var bt="Tooltip",[Tm,yt]=rn(bt),Qs=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=fr(bt,e.__scopeTooltip),c=on(t),[p,u]=d.useState(null),f=ve(),g=d.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=d.useRef(!1),[y,x]=Ue({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(dr))):l.onClose(),a?.(A)},caller:bt}),C=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),w=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),M=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,x(!0),g.current=0},h)},[h,x]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($n,{...c,children:m.jsx(Tm,{scope:t,contentId:f,open:y,stateAttribute:C,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?M():w()},[l.isOpenDelayedRef,M,w]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(g.current),g.current=0)},[E,v]),onOpen:w,onClose:E,disableHoverableContent:v,children:n})})};Qs.displayName=bt;var pr="TooltipTrigger",ei=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yt(pr,n),a=fr(pr,n),s=on(n),i=d.useRef(null),l=Q(t,i,o.onTriggerChange),c=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(ea,{asChild:!0,...s,children:m.jsx(Y.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,f=>{f.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});ei.displayName=pr;var mr="TooltipPortal",[Pm,km]=rn(mr,{forceMount:void 0}),ti=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=yt(mr,t);return m.jsx(Pm,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};ti.displayName=mr;var et="TooltipContent",ni=d.forwardRef((e,t)=>{const n=km(et,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=yt(et,e.__scopeTooltip);return m.jsx(pe,{present:r||s.open,children:s.disableHoverableContent?m.jsx(ri,{side:o,...a,ref:t}):m.jsx(Nm,{side:o,...a,ref:t})})}),Nm=d.forwardRef((e,t)=>{const n=yt(et,e.__scopeTooltip),r=fr(et,e.__scopeTooltip),o=d.useRef(null),a=Q(t,o),[s,i]=d.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,f=d.useCallback(()=>{i(null),u(!1)},[u]),g=d.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Lm(y,b.getBoundingClientRect()),C=Fm(y,x),w=$m(h.getBoundingClientRect()),E=Vm([...C,...w]);i(E),u(!0)},[u]);return d.useEffect(()=>()=>f(),[f]),d.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,f]),d.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},x=l?.contains(b)||p?.contains(b),C=!zm(y,s);x?f():C&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,f]),m.jsx(ri,{...e,ref:a})}),[Dm,Im]=rn(bt,{isInside:!1}),jm=xi("TooltipContent"),ri=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(et,n),c=on(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(dr,p),()=>document.removeEventListener(dr,p)),[p]),d.useEffect(()=>{if(l.trigger){const u=f=>{f.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(ta,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(jm,{children:r}),m.jsx(Dm,{scope:n,isInside:!0,children:m.jsx(Om,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ni.displayName=et;var oi="TooltipArrow",ai=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(n);return Im(oi,n).isInside?null:m.jsx(na,{...o,...r,ref:t})});ai.displayName=oi;function Lm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Fm(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 zm(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Vm(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),Bm(t)}function Bm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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 Gm=Js,Wm=Qs,Um=ei,Hm=ti,Km=ni,Ym=ai;function si({delayDuration:e=0,...t}){return m.jsx(Gm,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Xm({...e}){return m.jsx(si,{children:m.jsx(Wm,{"data-slot":"tooltip",...e})})}function qm({...e}){return m.jsx(Um,{"data-slot":"tooltip-trigger",...e})}function Zm({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Hm,{children:m.jsxs(Km,{"data-slot":"tooltip-content",sideOffset:t,className:T("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(Ym,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Jm="sidebar_state",Qm=3600*24*7,eg="16rem",tg="18rem",ng="3rem",rg="b",ii=d.createContext(null);function xt(){const e=d.useContext(ii);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function og({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=em(),[l,c]=d.useState(!1),[p,u]=d.useState(e),f=t??p,g=d.useCallback(y=>{const x=typeof y=="function"?y(f):y;n?n(x):u(x),document.cookie=`${Jm}=${x}; path=/; max-age=${Qm}`},[n,f]),v=d.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);d.useEffect(()=>{const y=x=>{x.key===rg&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=f?"expanded":"collapsed",b=d.useMemo(()=>({state:h,open:f,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,f,g,i,l,c,v]);return m.jsx(ii.Provider,{value:b,children:m.jsx(si,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":eg,"--sidebar-width-icon":ng,...o},className:T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function ag({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:T("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?m.jsx(bm,{open:l,onOpenChange:c,...a,children:m.jsxs(wm,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":tg},side:e,children:[m.jsxs(Sm,{className:"sr-only",children:[m.jsx(Cm,{children:"Sidebar"}),m.jsx(Em,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:T("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function sg({className:e,onClick:t,...n}){const{toggleSidebar:r}=xt();return m.jsxs(ro,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:T("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[m.jsx(Ac,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function ig({className:e,...t}){const{toggleSidebar:n}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:T("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function cg({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:T("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function lg({className:e,...t}){return m.jsx(Ms,{"data-slot":"sidebar-input","data-sidebar":"input",className:T("bg-background h-8 w-full shadow-none",e),...t})}function ug({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:T("flex flex-col gap-2 p-2",e),...t})}function dg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:T("flex flex-col gap-2 p-2",e),...t})}function fg({className:e,...t}){return m.jsx(Ns,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:T("bg-sidebar-border mx-2 w-auto",e),...t})}function pg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:T("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function mg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:T("relative flex w-full min-w-0 flex-col p-2",e),...t})}function gg({className:e,asChild:t=!1,...n}){const r=t?_e:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:T("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function hg({className:e,asChild:t=!1,...n}){const r=t?_e:"button";return m.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function vg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:T("w-full text-sm",e),...t})}function bg({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:T("flex w-full min-w-0 flex-col gap-1",e),...t})}function yg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:T("group/menu-item relative",e),...t})}const xg=vn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function wg({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?_e:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:T(xg({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Xm,{children:[m.jsx(qm,{asChild:!0,children:p}),m.jsx(Zm,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function Sg({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?_e:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function Cg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:T("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Eg({className:e,showIcon:t=!1,...n}){const r=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:T("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&m.jsx(Xs,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(Xs,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function _g({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:T("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Rg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:T("group/menu-sub-item relative",e),...t})}function Og({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?_e:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}O.Avatar=hc,O.AvatarFallback=bc,O.AvatarImage=vc,O.Badge=yc,O.Breadcrumb=Tc,O.BreadcrumbEllipsis=jc,O.BreadcrumbItem=kc,O.BreadcrumbLink=Nc,O.BreadcrumbList=Pc,O.BreadcrumbPage=Dc,O.BreadcrumbSeparator=Ic,O.Button=ro,O.Card=Lc,O.CardAction=Vc,O.CardContent=Bc,O.CardDescription=zc,O.CardFooter=Gc,O.CardHeader=Fc,O.CardTitle=$c,O.Collapsible=nl,O.CollapsibleContent=ol,O.CollapsibleTrigger=rl,O.DropdownMenu=rp,O.DropdownMenuCheckboxItem=lp,O.DropdownMenuContent=sp,O.DropdownMenuGroup=ip,O.DropdownMenuItem=cp,O.DropdownMenuLabel=fp,O.DropdownMenuPortal=op,O.DropdownMenuRadioGroup=up,O.DropdownMenuRadioItem=dp,O.DropdownMenuSeparator=pp,O.DropdownMenuShortcut=mp,O.DropdownMenuSub=gp,O.DropdownMenuSubContent=vp,O.DropdownMenuSubTrigger=hp,O.DropdownMenuTrigger=ap,O.Form=Np,O.FormControl=Lp,O.FormDescription=Fp,O.FormField=Dp,O.FormItem=Ip,O.FormLabel=jp,O.FormMessage=$p,O.Input=Ms,O.Label=Rs,O.Separator=Ns,O.Sidebar=ag,O.SidebarContent=pg,O.SidebarFooter=dg,O.SidebarGroup=mg,O.SidebarGroupAction=hg,O.SidebarGroupContent=vg,O.SidebarGroupLabel=gg,O.SidebarHeader=ug,O.SidebarInput=lg,O.SidebarInset=cg,O.SidebarMenu=bg,O.SidebarMenuAction=Sg,O.SidebarMenuBadge=Cg,O.SidebarMenuButton=wg,O.SidebarMenuItem=yg,O.SidebarMenuSkeleton=Eg,O.SidebarMenuSub=_g,O.SidebarMenuSubButton=Og,O.SidebarMenuSubItem=Rg,O.SidebarProvider=og,O.SidebarRail=ig,O.SidebarSeparator=fg,O.SidebarTrigger=sg,O.badgeVariants=Jr,O.buttonVariants=no,O.cn=T,O.useFormField=vt,O.useSidebar=xt,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));