@qodo/design-system 0.17.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),Sr=require("react-dom");function Ai(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=Ai(S),yn=Ai(Sr),um={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},fm={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},pm={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},mm={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var zr={exports:{}},sr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),Sr=require("react-dom");function Ii(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=Ii(S),yn=Ii(Sr),Sm={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},Em={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},Rm={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},Pm={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var zr={exports:{}},sr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ms;function gm(){if(ms)return sr;ms=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,d,u){var f,p={},g=null,m=null;u!==void 0&&(g=""+u),d.key!==void 0&&(g=""+d.key),d.ref!==void 0&&(m=d.ref);for(f in d)n.call(d,f)&&!a.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:g,ref:m,props:p,_owner:o.current}}return sr.Fragment=r,sr.jsx=i,sr.jsxs=i,sr}var ir={};/**
9
+ */var vs;function jm(){if(vs)return sr;vs=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,d,u){var f,p={},g=null,m=null;u!==void 0&&(g=""+u),d.key!==void 0&&(g=""+d.key),d.ref!==void 0&&(m=d.ref);for(f in d)n.call(d,f)&&!a.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:g,ref:m,props:p,_owner:o.current}}return sr.Fragment=r,sr.jsx=i,sr.jsxs=i,sr}var ir={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,150 +14,150 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var gs;function vm(){return gs||(gs=1,process.env.NODE_ENV!=="production"&&(function(){var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function h(w){if(w===null||typeof w!="object")return null;var L=b&&w[b]||w[v];return typeof L=="function"?L:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(w){{for(var L=arguments.length,q=new Array(L>1?L-1:0),ne=1;ne<L;ne++)q[ne-1]=arguments[ne];C("error",w,q)}}function C(w,L,q){{var ne=y.ReactDebugCurrentFrame,ue=ne.getStackAddendum();ue!==""&&(L+="%s",q=q.concat([ue]));var fe=q.map(function(de){return String(de)});fe.unshift("Warning: "+L),Function.prototype.apply.call(console[w],console,fe)}}var E=!1,j=!1,T=!1,A=!1,P=!1,F;F=Symbol.for("react.module.reference");function U(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===a||P||w===o||w===u||w===f||A||w===m||E||j||T||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===F||w.getModuleId!==void 0))}function re(w,L,q){var ne=w.displayName;if(ne)return ne;var ue=L.displayName||L.name||"";return ue!==""?q+"("+ue+")":q}function ee(w){return w.displayName||"Context"}function J(w){if(w==null)return null;if(typeof w.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case l:var L=w;return ee(L)+".Consumer";case i:var q=w;return ee(q._context)+".Provider";case d:return re(w,w.render,"ForwardRef");case p:var ne=w.displayName||null;return ne!==null?ne:J(w.type)||"Memo";case g:{var ue=w,fe=ue._payload,de=ue._init;try{return J(de(fe))}catch{return null}}}return null}var z=Object.assign,$=0,_,D,R,M,V,X,k;function B(){}B.__reactDisabledLog=!0;function Y(){{if($===0){_=console.log,D=console.info,R=console.warn,M=console.error,V=console.group,X=console.groupCollapsed,k=console.groupEnd;var w={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}$++}}function O(){{if($--,$===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},w,{value:_}),info:z({},w,{value:D}),warn:z({},w,{value:R}),error:z({},w,{value:M}),group:z({},w,{value:V}),groupCollapsed:z({},w,{value:X}),groupEnd:z({},w,{value:k})})}$<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=y.ReactCurrentDispatcher,I;function Q(w,L,q){{if(I===void 0)try{throw Error()}catch(ue){var ne=ue.stack.trim().match(/\n( *(at )?)/);I=ne&&ne[1]||""}return`
18
- `+I+w}}var te=!1,oe;{var ce=typeof WeakMap=="function"?WeakMap:Map;oe=new ce}function ie(w,L){if(!w||te)return"";{var q=oe.get(w);if(q!==void 0)return q}var ne;te=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=W.current,W.current=null,Y();try{if(L){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(Re){ne=Re}Reflect.construct(w,[],de)}else{try{de.call()}catch(Re){ne=Re}w.call(de.prototype)}}else{try{throw Error()}catch(Re){ne=Re}w()}}catch(Re){if(Re&&ne&&typeof Re.stack=="string"){for(var le=Re.stack.split(`
17
+ */var hs;function Nm(){return hs||(hs=1,process.env.NODE_ENV!=="production"&&(function(){var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function h(w){if(w===null||typeof w!="object")return null;var $=b&&w[b]||w[v];return typeof $=="function"?$:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(w){{for(var $=arguments.length,q=new Array($>1?$-1:0),ne=1;ne<$;ne++)q[ne-1]=arguments[ne];C("error",w,q)}}function C(w,$,q){{var ne=y.ReactDebugCurrentFrame,ue=ne.getStackAddendum();ue!==""&&($+="%s",q=q.concat([ue]));var fe=q.map(function(de){return String(de)});fe.unshift("Warning: "+$),Function.prototype.apply.call(console[w],console,fe)}}var E=!1,N=!1,T=!1,A=!1,P=!1,V;V=Symbol.for("react.module.reference");function U(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===a||P||w===o||w===u||w===f||A||w===m||E||N||T||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===V||w.getModuleId!==void 0))}function re(w,$,q){var ne=w.displayName;if(ne)return ne;var ue=$.displayName||$.name||"";return ue!==""?q+"("+ue+")":q}function te(w){return w.displayName||"Context"}function Q(w){if(w==null)return null;if(typeof w.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case l:var $=w;return te($)+".Consumer";case i:var q=w;return te(q._context)+".Provider";case d:return re(w,w.render,"ForwardRef");case p:var ne=w.displayName||null;return ne!==null?ne:Q(w.type)||"Memo";case g:{var ue=w,fe=ue._payload,de=ue._init;try{return Q(de(fe))}catch{return null}}}return null}var W=Object.assign,D=0,I,O,R,M,B,J,k;function G(){}G.__reactDisabledLog=!0;function Z(){{if(D===0){I=console.log,O=console.info,R=console.warn,M=console.error,B=console.group,J=console.groupCollapsed,k=console.groupEnd;var w={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}D++}}function z(){{if(D--,D===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},w,{value:I}),info:W({},w,{value:O}),warn:W({},w,{value:R}),error:W({},w,{value:M}),group:W({},w,{value:B}),groupCollapsed:W({},w,{value:J}),groupEnd:W({},w,{value:k})})}D<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=y.ReactCurrentDispatcher,_;function K(w,$,q){{if(_===void 0)try{throw Error()}catch(ue){var ne=ue.stack.trim().match(/\n( *(at )?)/);_=ne&&ne[1]||""}return`
18
+ `+_+w}}var ee=!1,oe;{var ce=typeof WeakMap=="function"?WeakMap:Map;oe=new ce}function ie(w,$){if(!w||ee)return"";{var q=oe.get(w);if(q!==void 0)return q}var ne;ee=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=L.current,L.current=null,Z();try{if($){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(Pe){ne=Pe}Reflect.construct(w,[],de)}else{try{de.call()}catch(Pe){ne=Pe}w.call(de.prototype)}}else{try{throw Error()}catch(Pe){ne=Pe}w()}}catch(Pe){if(Pe&&ne&&typeof Pe.stack=="string"){for(var le=Pe.stack.split(`
19
19
  `),Ee=ne.stack.split(`
20
- `),me=le.length-1,he=Ee.length-1;me>=1&&he>=0&&le[me]!==Ee[he];)he--;for(;me>=1&&he>=0;me--,he--)if(le[me]!==Ee[he]){if(me!==1||he!==1)do if(me--,he--,he<0||le[me]!==Ee[he]){var Ae=`
21
- `+le[me].replace(" at new "," at ");return w.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",w.displayName)),typeof w=="function"&&oe.set(w,Ae),Ae}while(me>=1&&he>=0);break}}}finally{te=!1,W.current=fe,O(),Error.prepareStackTrace=ue}var It=w?w.displayName||w.name:"",bt=It?Q(It):"";return typeof w=="function"&&oe.set(w,bt),bt}function Se(w,L,q){return ie(w,!1)}function Te(w){var L=w.prototype;return!!(L&&L.isReactComponent)}function Ge(w,L,q){if(w==null)return"";if(typeof w=="function")return ie(w,Te(w));if(typeof w=="string")return Q(w);switch(w){case u:return Q("Suspense");case f:return Q("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return Se(w.render);case p:return Ge(w.type,L,q);case g:{var ne=w,ue=ne._payload,fe=ne._init;try{return Ge(fe(ue),L,q)}catch{}}}return""}var Me=Object.prototype.hasOwnProperty,ot={},Wr=y.ReactDebugCurrentFrame;function Ze(w){if(w){var L=w._owner,q=Ge(w.type,w._source,L?L.type:null);Wr.setExtraStackFrame(q)}else Wr.setExtraStackFrame(null)}function Wp(w,L,q,ne,ue){{var fe=Function.call.bind(Me);for(var de in w)if(fe(w,de)){var le=void 0;try{if(typeof w[de]!="function"){var Ee=Error((ne||"React class")+": "+q+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ee.name="Invariant Violation",Ee}le=w[de](L,de,ne,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){le=me}le&&!(le instanceof Error)&&(Ze(ue),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ne||"React class",q,de,typeof le),Ze(null)),le instanceof Error&&!(le.message in ot)&&(ot[le.message]=!0,Ze(ue),x("Failed %s type: %s",q,le.message),Ze(null))}}}var zp=Array.isArray;function Zn(w){return zp(w)}function qp(w){{var L=typeof Symbol=="function"&&Symbol.toStringTag,q=L&&w[Symbol.toStringTag]||w.constructor.name||"Object";return q}}function Up(w){try{return rs(w),!1}catch{return!0}}function rs(w){return""+w}function ns(w){if(Up(w))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qp(w)),rs(w)}var os=y.ReactCurrentOwner,Hp={key:!0,ref:!0,__self:!0,__source:!0},as,ss;function Kp(w){if(Me.call(w,"ref")){var L=Object.getOwnPropertyDescriptor(w,"ref").get;if(L&&L.isReactWarning)return!1}return w.ref!==void 0}function Yp(w){if(Me.call(w,"key")){var L=Object.getOwnPropertyDescriptor(w,"key").get;if(L&&L.isReactWarning)return!1}return w.key!==void 0}function Xp(w,L){typeof w.ref=="string"&&os.current}function Zp(w,L){{var q=function(){as||(as=!0,x("%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://reactjs.org/link/special-props)",L))};q.isReactWarning=!0,Object.defineProperty(w,"key",{get:q,configurable:!0})}}function Jp(w,L){{var q=function(){ss||(ss=!0,x("%s: `ref` 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://reactjs.org/link/special-props)",L))};q.isReactWarning=!0,Object.defineProperty(w,"ref",{get:q,configurable:!0})}}var Qp=function(w,L,q,ne,ue,fe,de){var le={$$typeof:t,type:w,key:L,ref:q,props:de,_owner:fe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function em(w,L,q,ne,ue){{var fe,de={},le=null,Ee=null;q!==void 0&&(ns(q),le=""+q),Yp(L)&&(ns(L.key),le=""+L.key),Kp(L)&&(Ee=L.ref,Xp(L,ue));for(fe in L)Me.call(L,fe)&&!Hp.hasOwnProperty(fe)&&(de[fe]=L[fe]);if(w&&w.defaultProps){var me=w.defaultProps;for(fe in me)de[fe]===void 0&&(de[fe]=me[fe])}if(le||Ee){var he=typeof w=="function"?w.displayName||w.name||"Unknown":w;le&&Zp(de,he),Ee&&Jp(de,he)}return Qp(w,le,Ee,ue,ne,os.current,de)}}var Jn=y.ReactCurrentOwner,is=y.ReactDebugCurrentFrame;function _t(w){if(w){var L=w._owner,q=Ge(w.type,w._source,L?L.type:null);is.setExtraStackFrame(q)}else is.setExtraStackFrame(null)}var Qn;Qn=!1;function eo(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ls(){{if(Jn.current){var w=J(Jn.current.type);if(w)return`
20
+ `),ge=le.length-1,he=Ee.length-1;ge>=1&&he>=0&&le[ge]!==Ee[he];)he--;for(;ge>=1&&he>=0;ge--,he--)if(le[ge]!==Ee[he]){if(ge!==1||he!==1)do if(ge--,he--,he<0||le[ge]!==Ee[he]){var Ae=`
21
+ `+le[ge].replace(" at new "," at ");return w.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",w.displayName)),typeof w=="function"&&oe.set(w,Ae),Ae}while(ge>=1&&he>=0);break}}}finally{ee=!1,L.current=fe,z(),Error.prepareStackTrace=ue}var Ot=w?w.displayName||w.name:"",yt=Ot?K(Ot):"";return typeof w=="function"&&oe.set(w,yt),yt}function Se(w,$,q){return ie(w,!1)}function Te(w){var $=w.prototype;return!!($&&$.isReactComponent)}function Ge(w,$,q){if(w==null)return"";if(typeof w=="function")return ie(w,Te(w));if(typeof w=="string")return K(w);switch(w){case u:return K("Suspense");case f:return K("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return Se(w.render);case p:return Ge(w.type,$,q);case g:{var ne=w,ue=ne._payload,fe=ne._init;try{return Ge(fe(ue),$,q)}catch{}}}return""}var Me=Object.prototype.hasOwnProperty,ot={},Wr=y.ReactDebugCurrentFrame;function Ze(w){if(w){var $=w._owner,q=Ge(w.type,w._source,$?$.type:null);Wr.setExtraStackFrame(q)}else Wr.setExtraStackFrame(null)}function tm(w,$,q,ne,ue){{var fe=Function.call.bind(Me);for(var de in w)if(fe(w,de)){var le=void 0;try{if(typeof w[de]!="function"){var Ee=Error((ne||"React class")+": "+q+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ee.name="Invariant Violation",Ee}le=w[de]($,de,ne,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){le=ge}le&&!(le instanceof Error)&&(Ze(ue),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ne||"React class",q,de,typeof le),Ze(null)),le instanceof Error&&!(le.message in ot)&&(ot[le.message]=!0,Ze(ue),x("Failed %s type: %s",q,le.message),Ze(null))}}}var rm=Array.isArray;function eo(w){return rm(w)}function nm(w){{var $=typeof Symbol=="function"&&Symbol.toStringTag,q=$&&w[Symbol.toStringTag]||w.constructor.name||"Object";return q}}function om(w){try{return os(w),!1}catch{return!0}}function os(w){return""+w}function as(w){if(om(w))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nm(w)),os(w)}var ss=y.ReactCurrentOwner,am={key:!0,ref:!0,__self:!0,__source:!0},is,ls;function sm(w){if(Me.call(w,"ref")){var $=Object.getOwnPropertyDescriptor(w,"ref").get;if($&&$.isReactWarning)return!1}return w.ref!==void 0}function im(w){if(Me.call(w,"key")){var $=Object.getOwnPropertyDescriptor(w,"key").get;if($&&$.isReactWarning)return!1}return w.key!==void 0}function lm(w,$){typeof w.ref=="string"&&ss.current}function cm(w,$){{var q=function(){is||(is=!0,x("%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://reactjs.org/link/special-props)",$))};q.isReactWarning=!0,Object.defineProperty(w,"key",{get:q,configurable:!0})}}function dm(w,$){{var q=function(){ls||(ls=!0,x("%s: `ref` 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://reactjs.org/link/special-props)",$))};q.isReactWarning=!0,Object.defineProperty(w,"ref",{get:q,configurable:!0})}}var um=function(w,$,q,ne,ue,fe,de){var le={$$typeof:t,type:w,key:$,ref:q,props:de,_owner:fe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function fm(w,$,q,ne,ue){{var fe,de={},le=null,Ee=null;q!==void 0&&(as(q),le=""+q),im($)&&(as($.key),le=""+$.key),sm($)&&(Ee=$.ref,lm($,ue));for(fe in $)Me.call($,fe)&&!am.hasOwnProperty(fe)&&(de[fe]=$[fe]);if(w&&w.defaultProps){var ge=w.defaultProps;for(fe in ge)de[fe]===void 0&&(de[fe]=ge[fe])}if(le||Ee){var he=typeof w=="function"?w.displayName||w.name||"Unknown":w;le&&cm(de,he),Ee&&dm(de,he)}return um(w,le,Ee,ue,ne,ss.current,de)}}var to=y.ReactCurrentOwner,cs=y.ReactDebugCurrentFrame;function Mt(w){if(w){var $=w._owner,q=Ge(w.type,w._source,$?$.type:null);cs.setExtraStackFrame(q)}else cs.setExtraStackFrame(null)}var ro;ro=!1;function no(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ds(){{if(to.current){var w=Q(to.current.type);if(w)return`
22
22
 
23
- Check the render method of \``+w+"`."}return""}}function tm(w){return""}var cs={};function rm(w){{var L=ls();if(!L){var q=typeof w=="string"?w:w.displayName||w.name;q&&(L=`
23
+ Check the render method of \``+w+"`."}return""}}function pm(w){return""}var us={};function mm(w){{var $=ds();if(!$){var q=typeof w=="string"?w:w.displayName||w.name;q&&($=`
24
24
 
25
- Check the top-level render call using <`+q+">.")}return L}}function ds(w,L){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var q=rm(L);if(cs[q])return;cs[q]=!0;var ne="";w&&w._owner&&w._owner!==Jn.current&&(ne=" It was passed a child from "+J(w._owner.type)+"."),_t(w),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,ne),_t(null)}}function us(w,L){{if(typeof w!="object")return;if(Zn(w))for(var q=0;q<w.length;q++){var ne=w[q];eo(ne)&&ds(ne,L)}else if(eo(w))w._store&&(w._store.validated=!0);else if(w){var ue=h(w);if(typeof ue=="function"&&ue!==w.entries)for(var fe=ue.call(w),de;!(de=fe.next()).done;)eo(de.value)&&ds(de.value,L)}}}function nm(w){{var L=w.type;if(L==null||typeof L=="string")return;var q;if(typeof L=="function")q=L.propTypes;else if(typeof L=="object"&&(L.$$typeof===d||L.$$typeof===p))q=L.propTypes;else return;if(q){var ne=J(L);Wp(q,w.props,"prop",ne,w)}else if(L.PropTypes!==void 0&&!Qn){Qn=!0;var ue=J(L);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof L.getDefaultProps=="function"&&!L.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function om(w){{for(var L=Object.keys(w.props),q=0;q<L.length;q++){var ne=L[q];if(ne!=="children"&&ne!=="key"){_t(w),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),_t(null);break}}w.ref!==null&&(_t(w),x("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}var fs={};function ps(w,L,q,ne,ue,fe){{var de=U(w);if(!de){var le="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ee=tm();Ee?le+=Ee:le+=ls();var me;w===null?me="null":Zn(w)?me="array":w!==void 0&&w.$$typeof===t?(me="<"+(J(w.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):me=typeof w,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",me,le)}var he=em(w,L,q,ue,fe);if(he==null)return he;if(de){var Ae=L.children;if(Ae!==void 0)if(ne)if(Zn(Ae)){for(var It=0;It<Ae.length;It++)us(Ae[It],w);Object.freeze&&Object.freeze(Ae)}else x("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 us(Ae,w)}if(Me.call(L,"key")){var bt=J(w),Re=Object.keys(L).filter(function(dm){return dm!=="key"}),to=Re.length>0?"{key: someKey, "+Re.join(": ..., ")+": ...}":"{key: someKey}";if(!fs[bt+to]){var cm=Re.length>0?"{"+Re.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+q+">.")}return $}}function fs(w,$){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var q=mm($);if(us[q])return;us[q]=!0;var ne="";w&&w._owner&&w._owner!==to.current&&(ne=" It was passed a child from "+Q(w._owner.type)+"."),Mt(w),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,ne),Mt(null)}}function ps(w,$){{if(typeof w!="object")return;if(eo(w))for(var q=0;q<w.length;q++){var ne=w[q];no(ne)&&fs(ne,$)}else if(no(w))w._store&&(w._store.validated=!0);else if(w){var ue=h(w);if(typeof ue=="function"&&ue!==w.entries)for(var fe=ue.call(w),de;!(de=fe.next()).done;)no(de.value)&&fs(de.value,$)}}}function gm(w){{var $=w.type;if($==null||typeof $=="string")return;var q;if(typeof $=="function")q=$.propTypes;else if(typeof $=="object"&&($.$$typeof===d||$.$$typeof===p))q=$.propTypes;else return;if(q){var ne=Q($);tm(q,w.props,"prop",ne,w)}else if($.PropTypes!==void 0&&!ro){ro=!0;var ue=Q($);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vm(w){{for(var $=Object.keys(w.props),q=0;q<$.length;q++){var ne=$[q];if(ne!=="children"&&ne!=="key"){Mt(w),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),Mt(null);break}}w.ref!==null&&(Mt(w),x("Invalid attribute `ref` supplied to `React.Fragment`."),Mt(null))}}var ms={};function gs(w,$,q,ne,ue,fe){{var de=U(w);if(!de){var le="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ee=pm();Ee?le+=Ee:le+=ds();var ge;w===null?ge="null":eo(w)?ge="array":w!==void 0&&w.$$typeof===t?(ge="<"+(Q(w.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof w,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,le)}var he=fm(w,$,q,ue,fe);if(he==null)return he;if(de){var Ae=$.children;if(Ae!==void 0)if(ne)if(eo(Ae)){for(var Ot=0;Ot<Ae.length;Ot++)ps(Ae[Ot],w);Object.freeze&&Object.freeze(Ae)}else x("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 ps(Ae,w)}if(Me.call($,"key")){var yt=Q(w),Pe=Object.keys($).filter(function(Cm){return Cm!=="key"}),oo=Pe.length>0?"{key: someKey, "+Pe.join(": ..., ")+": ...}":"{key: someKey}";if(!ms[yt+oo]){var wm=Pe.length>0?"{"+Pe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,to,bt,cm,bt),fs[bt+to]=!0}}return w===n?om(he):nm(he),he}}function am(w,L,q){return ps(w,L,q,!0)}function sm(w,L,q){return ps(w,L,q,!1)}var im=sm,lm=am;ir.Fragment=n,ir.jsx=im,ir.jsxs=lm})()),ir}var vs;function hm(){return vs||(vs=1,process.env.NODE_ENV==="production"?zr.exports=gm():zr.exports=vm()),zr.exports}var s=hm();function _i(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=_i(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ii(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=_i(e))&&(n&&(n+=" "),n+=t);return n}const hs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xs=Ii,wn=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return xs(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const g=hs(f)||hs(p);return o[u][g]}),l=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...m}=f;return Object.entries(m).every(b=>{let[v,h]=b;return Array.isArray(h)?h.includes({...a,...l}[v]):{...a,...l}[v]===h})?[...u,p,g]:u},[]);return xs(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},Zo="-",xm=e=>{const t=ym(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(Zo);return l[0]===""&&l.length!==1&&l.shift(),Mi(l,t)||bm(i)},getConflictingClassGroupIds:(i,l)=>{const d=r[i]||[];return l&&n[i]?[...d,...n[i]]:d}}},Mi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Mi(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Zo);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},bs=/^\[(.+)\]$/,bm=e=>{if(bs.test(e)){const t=bs.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ym=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Eo(r[o],n,o,t);return n},Eo=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ys(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(wm(o)){Eo(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Eo(i,ys(t,a),r,n)})})},ys=(e,t)=>{let r=e;return t.split(Zo).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},wm=e=>e.isThemeGetter,Cm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},Ro="!",Po=":",Sm=Po.length,Em=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,l=0,d=0,u;for(let b=0;b<o.length;b++){let v=o[b];if(i===0&&l===0){if(v===Po){a.push(o.slice(d,b)),d=b+Sm;continue}if(v==="/"){u=b;continue}}v==="["?i++:v==="]"?i--:v==="("?l++:v===")"&&l--}const f=a.length===0?o:o.substring(d),p=Rm(f),g=p!==f,m=u&&u>d?u-d:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const o=t+Po,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Rm=e=>e.endsWith(Ro)?e.substring(0,e.length-1):e.startsWith(Ro)?e.substring(1):e,Pm=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},jm=e=>({cache:Cm(e.cacheSize),parseClassName:Em(e),sortModifiers:Pm(e),...xm(e)}),Nm=/\s+/,km=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(Nm);let d="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=r(f);if(p){d=f+(d.length>0?" "+d:d);continue}let h=!!v,y=n(h?b.substring(0,v):b);if(!y){if(!h){d=f+(d.length>0?" "+d:d);continue}if(y=n(b),!y){d=f+(d.length>0?" "+d:d);continue}h=!1}const x=a(g).join(":"),C=m?x+Ro:x,E=C+y;if(i.includes(E))continue;i.push(E);const j=o(y,h);for(let T=0;T<j.length;++T){const A=j[T];i.push(C+A)}d=f+(d.length>0?" "+d:d)}return d};function Tm(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Oi(t))&&(n&&(n+=" "),n+=r);return n}const Oi=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Oi(e[n]))&&(r&&(r+=" "),r+=t);return r};function Am(e,...t){let r,n,o,a=i;function i(d){const u=t.reduce((f,p)=>p(f),e());return r=jm(u),n=r.cache.get,o=r.cache.set,a=l,l(d)}function l(d){const u=n(d);if(u)return u;const f=km(d,r);return o(d,f),f}return function(){return a(Tm.apply(null,arguments))}}const xe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Di=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$i=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_m=/^\d+\/\d+$/,Im=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mm=/\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$/,Om=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mt=e=>_m.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),ro=e=>e.endsWith("%")&&ae(e.slice(0,-1)),Je=e=>Im.test(e),Lm=()=>!0,Fm=e=>Mm.test(e)&&!Om.test(e),Li=()=>!1,Vm=e=>Dm.test(e),Bm=e=>$m.test(e),Gm=e=>!H(e)&&!K(e),Wm=e=>Yt(e,Bi,Li),H=e=>Di.test(e),yt=e=>Yt(e,Gi,Fm),no=e=>Yt(e,Km,ae),ws=e=>Yt(e,Fi,Li),zm=e=>Yt(e,Vi,Bm),qr=e=>Yt(e,Wi,Vm),K=e=>$i.test(e),lr=e=>Xt(e,Gi),qm=e=>Xt(e,Ym),Cs=e=>Xt(e,Fi),Um=e=>Xt(e,Bi),Hm=e=>Xt(e,Vi),Ur=e=>Xt(e,Wi,!0),Yt=(e,t,r)=>{const n=Di.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Xt=(e,t,r=!1)=>{const n=$i.exec(e);return n?n[1]?t(n[1]):r:!1},Fi=e=>e==="position"||e==="percentage",Vi=e=>e==="image"||e==="url",Bi=e=>e==="length"||e==="size"||e==="bg-size",Gi=e=>e==="length",Km=e=>e==="number",Ym=e=>e==="family-name",Wi=e=>e==="shadow",Xm=()=>{const e=xe("color"),t=xe("font"),r=xe("text"),n=xe("font-weight"),o=xe("tracking"),a=xe("leading"),i=xe("breakpoint"),l=xe("container"),d=xe("spacing"),u=xe("radius"),f=xe("shadow"),p=xe("inset-shadow"),g=xe("text-shadow"),m=xe("drop-shadow"),b=xe("blur"),v=xe("perspective"),h=xe("aspect"),y=xe("ease"),x=xe("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...E(),K,H],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[K,H,d],F=()=>[Mt,"full","auto",...P()],U=()=>[at,"none","subgrid",K,H],re=()=>["auto",{span:["full",at,K,H]},at,K,H],ee=()=>[at,"auto",K,H],J=()=>["auto","min","max","fr",K,H],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...P()],D=()=>[Mt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],R=()=>[e,K,H],M=()=>[...E(),Cs,ws,{position:[K,H]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",Um,Wm,{size:[K,H]}],k=()=>[ro,lr,yt],B=()=>["","none","full",u,K,H],Y=()=>["",ae,lr,yt],O=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[ae,ro,Cs,ws],Q=()=>["","none",b,K,H],te=()=>["none",ae,K,H],oe=()=>["none",ae,K,H],ce=()=>[ae,K,H],ie=()=>[Mt,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Je],breakpoint:[Je],color:[Lm],container:[Je],"drop-shadow":[Je],ease:["in","out","in-out"],font:[Gm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Je],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Je],shadow:[Je],spacing:["px",ae],text:[Je],"text-shadow":[Je],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mt,H,K,h]}],container:["container"],columns:[{columns:[ae,H,K,l]}],"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:j()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",K,H]}],basis:[{basis:[Mt,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Mt,"auto","initial","none",H]}],grow:[{grow:["",ae,K,H]}],shrink:[{shrink:["",ae,K,H]}],order:[{order:[at,"first","last","none",K,H]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[l,"screen",...D()]}],"min-w":[{"min-w":[l,"screen","none",...D()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,lr,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,K,no]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ro,H]}],"font-family":[{font:[qm,H,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,H]}],"line-clamp":[{"line-clamp":[ae,"none",K,no]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",K,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",K,yt]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[ae,"auto",K,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,H]}],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,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,K,H],radial:["",K,H],conic:[at,K,H]},Hm,zm]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,K,H]}],"outline-w":[{outline:["",ae,lr,yt]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,Ur,qr]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,Ur,qr]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[ae,yt]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Ur,qr]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[ae,K,H]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[K,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,H]}],filter:[{filter:["","none",K,H]}],blur:[{blur:Q()}],brightness:[{brightness:[ae,K,H]}],contrast:[{contrast:[ae,K,H]}],"drop-shadow":[{"drop-shadow":["","none",m,Ur,qr]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",ae,K,H]}],"hue-rotate":[{"hue-rotate":[ae,K,H]}],invert:[{invert:["",ae,K,H]}],saturate:[{saturate:[ae,K,H]}],sepia:[{sepia:["",ae,K,H]}],"backdrop-filter":[{"backdrop-filter":["","none",K,H]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[ae,K,H]}],"backdrop-contrast":[{"backdrop-contrast":[ae,K,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,K,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,K,H]}],"backdrop-invert":[{"backdrop-invert":["",ae,K,H]}],"backdrop-opacity":[{"backdrop-opacity":[ae,K,H]}],"backdrop-saturate":[{"backdrop-saturate":[ae,K,H]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,K,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",K,H]}],ease:[{ease:["linear","initial",y,K,H]}],delay:[{delay:[ae,K,H]}],animate:[{animate:["none",x,K,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,K,H]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[K,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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,H]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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,H]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[ae,lr,yt,no]}],stroke:[{stroke:["none",...R()]}],"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"]}},Zm=Am(Xm);function N(...e){return Zm(Ii(e))}function zi(e,t,r){let n="";return typeof e=="object"&&(e.base&&(n+=e.base),Object.keys(t).length&&Object.keys(t).forEach(o=>{o==="className"&&t[o]?(n=n.trim(),n+=` ${t[o]}`):t[o]&&e.hasOwnProperty(o)&&(r&&console.log("styles",o,t[o],e[o]),n=n.trim(),n+=` ${e[o]}`)})),r&&console.log("final.class",n.trim()),n.trim()}/**
30
+ <%s key={someKey} {...props} />`,oo,yt,wm,yt),ms[yt+oo]=!0}}return w===n?vm(he):gm(he),he}}function hm(w,$,q){return gs(w,$,q,!0)}function xm(w,$,q){return gs(w,$,q,!1)}var bm=xm,ym=hm;ir.Fragment=n,ir.jsx=bm,ir.jsxs=ym})()),ir}var xs;function km(){return xs||(xs=1,process.env.NODE_ENV==="production"?zr.exports=jm():zr.exports=Nm()),zr.exports}var s=km();function Mi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Mi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Oi(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Mi(e))&&(n&&(n+=" "),n+=t);return n}const bs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ys=Oi,wn=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ys(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const g=bs(f)||bs(p);return o[u][g]}),l=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...m}=f;return Object.entries(m).every(b=>{let[v,h]=b;return Array.isArray(h)?h.includes({...a,...l}[v]):{...a,...l}[v]===h})?[...u,p,g]:u},[]);return ys(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},ea="-",Tm=e=>{const t=_m(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(ea);return l[0]===""&&l.length!==1&&l.shift(),Di(l,t)||Am(i)},getConflictingClassGroupIds:(i,l)=>{const d=r[i]||[];return l&&n[i]?[...d,...n[i]]:d}}},Di=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Di(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ea);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},ws=/^\[(.+)\]$/,Am=e=>{if(ws.test(e)){const t=ws.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_m=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)jo(r[o],n,o,t);return n},jo=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Cs(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Im(o)){jo(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{jo(i,Cs(t,a),r,n)})})},Cs=(e,t)=>{let r=e;return t.split(ea).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Im=e=>e.isThemeGetter,Mm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},No="!",ko=":",Om=ko.length,Dm=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,l=0,d=0,u;for(let b=0;b<o.length;b++){let v=o[b];if(i===0&&l===0){if(v===ko){a.push(o.slice(d,b)),d=b+Om;continue}if(v==="/"){u=b;continue}}v==="["?i++:v==="]"?i--:v==="("?l++:v===")"&&l--}const f=a.length===0?o:o.substring(d),p=$m(f),g=p!==f,m=u&&u>d?u-d:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const o=t+ko,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},$m=e=>e.endsWith(No)?e.substring(0,e.length-1):e.startsWith(No)?e.substring(1):e,Lm=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Fm=e=>({cache:Mm(e.cacheSize),parseClassName:Dm(e),sortModifiers:Lm(e),...Tm(e)}),Vm=/\s+/,Bm=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(Vm);let d="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=r(f);if(p){d=f+(d.length>0?" "+d:d);continue}let h=!!v,y=n(h?b.substring(0,v):b);if(!y){if(!h){d=f+(d.length>0?" "+d:d);continue}if(y=n(b),!y){d=f+(d.length>0?" "+d:d);continue}h=!1}const x=a(g).join(":"),C=m?x+No:x,E=C+y;if(i.includes(E))continue;i.push(E);const N=o(y,h);for(let T=0;T<N.length;++T){const A=N[T];i.push(C+A)}d=f+(d.length>0?" "+d:d)}return d};function Gm(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$i(t))&&(n&&(n+=" "),n+=r);return n}const $i=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=$i(e[n]))&&(r&&(r+=" "),r+=t);return r};function Wm(e,...t){let r,n,o,a=i;function i(d){const u=t.reduce((f,p)=>p(f),e());return r=Fm(u),n=r.cache.get,o=r.cache.set,a=l,l(d)}function l(d){const u=n(d);if(u)return u;const f=Bm(d,r);return o(d,f),f}return function(){return a(Gm.apply(null,arguments))}}const xe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Li=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zm=/^\d+\/\d+$/,qm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Um=/\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$/,Hm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Km=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ym=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=e=>zm.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),ao=e=>e.endsWith("%")&&ae(e.slice(0,-1)),Je=e=>qm.test(e),Xm=()=>!0,Zm=e=>Um.test(e)&&!Hm.test(e),Vi=()=>!1,Jm=e=>Km.test(e),Qm=e=>Ym.test(e),eg=e=>!Y(e)&&!X(e),tg=e=>Zt(e,Wi,Vi),Y=e=>Li.test(e),wt=e=>Zt(e,zi,Zm),so=e=>Zt(e,sg,ae),Ss=e=>Zt(e,Bi,Vi),rg=e=>Zt(e,Gi,Qm),qr=e=>Zt(e,qi,Jm),X=e=>Fi.test(e),lr=e=>Jt(e,zi),ng=e=>Jt(e,ig),Es=e=>Jt(e,Bi),og=e=>Jt(e,Wi),ag=e=>Jt(e,Gi),Ur=e=>Jt(e,qi,!0),Zt=(e,t,r)=>{const n=Li.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Jt=(e,t,r=!1)=>{const n=Fi.exec(e);return n?n[1]?t(n[1]):r:!1},Bi=e=>e==="position"||e==="percentage",Gi=e=>e==="image"||e==="url",Wi=e=>e==="length"||e==="size"||e==="bg-size",zi=e=>e==="length",sg=e=>e==="number",ig=e=>e==="family-name",qi=e=>e==="shadow",lg=()=>{const e=xe("color"),t=xe("font"),r=xe("text"),n=xe("font-weight"),o=xe("tracking"),a=xe("leading"),i=xe("breakpoint"),l=xe("container"),d=xe("spacing"),u=xe("radius"),f=xe("shadow"),p=xe("inset-shadow"),g=xe("text-shadow"),m=xe("drop-shadow"),b=xe("blur"),v=xe("perspective"),h=xe("aspect"),y=xe("ease"),x=xe("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...E(),X,Y],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[X,Y,d],V=()=>[Dt,"full","auto",...P()],U=()=>[at,"none","subgrid",X,Y],re=()=>["auto",{span:["full",at,X,Y]},at,X,Y],te=()=>[at,"auto",X,Y],Q=()=>["auto","min","max","fr",X,Y],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...P()],O=()=>[Dt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],R=()=>[e,X,Y],M=()=>[...E(),Es,Ss,{position:[X,Y]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",og,tg,{size:[X,Y]}],k=()=>[ao,lr,wt],G=()=>["","none","full",u,X,Y],Z=()=>["",ae,lr,wt],z=()=>["solid","dashed","dotted","double"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[ae,ao,Es,Ss],K=()=>["","none",b,X,Y],ee=()=>["none",ae,X,Y],oe=()=>["none",ae,X,Y],ce=()=>[ae,X,Y],ie=()=>[Dt,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Je],breakpoint:[Je],color:[Xm],container:[Je],"drop-shadow":[Je],ease:["in","out","in-out"],font:[eg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Je],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Je],shadow:[Je],spacing:["px",ae],text:[Je],"text-shadow":[Je],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dt,Y,X,h]}],container:["container"],columns:[{columns:[ae,Y,X,l]}],"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:N()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",X,Y]}],basis:[{basis:[Dt,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Dt,"auto","initial","none",Y]}],grow:[{grow:["",ae,X,Y]}],shrink:[{shrink:["",ae,X,Y]}],order:[{order:[at,"first","last","none",X,Y]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",r,lr,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,X,so]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ao,Y]}],"font-family":[{font:[ng,Y,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,X,Y]}],"line-clamp":[{"line-clamp":[ae,"none",X,so]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",X,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",X,wt]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[ae,"auto",X,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,Y]}],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",X,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,X,Y],radial:["",X,Y],conic:[at,X,Y]},ag,rg]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,X,Y]}],"outline-w":[{outline:["",ae,lr,wt]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,Ur,qr]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,Ur,qr]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[ae,wt]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Ur,qr]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[ae,X,Y]}],"mix-blend":[{"mix-blend":[...L(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":L()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Y]}],filter:[{filter:["","none",X,Y]}],blur:[{blur:K()}],brightness:[{brightness:[ae,X,Y]}],contrast:[{contrast:[ae,X,Y]}],"drop-shadow":[{"drop-shadow":["","none",m,Ur,qr]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",ae,X,Y]}],"hue-rotate":[{"hue-rotate":[ae,X,Y]}],invert:[{invert:["",ae,X,Y]}],saturate:[{saturate:[ae,X,Y]}],sepia:[{sepia:["",ae,X,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Y]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[ae,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[ae,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,X,Y]}],"backdrop-invert":[{"backdrop-invert":["",ae,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[ae,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[ae,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,X,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",X,Y]}],ease:[{ease:["linear","initial",y,X,Y]}],delay:[{delay:[ae,X,Y]}],animate:[{animate:["none",x,X,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,X,Y]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[X,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",X,Y]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",X,Y]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[ae,lr,wt,so]}],stroke:[{stroke:["none",...R()]}],"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"]}},cg=Wm(lg);function j(...e){return cg(Oi(e))}function Ui(e,t,r){let n="";return typeof e=="object"&&(e.base&&(n+=e.base),Object.keys(t).length&&Object.keys(t).forEach(o=>{o==="className"&&t[o]?(n=n.trim(),n+=` ${t[o]}`):t[o]&&e.hasOwnProperty(o)&&(r&&console.log("styles",o,t[o],e[o]),n=n.trim(),n+=` ${e[o]}`)})),r&&console.log("final.class",n.trim()),n.trim()}/**
31
31
  * @license lucide-react v0.525.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */const Jm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Ss=e=>{const t=Qm(e);return t.charAt(0).toUpperCase()+t.slice(1)},qi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),eg=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
35
+ */const dg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ug=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Rs=e=>{const t=ug(e);return t.charAt(0).toUpperCase()+t.slice(1)},Hi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),fg=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
36
36
  * @license lucide-react v0.525.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */var tg={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"};/**
40
+ */var pg={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"};/**
41
41
  * @license lucide-react v0.525.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const rg=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},d)=>S.createElement("svg",{ref:d,...tg,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:qi("lucide",o),...!a&&!eg(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,f])=>S.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
45
+ */const mg=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},d)=>S.createElement("svg",{ref:d,...pg,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Hi("lucide",o),...!a&&!fg(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,f])=>S.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
46
46
  * @license lucide-react v0.525.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const ve=(e,t)=>{const r=S.forwardRef(({className:n,...o},a)=>S.createElement(rg,{ref:a,iconNode:t,className:qi(`lucide-${Jm(Ss(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Ss(e),r};/**
50
+ */const ve=(e,t)=>{const r=S.forwardRef(({className:n,...o},a)=>S.createElement(mg,{ref:a,iconNode:t,className:Hi(`lucide-${dg(Rs(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Rs(e),r};/**
51
51
  * @license lucide-react v0.525.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const ng=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],og=ve("arrow-up-down",ng);/**
55
+ */const gg=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],vg=ve("arrow-up-down",gg);/**
56
56
  * @license lucide-react v0.525.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const ag=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Er=ve("check",ag);/**
60
+ */const hg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Er=ve("check",hg);/**
61
61
  * @license lucide-react v0.525.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const sg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Cn=ve("chevron-down",sg);/**
65
+ */const xg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Cn=ve("chevron-down",xg);/**
66
66
  * @license lucide-react v0.525.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const ig=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],lg=ve("chevron-left",ig);/**
70
+ */const bg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],yg=ve("chevron-left",bg);/**
71
71
  * @license lucide-react v0.525.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const cg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ui=ve("chevron-right",cg);/**
75
+ */const wg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ki=ve("chevron-right",wg);/**
76
76
  * @license lucide-react v0.525.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const dg=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ug=ve("chevron-up",dg);/**
80
+ */const Cg=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Sg=ve("chevron-up",Cg);/**
81
81
  * @license lucide-react v0.525.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const fg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],pg=ve("chevrons-up-down",fg);/**
85
+ */const Eg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Rg=ve("chevrons-up-down",Eg);/**
86
86
  * @license lucide-react v0.525.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const mg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],gg=ve("circle",mg);/**
90
+ */const Pg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],jg=ve("circle",Pg);/**
91
91
  * @license lucide-react v0.525.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const vg=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],hg=ve("corner-down-right",vg);/**
95
+ */const Ng=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],kg=ve("corner-down-right",Ng);/**
96
96
  * @license lucide-react v0.525.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const xg=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],bg=ve("dot",xg);/**
100
+ */const Tg=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Ag=ve("dot",Tg);/**
101
101
  * @license lucide-react v0.525.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const yg=[["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"}]],Hi=ve("ellipsis",yg);/**
105
+ */const _g=[["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"}]],Yi=ve("ellipsis",_g);/**
106
106
  * @license lucide-react v0.525.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const wg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Cg=ve("info",wg);/**
110
+ */const Ig=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Mg=ve("info",Ig);/**
111
111
  * @license lucide-react v0.525.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const Sg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Eg=ve("list-filter",Sg);/**
115
+ */const Og=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Dg=ve("list-filter",Og);/**
116
116
  * @license lucide-react v0.525.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const Rg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ki=ve("loader-circle",Rg);/**
120
+ */const $g=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Xi=ve("loader-circle",$g);/**
121
121
  * @license lucide-react v0.525.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const Pg=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],jg=ve("mail",Pg);/**
125
+ */const Lg=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Fg=ve("mail",Lg);/**
126
126
  * @license lucide-react v0.525.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */const Ng=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yi=ve("search",Ng);/**
130
+ */const Vg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Zi=ve("search",Vg);/**
131
131
  * @license lucide-react v0.525.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const kg=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Tg=ve("tag",kg);/**
135
+ */const Bg=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Gg=ve("tag",Bg);/**
136
136
  * @license lucide-react v0.525.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
- */const Ag=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],_g=ve("trash-2",Ag);/**
140
+ */const Wg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],zg=ve("trash-2",Wg);/**
141
141
  * @license lucide-react v0.525.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const Ig=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],Mg=ve("trash",Ig);/**
145
+ */const qg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],Ug=ve("trash",qg);/**
146
146
  * @license lucide-react v0.525.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const Og=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Dg=ve("triangle-alert",Og);/**
150
+ */const Hg=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Kg=ve("triangle-alert",Hg);/**
151
151
  * @license lucide-react v0.525.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
- */const $g=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sn=ve("x",$g),Xi=wn("qodo qodo-button inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-[var(--fill-action-emphasis-idle)] text-[var(--text-action-on-emphasis-idle)] hover:bg-[var(--fill-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-[var(--fill-action-emphasis-disabled)]",secondary:"bg-[var(--fill-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-[var(--fill-action-neutral-disabled)] disabled:text-[var(--text-action-neutral-disabled)]",outline:"border border-[var(--border-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",ghost:"text-[var(--text-action-neutral-idle)] hover:text-[var(--text-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",link:"text-[var(--text-action-emphasis-idle)] hover:text-[var(--text-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-none disabled:text-[var(--text-action-emphasis-disabled)]",danger:"border border-[var(--border-action-negative-idle)] text-[var(--icon-action-negative-idle)] hover:bg-[var(--fill-action-negative-hover)] active:bg-[var(--fill-action-negative-active)] disabled:border-[var(--border-action-negative-disabled)] disabled:text-[var(--icon-action-negative-disabled)]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Qe=c.forwardRef(({className:e,variant:t,size:r,loading:n,children:o,disabled:a,...i},l)=>s.jsxs("button",{className:N(Xi({variant:t,size:r,className:e})),ref:l,disabled:a||n,...i,children:[o,n&&s.jsx(Ki,{className:"ml-2 w-4 h-4 animate-spin"})]}));Qe.displayName="Button";const Lg=wn("qodo qodo-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input-neutral-idle flex h-9 w-full min-w-0 rounded-md border bg-fill-input-neutral-idle 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 focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm dark:border-input-neutral-idle dark:bg-fill-input-neutral-idle dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-muted-700 border-purple-muted-500 text-purple-muted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive bg-purple-muted-700 text-purple-muted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}}),Rr=c.forwardRef(({className:e,variant:t,type:r,error:n,...o},a)=>s.jsx("input",{ref:a,type:r,"data-slot":"input","aria-invalid":n||void 0,className:N(Lg({variant:t,className:e})),...o}));Rr.displayName="Input";function Es(e,[t,r]){return Math.min(r,Math.max(t,e))}function G(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Fg(e,t){const r=c.createContext(t),n=a=>{const{children:i,...l}=a,d=c.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:d,children:i})};n.displayName=e+"Provider";function o(a){const i=c.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function we(e,t=[]){let r=[];function n(a,i){const l=c.createContext(i),d=r.length;r=[...r,i];const u=p=>{var y;const{scope:g,children:m,...b}=p,v=((y=g==null?void 0:g[e])==null?void 0:y[d])||l,h=c.useMemo(()=>b,Object.values(b));return s.jsx(v.Provider,{value:h,children:m})};u.displayName=a+"Provider";function f(p,g){var v;const m=((v=g==null?void 0:g[e])==null?void 0:v[d])||l,b=c.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(i=>c.createContext(i));return function(l){const d=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[n,Vg(o,...t)]}function Vg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((l,{useScope:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...l,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Rs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function et(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Rs(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Rs(e[o],null)}}}}function se(...e){return c.useCallback(et(...e),e)}function it(e){const t=Gg(e),r=c.forwardRef((n,o)=>{const{children:a,...i}=n,l=c.Children.toArray(a),d=l.find(zg);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return s.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return s.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Bg=it("Slot");function Gg(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const i=Ug(o),l=qg(a,o.props);return o.type!==c.Fragment&&(l.ref=n?et(n,i):i),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zi=Symbol("radix.slottable");function Wg(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Zi,t}function zg(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zi}function qg(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ug(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function En(e){const t=e+"CollectionProvider",[r,n]=we(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:h,children:y}=v,x=S.useRef(null),C=S.useRef(new Map).current;return s.jsx(o,{scope:h,itemMap:C,collectionRef:x,children:y})};i.displayName=t;const l=e+"CollectionSlot",d=it(l),u=S.forwardRef((v,h)=>{const{scope:y,children:x}=v,C=a(l,y),E=se(h,C.collectionRef);return s.jsx(d,{ref:E,children:x})});u.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=it(f),m=S.forwardRef((v,h)=>{const{scope:y,children:x,...C}=v,E=S.useRef(null),j=se(h,E),T=a(f,y);return S.useEffect(()=>(T.itemMap.set(E,{ref:E,...C}),()=>void T.itemMap.delete(E))),s.jsx(g,{[p]:"",ref:j,children:x})});m.displayName=f;function b(v){const h=a(e+"CollectionConsumer",v);return S.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((T,A)=>C.indexOf(T.ref.current)-C.indexOf(A.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},b,n]}var Hg=c.createContext(void 0);function Zt(e){const t=c.useContext(Hg);return e||t||"ltr"}var Kg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Kg.reduce((e,t)=>{const r=it(`Primitive.${t}`),n=c.forwardRef((o,a)=>{const{asChild:i,...l}=o,d=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ji(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}function De(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Yg(e,t=globalThis==null?void 0:globalThis.document){const r=De(e);c.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Xg="DismissableLayer",jo="dismissableLayer.update",Zg="dismissableLayer.pointerDownOutside",Jg="dismissableLayer.focusOutside",Ps,Qi=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...d}=e,u=c.useContext(Qi),[f,p]=c.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=c.useState({}),b=se(t,A=>p(A)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),x=f?v.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,j=tv(A=>{const P=A.target,F=[...u.branches].some(U=>U.contains(P));!E||F||(o==null||o(A),i==null||i(A),A.defaultPrevented||l==null||l())},g),T=rv(A=>{const P=A.target;[...u.branches].some(U=>U.contains(P))||(a==null||a(A),i==null||i(A),A.defaultPrevented||l==null||l())},g);return Yg(A=>{x===u.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},g),c.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ps=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),js(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ps)}},[f,g,r,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),js())},[f,u]),c.useEffect(()=>{const A=()=>m({});return document.addEventListener(jo,A),()=>document.removeEventListener(jo,A)},[]),s.jsx(Z.div,{...d,ref:b,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:G(e.onFocusCapture,T.onFocusCapture),onBlurCapture:G(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,j.onPointerDownCapture)})});Jt.displayName=Xg;var Qg="DismissableLayerBranch",ev=c.forwardRef((e,t)=>{const r=c.useContext(Qi),n=c.useRef(null),o=se(t,n);return c.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),s.jsx(Z.div,{...e,ref:o})});ev.displayName=Qg;function tv(e,t=globalThis==null?void 0:globalThis.document){const r=De(e),n=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let d=function(){el(Zg,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function rv(e,t=globalThis==null?void 0:globalThis.document){const r=De(e),n=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!n.current&&el(Jg,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function js(){const e=new CustomEvent(jo);document.dispatchEvent(e)}function el(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ji(o,a):o.dispatchEvent(a)}var oo=0;function Rn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ns()),document.body.insertAdjacentElement("beforeend",e[1]??Ns()),oo++,()=>{oo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oo--}},[])}function Ns(){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 ao="focusScope.autoFocusOnMount",so="focusScope.autoFocusOnUnmount",ks={bubbles:!1,cancelable:!0},nv="FocusScope",Pr=c.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,d]=c.useState(null),u=De(o),f=De(a),p=c.useRef(null),g=se(t,v=>d(v)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(n){let v=function(C){if(m.paused||!l)return;const E=C.target;l.contains(E)?p.current=E:st(p.current,{select:!0})},h=function(C){if(m.paused||!l)return;const E=C.relatedTarget;E!==null&&(l.contains(E)||st(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const j of C)j.removedNodes.length>0&&st(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,l,m.paused]),c.useEffect(()=>{if(l){As.add(m);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(ao,ks);l.addEventListener(ao,u),l.dispatchEvent(y),y.defaultPrevented||(ov(cv(tl(l)),{select:!0}),document.activeElement===v&&st(l))}return()=>{l.removeEventListener(ao,u),setTimeout(()=>{const y=new CustomEvent(so,ks);l.addEventListener(so,f),l.dispatchEvent(y),y.defaultPrevented||st(v??document.body,{select:!0}),l.removeEventListener(so,f),As.remove(m)},0)}}},[l,u,f,m]);const b=c.useCallback(v=>{if(!r&&!n||m.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const x=v.currentTarget,[C,E]=av(x);C&&E?!v.shiftKey&&y===E?(v.preventDefault(),r&&st(C,{select:!0})):v.shiftKey&&y===C&&(v.preventDefault(),r&&st(E,{select:!0})):y===x&&v.preventDefault()}},[r,n,m.paused]);return s.jsx(Z.div,{tabIndex:-1,...i,ref:g,onKeyDown:b})});Pr.displayName=nv;function ov(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(st(n,{select:t}),document.activeElement!==r)return}function av(e){const t=tl(e),r=Ts(t,e),n=Ts(t.reverse(),e);return[r,n]}function tl(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ts(e,t){for(const r of e)if(!sv(r,{upTo:t}))return r}function sv(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 iv(e){return e instanceof HTMLInputElement&&"select"in e}function st(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&iv(e)&&t&&e.select()}}var As=lv();function lv(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=_s(e,t),e.unshift(t)},remove(t){var r;e=_s(e,t),(r=e[0])==null||r.resume()}}}function _s(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function cv(e){return e.filter(t=>t.tagName!=="A")}var be=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},dv=c[" useId ".trim().toString()]||(()=>{}),uv=0;function ge(e){const[t,r]=c.useState(dv());return be(()=>{r(n=>n??String(uv++))},[e]),t?`radix-${t}`:""}const fv=["top","right","bottom","left"],lt=Math.min,Ne=Math.max,on=Math.round,Hr=Math.floor,He=e=>({x:e,y:e}),pv={left:"right",right:"left",bottom:"top",top:"bottom"},mv={start:"end",end:"start"};function No(e,t,r){return Ne(e,lt(t,r))}function tt(e,t){return typeof e=="function"?e(t):e}function rt(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Jo(e){return e==="x"?"y":"x"}function Qo(e){return e==="y"?"height":"width"}const gv=new Set(["top","bottom"]);function Ue(e){return gv.has(rt(e))?"y":"x"}function ea(e){return Jo(Ue(e))}function vv(e,t,r){r===void 0&&(r=!1);const n=Qt(e),o=ea(e),a=Qo(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=an(i)),[i,an(i)]}function hv(e){const t=an(e);return[ko(e),t,ko(t)]}function ko(e){return e.replace(/start|end/g,t=>mv[t])}const Is=["left","right"],Ms=["right","left"],xv=["top","bottom"],bv=["bottom","top"];function yv(e,t,r){switch(e){case"top":case"bottom":return r?t?Ms:Is:t?Is:Ms;case"left":case"right":return t?xv:bv;default:return[]}}function wv(e,t,r,n){const o=Qt(e);let a=yv(rt(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(ko)))),a}function an(e){return e.replace(/left|right|bottom|top/g,t=>pv[t])}function Cv(e){return{top:0,right:0,bottom:0,left:0,...e}}function rl(e){return typeof e!="number"?Cv(e):{top:e,right:e,bottom:e,left:e}}function sn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Os(e,t,r){let{reference:n,floating:o}=e;const a=Ue(t),i=ea(t),l=Qo(i),d=rt(t),u=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[l]/2-o[l]/2;let m;switch(d){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-o.width,y:p};break;default:m={x:n.x,y:n.y}}switch(Qt(t)){case"start":m[i]-=g*(r&&u?-1:1);break;case"end":m[i]+=g*(r&&u?-1:1);break}return m}const Sv=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Os(u,n,d),g=n,m={},b=0;for(let v=0;v<l.length;v++){const{name:h,fn:y}=l[v],{x,y:C,data:E,reset:j}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,p=C??p,m={...m,[h]:{...m[h],...E}},j&&b<=50&&(b++,typeof j=="object"&&(j.placement&&(g=j.placement),j.rects&&(u=j.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):j.rects),{x:f,y:p}=Os(u,g,d)),v=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:m}};async function xr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=tt(t,e),b=rl(m),h=l[g?p==="floating"?"reference":"floating":p],y=sn(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:d})),x=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=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},j=sn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:C,strategy:d}):x);return{top:(y.top-j.top+b.top)/E.y,bottom:(j.bottom-y.bottom+b.bottom)/E.y,left:(y.left-j.left+b.left)/E.x,right:(j.right-y.right+b.right)/E.x}}const Ev=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:l,middlewareData:d}=t,{element:u,padding:f=0}=tt(e,t)||{};if(u==null)return{};const p=rl(f),g={x:r,y:n},m=ea(o),b=Qo(m),v=await i.getDimensions(u),h=m==="y",y=h?"top":"left",x=h?"bottom":"right",C=h?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[m]-g[m]-a.floating[b],j=g[m]-a.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=T?T[C]:0;(!A||!await(i.isElement==null?void 0:i.isElement(T)))&&(A=l.floating[C]||a.floating[b]);const P=E/2-j/2,F=A/2-v[b]/2-1,U=lt(p[y],F),re=lt(p[x],F),ee=U,J=A-v[b]-re,z=A/2-v[b]/2+P,$=No(ee,z,J),_=!d.arrow&&Qt(o)!=null&&z!==$&&a.reference[b]/2-(z<ee?U:re)-v[b]/2<0,D=_?z<ee?z-ee:z-J:0;return{[m]:g[m]+D,data:{[m]:$,centerOffset:z-$-D,..._&&{alignmentOffset:D}},reset:_}}}),Rv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...h}=tt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=rt(o),x=Ue(l),C=rt(l)===l,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),j=g||(C||!v?[an(l)]:hv(l)),T=b!=="none";!g&&T&&j.push(...wv(l,v,b,E));const A=[l,...j],P=await xr(t,h),F=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&F.push(P[y]),p){const z=vv(o,i,E);F.push(P[z[0]],P[z[1]])}if(U=[...U,{placement:o,overflows:F}],!F.every(z=>z<=0)){var re,ee;const z=(((re=a.flip)==null?void 0:re.index)||0)+1,$=A[z];if($&&(!(p==="alignment"?x!==Ue($):!1)||U.every(R=>Ue(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:z,overflows:U},reset:{placement:$}};let _=(ee=U.filter(D=>D.overflows[0]<=0).sort((D,R)=>D.overflows[1]-R.overflows[1])[0])==null?void 0:ee.placement;if(!_)switch(m){case"bestFit":{var J;const D=(J=U.filter(R=>{if(T){const M=Ue(R.placement);return M===x||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,V)=>M+V,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:J[0];D&&(_=D);break}case"initialPlacement":_=l;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function Ds(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $s(e){return fv.some(t=>e[t]>=0)}const Pv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=tt(e,t);switch(n){case"referenceHidden":{const a=await xr(t,{...o,elementContext:"reference"}),i=Ds(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:$s(i)}}}case"escaped":{const a=await xr(t,{...o,altBoundary:!0}),i=Ds(a,r.floating);return{data:{escapedOffsets:i,escaped:$s(i)}}}default:return{}}}}},nl=new Set(["left","top"]);async function jv(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=rt(r),l=Qt(r),d=Ue(r)==="y",u=nl.has(i)?-1:1,f=a&&d?-1:1,p=tt(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),d?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const Nv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:l}=t,d=await jv(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},kv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...d}=tt(e,t),u={x:r,y:n},f=await xr(t,d),p=Ue(rt(o)),g=Jo(p);let m=u[g],b=u[p];if(a){const h=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=m+f[h],C=m-f[y];m=No(x,m,C)}if(i){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],C=b-f[y];b=No(x,b,C)}const v=l.fn({...t,[g]:m,[p]:b});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[g]:a,[p]:i}}}}}},Tv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=tt(e,t),f={x:r,y:n},p=Ue(o),g=Jo(p);let m=f[g],b=f[p];const v=tt(l,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(d){const C=g==="y"?"height":"width",E=a.reference[g]-a.floating[C]+h.mainAxis,j=a.reference[g]+a.reference[C]-h.mainAxis;m<E?m=E:m>j&&(m=j)}if(u){var y,x;const C=g==="y"?"width":"height",E=nl.has(rt(o)),j=a.reference[p]-a.floating[C]+(E&&((y=i.offset)==null?void 0:y[p])||0)+(E?0:h.crossAxis),T=a.reference[p]+a.reference[C]+(E?0:((x=i.offset)==null?void 0:x[p])||0)-(E?h.crossAxis:0);b<j?b=j:b>T&&(b=T)}return{[g]:m,[p]:b}}}},Av=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:d=()=>{},...u}=tt(e,t),f=await xr(t,u),p=rt(o),g=Qt(o),m=Ue(o)==="y",{width:b,height:v}=a.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=p,h=g==="end"?"top":"bottom");const x=v-f.top-f.bottom,C=b-f.left-f.right,E=lt(v-f[h],x),j=lt(b-f[y],C),T=!t.middlewareData.shift;let A=E,P=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),T&&!g){const U=Ne(f.left,0),re=Ne(f.right,0),ee=Ne(f.top,0),J=Ne(f.bottom,0);m?P=b-2*(U!==0||re!==0?U+re:Ne(f.left,f.right)):A=v-2*(ee!==0||J!==0?ee+J:Ne(f.top,f.bottom))}await d({...t,availableWidth:P,availableHeight:A});const F=await i.getDimensions(l.floating);return b!==F.width||v!==F.height?{reset:{rects:!0}}:{}}}};function Pn(){return typeof window<"u"}function er(e){return ol(e)?(e.nodeName||"").toLowerCase():"#document"}function ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(ol(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ol(e){return Pn()?e instanceof Node||e instanceof ke(e).Node:!1}function $e(e){return Pn()?e instanceof Element||e instanceof ke(e).Element:!1}function Ke(e){return Pn()?e instanceof HTMLElement||e instanceof ke(e).HTMLElement:!1}function Ls(e){return!Pn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ke(e).ShadowRoot}const _v=new Set(["inline","contents"]);function jr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!_v.has(o)}const Iv=new Set(["table","td","th"]);function Mv(e){return Iv.has(er(e))}const Ov=[":popover-open",":modal"];function jn(e){return Ov.some(t=>{try{return e.matches(t)}catch{return!1}})}const Dv=["transform","translate","scale","rotate","perspective"],$v=["transform","translate","scale","rotate","perspective","filter"],Lv=["paint","layout","strict","content"];function ta(e){const t=ra(),r=$e(e)?Le(e):e;return Dv.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||$v.some(n=>(r.willChange||"").includes(n))||Lv.some(n=>(r.contain||"").includes(n))}function Fv(e){let t=ct(e);for(;Ke(t)&&!qt(t);){if(ta(t))return t;if(jn(t))return null;t=ct(t)}return null}function ra(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vv=new Set(["html","body","#document"]);function qt(e){return Vv.has(er(e))}function Le(e){return ke(e).getComputedStyle(e)}function Nn(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if(er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ls(e)&&e.host||Ye(e);return Ls(t)?t.host:t}function al(e){const t=ct(e);return qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&jr(t)?t:al(t)}function br(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=al(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ke(o);if(a){const l=To(i);return t.concat(i,i.visualViewport||[],jr(o)?o:[],l&&r?br(l):[])}return t.concat(o,br(o,[],r))}function To(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sl(e){const t=Le(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ke(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,l=on(r)!==a||on(n)!==i;return l&&(r=a,n=i),{width:r,height:n,$:l}}function na(e){return $e(e)?e:e.contextElement}function Wt(e){const t=na(e);if(!Ke(t))return He(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=sl(t);let i=(a?on(r.width):r.width)/n,l=(a?on(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Bv=He(0);function il(e){const t=ke(e);return!ra()||!t.visualViewport?Bv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gv(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ke(e)?!1:t}function St(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=na(e);let i=He(1);t&&(n?$e(n)&&(i=Wt(n)):i=Wt(e));const l=Gv(a,r,n)?il(a):He(0);let d=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const g=ke(a),m=n&&$e(n)?ke(n):n;let b=g,v=To(b);for(;v&&n&&m!==b;){const h=Wt(v),y=v.getBoundingClientRect(),x=Le(v),C=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*h.x,E=y.top+(v.clientTop+parseFloat(x.paddingTop))*h.y;d*=h.x,u*=h.y,f*=h.x,p*=h.y,d+=C,u+=E,b=ke(v),v=To(b)}}return sn({width:f,height:p,x:d,y:u})}function kn(e,t){const r=Nn(e).scrollLeft;return t?t.left+r:St(Ye(e)).left+r}function ll(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-kn(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Wv(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Ye(n),l=t?jn(t.floating):!1;if(n===i||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=He(1);const f=He(0),p=Ke(n);if((p||!p&&!a)&&((er(n)!=="body"||jr(i))&&(d=Nn(n)),Ke(n))){const m=St(n);u=Wt(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const g=i&&!p&&!a?ll(i,d):He(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-d.scrollTop*u.y+f.y+g.y}}function zv(e){return Array.from(e.getClientRects())}function qv(e){const t=Ye(e),r=Nn(e),n=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ne(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+kn(e);const l=-r.scrollTop;return Le(n).direction==="rtl"&&(i+=Ne(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Fs=25;function Uv(e,t){const r=ke(e),n=Ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,d=0;if(o){a=o.width,i=o.height;const f=ra();(!f||f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}const u=kn(n);if(u<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-m);b<=Fs&&(a-=b)}else u<=Fs&&(a+=u);return{width:a,height:i,x:l,y:d}}const Hv=new Set(["absolute","fixed"]);function Kv(e,t){const r=St(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ke(e)?Wt(e):He(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,d=o*a.x,u=n*a.y;return{width:i,height:l,x:d,y:u}}function Vs(e,t,r){let n;if(t==="viewport")n=Uv(e,r);else if(t==="document")n=qv(Ye(e));else if($e(t))n=Kv(t,r);else{const o=il(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return sn(n)}function cl(e,t){const r=ct(e);return r===t||!$e(r)||qt(r)?!1:Le(r).position==="fixed"||cl(r,t)}function Yv(e,t){const r=t.get(e);if(r)return r;let n=br(e,[],!1).filter(l=>$e(l)&&er(l)!=="body"),o=null;const a=Le(e).position==="fixed";let i=a?ct(e):e;for(;$e(i)&&!qt(i);){const l=Le(i),d=ta(i);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&Hv.has(o.position)||jr(i)&&!d&&cl(e,i))?n=n.filter(f=>f!==i):o=l,i=ct(i)}return t.set(e,n),n}function Xv(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?jn(t)?[]:Yv(t,this._c):[].concat(r),n],l=i[0],d=i.reduce((u,f)=>{const p=Vs(t,f,o);return u.top=Ne(p.top,u.top),u.right=lt(p.right,u.right),u.bottom=lt(p.bottom,u.bottom),u.left=Ne(p.left,u.left),u},Vs(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Zv(e){const{width:t,height:r}=sl(e);return{width:t,height:r}}function Jv(e,t,r){const n=Ke(t),o=Ye(t),a=r==="fixed",i=St(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=He(0);function u(){d.x=kn(o)}if(n||!n&&!a)if((er(t)!=="body"||jr(o))&&(l=Nn(t)),n){const m=St(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?ll(o,l):He(0),p=i.left+l.scrollLeft-d.x-f.x,g=i.top+l.scrollTop-d.y-f.y;return{x:p,y:g,width:i.width,height:i.height}}function io(e){return Le(e).position==="static"}function Bs(e,t){if(!Ke(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ye(e)===r&&(r=r.ownerDocument.body),r}function dl(e,t){const r=ke(e);if(jn(e))return r;if(!Ke(e)){let o=ct(e);for(;o&&!qt(o);){if($e(o)&&!io(o))return o;o=ct(o)}return r}let n=Bs(e,t);for(;n&&Mv(n)&&io(n);)n=Bs(n,t);return n&&qt(n)&&io(n)&&!ta(n)?r:n||Fv(e)||r}const Qv=async function(e){const t=this.getOffsetParent||dl,r=this.getDimensions,n=await r(e.floating);return{reference:Jv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function eh(e){return Le(e).direction==="rtl"}const th={convertOffsetParentRelativeRectToViewportRelativeRect:Wv,getDocumentElement:Ye,getClippingRect:Xv,getOffsetParent:dl,getElementRects:Qv,getClientRects:zv,getDimensions:Zv,getScale:Wt,isElement:$e,isRTL:eh};function ul(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rh(e,t){let r=null,n;const o=Ye(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function i(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=u;if(l||t(),!g||!m)return;const b=Hr(p),v=Hr(o.clientWidth-(f+g)),h=Hr(o.clientHeight-(p+m)),y=Hr(f),C={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:Ne(0,lt(1,d))||1};let E=!0;function j(T){const A=T[0].intersectionRatio;if(A!==d){if(!E)return i();A?i(!1,A):n=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!ul(u,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(j,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,C)}r.observe(e)}return i(!0),a}function nh(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=na(e),f=o||a?[...u?br(u):[],...br(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&l?rh(u,r):null;let g=-1,m=null;i&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),r()}),u&&!d&&m.observe(u),m.observe(t));let b,v=d?St(e):null;d&&h();function h(){const y=St(e);v&&!ul(v,y)&&r(),v=y,b=requestAnimationFrame(h)}return r(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(b)}}const oh=Nv,ah=kv,sh=Rv,ih=Av,lh=Pv,Gs=Ev,ch=Tv,dh=(e,t,r)=>{const n=new Map,o={platform:th,...r},a={...o.platform,_c:n};return Sv(e,t,{...o,platform:a})};var uh=typeof document<"u",fh=function(){},en=uh?S.useLayoutEffect:fh;function ln(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ln(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!ln(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function fl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ws(e,t){const r=fl(e);return Math.round(t*r)/r}function lo(e){const t=c.useRef(e);return en(()=>{t.current=e}),t}function ph(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=c.useState(n);ln(g,n)||m(n);const[b,v]=c.useState(null),[h,y]=c.useState(null),x=c.useCallback(R=>{R!==T.current&&(T.current=R,v(R))},[]),C=c.useCallback(R=>{R!==A.current&&(A.current=R,y(R))},[]),E=a||b,j=i||h,T=c.useRef(null),A=c.useRef(null),P=c.useRef(f),F=d!=null,U=lo(d),re=lo(o),ee=lo(u),J=c.useCallback(()=>{if(!T.current||!A.current)return;const R={placement:t,strategy:r,middleware:g};re.current&&(R.platform=re.current),dh(T.current,A.current,R).then(M=>{const V={...M,isPositioned:ee.current!==!1};z.current&&!ln(P.current,V)&&(P.current=V,yn.flushSync(()=>{p(V)}))})},[g,t,r,re,ee]);en(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[u]);const z=c.useRef(!1);en(()=>(z.current=!0,()=>{z.current=!1}),[]),en(()=>{if(E&&(T.current=E),j&&(A.current=j),E&&j){if(U.current)return U.current(E,j,J);J()}},[E,j,J,U,F]);const $=c.useMemo(()=>({reference:T,floating:A,setReference:x,setFloating:C}),[x,C]),_=c.useMemo(()=>({reference:E,floating:j}),[E,j]),D=c.useMemo(()=>{const R={position:r,left:0,top:0};if(!_.floating)return R;const M=Ws(_.floating,f.x),V=Ws(_.floating,f.y);return l?{...R,transform:"translate("+M+"px, "+V+"px)",...fl(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:V}},[r,l,_.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:J,refs:$,elements:_,floatingStyles:D}),[f,J,$,_,D])}const mh=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Gs({element:n.current,padding:o}).fn(r):{}:n?Gs({element:n,padding:o}).fn(r):{}}}},gh=(e,t)=>({...oh(e),options:[e,t]}),vh=(e,t)=>({...ah(e),options:[e,t]}),hh=(e,t)=>({...ch(e),options:[e,t]}),xh=(e,t)=>({...sh(e),options:[e,t]}),bh=(e,t)=>({...ih(e),options:[e,t]}),yh=(e,t)=>({...lh(e),options:[e,t]}),wh=(e,t)=>({...mh(e),options:[e,t]});var Ch="Arrow",pl=c.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return s.jsx(Z.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});pl.displayName=Ch;var Sh=pl;function oa(e){const[t,r]=c.useState(void 0);return be(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var aa="Popper",[ml,ut]=we(aa),[Eh,gl]=ml(aa),vl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=c.useState(null);return s.jsx(Eh,{scope:t,anchor:n,onAnchorChange:o,children:r})};vl.displayName=aa;var hl="PopperAnchor",xl=c.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=gl(hl,r),i=c.useRef(null),l=se(t,i),d=c.useRef(null);return c.useEffect(()=>{const u=d.current;d.current=(n==null?void 0:n.current)||i.current,u!==d.current&&a.onAnchorChange(d.current)}),n?null:s.jsx(Z.div,{...o,ref:l})});xl.displayName=hl;var sa="PopperContent",[Rh,Ph]=ml(sa),bl=c.forwardRef((e,t)=>{var I,Q,te,oe,ce,ie;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=e,h=gl(sa,r),[y,x]=c.useState(null),C=se(t,Se=>x(Se)),[E,j]=c.useState(null),T=oa(E),A=(T==null?void 0:T.width)??0,P=(T==null?void 0:T.height)??0,F=n+(a!=="center"?"-"+a:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},re=Array.isArray(u)?u:[u],ee=re.length>0,J={padding:U,boundary:re.filter(Nh),altBoundary:ee},{refs:z,floatingStyles:$,placement:_,isPositioned:D,middlewareData:R}=ph({strategy:"fixed",placement:F,whileElementsMounted:(...Se)=>nh(...Se,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[gh({mainAxis:o+P,alignmentAxis:i}),d&&vh({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?hh():void 0,...J}),d&&xh({...J}),bh({...J,apply:({elements:Se,rects:Te,availableWidth:Ge,availableHeight:Me})=>{const{width:ot,height:Wr}=Te.reference,Ze=Se.floating.style;Ze.setProperty("--radix-popper-available-width",`${Ge}px`),Ze.setProperty("--radix-popper-available-height",`${Me}px`),Ze.setProperty("--radix-popper-anchor-width",`${ot}px`),Ze.setProperty("--radix-popper-anchor-height",`${Wr}px`)}}),E&&wh({element:E,padding:l}),kh({arrowWidth:A,arrowHeight:P}),g&&yh({strategy:"referenceHidden",...J})]}),[M,V]=Cl(_),X=De(b);be(()=>{D&&(X==null||X())},[D,X]);const k=(I=R.arrow)==null?void 0:I.x,B=(Q=R.arrow)==null?void 0:Q.y,Y=((te=R.arrow)==null?void 0:te.centerOffset)!==0,[O,W]=c.useState();return be(()=>{y&&W(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:D?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(oe=R.transformOrigin)==null?void 0:oe.x,(ce=R.transformOrigin)==null?void 0:ce.y].join(" "),...((ie=R.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(Rh,{scope:r,placedSide:M,onArrowChange:j,arrowX:k,arrowY:B,shouldHideArrow:Y,children:s.jsx(Z.div,{"data-side":M,"data-align":V,...v,ref:C,style:{...v.style,animation:D?void 0:"none"}})})})});bl.displayName=sa;var yl="PopperArrow",jh={top:"bottom",right:"left",bottom:"top",left:"right"},wl=c.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Ph(yl,n),i=jh[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(Sh,{...o,ref:r,style:{...o.style,display:"block"}})})});wl.displayName=yl;function Nh(e){return e!==null}var kh=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:r,rects:n,middlewareData:o}=t,i=((h=o.arrow)==null?void 0:h.centerOffset)!==0,l=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,f]=Cl(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+d/2;let b="",v="";return u==="bottom"?(b=i?p:`${g}px`,v=`${-d}px`):u==="top"?(b=i?p:`${g}px`,v=`${n.floating.height+d}px`):u==="right"?(b=`${-d}px`,v=i?p:`${m}px`):u==="left"&&(b=`${n.floating.width+d}px`,v=i?p:`${m}px`),{data:{x:b,y:v}}}});function Cl(e){const[t,r="center"]=e.split("-");return[t,r]}var Nr=vl,kr=xl,Tn=bl,An=wl,Th="Portal",tr=c.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[o,a]=c.useState(!1);be(()=>a(!0),[]);const i=r||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Sr.createPortal(s.jsx(Z.div,{...n,ref:t}),i):null});tr.displayName=Th;var Ah=c[" useInsertionEffect ".trim().toString()]||be;function ye({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=_h({defaultProp:t,onChange:r}),l=e!==void 0,d=l?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,n])}const u=c.useCallback(f=>{var p;if(l){const g=Ih(f)?f(e):f;g!==e&&((p=i.current)==null||p.call(i,g))}else a(f)},[l,e,a,i]);return[d,u]}function _h({defaultProp:e,onChange:t}){const[r,n]=c.useState(e),o=c.useRef(r),a=c.useRef(t);return Ah(()=>{a.current=t},[t]),c.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Ih(e){return typeof e=="function"}function ia(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Sl=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"}),Mh="VisuallyHidden",El=c.forwardRef((e,t)=>s.jsx(Z.span,{...e,ref:t,style:{...Sl,...e.style}}));El.displayName=Mh;var Oh=El,Dh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ot=new WeakMap,Kr=new WeakMap,Yr={},co=0,Rl=function(e){return e&&(e.host||Rl(e.parentNode))},$h=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Rl(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Lh=function(e,t,r,n){var o=$h(t,Array.isArray(e)?e:[e]);Yr[r]||(Yr[r]=new WeakMap);var a=Yr[r],i=[],l=new Set,d=new Set(o),u=function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(g){if(l.has(g))f(g);else try{var m=g.getAttribute(n),b=m!==null&&m!=="false",v=(Ot.get(g)||0)+1,h=(a.get(g)||0)+1;Ot.set(g,v),a.set(g,h),i.push(g),v===1&&b&&Kr.set(g,!0),h===1&&g.setAttribute(r,"true"),b||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),l.clear(),co++,function(){i.forEach(function(p){var g=Ot.get(p)-1,m=a.get(p)-1;Ot.set(p,g),a.set(p,m),g||(Kr.has(p)||p.removeAttribute(n),Kr.delete(p)),m||p.removeAttribute(r)}),co--,co||(Ot=new WeakMap,Ot=new WeakMap,Kr=new WeakMap,Yr={})}},_n=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Dh(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Lh(n,o,r,"aria-hidden")):function(){return null}},qe=function(){return qe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qe.apply(this,arguments)};function Pl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Fh(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var tn="right-scroll-bar-position",rn="width-before-scroll-bar",Vh="with-scroll-bars-hidden",Bh="--removed-body-scroll-bar-size";function uo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Gh(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Wh=typeof window<"u"?c.useLayoutEffect:c.useEffect,zs=new WeakMap;function zh(e,t){var r=Gh(null,function(n){return e.forEach(function(o){return uo(o,n)})});return Wh(function(){var n=zs.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(l){a.has(l)||uo(l,null)}),a.forEach(function(l){o.has(l)||uo(l,i)})}zs.set(r,e)},[e]),r}function qh(e){return e}function Uh(e,t){t===void 0&&(t=qh);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(a),i=r}var d=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),r={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),r}}}};return o}function Hh(e){e===void 0&&(e={});var t=Uh(null);return t.options=qe({async:!0,ssr:!1},e),t}var jl=function(e){var t=e.sideCar,r=Pl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return c.createElement(n,qe({},r))};jl.isSideCarExport=!0;function Kh(e,t){return e.useMedium(t),jl}var Nl=Hh(),fo=function(){},In=c.forwardRef(function(e,t){var r=c.useRef(null),n=c.useState({onScrollCapture:fo,onWheelCapture:fo,onTouchMoveCapture:fo}),o=n[0],a=n[1],i=e.forwardProps,l=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,E=Pl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=g,T=zh([r,t]),A=qe(qe({},E),o);return c.createElement(c.Fragment,null,f&&c.createElement(j,{sideCar:Nl,removeScrollBar:u,shards:p,noRelative:m,noIsolation:b,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:C}),i?c.cloneElement(c.Children.only(l),qe(qe({},A),{ref:T})):c.createElement(x,qe({},A,{className:d,ref:T}),l))});In.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};In.classNames={fullWidth:rn,zeroRight:tn};var Yh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yh();return t&&e.setAttribute("nonce",t),e}function Zh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qh=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Xh())&&(Zh(t,r),Jh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ex=function(){var e=Qh();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},kl=function(){var e=ex(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},tx={left:0,top:0,right:0,gap:0},po=function(e){return parseInt(e||"",10)||0},rx=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[po(r),po(n),po(o)]},nx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tx;var t=rx(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ox=kl(),zt="data-scroll-locked",ax=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
156
- .`.concat(Vh,` {
155
+ */const Yg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sn=ve("x",Yg),Ji=wn("qodo qodo-button inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-[var(--fill-action-emphasis-idle)] text-[var(--text-action-on-emphasis-idle)] hover:bg-[var(--fill-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-[var(--fill-action-emphasis-disabled)]",secondary:"bg-[var(--fill-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-[var(--fill-action-neutral-disabled)] disabled:text-[var(--text-action-neutral-disabled)]",outline:"border border-[var(--border-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",ghost:"text-[var(--text-action-neutral-idle)] hover:text-[var(--text-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",link:"text-[var(--text-action-emphasis-idle)] hover:text-[var(--text-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-none disabled:text-[var(--text-action-emphasis-disabled)]",danger:"border border-[var(--border-action-negative-idle)] text-[var(--icon-action-negative-idle)] hover:bg-[var(--fill-action-negative-hover)] active:bg-[var(--fill-action-negative-active)] disabled:border-[var(--border-action-negative-disabled)] disabled:text-[var(--icon-action-negative-disabled)]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Qe=c.forwardRef(({className:e,variant:t,size:r,loading:n,children:o,disabled:a,...i},l)=>s.jsxs("button",{className:j(Ji({variant:t,size:r,className:e})),ref:l,disabled:a||n,...i,children:[o,n&&s.jsx(Xi,{className:"ml-2 w-4 h-4 animate-spin"})]}));Qe.displayName="Button";const Xg=wn("qodo qodo-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input-neutral-idle flex h-9 w-full min-w-0 rounded-md border bg-fill-input-neutral-idle 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 focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm dark:border-input-neutral-idle dark:bg-fill-input-neutral-idle dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-muted-700 border-purple-muted-500 text-purple-muted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive bg-purple-muted-700 text-purple-muted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}}),Rr=c.forwardRef(({className:e,variant:t,type:r,error:n,...o},a)=>s.jsx("input",{ref:a,type:r,"data-slot":"input","aria-invalid":n||void 0,className:j(Xg({variant:t,className:e})),...o}));Rr.displayName="Input";function Ps(e,[t,r]){return Math.min(r,Math.max(t,e))}function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Zg(e,t){const r=c.createContext(t),n=a=>{const{children:i,...l}=a,d=c.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:d,children:i})};n.displayName=e+"Provider";function o(a){const i=c.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function we(e,t=[]){let r=[];function n(a,i){const l=c.createContext(i),d=r.length;r=[...r,i];const u=p=>{var y;const{scope:g,children:m,...b}=p,v=((y=g==null?void 0:g[e])==null?void 0:y[d])||l,h=c.useMemo(()=>b,Object.values(b));return s.jsx(v.Provider,{value:h,children:m})};u.displayName=a+"Provider";function f(p,g){var v;const m=((v=g==null?void 0:g[e])==null?void 0:v[d])||l,b=c.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(i=>c.createContext(i));return function(l){const d=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[n,Jg(o,...t)]}function Jg(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((l,{useScope:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...l,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function js(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function et(...e){return t=>{let r=!1;const n=e.map(o=>{const a=js(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():js(e[o],null)}}}}function se(...e){return c.useCallback(et(...e),e)}function it(e){const t=ev(e),r=c.forwardRef((n,o)=>{const{children:a,...i}=n,l=c.Children.toArray(a),d=l.find(rv);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return s.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return s.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Qg=it("Slot");function ev(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const i=ov(o),l=nv(a,o.props);return o.type!==c.Fragment&&(l.ref=n?et(n,i):i),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qi=Symbol("radix.slottable");function tv(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Qi,t}function rv(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qi}function nv(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ov(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function En(e){const t=e+"CollectionProvider",[r,n]=we(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:h,children:y}=v,x=S.useRef(null),C=S.useRef(new Map).current;return s.jsx(o,{scope:h,itemMap:C,collectionRef:x,children:y})};i.displayName=t;const l=e+"CollectionSlot",d=it(l),u=S.forwardRef((v,h)=>{const{scope:y,children:x}=v,C=a(l,y),E=se(h,C.collectionRef);return s.jsx(d,{ref:E,children:x})});u.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=it(f),m=S.forwardRef((v,h)=>{const{scope:y,children:x,...C}=v,E=S.useRef(null),N=se(h,E),T=a(f,y);return S.useEffect(()=>(T.itemMap.set(E,{ref:E,...C}),()=>void T.itemMap.delete(E))),s.jsx(g,{[p]:"",ref:N,children:x})});m.displayName=f;function b(v){const h=a(e+"CollectionConsumer",v);return S.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((T,A)=>C.indexOf(T.ref.current)-C.indexOf(A.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},b,n]}var av=c.createContext(void 0);function Tt(e){const t=c.useContext(av);return e||t||"ltr"}var sv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=sv.reduce((e,t)=>{const r=it(`Primitive.${t}`),n=c.forwardRef((o,a)=>{const{asChild:i,...l}=o,d=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function el(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}function De(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function iv(e,t=globalThis==null?void 0:globalThis.document){const r=De(e);c.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var lv="DismissableLayer",To="dismissableLayer.update",cv="dismissableLayer.pointerDownOutside",dv="dismissableLayer.focusOutside",Ns,tl=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...d}=e,u=c.useContext(tl),[f,p]=c.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=c.useState({}),b=se(t,A=>p(A)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),x=f?v.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,N=pv(A=>{const P=A.target,V=[...u.branches].some(U=>U.contains(P));!E||V||(o==null||o(A),i==null||i(A),A.defaultPrevented||l==null||l())},g),T=mv(A=>{const P=A.target;[...u.branches].some(U=>U.contains(P))||(a==null||a(A),i==null||i(A),A.defaultPrevented||l==null||l())},g);return iv(A=>{x===u.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},g),c.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ns=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ks(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ns)}},[f,g,r,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ks())},[f,u]),c.useEffect(()=>{const A=()=>m({});return document.addEventListener(To,A),()=>document.removeEventListener(To,A)},[]),s.jsx(H.div,{...d,ref:b,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,T.onFocusCapture),onBlurCapture:F(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,N.onPointerDownCapture)})});Qt.displayName=lv;var uv="DismissableLayerBranch",fv=c.forwardRef((e,t)=>{const r=c.useContext(tl),n=c.useRef(null),o=se(t,n);return c.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),s.jsx(H.div,{...e,ref:o})});fv.displayName=uv;function pv(e,t=globalThis==null?void 0:globalThis.document){const r=De(e),n=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let d=function(){rl(cv,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function mv(e,t=globalThis==null?void 0:globalThis.document){const r=De(e),n=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!n.current&&rl(dv,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ks(){const e=new CustomEvent(To);document.dispatchEvent(e)}function rl(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?el(o,a):o.dispatchEvent(a)}var io=0;function Rn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ts()),document.body.insertAdjacentElement("beforeend",e[1]??Ts()),io++,()=>{io===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),io--}},[])}function Ts(){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 lo="focusScope.autoFocusOnMount",co="focusScope.autoFocusOnUnmount",As={bubbles:!1,cancelable:!0},gv="FocusScope",Pr=c.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,d]=c.useState(null),u=De(o),f=De(a),p=c.useRef(null),g=se(t,v=>d(v)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(n){let v=function(C){if(m.paused||!l)return;const E=C.target;l.contains(E)?p.current=E:st(p.current,{select:!0})},h=function(C){if(m.paused||!l)return;const E=C.relatedTarget;E!==null&&(l.contains(E)||st(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const N of C)N.removedNodes.length>0&&st(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,l,m.paused]),c.useEffect(()=>{if(l){Is.add(m);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(lo,As);l.addEventListener(lo,u),l.dispatchEvent(y),y.defaultPrevented||(vv(wv(nl(l)),{select:!0}),document.activeElement===v&&st(l))}return()=>{l.removeEventListener(lo,u),setTimeout(()=>{const y=new CustomEvent(co,As);l.addEventListener(co,f),l.dispatchEvent(y),y.defaultPrevented||st(v??document.body,{select:!0}),l.removeEventListener(co,f),Is.remove(m)},0)}}},[l,u,f,m]);const b=c.useCallback(v=>{if(!r&&!n||m.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const x=v.currentTarget,[C,E]=hv(x);C&&E?!v.shiftKey&&y===E?(v.preventDefault(),r&&st(C,{select:!0})):v.shiftKey&&y===C&&(v.preventDefault(),r&&st(E,{select:!0})):y===x&&v.preventDefault()}},[r,n,m.paused]);return s.jsx(H.div,{tabIndex:-1,...i,ref:g,onKeyDown:b})});Pr.displayName=gv;function vv(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(st(n,{select:t}),document.activeElement!==r)return}function hv(e){const t=nl(e),r=_s(t,e),n=_s(t.reverse(),e);return[r,n]}function nl(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _s(e,t){for(const r of e)if(!xv(r,{upTo:t}))return r}function xv(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 bv(e){return e instanceof HTMLInputElement&&"select"in e}function st(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bv(e)&&t&&e.select()}}var Is=yv();function yv(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Ms(e,t),e.unshift(t)},remove(t){var r;e=Ms(e,t),(r=e[0])==null||r.resume()}}}function Ms(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function wv(e){return e.filter(t=>t.tagName!=="A")}var be=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Cv=c[" useId ".trim().toString()]||(()=>{}),Sv=0;function me(e){const[t,r]=c.useState(Cv());return be(()=>{r(n=>n??String(Sv++))},[e]),t?`radix-${t}`:""}const Ev=["top","right","bottom","left"],lt=Math.min,Ne=Math.max,on=Math.round,Hr=Math.floor,He=e=>({x:e,y:e}),Rv={left:"right",right:"left",bottom:"top",top:"bottom"},Pv={start:"end",end:"start"};function Ao(e,t,r){return Ne(e,lt(t,r))}function tt(e,t){return typeof e=="function"?e(t):e}function rt(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function ta(e){return e==="x"?"y":"x"}function ra(e){return e==="y"?"height":"width"}const jv=new Set(["top","bottom"]);function Ue(e){return jv.has(rt(e))?"y":"x"}function na(e){return ta(Ue(e))}function Nv(e,t,r){r===void 0&&(r=!1);const n=er(e),o=na(e),a=ra(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=an(i)),[i,an(i)]}function kv(e){const t=an(e);return[_o(e),t,_o(t)]}function _o(e){return e.replace(/start|end/g,t=>Pv[t])}const Os=["left","right"],Ds=["right","left"],Tv=["top","bottom"],Av=["bottom","top"];function _v(e,t,r){switch(e){case"top":case"bottom":return r?t?Ds:Os:t?Os:Ds;case"left":case"right":return t?Tv:Av;default:return[]}}function Iv(e,t,r,n){const o=er(e);let a=_v(rt(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(_o)))),a}function an(e){return e.replace(/left|right|bottom|top/g,t=>Rv[t])}function Mv(e){return{top:0,right:0,bottom:0,left:0,...e}}function ol(e){return typeof e!="number"?Mv(e):{top:e,right:e,bottom:e,left:e}}function sn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function $s(e,t,r){let{reference:n,floating:o}=e;const a=Ue(t),i=na(t),l=ra(i),d=rt(t),u=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[l]/2-o[l]/2;let m;switch(d){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-o.width,y:p};break;default:m={x:n.x,y:n.y}}switch(er(t)){case"start":m[i]-=g*(r&&u?-1:1);break;case"end":m[i]+=g*(r&&u?-1:1);break}return m}const Ov=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=$s(u,n,d),g=n,m={},b=0;for(let v=0;v<l.length;v++){const{name:h,fn:y}=l[v],{x,y:C,data:E,reset:N}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,p=C??p,m={...m,[h]:{...m[h],...E}},N&&b<=50&&(b++,typeof N=="object"&&(N.placement&&(g=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:f,y:p}=$s(u,g,d)),v=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:m}};async function xr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=tt(t,e),b=ol(m),h=l[g?p==="floating"?"reference":"floating":p],y=sn(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:d})),x=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=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},N=sn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:C,strategy:d}):x);return{top:(y.top-N.top+b.top)/E.y,bottom:(N.bottom-y.bottom+b.bottom)/E.y,left:(y.left-N.left+b.left)/E.x,right:(N.right-y.right+b.right)/E.x}}const Dv=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:l,middlewareData:d}=t,{element:u,padding:f=0}=tt(e,t)||{};if(u==null)return{};const p=ol(f),g={x:r,y:n},m=na(o),b=ra(m),v=await i.getDimensions(u),h=m==="y",y=h?"top":"left",x=h?"bottom":"right",C=h?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[m]-g[m]-a.floating[b],N=g[m]-a.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=T?T[C]:0;(!A||!await(i.isElement==null?void 0:i.isElement(T)))&&(A=l.floating[C]||a.floating[b]);const P=E/2-N/2,V=A/2-v[b]/2-1,U=lt(p[y],V),re=lt(p[x],V),te=U,Q=A-v[b]-re,W=A/2-v[b]/2+P,D=Ao(te,W,Q),I=!d.arrow&&er(o)!=null&&W!==D&&a.reference[b]/2-(W<te?U:re)-v[b]/2<0,O=I?W<te?W-te:W-Q:0;return{[m]:g[m]+O,data:{[m]:D,centerOffset:W-D-O,...I&&{alignmentOffset:O}},reset:I}}}),$v=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...h}=tt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=rt(o),x=Ue(l),C=rt(l)===l,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),N=g||(C||!v?[an(l)]:kv(l)),T=b!=="none";!g&&T&&N.push(...Iv(l,v,b,E));const A=[l,...N],P=await xr(t,h),V=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&V.push(P[y]),p){const W=Nv(o,i,E);V.push(P[W[0]],P[W[1]])}if(U=[...U,{placement:o,overflows:V}],!V.every(W=>W<=0)){var re,te;const W=(((re=a.flip)==null?void 0:re.index)||0)+1,D=A[W];if(D&&(!(p==="alignment"?x!==Ue(D):!1)||U.every(R=>Ue(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:D}};let I=(te=U.filter(O=>O.overflows[0]<=0).sort((O,R)=>O.overflows[1]-R.overflows[1])[0])==null?void 0:te.placement;if(!I)switch(m){case"bestFit":{var Q;const O=(Q=U.filter(R=>{if(T){const M=Ue(R.placement);return M===x||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,B)=>M+B,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:Q[0];O&&(I=O);break}case"initialPlacement":I=l;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Ls(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fs(e){return Ev.some(t=>e[t]>=0)}const Lv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=tt(e,t);switch(n){case"referenceHidden":{const a=await xr(t,{...o,elementContext:"reference"}),i=Ls(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Fs(i)}}}case"escaped":{const a=await xr(t,{...o,altBoundary:!0}),i=Ls(a,r.floating);return{data:{escapedOffsets:i,escaped:Fs(i)}}}default:return{}}}}},al=new Set(["left","top"]);async function Fv(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=rt(r),l=er(r),d=Ue(r)==="y",u=al.has(i)?-1:1,f=a&&d?-1:1,p=tt(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),d?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const Vv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:l}=t,d=await Fv(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},Bv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...d}=tt(e,t),u={x:r,y:n},f=await xr(t,d),p=Ue(rt(o)),g=ta(p);let m=u[g],b=u[p];if(a){const h=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=m+f[h],C=m-f[y];m=Ao(x,m,C)}if(i){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],C=b-f[y];b=Ao(x,b,C)}const v=l.fn({...t,[g]:m,[p]:b});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[g]:a,[p]:i}}}}}},Gv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=tt(e,t),f={x:r,y:n},p=Ue(o),g=ta(p);let m=f[g],b=f[p];const v=tt(l,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(d){const C=g==="y"?"height":"width",E=a.reference[g]-a.floating[C]+h.mainAxis,N=a.reference[g]+a.reference[C]-h.mainAxis;m<E?m=E:m>N&&(m=N)}if(u){var y,x;const C=g==="y"?"width":"height",E=al.has(rt(o)),N=a.reference[p]-a.floating[C]+(E&&((y=i.offset)==null?void 0:y[p])||0)+(E?0:h.crossAxis),T=a.reference[p]+a.reference[C]+(E?0:((x=i.offset)==null?void 0:x[p])||0)-(E?h.crossAxis:0);b<N?b=N:b>T&&(b=T)}return{[g]:m,[p]:b}}}},Wv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:d=()=>{},...u}=tt(e,t),f=await xr(t,u),p=rt(o),g=er(o),m=Ue(o)==="y",{width:b,height:v}=a.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=p,h=g==="end"?"top":"bottom");const x=v-f.top-f.bottom,C=b-f.left-f.right,E=lt(v-f[h],x),N=lt(b-f[y],C),T=!t.middlewareData.shift;let A=E,P=N;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),T&&!g){const U=Ne(f.left,0),re=Ne(f.right,0),te=Ne(f.top,0),Q=Ne(f.bottom,0);m?P=b-2*(U!==0||re!==0?U+re:Ne(f.left,f.right)):A=v-2*(te!==0||Q!==0?te+Q:Ne(f.top,f.bottom))}await d({...t,availableWidth:P,availableHeight:A});const V=await i.getDimensions(l.floating);return b!==V.width||v!==V.height?{reset:{rects:!0}}:{}}}};function Pn(){return typeof window<"u"}function tr(e){return sl(e)?(e.nodeName||"").toLowerCase():"#document"}function ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(sl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sl(e){return Pn()?e instanceof Node||e instanceof ke(e).Node:!1}function $e(e){return Pn()?e instanceof Element||e instanceof ke(e).Element:!1}function Ke(e){return Pn()?e instanceof HTMLElement||e instanceof ke(e).HTMLElement:!1}function Vs(e){return!Pn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ke(e).ShadowRoot}const zv=new Set(["inline","contents"]);function jr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!zv.has(o)}const qv=new Set(["table","td","th"]);function Uv(e){return qv.has(tr(e))}const Hv=[":popover-open",":modal"];function jn(e){return Hv.some(t=>{try{return e.matches(t)}catch{return!1}})}const Kv=["transform","translate","scale","rotate","perspective"],Yv=["transform","translate","scale","rotate","perspective","filter"],Xv=["paint","layout","strict","content"];function oa(e){const t=aa(),r=$e(e)?Le(e):e;return Kv.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Yv.some(n=>(r.willChange||"").includes(n))||Xv.some(n=>(r.contain||"").includes(n))}function Zv(e){let t=ct(e);for(;Ke(t)&&!Ht(t);){if(oa(t))return t;if(jn(t))return null;t=ct(t)}return null}function aa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Jv=new Set(["html","body","#document"]);function Ht(e){return Jv.has(tr(e))}function Le(e){return ke(e).getComputedStyle(e)}function Nn(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if(tr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vs(e)&&e.host||Ye(e);return Vs(t)?t.host:t}function il(e){const t=ct(e);return Ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&jr(t)?t:il(t)}function br(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=il(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ke(o);if(a){const l=Io(i);return t.concat(i,i.visualViewport||[],jr(o)?o:[],l&&r?br(l):[])}return t.concat(o,br(o,[],r))}function Io(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ll(e){const t=Le(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ke(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,l=on(r)!==a||on(n)!==i;return l&&(r=a,n=i),{width:r,height:n,$:l}}function sa(e){return $e(e)?e:e.contextElement}function qt(e){const t=sa(e);if(!Ke(t))return He(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ll(t);let i=(a?on(r.width):r.width)/n,l=(a?on(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Qv=He(0);function cl(e){const t=ke(e);return!aa()||!t.visualViewport?Qv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ke(e)?!1:t}function Et(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=sa(e);let i=He(1);t&&(n?$e(n)&&(i=qt(n)):i=qt(e));const l=eh(a,r,n)?cl(a):He(0);let d=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const g=ke(a),m=n&&$e(n)?ke(n):n;let b=g,v=Io(b);for(;v&&n&&m!==b;){const h=qt(v),y=v.getBoundingClientRect(),x=Le(v),C=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*h.x,E=y.top+(v.clientTop+parseFloat(x.paddingTop))*h.y;d*=h.x,u*=h.y,f*=h.x,p*=h.y,d+=C,u+=E,b=ke(v),v=Io(b)}}return sn({width:f,height:p,x:d,y:u})}function kn(e,t){const r=Nn(e).scrollLeft;return t?t.left+r:Et(Ye(e)).left+r}function dl(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-kn(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function th(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Ye(n),l=t?jn(t.floating):!1;if(n===i||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=He(1);const f=He(0),p=Ke(n);if((p||!p&&!a)&&((tr(n)!=="body"||jr(i))&&(d=Nn(n)),Ke(n))){const m=Et(n);u=qt(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const g=i&&!p&&!a?dl(i,d):He(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-d.scrollTop*u.y+f.y+g.y}}function rh(e){return Array.from(e.getClientRects())}function nh(e){const t=Ye(e),r=Nn(e),n=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ne(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+kn(e);const l=-r.scrollTop;return Le(n).direction==="rtl"&&(i+=Ne(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Bs=25;function oh(e,t){const r=ke(e),n=Ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,d=0;if(o){a=o.width,i=o.height;const f=aa();(!f||f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}const u=kn(n);if(u<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-m);b<=Bs&&(a-=b)}else u<=Bs&&(a+=u);return{width:a,height:i,x:l,y:d}}const ah=new Set(["absolute","fixed"]);function sh(e,t){const r=Et(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ke(e)?qt(e):He(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,d=o*a.x,u=n*a.y;return{width:i,height:l,x:d,y:u}}function Gs(e,t,r){let n;if(t==="viewport")n=oh(e,r);else if(t==="document")n=nh(Ye(e));else if($e(t))n=sh(t,r);else{const o=cl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return sn(n)}function ul(e,t){const r=ct(e);return r===t||!$e(r)||Ht(r)?!1:Le(r).position==="fixed"||ul(r,t)}function ih(e,t){const r=t.get(e);if(r)return r;let n=br(e,[],!1).filter(l=>$e(l)&&tr(l)!=="body"),o=null;const a=Le(e).position==="fixed";let i=a?ct(e):e;for(;$e(i)&&!Ht(i);){const l=Le(i),d=oa(i);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&ah.has(o.position)||jr(i)&&!d&&ul(e,i))?n=n.filter(f=>f!==i):o=l,i=ct(i)}return t.set(e,n),n}function lh(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?jn(t)?[]:ih(t,this._c):[].concat(r),n],l=i[0],d=i.reduce((u,f)=>{const p=Gs(t,f,o);return u.top=Ne(p.top,u.top),u.right=lt(p.right,u.right),u.bottom=lt(p.bottom,u.bottom),u.left=Ne(p.left,u.left),u},Gs(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ch(e){const{width:t,height:r}=ll(e);return{width:t,height:r}}function dh(e,t,r){const n=Ke(t),o=Ye(t),a=r==="fixed",i=Et(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=He(0);function u(){d.x=kn(o)}if(n||!n&&!a)if((tr(t)!=="body"||jr(o))&&(l=Nn(t)),n){const m=Et(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?dl(o,l):He(0),p=i.left+l.scrollLeft-d.x-f.x,g=i.top+l.scrollTop-d.y-f.y;return{x:p,y:g,width:i.width,height:i.height}}function uo(e){return Le(e).position==="static"}function Ws(e,t){if(!Ke(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ye(e)===r&&(r=r.ownerDocument.body),r}function fl(e,t){const r=ke(e);if(jn(e))return r;if(!Ke(e)){let o=ct(e);for(;o&&!Ht(o);){if($e(o)&&!uo(o))return o;o=ct(o)}return r}let n=Ws(e,t);for(;n&&Uv(n)&&uo(n);)n=Ws(n,t);return n&&Ht(n)&&uo(n)&&!oa(n)?r:n||Zv(e)||r}const uh=async function(e){const t=this.getOffsetParent||fl,r=this.getDimensions,n=await r(e.floating);return{reference:dh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function fh(e){return Le(e).direction==="rtl"}const ph={convertOffsetParentRelativeRectToViewportRelativeRect:th,getDocumentElement:Ye,getClippingRect:lh,getOffsetParent:fl,getElementRects:uh,getClientRects:rh,getDimensions:ch,getScale:qt,isElement:$e,isRTL:fh};function pl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mh(e,t){let r=null,n;const o=Ye(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function i(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=u;if(l||t(),!g||!m)return;const b=Hr(p),v=Hr(o.clientWidth-(f+g)),h=Hr(o.clientHeight-(p+m)),y=Hr(f),C={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:Ne(0,lt(1,d))||1};let E=!0;function N(T){const A=T[0].intersectionRatio;if(A!==d){if(!E)return i();A?i(!1,A):n=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!pl(u,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(N,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(N,C)}r.observe(e)}return i(!0),a}function gh(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=sa(e),f=o||a?[...u?br(u):[],...br(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&l?mh(u,r):null;let g=-1,m=null;i&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),r()}),u&&!d&&m.observe(u),m.observe(t));let b,v=d?Et(e):null;d&&h();function h(){const y=Et(e);v&&!pl(v,y)&&r(),v=y,b=requestAnimationFrame(h)}return r(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(b)}}const vh=Vv,hh=Bv,xh=$v,bh=Wv,yh=Lv,zs=Dv,wh=Gv,Ch=(e,t,r)=>{const n=new Map,o={platform:ph,...r},a={...o.platform,_c:n};return Ov(e,t,{...o,platform:a})};var Sh=typeof document<"u",Eh=function(){},en=Sh?S.useLayoutEffect:Eh;function ln(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ln(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!ln(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ml(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qs(e,t){const r=ml(e);return Math.round(t*r)/r}function fo(e){const t=c.useRef(e);return en(()=>{t.current=e}),t}function Rh(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=c.useState(n);ln(g,n)||m(n);const[b,v]=c.useState(null),[h,y]=c.useState(null),x=c.useCallback(R=>{R!==T.current&&(T.current=R,v(R))},[]),C=c.useCallback(R=>{R!==A.current&&(A.current=R,y(R))},[]),E=a||b,N=i||h,T=c.useRef(null),A=c.useRef(null),P=c.useRef(f),V=d!=null,U=fo(d),re=fo(o),te=fo(u),Q=c.useCallback(()=>{if(!T.current||!A.current)return;const R={placement:t,strategy:r,middleware:g};re.current&&(R.platform=re.current),Ch(T.current,A.current,R).then(M=>{const B={...M,isPositioned:te.current!==!1};W.current&&!ln(P.current,B)&&(P.current=B,yn.flushSync(()=>{p(B)}))})},[g,t,r,re,te]);en(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[u]);const W=c.useRef(!1);en(()=>(W.current=!0,()=>{W.current=!1}),[]),en(()=>{if(E&&(T.current=E),N&&(A.current=N),E&&N){if(U.current)return U.current(E,N,Q);Q()}},[E,N,Q,U,V]);const D=c.useMemo(()=>({reference:T,floating:A,setReference:x,setFloating:C}),[x,C]),I=c.useMemo(()=>({reference:E,floating:N}),[E,N]),O=c.useMemo(()=>{const R={position:r,left:0,top:0};if(!I.floating)return R;const M=qs(I.floating,f.x),B=qs(I.floating,f.y);return l?{...R,transform:"translate("+M+"px, "+B+"px)",...ml(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:B}},[r,l,I.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:Q,refs:D,elements:I,floatingStyles:O}),[f,Q,D,I,O])}const Ph=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?zs({element:n.current,padding:o}).fn(r):{}:n?zs({element:n,padding:o}).fn(r):{}}}},jh=(e,t)=>({...vh(e),options:[e,t]}),Nh=(e,t)=>({...hh(e),options:[e,t]}),kh=(e,t)=>({...wh(e),options:[e,t]}),Th=(e,t)=>({...xh(e),options:[e,t]}),Ah=(e,t)=>({...bh(e),options:[e,t]}),_h=(e,t)=>({...yh(e),options:[e,t]}),Ih=(e,t)=>({...Ph(e),options:[e,t]});var Mh="Arrow",gl=c.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return s.jsx(H.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});gl.displayName=Mh;var Oh=gl;function ia(e){const[t,r]=c.useState(void 0);return be(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var la="Popper",[vl,ut]=we(la),[Dh,hl]=vl(la),xl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=c.useState(null);return s.jsx(Dh,{scope:t,anchor:n,onAnchorChange:o,children:r})};xl.displayName=la;var bl="PopperAnchor",yl=c.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=hl(bl,r),i=c.useRef(null),l=se(t,i),d=c.useRef(null);return c.useEffect(()=>{const u=d.current;d.current=(n==null?void 0:n.current)||i.current,u!==d.current&&a.onAnchorChange(d.current)}),n?null:s.jsx(H.div,{...o,ref:l})});yl.displayName=bl;var ca="PopperContent",[$h,Lh]=vl(ca),wl=c.forwardRef((e,t)=>{var _,K,ee,oe,ce,ie;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=e,h=hl(ca,r),[y,x]=c.useState(null),C=se(t,Se=>x(Se)),[E,N]=c.useState(null),T=ia(E),A=(T==null?void 0:T.width)??0,P=(T==null?void 0:T.height)??0,V=n+(a!=="center"?"-"+a:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},re=Array.isArray(u)?u:[u],te=re.length>0,Q={padding:U,boundary:re.filter(Vh),altBoundary:te},{refs:W,floatingStyles:D,placement:I,isPositioned:O,middlewareData:R}=Rh({strategy:"fixed",placement:V,whileElementsMounted:(...Se)=>gh(...Se,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[jh({mainAxis:o+P,alignmentAxis:i}),d&&Nh({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?kh():void 0,...Q}),d&&Th({...Q}),Ah({...Q,apply:({elements:Se,rects:Te,availableWidth:Ge,availableHeight:Me})=>{const{width:ot,height:Wr}=Te.reference,Ze=Se.floating.style;Ze.setProperty("--radix-popper-available-width",`${Ge}px`),Ze.setProperty("--radix-popper-available-height",`${Me}px`),Ze.setProperty("--radix-popper-anchor-width",`${ot}px`),Ze.setProperty("--radix-popper-anchor-height",`${Wr}px`)}}),E&&Ih({element:E,padding:l}),Bh({arrowWidth:A,arrowHeight:P}),g&&_h({strategy:"referenceHidden",...Q})]}),[M,B]=El(I),J=De(b);be(()=>{O&&(J==null||J())},[O,J]);const k=(_=R.arrow)==null?void 0:_.x,G=(K=R.arrow)==null?void 0:K.y,Z=((ee=R.arrow)==null?void 0:ee.centerOffset)!==0,[z,L]=c.useState();return be(()=>{y&&L(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:O?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(oe=R.transformOrigin)==null?void 0:oe.x,(ce=R.transformOrigin)==null?void 0:ce.y].join(" "),...((ie=R.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx($h,{scope:r,placedSide:M,onArrowChange:N,arrowX:k,arrowY:G,shouldHideArrow:Z,children:s.jsx(H.div,{"data-side":M,"data-align":B,...v,ref:C,style:{...v.style,animation:O?void 0:"none"}})})})});wl.displayName=ca;var Cl="PopperArrow",Fh={top:"bottom",right:"left",bottom:"top",left:"right"},Sl=c.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Lh(Cl,n),i=Fh[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(Oh,{...o,ref:r,style:{...o.style,display:"block"}})})});Sl.displayName=Cl;function Vh(e){return e!==null}var Bh=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:r,rects:n,middlewareData:o}=t,i=((h=o.arrow)==null?void 0:h.centerOffset)!==0,l=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,f]=El(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+d/2;let b="",v="";return u==="bottom"?(b=i?p:`${g}px`,v=`${-d}px`):u==="top"?(b=i?p:`${g}px`,v=`${n.floating.height+d}px`):u==="right"?(b=`${-d}px`,v=i?p:`${m}px`):u==="left"&&(b=`${n.floating.width+d}px`,v=i?p:`${m}px`),{data:{x:b,y:v}}}});function El(e){const[t,r="center"]=e.split("-");return[t,r]}var Nr=xl,kr=yl,Tn=wl,An=Sl,Gh="Portal",rr=c.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[o,a]=c.useState(!1);be(()=>a(!0),[]);const i=r||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Sr.createPortal(s.jsx(H.div,{...n,ref:t}),i):null});rr.displayName=Gh;var Wh=c[" useInsertionEffect ".trim().toString()]||be;function ye({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=zh({defaultProp:t,onChange:r}),l=e!==void 0,d=l?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,n])}const u=c.useCallback(f=>{var p;if(l){const g=qh(f)?f(e):f;g!==e&&((p=i.current)==null||p.call(i,g))}else a(f)},[l,e,a,i]);return[d,u]}function zh({defaultProp:e,onChange:t}){const[r,n]=c.useState(e),o=c.useRef(r),a=c.useRef(t);return Wh(()=>{a.current=t},[t]),c.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function qh(e){return typeof e=="function"}function da(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Rl=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"}),Uh="VisuallyHidden",Pl=c.forwardRef((e,t)=>s.jsx(H.span,{...e,ref:t,style:{...Rl,...e.style}}));Pl.displayName=Uh;var Hh=Pl,Kh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$t=new WeakMap,Kr=new WeakMap,Yr={},po=0,jl=function(e){return e&&(e.host||jl(e.parentNode))},Yh=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=jl(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Xh=function(e,t,r,n){var o=Yh(t,Array.isArray(e)?e:[e]);Yr[r]||(Yr[r]=new WeakMap);var a=Yr[r],i=[],l=new Set,d=new Set(o),u=function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(g){if(l.has(g))f(g);else try{var m=g.getAttribute(n),b=m!==null&&m!=="false",v=($t.get(g)||0)+1,h=(a.get(g)||0)+1;$t.set(g,v),a.set(g,h),i.push(g),v===1&&b&&Kr.set(g,!0),h===1&&g.setAttribute(r,"true"),b||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),l.clear(),po++,function(){i.forEach(function(p){var g=$t.get(p)-1,m=a.get(p)-1;$t.set(p,g),a.set(p,m),g||(Kr.has(p)||p.removeAttribute(n),Kr.delete(p)),m||p.removeAttribute(r)}),po--,po||($t=new WeakMap,$t=new WeakMap,Kr=new WeakMap,Yr={})}},_n=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Kh(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Xh(n,o,r,"aria-hidden")):function(){return null}},qe=function(){return qe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qe.apply(this,arguments)};function Nl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Zh(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var tn="right-scroll-bar-position",rn="width-before-scroll-bar",Jh="with-scroll-bars-hidden",Qh="--removed-body-scroll-bar-size";function mo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ex(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var tx=typeof window<"u"?c.useLayoutEffect:c.useEffect,Us=new WeakMap;function rx(e,t){var r=ex(null,function(n){return e.forEach(function(o){return mo(o,n)})});return tx(function(){var n=Us.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(l){a.has(l)||mo(l,null)}),a.forEach(function(l){o.has(l)||mo(l,i)})}Us.set(r,e)},[e]),r}function nx(e){return e}function ox(e,t){t===void 0&&(t=nx);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(a),i=r}var d=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),r={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),r}}}};return o}function ax(e){e===void 0&&(e={});var t=ox(null);return t.options=qe({async:!0,ssr:!1},e),t}var kl=function(e){var t=e.sideCar,r=Nl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return c.createElement(n,qe({},r))};kl.isSideCarExport=!0;function sx(e,t){return e.useMedium(t),kl}var Tl=ax(),go=function(){},In=c.forwardRef(function(e,t){var r=c.useRef(null),n=c.useState({onScrollCapture:go,onWheelCapture:go,onTouchMoveCapture:go}),o=n[0],a=n[1],i=e.forwardProps,l=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,E=Nl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=g,T=rx([r,t]),A=qe(qe({},E),o);return c.createElement(c.Fragment,null,f&&c.createElement(N,{sideCar:Tl,removeScrollBar:u,shards:p,noRelative:m,noIsolation:b,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:C}),i?c.cloneElement(c.Children.only(l),qe(qe({},A),{ref:T})):c.createElement(x,qe({},A,{className:d,ref:T}),l))});In.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};In.classNames={fullWidth:rn,zeroRight:tn};var ix=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ix();return t&&e.setAttribute("nonce",t),e}function cx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ux=function(){var e=0,t=null;return{add:function(r){e==0&&(t=lx())&&(cx(t,r),dx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fx=function(){var e=ux();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Al=function(){var e=fx(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},px={left:0,top:0,right:0,gap:0},vo=function(e){return parseInt(e||"",10)||0},mx=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[vo(r),vo(n),vo(o)]},gx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return px;var t=mx(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},vx=Al(),Ut="data-scroll-locked",hx=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
156
+ .`.concat(Jh,` {
157
157
  overflow: hidden `).concat(n,`;
158
158
  padding-right: `).concat(l,"px ").concat(n,`;
159
159
  }
160
- body[`).concat(zt,`] {
160
+ body[`).concat(Ut,`] {
161
161
  overflow: hidden `).concat(n,`;
162
162
  overscroll-behavior: contain;
163
163
  `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
@@ -186,22 +186,22 @@ React keys must be passed directly to JSX without using spread:
186
186
  margin-right: 0 `).concat(n,`;
187
187
  }
188
188
 
189
- body[`).concat(zt,`] {
190
- `).concat(Bh,": ").concat(l,`px;
189
+ body[`).concat(Ut,`] {
190
+ `).concat(Qh,": ").concat(l,`px;
191
191
  }
192
- `)},qs=function(){var e=parseInt(document.body.getAttribute(zt)||"0",10);return isFinite(e)?e:0},sx=function(){c.useEffect(function(){return document.body.setAttribute(zt,(qs()+1).toString()),function(){var e=qs()-1;e<=0?document.body.removeAttribute(zt):document.body.setAttribute(zt,e.toString())}},[])},ix=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;sx();var a=c.useMemo(function(){return nx(o)},[o]);return c.createElement(ox,{styles:ax(a,!t,o,r?"":"!important")})},Ao=!1;if(typeof window<"u")try{var Xr=Object.defineProperty({},"passive",{get:function(){return Ao=!0,!0}});window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{Ao=!1}var Dt=Ao?{passive:!1}:!1,lx=function(e){return e.tagName==="TEXTAREA"},Tl=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lx(e)&&r[t]==="visible")},cx=function(e){return Tl(e,"overflowY")},dx=function(e){return Tl(e,"overflowX")},Us=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Al(e,n);if(o){var a=_l(e,n),i=a[1],l=a[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ux=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},fx=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Al=function(e,t){return e==="v"?cx(t):dx(t)},_l=function(e,t){return e==="v"?ux(t):fx(t)},px=function(e,t){return e==="h"&&t==="rtl"?-1:1},mx=function(e,t,r,n,o){var a=px(e,window.getComputedStyle(t).direction),i=a*n,l=r.target,d=t.contains(l),u=!1,f=i>0,p=0,g=0;do{if(!l)break;var m=_l(e,l),b=m[0],v=m[1],h=m[2],y=v-h-a*b;(b||y)&&Al(e,l)&&(p+=y,g+=b);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},Zr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hs=function(e){return[e.deltaX,e.deltaY]},Ks=function(e){return e&&"current"in e?e.current:e},gx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vx=function(e){return`
192
+ `)},Hs=function(){var e=parseInt(document.body.getAttribute(Ut)||"0",10);return isFinite(e)?e:0},xx=function(){c.useEffect(function(){return document.body.setAttribute(Ut,(Hs()+1).toString()),function(){var e=Hs()-1;e<=0?document.body.removeAttribute(Ut):document.body.setAttribute(Ut,e.toString())}},[])},bx=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;xx();var a=c.useMemo(function(){return gx(o)},[o]);return c.createElement(vx,{styles:hx(a,!t,o,r?"":"!important")})},Mo=!1;if(typeof window<"u")try{var Xr=Object.defineProperty({},"passive",{get:function(){return Mo=!0,!0}});window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{Mo=!1}var Lt=Mo?{passive:!1}:!1,yx=function(e){return e.tagName==="TEXTAREA"},_l=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!yx(e)&&r[t]==="visible")},wx=function(e){return _l(e,"overflowY")},Cx=function(e){return _l(e,"overflowX")},Ks=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Il(e,n);if(o){var a=Ml(e,n),i=a[1],l=a[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Sx=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ex=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Il=function(e,t){return e==="v"?wx(t):Cx(t)},Ml=function(e,t){return e==="v"?Sx(t):Ex(t)},Rx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Px=function(e,t,r,n,o){var a=Rx(e,window.getComputedStyle(t).direction),i=a*n,l=r.target,d=t.contains(l),u=!1,f=i>0,p=0,g=0;do{if(!l)break;var m=Ml(e,l),b=m[0],v=m[1],h=m[2],y=v-h-a*b;(b||y)&&Il(e,l)&&(p+=y,g+=b);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},Zr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ys=function(e){return[e.deltaX,e.deltaY]},Xs=function(e){return e&&"current"in e?e.current:e},jx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nx=function(e){return`
193
193
  .block-interactivity-`.concat(e,` {pointer-events: none;}
194
194
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
195
- `)},hx=0,$t=[];function xx(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),o=c.useState(hx++)[0],a=c.useState(kl)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Fh([e.lockRef.current],(e.shards||[]).map(Ks),!0).filter(Boolean);return v.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(v,h){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var y=Zr(v),x=r.current,C="deltaX"in v?v.deltaX:x[0]-y[0],E="deltaY"in v?v.deltaY:x[1]-y[1],j,T=v.target,A=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in v&&A==="h"&&T.type==="range")return!1;var P=Us(A,T);if(!P)return!0;if(P?j=A:(j=A==="v"?"h":"v",P=Us(A,T)),!P)return!1;if(!n.current&&"changedTouches"in v&&(C||E)&&(n.current=j),!j)return!0;var F=n.current||j;return mx(F,h,v,F==="h"?C:E)},[]),d=c.useCallback(function(v){var h=v;if(!(!$t.length||$t[$t.length-1]!==a)){var y="deltaY"in h?Hs(h):Zr(h),x=t.current.filter(function(j){return j.name===h.type&&(j.target===h.target||h.target===j.shadowParent)&&gx(j.delta,y)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var C=(i.current.shards||[]).map(Ks).filter(Boolean).filter(function(j){return j.contains(h.target)}),E=C.length>0?l(h,C[0]):!i.current.noIsolation;E&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(v,h,y,x){var C={name:v,delta:h,target:y,should:x,shadowParent:bx(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=c.useCallback(function(v){r.current=Zr(v),n.current=void 0},[]),p=c.useCallback(function(v){u(v.type,Hs(v),v.target,l(v,e.lockRef.current))},[]),g=c.useCallback(function(v){u(v.type,Zr(v),v.target,l(v,e.lockRef.current))},[]);c.useEffect(function(){return $t.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,Dt),document.addEventListener("touchmove",d,Dt),document.addEventListener("touchstart",f,Dt),function(){$t=$t.filter(function(v){return v!==a}),document.removeEventListener("wheel",d,Dt),document.removeEventListener("touchmove",d,Dt),document.removeEventListener("touchstart",f,Dt)}},[]);var m=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:vx(o)}):null,m?c.createElement(ix,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yx=Kh(Nl,xx);var Tr=c.forwardRef(function(e,t){return c.createElement(In,qe({},e,{ref:t,sideCar:yx}))});Tr.classNames=In.classNames;var wx=[" ","Enter","ArrowUp","ArrowDown"],Cx=[" ","Enter"],Et="Select",[Mn,On,Sx]=En(Et),[rr,OR]=we(Et,[Sx,ut]),Dn=ut(),[Ex,ft]=rr(Et),[Rx,Px]=rr(Et),Il=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:g,required:m,form:b}=e,v=Dn(t),[h,y]=c.useState(null),[x,C]=c.useState(null),[E,j]=c.useState(!1),T=Zt(u),[A,P]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:Et}),[F,U]=ye({prop:i,defaultProp:l,onChange:d,caller:Et}),re=c.useRef(null),ee=h?b||!!h.closest("form"):!0,[J,z]=c.useState(new Set),$=Array.from(J).map(_=>_.props.value).join(";");return s.jsx(Nr,{...v,children:s.jsxs(Ex,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:j,contentId:ge(),value:F,onValueChange:U,open:A,onOpenChange:P,dir:T,triggerPointerDownPosRef:re,disabled:g,children:[s.jsx(Mn.Provider,{scope:t,children:s.jsx(Rx,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(_=>{z(D=>new Set(D).add(_))},[]),onNativeOptionRemove:c.useCallback(_=>{z(D=>{const R=new Set(D);return R.delete(_),R})},[]),children:r})}),ee?s.jsxs(oc,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:F,onChange:_=>U(_.target.value),disabled:g,form:b,children:[F===void 0?s.jsx("option",{value:""}):null,Array.from(J)]},$):null]})})};Il.displayName=Et;var Ml="SelectTrigger",Ol=c.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Dn(r),i=ft(Ml,r),l=i.disabled||n,d=se(t,i.onTriggerChange),u=On(r),f=c.useRef("touch"),[p,g,m]=sc(v=>{const h=u().filter(C=>!C.disabled),y=h.find(C=>C.value===i.value),x=ic(h,v,y);x!==void 0&&i.onValueChange(x.value)}),b=v=>{l||(i.onOpenChange(!0),m()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return s.jsx(kr,{asChild:!0,...a,children:s.jsx(Z.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":ac(i.value)?"":void 0,...o,ref:d,onClick:G(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&b(v)}),onPointerDown:G(o.onPointerDown,v=>{f.current=v.pointerType;const h=v.target;h.hasPointerCapture(v.pointerId)&&h.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(b(v),v.preventDefault())}),onKeyDown:G(o.onKeyDown,v=>{const h=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(h&&v.key===" ")&&wx.includes(v.key)&&(b(),v.preventDefault())})})})});Ol.displayName=Ml;var Dl="SelectValue",$l=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...l}=e,d=ft(Dl,r),{onValueNodeHasChildrenChange:u}=d,f=a!==void 0,p=se(t,d.onValueNodeChange);return be(()=>{u(f)},[u,f]),s.jsx(Z.span,{...l,ref:p,style:{pointerEvents:"none"},children:ac(d.value)?s.jsx(s.Fragment,{children:i}):a})});$l.displayName=Dl;var jx="SelectIcon",Ll=c.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return s.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ll.displayName=jx;var Nx="SelectPortal",Fl=e=>s.jsx(tr,{asChild:!0,...e});Fl.displayName=Nx;var Rt="SelectContent",Vl=c.forwardRef((e,t)=>{const r=ft(Rt,e.__scopeSelect),[n,o]=c.useState();if(be(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?yn.createPortal(s.jsx(Bl,{scope:e.__scopeSelect,children:s.jsx(Mn.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(Gl,{...e,ref:t})});Vl.displayName=Rt;var Oe=10,[Bl,pt]=rr(Rt),kx="SelectContentImpl",Tx=it("SelectContent.RemoveScroll"),Gl=c.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h,...y}=e,x=ft(Rt,r),[C,E]=c.useState(null),[j,T]=c.useState(null),A=se(t,I=>E(I)),[P,F]=c.useState(null),[U,re]=c.useState(null),ee=On(r),[J,z]=c.useState(!1),$=c.useRef(!1);c.useEffect(()=>{if(C)return _n(C)},[C]),Rn();const _=c.useCallback(I=>{const[Q,...te]=ee().map(ie=>ie.ref.current),[oe]=te.slice(-1),ce=document.activeElement;for(const ie of I)if(ie===ce||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===Q&&j&&(j.scrollTop=0),ie===oe&&j&&(j.scrollTop=j.scrollHeight),ie==null||ie.focus(),document.activeElement!==ce))return},[ee,j]),D=c.useCallback(()=>_([P,C]),[_,P,C]);c.useEffect(()=>{J&&D()},[J,D]);const{onOpenChange:R,triggerPointerDownPosRef:M}=x;c.useEffect(()=>{if(C){let I={x:0,y:0};const Q=oe=>{var ce,ie;I={x:Math.abs(Math.round(oe.pageX)-(((ce=M.current)==null?void 0:ce.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((ie=M.current)==null?void 0:ie.y)??0))}},te=oe=>{I.x<=10&&I.y<=10?oe.preventDefault():C.contains(oe.target)||R(!1),document.removeEventListener("pointermove",Q),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",te,{capture:!0})}}},[C,R,M]),c.useEffect(()=>{const I=()=>R(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[R]);const[V,X]=sc(I=>{const Q=ee().filter(ce=>!ce.disabled),te=Q.find(ce=>ce.ref.current===document.activeElement),oe=ic(Q,I,te);oe&&setTimeout(()=>oe.ref.current.focus())}),k=c.useCallback((I,Q,te)=>{const oe=!$.current&&!te;(x.value!==void 0&&x.value===Q||oe)&&(F(I),oe&&($.current=!0))},[x.value]),B=c.useCallback(()=>C==null?void 0:C.focus(),[C]),Y=c.useCallback((I,Q,te)=>{const oe=!$.current&&!te;(x.value!==void 0&&x.value===Q||oe)&&re(I)},[x.value]),O=n==="popper"?_o:Wl,W=O===_o?{side:l,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h}:{};return s.jsx(Bl,{scope:r,content:C,viewport:j,onViewportChange:T,itemRefCallback:k,selectedItem:P,onItemLeave:B,itemTextRefCallback:Y,focusSelectedItem:D,selectedItemText:U,position:n,isPositioned:J,searchRef:V,children:s.jsx(Tr,{as:Tx,allowPinchZoom:!0,children:s.jsx(Pr,{asChild:!0,trapped:x.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:G(o,I=>{var Q;(Q=x.trigger)==null||Q.focus({preventScroll:!0}),I.preventDefault()}),children:s.jsx(Jt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:s.jsx(O,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:I=>I.preventDefault(),...y,...W,onPlaced:()=>z(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:G(y.onKeyDown,I=>{const Q=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!Q&&I.key.length===1&&X(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let oe=ee().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(I.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const ce=I.target,ie=oe.indexOf(ce);oe=oe.slice(ie+1)}setTimeout(()=>_(oe)),I.preventDefault()}})})})})})})});Gl.displayName=kx;var Ax="SelectItemAlignedPosition",Wl=c.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=ft(Rt,r),i=pt(Rt,r),[l,d]=c.useState(null),[u,f]=c.useState(null),p=se(t,A=>f(A)),g=On(r),m=c.useRef(!1),b=c.useRef(!0),{viewport:v,selectedItem:h,selectedItemText:y,focusSelectedItem:x}=i,C=c.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&v&&h&&y){const A=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),F=a.valueNode.getBoundingClientRect(),U=y.getBoundingClientRect();if(a.dir!=="rtl"){const ce=U.left-P.left,ie=F.left-ce,Se=A.left-ie,Te=A.width+Se,Ge=Math.max(Te,P.width),Me=window.innerWidth-Oe,ot=Es(ie,[Oe,Math.max(Oe,Me-Ge)]);l.style.minWidth=Te+"px",l.style.left=ot+"px"}else{const ce=P.right-U.right,ie=window.innerWidth-F.right-ce,Se=window.innerWidth-A.right-ie,Te=A.width+Se,Ge=Math.max(Te,P.width),Me=window.innerWidth-Oe,ot=Es(ie,[Oe,Math.max(Oe,Me-Ge)]);l.style.minWidth=Te+"px",l.style.right=ot+"px"}const re=g(),ee=window.innerHeight-Oe*2,J=v.scrollHeight,z=window.getComputedStyle(u),$=parseInt(z.borderTopWidth,10),_=parseInt(z.paddingTop,10),D=parseInt(z.borderBottomWidth,10),R=parseInt(z.paddingBottom,10),M=$+_+J+R+D,V=Math.min(h.offsetHeight*5,M),X=window.getComputedStyle(v),k=parseInt(X.paddingTop,10),B=parseInt(X.paddingBottom,10),Y=A.top+A.height/2-Oe,O=ee-Y,W=h.offsetHeight/2,I=h.offsetTop+W,Q=$+_+I,te=M-Q;if(Q<=Y){const ce=re.length>0&&h===re[re.length-1].ref.current;l.style.bottom="0px";const ie=u.clientHeight-v.offsetTop-v.offsetHeight,Se=Math.max(O,W+(ce?B:0)+ie+D),Te=Q+Se;l.style.height=Te+"px"}else{const ce=re.length>0&&h===re[0].ref.current;l.style.top="0px";const Se=Math.max(Y,$+v.offsetTop+(ce?k:0)+W)+te;l.style.height=Se+"px",v.scrollTop=Q-Y+v.offsetTop}l.style.margin=`${Oe}px 0`,l.style.minHeight=V+"px",l.style.maxHeight=ee+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,l,u,v,h,y,a.dir,n]);be(()=>C(),[C]);const[E,j]=c.useState();be(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const T=c.useCallback(A=>{A&&b.current===!0&&(C(),x==null||x(),b.current=!1)},[C,x]);return s.jsx(Ix,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:s.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:s.jsx(Z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Wl.displayName=Ax;var _x="SelectPopperPosition",_o=c.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Oe,...a}=e,i=Dn(r);return s.jsx(Tn,{...i,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});_o.displayName=_x;var[Ix,la]=rr(Rt,{}),Io="SelectViewport",zl=c.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=pt(Io,r),i=la(Io,r),l=se(t,a.onViewportChange),d=c.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),s.jsx(Mn.Slot,{scope:r,children:s.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:G(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&p){const m=Math.abs(d.current-f.scrollTop);if(m>0){const b=window.innerHeight-Oe*2,v=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(v,h);if(y<b){const x=y+m,C=Math.min(b,x),E=x-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});zl.displayName=Io;var ql="SelectGroup",[Mx,Ox]=rr(ql),Ul=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ge();return s.jsx(Mx,{scope:r,id:o,children:s.jsx(Z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Ul.displayName=ql;var Hl="SelectLabel",Kl=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ox(Hl,r);return s.jsx(Z.div,{id:o.id,...n,ref:t})});Kl.displayName=Hl;var cn="SelectItem",[Dx,Yl]=rr(cn),Xl=c.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...i}=e,l=ft(cn,r),d=pt(cn,r),u=l.value===n,[f,p]=c.useState(a??""),[g,m]=c.useState(!1),b=se(t,x=>{var C;return(C=d.itemRefCallback)==null?void 0:C.call(d,x,n,o)}),v=ge(),h=c.useRef("touch"),y=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(Dx,{scope:r,value:n,disabled:o,textId:v,isSelected:u,onItemTextChange:c.useCallback(x=>{p(C=>C||((x==null?void 0:x.textContent)??"").trim())},[]),children:s.jsx(Mn.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:s.jsx(Z.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:G(i.onFocus,()=>m(!0)),onBlur:G(i.onBlur,()=>m(!1)),onClick:G(i.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:G(i.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:G(i.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:G(i.onPointerMove,x=>{var C;h.current=x.pointerType,o?(C=d.onItemLeave)==null||C.call(d):h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(i.onPointerLeave,x=>{var C;x.currentTarget===document.activeElement&&((C=d.onItemLeave)==null||C.call(d))}),onKeyDown:G(i.onKeyDown,x=>{var E;((E=d.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(Cx.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Xl.displayName=cn;var ur="SelectItemText",Zl=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,i=ft(ur,r),l=pt(ur,r),d=Yl(ur,r),u=Px(ur,r),[f,p]=c.useState(null),g=se(t,y=>p(y),d.onItemTextChange,y=>{var x;return(x=l.itemTextRefCallback)==null?void 0:x.call(l,y,d.value,d.disabled)}),m=f==null?void 0:f.textContent,b=c.useMemo(()=>s.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:h}=u;return be(()=>(v(b),()=>h(b)),[v,h,b]),s.jsxs(s.Fragment,{children:[s.jsx(Z.span,{id:d.textId,...a,ref:g}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?yn.createPortal(a.children,i.valueNode):null]})});Zl.displayName=ur;var Jl="SelectItemIndicator",Ql=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Yl(Jl,r).isSelected?s.jsx(Z.span,{"aria-hidden":!0,...n,ref:t}):null});Ql.displayName=Jl;var Mo="SelectScrollUpButton",ec=c.forwardRef((e,t)=>{const r=pt(Mo,e.__scopeSelect),n=la(Mo,e.__scopeSelect),[o,a]=c.useState(!1),i=se(t,n.onScrollButtonChange);return be(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=d.scrollTop>0;a(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?s.jsx(rc,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});ec.displayName=Mo;var Oo="SelectScrollDownButton",tc=c.forwardRef((e,t)=>{const r=pt(Oo,e.__scopeSelect),n=la(Oo,e.__scopeSelect),[o,a]=c.useState(!1),i=se(t,n.onScrollButtonChange);return be(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;a(f)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?s.jsx(rc,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});tc.displayName=Oo;var rc=c.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=pt("SelectScrollButton",r),i=c.useRef(null),l=On(r),d=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>d(),[d]),be(()=>{var f;const u=l().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),s.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:G(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:G(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:G(o.onPointerLeave,()=>{d()})})}),$x="SelectSeparator",nc=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return s.jsx(Z.div,{"aria-hidden":!0,...n,ref:t})});nc.displayName=$x;var Do="SelectArrow",Lx=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Dn(r),a=ft(Do,r),i=pt(Do,r);return a.open&&i.position==="popper"?s.jsx(An,{...o,...n,ref:t}):null});Lx.displayName=Do;var Fx="SelectBubbleInput",oc=c.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=c.useRef(null),a=se(n,o),i=ia(t);return c.useEffect(()=>{const l=o.current;if(!l)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&f){const p=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(p)}},[i,t]),s.jsx(Z.select,{...r,style:{...Sl,...r.style},ref:a,defaultValue:t})});oc.displayName=Fx;function ac(e){return e===""||e===void 0}function sc(e){const t=De(e),r=c.useRef(""),n=c.useRef(0),o=c.useCallback(i=>{const l=r.current+i;t(l),(function d(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>d(""),1e3))})(l)},[t]),a=c.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ic(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=Vx(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==r));const d=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function Vx(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Bx=Il,lc=Ol,Gx=$l,Wx=Ll,zx=Fl,cc=Vl,qx=zl,Ux=Ul,dc=Kl,uc=Xl,Hx=Zl,Kx=Ql,fc=ec,pc=tc,mc=nc;const Yx=Bx,Xx=Ux,Zx=Gx,gc=c.forwardRef(({className:e,children:t,readOnly:r,...n},o)=>{const a=i=>{r&&i.preventDefault()};return s.jsxs(lc,{ref:o,"data-readonly":r||void 0,disabled:n.disabled,onPointerDown:n.disabled?n.onPointerDown:a,tabIndex:r?0:void 0,className:N(N("qodo qodo-select-trigger flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-muted-700 border-purple-muted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-muted-300 md:text-sm selection:bg-primary selection:text-primary-foreground","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px]","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40","disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200",e)),...n,children:[s.jsx("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis",children:t}),s.jsx(Wx,{asChild:!0,children:s.jsx(Cn,{className:"h-4 w-4 text-purple-muted-300"})})]})});gc.displayName=lc.displayName;const ca=c.forwardRef(({className:e,...t},r)=>s.jsx(fc,{ref:r,className:N("qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(ug,{className:"h-4 w-4"})}));ca.displayName=fc.displayName;const da=c.forwardRef(({className:e,...t},r)=>s.jsx(pc,{ref:r,className:N("qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Cn,{className:"h-4 w-4"})}));da.displayName=pc.displayName;const vc=c.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},a)=>s.jsx(zx,{container:n,children:s.jsxs(cc,{ref:a,className:N("qodo qodo-select-content relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-muted-600 border-purple-muted-500 text-purple-muted-300 shadow-md 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[s.jsx(ca,{}),s.jsx(qx,{className:N("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(da,{})]})}));vc.displayName=cc.displayName;const hc=c.forwardRef(({className:e,...t},r)=>s.jsx(dc,{ref:r,className:N("qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));hc.displayName=dc.displayName;const xc=c.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(uc,{ref:n,title:r.value,className:N(N("qodo qodo-select-item relative w-full cursor-default select-none rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-muted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","block overflow-hidden whitespace-nowrap text-ellipsis"),e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 mt-0.5",children:s.jsx(Kx,{children:s.jsx(Er,{className:"h-4 w-4"})})}),s.jsx(Hx,{children:t})]}));xc.displayName=uc.displayName;const bc=c.forwardRef(({className:e,...t},r)=>s.jsx(mc,{ref:r,className:N("qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",e),...t}));bc.displayName=mc.displayName;var Ys=1,Jx=.9,Qx=.8,eb=.17,mo=.1,go=.999,tb=.9999,rb=.99,nb=/[\\\/_+.#"@\[\(\{&]/,ob=/[\\\/_+.#"@\[\(\{&]/g,ab=/[\s-]/,yc=/[\s-]/g;function $o(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?Ys:rb;var l=`${o},${a}`;if(i[l]!==void 0)return i[l];for(var d=n.charAt(a),u=r.indexOf(d,o),f=0,p,g,m,b;u>=0;)p=$o(e,t,r,n,u+1,a+1,i),p>f&&(u===o?p*=Ys:nb.test(e.charAt(u-1))?(p*=Qx,m=e.slice(o,u-1).match(ob),m&&o>0&&(p*=Math.pow(go,m.length))):ab.test(e.charAt(u-1))?(p*=Jx,b=e.slice(o,u-1).match(yc),b&&o>0&&(p*=Math.pow(go,b.length))):(p*=eb,o>0&&(p*=Math.pow(go,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=tb)),(p<mo&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(g=$o(e,t,r,n,u+1,a+2,i),g*mo>p&&(p=g*mo)),p>f&&(f=p),u=r.indexOf(d,u+1);return i[l]=f,f}function Xs(e){return e.toLowerCase().replace(yc," ")}function sb(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,$o(e,t,Xs(e),Xs(t),0,0,{})}function ib(e,t){return c.useReducer((r,n)=>t[r][n]??r,e)}var je=e=>{const{present:t,children:r}=e,n=lb(t),o=typeof r=="function"?r({present:n.isPresent}):c.Children.only(r),a=se(n.ref,cb(o));return typeof r=="function"||n.isPresent?c.cloneElement(o,{ref:a}):null};je.displayName="Presence";function lb(e){const[t,r]=c.useState(),n=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,d]=ib(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Jr(n.current);a.current=l==="mounted"?u:"none"},[l]),be(()=>{const u=n.current,f=o.current;if(f!==e){const g=a.current,m=Jr(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),be(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const v=Jr(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=m=>{m.target===t&&(a.current=Jr(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Jr(e){return(e==null?void 0:e.animationName)||"none"}function cb(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $n="Dialog",[wc,DR]=we($n),[db,Fe]=wc($n),Cc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=c.useRef(null),d=c.useRef(null),[u,f]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:$n});return s.jsx(db,{scope:t,triggerRef:l,contentRef:d,contentId:ge(),titleId:ge(),descriptionId:ge(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:i,children:r})};Cc.displayName=$n;var Sc="DialogTrigger",Ec=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Sc,r),a=se(t,o.triggerRef);return s.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pa(o.open),...n,ref:a,onClick:G(e.onClick,o.onOpenToggle)})});Ec.displayName=Sc;var ua="DialogPortal",[ub,Rc]=wc(ua,{forceMount:void 0}),Pc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Fe(ua,t);return s.jsx(ub,{scope:t,forceMount:r,children:c.Children.map(n,i=>s.jsx(je,{present:r||a.open,children:s.jsx(tr,{asChild:!0,container:o,children:i})}))})};Pc.displayName=ua;var dn="DialogOverlay",jc=c.forwardRef((e,t)=>{const r=Rc(dn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Fe(dn,e.__scopeDialog);return a.modal?s.jsx(je,{present:n||a.open,children:s.jsx(pb,{...o,ref:t})}):null});jc.displayName=dn;var fb=it("DialogOverlay.RemoveScroll"),pb=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(dn,r);return s.jsx(Tr,{as:fb,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(Z.div,{"data-state":pa(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Pt="DialogContent",Nc=c.forwardRef((e,t)=>{const r=Rc(Pt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Fe(Pt,e.__scopeDialog);return s.jsx(je,{present:n||a.open,children:a.modal?s.jsx(mb,{...o,ref:t}):s.jsx(gb,{...o,ref:t})})});Nc.displayName=Pt;var mb=c.forwardRef((e,t)=>{const r=Fe(Pt,e.__scopeDialog),n=c.useRef(null),o=se(t,r.contentRef,n);return c.useEffect(()=>{const a=n.current;if(a)return _n(a)},[]),s.jsx(kc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:G(e.onFocusOutside,a=>a.preventDefault())})}),gb=c.forwardRef((e,t)=>{const r=Fe(Pt,e.__scopeDialog),n=c.useRef(!1),o=c.useRef(!1);return s.jsx(kc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),kc=c.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Fe(Pt,r),d=c.useRef(null),u=se(t,d);return Rn(),s.jsxs(s.Fragment,{children:[s.jsx(Pr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Jt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":pa(l.open),...i,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(vb,{titleId:l.titleId}),s.jsx(xb,{contentRef:d,descriptionId:l.descriptionId})]})]})}),fa="DialogTitle",Tc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(fa,r);return s.jsx(Z.h2,{id:o.titleId,...n,ref:t})});Tc.displayName=fa;var Ac="DialogDescription",_c=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Ac,r);return s.jsx(Z.p,{id:o.descriptionId,...n,ref:t})});_c.displayName=Ac;var Ic="DialogClose",Mc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Ic,r);return s.jsx(Z.button,{type:"button",...n,ref:t,onClick:G(e.onClick,()=>o.onOpenChange(!1))})});Mc.displayName=Ic;function pa(e){return e?"open":"closed"}var Oc="DialogTitleWarning",[$R,Dc]=Fg(Oc,{contentName:Pt,titleName:fa,docsSlug:"dialog"}),vb=({titleId:e})=>{const t=Dc(Oc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
195
+ `)},kx=0,Ft=[];function Tx(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),o=c.useState(kx++)[0],a=c.useState(Al)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Zh([e.lockRef.current],(e.shards||[]).map(Xs),!0).filter(Boolean);return v.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(v,h){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var y=Zr(v),x=r.current,C="deltaX"in v?v.deltaX:x[0]-y[0],E="deltaY"in v?v.deltaY:x[1]-y[1],N,T=v.target,A=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in v&&A==="h"&&T.type==="range")return!1;var P=Ks(A,T);if(!P)return!0;if(P?N=A:(N=A==="v"?"h":"v",P=Ks(A,T)),!P)return!1;if(!n.current&&"changedTouches"in v&&(C||E)&&(n.current=N),!N)return!0;var V=n.current||N;return Px(V,h,v,V==="h"?C:E)},[]),d=c.useCallback(function(v){var h=v;if(!(!Ft.length||Ft[Ft.length-1]!==a)){var y="deltaY"in h?Ys(h):Zr(h),x=t.current.filter(function(N){return N.name===h.type&&(N.target===h.target||h.target===N.shadowParent)&&jx(N.delta,y)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var C=(i.current.shards||[]).map(Xs).filter(Boolean).filter(function(N){return N.contains(h.target)}),E=C.length>0?l(h,C[0]):!i.current.noIsolation;E&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(v,h,y,x){var C={name:v,delta:h,target:y,should:x,shadowParent:Ax(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=c.useCallback(function(v){r.current=Zr(v),n.current=void 0},[]),p=c.useCallback(function(v){u(v.type,Ys(v),v.target,l(v,e.lockRef.current))},[]),g=c.useCallback(function(v){u(v.type,Zr(v),v.target,l(v,e.lockRef.current))},[]);c.useEffect(function(){return Ft.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,Lt),document.addEventListener("touchmove",d,Lt),document.addEventListener("touchstart",f,Lt),function(){Ft=Ft.filter(function(v){return v!==a}),document.removeEventListener("wheel",d,Lt),document.removeEventListener("touchmove",d,Lt),document.removeEventListener("touchstart",f,Lt)}},[]);var m=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:Nx(o)}):null,m?c.createElement(bx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ax(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _x=sx(Tl,Tx);var Tr=c.forwardRef(function(e,t){return c.createElement(In,qe({},e,{ref:t,sideCar:_x}))});Tr.classNames=In.classNames;var Ix=[" ","Enter","ArrowUp","ArrowDown"],Mx=[" ","Enter"],Rt="Select",[Mn,On,Ox]=En(Rt),[nr,nP]=we(Rt,[Ox,ut]),Dn=ut(),[Dx,ft]=nr(Rt),[$x,Lx]=nr(Rt),Ol=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:g,required:m,form:b}=e,v=Dn(t),[h,y]=c.useState(null),[x,C]=c.useState(null),[E,N]=c.useState(!1),T=Tt(u),[A,P]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:Rt}),[V,U]=ye({prop:i,defaultProp:l,onChange:d,caller:Rt}),re=c.useRef(null),te=h?b||!!h.closest("form"):!0,[Q,W]=c.useState(new Set),D=Array.from(Q).map(I=>I.props.value).join(";");return s.jsx(Nr,{...v,children:s.jsxs(Dx,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:N,contentId:me(),value:V,onValueChange:U,open:A,onOpenChange:P,dir:T,triggerPointerDownPosRef:re,disabled:g,children:[s.jsx(Mn.Provider,{scope:t,children:s.jsx($x,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(I=>{W(O=>new Set(O).add(I))},[]),onNativeOptionRemove:c.useCallback(I=>{W(O=>{const R=new Set(O);return R.delete(I),R})},[]),children:r})}),te?s.jsxs(sc,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:V,onChange:I=>U(I.target.value),disabled:g,form:b,children:[V===void 0?s.jsx("option",{value:""}):null,Array.from(Q)]},D):null]})})};Ol.displayName=Rt;var Dl="SelectTrigger",$l=c.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Dn(r),i=ft(Dl,r),l=i.disabled||n,d=se(t,i.onTriggerChange),u=On(r),f=c.useRef("touch"),[p,g,m]=lc(v=>{const h=u().filter(C=>!C.disabled),y=h.find(C=>C.value===i.value),x=cc(h,v,y);x!==void 0&&i.onValueChange(x.value)}),b=v=>{l||(i.onOpenChange(!0),m()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return s.jsx(kr,{asChild:!0,...a,children:s.jsx(H.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":ic(i.value)?"":void 0,...o,ref:d,onClick:F(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&b(v)}),onPointerDown:F(o.onPointerDown,v=>{f.current=v.pointerType;const h=v.target;h.hasPointerCapture(v.pointerId)&&h.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(b(v),v.preventDefault())}),onKeyDown:F(o.onKeyDown,v=>{const h=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(h&&v.key===" ")&&Ix.includes(v.key)&&(b(),v.preventDefault())})})})});$l.displayName=Dl;var Ll="SelectValue",Fl=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...l}=e,d=ft(Ll,r),{onValueNodeHasChildrenChange:u}=d,f=a!==void 0,p=se(t,d.onValueNodeChange);return be(()=>{u(f)},[u,f]),s.jsx(H.span,{...l,ref:p,style:{pointerEvents:"none"},children:ic(d.value)?s.jsx(s.Fragment,{children:i}):a})});Fl.displayName=Ll;var Fx="SelectIcon",Vl=c.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return s.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Vl.displayName=Fx;var Vx="SelectPortal",Bl=e=>s.jsx(rr,{asChild:!0,...e});Bl.displayName=Vx;var Pt="SelectContent",Gl=c.forwardRef((e,t)=>{const r=ft(Pt,e.__scopeSelect),[n,o]=c.useState();if(be(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?yn.createPortal(s.jsx(Wl,{scope:e.__scopeSelect,children:s.jsx(Mn.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(zl,{...e,ref:t})});Gl.displayName=Pt;var Oe=10,[Wl,pt]=nr(Pt),Bx="SelectContentImpl",Gx=it("SelectContent.RemoveScroll"),zl=c.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h,...y}=e,x=ft(Pt,r),[C,E]=c.useState(null),[N,T]=c.useState(null),A=se(t,_=>E(_)),[P,V]=c.useState(null),[U,re]=c.useState(null),te=On(r),[Q,W]=c.useState(!1),D=c.useRef(!1);c.useEffect(()=>{if(C)return _n(C)},[C]),Rn();const I=c.useCallback(_=>{const[K,...ee]=te().map(ie=>ie.ref.current),[oe]=ee.slice(-1),ce=document.activeElement;for(const ie of _)if(ie===ce||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===K&&N&&(N.scrollTop=0),ie===oe&&N&&(N.scrollTop=N.scrollHeight),ie==null||ie.focus(),document.activeElement!==ce))return},[te,N]),O=c.useCallback(()=>I([P,C]),[I,P,C]);c.useEffect(()=>{Q&&O()},[Q,O]);const{onOpenChange:R,triggerPointerDownPosRef:M}=x;c.useEffect(()=>{if(C){let _={x:0,y:0};const K=oe=>{var ce,ie;_={x:Math.abs(Math.round(oe.pageX)-(((ce=M.current)==null?void 0:ce.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((ie=M.current)==null?void 0:ie.y)??0))}},ee=oe=>{_.x<=10&&_.y<=10?oe.preventDefault():C.contains(oe.target)||R(!1),document.removeEventListener("pointermove",K),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ee,{capture:!0})}}},[C,R,M]),c.useEffect(()=>{const _=()=>R(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[R]);const[B,J]=lc(_=>{const K=te().filter(ce=>!ce.disabled),ee=K.find(ce=>ce.ref.current===document.activeElement),oe=cc(K,_,ee);oe&&setTimeout(()=>oe.ref.current.focus())}),k=c.useCallback((_,K,ee)=>{const oe=!D.current&&!ee;(x.value!==void 0&&x.value===K||oe)&&(V(_),oe&&(D.current=!0))},[x.value]),G=c.useCallback(()=>C==null?void 0:C.focus(),[C]),Z=c.useCallback((_,K,ee)=>{const oe=!D.current&&!ee;(x.value!==void 0&&x.value===K||oe)&&re(_)},[x.value]),z=n==="popper"?Oo:ql,L=z===Oo?{side:l,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:h}:{};return s.jsx(Wl,{scope:r,content:C,viewport:N,onViewportChange:T,itemRefCallback:k,selectedItem:P,onItemLeave:G,itemTextRefCallback:Z,focusSelectedItem:O,selectedItemText:U,position:n,isPositioned:Q,searchRef:B,children:s.jsx(Tr,{as:Gx,allowPinchZoom:!0,children:s.jsx(Pr,{asChild:!0,trapped:x.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:F(o,_=>{var K;(K=x.trigger)==null||K.focus({preventScroll:!0}),_.preventDefault()}),children:s.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:s.jsx(z,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:_=>_.preventDefault(),...y,...L,onPlaced:()=>W(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:F(y.onKeyDown,_=>{const K=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!K&&_.key.length===1&&J(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let oe=te().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(_.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const ce=_.target,ie=oe.indexOf(ce);oe=oe.slice(ie+1)}setTimeout(()=>I(oe)),_.preventDefault()}})})})})})})});zl.displayName=Bx;var Wx="SelectItemAlignedPosition",ql=c.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=ft(Pt,r),i=pt(Pt,r),[l,d]=c.useState(null),[u,f]=c.useState(null),p=se(t,A=>f(A)),g=On(r),m=c.useRef(!1),b=c.useRef(!0),{viewport:v,selectedItem:h,selectedItemText:y,focusSelectedItem:x}=i,C=c.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&v&&h&&y){const A=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),V=a.valueNode.getBoundingClientRect(),U=y.getBoundingClientRect();if(a.dir!=="rtl"){const ce=U.left-P.left,ie=V.left-ce,Se=A.left-ie,Te=A.width+Se,Ge=Math.max(Te,P.width),Me=window.innerWidth-Oe,ot=Ps(ie,[Oe,Math.max(Oe,Me-Ge)]);l.style.minWidth=Te+"px",l.style.left=ot+"px"}else{const ce=P.right-U.right,ie=window.innerWidth-V.right-ce,Se=window.innerWidth-A.right-ie,Te=A.width+Se,Ge=Math.max(Te,P.width),Me=window.innerWidth-Oe,ot=Ps(ie,[Oe,Math.max(Oe,Me-Ge)]);l.style.minWidth=Te+"px",l.style.right=ot+"px"}const re=g(),te=window.innerHeight-Oe*2,Q=v.scrollHeight,W=window.getComputedStyle(u),D=parseInt(W.borderTopWidth,10),I=parseInt(W.paddingTop,10),O=parseInt(W.borderBottomWidth,10),R=parseInt(W.paddingBottom,10),M=D+I+Q+R+O,B=Math.min(h.offsetHeight*5,M),J=window.getComputedStyle(v),k=parseInt(J.paddingTop,10),G=parseInt(J.paddingBottom,10),Z=A.top+A.height/2-Oe,z=te-Z,L=h.offsetHeight/2,_=h.offsetTop+L,K=D+I+_,ee=M-K;if(K<=Z){const ce=re.length>0&&h===re[re.length-1].ref.current;l.style.bottom="0px";const ie=u.clientHeight-v.offsetTop-v.offsetHeight,Se=Math.max(z,L+(ce?G:0)+ie+O),Te=K+Se;l.style.height=Te+"px"}else{const ce=re.length>0&&h===re[0].ref.current;l.style.top="0px";const Se=Math.max(Z,D+v.offsetTop+(ce?k:0)+L)+ee;l.style.height=Se+"px",v.scrollTop=K-Z+v.offsetTop}l.style.margin=`${Oe}px 0`,l.style.minHeight=B+"px",l.style.maxHeight=te+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,l,u,v,h,y,a.dir,n]);be(()=>C(),[C]);const[E,N]=c.useState();be(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const T=c.useCallback(A=>{A&&b.current===!0&&(C(),x==null||x(),b.current=!1)},[C,x]);return s.jsx(qx,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:s.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:s.jsx(H.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ql.displayName=Wx;var zx="SelectPopperPosition",Oo=c.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Oe,...a}=e,i=Dn(r);return s.jsx(Tn,{...i,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Oo.displayName=zx;var[qx,ua]=nr(Pt,{}),Do="SelectViewport",Ul=c.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=pt(Do,r),i=ua(Do,r),l=se(t,a.onViewportChange),d=c.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),s.jsx(Mn.Slot,{scope:r,children:s.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:F(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&p){const m=Math.abs(d.current-f.scrollTop);if(m>0){const b=window.innerHeight-Oe*2,v=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(v,h);if(y<b){const x=y+m,C=Math.min(b,x),E=x-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});Ul.displayName=Do;var Hl="SelectGroup",[Ux,Hx]=nr(Hl),Kl=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=me();return s.jsx(Ux,{scope:r,id:o,children:s.jsx(H.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Kl.displayName=Hl;var Yl="SelectLabel",Xl=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Hx(Yl,r);return s.jsx(H.div,{id:o.id,...n,ref:t})});Xl.displayName=Yl;var cn="SelectItem",[Kx,Zl]=nr(cn),Jl=c.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...i}=e,l=ft(cn,r),d=pt(cn,r),u=l.value===n,[f,p]=c.useState(a??""),[g,m]=c.useState(!1),b=se(t,x=>{var C;return(C=d.itemRefCallback)==null?void 0:C.call(d,x,n,o)}),v=me(),h=c.useRef("touch"),y=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(Kx,{scope:r,value:n,disabled:o,textId:v,isSelected:u,onItemTextChange:c.useCallback(x=>{p(C=>C||((x==null?void 0:x.textContent)??"").trim())},[]),children:s.jsx(Mn.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:s.jsx(H.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:F(i.onFocus,()=>m(!0)),onBlur:F(i.onBlur,()=>m(!1)),onClick:F(i.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:F(i.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:F(i.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:F(i.onPointerMove,x=>{var C;h.current=x.pointerType,o?(C=d.onItemLeave)==null||C.call(d):h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(i.onPointerLeave,x=>{var C;x.currentTarget===document.activeElement&&((C=d.onItemLeave)==null||C.call(d))}),onKeyDown:F(i.onKeyDown,x=>{var E;((E=d.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(Mx.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Jl.displayName=cn;var ur="SelectItemText",Ql=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,i=ft(ur,r),l=pt(ur,r),d=Zl(ur,r),u=Lx(ur,r),[f,p]=c.useState(null),g=se(t,y=>p(y),d.onItemTextChange,y=>{var x;return(x=l.itemTextRefCallback)==null?void 0:x.call(l,y,d.value,d.disabled)}),m=f==null?void 0:f.textContent,b=c.useMemo(()=>s.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:h}=u;return be(()=>(v(b),()=>h(b)),[v,h,b]),s.jsxs(s.Fragment,{children:[s.jsx(H.span,{id:d.textId,...a,ref:g}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?yn.createPortal(a.children,i.valueNode):null]})});Ql.displayName=ur;var ec="SelectItemIndicator",tc=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Zl(ec,r).isSelected?s.jsx(H.span,{"aria-hidden":!0,...n,ref:t}):null});tc.displayName=ec;var $o="SelectScrollUpButton",rc=c.forwardRef((e,t)=>{const r=pt($o,e.__scopeSelect),n=ua($o,e.__scopeSelect),[o,a]=c.useState(!1),i=se(t,n.onScrollButtonChange);return be(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=d.scrollTop>0;a(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?s.jsx(oc,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});rc.displayName=$o;var Lo="SelectScrollDownButton",nc=c.forwardRef((e,t)=>{const r=pt(Lo,e.__scopeSelect),n=ua(Lo,e.__scopeSelect),[o,a]=c.useState(!1),i=se(t,n.onScrollButtonChange);return be(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;a(f)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?s.jsx(oc,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});nc.displayName=Lo;var oc=c.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=pt("SelectScrollButton",r),i=c.useRef(null),l=On(r),d=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>d(),[d]),be(()=>{var f;const u=l().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),s.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:F(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:F(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:F(o.onPointerLeave,()=>{d()})})}),Yx="SelectSeparator",ac=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return s.jsx(H.div,{"aria-hidden":!0,...n,ref:t})});ac.displayName=Yx;var Fo="SelectArrow",Xx=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Dn(r),a=ft(Fo,r),i=pt(Fo,r);return a.open&&i.position==="popper"?s.jsx(An,{...o,...n,ref:t}):null});Xx.displayName=Fo;var Zx="SelectBubbleInput",sc=c.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=c.useRef(null),a=se(n,o),i=da(t);return c.useEffect(()=>{const l=o.current;if(!l)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&f){const p=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(p)}},[i,t]),s.jsx(H.select,{...r,style:{...Rl,...r.style},ref:a,defaultValue:t})});sc.displayName=Zx;function ic(e){return e===""||e===void 0}function lc(e){const t=De(e),r=c.useRef(""),n=c.useRef(0),o=c.useCallback(i=>{const l=r.current+i;t(l),(function d(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>d(""),1e3))})(l)},[t]),a=c.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function cc(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=Jx(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==r));const d=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function Jx(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Qx=Ol,dc=$l,eb=Fl,tb=Vl,rb=Bl,uc=Gl,nb=Ul,ob=Kl,fc=Xl,pc=Jl,ab=Ql,sb=tc,mc=rc,gc=nc,vc=ac;const ib=Qx,lb=ob,cb=eb,hc=c.forwardRef(({className:e,children:t,readOnly:r,...n},o)=>{const a=i=>{r&&i.preventDefault()};return s.jsxs(dc,{ref:o,"data-readonly":r||void 0,disabled:n.disabled,onPointerDown:n.disabled?n.onPointerDown:a,tabIndex:r?0:void 0,className:j(j("qodo qodo-select-trigger flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-muted-700 border-purple-muted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-muted-300 md:text-sm selection:bg-primary selection:text-primary-foreground","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px]","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40","disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200",e)),...n,children:[s.jsx("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis",children:t}),s.jsx(tb,{asChild:!0,children:s.jsx(Cn,{className:"h-4 w-4 text-purple-muted-300"})})]})});hc.displayName=dc.displayName;const fa=c.forwardRef(({className:e,...t},r)=>s.jsx(mc,{ref:r,className:j("qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Sg,{className:"h-4 w-4"})}));fa.displayName=mc.displayName;const pa=c.forwardRef(({className:e,...t},r)=>s.jsx(gc,{ref:r,className:j("qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Cn,{className:"h-4 w-4"})}));pa.displayName=gc.displayName;const xc=c.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},a)=>s.jsx(rb,{container:n,children:s.jsxs(uc,{ref:a,className:j("qodo qodo-select-content relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-muted-600 border-purple-muted-500 text-purple-muted-300 shadow-md 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[s.jsx(fa,{}),s.jsx(nb,{className:j("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(pa,{})]})}));xc.displayName=uc.displayName;const bc=c.forwardRef(({className:e,...t},r)=>s.jsx(fc,{ref:r,className:j("qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));bc.displayName=fc.displayName;const yc=c.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(pc,{ref:n,title:r.value,className:j(j("qodo qodo-select-item relative w-full cursor-default select-none rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-muted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","block overflow-hidden whitespace-nowrap text-ellipsis"),e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 mt-0.5",children:s.jsx(sb,{children:s.jsx(Er,{className:"h-4 w-4"})})}),s.jsx(ab,{children:t})]}));yc.displayName=pc.displayName;const wc=c.forwardRef(({className:e,...t},r)=>s.jsx(vc,{ref:r,className:j("qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",e),...t}));wc.displayName=vc.displayName;var Zs=1,db=.9,ub=.8,fb=.17,ho=.1,xo=.999,pb=.9999,mb=.99,gb=/[\\\/_+.#"@\[\(\{&]/,vb=/[\\\/_+.#"@\[\(\{&]/g,hb=/[\s-]/,Cc=/[\s-]/g;function Vo(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?Zs:mb;var l=`${o},${a}`;if(i[l]!==void 0)return i[l];for(var d=n.charAt(a),u=r.indexOf(d,o),f=0,p,g,m,b;u>=0;)p=Vo(e,t,r,n,u+1,a+1,i),p>f&&(u===o?p*=Zs:gb.test(e.charAt(u-1))?(p*=ub,m=e.slice(o,u-1).match(vb),m&&o>0&&(p*=Math.pow(xo,m.length))):hb.test(e.charAt(u-1))?(p*=db,b=e.slice(o,u-1).match(Cc),b&&o>0&&(p*=Math.pow(xo,b.length))):(p*=fb,o>0&&(p*=Math.pow(xo,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=pb)),(p<ho&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(g=Vo(e,t,r,n,u+1,a+2,i),g*ho>p&&(p=g*ho)),p>f&&(f=p),u=r.indexOf(d,u+1);return i[l]=f,f}function Js(e){return e.toLowerCase().replace(Cc," ")}function xb(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Vo(e,t,Js(e),Js(t),0,0,{})}function bb(e,t){return c.useReducer((r,n)=>t[r][n]??r,e)}var Re=e=>{const{present:t,children:r}=e,n=yb(t),o=typeof r=="function"?r({present:n.isPresent}):c.Children.only(r),a=se(n.ref,wb(o));return typeof r=="function"||n.isPresent?c.cloneElement(o,{ref:a}):null};Re.displayName="Presence";function yb(e){const[t,r]=c.useState(),n=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,d]=bb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Jr(n.current);a.current=l==="mounted"?u:"none"},[l]),be(()=>{const u=n.current,f=o.current;if(f!==e){const g=a.current,m=Jr(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),be(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const v=Jr(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=m=>{m.target===t&&(a.current=Jr(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Jr(e){return(e==null?void 0:e.animationName)||"none"}function wb(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $n="Dialog",[Sc,oP]=we($n),[Cb,Fe]=Sc($n),Ec=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=c.useRef(null),d=c.useRef(null),[u,f]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:$n});return s.jsx(Cb,{scope:t,triggerRef:l,contentRef:d,contentId:me(),titleId:me(),descriptionId:me(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:i,children:r})};Ec.displayName=$n;var Rc="DialogTrigger",Pc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Rc,r),a=se(t,o.triggerRef);return s.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":va(o.open),...n,ref:a,onClick:F(e.onClick,o.onOpenToggle)})});Pc.displayName=Rc;var ma="DialogPortal",[Sb,jc]=Sc(ma,{forceMount:void 0}),Nc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Fe(ma,t);return s.jsx(Sb,{scope:t,forceMount:r,children:c.Children.map(n,i=>s.jsx(Re,{present:r||a.open,children:s.jsx(rr,{asChild:!0,container:o,children:i})}))})};Nc.displayName=ma;var dn="DialogOverlay",kc=c.forwardRef((e,t)=>{const r=jc(dn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Fe(dn,e.__scopeDialog);return a.modal?s.jsx(Re,{present:n||a.open,children:s.jsx(Rb,{...o,ref:t})}):null});kc.displayName=dn;var Eb=it("DialogOverlay.RemoveScroll"),Rb=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(dn,r);return s.jsx(Tr,{as:Eb,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(H.div,{"data-state":va(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),jt="DialogContent",Tc=c.forwardRef((e,t)=>{const r=jc(jt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Fe(jt,e.__scopeDialog);return s.jsx(Re,{present:n||a.open,children:a.modal?s.jsx(Pb,{...o,ref:t}):s.jsx(jb,{...o,ref:t})})});Tc.displayName=jt;var Pb=c.forwardRef((e,t)=>{const r=Fe(jt,e.__scopeDialog),n=c.useRef(null),o=se(t,r.contentRef,n);return c.useEffect(()=>{const a=n.current;if(a)return _n(a)},[]),s.jsx(Ac,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault())})}),jb=c.forwardRef((e,t)=>{const r=Fe(jt,e.__scopeDialog),n=c.useRef(!1),o=c.useRef(!1);return s.jsx(Ac,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ac=c.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Fe(jt,r),d=c.useRef(null),u=se(t,d);return Rn(),s.jsxs(s.Fragment,{children:[s.jsx(Pr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Qt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":va(l.open),...i,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Nb,{titleId:l.titleId}),s.jsx(Tb,{contentRef:d,descriptionId:l.descriptionId})]})]})}),ga="DialogTitle",_c=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(ga,r);return s.jsx(H.h2,{id:o.titleId,...n,ref:t})});_c.displayName=ga;var Ic="DialogDescription",Mc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Ic,r);return s.jsx(H.p,{id:o.descriptionId,...n,ref:t})});Mc.displayName=Ic;var Oc="DialogClose",Dc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Oc,r);return s.jsx(H.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});Dc.displayName=Oc;function va(e){return e?"open":"closed"}var $c="DialogTitleWarning",[aP,Lc]=Zg($c,{contentName:jt,titleName:ga,docsSlug:"dialog"}),Nb=({titleId:e})=>{const t=Lc($c),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
196
196
 
197
197
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
198
198
 
199
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},hb="DialogDescriptionWarning",xb=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Dc(hb).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},$c=Cc,bb=Ec,Lc=Pc,Fc=jc,Vc=Nc,yb=Tc,wb=_c,Bc=Mc,cr='[cmdk-group=""]',vo='[cmdk-group-items=""]',Cb='[cmdk-group-heading=""]',Gc='[cmdk-item=""]',Zs=`${Gc}:not([aria-disabled="true"])`,Lo="cmdk-item-select",Ft="data-value",Sb=(e,t,r)=>sb(e,t,r),Wc=c.createContext(void 0),Ar=()=>c.useContext(Wc),zc=c.createContext(void 0),ma=()=>c.useContext(zc),qc=c.createContext(void 0),Uc=c.forwardRef((e,t)=>{let r=Vt(()=>{var k,B;return{search:"",value:(B=(k=e.value)!=null?k:e.defaultValue)!=null?B:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Vt(()=>new Set),o=Vt(()=>new Map),a=Vt(()=>new Map),i=Vt(()=>new Set),l=Hc(e),{label:d,children:u,value:f,onValueChange:p,filter:g,shouldFilter:m,loop:b,disablePointerSelection:v=!1,vimBindings:h=!0,...y}=e,x=ge(),C=ge(),E=ge(),j=c.useRef(null),T=Mb();jt(()=>{if(f!==void 0){let k=f.trim();r.current.value=k,A.emit()}},[f]),jt(()=>{T(6,J)},[]);let A=c.useMemo(()=>({subscribe:k=>(i.current.add(k),()=>i.current.delete(k)),snapshot:()=>r.current,setState:(k,B,Y)=>{var O,W,I,Q;if(!Object.is(r.current[k],B)){if(r.current[k]=B,k==="search")ee(),U(),T(1,re);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let te=document.getElementById(E);te?te.focus():(O=document.getElementById(x))==null||O.focus()}if(T(7,()=>{var te;r.current.selectedItemId=(te=z())==null?void 0:te.id,A.emit()}),Y||T(5,J),((W=l.current)==null?void 0:W.value)!==void 0){let te=B??"";(Q=(I=l.current).onValueChange)==null||Q.call(I,te);return}}A.emit()}},emit:()=>{i.current.forEach(k=>k())}}),[]),P=c.useMemo(()=>({value:(k,B,Y)=>{var O;B!==((O=a.current.get(k))==null?void 0:O.value)&&(a.current.set(k,{value:B,keywords:Y}),r.current.filtered.items.set(k,F(B,Y)),T(2,()=>{U(),A.emit()}))},item:(k,B)=>(n.current.add(k),B&&(o.current.has(B)?o.current.get(B).add(k):o.current.set(B,new Set([k]))),T(3,()=>{ee(),U(),r.current.value||re(),A.emit()}),()=>{a.current.delete(k),n.current.delete(k),r.current.filtered.items.delete(k);let Y=z();T(4,()=>{ee(),(Y==null?void 0:Y.getAttribute("id"))===k&&re(),A.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{a.current.delete(k),o.current.delete(k)}),filter:()=>l.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:x,inputId:E,labelId:C,listInnerRef:j}),[]);function F(k,B){var Y,O;let W=(O=(Y=l.current)==null?void 0:Y.filter)!=null?O:Sb;return k?W(k,r.current.search,B):0}function U(){if(!r.current.search||l.current.shouldFilter===!1)return;let k=r.current.filtered.items,B=[];r.current.filtered.groups.forEach(O=>{let W=o.current.get(O),I=0;W.forEach(Q=>{let te=k.get(Q);I=Math.max(te,I)}),B.push([O,I])});let Y=j.current;$().sort((O,W)=>{var I,Q;let te=O.getAttribute("id"),oe=W.getAttribute("id");return((I=k.get(oe))!=null?I:0)-((Q=k.get(te))!=null?Q:0)}).forEach(O=>{let W=O.closest(vo);W?W.appendChild(O.parentElement===W?O:O.closest(`${vo} > *`)):Y.appendChild(O.parentElement===Y?O:O.closest(`${vo} > *`))}),B.sort((O,W)=>W[1]-O[1]).forEach(O=>{var W;let I=(W=j.current)==null?void 0:W.querySelector(`${cr}[${Ft}="${encodeURIComponent(O[0])}"]`);I==null||I.parentElement.appendChild(I)})}function re(){let k=$().find(Y=>Y.getAttribute("aria-disabled")!=="true"),B=k==null?void 0:k.getAttribute(Ft);A.setState("value",B||void 0)}function ee(){var k,B,Y,O;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let W=0;for(let I of n.current){let Q=(B=(k=a.current.get(I))==null?void 0:k.value)!=null?B:"",te=(O=(Y=a.current.get(I))==null?void 0:Y.keywords)!=null?O:[],oe=F(Q,te);r.current.filtered.items.set(I,oe),oe>0&&W++}for(let[I,Q]of o.current)for(let te of Q)if(r.current.filtered.items.get(te)>0){r.current.filtered.groups.add(I);break}r.current.filtered.count=W}function J(){var k,B,Y;let O=z();O&&(((k=O.parentElement)==null?void 0:k.firstChild)===O&&((Y=(B=O.closest(cr))==null?void 0:B.querySelector(Cb))==null||Y.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function z(){var k;return(k=j.current)==null?void 0:k.querySelector(`${Gc}[aria-selected="true"]`)}function $(){var k;return Array.from(((k=j.current)==null?void 0:k.querySelectorAll(Zs))||[])}function _(k){let B=$()[k];B&&A.setState("value",B.getAttribute(Ft))}function D(k){var B;let Y=z(),O=$(),W=O.findIndex(Q=>Q===Y),I=O[W+k];(B=l.current)!=null&&B.loop&&(I=W+k<0?O[O.length-1]:W+k===O.length?O[0]:O[W+k]),I&&A.setState("value",I.getAttribute(Ft))}function R(k){let B=z(),Y=B==null?void 0:B.closest(cr),O;for(;Y&&!O;)Y=k>0?_b(Y,cr):Ib(Y,cr),O=Y==null?void 0:Y.querySelector(Zs);O?A.setState("value",O.getAttribute(Ft)):D(k)}let M=()=>_($().length-1),V=k=>{k.preventDefault(),k.metaKey?M():k.altKey?R(1):D(1)},X=k=>{k.preventDefault(),k.metaKey?_(0):k.altKey?R(-1):D(-1)};return c.createElement(Z.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:k=>{var B;(B=y.onKeyDown)==null||B.call(y,k);let Y=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||Y))switch(k.key){case"n":case"j":{h&&k.ctrlKey&&V(k);break}case"ArrowDown":{V(k);break}case"p":case"k":{h&&k.ctrlKey&&X(k);break}case"ArrowUp":{X(k);break}case"Home":{k.preventDefault(),_(0);break}case"End":{k.preventDefault(),M();break}case"Enter":{k.preventDefault();let O=z();if(O){let W=new Event(Lo);O.dispatchEvent(W)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:Db},d),Ln(e,k=>c.createElement(zc.Provider,{value:A},c.createElement(Wc.Provider,{value:P},k))))}),Eb=c.forwardRef((e,t)=>{var r,n;let o=ge(),a=c.useRef(null),i=c.useContext(qc),l=Ar(),d=Hc(e),u=(n=(r=d.current)==null?void 0:r.forceMount)!=null?n:i==null?void 0:i.forceMount;jt(()=>{if(!u)return l.item(o,i==null?void 0:i.id)},[u]);let f=Kc(o,a,[e.value,e.children,a],e.keywords),p=ma(),g=dt(T=>T.value&&T.value===f.current),m=dt(T=>u||l.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);c.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(Lo,b),()=>T.removeEventListener(Lo,b)},[m,e.onSelect,e.disabled]);function b(){var T,A;v(),(A=(T=d.current).onSelect)==null||A.call(T,f.current)}function v(){p.setState("value",f.current,!0)}if(!m)return null;let{disabled:h,value:y,onSelect:x,forceMount:C,keywords:E,...j}=e;return c.createElement(Z.div,{ref:et(a,t),...j,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||l.getDisablePointerSelection()?void 0:v,onClick:h?void 0:b},e.children)}),Rb=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,i=ge(),l=c.useRef(null),d=c.useRef(null),u=ge(),f=Ar(),p=dt(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(i):!0);jt(()=>f.group(i),[]),Kc(i,l,[e.value,e.heading,d]);let g=c.useMemo(()=>({id:i,forceMount:o}),[o]);return c.createElement(Z.div,{ref:et(l,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&c.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Ln(e,m=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},c.createElement(qc.Provider,{value:g},m))))}),Pb=c.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=c.useRef(null),a=dt(i=>!i.search);return!r&&!a?null:c.createElement(Z.div,{ref:et(o,t),...n,"cmdk-separator":"",role:"separator"})}),jb=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=ma(),i=dt(u=>u.search),l=dt(u=>u.selectedItemId),d=Ar();return c.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),c.createElement(Z.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),Nb=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=c.useRef(null),i=c.useRef(null),l=dt(u=>u.selectedItemId),d=Ar();return c.useEffect(()=>{if(i.current&&a.current){let u=i.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let m=u.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),c.createElement(Z.div,{ref:et(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:d.listId},Ln(e,u=>c.createElement("div",{ref:et(i,d.listInnerRef),"cmdk-list-sizer":""},u)))}),kb=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:i,...l}=e;return c.createElement($c,{open:r,onOpenChange:n},c.createElement(Lc,{container:i},c.createElement(Fc,{"cmdk-overlay":"",className:o}),c.createElement(Vc,{"aria-label":e.label,"cmdk-dialog":"",className:a},c.createElement(Uc,{ref:t,...l}))))}),Tb=c.forwardRef((e,t)=>dt(r=>r.filtered.count===0)?c.createElement(Z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Ab=c.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return c.createElement(Z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ln(e,i=>c.createElement("div",{"aria-hidden":!0},i)))}),kt=Object.assign(Uc,{List:Nb,Item:Eb,Input:jb,Group:Rb,Separator:Pb,Dialog:kb,Empty:Tb,Loading:Ab});function _b(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Ib(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Hc(e){let t=c.useRef(e);return jt(()=>{t.current=e}),t}var jt=typeof window>"u"?c.useEffect:c.useLayoutEffect;function Vt(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function dt(e){let t=ma(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function Kc(e,t,r,n=[]){let o=c.useRef(),a=Ar();return jt(()=>{var i;let l=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),d=n.map(u=>u.trim());a.value(e,l,d),(i=t.current)==null||i.setAttribute(Ft,l),o.current=l}),o}var Mb=()=>{let[e,t]=c.useState(),r=Vt(()=>new Map);return jt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Ob(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ln({asChild:e,children:t},r){return e&&c.isValidElement(t)?c.cloneElement(Ob(t),{ref:t.ref},r(t.props.children)):r(t)}var Db={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function $b({...e}){return s.jsx($c,{"data-slot":"dialog",...e})}function Lb({...e}){return s.jsx(bb,{"data-slot":"dialog-trigger",...e})}function Yc({...e}){return s.jsx(Lc,{"data-slot":"dialog-portal",...e})}function Fb({...e}){return s.jsx(Bc,{"data-slot":"dialog-close",...e})}function Xc({className:e,...t}){return s.jsx(Fc,{"data-slot":"dialog-overlay",className:N("qodo qodo-dialog-overlay,","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function Vb({className:e,children:t,showCloseButton:r=!0,...n}){return s.jsxs(Yc,{"data-slot":"dialog-portal",children:[s.jsx(Xc,{}),s.jsxs(Vc,{"data-slot":"dialog-content",className:N("qodo qodo-dialog-content bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&s.jsxs(Bc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[s.jsx(Sn,{}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Bb({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-header",className:N("qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",e),...t})}function Gb({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-footer",className:N("qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Wb({className:e,...t}){return s.jsx(yb,{"data-slot":"dialog-title",className:N("qodo qodo-dialog-title text-lg leading-none font-semibold",e),...t})}function zb({className:e,...t}){return s.jsx(wb,{"data-slot":"dialog-description",className:N("qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Zc({className:e,...t}){return s.jsx(kt,{"data-slot":"command",className:N("qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Jc({className:e,...t}){return s.jsxs("div",{"data-slot":"command-input-wrapper",className:N("qodo qodo-command-input-wrapper","flex h-9 items-center gap-2 border-b border-[var(--border-panel-neutral)] px-3 text-purple-muted-300"),children:[s.jsx(Yi,{className:"size-4 shrink-0 text-purple-muted-300"}),s.jsx(kt.Input,{"data-slot":"command-input",className:N("qodo qodo-command-input","placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Qc({className:e,...t}){return s.jsx(kt.List,{"data-slot":"command-list",className:N("qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function ed({...e}){return s.jsx(kt.Empty,{"data-slot":"command-empty",className:N("qodo qodo-command-empty","py-6 text-center text-sm text-purple-muted-300"),...e})}function qb({className:e,...t}){return s.jsx(kt.Loading,{"data-slot":"command-loading",className:N("qodo qodo-command-loading","py-6 text-center text-sm text-purple-muted-300",e),...t})}function td({className:e,...t}){return s.jsx(kt.Group,{"data-slot":"command-group",className:N("qodo qodo-command-group","text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function rd({className:e,...t}){return s.jsx(kt.Item,{"data-slot":"command-item",className:N("qodo qodo-command-item","data-[selected=true]:bg-purple-muted-500 data-[selected=true]:text-purple-100 [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Fn="Popover",[nd,LR]=we(Fn,[ut]),_r=ut(),[Ub,mt]=nd(Fn),od=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=_r(t),d=c.useRef(null),[u,f]=c.useState(!1),[p,g]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:Fn});return s.jsx(Nr,{...l,children:s.jsx(Ub,{scope:t,contentId:ge(),triggerRef:d,open:p,onOpenChange:g,onOpenToggle:c.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:r})})};od.displayName=Fn;var ad="PopoverAnchor",Hb=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=mt(ad,r),a=_r(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return c.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(kr,{...a,...n,ref:t})});Hb.displayName=ad;var sd="PopoverTrigger",id=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=mt(sd,r),a=_r(r),i=se(t,o.triggerRef),l=s.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fd(o.open),...n,ref:i,onClick:G(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(kr,{asChild:!0,...a,children:l})});id.displayName=sd;var ga="PopoverPortal",[Kb,Yb]=nd(ga,{forceMount:void 0}),ld=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=mt(ga,t);return s.jsx(Kb,{scope:t,forceMount:r,children:s.jsx(je,{present:r||a.open,children:s.jsx(tr,{asChild:!0,container:o,children:n})})})};ld.displayName=ga;var Ut="PopoverContent",cd=c.forwardRef((e,t)=>{const r=Yb(Ut,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=mt(Ut,e.__scopePopover);return s.jsx(je,{present:n||a.open,children:a.modal?s.jsx(Zb,{...o,ref:t}):s.jsx(Jb,{...o,ref:t})})});cd.displayName=Ut;var Xb=it("PopoverContent.RemoveScroll"),Zb=c.forwardRef((e,t)=>{const r=mt(Ut,e.__scopePopover),n=c.useRef(null),o=se(t,n),a=c.useRef(!1);return c.useEffect(()=>{const i=n.current;if(i)return _n(i)},[]),s.jsx(Tr,{as:Xb,allowPinchZoom:!0,children:s.jsx(dd,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),a.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,u=l.button===2||d;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:G(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Jb=c.forwardRef((e,t)=>{const r=mt(Ut,e.__scopePopover),n=c.useRef(!1),o=c.useRef(!1);return s.jsx(dd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),dd=c.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,g=mt(Ut,r),m=_r(r);return Rn(),s.jsx(Pr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Jt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:s.jsx(Tn,{"data-state":fd(g.open),role:"dialog",id:g.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ud="PopoverClose",Qb=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=mt(ud,r);return s.jsx(Z.button,{type:"button",...n,ref:t,onClick:G(e.onClick,()=>o.onOpenChange(!1))})});Qb.displayName=ud;var ey="PopoverArrow",ty=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_r(r);return s.jsx(An,{...o,...n,ref:t})});ty.displayName=ey;function fd(e){return e?"open":"closed"}var ry=od,ny=id,oy=ld,ay=cd;function va({...e}){return s.jsx(ry,{"data-slot":"popover",...e})}function ha({...e}){return s.jsx(ny,{"data-slot":"popover-trigger",...e})}function xa({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsx(oy,{children:s.jsx(ay,{"data-slot":"popover-content",align:t,sideOffset:r,className:N("qodo qodo-popover-content 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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const ba=c.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:a="No option found.",disabled:i=!1,readOnly:l=!1,error:d=!1,className:u,onSearchChange:f,isLoading:p=!1,loadingText:g="Loading...",...m},b)=>{const[v,h]=c.useState(!1),[y,x]=c.useState(""),[C,E]=c.useState(0),j=c.useRef(null),T=e.find(P=>P.value===t),A=P=>{x(P),f==null||f(P)};return c.useEffect(()=>{j.current&&E(j.current.offsetWidth)},[]),s.jsxs(va,{open:l?!1:v,onOpenChange:h,children:[s.jsx(ha,{asChild:!0,children:s.jsxs(Qe,{ref:P=>{typeof b=="function"?b(P):b&&(b.current=P),j.current=P},variant:"outline",role:"combobox","aria-expanded":v,"aria-invalid":d||void 0,"data-readonly":l||void 0,className:N("qodo qodo-combobox w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-muted-500 bg-purple-muted-700 hover:bg-purple-muted-700","text-sm md:text-sm text-purple-muted-300 hover:text-purple-muted-300 focus:text-purple-muted-300 active:text-purple-muted-300 selection:bg-primary selection:text-primary-foreground","font-normal shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px] focus-visible:!ring-offset-0","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40","disabled:!cursor-not-allowed disabled:!pointer-events-auto disabled:opacity-50 disabled:!bg-purple-muted-700 disabled:!border-purple-muted-500 disabled:!text-purple-muted-300 disabled:hover:!bg-purple-muted-700 disabled:hover:!text-purple-muted-300","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200 data-[readonly]:hover:bg-purple-muted-700 data-[readonly]:hover:text-purple-muted-200",{"text-muted-foreground":!T},u),disabled:i,...m,children:[T?T.label:n,s.jsx(pg,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),s.jsx(xa,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-purple-muted-500 text-purple-muted-300",style:{width:C>0?`${C}px`:"auto"},children:s.jsxs(Zc,{className:"w-full bg-[var(--fill-interactive-neutral-idle)]",shouldFilter:!f,children:[s.jsx(Jc,{placeholder:o,...!!f&&{value:y,onValueChange:A}}),s.jsx(Qc,{children:p?s.jsx(qb,{children:g}):s.jsxs(s.Fragment,{children:[s.jsx(ed,{className:"flex justify-center items-center p-6 text-center text-sm text-purple-muted-300",children:a}),s.jsx(td,{children:e.map(P=>{const F=t===P.value;return s.jsxs(rd,{value:P.value,keywords:[P.label],disabled:P.disabled,className:N("text-purple-100 hover:bg-purple-muted-500","focus:bg-purple-muted-500 focus:text-purple-100",{"bg-purple-muted-500":F}),onSelect:U=>{U!==t&&(r==null||r(U===t?"":U)),h(!1)},children:[s.jsx(Er,{className:N("mr-2 h-4 w-4",{"opacity-100":F,"opacity-0":!F})}),P.label]},P.value)})})]})})]})})]})});ba.displayName="Combobox";const sy=wn("qodo qodo-badge inline-flex items-center dark:font-normal border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",{variants:{variant:{default:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",primary:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",secondary:"border-purple-muted-600 text-purple-300",destructive:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",outline:"border-[var(--border-tag-neutral-idle)] bg-[var(--fill-tag-neutral-idle)] text-[var(--text-tag-neutral-idle)] hover:text-[var(--text-tag-neutral-hover)] hover:bg-[var(--fill-tag-neutral-hover)] hover:border-[var(--border-tag-neutral-hover)] aria-active:text-[var(--text-tag-neutral-active)] aria-active:bg-[var(--fill-tag-neutral-active)] aria-active:border-[var(--border-tag-neutral-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-neutral-disabled)] aria-disabled:bg-[var(--fill-tag-neutral-disabled)] aria-disabled:border-[var(--border-tag-neutral-disabled)] ",success:"text-[var(--text-tag-positive-idle)] bg-[var(--fill-tag-positive-idle)] border-[var(--border-tag-positive-idle)] hover:text-[var(--text-tag-positive-hover)] hover:bg-[var(--fill-tag-positive-hover)] hover:border-[var(--border-tag-positive-hover)] aria-active:text-[var(--text-tag-positive-active)] aria-active:bg-[var(--fill-tag-positive-active)] aria-active:border-[var(--border-tag-positive-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-positive-disabled)] aria-disabled:bg-[var(--fill-tag-positive-disabled)] aria-disabled:border-[var(--border-tag-positive-disabled)] ",error:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",pending:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",warning:"border-[var(--border-tag-warning-idle)] bg-[var(--fill-tag-warning-idle)] text-[var(--text-tag-warning-idle)] hover:text-[var(--text-tag-warning-hover)] hover:bg-[var(--fill-tag-warning-hover)] hover:border-[var(--border-tag-warning-hover)] aria-active:text-[var(--text-tag-warning-active)] aria-active:bg-[var(--fill-tag-warning-active)] aria-active:border-[var(--border-tag-warning-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-warning-disabled)] aria-disabled:bg-[var(--fill-tag-warning-disabled)] aria-disabled:border-[var(--border-tag-warning-disabled)] ",text:"bg-transparent border-transparent text-primary-foreground p-0"},size:{xs:"text-[10px] px-1.5 py-0.5 rounded-sm bg-transparent hover:bg-transparent aria-disabled:bg-transparent aria-active:bg-transparent",sm:"text-xs px-2.5 py-0.5 rounded-full",md:"text-sm px-2.5 py-0.5 rounded-full",lg:"text-base px-2.5 py-2 rounded-full"}},defaultVariants:{variant:"default",size:"sm"}});function Ht({className:e,variant:t,size:r,disabled:n=!1,active:o=!1,...a}){return s.jsx("div",{"aria-disabled":n,"aria-active":o,className:N(sy({variant:t,size:r}),e),...a})}function pd({className:e,...t}){return s.jsx("div",{"data-slot":"card",className:N("qodo qodo-card bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function md({className:e,...t}){return s.jsx("div",{"data-slot":"card-header",className:N("qodo qodo-card-header @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 gd({className:e,...t}){return s.jsx("div",{"data-slot":"card-title",className:N("qodo qodo-card-title leading-none font-semibold",e),...t})}function vd({className:e,...t}){return s.jsx("div",{"data-slot":"card-description",className:N("qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function iy({className:e,...t}){return s.jsx("div",{"data-slot":"card-action",className:N("qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function hd({className:e,...t}){return s.jsx("div",{"data-slot":"card-content",className:N("qodo qodo-card-content px-6",e),...t})}function ly({className:e,...t}){return s.jsx("div",{"data-slot":"card-footer",className:N("qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",e),...t})}var ya="Progress",wa=100,[cy,FR]=we(ya),[dy,uy]=cy(ya),xd=c.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=fy,...i}=e;(o||o===0)&&!Js(o)&&console.error(py(`${o}`,"Progress"));const l=Js(o)?o:wa;n!==null&&!Qs(n,l)&&console.error(my(`${n}`,"Progress"));const d=Qs(n,l)?n:null,u=un(d)?a(d,l):void 0;return s.jsx(dy,{scope:r,value:d,max:l,children:s.jsx(Z.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":un(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":wd(d,l),"data-value":d??void 0,"data-max":l,...i,ref:t})})});xd.displayName=ya;var bd="ProgressIndicator",yd=c.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=uy(bd,r);return s.jsx(Z.div,{"data-state":wd(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});yd.displayName=bd;function fy(e,t){return`${Math.round(e/t*100)}%`}function wd(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function un(e){return typeof e=="number"}function Js(e){return un(e)&&!isNaN(e)&&e>0}function Qs(e,t){return un(e)&&!isNaN(e)&&e<=t&&e>=0}function py(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wa}\`.`}function my(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
199
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},kb="DialogDescriptionWarning",Tb=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lc(kb).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Fc=Ec,Ab=Pc,Vc=Nc,Bc=kc,Gc=Tc,_b=_c,Ib=Mc,Wc=Dc,cr='[cmdk-group=""]',bo='[cmdk-group-items=""]',Mb='[cmdk-group-heading=""]',zc='[cmdk-item=""]',Qs=`${zc}:not([aria-disabled="true"])`,Bo="cmdk-item-select",Bt="data-value",Ob=(e,t,r)=>xb(e,t,r),qc=c.createContext(void 0),Ar=()=>c.useContext(qc),Uc=c.createContext(void 0),ha=()=>c.useContext(Uc),Hc=c.createContext(void 0),Kc=c.forwardRef((e,t)=>{let r=Gt(()=>{var k,G;return{search:"",value:(G=(k=e.value)!=null?k:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Gt(()=>new Set),o=Gt(()=>new Map),a=Gt(()=>new Map),i=Gt(()=>new Set),l=Yc(e),{label:d,children:u,value:f,onValueChange:p,filter:g,shouldFilter:m,loop:b,disablePointerSelection:v=!1,vimBindings:h=!0,...y}=e,x=me(),C=me(),E=me(),N=c.useRef(null),T=Ub();Nt(()=>{if(f!==void 0){let k=f.trim();r.current.value=k,A.emit()}},[f]),Nt(()=>{T(6,Q)},[]);let A=c.useMemo(()=>({subscribe:k=>(i.current.add(k),()=>i.current.delete(k)),snapshot:()=>r.current,setState:(k,G,Z)=>{var z,L,_,K;if(!Object.is(r.current[k],G)){if(r.current[k]=G,k==="search")te(),U(),T(1,re);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ee=document.getElementById(E);ee?ee.focus():(z=document.getElementById(x))==null||z.focus()}if(T(7,()=>{var ee;r.current.selectedItemId=(ee=W())==null?void 0:ee.id,A.emit()}),Z||T(5,Q),((L=l.current)==null?void 0:L.value)!==void 0){let ee=G??"";(K=(_=l.current).onValueChange)==null||K.call(_,ee);return}}A.emit()}},emit:()=>{i.current.forEach(k=>k())}}),[]),P=c.useMemo(()=>({value:(k,G,Z)=>{var z;G!==((z=a.current.get(k))==null?void 0:z.value)&&(a.current.set(k,{value:G,keywords:Z}),r.current.filtered.items.set(k,V(G,Z)),T(2,()=>{U(),A.emit()}))},item:(k,G)=>(n.current.add(k),G&&(o.current.has(G)?o.current.get(G).add(k):o.current.set(G,new Set([k]))),T(3,()=>{te(),U(),r.current.value||re(),A.emit()}),()=>{a.current.delete(k),n.current.delete(k),r.current.filtered.items.delete(k);let Z=W();T(4,()=>{te(),(Z==null?void 0:Z.getAttribute("id"))===k&&re(),A.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{a.current.delete(k),o.current.delete(k)}),filter:()=>l.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:x,inputId:E,labelId:C,listInnerRef:N}),[]);function V(k,G){var Z,z;let L=(z=(Z=l.current)==null?void 0:Z.filter)!=null?z:Ob;return k?L(k,r.current.search,G):0}function U(){if(!r.current.search||l.current.shouldFilter===!1)return;let k=r.current.filtered.items,G=[];r.current.filtered.groups.forEach(z=>{let L=o.current.get(z),_=0;L.forEach(K=>{let ee=k.get(K);_=Math.max(ee,_)}),G.push([z,_])});let Z=N.current;D().sort((z,L)=>{var _,K;let ee=z.getAttribute("id"),oe=L.getAttribute("id");return((_=k.get(oe))!=null?_:0)-((K=k.get(ee))!=null?K:0)}).forEach(z=>{let L=z.closest(bo);L?L.appendChild(z.parentElement===L?z:z.closest(`${bo} > *`)):Z.appendChild(z.parentElement===Z?z:z.closest(`${bo} > *`))}),G.sort((z,L)=>L[1]-z[1]).forEach(z=>{var L;let _=(L=N.current)==null?void 0:L.querySelector(`${cr}[${Bt}="${encodeURIComponent(z[0])}"]`);_==null||_.parentElement.appendChild(_)})}function re(){let k=D().find(Z=>Z.getAttribute("aria-disabled")!=="true"),G=k==null?void 0:k.getAttribute(Bt);A.setState("value",G||void 0)}function te(){var k,G,Z,z;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let L=0;for(let _ of n.current){let K=(G=(k=a.current.get(_))==null?void 0:k.value)!=null?G:"",ee=(z=(Z=a.current.get(_))==null?void 0:Z.keywords)!=null?z:[],oe=V(K,ee);r.current.filtered.items.set(_,oe),oe>0&&L++}for(let[_,K]of o.current)for(let ee of K)if(r.current.filtered.items.get(ee)>0){r.current.filtered.groups.add(_);break}r.current.filtered.count=L}function Q(){var k,G,Z;let z=W();z&&(((k=z.parentElement)==null?void 0:k.firstChild)===z&&((Z=(G=z.closest(cr))==null?void 0:G.querySelector(Mb))==null||Z.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function W(){var k;return(k=N.current)==null?void 0:k.querySelector(`${zc}[aria-selected="true"]`)}function D(){var k;return Array.from(((k=N.current)==null?void 0:k.querySelectorAll(Qs))||[])}function I(k){let G=D()[k];G&&A.setState("value",G.getAttribute(Bt))}function O(k){var G;let Z=W(),z=D(),L=z.findIndex(K=>K===Z),_=z[L+k];(G=l.current)!=null&&G.loop&&(_=L+k<0?z[z.length-1]:L+k===z.length?z[0]:z[L+k]),_&&A.setState("value",_.getAttribute(Bt))}function R(k){let G=W(),Z=G==null?void 0:G.closest(cr),z;for(;Z&&!z;)Z=k>0?zb(Z,cr):qb(Z,cr),z=Z==null?void 0:Z.querySelector(Qs);z?A.setState("value",z.getAttribute(Bt)):O(k)}let M=()=>I(D().length-1),B=k=>{k.preventDefault(),k.metaKey?M():k.altKey?R(1):O(1)},J=k=>{k.preventDefault(),k.metaKey?I(0):k.altKey?R(-1):O(-1)};return c.createElement(H.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:k=>{var G;(G=y.onKeyDown)==null||G.call(y,k);let Z=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||Z))switch(k.key){case"n":case"j":{h&&k.ctrlKey&&B(k);break}case"ArrowDown":{B(k);break}case"p":case"k":{h&&k.ctrlKey&&J(k);break}case"ArrowUp":{J(k);break}case"Home":{k.preventDefault(),I(0);break}case"End":{k.preventDefault(),M();break}case"Enter":{k.preventDefault();let z=W();if(z){let L=new Event(Bo);z.dispatchEvent(L)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:Kb},d),Ln(e,k=>c.createElement(Uc.Provider,{value:A},c.createElement(qc.Provider,{value:P},k))))}),Db=c.forwardRef((e,t)=>{var r,n;let o=me(),a=c.useRef(null),i=c.useContext(Hc),l=Ar(),d=Yc(e),u=(n=(r=d.current)==null?void 0:r.forceMount)!=null?n:i==null?void 0:i.forceMount;Nt(()=>{if(!u)return l.item(o,i==null?void 0:i.id)},[u]);let f=Xc(o,a,[e.value,e.children,a],e.keywords),p=ha(),g=dt(T=>T.value&&T.value===f.current),m=dt(T=>u||l.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);c.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(Bo,b),()=>T.removeEventListener(Bo,b)},[m,e.onSelect,e.disabled]);function b(){var T,A;v(),(A=(T=d.current).onSelect)==null||A.call(T,f.current)}function v(){p.setState("value",f.current,!0)}if(!m)return null;let{disabled:h,value:y,onSelect:x,forceMount:C,keywords:E,...N}=e;return c.createElement(H.div,{ref:et(a,t),...N,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||l.getDisablePointerSelection()?void 0:v,onClick:h?void 0:b},e.children)}),$b=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,i=me(),l=c.useRef(null),d=c.useRef(null),u=me(),f=Ar(),p=dt(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(i):!0);Nt(()=>f.group(i),[]),Xc(i,l,[e.value,e.heading,d]);let g=c.useMemo(()=>({id:i,forceMount:o}),[o]);return c.createElement(H.div,{ref:et(l,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&c.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Ln(e,m=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},c.createElement(Hc.Provider,{value:g},m))))}),Lb=c.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=c.useRef(null),a=dt(i=>!i.search);return!r&&!a?null:c.createElement(H.div,{ref:et(o,t),...n,"cmdk-separator":"",role:"separator"})}),Fb=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=ha(),i=dt(u=>u.search),l=dt(u=>u.selectedItemId),d=Ar();return c.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),c.createElement(H.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),Vb=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=c.useRef(null),i=c.useRef(null),l=dt(u=>u.selectedItemId),d=Ar();return c.useEffect(()=>{if(i.current&&a.current){let u=i.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let m=u.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),c.createElement(H.div,{ref:et(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:d.listId},Ln(e,u=>c.createElement("div",{ref:et(i,d.listInnerRef),"cmdk-list-sizer":""},u)))}),Bb=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:i,...l}=e;return c.createElement(Fc,{open:r,onOpenChange:n},c.createElement(Vc,{container:i},c.createElement(Bc,{"cmdk-overlay":"",className:o}),c.createElement(Gc,{"aria-label":e.label,"cmdk-dialog":"",className:a},c.createElement(Kc,{ref:t,...l}))))}),Gb=c.forwardRef((e,t)=>dt(r=>r.filtered.count===0)?c.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Wb=c.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return c.createElement(H.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ln(e,i=>c.createElement("div",{"aria-hidden":!0},i)))}),At=Object.assign(Kc,{List:Vb,Item:Db,Input:Fb,Group:$b,Separator:Lb,Dialog:Bb,Empty:Gb,Loading:Wb});function zb(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function qb(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Yc(e){let t=c.useRef(e);return Nt(()=>{t.current=e}),t}var Nt=typeof window>"u"?c.useEffect:c.useLayoutEffect;function Gt(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function dt(e){let t=ha(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function Xc(e,t,r,n=[]){let o=c.useRef(),a=Ar();return Nt(()=>{var i;let l=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),d=n.map(u=>u.trim());a.value(e,l,d),(i=t.current)==null||i.setAttribute(Bt,l),o.current=l}),o}var Ub=()=>{let[e,t]=c.useState(),r=Gt(()=>new Map);return Nt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Hb(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ln({asChild:e,children:t},r){return e&&c.isValidElement(t)?c.cloneElement(Hb(t),{ref:t.ref},r(t.props.children)):r(t)}var Kb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Yb({...e}){return s.jsx(Fc,{"data-slot":"dialog",...e})}function Xb({...e}){return s.jsx(Ab,{"data-slot":"dialog-trigger",...e})}function Zc({...e}){return s.jsx(Vc,{"data-slot":"dialog-portal",...e})}function Zb({...e}){return s.jsx(Wc,{"data-slot":"dialog-close",...e})}function Jc({className:e,...t}){return s.jsx(Bc,{"data-slot":"dialog-overlay",className:j("qodo qodo-dialog-overlay,","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function Jb({className:e,children:t,showCloseButton:r=!0,...n}){return s.jsxs(Zc,{"data-slot":"dialog-portal",children:[s.jsx(Jc,{}),s.jsxs(Gc,{"data-slot":"dialog-content",className:j("qodo qodo-dialog-content bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&s.jsxs(Wc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[s.jsx(Sn,{}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qb({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-header",className:j("qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",e),...t})}function ey({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-footer",className:j("qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ty({className:e,...t}){return s.jsx(_b,{"data-slot":"dialog-title",className:j("qodo qodo-dialog-title text-lg leading-none font-semibold",e),...t})}function ry({className:e,...t}){return s.jsx(Ib,{"data-slot":"dialog-description",className:j("qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Qc({className:e,...t}){return s.jsx(At,{"data-slot":"command",className:j("qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function ed({className:e,...t}){return s.jsxs("div",{"data-slot":"command-input-wrapper",className:j("qodo qodo-command-input-wrapper","flex h-9 items-center gap-2 border-b border-[var(--border-panel-neutral)] px-3 text-purple-muted-300"),children:[s.jsx(Zi,{className:"size-4 shrink-0 text-purple-muted-300"}),s.jsx(At.Input,{"data-slot":"command-input",className:j("qodo qodo-command-input","placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function td({className:e,...t}){return s.jsx(At.List,{"data-slot":"command-list",className:j("qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function rd({...e}){return s.jsx(At.Empty,{"data-slot":"command-empty",className:j("qodo qodo-command-empty","py-6 text-center text-sm text-purple-muted-300"),...e})}function ny({className:e,...t}){return s.jsx(At.Loading,{"data-slot":"command-loading",className:j("qodo qodo-command-loading","py-6 text-center text-sm text-purple-muted-300",e),...t})}function nd({className:e,...t}){return s.jsx(At.Group,{"data-slot":"command-group",className:j("qodo qodo-command-group","text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function od({className:e,...t}){return s.jsx(At.Item,{"data-slot":"command-item",className:j("qodo qodo-command-item","data-[selected=true]:bg-purple-muted-500 data-[selected=true]:text-purple-100 [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Fn="Popover",[ad,sP]=we(Fn,[ut]),_r=ut(),[oy,mt]=ad(Fn),sd=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=_r(t),d=c.useRef(null),[u,f]=c.useState(!1),[p,g]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:Fn});return s.jsx(Nr,{...l,children:s.jsx(oy,{scope:t,contentId:me(),triggerRef:d,open:p,onOpenChange:g,onOpenToggle:c.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:r})})};sd.displayName=Fn;var id="PopoverAnchor",ay=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=mt(id,r),a=_r(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return c.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(kr,{...a,...n,ref:t})});ay.displayName=id;var ld="PopoverTrigger",cd=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=mt(ld,r),a=_r(r),i=se(t,o.triggerRef),l=s.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":md(o.open),...n,ref:i,onClick:F(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(kr,{asChild:!0,...a,children:l})});cd.displayName=ld;var xa="PopoverPortal",[sy,iy]=ad(xa,{forceMount:void 0}),dd=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=mt(xa,t);return s.jsx(sy,{scope:t,forceMount:r,children:s.jsx(Re,{present:r||a.open,children:s.jsx(rr,{asChild:!0,container:o,children:n})})})};dd.displayName=xa;var Kt="PopoverContent",ud=c.forwardRef((e,t)=>{const r=iy(Kt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=mt(Kt,e.__scopePopover);return s.jsx(Re,{present:n||a.open,children:a.modal?s.jsx(cy,{...o,ref:t}):s.jsx(dy,{...o,ref:t})})});ud.displayName=Kt;var ly=it("PopoverContent.RemoveScroll"),cy=c.forwardRef((e,t)=>{const r=mt(Kt,e.__scopePopover),n=c.useRef(null),o=se(t,n),a=c.useRef(!1);return c.useEffect(()=>{const i=n.current;if(i)return _n(i)},[]),s.jsx(Tr,{as:ly,allowPinchZoom:!0,children:s.jsx(fd,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),a.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,u=l.button===2||d;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:F(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),dy=c.forwardRef((e,t)=>{const r=mt(Kt,e.__scopePopover),n=c.useRef(!1),o=c.useRef(!1);return s.jsx(fd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),fd=c.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,g=mt(Kt,r),m=_r(r);return Rn(),s.jsx(Pr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:s.jsx(Tn,{"data-state":md(g.open),role:"dialog",id:g.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),pd="PopoverClose",uy=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=mt(pd,r);return s.jsx(H.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});uy.displayName=pd;var fy="PopoverArrow",py=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_r(r);return s.jsx(An,{...o,...n,ref:t})});py.displayName=fy;function md(e){return e?"open":"closed"}var my=sd,gy=cd,vy=dd,hy=ud;function ba({...e}){return s.jsx(my,{"data-slot":"popover",...e})}function ya({...e}){return s.jsx(gy,{"data-slot":"popover-trigger",...e})}function wa({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsx(vy,{children:s.jsx(hy,{"data-slot":"popover-content",align:t,sideOffset:r,className:j("qodo qodo-popover-content 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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const Ca=c.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:a="No option found.",disabled:i=!1,readOnly:l=!1,error:d=!1,className:u,onSearchChange:f,isLoading:p=!1,loadingText:g="Loading...",...m},b)=>{const[v,h]=c.useState(!1),[y,x]=c.useState(""),[C,E]=c.useState(0),N=c.useRef(null),T=e.find(P=>P.value===t),A=P=>{x(P),f==null||f(P)};return c.useEffect(()=>{N.current&&E(N.current.offsetWidth)},[]),s.jsxs(ba,{open:l?!1:v,onOpenChange:h,children:[s.jsx(ya,{asChild:!0,children:s.jsxs(Qe,{ref:P=>{typeof b=="function"?b(P):b&&(b.current=P),N.current=P},variant:"outline",role:"combobox","aria-expanded":v,"aria-invalid":d||void 0,"data-readonly":l||void 0,className:j("qodo qodo-combobox w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-muted-500 bg-purple-muted-700 hover:bg-purple-muted-700","text-sm md:text-sm text-purple-muted-300 hover:text-purple-muted-300 focus:text-purple-muted-300 active:text-purple-muted-300 selection:bg-primary selection:text-primary-foreground","font-normal shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px] focus-visible:!ring-offset-0","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40","disabled:!cursor-not-allowed disabled:!pointer-events-auto disabled:opacity-50 disabled:!bg-purple-muted-700 disabled:!border-purple-muted-500 disabled:!text-purple-muted-300 disabled:hover:!bg-purple-muted-700 disabled:hover:!text-purple-muted-300","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200 data-[readonly]:hover:bg-purple-muted-700 data-[readonly]:hover:text-purple-muted-200",{"text-muted-foreground":!T},u),disabled:i,...m,children:[T?T.label:n,s.jsx(Rg,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),s.jsx(wa,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-purple-muted-500 text-purple-muted-300",style:{width:C>0?`${C}px`:"auto"},children:s.jsxs(Qc,{className:"w-full bg-[var(--fill-interactive-neutral-idle)]",shouldFilter:!f,children:[s.jsx(ed,{placeholder:o,...!!f&&{value:y,onValueChange:A}}),s.jsx(td,{children:p?s.jsx(ny,{children:g}):s.jsxs(s.Fragment,{children:[s.jsx(rd,{className:"flex justify-center items-center p-6 text-center text-sm text-purple-muted-300",children:a}),s.jsx(nd,{children:e.map(P=>{const V=t===P.value;return s.jsxs(od,{value:P.value,keywords:[P.label],disabled:P.disabled,className:j("text-purple-100 hover:bg-purple-muted-500","focus:bg-purple-muted-500 focus:text-purple-100",{"bg-purple-muted-500":V}),onSelect:U=>{U!==t&&(r==null||r(U===t?"":U)),h(!1)},children:[s.jsx(Er,{className:j("mr-2 h-4 w-4",{"opacity-100":V,"opacity-0":!V})}),P.label]},P.value)})})]})})]})})]})});Ca.displayName="Combobox";const xy=wn("qodo qodo-badge inline-flex items-center dark:font-normal border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",{variants:{variant:{default:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",primary:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",secondary:"border-purple-muted-600 text-purple-300",destructive:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",outline:"border-[var(--border-tag-neutral-idle)] bg-[var(--fill-tag-neutral-idle)] text-[var(--text-tag-neutral-idle)] hover:text-[var(--text-tag-neutral-hover)] hover:bg-[var(--fill-tag-neutral-hover)] hover:border-[var(--border-tag-neutral-hover)] aria-active:text-[var(--text-tag-neutral-active)] aria-active:bg-[var(--fill-tag-neutral-active)] aria-active:border-[var(--border-tag-neutral-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-neutral-disabled)] aria-disabled:bg-[var(--fill-tag-neutral-disabled)] aria-disabled:border-[var(--border-tag-neutral-disabled)] ",success:"text-[var(--text-tag-positive-idle)] bg-[var(--fill-tag-positive-idle)] border-[var(--border-tag-positive-idle)] hover:text-[var(--text-tag-positive-hover)] hover:bg-[var(--fill-tag-positive-hover)] hover:border-[var(--border-tag-positive-hover)] aria-active:text-[var(--text-tag-positive-active)] aria-active:bg-[var(--fill-tag-positive-active)] aria-active:border-[var(--border-tag-positive-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-positive-disabled)] aria-disabled:bg-[var(--fill-tag-positive-disabled)] aria-disabled:border-[var(--border-tag-positive-disabled)] ",error:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",pending:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",warning:"border-[var(--border-tag-warning-idle)] bg-[var(--fill-tag-warning-idle)] text-[var(--text-tag-warning-idle)] hover:text-[var(--text-tag-warning-hover)] hover:bg-[var(--fill-tag-warning-hover)] hover:border-[var(--border-tag-warning-hover)] aria-active:text-[var(--text-tag-warning-active)] aria-active:bg-[var(--fill-tag-warning-active)] aria-active:border-[var(--border-tag-warning-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-warning-disabled)] aria-disabled:bg-[var(--fill-tag-warning-disabled)] aria-disabled:border-[var(--border-tag-warning-disabled)] ",text:"bg-transparent border-transparent text-primary-foreground p-0"},size:{xs:"text-[10px] px-1.5 py-0.5 rounded-sm bg-transparent hover:bg-transparent aria-disabled:bg-transparent aria-active:bg-transparent",sm:"text-xs px-2.5 py-0.5 rounded-full",md:"text-sm px-2.5 py-0.5 rounded-full",lg:"text-base px-2.5 py-2 rounded-full"}},defaultVariants:{variant:"default",size:"sm"}});function Yt({className:e,variant:t,size:r,disabled:n=!1,active:o=!1,...a}){return s.jsx("div",{"aria-disabled":n,"aria-active":o,className:j(xy({variant:t,size:r}),e),...a})}function gd({className:e,...t}){return s.jsx("div",{"data-slot":"card",className:j("qodo qodo-card bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function vd({className:e,...t}){return s.jsx("div",{"data-slot":"card-header",className:j("qodo qodo-card-header @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 hd({className:e,...t}){return s.jsx("div",{"data-slot":"card-title",className:j("qodo qodo-card-title leading-none font-semibold",e),...t})}function xd({className:e,...t}){return s.jsx("div",{"data-slot":"card-description",className:j("qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function by({className:e,...t}){return s.jsx("div",{"data-slot":"card-action",className:j("qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function bd({className:e,...t}){return s.jsx("div",{"data-slot":"card-content",className:j("qodo qodo-card-content px-6",e),...t})}function yy({className:e,...t}){return s.jsx("div",{"data-slot":"card-footer",className:j("qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",e),...t})}var Sa="Progress",Ea=100,[wy,iP]=we(Sa),[Cy,Sy]=wy(Sa),yd=c.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Ey,...i}=e;(o||o===0)&&!ei(o)&&console.error(Ry(`${o}`,"Progress"));const l=ei(o)?o:Ea;n!==null&&!ti(n,l)&&console.error(Py(`${n}`,"Progress"));const d=ti(n,l)?n:null,u=un(d)?a(d,l):void 0;return s.jsx(Cy,{scope:r,value:d,max:l,children:s.jsx(H.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":un(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":Sd(d,l),"data-value":d??void 0,"data-max":l,...i,ref:t})})});yd.displayName=Sa;var wd="ProgressIndicator",Cd=c.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Sy(wd,r);return s.jsx(H.div,{"data-state":Sd(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Cd.displayName=wd;function Ey(e,t){return`${Math.round(e/t*100)}%`}function Sd(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function un(e){return typeof e=="number"}function ei(e){return un(e)&&!isNaN(e)&&e>0}function ti(e,t){return un(e)&&!isNaN(e)&&e<=t&&e>=0}function Ry(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ea}\`.`}function Py(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
200
200
  - a positive number
201
- - less than the value passed to \`max\` (or ${wa} if no \`max\` prop is set)
201
+ - less than the value passed to \`max\` (or ${Ea} if no \`max\` prop is set)
202
202
  - \`null\` or \`undefined\` if the progress is indeterminate.
203
203
 
204
- Defaulting to \`null\`.`}var gy=xd,vy=yd;function hy({className:e,value:t,...r}){return s.jsx(gy,{"data-slot":"progress",className:N("qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:s.jsx(vy,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Cd({className:e,...t}){return s.jsx("div",{className:N("qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var Vn="Switch",[xy,VR]=we(Vn),[by,yy]=xy(Vn),Sd=c.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:l,value:d="on",onCheckedChange:u,form:f,...p}=e,[g,m]=c.useState(null),b=se(t,C=>m(C)),v=c.useRef(!1),h=g?f||!!g.closest("form"):!0,[y,x]=ye({prop:o,defaultProp:a??!1,onChange:u,caller:Vn});return s.jsxs(by,{scope:r,checked:y,disabled:l,children:[s.jsx(Z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":jd(y),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:b,onClick:G(e.onClick,C=>{x(E=>!E),h&&(v.current=C.isPropagationStopped(),v.current||C.stopPropagation())})}),h&&s.jsx(Pd,{control:g,bubbles:!v.current,name:n,value:d,checked:y,required:i,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Sd.displayName=Vn;var Ed="SwitchThumb",Rd=c.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=yy(Ed,r);return s.jsx(Z.span,{"data-state":jd(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Rd.displayName=Ed;var wy="SwitchBubbleInput",Pd=c.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const i=c.useRef(null),l=se(i,a),d=ia(r),u=oa(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&m){const b=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(b)}},[d,r,n]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Pd.displayName=wy;function jd(e){return e?"checked":"unchecked"}var Cy=Sd,Sy=Rd;function Ey({className:e,...t}){return s.jsx(Cy,{"data-slot":"switch",className:N("qodo qodo-switch peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",e),...t,children:s.jsx(Sy,{"data-slot":"switch-thumb",className:N("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground")})})}var Nd="Toggle",Ca=c.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[i,l]=ye({prop:r,onChange:o,defaultProp:n??!1,caller:Nd});return s.jsx(Z.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:G(e.onClick,()=>{e.disabled||l(!i)})})});Ca.displayName=Nd;var Ry=Ca;const kd=wn("qodo qodo-toggle inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function Py({className:e,variant:t,size:r,...n}){return s.jsx(Ry,{"data-slot":"toggle",className:N(kd({variant:t,size:r,className:e})),...n})}var ho="rovingFocusGroup.onEntryFocus",jy={bubbles:!1,cancelable:!0},Ir="RovingFocusGroup",[Fo,Td,Ny]=En(Ir),[ky,nr]=we(Ir,[Ny]),[Ty,Ay]=ky(Ir),Ad=c.forwardRef((e,t)=>s.jsx(Fo.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Fo.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(_y,{...e,ref:t})})}));Ad.displayName=Ir;var _y=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=c.useRef(null),m=se(t,g),b=Zt(a),[v,h]=ye({prop:i,defaultProp:l??null,onChange:d,caller:Ir}),[y,x]=c.useState(!1),C=De(u),E=Td(r),j=c.useRef(!1),[T,A]=c.useState(0);return c.useEffect(()=>{const P=g.current;if(P)return P.addEventListener(ho,C),()=>P.removeEventListener(ho,C)},[C]),s.jsx(Ty,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(P=>h(P),[h]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(P=>P+1),[]),onFocusableItemRemove:c.useCallback(()=>A(P=>P-1),[]),children:s.jsx(Z.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:G(e.onMouseDown,()=>{j.current=!0}),onFocus:G(e.onFocus,P=>{const F=!j.current;if(P.target===P.currentTarget&&F&&!y){const U=new CustomEvent(ho,jy);if(P.currentTarget.dispatchEvent(U),!U.defaultPrevented){const re=E().filter(_=>_.focusable),ee=re.find(_=>_.active),J=re.find(_=>_.id===v),$=[ee,J,...re].filter(Boolean).map(_=>_.ref.current);Md($,f)}}j.current=!1}),onBlur:G(e.onBlur,()=>x(!1))})})}),_d="RovingFocusGroupItem",Id=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...l}=e,d=ge(),u=a||d,f=Ay(_d,r),p=f.currentTabStopId===u,g=Td(r),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:v}=f;return c.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),s.jsx(Fo.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:s.jsx(Z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:G(e.onMouseDown,h=>{n?f.onItemFocus(u):h.preventDefault()}),onFocus:G(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:G(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Oy(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let C=g().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const E=C.indexOf(h.currentTarget);C=f.loop?Dy(C,E+1):C.slice(E+1)}setTimeout(()=>Md(C))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:v!=null}):i})})});Id.displayName=_d;var Iy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function My(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Oy(e,t,r){const n=My(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Iy[n]}function Md(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Dy(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Sa=Ad,Ea=Id,gt="ToggleGroup",[Od,BR]=we(gt,[nr]),Dd=nr(),Ra=S.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return s.jsx($y,{...o,ref:t})}if(r==="multiple"){const o=n;return s.jsx(Ly,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${gt}\``)});Ra.displayName=gt;var[$d,Ld]=Od(gt),$y=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:r,defaultProp:n??"",onChange:o,caller:gt});return s.jsx($d,{scope:e.__scopeToggleGroup,type:"single",value:S.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:S.useCallback(()=>l(""),[l]),children:s.jsx(Fd,{...a,ref:t})})}),Ly=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:r,defaultProp:n??[],onChange:o,caller:gt}),d=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return s.jsx($d,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:d,onItemDeactivate:u,children:s.jsx(Fd,{...a,ref:t})})});Ra.displayName=gt;var[Fy,Vy]=Od(gt),Fd=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...d}=e,u=Dd(r),f=Zt(i),p={role:"group",dir:f,...d};return s.jsx(Fy,{scope:r,rovingFocus:o,disabled:n,children:o?s.jsx(Sa,{asChild:!0,...u,orientation:a,dir:f,loop:l,children:s.jsx(Z.div,{...p,ref:t})}):s.jsx(Z.div,{...p,ref:t})})}),fn="ToggleGroupItem",Vd=S.forwardRef((e,t)=>{const r=Ld(fn,e.__scopeToggleGroup),n=Vy(fn,e.__scopeToggleGroup),o=Dd(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,l={...e,pressed:a,disabled:i},d=S.useRef(null);return n.rovingFocus?s.jsx(Ea,{asChild:!0,...o,focusable:!i,active:a,ref:d,children:s.jsx(ei,{...l,ref:t})}):s.jsx(ei,{...l,ref:t})});Vd.displayName=fn;var ei=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=Ld(fn,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(Ca,{...l,...o,ref:t,onPressedChange:d=>{d?a.onItemActivate(n):a.onItemDeactivate(n)}})}),By=Ra,Gy=Vd;const Bd=c.createContext({size:"default",variant:"default"});function Wy({className:e,variant:t,size:r,children:n,...o}){return s.jsx(By,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:N("qodo qodo-toggle-group group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:s.jsx(Bd.Provider,{value:{variant:t,size:r},children:n})})}function zy({className:e,children:t,variant:r,size:n,...o}){const a=c.useContext(Bd);return s.jsx(Gy,{"data-slot":"toggle-group-item","data-variant":a.variant||r,"data-size":a.size||n,className:N(kd({variant:a.variant||r,size:a.size||n}),"qodo qodo-toggle-group-item min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var Bn="Collapsible",[qy,Gd]=we(Bn),[Uy,Pa]=qy(Bn),Wd=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[d,u]=ye({prop:n,defaultProp:o??!1,onChange:i,caller:Bn});return s.jsx(Uy,{scope:r,disabled:a,contentId:ge(),open:d,onOpenToggle:c.useCallback(()=>u(f=>!f),[u]),children:s.jsx(Z.div,{"data-state":Na(d),"data-disabled":a?"":void 0,...l,ref:t})})});Wd.displayName=Bn;var zd="CollapsibleTrigger",qd=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Pa(zd,r);return s.jsx(Z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Na(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:G(e.onClick,o.onOpenToggle)})});qd.displayName=zd;var ja="CollapsibleContent",Ud=c.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Pa(ja,e.__scopeCollapsible);return s.jsx(je,{present:r||o.open,children:({present:a})=>s.jsx(Hy,{...n,ref:t,present:a})})});Ud.displayName=ja;var Hy=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Pa(ja,r),[l,d]=c.useState(n),u=c.useRef(null),f=se(t,u),p=c.useRef(0),g=p.current,m=c.useRef(0),b=m.current,v=i.open||l,h=c.useRef(v),y=c.useRef(void 0);return c.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),be(()=>{const x=u.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();p.current=C.height,m.current=C.width,h.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),d(n)}},[i.open,n]),s.jsx(Z.div,{"data-state":Na(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&o})});function Na(e){return e?"open":"closed"}var Ky=Wd,Yy=qd,Xy=Ud,Ve="Accordion",Zy=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ka,Jy,Qy]=En(Ve),[Gn,GR]=we(Ve,[Qy,Gd]),Ta=Gd(),Hd=S.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return s.jsx(ka.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(nw,{...a,ref:t}):s.jsx(rw,{...o,ref:t})})});Hd.displayName=Ve;var[Kd,ew]=Gn(Ve),[Yd,tw]=Gn(Ve,{collapsible:!1}),rw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,d]=ye({prop:r,defaultProp:n??"",onChange:o,caller:Ve});return s.jsx(Kd,{scope:e.__scopeAccordion,value:S.useMemo(()=>l?[l]:[],[l]),onItemOpen:d,onItemClose:S.useCallback(()=>a&&d(""),[a,d]),children:s.jsx(Yd,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(Xd,{...i,ref:t})})})}),nw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:r,defaultProp:n??[],onChange:o,caller:Ve}),d=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return s.jsx(Kd,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:u,children:s.jsx(Yd,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(Xd,{...a,ref:t})})})}),[ow,Wn]=Gn(Ve),Xd=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,l=S.useRef(null),d=se(l,t),u=Jy(r),p=Zt(o)==="ltr",g=G(e.onKeyDown,m=>{var P;if(!Zy.includes(m.key))return;const b=m.target,v=u().filter(F=>{var U;return!((U=F.ref.current)!=null&&U.disabled)}),h=v.findIndex(F=>F.ref.current===b),y=v.length;if(h===-1)return;m.preventDefault();let x=h;const C=0,E=y-1,j=()=>{x=h+1,x>E&&(x=C)},T=()=>{x=h-1,x<C&&(x=E)};switch(m.key){case"Home":x=C;break;case"End":x=E;break;case"ArrowRight":a==="horizontal"&&(p?j():T());break;case"ArrowDown":a==="vertical"&&j();break;case"ArrowLeft":a==="horizontal"&&(p?T():j());break;case"ArrowUp":a==="vertical"&&T();break}const A=x%y;(P=v[A].ref.current)==null||P.focus()});return s.jsx(ow,{scope:r,disabled:n,direction:o,orientation:a,children:s.jsx(ka.Slot,{scope:r,children:s.jsx(Z.div,{...i,"data-orientation":a,ref:d,onKeyDown:n?void 0:g})})})}),pn="AccordionItem",[aw,Aa]=Gn(pn),Zd=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=Wn(pn,r),i=ew(pn,r),l=Ta(r),d=ge(),u=n&&i.value.includes(n)||!1,f=a.disabled||e.disabled;return s.jsx(aw,{scope:r,open:u,disabled:f,triggerId:d,children:s.jsx(Ky,{"data-orientation":a.orientation,"data-state":nu(u),...l,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?i.onItemOpen(n):i.onItemClose(n)}})})});Zd.displayName=pn;var Jd="AccordionHeader",Qd=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Wn(Ve,r),a=Aa(Jd,r);return s.jsx(Z.h3,{"data-orientation":o.orientation,"data-state":nu(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});Qd.displayName=Jd;var Vo="AccordionTrigger",eu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Wn(Ve,r),a=Aa(Vo,r),i=tw(Vo,r),l=Ta(r);return s.jsx(ka.ItemSlot,{scope:r,children:s.jsx(Yy,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...n,ref:t})})});eu.displayName=Vo;var tu="AccordionContent",ru=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Wn(Ve,r),a=Aa(tu,r),i=Ta(r);return s.jsx(Xy,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ru.displayName=tu;function nu(e){return e?"open":"closed"}var sw=Hd,iw=Zd,lw=Qd,cw=eu,dw=ru;function uw({...e}){return s.jsx(sw,{"data-slot":"accordion",...e})}function fw({className:e,...t}){return s.jsx(iw,{"data-slot":"accordion-item",className:N("qodo qodo-accordion-item border-b last:border-b-0 dark:border-border",e),...t})}function pw({className:e,children:t,...r}){return s.jsx(lw,{className:"flex",children:s.jsxs(cw,{"data-slot":"accordion-trigger",className:N("qodo qodo-accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",e),...r,children:[t,s.jsx(Cn,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function mw({className:e,children:t,...r}){return s.jsx(dw,{"data-slot":"accordion-content",className:N("qodo qodo-accordion-content","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground"),...r,children:s.jsx("div",{className:N("pt-0 pb-4",e),children:t})})}var gw=e=>e.type==="checkbox",fr=e=>e instanceof Date,_a=e=>e==null;const ou=e=>typeof e=="object";var Nt=e=>!_a(e)&&!Array.isArray(e)&&ou(e)&&!fr(e),vw=e=>Nt(e)&&e.target?gw(e.target)?e.target.checked:e.target.value:e,hw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,xw=(e,t)=>e.has(hw(t)),bw=e=>{const t=e.constructor&&e.constructor.prototype;return Nt(t)&&t.hasOwnProperty("isPrototypeOf")},yw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function au(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(yw&&(e instanceof Blob||n))&&(r||Nt(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!bw(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=au(e[o]));else return e;return t}var su=e=>/^\w*$/.test(e),Bo=e=>e===void 0,ww=e=>Array.isArray(e)?e.filter(Boolean):[],iu=e=>ww(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pe=(e,t,r)=>{if(!t||!Nt(e))return r;const n=(su(t)?[t]:iu(t)).reduce((o,a)=>_a(o)?o:o[a],e);return Bo(n)||n===e?Bo(e[t])?r:e[t]:n},xo=e=>typeof e=="boolean",ti=(e,t,r)=>{let n=-1;const o=su(t)?[t]:iu(t),a=o.length,i=a-1;for(;++n<a;){const l=o[n];let d=r;if(n!==i){const u=e[l];d=Nt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const ri={BLUR:"blur",CHANGE:"change"},ni={all:"all"},Ia=S.createContext(null);Ia.displayName="HookFormContext";const or=()=>S.useContext(Ia),Cw=e=>{const{children:t,...r}=e;return S.createElement(Ia.Provider,{value:r},t)};var Sw=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==ni.all&&(t._proxyFormState[i]=!n||ni.all),r&&(r[i]=!0),e[i]}});return o};const lu=typeof window<"u"?S.useLayoutEffect:S.useEffect;function cu(e){const t=or(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,l]=S.useState(r._formState),d=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return lu(()=>r._subscribe({name:o,formState:d.current,exact:a,callback:u=>{!n&&l({...r._formState,...u})}}),[o,n,a]),S.useEffect(()=>{d.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>Sw(i,r,d.current,!1),[i,r])}var Ew=e=>typeof e=="string",Rw=(e,t,r,n,o)=>Ew(e)?Pe(r,e,o):Array.isArray(e)?e.map(a=>Pe(r,a)):r,oi=e=>_a(e)||!ou(e);function du(e,t,r=new WeakSet){if(oi(e)||oi(t))return e===t;if(fr(e)&&fr(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const l=t[a];if(fr(i)&&fr(l)||Nt(i)&&Nt(l)||Array.isArray(i)&&Array.isArray(l)?!du(i,l,r):i!==l)return!1}}return!0}function Pw(e){const t=or(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:l}=e||{},d=S.useRef(o),u=S.useRef(l),f=S.useRef(void 0);u.current=l;const p=S.useMemo(()=>r._getWatch(n,d.current),[r,n]),[g,m]=S.useState(u.current?u.current(p):p);return lu(()=>r._subscribe({name:n,formState:{values:!0},exact:i,callback:b=>{if(!a){const v=Rw(n,r._names,b.values||r._formValues,!1,d.current);if(u.current){const h=u.current(v);du(h,f.current)||(m(h),f.current=h)}else m(v)}}}),[r,a,n,i]),S.useEffect(()=>r._removeUnmounted()),g}function jw(e){const t=or(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i}=e,l=xw(o._names.array,r),d=S.useMemo(()=>Pe(o._formValues,r,Pe(o._defaultValues,r,i)),[o,r,i]),u=Pw({control:o,name:r,defaultValue:d,exact:!0}),f=cu({control:o,name:r,exact:!0}),p=S.useRef(e),g=S.useRef(o.register(r,{...e.rules,value:u,...xo(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const m=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Pe(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Pe(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Pe(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Pe(f.validatingFields,r)},error:{enumerable:!0,get:()=>Pe(f.errors,r)}}),[f,r]),b=S.useCallback(x=>g.current.onChange({target:{value:vw(x),name:r},type:ri.CHANGE}),[r]),v=S.useCallback(()=>g.current.onBlur({target:{value:Pe(o._formValues,r),name:r},type:ri.BLUR}),[r,o._formValues]),h=S.useCallback(x=>{const C=Pe(o._fields,r);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:E=>x.setCustomValidity(E),reportValidity:()=>x.reportValidity()})},[o._fields,r]),y=S.useMemo(()=>({name:r,value:u,...xo(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:b,onBlur:v,ref:h}),[r,n,f.disabled,b,v,h,u]);return S.useEffect(()=>{const x=o._options.shouldUnregister||a;o.register(r,{...p.current.rules,...xo(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(E,j)=>{const T=Pe(o._fields,E);T&&T._f&&(T._f.mount=j)};if(C(r,!0),x){const E=au(Pe(o._options.defaultValues,r));ti(o._defaultValues,r,E),Bo(Pe(o._formValues,r))&&ti(o._formValues,r,E)}return!l&&o.register(r),()=>{(l?x&&!o._state.action:x)?o.unregister(r):C(r,!1)}},[r,o,l,a]),S.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),S.useMemo(()=>({field:y,formState:f,fieldState:m}),[y,f,m])}const uu=e=>e.render(jw(e)),fu=S.createContext(void 0),pu=e=>{const{methods:t,disabled:r,readOnly:n,children:o}=e;return s.jsx(fu.Provider,{value:{disabled:r,readOnly:n},children:s.jsx(Cw,{...t,children:o})})},mu=()=>{const e=S.useContext(fu),t=or();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},Nw=({type:e="button",...t})=>{const r=()=>e==="submit"||e==="reset"?"default":"outline";return s.jsx(Qe,{type:e,variant:r(),...t})};var gu={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ai=S.createContext&&S.createContext(gu),kw=["attr","size","title"];function Tw(e,t){if(e==null)return{};var r=Aw(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Aw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mn.apply(this,arguments)}function si(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?si(Object(r),!0).forEach(function(n){_w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _w(e,t,r){return t=Iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iw(e){var t=Mw(e,"string");return typeof t=="symbol"?t:t+""}function Mw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vu(e){return e&&e.map((t,r)=>S.createElement(t.tag,gn({key:r},t.attr),vu(t.child)))}function hu(e){return t=>S.createElement(Ow,mn({attr:gn({},e.attr)},t),vu(e.child))}function Ow(e){var t=r=>{var{attr:n,size:o,title:a}=e,i=Tw(e,kw),l=o||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),S.createElement("svg",mn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:d,style:gn(gn({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&S.createElement("title",null,a),e.children)};return ai!==void 0?S.createElement(ai.Consumer,null,r=>t(r)):t(gu)}function Dw(e){return hu({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var $w="Label",xu=c.forwardRef((e,t)=>s.jsx(Z.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));xu.displayName=$w;var Lw=xu;function bu({className:e,...t}){return s.jsx(Lw,{"data-slot":"label",className:N("qodo qodo-label flex items-center text-purple-muted-300 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 yu=c.createContext({}),Fw=({...e})=>s.jsx(yu.Provider,{value:{name:e.name},children:s.jsx(uu,{...e})}),zn=()=>{const e=c.useContext(yu),t=c.useContext(wu),{getFieldState:r}=or(),n=cu({name:e.name}),o=r(e.name,n);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}},wu=c.createContext({});function Vw({className:e,...t}){const r=c.useId();return s.jsx(wu.Provider,{value:{id:r},children:s.jsx("div",{"data-slot":"form-item",className:N("qodo qodo-form-item grid gap-2",e),...t})})}function Bw({className:e,...t}){const{formItemId:r}=zn();return s.jsx(bu,{"data-slot":"form-label",className:N("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:r,...t})}function Gw({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=zn();return s.jsx(Bg,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Ww({className:e,...t}){const{formDescriptionId:r}=zn();return s.jsx("p",{"data-slot":"form-description",id:r,className:N("text-purple-muted-300 text-sm",e),...t})}function zw({className:e,...t}){const{error:r,formMessageId:n}=zn(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?s.jsx("p",{"data-slot":"form-message",id:n,className:N("text-destructive text-sm",e),...t,children:o}):null}var[qn,WR]=we("Tooltip",[ut]),Un=ut(),Cu="TooltipProvider",qw=700,Go="tooltip.open",[Uw,Ma]=qn(Cu),Su=e=>{const{__scopeTooltip:t,delayDuration:r=qw,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=c.useRef(!0),l=c.useRef(!1),d=c.useRef(0);return c.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),s.jsx(Uw,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:a})};Su.displayName=Cu;var yr="Tooltip",[Hw,Mr]=qn(yr),Eu=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,d=Ma(yr,e.__scopeTooltip),u=Un(t),[f,p]=c.useState(null),g=ge(),m=c.useRef(0),b=i??d.disableHoverableContent,v=l??d.delayDuration,h=c.useRef(!1),[y,x]=ye({prop:n,defaultProp:o??!1,onChange:A=>{A?(d.onOpen(),document.dispatchEvent(new CustomEvent(Go))):d.onClose(),a==null||a(A)},caller:yr}),C=c.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),E=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,h.current=!1,x(!0)},[x]),j=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),T=c.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{h.current=!0,x(!0),m.current=0},v)},[v,x]);return c.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),s.jsx(Nr,{...u,children:s.jsx(Hw,{scope:t,contentId:g,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{d.isOpenDelayedRef.current?T():E()},[d.isOpenDelayedRef,T,E]),onTriggerLeave:c.useCallback(()=>{b?j():(window.clearTimeout(m.current),m.current=0)},[j,b]),onOpen:E,onClose:j,disableHoverableContent:b,children:r})})};Eu.displayName=yr;var Wo="TooltipTrigger",Ru=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Mr(Wo,r),a=Ma(Wo,r),i=Un(r),l=c.useRef(null),d=se(t,l,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),s.jsx(kr,{asChild:!0,...i,children:s.jsx(Z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:d,onPointerMove:G(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:G(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:G(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:G(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:G(e.onBlur,o.onClose),onClick:G(e.onClick,o.onClose)})})});Ru.displayName=Wo;var Oa="TooltipPortal",[Kw,Yw]=qn(Oa,{forceMount:void 0}),Pu=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Mr(Oa,t);return s.jsx(Kw,{scope:t,forceMount:r,children:s.jsx(je,{present:r||a.open,children:s.jsx(tr,{asChild:!0,container:o,children:n})})})};Pu.displayName=Oa;var Kt="TooltipContent",ju=c.forwardRef((e,t)=>{const r=Yw(Kt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=Mr(Kt,e.__scopeTooltip);return s.jsx(je,{present:n||i.open,children:i.disableHoverableContent?s.jsx(Nu,{side:o,...a,ref:t}):s.jsx(Xw,{side:o,...a,ref:t})})}),Xw=c.forwardRef((e,t)=>{const r=Mr(Kt,e.__scopeTooltip),n=Ma(Kt,e.__scopeTooltip),o=c.useRef(null),a=se(t,o),[i,l]=c.useState(null),{trigger:d,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,g=c.useCallback(()=>{l(null),p(!1)},[p]),m=c.useCallback((b,v)=>{const h=b.currentTarget,y={x:b.clientX,y:b.clientY},x=e0(y,h.getBoundingClientRect()),C=t0(y,x),E=r0(v.getBoundingClientRect()),j=o0([...C,...E]);l(j),p(!0)},[p]);return c.useEffect(()=>()=>g(),[g]),c.useEffect(()=>{if(d&&f){const b=h=>m(h,f),v=h=>m(h,d);return d.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{d.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[d,f,m,g]),c.useEffect(()=>{if(i){const b=v=>{const h=v.target,y={x:v.clientX,y:v.clientY},x=(d==null?void 0:d.contains(h))||(f==null?void 0:f.contains(h)),C=!n0(y,i);x?g():C&&(g(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[d,f,i,u,g]),s.jsx(Nu,{...e,ref:a})}),[Zw,Jw]=qn(yr,{isInside:!1}),Qw=Wg("TooltipContent"),Nu=c.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,d=Mr(Kt,r),u=Un(r),{onClose:f}=d;return c.useEffect(()=>(document.addEventListener(Go,f),()=>document.removeEventListener(Go,f)),[f]),c.useEffect(()=>{if(d.trigger){const p=g=>{const m=g.target;m!=null&&m.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),s.jsx(Jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:s.jsxs(Tn,{"data-state":d.stateAttribute,...u,...l,ref:t,style:{...l.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:[s.jsx(Qw,{children:n}),s.jsx(Zw,{scope:r,isInside:!0,children:s.jsx(Oh,{id:d.contentId,role:"tooltip",children:o||n})})]})})});ju.displayName=Kt;var ku="TooltipArrow",Tu=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Un(r);return Jw(ku,r).isInside?null:s.jsx(An,{...o,...n,ref:t})});Tu.displayName=ku;function e0(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function t0(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function r0(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function n0(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],d=t[i],u=l.x,f=l.y,p=d.x,g=d.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function o0(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),a0(t)}function a0(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var s0=Su,i0=Eu,l0=Ru,c0=Pu,d0=ju,u0=Tu;function Au({delayDuration:e=0,...t}){return s.jsx(s0,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function _u({...e}){return s.jsx(Au,{children:s.jsx(i0,{"data-slot":"tooltip",...e})})}function Iu({...e}){return s.jsx(l0,{"data-slot":"tooltip-trigger",...e})}function Mu({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return s.jsx(c0,{children:s.jsxs(d0,{"data-slot":"tooltip-content",sideOffset:t,className:N("qodo qodo-tooltip-content bg-purple-muted-700 border border-purple-muted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e,{"py-2.5":n}),...o,children:[r,!n&&s.jsx(u0,{className:"bg-purple-muted-700 fill-purple-muted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const ar=e=>t=>{const{name:r,label:n,description:o,tooltip:a,required:i=!1,...l}=t,{control:d,disabled:u,readOnly:f}=mu(),p=()=>a?s.jsxs(_u,{children:[s.jsx(Iu,{asChild:!0,children:s.jsx("span",{children:s.jsx(Dw,{size:16})})}),s.jsx(Mu,{children:s.jsx("p",{children:a})})]}):s.jsx(s.Fragment,{}),g=()=>o?s.jsx(Ww,{children:o}):s.jsx(s.Fragment,{});return s.jsx(Fw,{control:d,name:r,render:({field:m,fieldState:b})=>s.jsxs(Vw,{className:"flex flex-col gap-1.5",children:[n&&s.jsx(Bw,{children:s.jsxs("span",{className:"flex items-center gap-1",children:[n,i&&s.jsx("span",{className:"text-purple-muted-300",children:"*"}),!!a&&p()]})}),s.jsx(Gw,{children:s.jsx(e,{...m,disabled:u,...l,readOnly:f,error:!!b.error})}),!!o&&g(),s.jsx(zw,{})]})})},f0=S.forwardRef((e,t)=>s.jsx(Rr,{...e,ref:t})),p0=S.forwardRef((e,t)=>ar(f0)({...e,ref:t})),m0=S.forwardRef((e,t)=>{const{options:r=[],onChange:n=()=>{},searchPlaceholder:o,onSearchChange:a,...i}=e,l=d=>{n({target:{value:d}})};return s.jsx(ba,{ref:t,options:r,onValueChange:l,searchPlaceholder:o,onSearchChange:a,...i})}),g0=ar(m0);var Da="Radio",[v0,Ou]=we(Da),[h0,x0]=v0(Da),Du=c.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:d,form:u,...f}=e,[p,g]=c.useState(null),m=se(t,h=>g(h)),b=c.useRef(!1),v=p?u||!!p.closest("form"):!0;return s.jsxs(h0,{scope:r,checked:o,disabled:i,children:[s.jsx(Z.button,{type:"button",role:"radio","aria-checked":o,"data-state":Vu(o),"data-disabled":i?"":void 0,disabled:i,value:l,...f,ref:m,onClick:G(e.onClick,h=>{o||d==null||d(),v&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),v&&s.jsx(Fu,{control:p,bubbles:!b.current,name:n,value:l,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});Du.displayName=Da;var $u="RadioIndicator",Lu=c.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=x0($u,r);return s.jsx(je,{present:n||a.checked,children:s.jsx(Z.span,{"data-state":Vu(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Lu.displayName=$u;var b0="RadioBubbleInput",Fu=c.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const i=c.useRef(null),l=se(i,a),d=ia(r),u=oa(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&m){const b=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(b)}},[d,r,n]),s.jsx(Z.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Fu.displayName=b0;function Vu(e){return e?"checked":"unchecked"}var y0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Hn="RadioGroup",[w0,zR]=we(Hn,[nr,Ou]),Bu=nr(),Gu=Ou(),[C0,S0]=w0(Hn),Wu=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:d,dir:u,loop:f=!0,onValueChange:p,...g}=e,m=Bu(r),b=Zt(u),[v,h]=ye({prop:a,defaultProp:o??null,onChange:p,caller:Hn});return s.jsx(C0,{scope:r,name:n,required:i,disabled:l,value:v,onValueChange:h,children:s.jsx(Sa,{asChild:!0,...m,orientation:d,dir:b,loop:f,children:s.jsx(Z.div,{role:"radiogroup","aria-required":i,"aria-orientation":d,"data-disabled":l?"":void 0,dir:b,...g,ref:t})})})});Wu.displayName=Hn;var zu="RadioGroupItem",qu=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=S0(zu,r),i=a.disabled||n,l=Bu(r),d=Gu(r),u=c.useRef(null),f=se(t,u),p=a.value===o.value,g=c.useRef(!1);return c.useEffect(()=>{const m=v=>{y0.includes(v.key)&&(g.current=!0)},b=()=>g.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",b)}},[]),s.jsx(Ea,{asChild:!0,...l,focusable:!i,active:p,children:s.jsx(Du,{disabled:i,required:a.required,checked:p,...d,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:G(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:G(o.onFocus,()=>{var m;g.current&&((m=u.current)==null||m.click())})})})});qu.displayName=zu;var E0="RadioGroupIndicator",Uu=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Gu(r);return s.jsx(Lu,{...o,...n,ref:t})});Uu.displayName=E0;var R0=Wu,P0=qu,j0=Uu;function N0({className:e,...t}){const{readOnly:r,...n}=t;return s.jsx(R0,{"data-slot":"radio-group","data-readonly":r||void 0,disabled:n.disabled||r,className:N("qodo qodo-radio-group grid gap-3 group",e),...n})}function k0({className:e,...t}){return s.jsx(P0,{"data-slot":"radio-group-item",className:N("qodo qodo-radio-group-item dark:border-purple-muted-200 dark:text-purple-muted-200 focus-visible:border-ring focus-visible:ring-ring/50","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]","disabled:cursor-not-allowed disabled:opacity-50","group-data-[readonly]:opacity-100 group-data-[readonly]:cursor-default","mt-[2px] mr-0",e),...t,children:s.jsx(j0,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:s.jsx(gg,{className:"fill-purple-muted-200 absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2"})})})}const $a=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o,disabled:a=!1,readOnly:i=!1,className:l,direction:d="horizontal",dir:u="ltr",name:f,onChange:p,...g}=e,m=v=>{i||(p==null||p({target:{value:v}}),o==null||o(v))},b=N("qodo qodo-custom-radio-group","flex",{"flex-row gap-6":d==="horizontal","flex-col gap-3":d==="vertical"},l);return s.jsx(N0,{name:f,ref:t,value:r,defaultValue:n,onValueChange:m,disabled:a||i,readOnly:i,className:b,dir:u,...g})});$a.displayName="BaseRadioGroupComponent";const La=({value:e="",disabled:t,error:r,name:n="radio",children:o,className:a})=>{const i=`${n}-${e}`;return s.jsxs(bu,{htmlFor:i,className:N("flex items-start p-4 rounded-lg gap-2 transition-all duration-200","font-normal text-purple-muted-200 dark:text-purple-muted-200 leading-5",{"cursor-pointer hover:bg-muted/50":!t,"opacity-50 !cursor-not-allowed hover:!bg-transparent":t,"border border-destructive":r},a),children:[s.jsx(k0,{value:e,id:i,disabled:t||r}),o]},e)};La.displayName="RadioGroupItemComponent";const T0=ar($a),A0=e=>s.jsx("hr",{className:"w-full h-px border-purple-muted-500",...e}),_0=({children:e,description:t,className:r})=>s.jsxs("div",{className:N("space-y-1",r),children:[s.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&s.jsx("span",{className:"text-sm text-purple-muted-300",children:t})]}),Hu=S.forwardRef(({direction:e="horizontal",className:t,...r},n)=>{const o=N("flex flex-row gap-6",{"flex-col":e==="vertical"},t);return s.jsx("div",{ref:n,className:o,...r})});Hu.displayName="FormGroup";function I0({className:e,rows:t,...r}){return s.jsx("textarea",{"data-slot":"textarea",rows:t,className:N("qodo qodo-textarea border-input px-3 py-2 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20","dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent","placeholder:text-purple-muted-400 text-purple-muted-300 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm",{"field-sizing-content":!t},e),...r})}const M0=S.forwardRef((e,t)=>ar(I0)({...e,ref:t})),Ku=({label:e,id:t,onRemoveTag:r,disabled:n,className:o,variant:a="default"})=>s.jsxs(Ht,{variant:a,disabled:n,size:"sm",className:N("flex items-center gap-1 px-2 py-0.5","font-normal whitespace-nowrap",o),children:[e,r&&s.jsx(Qe,{type:"button",variant:"ghost",size:"icon",className:"p-0 w-[10px] h-[10px] text-inherit disabled:text-inherit",onClick:i=>{i.stopPropagation(),r==null||r(t)},"aria-label":`Remove ${e}`,disabled:n,children:s.jsx(Sn,{className:"w-[10px] h-[10px]"})})]}),O0=({label:e,id:t,onClick:r,onDeleteSuggestion:n,deleteText:o,className:a,tagClassName:i,tagVariant:l})=>s.jsx("div",{onClick:r,className:N("bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",a),children:s.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[s.jsx(Ku,{label:e,id:t,className:i,variant:l}),n&&s.jsx(Qe,{type:"button",variant:"ghost",className:"p-0 text-xs font-normal h-[10px]",onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),n==null||n(t)},"aria-label":`${o} ${e}`,children:o||s.jsx(_g,{className:"h-4 w-4"})})]})}),bo={BACKSPACE:"Backspace",ESCAPE:"Escape",ENTER:"Enter"},D0=e=>{if(!e)return"";let t=e.toLowerCase();return t=t.replace(/[_\s]+/g,"-"),t=t.replace(/[^a-z0-9-]/g,""),t=t.replace(/-+/g,"-"),t=t.replace(/^-|-$/g,""),t},Yu=({value:e=[],variant:t="default",placeholder:r="Type to add a tag...",deleteText:n="Delete",suggestions:o=[],allowCreate:a=!0,maxTags:i=100,disabled:l=!1,className:d,suggestionWrapperClassName:u,suggestionClassName:f,tagClassName:p,tagInputIcon:g,onDeleteSuggestion:m,onBlur:b,normalizeTags:v=D0,onChange:h=()=>{},onAddTag:y=()=>{},onRemoveTag:x=()=>{},onResetTags:C=()=>{}})=>{const[E,j]=S.useState(""),[T,A]=S.useState(!1),P=S.useRef(null),F=S.useRef(null),U=S.useRef(null),[re,ee]=S.useState();S.useEffect(()=>{F.current&&ee(F.current.offsetWidth)},[]);const J=e.length>=i,z=O=>{if(J||e.some(I=>I.id===O.id))return;const W=[...e,O];h(W),y(O)},$=O=>{const W=e.filter(I=>I.id!==O);h(W),x(O)},_=()=>{h==null||h([]),C()},D=O=>{const W=O.target.value;j(W),A(!0)},R=()=>{const O=E.trim().toLowerCase();if(!O)return[];const W=new Set(e.map(I=>I.id));return o.filter(I=>I.label.toLowerCase().includes(O)&&!W.has(I.id))},M=O=>v?v(O):O,V=()=>{const O=E.trim();if(!O)return;const W=M(O);if(!W)return;if(e.some(Q=>Q.id===W)){j(""),A(!1);return}const I=o.find(Q=>Q.id===W||M(Q.label)===W);I?z(I):a&&z({id:W,label:W}),j(""),A(!1)},X=O=>{const W=O.key===bo.BACKSPACE&&!E&&e.length>0,I=O.key===bo.ENTER&&E,Q=O.key===bo.ESCAPE;I?(O.preventDefault(),V(),U.current&&(U.current.scrollLeft=U.current.scrollWidth)):W?$(e[e.length-1].id):Q&&A(!1)},k=()=>{if(E&&R().length>0)return s.jsx(xa,{className:"p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",align:"start",style:{width:re??void 0},onOpenAutoFocus:O=>O.preventDefault(),onCloseAutoFocus:O=>O.preventDefault(),onMouseDown:O=>O.preventDefault(),children:s.jsx("div",{className:N("max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",u),children:R().map(O=>s.jsx(O0,{label:O.label,id:O.id,onDeleteSuggestion:m,deleteText:n,className:f,tagClassName:p,tagVariant:t,onClick:()=>{var W;z(O),j(""),A(!1),(W=P.current)==null||W.focus()}},O.id))})})},B=()=>g||s.jsx(Tg,{className:"h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]"}),Y=()=>e.map(O=>s.jsx(Ku,{label:O.label,id:O.id,onRemoveTag:$,disabled:l,className:p,variant:t},O.id));return s.jsx("div",{className:N("w-full",d),children:s.jsxs(va,{open:T&&!l,onOpenChange:A,modal:!1,children:[s.jsx(ha,{className:"w-full",children:s.jsxs("div",{ref:F,tabIndex:-1,className:N("flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",{"opacity-60":l}),onClick:O=>{var W;O.stopPropagation(),A(!0),(W=P.current)==null||W.focus()},children:[B(),s.jsxs("div",{ref:U,className:"flex items-center gap-2 w-full whitespace-normal overflow-x-auto",children:[Y(),s.jsx(Rr,{ref:P,value:E,onChange:D,onClick:O=>O.stopPropagation(),onFocus:()=>A(!0),onBlur:b,onKeyDown:X,placeholder:r,disabled:l||J,className:N("m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs","placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs")})]}),s.jsx(Sn,{className:"h-4 w-4 hover:cursor-pointer text-[var(--icon-input-neutral-idle)] hover:text-[var(--icon-input-neutral-hover)]",onClick:_})]})}),k()]})})};function $0(e){const{control:t}=or();return s.jsx(uu,{name:e.name,control:t,render:({field:r})=>s.jsx(Yu,{...e,value:r.value,onChange:r.onChange,onBlur:r.onBlur})})}const L0=ar($0),F0=12,ii={SINGLE:"single",MULTIPLE:"multiple"},li={LTR:"ltr"};var Xu=typeof global=="object"&&global&&global.Object===Object&&global,V0=typeof self=="object"&&self&&self.Object===Object&&self,vt=Xu||V0||Function("return this")(),vn=vt.Symbol,Zu=Object.prototype,B0=Zu.hasOwnProperty,G0=Zu.toString,dr=vn?vn.toStringTag:void 0;function W0(e){var t=B0.call(e,dr),r=e[dr];try{e[dr]=void 0;var n=!0}catch{}var o=G0.call(e);return n&&(t?e[dr]=r:delete e[dr]),o}var z0=Object.prototype,q0=z0.toString;function U0(e){return q0.call(e)}var H0="[object Null]",K0="[object Undefined]",ci=vn?vn.toStringTag:void 0;function Or(e){return e==null?e===void 0?K0:H0:ci&&ci in Object(e)?W0(e):U0(e)}function Fa(e){return e!=null&&typeof e=="object"}var Y0=Array.isArray;function Ju(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var X0="[object AsyncFunction]",Z0="[object Function]",J0="[object GeneratorFunction]",Q0="[object Proxy]";function Qu(e){if(!Ju(e))return!1;var t=Or(e);return t==Z0||t==J0||t==X0||t==Q0}var yo=vt["__core-js_shared__"],di=(function(){var e=/[^.]+$/.exec(yo&&yo.keys&&yo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function eC(e){return!!di&&di in e}var tC=Function.prototype,rC=tC.toString;function Tt(e){if(e!=null){try{return rC.call(e)}catch{}try{return e+""}catch{}}return""}var nC=/[\\^$.*+?()[\]{}|]/g,oC=/^\[object .+?Constructor\]$/,aC=Function.prototype,sC=Object.prototype,iC=aC.toString,lC=sC.hasOwnProperty,cC=RegExp("^"+iC.call(lC).replace(nC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dC(e){if(!Ju(e)||eC(e))return!1;var t=Qu(e)?cC:oC;return t.test(Tt(e))}function uC(e,t){return e==null?void 0:e[t]}function Dr(e,t){var r=uC(e,t);return dC(r)?r:void 0}var zo=Dr(vt,"WeakMap"),fC=9007199254740991;function ef(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fC}function pC(e){return e!=null&&ef(e.length)&&!Qu(e)}var mC=Object.prototype;function tf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mC;return e===r}var gC="[object Arguments]";function ui(e){return Fa(e)&&Or(e)==gC}var rf=Object.prototype,vC=rf.hasOwnProperty,hC=rf.propertyIsEnumerable,xC=ui((function(){return arguments})())?ui:function(e){return Fa(e)&&vC.call(e,"callee")&&!hC.call(e,"callee")};function bC(){return!1}var nf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fi=nf&&typeof module=="object"&&module&&!module.nodeType&&module,yC=fi&&fi.exports===nf,pi=yC?vt.Buffer:void 0,wC=pi?pi.isBuffer:void 0,CC=wC||bC,SC="[object Arguments]",EC="[object Array]",RC="[object Boolean]",PC="[object Date]",jC="[object Error]",NC="[object Function]",kC="[object Map]",TC="[object Number]",AC="[object Object]",_C="[object RegExp]",IC="[object Set]",MC="[object String]",OC="[object WeakMap]",DC="[object ArrayBuffer]",$C="[object DataView]",LC="[object Float32Array]",FC="[object Float64Array]",VC="[object Int8Array]",BC="[object Int16Array]",GC="[object Int32Array]",WC="[object Uint8Array]",zC="[object Uint8ClampedArray]",qC="[object Uint16Array]",UC="[object Uint32Array]",pe={};pe[LC]=pe[FC]=pe[VC]=pe[BC]=pe[GC]=pe[WC]=pe[zC]=pe[qC]=pe[UC]=!0;pe[SC]=pe[EC]=pe[DC]=pe[RC]=pe[$C]=pe[PC]=pe[jC]=pe[NC]=pe[kC]=pe[TC]=pe[AC]=pe[_C]=pe[IC]=pe[MC]=pe[OC]=!1;function HC(e){return Fa(e)&&ef(e.length)&&!!pe[Or(e)]}function KC(e){return function(t){return e(t)}}var of=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hr=of&&typeof module=="object"&&module&&!module.nodeType&&module,YC=hr&&hr.exports===of,wo=YC&&Xu.process,mi=(function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||wo&&wo.binding&&wo.binding("util")}catch{}})(),gi=mi&&mi.isTypedArray,XC=gi?KC(gi):HC;function ZC(e,t){return function(r){return e(t(r))}}var JC=ZC(Object.keys,Object),QC=Object.prototype,e1=QC.hasOwnProperty;function t1(e){if(!tf(e))return JC(e);var t=[];for(var r in Object(e))e1.call(e,r)&&r!="constructor"&&t.push(r);return t}var qo=Dr(vt,"Map"),Uo=Dr(vt,"DataView"),Ho=Dr(vt,"Promise"),Ko=Dr(vt,"Set"),vi="[object Map]",r1="[object Object]",hi="[object Promise]",xi="[object Set]",bi="[object WeakMap]",yi="[object DataView]",n1=Tt(Uo),o1=Tt(qo),a1=Tt(Ho),s1=Tt(Ko),i1=Tt(zo),wt=Or;(Uo&&wt(new Uo(new ArrayBuffer(1)))!=yi||qo&&wt(new qo)!=vi||Ho&&wt(Ho.resolve())!=hi||Ko&&wt(new Ko)!=xi||zo&&wt(new zo)!=bi)&&(wt=function(e){var t=Or(e),r=t==r1?e.constructor:void 0,n=r?Tt(r):"";if(n)switch(n){case n1:return yi;case o1:return vi;case a1:return hi;case s1:return xi;case i1:return bi}return t});var l1="[object Map]",c1="[object Set]",d1=Object.prototype,u1=d1.hasOwnProperty;function $r(e){if(e==null)return!0;if(pC(e)&&(Y0(e)||typeof e=="string"||typeof e.splice=="function"||CC(e)||XC(e)||xC(e)))return!e.length;var t=wt(e);if(t==l1||t==c1)return!e.size;if(tf(e))return!t1(e).length;for(var r in e)if(u1.call(e,r))return!1;return!0}function Kn(e){return!e.children||e.children.length===0?[e.value]:e.children.flatMap(t=>Kn(t))}function Va(e){const t=[e.value];return e.children&&e.children.forEach(r=>{t.push(...Va(r))}),t}function Ba(e,t){return $r(e.children)?!1:Kn(e).every(n=>t.has(n))}function f1(e,t){return $r(e.children)?!1:Kn(e).some(n=>t.has(n))}function af(e,t){for(const r of e){if(r.value===t)return r;if(r.children){const n=af(r.children,t);if(n)return n}}return null}function Ga(e,t){const r=new Map;for(const n of e){const o=t(n);o&&r.set(o[0],o[1]),n.children&&Ga(n.children,t).forEach((i,l)=>r.set(l,i))}return r}function sf(e,t){e.forEach(r=>{$r(r.children)||(Ba(r,t)?t.add(r.value):t.delete(r.value),r.children&&sf(r.children,t))})}const p1=e=>e?Array.isArray(e)?e:[e]:[],m1=e=>Ga(e,t=>[t.value,t.label]),g1=e=>Ga(e,t=>t.icon?[t.value,t.icon]:null);function v1(e,t){Va(e).forEach(n=>t.delete(n))}function h1(e,t){Va(e).forEach(n=>t.add(n))}function lf(e,t){const r=new Set(t);return e.flatMap(n=>!$r(n.children)&&n.children?Ba(n,r)?[n.value]:lf(n.children,t):r.has(n.value)?[n.value]:[])}function x1(e){return e&&e>1?e*F0:0}function cf({option:e,selected:t,onSelect:r,nestLevel:n=0,disabled:o=!1,dir:a=li.LTR}){const i=!$r(e.children),l=t.has(e.value),d=`${x1(n)}px`,u=Ba(e,t),p=f1(e,t)&&!u,g=l||u,m=()=>{if(n!==0)return s.jsx(hg,{className:"w-4 text-[var(--text-interactive-neutral-idle)]"})},b=()=>{if(e.icon)return s.jsx("div",{className:"flex-shrink-0 [&>svg]:text-[var(--text-interactive-neutral-idle)]!",children:e.icon})},v=()=>p?s.jsx(bg,{className:"w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]"}):s.jsx(Er,{className:N("h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",{"opacity-100":g})}),h=()=>{if(i)return e.children.map(x=>s.jsx(cf,{option:x,selected:t,onSelect:r,nestLevel:n+1,dir:a},x.value))},y=()=>s.jsxs("div",{className:N("flex items-center w-full gap-2 flex-row",{"flex-row-reverse":a===li.LTR}),style:{paddingLeft:d},children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[m(),b(),s.jsx("span",{className:"flex-1 text-[var(--text-interactive-neutral-active)]",children:e.label})]}),v()]});return s.jsxs("div",{children:[s.jsx(rd,{disabled:e.disabled||o,onSelect:()=>r(e.value,i),className:N("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)]! cursor-pointer disabled:cursor-not-allowed","focus:text-[var(--text-interactive-neutral-active)] data-[selected=true]:text-[var(--text-interactive-neutral-hover)]!",{"bg-[var(--fill-interactive-neutral-idle)]":g}),children:y()}),h()]})}function b1({value:e,options:t=[],onSelect:r,disabled:n=!1,mode:o=ii.SINGLE,placeholder:a="Select...",inputPlaceholder:i="Search...",emptyState:l="No option found.",triggerClassName:d,triggerWrapperClassName:u,badgeClassName:f,badgeVariant:p="text",searchable:g=!1,toggleIcon:m=s.jsx(Cn,{}),dir:b="ltr",...v}){const[h,y]=S.useState(0),[x,C]=S.useState(!1),E=S.useRef(null),j=o===ii.MULTIPLE,[T,A]=S.useState(e!==void 0?e:j?[]:""),P=p1(T),F=new Set(P);S.useEffect(()=>{E.current&&y(E.current.offsetWidth)},[T]);const U=m1(t),re=g1(t);S.useEffect(()=>{e!==void 0&&A(j?e||[]:e||"")},[e,j]);function ee(D,R){if(!j){A(D),r==null||r(D),C(!1);return}A(M=>{const V=Array.isArray(M)?M:[],X=new Set(V),k=af(t,D);if(!k)return V;R?J(k,X):z(D,X);const B=Array.from(X);return r==null||r(B),B})}function J(D,R){Kn(D).every(X=>R.has(X))?v1(D,R):h1(D,R)}function z(D,R){R.has(D)?R.delete(D):R.add(D),sf(t,R)}const $=()=>{const D=lf(t,P);return D.length===0?s.jsx(Ht,{variant:p,size:"md",className:N("text-purple-muted-300",f),children:a}):D.map(M=>{const V=re.get(M),X=U.get(M)||M;return s.jsx(Ht,{variant:p,size:"md",className:N("text-[var(--text-bg-neutral-mid)]",f),children:s.jsxs("div",{className:"flex items-center gap-1",children:[V&&s.jsx("div",{className:"flex-shrink-0",children:V}),s.jsx("span",{children:X})]})},M)})},_=()=>{if(g)return s.jsx(Jc,{className:"placeholder:text-[var(--text-bg-neutral-mid)] text-[var(--text-interactive-neutral-active)]",placeholder:i})};return s.jsxs(va,{open:x,onOpenChange:n?void 0:C,children:[s.jsx(ha,{asChild:!0,disabled:n,children:s.jsxs("div",{className:N("flex items-center gap-1.5 justify-between py-1 px-3 w-[100%] border border-[var(--border-interactive-neutral-idle)] bg-[var(--fill-input-neutral-idle)] rounded-sm scrollbar-thin","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",{"cursor-pointer hover:border-[var(--border-input-neutral-hover)] hover:bg-[var(--fill-input-neutral-hover)]":!n,"cursor-not-allowed opacity-75 ":n},u),ref:E,"aria-disabled":n,...v,children:[s.jsx("div",{className:N("flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",d),children:$()}),s.jsx("div",{className:"[&>svg]:text-[var(--icon-input-neutral-idle)] [&>svg]:hover:text-[var(--icon-input-neutral-hover)] [&>svg]:w-4 [&>svg]:h-4",children:m})]})}),s.jsx(xa,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] [&>svg]:text-purple-muted-300",style:{width:h??"auto"},children:s.jsxs(Zc,{className:"bg-[var(--fill-interactive-neutral-idle)]",children:[_(),s.jsxs(Qc,{children:[s.jsx(ed,{children:l}),s.jsx(td,{children:t.map(D=>s.jsx(cf,{disabled:n,option:D,selected:F,onSelect:ee,dir:b},D.value))})]})]})})]})}const df=S.forwardRef(e=>{const{options:t,onChange:r,readOnly:n,value:o,disabled:a,mode:i,...l}=e,d=u=>{n||r&&r({target:{value:u}})};return s.jsx(b1,{options:t,value:o,disabled:a,...l,onSelect:d,mode:i})});df.displayName="BaseSelectComponent";const y1=ar(df),Ie=e=>{const{className:t,disabled:r=!1,readOnly:n=!1,methods:o,onSubmit:a=()=>{},...i}=e,{handleSubmit:l}=o,d=N("qodo qodo-form","flex flex-col gap-6",t);return s.jsx(pu,{methods:o,disabled:r,readOnly:n,children:s.jsx("form",{className:d,onSubmit:l(a),...i})})};Ie.Button=Nw;Ie.Input=p0;Ie.Select=y1;Ie.Combobox=g0;Ie.RadioGroup=T0;Ie.RadioGroupItem=La;Ie.Group=Hu;Ie.Textarea=M0;Ie.Divider=A0;Ie.Title=_0;Ie.TagsInput=L0;function w1(e){return e==null?[]:Array.isArray(e)?e:[e]}var C1=e=>Array.from(Array(e).keys()),wi=e=>(e==null?void 0:e.constructor.name)==="Array",S1=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Wa(e[r],t[r]))return!1;return!0},Wa=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(wi(e)&&wi(t))return S1(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const a=r[o];if(!Wa(e[a],t[a]))return!1}return!0},E1=e=>e!=null&&typeof e=="object",nn=e=>typeof e=="string",pr=e=>typeof e=="function",R1=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),P1=e=>Object.prototype.toString.call(e),uf=Function.prototype.toString,j1=uf.call(Object),N1=e=>{if(!E1(e)||P1(e)!="[object Object]"||A1(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=R1(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uf.call(r)==j1},k1=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,T1=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,A1=e=>k1(e)||T1(e),_1=e=>e(),I1=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},M1=e=>Number.isNaN(e),O1=e=>M1(e)?0:e,D1=(e,t,r)=>{const n=O1(e),o=n>=t,a=r==null||n<=r;return o&&a};function ff(e){if(!N1(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=ff(o))}return r}function Ci(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function $1(e,t){if(e==null)throw new Error(t())}var pf=e=>typeof e=="object"&&e!==null,We=e=>e?"":void 0,L1=9,F1=e=>pf(e)&&e.nodeType===L1,V1=e=>pf(e)&&e===e.window;function B1(e){if(!e)return!1;const t=e.getRootNode();return mf(t)===e}function G1(e){return F1(e)?e:V1(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function mf(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var W1=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),z1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Si=e=>{const t={};let r;for(;r=z1.exec(e);)t[r[1]]=r[2];return t},q1=(e,t)=>{if(nn(e)){if(nn(t))return`${e};${t}`;e=Si(e)}else nn(t)&&(t=Si(t));return Object.assign({},e??{},t??{})};function Be(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=I1(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=W1(t[o],r[o]);continue}if(o==="style"){t[o]=q1(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function U1(e,t,r){let n=[],o;return a=>{const i=e(a);return(i.length!==n.length||i.some((d,u)=>!Wa(n[u],d)))&&(n=i,o=t(i,a)),o}}var Bt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Bt||{}),Co="__init__";function H1(e){const t=()=>{var i;return((i=e.getRootNode)==null?void 0:i.call(e))??document},r=()=>G1(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>mf(t()),isActiveElement:B1,getById:i=>t().getElementById(i)}}function K1(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var Y1=()=>e=>Array.from(new Set(e)),gf=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function hn(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,a]=S.useState(n),i=e().value!==void 0,l=S.useRef(o);l.current=i?e().value:o;const d=S.useRef(l.current);gf(()=>{d.current=l.current},[o,e().value]);const u=p=>{var b,v;const g=d.current,m=pr(p)?p(g):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:g}),i||a(m),r(m,g)||(v=(b=e()).onChange)==null||v.call(b,m,g)};function f(){return i?e().value:o}return{initial:n,ref:l,get:f,set(p){(e().sync?Sr.flushSync:_1)(()=>u(p))},invoke(p,g){var m,b;(b=(m=e()).onChange)==null||b.call(m,p,g)},hash(p){var g,m;return((m=(g=e()).hash)==null?void 0:m.call(g,p))??String(p)}}}hn.cleanup=e=>{S.useEffect(()=>e,[])};hn.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function X1(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var Z1=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function J1(e,t={}){var re,ee,J,z;const r=S.useMemo(()=>{const{id:$,ids:_,getRootNode:D}=t;return H1({id:$,ids:_,getRootNode:D})},[t]),n=(...$)=>{e.debug&&console.log(...$)},o=((re=e.props)==null?void 0:re.call(e,{props:ff(t),scope:r}))??t,a=Q1(o),i=(ee=e.context)==null?void 0:ee.call(e,{prop:a,bindable:hn,scope:r,flush:Ei,getContext(){return d},getComputed(){return j},getRefs(){return v},getEvent(){return m()}}),l=vf(i),d={get($){var _;return(_=l.current)==null?void 0:_[$].ref.current},set($,_){var D;(D=l.current)==null||D[$].set(_)},initial($){var _;return(_=l.current)==null?void 0:_[$].initial},hash($){var D,R;const _=(D=l.current)==null?void 0:D[$].get();return(R=l.current)==null?void 0:R[$].hash(_)}},u=S.useRef(new Map),f=S.useRef(null),p=S.useRef(null),g=S.useRef({type:""}),m=()=>({...g.current,current(){return g.current},previous(){return p.current}}),b=()=>({...T,matches(...$){return $.includes(T.ref.current)},hasTag($){var _,D;return!!((D=(_=e.states[T.ref.current])==null?void 0:_.tags)!=null&&D.includes($))}}),v=X1(((J=e.refs)==null?void 0:J.call(e,{prop:a,context:d}))??{}),h=()=>({state:b(),context:d,event:m(),prop:a,send:U,action:y,guard:x,track:Z1,refs:v,computed:j,flush:Ei,scope:r,choose:E}),y=$=>{const _=pr($)?$(h()):$;if(!_)return;const D=_.map(R=>{var V,X;const M=(X=(V=e.implementations)==null?void 0:V.actions)==null?void 0:X[R];return M||Ci(`[zag-js] No implementation found for action "${JSON.stringify(R)}"`),M});for(const R of D)R==null||R(h())},x=$=>{var _,D;return pr($)?$(h()):(D=(_=e.implementations)==null?void 0:_.guards)==null?void 0:D[$](h())},C=$=>{const _=pr($)?$(h()):$;if(!_)return;const D=_.map(M=>{var X,k;const V=(k=(X=e.implementations)==null?void 0:X.effects)==null?void 0:k[M];return V||Ci(`[zag-js] No implementation found for effect "${JSON.stringify(M)}"`),V}),R=[];for(const M of D){const V=M==null?void 0:M(h());V&&R.push(V)}return()=>R.forEach(M=>M==null?void 0:M())},E=$=>w1($).find(_=>{let D=!_.guard;return nn(_.guard)?D=!!x(_.guard):pr(_.guard)&&(D=_.guard(h())),D}),j=$=>{$1(e.computed,()=>"[zag-js] No computed object found on machine");const _=e.computed[$];return _({context:d,event:m(),prop:a,refs:v,scope:r,computed:j})},T=hn(()=>({defaultValue:e.initialState({prop:a}),onChange($,_){var R,M,V,X;if(_){const k=u.current.get(_);k==null||k(),u.current.delete(_)}_&&y((R=e.states[_])==null?void 0:R.exit),y((M=f.current)==null?void 0:M.actions);const D=C((V=e.states[$])==null?void 0:V.effects);if(D&&u.current.set($,D),_===Co){y(e.entry);const k=C(e.effects);k&&u.current.set(Co,k)}y((X=e.states[$])==null?void 0:X.entry)}})),A=S.useRef(void 0),P=S.useRef(Bt.NotStarted);gf(()=>{queueMicrotask(()=>{const D=P.current===Bt.Started;P.current=Bt.Started,n(D?"rehydrating...":"initializing...");const R=A.current??T.initial;T.invoke(R,D?T.get():Co)});const $=u.current,_=T.ref.current;return()=>{n("unmounting..."),A.current=_,P.current=Bt.Stopped,$.forEach(D=>D==null?void 0:D()),u.current=new Map,f.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const F=()=>"ref"in T?T.ref.current:T.get(),U=$=>{queueMicrotask(()=>{var X,k;if(P.current!==Bt.Started)return;p.current=g.current,g.current=$;let _=F();const D=((X=e.states[_].on)==null?void 0:X[$.type])??((k=e.on)==null?void 0:k[$.type]),R=E(D);if(!R)return;f.current=R;const M=R.target??_;n("transition",$.type,R.target||_,`(${R.actions})`);const V=M!==_;V?Sr.flushSync(()=>T.set(M)):R.reenter&&!V?T.invoke(_,_):y(R.actions??[])})};return(z=e.watch)==null||z.call(e,h()),{state:b(),send:U,context:d,prop:a,scope:r,refs:v,computed:j,event:m(),getStatus:()=>P.current}}function vf(e){const t=S.useRef(e);return t.current=e,t}function Q1(e){const t=vf(e);return function(n){return t.current[n]}}function Ei(e){queueMicrotask(()=>{Sr.flushSync(()=>e())})}var eS=K1(e=>e);function tS(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function rS(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const So=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:a,...i}=r;if(!o)return S.createElement(e,{...i,ref:n},a);if(!S.isValidElement(a))return null;const l=S.Children.only(a),d=rS(l);return S.cloneElement(l,{...Be(i,l.props),ref:n?tS(n,d):d})}));return t.displayName=e.displayName||e.name,t},nS=()=>{const e=new Map;return new Proxy(So,{apply(t,r,n){return So(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,So(n)),e.get(n)}})},Xe=nS();function oS(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Lr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:i}=e,l=S.createContext(i);l.displayName=t;function d(){var f;const u=S.useContext(l);if(!u&&r){const p=new Error(a??oS(n,o));throw p.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,p,d),p}return u}return[l.Provider,d,l]}const[aS,nt]=Lr({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),hf=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getContentProps({index:r.count}),e);return s.jsx(Xe.div,{...n,ref:t})});hf.displayName="StepsCompletedContent";const za=()=>(e,t)=>t.reduce((r,n)=>{const[o,a]=r,i=n;return a[i]!==void 0&&(o[i]=a[i]),delete a[i],[o,a]},[{},{...e}]),xf=S.forwardRef((e,t)=>{const[r,n]=za()(e,["index"]),o=nt(),a=Be(o.getContentProps(r),n);return s.jsx(Xe.div,{...a,ref:t})});xf.displayName="StepsContent";const[sS,qa]=Lr({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),bf=S.forwardRef((e,t)=>{const r=nt(),n=qa(),o=Be(r.getIndicatorProps(n),e);return s.jsx(Xe.div,{...o,ref:t})});bf.displayName="StepsIndicator";const[iS,qR]=Lr({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),yf=S.forwardRef((e,t)=>{const[r,n]=za()(e,["index"]),o=nt(),a=Be(o.getItemProps(r),n),i=o.getItemState(r);return s.jsx(sS,{value:r,children:s.jsx(iS,{value:i,children:s.jsx(Xe.div,{...a,ref:t})})})});yf.displayName="StepsItem";const wf=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getListProps(),e);return s.jsx(Xe.div,{...n,ref:t})});wf.displayName="StepsList";const Cf=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getNextTriggerProps(),e);return s.jsx(Xe.button,{...n,ref:t})});Cf.displayName="StepsNextTrigger";const Sf=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getPrevTriggerProps(),e);return s.jsx(Xe.button,{...n,ref:t})});Sf.displayName="StepsPrevTrigger";var mr=(e,t=[])=>({parts:(...r)=>{if(lS(t))return mr(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>mr(e,[...t,...r]),omit:(...r)=>mr(e,t.filter(n=>!r.includes(n))),rename:r=>mr(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Lt(e)}"][data-part="${Lt(n)}"]`,`& [data-scope="${Lt(e)}"][data-part="${Lt(n)}"]`].join(", "),attrs:{"data-scope":Lt(e),"data-part":Lt(n)}}}),{})}),Lt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),lS=e=>e.length===0,cS=mr("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),ze=cS.build(),dS=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},uS=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},Ri=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},fS=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function pS(e,t){const{context:r,send:n,computed:o,prop:a,scope:i}=e,l=r.get("step"),d=a("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),g=y=>({triggerId:Ri(i,y.index),contentId:fS(i,y.index),current:y.index===l,completed:y.index<l,incomplete:y.index>l,index:y.index,first:y.index===0,last:y.index===d-1}),m=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},b=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},v=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},h=y=>{n({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:l,count:d,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:m,goToPrevStep:b,resetStep:v,getItemState:g,setStep:h,getRootProps(){return t.element({...ze.root.attrs,id:dS(i),dir:a("dir"),"data-orientation":a("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const x=C1(d).map((C,E)=>Ri(i,E));return t.element({...ze.list.attrs,dir:a("dir"),id:uS(i),role:"tablist","aria-owns":x.join(" "),"aria-orientation":a("orientation"),"data-orientation":a("orientation")})},getItemProps(y){const x=g(y);return t.element({...ze.item.attrs,dir:a("dir"),"aria-current":x.current?"step":void 0,"data-orientation":a("orientation")})},getTriggerProps(y){const x=g(y);return t.button({...ze.trigger.attrs,id:x.triggerId,role:"tab",dir:a("dir"),tabIndex:!a("linear")||x.current?0:-1,"aria-selected":x.current,"aria-controls":x.contentId,"data-state":x.current?"open":"closed","data-orientation":a("orientation"),"data-complete":We(x.completed),"data-current":We(x.current),"data-incomplete":We(x.incomplete),onClick(C){C.defaultPrevented||a("linear")||n({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const x=g(y);return t.element({...ze.content.attrs,dir:a("dir"),id:x.contentId,role:"tabpanel",tabIndex:0,hidden:!x.current,"data-state":x.current?"open":"closed","data-orientation":a("orientation"),"aria-labelledby":x.triggerId})},getIndicatorProps(y){const x=g(y);return t.element({...ze.indicator.attrs,dir:a("dir"),"aria-hidden":!0,"data-complete":We(x.completed),"data-current":We(x.current),"data-incomplete":We(x.incomplete)})},getSeparatorProps(y){const x=g(y);return t.element({...ze.separator.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-complete":We(x.completed),"data-current":We(x.current),"data-incomplete":We(x.incomplete)})},getNextTriggerProps(){return t.button({...ze.nextTrigger.attrs,dir:a("dir"),type:"button",disabled:!f,onClick(y){y.defaultPrevented||m()}})},getPrevTriggerProps(){return t.button({dir:a("dir"),...ze.prevTrigger.attrs,type:"button",disabled:!p,onClick(y){y.defaultPrevented||b()}})},getProgressProps(){return t.element({dir:a("dir"),...ze.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":We(u===100)})}}}var mS={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,a;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((a=e("onStepComplete"))==null||a())}}))}},computed:{percent:U1(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){gS(t("count"),e.get("step"))}}}},gS=(e,t)=>{if(!D1(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};Y1()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[UR,vS]=Lr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[HR,hS]=Lr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function xS(e){const t=S.useId(),{getRootNode:r}=vS(),{dir:n}=hS(),o={id:t,dir:n,getRootNode:r,...e},a=J1(mS,o);return pS(a,eS)}const Ef=S.forwardRef((e,t)=>{const[r,n]=za()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=xS(r),a=Be(o.getRootProps(),n);return s.jsx(aS,{value:o,children:s.jsx(Xe.div,{...a,ref:t})})});Ef.displayName="StepsRoot";const Rf=S.forwardRef((e,t)=>{const r=nt(),n=qa(),o=Be(r.getSeparatorProps(n),e);return s.jsx(Xe.div,{...o,ref:t})});Rf.displayName="StepsSeparator";const Pf=S.forwardRef((e,t)=>{const r=nt(),n=qa(),o=Be(r.getTriggerProps(n),e);return s.jsx(Xe.button,{...o,ref:t})});Pf.displayName="StepsTrigger";function bS(e){return hu({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const jf=S.createContext(void 0),yS=({children:e,step:t})=>s.jsx(jf.Provider,{value:{step:t},children:e}),Nf=()=>{const e=S.useContext(jf);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},wS=({className:e,step:t,...r})=>{const n=N("qodo qodo-steps","flex flex-col gap-4",e);return s.jsx(yS,{step:t??0,children:s.jsx(Ef,{className:n,step:t,...r})})},CS=({className:e,...t})=>{const r=N("flex flex-row gap-4",e);return s.jsx(wf,{className:r,...t})},SS=({className:e,...t})=>{const r=N("flex flex-row items-center gap-4",e);return s.jsx(yf,{className:r,...t})},ES=({className:e,...t})=>{const r=N("flex flex-row items-center gap-4 text-purple-muted-100 text-sm",e);return s.jsx(Pf,{className:r,...t})},RS=({index:e,className:t,...r})=>{const{step:n}=Nf(),o=e===n,a=e<n,i=N("flex items-center justify-center w-8 h-8 rounded-full text-white",a&&"bg-green-700",o&&"bg-green-600",!a&&!o&&"bg-purple-muted-500",t),l=N({"text-white":o,"text-purple-muted-300":!a&&e!==n});return s.jsx(bf,{className:i,...r,children:a?s.jsx(bS,{className:"text-green-400"}):s.jsx("span",{className:l,children:e+1})})},PS=({index:e,className:t,...r})=>{const{step:n}=Nf(),o=e<n,a=N("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return s.jsx(Rf,{className:a,...r})},jS=({className:e,...t})=>{const r=N(e);return s.jsx(xf,{className:r,...t})},NS=({className:e,...t})=>{const r=N(e);return s.jsx(hf,{className:r,...t})},kS=({className:e,...t})=>{const r=N("bg-primary text-white px-4 py-2 rounded-md",e);return s.jsx(Sf,{className:r,...t})},TS=({className:e,...t})=>{const r=N("bg-primary text-white px-4 py-2 rounded-md",e);return s.jsx(Cf,{className:r,...t})},AS={Root:wS,List:CS,Item:SS,Trigger:ES,Indicator:RS,Separator:PS,Content:jS,CompletedContent:NS,PrevTrigger:kS,NextTrigger:TS},Fr=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>s.jsx(Au,{...r,children:s.jsxs(_u,{children:[s.jsx(Iu,{...n,children:e}),t&&s.jsx(Mu,{...o,children:t})]})});/**
204
+ Defaulting to \`null\`.`}var jy=yd,Ny=Cd;function ky({className:e,value:t,...r}){return s.jsx(jy,{"data-slot":"progress",className:j("qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:s.jsx(Ny,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Ed({className:e,...t}){return s.jsx("div",{className:j("qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var Vn="Switch",[Ty,lP]=we(Vn),[Ay,_y]=Ty(Vn),Rd=c.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:l,value:d="on",onCheckedChange:u,form:f,...p}=e,[g,m]=c.useState(null),b=se(t,C=>m(C)),v=c.useRef(!1),h=g?f||!!g.closest("form"):!0,[y,x]=ye({prop:o,defaultProp:a??!1,onChange:u,caller:Vn});return s.jsxs(Ay,{scope:r,checked:y,disabled:l,children:[s.jsx(H.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":kd(y),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:b,onClick:F(e.onClick,C=>{x(E=>!E),h&&(v.current=C.isPropagationStopped(),v.current||C.stopPropagation())})}),h&&s.jsx(Nd,{control:g,bubbles:!v.current,name:n,value:d,checked:y,required:i,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Rd.displayName=Vn;var Pd="SwitchThumb",jd=c.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=_y(Pd,r);return s.jsx(H.span,{"data-state":kd(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});jd.displayName=Pd;var Iy="SwitchBubbleInput",Nd=c.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const i=c.useRef(null),l=se(i,a),d=da(r),u=ia(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&m){const b=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(b)}},[d,r,n]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Nd.displayName=Iy;function kd(e){return e?"checked":"unchecked"}var My=Rd,Oy=jd;function Dy({className:e,...t}){return s.jsx(My,{"data-slot":"switch",className:j("qodo qodo-switch peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",e),...t,children:s.jsx(Oy,{"data-slot":"switch-thumb",className:j("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground")})})}var Td="Toggle",Ra=c.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[i,l]=ye({prop:r,onChange:o,defaultProp:n??!1,caller:Td});return s.jsx(H.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:F(e.onClick,()=>{e.disabled||l(!i)})})});Ra.displayName=Td;var $y=Ra;const Ad=wn("qodo qodo-toggle inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function Ly({className:e,variant:t,size:r,...n}){return s.jsx($y,{"data-slot":"toggle",className:j(Ad({variant:t,size:r,className:e})),...n})}var yo="rovingFocusGroup.onEntryFocus",Fy={bubbles:!1,cancelable:!0},Ir="RovingFocusGroup",[Go,_d,Vy]=En(Ir),[By,gt]=we(Ir,[Vy]),[Gy,Wy]=By(Ir),Id=c.forwardRef((e,t)=>s.jsx(Go.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Go.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(zy,{...e,ref:t})})}));Id.displayName=Ir;var zy=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=c.useRef(null),m=se(t,g),b=Tt(a),[v,h]=ye({prop:i,defaultProp:l??null,onChange:d,caller:Ir}),[y,x]=c.useState(!1),C=De(u),E=_d(r),N=c.useRef(!1),[T,A]=c.useState(0);return c.useEffect(()=>{const P=g.current;if(P)return P.addEventListener(yo,C),()=>P.removeEventListener(yo,C)},[C]),s.jsx(Gy,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(P=>h(P),[h]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(P=>P+1),[]),onFocusableItemRemove:c.useCallback(()=>A(P=>P-1),[]),children:s.jsx(H.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{N.current=!0}),onFocus:F(e.onFocus,P=>{const V=!N.current;if(P.target===P.currentTarget&&V&&!y){const U=new CustomEvent(yo,Fy);if(P.currentTarget.dispatchEvent(U),!U.defaultPrevented){const re=E().filter(I=>I.focusable),te=re.find(I=>I.active),Q=re.find(I=>I.id===v),D=[te,Q,...re].filter(Boolean).map(I=>I.ref.current);Dd(D,f)}}N.current=!1}),onBlur:F(e.onBlur,()=>x(!1))})})}),Md="RovingFocusGroupItem",Od=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...l}=e,d=me(),u=a||d,f=Wy(Md,r),p=f.currentTabStopId===u,g=_d(r),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:v}=f;return c.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),s.jsx(Go.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:s.jsx(H.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:F(e.onMouseDown,h=>{n?f.onItemFocus(u):h.preventDefault()}),onFocus:F(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:F(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Hy(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let C=g().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const E=C.indexOf(h.currentTarget);C=f.loop?Ky(C,E+1):C.slice(E+1)}setTimeout(()=>Dd(C))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:v!=null}):i})})});Od.displayName=Md;var qy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Uy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hy(e,t,r){const n=Uy(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return qy[n]}function Dd(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ky(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Bn=Id,Gn=Od,vt="ToggleGroup",[$d,cP]=we(vt,[gt]),Ld=gt(),Pa=S.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return s.jsx(Yy,{...o,ref:t})}if(r==="multiple"){const o=n;return s.jsx(Xy,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${vt}\``)});Pa.displayName=vt;var[Fd,Vd]=$d(vt),Yy=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:r,defaultProp:n??"",onChange:o,caller:vt});return s.jsx(Fd,{scope:e.__scopeToggleGroup,type:"single",value:S.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:S.useCallback(()=>l(""),[l]),children:s.jsx(Bd,{...a,ref:t})})}),Xy=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:r,defaultProp:n??[],onChange:o,caller:vt}),d=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return s.jsx(Fd,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:d,onItemDeactivate:u,children:s.jsx(Bd,{...a,ref:t})})});Pa.displayName=vt;var[Zy,Jy]=$d(vt),Bd=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...d}=e,u=Ld(r),f=Tt(i),p={role:"group",dir:f,...d};return s.jsx(Zy,{scope:r,rovingFocus:o,disabled:n,children:o?s.jsx(Bn,{asChild:!0,...u,orientation:a,dir:f,loop:l,children:s.jsx(H.div,{...p,ref:t})}):s.jsx(H.div,{...p,ref:t})})}),fn="ToggleGroupItem",Gd=S.forwardRef((e,t)=>{const r=Vd(fn,e.__scopeToggleGroup),n=Jy(fn,e.__scopeToggleGroup),o=Ld(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,l={...e,pressed:a,disabled:i},d=S.useRef(null);return n.rovingFocus?s.jsx(Gn,{asChild:!0,...o,focusable:!i,active:a,ref:d,children:s.jsx(ri,{...l,ref:t})}):s.jsx(ri,{...l,ref:t})});Gd.displayName=fn;var ri=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=Vd(fn,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(Ra,{...l,...o,ref:t,onPressedChange:d=>{d?a.onItemActivate(n):a.onItemDeactivate(n)}})}),Qy=Pa,ew=Gd;const Wd=c.createContext({size:"default",variant:"default"});function tw({className:e,variant:t,size:r,children:n,...o}){return s.jsx(Qy,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:j("qodo qodo-toggle-group group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:s.jsx(Wd.Provider,{value:{variant:t,size:r},children:n})})}function rw({className:e,children:t,variant:r,size:n,...o}){const a=c.useContext(Wd);return s.jsx(ew,{"data-slot":"toggle-group-item","data-variant":a.variant||r,"data-size":a.size||n,className:j(Ad({variant:a.variant||r,size:a.size||n}),"qodo qodo-toggle-group-item min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var Wn="Collapsible",[nw,zd]=we(Wn),[ow,ja]=nw(Wn),qd=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[d,u]=ye({prop:n,defaultProp:o??!1,onChange:i,caller:Wn});return s.jsx(ow,{scope:r,disabled:a,contentId:me(),open:d,onOpenToggle:c.useCallback(()=>u(f=>!f),[u]),children:s.jsx(H.div,{"data-state":ka(d),"data-disabled":a?"":void 0,...l,ref:t})})});qd.displayName=Wn;var Ud="CollapsibleTrigger",Hd=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=ja(Ud,r);return s.jsx(H.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ka(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:F(e.onClick,o.onOpenToggle)})});Hd.displayName=Ud;var Na="CollapsibleContent",Kd=c.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ja(Na,e.__scopeCollapsible);return s.jsx(Re,{present:r||o.open,children:({present:a})=>s.jsx(aw,{...n,ref:t,present:a})})});Kd.displayName=Na;var aw=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=ja(Na,r),[l,d]=c.useState(n),u=c.useRef(null),f=se(t,u),p=c.useRef(0),g=p.current,m=c.useRef(0),b=m.current,v=i.open||l,h=c.useRef(v),y=c.useRef(void 0);return c.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),be(()=>{const x=u.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();p.current=C.height,m.current=C.width,h.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),d(n)}},[i.open,n]),s.jsx(H.div,{"data-state":ka(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&o})});function ka(e){return e?"open":"closed"}var sw=qd,iw=Hd,lw=Kd,Ve="Accordion",cw=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ta,dw,uw]=En(Ve),[zn,dP]=we(Ve,[uw,zd]),Aa=zd(),Yd=S.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return s.jsx(Ta.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(gw,{...a,ref:t}):s.jsx(mw,{...o,ref:t})})});Yd.displayName=Ve;var[Xd,fw]=zn(Ve),[Zd,pw]=zn(Ve,{collapsible:!1}),mw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,d]=ye({prop:r,defaultProp:n??"",onChange:o,caller:Ve});return s.jsx(Xd,{scope:e.__scopeAccordion,value:S.useMemo(()=>l?[l]:[],[l]),onItemOpen:d,onItemClose:S.useCallback(()=>a&&d(""),[a,d]),children:s.jsx(Zd,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(Jd,{...i,ref:t})})})}),gw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=ye({prop:r,defaultProp:n??[],onChange:o,caller:Ve}),d=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return s.jsx(Xd,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:u,children:s.jsx(Zd,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(Jd,{...a,ref:t})})})}),[vw,qn]=zn(Ve),Jd=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,l=S.useRef(null),d=se(l,t),u=dw(r),p=Tt(o)==="ltr",g=F(e.onKeyDown,m=>{var P;if(!cw.includes(m.key))return;const b=m.target,v=u().filter(V=>{var U;return!((U=V.ref.current)!=null&&U.disabled)}),h=v.findIndex(V=>V.ref.current===b),y=v.length;if(h===-1)return;m.preventDefault();let x=h;const C=0,E=y-1,N=()=>{x=h+1,x>E&&(x=C)},T=()=>{x=h-1,x<C&&(x=E)};switch(m.key){case"Home":x=C;break;case"End":x=E;break;case"ArrowRight":a==="horizontal"&&(p?N():T());break;case"ArrowDown":a==="vertical"&&N();break;case"ArrowLeft":a==="horizontal"&&(p?T():N());break;case"ArrowUp":a==="vertical"&&T();break}const A=x%y;(P=v[A].ref.current)==null||P.focus()});return s.jsx(vw,{scope:r,disabled:n,direction:o,orientation:a,children:s.jsx(Ta.Slot,{scope:r,children:s.jsx(H.div,{...i,"data-orientation":a,ref:d,onKeyDown:n?void 0:g})})})}),pn="AccordionItem",[hw,_a]=zn(pn),Qd=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=qn(pn,r),i=fw(pn,r),l=Aa(r),d=me(),u=n&&i.value.includes(n)||!1,f=a.disabled||e.disabled;return s.jsx(hw,{scope:r,open:u,disabled:f,triggerId:d,children:s.jsx(sw,{"data-orientation":a.orientation,"data-state":au(u),...l,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?i.onItemOpen(n):i.onItemClose(n)}})})});Qd.displayName=pn;var eu="AccordionHeader",tu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=qn(Ve,r),a=_a(eu,r);return s.jsx(H.h3,{"data-orientation":o.orientation,"data-state":au(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});tu.displayName=eu;var Wo="AccordionTrigger",ru=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=qn(Ve,r),a=_a(Wo,r),i=pw(Wo,r),l=Aa(r);return s.jsx(Ta.ItemSlot,{scope:r,children:s.jsx(iw,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...n,ref:t})})});ru.displayName=Wo;var nu="AccordionContent",ou=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=qn(Ve,r),a=_a(nu,r),i=Aa(r);return s.jsx(lw,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ou.displayName=nu;function au(e){return e?"open":"closed"}var xw=Yd,bw=Qd,yw=tu,ww=ru,Cw=ou;function Sw({...e}){return s.jsx(xw,{"data-slot":"accordion",...e})}function Ew({className:e,...t}){return s.jsx(bw,{"data-slot":"accordion-item",className:j("qodo qodo-accordion-item border-b last:border-b-0 dark:border-border",e),...t})}function Rw({className:e,children:t,...r}){return s.jsx(yw,{className:"flex",children:s.jsxs(ww,{"data-slot":"accordion-trigger",className:j("qodo qodo-accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",e),...r,children:[t,s.jsx(Cn,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function Pw({className:e,children:t,...r}){return s.jsx(Cw,{"data-slot":"accordion-content",className:j("qodo qodo-accordion-content","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground"),...r,children:s.jsx("div",{className:j("pt-0 pb-4",e),children:t})})}var Un="Tabs",[jw,uP]=we(Un,[gt]),su=gt(),[Nw,Ia]=jw(Un),iu=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:d="automatic",...u}=e,f=Tt(l),[p,g]=ye({prop:n,onChange:o,defaultProp:a??"",caller:Un});return s.jsx(Nw,{scope:r,baseId:me(),value:p,onValueChange:g,orientation:i,dir:f,activationMode:d,children:s.jsx(H.div,{dir:f,"data-orientation":i,...u,ref:t})})});iu.displayName=Un;var lu="TabsList",cu=c.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Ia(lu,r),i=su(r);return s.jsx(Bn,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:s.jsx(H.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});cu.displayName=lu;var du="TabsTrigger",uu=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=Ia(du,r),l=su(r),d=mu(i.baseId,n),u=gu(i.baseId,n),f=n===i.value;return s.jsx(Gn,{asChild:!0,...l,focusable:!o,active:f,children:s.jsx(H.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...a,ref:t,onMouseDown:F(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?i.onValueChange(n):p.preventDefault()}),onKeyDown:F(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(n)}),onFocus:F(e.onFocus,()=>{const p=i.activationMode!=="manual";!f&&!o&&p&&i.onValueChange(n)})})})});uu.displayName=du;var fu="TabsContent",pu=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,l=Ia(fu,r),d=mu(l.baseId,n),u=gu(l.baseId,n),f=n===l.value,p=c.useRef(f);return c.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),s.jsx(Re,{present:o||f,children:({present:g})=>s.jsx(H.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!g,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&a})})});pu.displayName=fu;function mu(e,t){return`${e}-trigger-${t}`}function gu(e,t){return`${e}-content-${t}`}var kw=iu,Tw=cu,Aw=uu,_w=pu;function Iw({className:e,...t}){return s.jsx(kw,{"data-slot":"tabs",className:j("qodo qodo-tabs flex flex-col gap-2",e),...t})}function Mw({className:e,...t}){return s.jsx(Tw,{"data-slot":"tabs-list",className:j("inline-flex w-full items-end justify-start gap-4",e),...t})}function Ow({className:e,...t}){return s.jsx(Aw,{"data-slot":"tabs-trigger",className:j("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)] data-[state=active]:text-[var(--text-interactive-emphasis-active)] focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 border-b border-transparent py-4 text-xs font-normal whitespace-nowrap transition-[color,border-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=active]:border-[var(--color-purple-400)] relative -mb-px tracking-[0.01em] leading-[150%] cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Dw({className:e,...t}){return s.jsx(_w,{"data-slot":"tabs-content",className:j("flex-1 outline-none",e),...t})}var $w=e=>e.type==="checkbox",fr=e=>e instanceof Date,Ma=e=>e==null;const vu=e=>typeof e=="object";var kt=e=>!Ma(e)&&!Array.isArray(e)&&vu(e)&&!fr(e),Lw=e=>kt(e)&&e.target?$w(e.target)?e.target.checked:e.target.value:e,Fw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Vw=(e,t)=>e.has(Fw(t)),Bw=e=>{const t=e.constructor&&e.constructor.prototype;return kt(t)&&t.hasOwnProperty("isPrototypeOf")},Gw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hu(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Gw&&(e instanceof Blob||n))&&(r||kt(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Bw(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=hu(e[o]));else return e;return t}var xu=e=>/^\w*$/.test(e),zo=e=>e===void 0,Ww=e=>Array.isArray(e)?e.filter(Boolean):[],bu=e=>Ww(e.replace(/["|']|\]/g,"").split(/\.|\[/)),je=(e,t,r)=>{if(!t||!kt(e))return r;const n=(xu(t)?[t]:bu(t)).reduce((o,a)=>Ma(o)?o:o[a],e);return zo(n)||n===e?zo(e[t])?r:e[t]:n},wo=e=>typeof e=="boolean",ni=(e,t,r)=>{let n=-1;const o=xu(t)?[t]:bu(t),a=o.length,i=a-1;for(;++n<a;){const l=o[n];let d=r;if(n!==i){const u=e[l];d=kt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const oi={BLUR:"blur",CHANGE:"change"},ai={all:"all"},Oa=S.createContext(null);Oa.displayName="HookFormContext";const or=()=>S.useContext(Oa),zw=e=>{const{children:t,...r}=e;return S.createElement(Oa.Provider,{value:r},t)};var qw=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==ai.all&&(t._proxyFormState[i]=!n||ai.all),r&&(r[i]=!0),e[i]}});return o};const yu=typeof window<"u"?S.useLayoutEffect:S.useEffect;function wu(e){const t=or(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,l]=S.useState(r._formState),d=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return yu(()=>r._subscribe({name:o,formState:d.current,exact:a,callback:u=>{!n&&l({...r._formState,...u})}}),[o,n,a]),S.useEffect(()=>{d.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>qw(i,r,d.current,!1),[i,r])}var Uw=e=>typeof e=="string",Hw=(e,t,r,n,o)=>Uw(e)?je(r,e,o):Array.isArray(e)?e.map(a=>je(r,a)):r,si=e=>Ma(e)||!vu(e);function Cu(e,t,r=new WeakSet){if(si(e)||si(t))return e===t;if(fr(e)&&fr(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const l=t[a];if(fr(i)&&fr(l)||kt(i)&&kt(l)||Array.isArray(i)&&Array.isArray(l)?!Cu(i,l,r):i!==l)return!1}}return!0}function Kw(e){const t=or(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:l}=e||{},d=S.useRef(o),u=S.useRef(l),f=S.useRef(void 0);u.current=l;const p=S.useMemo(()=>r._getWatch(n,d.current),[r,n]),[g,m]=S.useState(u.current?u.current(p):p);return yu(()=>r._subscribe({name:n,formState:{values:!0},exact:i,callback:b=>{if(!a){const v=Hw(n,r._names,b.values||r._formValues,!1,d.current);if(u.current){const h=u.current(v);Cu(h,f.current)||(m(h),f.current=h)}else m(v)}}}),[r,a,n,i]),S.useEffect(()=>r._removeUnmounted()),g}function Yw(e){const t=or(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i}=e,l=Vw(o._names.array,r),d=S.useMemo(()=>je(o._formValues,r,je(o._defaultValues,r,i)),[o,r,i]),u=Kw({control:o,name:r,defaultValue:d,exact:!0}),f=wu({control:o,name:r,exact:!0}),p=S.useRef(e),g=S.useRef(o.register(r,{...e.rules,value:u,...wo(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const m=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!je(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!je(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!je(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!je(f.validatingFields,r)},error:{enumerable:!0,get:()=>je(f.errors,r)}}),[f,r]),b=S.useCallback(x=>g.current.onChange({target:{value:Lw(x),name:r},type:oi.CHANGE}),[r]),v=S.useCallback(()=>g.current.onBlur({target:{value:je(o._formValues,r),name:r},type:oi.BLUR}),[r,o._formValues]),h=S.useCallback(x=>{const C=je(o._fields,r);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:E=>x.setCustomValidity(E),reportValidity:()=>x.reportValidity()})},[o._fields,r]),y=S.useMemo(()=>({name:r,value:u,...wo(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:b,onBlur:v,ref:h}),[r,n,f.disabled,b,v,h,u]);return S.useEffect(()=>{const x=o._options.shouldUnregister||a;o.register(r,{...p.current.rules,...wo(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(E,N)=>{const T=je(o._fields,E);T&&T._f&&(T._f.mount=N)};if(C(r,!0),x){const E=hu(je(o._options.defaultValues,r));ni(o._defaultValues,r,E),zo(je(o._formValues,r))&&ni(o._formValues,r,E)}return!l&&o.register(r),()=>{(l?x&&!o._state.action:x)?o.unregister(r):C(r,!1)}},[r,o,l,a]),S.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),S.useMemo(()=>({field:y,formState:f,fieldState:m}),[y,f,m])}const Su=e=>e.render(Yw(e)),Eu=S.createContext(void 0),Ru=e=>{const{methods:t,disabled:r,readOnly:n,children:o}=e;return s.jsx(Eu.Provider,{value:{disabled:r,readOnly:n},children:s.jsx(zw,{...t,children:o})})},Pu=()=>{const e=S.useContext(Eu),t=or();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},Xw=({type:e="button",...t})=>{const r=()=>e==="submit"||e==="reset"?"default":"outline";return s.jsx(Qe,{type:e,variant:r(),...t})};var ju={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ii=S.createContext&&S.createContext(ju),Zw=["attr","size","title"];function Jw(e,t){if(e==null)return{};var r=Qw(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mn.apply(this,arguments)}function li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?li(Object(r),!0).forEach(function(n){e0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e0(e,t,r){return t=t0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t0(e){var t=r0(e,"string");return typeof t=="symbol"?t:t+""}function r0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nu(e){return e&&e.map((t,r)=>S.createElement(t.tag,gn({key:r},t.attr),Nu(t.child)))}function ku(e){return t=>S.createElement(n0,mn({attr:gn({},e.attr)},t),Nu(e.child))}function n0(e){var t=r=>{var{attr:n,size:o,title:a}=e,i=Jw(e,Zw),l=o||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),S.createElement("svg",mn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:d,style:gn(gn({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&S.createElement("title",null,a),e.children)};return ii!==void 0?S.createElement(ii.Consumer,null,r=>t(r)):t(ju)}function o0(e){return ku({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var a0="Label",Tu=c.forwardRef((e,t)=>s.jsx(H.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Tu.displayName=a0;var s0=Tu;function Au({className:e,...t}){return s.jsx(s0,{"data-slot":"label",className:j("qodo qodo-label flex items-center text-purple-muted-300 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 _u=c.createContext({}),i0=({...e})=>s.jsx(_u.Provider,{value:{name:e.name},children:s.jsx(Su,{...e})}),Hn=()=>{const e=c.useContext(_u),t=c.useContext(Iu),{getFieldState:r}=or(),n=wu({name:e.name}),o=r(e.name,n);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}},Iu=c.createContext({});function l0({className:e,...t}){const r=c.useId();return s.jsx(Iu.Provider,{value:{id:r},children:s.jsx("div",{"data-slot":"form-item",className:j("qodo qodo-form-item grid gap-2",e),...t})})}function c0({className:e,...t}){const{formItemId:r}=Hn();return s.jsx(Au,{"data-slot":"form-label",className:j("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:r,...t})}function d0({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Hn();return s.jsx(Qg,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function u0({className:e,...t}){const{formDescriptionId:r}=Hn();return s.jsx("p",{"data-slot":"form-description",id:r,className:j("text-purple-muted-300 text-sm",e),...t})}function f0({className:e,...t}){const{error:r,formMessageId:n}=Hn(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?s.jsx("p",{"data-slot":"form-message",id:n,className:j("text-destructive text-sm",e),...t,children:o}):null}var[Kn,fP]=we("Tooltip",[ut]),Yn=ut(),Mu="TooltipProvider",p0=700,qo="tooltip.open",[m0,Da]=Kn(Mu),Ou=e=>{const{__scopeTooltip:t,delayDuration:r=p0,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=c.useRef(!0),l=c.useRef(!1),d=c.useRef(0);return c.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),s.jsx(m0,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:a})};Ou.displayName=Mu;var yr="Tooltip",[g0,Mr]=Kn(yr),Du=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,d=Da(yr,e.__scopeTooltip),u=Yn(t),[f,p]=c.useState(null),g=me(),m=c.useRef(0),b=i??d.disableHoverableContent,v=l??d.delayDuration,h=c.useRef(!1),[y,x]=ye({prop:n,defaultProp:o??!1,onChange:A=>{A?(d.onOpen(),document.dispatchEvent(new CustomEvent(qo))):d.onClose(),a==null||a(A)},caller:yr}),C=c.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),E=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,h.current=!1,x(!0)},[x]),N=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),T=c.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{h.current=!0,x(!0),m.current=0},v)},[v,x]);return c.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),s.jsx(Nr,{...u,children:s.jsx(g0,{scope:t,contentId:g,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{d.isOpenDelayedRef.current?T():E()},[d.isOpenDelayedRef,T,E]),onTriggerLeave:c.useCallback(()=>{b?N():(window.clearTimeout(m.current),m.current=0)},[N,b]),onOpen:E,onClose:N,disableHoverableContent:b,children:r})})};Du.displayName=yr;var Uo="TooltipTrigger",$u=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Mr(Uo,r),a=Da(Uo,r),i=Yn(r),l=c.useRef(null),d=se(t,l,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),s.jsx(kr,{asChild:!0,...i,children:s.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:d,onPointerMove:F(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:F(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:F(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});$u.displayName=Uo;var $a="TooltipPortal",[v0,h0]=Kn($a,{forceMount:void 0}),Lu=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Mr($a,t);return s.jsx(v0,{scope:t,forceMount:r,children:s.jsx(Re,{present:r||a.open,children:s.jsx(rr,{asChild:!0,container:o,children:n})})})};Lu.displayName=$a;var Xt="TooltipContent",Fu=c.forwardRef((e,t)=>{const r=h0(Xt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=Mr(Xt,e.__scopeTooltip);return s.jsx(Re,{present:n||i.open,children:i.disableHoverableContent?s.jsx(Vu,{side:o,...a,ref:t}):s.jsx(x0,{side:o,...a,ref:t})})}),x0=c.forwardRef((e,t)=>{const r=Mr(Xt,e.__scopeTooltip),n=Da(Xt,e.__scopeTooltip),o=c.useRef(null),a=se(t,o),[i,l]=c.useState(null),{trigger:d,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,g=c.useCallback(()=>{l(null),p(!1)},[p]),m=c.useCallback((b,v)=>{const h=b.currentTarget,y={x:b.clientX,y:b.clientY},x=C0(y,h.getBoundingClientRect()),C=S0(y,x),E=E0(v.getBoundingClientRect()),N=P0([...C,...E]);l(N),p(!0)},[p]);return c.useEffect(()=>()=>g(),[g]),c.useEffect(()=>{if(d&&f){const b=h=>m(h,f),v=h=>m(h,d);return d.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{d.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[d,f,m,g]),c.useEffect(()=>{if(i){const b=v=>{const h=v.target,y={x:v.clientX,y:v.clientY},x=(d==null?void 0:d.contains(h))||(f==null?void 0:f.contains(h)),C=!R0(y,i);x?g():C&&(g(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[d,f,i,u,g]),s.jsx(Vu,{...e,ref:a})}),[b0,y0]=Kn(yr,{isInside:!1}),w0=tv("TooltipContent"),Vu=c.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,d=Mr(Xt,r),u=Yn(r),{onClose:f}=d;return c.useEffect(()=>(document.addEventListener(qo,f),()=>document.removeEventListener(qo,f)),[f]),c.useEffect(()=>{if(d.trigger){const p=g=>{const m=g.target;m!=null&&m.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),s.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:s.jsxs(Tn,{"data-state":d.stateAttribute,...u,...l,ref:t,style:{...l.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:[s.jsx(w0,{children:n}),s.jsx(b0,{scope:r,isInside:!0,children:s.jsx(Hh,{id:d.contentId,role:"tooltip",children:o||n})})]})})});Fu.displayName=Xt;var Bu="TooltipArrow",Gu=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Yn(r);return y0(Bu,r).isInside?null:s.jsx(An,{...o,...n,ref:t})});Gu.displayName=Bu;function C0(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function S0(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function E0(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function R0(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],d=t[i],u=l.x,f=l.y,p=d.x,g=d.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function P0(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),j0(t)}function j0(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var N0=Ou,k0=Du,T0=$u,A0=Lu,_0=Fu,I0=Gu;function Wu({delayDuration:e=0,...t}){return s.jsx(N0,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function zu({...e}){return s.jsx(Wu,{children:s.jsx(k0,{"data-slot":"tooltip",...e})})}function qu({...e}){return s.jsx(T0,{"data-slot":"tooltip-trigger",...e})}function Uu({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return s.jsx(A0,{children:s.jsxs(_0,{"data-slot":"tooltip-content",sideOffset:t,className:j("qodo qodo-tooltip-content bg-purple-muted-700 border border-purple-muted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e,{"py-2.5":n}),...o,children:[r,!n&&s.jsx(I0,{className:"bg-purple-muted-700 fill-purple-muted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const ar=e=>t=>{const{name:r,label:n,description:o,tooltip:a,required:i=!1,...l}=t,{control:d,disabled:u,readOnly:f}=Pu(),p=()=>a?s.jsxs(zu,{children:[s.jsx(qu,{asChild:!0,children:s.jsx("span",{children:s.jsx(o0,{size:16})})}),s.jsx(Uu,{children:s.jsx("p",{children:a})})]}):s.jsx(s.Fragment,{}),g=()=>o?s.jsx(u0,{children:o}):s.jsx(s.Fragment,{});return s.jsx(i0,{control:d,name:r,render:({field:m,fieldState:b})=>s.jsxs(l0,{className:"flex flex-col gap-1.5",children:[n&&s.jsx(c0,{children:s.jsxs("span",{className:"flex items-center gap-1",children:[n,i&&s.jsx("span",{className:"text-purple-muted-300",children:"*"}),!!a&&p()]})}),s.jsx(d0,{children:s.jsx(e,{...m,disabled:u,...l,readOnly:f,error:!!b.error})}),!!o&&g(),s.jsx(f0,{})]})})},M0=S.forwardRef((e,t)=>s.jsx(Rr,{...e,ref:t})),O0=S.forwardRef((e,t)=>ar(M0)({...e,ref:t})),D0=S.forwardRef((e,t)=>{const{options:r=[],onChange:n=()=>{},searchPlaceholder:o,onSearchChange:a,...i}=e,l=d=>{n({target:{value:d}})};return s.jsx(Ca,{ref:t,options:r,onValueChange:l,searchPlaceholder:o,onSearchChange:a,...i})}),$0=ar(D0);var La="Radio",[L0,Hu]=we(La),[F0,V0]=L0(La),Ku=c.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:d,form:u,...f}=e,[p,g]=c.useState(null),m=se(t,h=>g(h)),b=c.useRef(!1),v=p?u||!!p.closest("form"):!0;return s.jsxs(F0,{scope:r,checked:o,disabled:i,children:[s.jsx(H.button,{type:"button",role:"radio","aria-checked":o,"data-state":Ju(o),"data-disabled":i?"":void 0,disabled:i,value:l,...f,ref:m,onClick:F(e.onClick,h=>{o||d==null||d(),v&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),v&&s.jsx(Zu,{control:p,bubbles:!b.current,name:n,value:l,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});Ku.displayName=La;var Yu="RadioIndicator",Xu=c.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=V0(Yu,r);return s.jsx(Re,{present:n||a.checked,children:s.jsx(H.span,{"data-state":Ju(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Xu.displayName=Yu;var B0="RadioBubbleInput",Zu=c.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const i=c.useRef(null),l=se(i,a),d=da(r),u=ia(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&m){const b=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(b)}},[d,r,n]),s.jsx(H.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Zu.displayName=B0;function Ju(e){return e?"checked":"unchecked"}var G0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xn="RadioGroup",[W0,pP]=we(Xn,[gt,Hu]),Qu=gt(),ef=Hu(),[z0,q0]=W0(Xn),tf=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:d,dir:u,loop:f=!0,onValueChange:p,...g}=e,m=Qu(r),b=Tt(u),[v,h]=ye({prop:a,defaultProp:o??null,onChange:p,caller:Xn});return s.jsx(z0,{scope:r,name:n,required:i,disabled:l,value:v,onValueChange:h,children:s.jsx(Bn,{asChild:!0,...m,orientation:d,dir:b,loop:f,children:s.jsx(H.div,{role:"radiogroup","aria-required":i,"aria-orientation":d,"data-disabled":l?"":void 0,dir:b,...g,ref:t})})})});tf.displayName=Xn;var rf="RadioGroupItem",nf=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=q0(rf,r),i=a.disabled||n,l=Qu(r),d=ef(r),u=c.useRef(null),f=se(t,u),p=a.value===o.value,g=c.useRef(!1);return c.useEffect(()=>{const m=v=>{G0.includes(v.key)&&(g.current=!0)},b=()=>g.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",b)}},[]),s.jsx(Gn,{asChild:!0,...l,focusable:!i,active:p,children:s.jsx(Ku,{disabled:i,required:a.required,checked:p,...d,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:F(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:F(o.onFocus,()=>{var m;g.current&&((m=u.current)==null||m.click())})})})});nf.displayName=rf;var U0="RadioGroupIndicator",of=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=ef(r);return s.jsx(Xu,{...o,...n,ref:t})});of.displayName=U0;var H0=tf,K0=nf,Y0=of;function X0({className:e,...t}){const{readOnly:r,...n}=t;return s.jsx(H0,{"data-slot":"radio-group","data-readonly":r||void 0,disabled:n.disabled||r,className:j("qodo qodo-radio-group grid gap-3 group",e),...n})}function Z0({className:e,...t}){return s.jsx(K0,{"data-slot":"radio-group-item",className:j("qodo qodo-radio-group-item dark:border-purple-muted-200 dark:text-purple-muted-200 focus-visible:border-ring focus-visible:ring-ring/50","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]","disabled:cursor-not-allowed disabled:opacity-50","group-data-[readonly]:opacity-100 group-data-[readonly]:cursor-default","mt-[2px] mr-0",e),...t,children:s.jsx(Y0,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:s.jsx(jg,{className:"fill-purple-muted-200 absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2"})})})}const Fa=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o,disabled:a=!1,readOnly:i=!1,className:l,direction:d="horizontal",dir:u="ltr",name:f,onChange:p,...g}=e,m=v=>{i||(p==null||p({target:{value:v}}),o==null||o(v))},b=j("qodo qodo-custom-radio-group","flex",{"flex-row gap-6":d==="horizontal","flex-col gap-3":d==="vertical"},l);return s.jsx(X0,{name:f,ref:t,value:r,defaultValue:n,onValueChange:m,disabled:a||i,readOnly:i,className:b,dir:u,...g})});Fa.displayName="BaseRadioGroupComponent";const Va=({value:e="",disabled:t,error:r,name:n="radio",children:o,className:a})=>{const i=`${n}-${e}`;return s.jsxs(Au,{htmlFor:i,className:j("flex items-start p-4 rounded-lg gap-2 transition-all duration-200","font-normal text-purple-muted-200 dark:text-purple-muted-200 leading-5",{"cursor-pointer hover:bg-muted/50":!t,"opacity-50 !cursor-not-allowed hover:!bg-transparent":t,"border border-destructive":r},a),children:[s.jsx(Z0,{value:e,id:i,disabled:t||r}),o]},e)};Va.displayName="RadioGroupItemComponent";const J0=ar(Fa),Q0=e=>s.jsx("hr",{className:"w-full h-px border-purple-muted-500",...e}),eC=({children:e,description:t,className:r})=>s.jsxs("div",{className:j("space-y-1",r),children:[s.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&s.jsx("span",{className:"text-sm text-purple-muted-300",children:t})]}),af=S.forwardRef(({direction:e="horizontal",className:t,...r},n)=>{const o=j("flex flex-row gap-6",{"flex-col":e==="vertical"},t);return s.jsx("div",{ref:n,className:o,...r})});af.displayName="FormGroup";function tC({className:e,rows:t,...r}){return s.jsx("textarea",{"data-slot":"textarea",rows:t,className:j("qodo qodo-textarea border-input px-3 py-2 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20","dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent","placeholder:text-purple-muted-400 text-purple-muted-300 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm",{"field-sizing-content":!t},e),...r})}const rC=S.forwardRef((e,t)=>ar(tC)({...e,ref:t})),sf=({label:e,id:t,onRemoveTag:r,disabled:n,className:o,variant:a="default"})=>s.jsxs(Yt,{variant:a,disabled:n,size:"sm",className:j("flex items-center gap-1 px-2 py-0.5","font-normal whitespace-nowrap",o),children:[e,r&&s.jsx(Qe,{type:"button",variant:"ghost",size:"icon",className:"p-0 w-[10px] h-[10px] text-inherit disabled:text-inherit",onClick:i=>{i.stopPropagation(),r==null||r(t)},"aria-label":`Remove ${e}`,disabled:n,children:s.jsx(Sn,{className:"w-[10px] h-[10px]"})})]}),nC=({label:e,id:t,onClick:r,onDeleteSuggestion:n,deleteText:o,className:a,tagClassName:i,tagVariant:l})=>s.jsx("div",{onClick:r,className:j("bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",a),children:s.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[s.jsx(sf,{label:e,id:t,className:i,variant:l}),n&&s.jsx(Qe,{type:"button",variant:"ghost",className:"p-0 text-xs font-normal h-[10px]",onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),n==null||n(t)},"aria-label":`${o} ${e}`,children:o||s.jsx(zg,{className:"h-4 w-4"})})]})}),Co={BACKSPACE:"Backspace",ESCAPE:"Escape",ENTER:"Enter"},oC=e=>{if(!e)return"";let t=e.toLowerCase();return t=t.replace(/[_\s]+/g,"-"),t=t.replace(/[^a-z0-9-]/g,""),t=t.replace(/-+/g,"-"),t=t.replace(/^-|-$/g,""),t},lf=({value:e=[],variant:t="default",placeholder:r="Type to add a tag...",deleteText:n="Delete",suggestions:o=[],allowCreate:a=!0,maxTags:i=100,disabled:l=!1,className:d,suggestionWrapperClassName:u,suggestionClassName:f,tagClassName:p,tagInputIcon:g,onDeleteSuggestion:m,onBlur:b,normalizeTags:v=oC,onChange:h=()=>{},onAddTag:y=()=>{},onRemoveTag:x=()=>{},onResetTags:C=()=>{}})=>{const[E,N]=S.useState(""),[T,A]=S.useState(!1),P=S.useRef(null),V=S.useRef(null),U=S.useRef(null),[re,te]=S.useState();S.useEffect(()=>{V.current&&te(V.current.offsetWidth)},[]);const Q=e.length>=i,W=L=>{if(Q||e.some(K=>K.id===L.id))return;const _=[...e,L];h(_),y(L)},D=L=>{const _=e.filter(K=>K.id!==L);h(_),x(L)},I=()=>{h==null||h([]),C()},O=L=>{const _=L.target.value;N(_),A(!0)},R=()=>{const L=E.trim().toLowerCase();if(!L)return[];const _=new Set(e.map(K=>K.id));return o.filter(K=>K.label.toLowerCase().includes(L)&&!_.has(K.id))},M=L=>v?v(L):L,B=()=>{const L=E.trim();if(!L)return;const _=M(L);if(!_)return;if(e.some(ee=>ee.id===_)){N(""),A(!1);return}const K=o.find(ee=>ee.id===_||M(ee.label)===_);K?W(K):a&&W({id:_,label:_}),N(""),A(!1)},J=L=>{const _=L.key===Co.BACKSPACE&&!E&&e.length>0,K=L.key===Co.ENTER&&E,ee=L.key===Co.ESCAPE;K?(L.preventDefault(),B(),U.current&&(U.current.scrollLeft=U.current.scrollWidth)):_?D(e[e.length-1].id):ee&&A(!1)},k=()=>{if(E&&R().length>0)return s.jsx(wa,{className:"p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",align:"start",style:{width:re??void 0},onOpenAutoFocus:L=>L.preventDefault(),onCloseAutoFocus:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),children:s.jsx("div",{className:j("max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",u),children:R().map(L=>s.jsx(nC,{label:L.label,id:L.id,onDeleteSuggestion:m,deleteText:n,className:f,tagClassName:p,tagVariant:t,onClick:()=>{var _;W(L),N(""),A(!1),(_=P.current)==null||_.focus()}},L.id))})})},G=()=>g||s.jsx(Gg,{className:"h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]"}),Z=()=>e.map(L=>s.jsx(sf,{label:L.label,id:L.id,onRemoveTag:D,disabled:l,className:p,variant:t},L.id)),z=()=>e.length===0?s.jsx(s.Fragment,{}):s.jsx(Sn,{className:"h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",onClick:I});return s.jsx("div",{className:j("w-full",d),children:s.jsxs(ba,{open:T&&!l,onOpenChange:A,modal:!1,children:[s.jsx(ya,{className:"w-full",children:s.jsxs("div",{ref:V,tabIndex:-1,className:j("flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",{"opacity-60":l}),onClick:L=>{var _;L.stopPropagation(),A(!0),(_=P.current)==null||_.focus()},children:[G(),s.jsxs("div",{ref:U,className:"flex items-center gap-2 w-full whitespace-normal overflow-x-auto",children:[Z(),s.jsx(Rr,{ref:P,value:E,onChange:O,onClick:L=>L.stopPropagation(),onFocus:()=>A(!0),onBlur:b,onKeyDown:J,placeholder:r,disabled:l||Q,className:j("m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs","placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs")})]}),z()]})}),k()]})})};function aC(e){const{control:t}=or();return s.jsx(Su,{name:e.name,control:t,render:({field:r})=>s.jsx(lf,{...e,value:r.value,onChange:r.onChange,onBlur:r.onBlur})})}const sC=ar(aC),iC=12,ci={SINGLE:"single",MULTIPLE:"multiple"},di={LTR:"ltr"};var cf=typeof global=="object"&&global&&global.Object===Object&&global,lC=typeof self=="object"&&self&&self.Object===Object&&self,ht=cf||lC||Function("return this")(),vn=ht.Symbol,df=Object.prototype,cC=df.hasOwnProperty,dC=df.toString,dr=vn?vn.toStringTag:void 0;function uC(e){var t=cC.call(e,dr),r=e[dr];try{e[dr]=void 0;var n=!0}catch{}var o=dC.call(e);return n&&(t?e[dr]=r:delete e[dr]),o}var fC=Object.prototype,pC=fC.toString;function mC(e){return pC.call(e)}var gC="[object Null]",vC="[object Undefined]",ui=vn?vn.toStringTag:void 0;function Or(e){return e==null?e===void 0?vC:gC:ui&&ui in Object(e)?uC(e):mC(e)}function Ba(e){return e!=null&&typeof e=="object"}var hC=Array.isArray;function uf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xC="[object AsyncFunction]",bC="[object Function]",yC="[object GeneratorFunction]",wC="[object Proxy]";function ff(e){if(!uf(e))return!1;var t=Or(e);return t==bC||t==yC||t==xC||t==wC}var So=ht["__core-js_shared__"],fi=(function(){var e=/[^.]+$/.exec(So&&So.keys&&So.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function CC(e){return!!fi&&fi in e}var SC=Function.prototype,EC=SC.toString;function _t(e){if(e!=null){try{return EC.call(e)}catch{}try{return e+""}catch{}}return""}var RC=/[\\^$.*+?()[\]{}|]/g,PC=/^\[object .+?Constructor\]$/,jC=Function.prototype,NC=Object.prototype,kC=jC.toString,TC=NC.hasOwnProperty,AC=RegExp("^"+kC.call(TC).replace(RC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _C(e){if(!uf(e)||CC(e))return!1;var t=ff(e)?AC:PC;return t.test(_t(e))}function IC(e,t){return e==null?void 0:e[t]}function Dr(e,t){var r=IC(e,t);return _C(r)?r:void 0}var Ho=Dr(ht,"WeakMap"),MC=9007199254740991;function pf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MC}function OC(e){return e!=null&&pf(e.length)&&!ff(e)}var DC=Object.prototype;function mf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||DC;return e===r}var $C="[object Arguments]";function pi(e){return Ba(e)&&Or(e)==$C}var gf=Object.prototype,LC=gf.hasOwnProperty,FC=gf.propertyIsEnumerable,VC=pi((function(){return arguments})())?pi:function(e){return Ba(e)&&LC.call(e,"callee")&&!FC.call(e,"callee")};function BC(){return!1}var vf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mi=vf&&typeof module=="object"&&module&&!module.nodeType&&module,GC=mi&&mi.exports===vf,gi=GC?ht.Buffer:void 0,WC=gi?gi.isBuffer:void 0,zC=WC||BC,qC="[object Arguments]",UC="[object Array]",HC="[object Boolean]",KC="[object Date]",YC="[object Error]",XC="[object Function]",ZC="[object Map]",JC="[object Number]",QC="[object Object]",e1="[object RegExp]",t1="[object Set]",r1="[object String]",n1="[object WeakMap]",o1="[object ArrayBuffer]",a1="[object DataView]",s1="[object Float32Array]",i1="[object Float64Array]",l1="[object Int8Array]",c1="[object Int16Array]",d1="[object Int32Array]",u1="[object Uint8Array]",f1="[object Uint8ClampedArray]",p1="[object Uint16Array]",m1="[object Uint32Array]",pe={};pe[s1]=pe[i1]=pe[l1]=pe[c1]=pe[d1]=pe[u1]=pe[f1]=pe[p1]=pe[m1]=!0;pe[qC]=pe[UC]=pe[o1]=pe[HC]=pe[a1]=pe[KC]=pe[YC]=pe[XC]=pe[ZC]=pe[JC]=pe[QC]=pe[e1]=pe[t1]=pe[r1]=pe[n1]=!1;function g1(e){return Ba(e)&&pf(e.length)&&!!pe[Or(e)]}function v1(e){return function(t){return e(t)}}var hf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hr=hf&&typeof module=="object"&&module&&!module.nodeType&&module,h1=hr&&hr.exports===hf,Eo=h1&&cf.process,vi=(function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||Eo&&Eo.binding&&Eo.binding("util")}catch{}})(),hi=vi&&vi.isTypedArray,x1=hi?v1(hi):g1;function b1(e,t){return function(r){return e(t(r))}}var y1=b1(Object.keys,Object),w1=Object.prototype,C1=w1.hasOwnProperty;function S1(e){if(!mf(e))return y1(e);var t=[];for(var r in Object(e))C1.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ko=Dr(ht,"Map"),Yo=Dr(ht,"DataView"),Xo=Dr(ht,"Promise"),Zo=Dr(ht,"Set"),xi="[object Map]",E1="[object Object]",bi="[object Promise]",yi="[object Set]",wi="[object WeakMap]",Ci="[object DataView]",R1=_t(Yo),P1=_t(Ko),j1=_t(Xo),N1=_t(Zo),k1=_t(Ho),Ct=Or;(Yo&&Ct(new Yo(new ArrayBuffer(1)))!=Ci||Ko&&Ct(new Ko)!=xi||Xo&&Ct(Xo.resolve())!=bi||Zo&&Ct(new Zo)!=yi||Ho&&Ct(new Ho)!=wi)&&(Ct=function(e){var t=Or(e),r=t==E1?e.constructor:void 0,n=r?_t(r):"";if(n)switch(n){case R1:return Ci;case P1:return xi;case j1:return bi;case N1:return yi;case k1:return wi}return t});var T1="[object Map]",A1="[object Set]",_1=Object.prototype,I1=_1.hasOwnProperty;function $r(e){if(e==null)return!0;if(OC(e)&&(hC(e)||typeof e=="string"||typeof e.splice=="function"||zC(e)||x1(e)||VC(e)))return!e.length;var t=Ct(e);if(t==T1||t==A1)return!e.size;if(mf(e))return!S1(e).length;for(var r in e)if(I1.call(e,r))return!1;return!0}function Zn(e){return!e.children||e.children.length===0?[e.value]:e.children.flatMap(t=>Zn(t))}function Ga(e){const t=[e.value];return e.children&&e.children.forEach(r=>{t.push(...Ga(r))}),t}function Wa(e,t){return $r(e.children)?!1:Zn(e).every(n=>t.has(n))}function M1(e,t){return $r(e.children)?!1:Zn(e).some(n=>t.has(n))}function xf(e,t){for(const r of e){if(r.value===t)return r;if(r.children){const n=xf(r.children,t);if(n)return n}}return null}function za(e,t){const r=new Map;for(const n of e){const o=t(n);o&&r.set(o[0],o[1]),n.children&&za(n.children,t).forEach((i,l)=>r.set(l,i))}return r}function bf(e,t){e.forEach(r=>{$r(r.children)||(Wa(r,t)?t.add(r.value):t.delete(r.value),r.children&&bf(r.children,t))})}const O1=e=>e?Array.isArray(e)?e:[e]:[],D1=e=>za(e,t=>[t.value,t.label]),$1=e=>za(e,t=>t.icon?[t.value,t.icon]:null);function L1(e,t){Ga(e).forEach(n=>t.delete(n))}function F1(e,t){Ga(e).forEach(n=>t.add(n))}function yf(e,t){const r=new Set(t);return e.flatMap(n=>!$r(n.children)&&n.children?Wa(n,r)?[n.value]:yf(n.children,t):r.has(n.value)?[n.value]:[])}function V1(e){return e&&e>1?e*iC:0}function wf({option:e,selected:t,onSelect:r,nestLevel:n=0,disabled:o=!1,dir:a=di.LTR}){const i=!$r(e.children),l=t.has(e.value),d=`${V1(n)}px`,u=Wa(e,t),p=M1(e,t)&&!u,g=l||u,m=()=>{if(n!==0)return s.jsx(kg,{className:"w-4 text-[var(--text-interactive-neutral-idle)]"})},b=()=>{if(e.icon)return s.jsx("div",{className:"flex-shrink-0 [&>svg]:text-[var(--text-interactive-neutral-idle)]!",children:e.icon})},v=()=>p?s.jsx(Ag,{className:"w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]"}):s.jsx(Er,{className:j("h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",{"opacity-100":g})}),h=()=>{if(i)return e.children.map(x=>s.jsx(wf,{option:x,selected:t,onSelect:r,nestLevel:n+1,dir:a},x.value))},y=()=>s.jsxs("div",{className:j("flex items-center w-full gap-2 flex-row",{"flex-row-reverse":a===di.LTR}),style:{paddingLeft:d},children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[m(),b(),s.jsx("span",{className:"flex-1 text-[var(--text-interactive-neutral-active)]",children:e.label})]}),v()]});return s.jsxs("div",{children:[s.jsx(od,{disabled:e.disabled||o,onSelect:()=>r(e.value,i),className:j("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)]! cursor-pointer disabled:cursor-not-allowed","focus:text-[var(--text-interactive-neutral-active)] data-[selected=true]:text-[var(--text-interactive-neutral-hover)]!",{"bg-[var(--fill-interactive-neutral-idle)]":g}),children:y()}),h()]})}function B1({value:e,options:t=[],onSelect:r,disabled:n=!1,mode:o=ci.SINGLE,placeholder:a="Select...",inputPlaceholder:i="Search...",emptyState:l="No option found.",triggerClassName:d,triggerWrapperClassName:u,badgeClassName:f,badgeVariant:p="text",searchable:g=!1,toggleIcon:m=s.jsx(Cn,{}),dir:b="ltr",...v}){const[h,y]=S.useState(0),[x,C]=S.useState(!1),E=S.useRef(null),N=o===ci.MULTIPLE,[T,A]=S.useState(e!==void 0?e:N?[]:""),P=O1(T),V=new Set(P);S.useEffect(()=>{E.current&&y(E.current.offsetWidth)},[T]);const U=D1(t),re=$1(t);S.useEffect(()=>{e!==void 0&&A(N?e||[]:e||"")},[e,N]);function te(O,R){if(!N){A(O),r==null||r(O),C(!1);return}A(M=>{const B=Array.isArray(M)?M:[],J=new Set(B),k=xf(t,O);if(!k)return B;R?Q(k,J):W(O,J);const G=Array.from(J);return r==null||r(G),G})}function Q(O,R){Zn(O).every(J=>R.has(J))?L1(O,R):F1(O,R)}function W(O,R){R.has(O)?R.delete(O):R.add(O),bf(t,R)}const D=()=>{const O=yf(t,P);return O.length===0?s.jsx(Yt,{variant:p,size:"md",className:j("text-purple-muted-300",f),children:a}):O.map(M=>{const B=re.get(M),J=U.get(M)||M;return s.jsx(Yt,{variant:p,size:"md",className:j("text-[var(--text-bg-neutral-mid)]",f),children:s.jsxs("div",{className:"flex items-center gap-1",children:[B&&s.jsx("div",{className:"flex-shrink-0",children:B}),s.jsx("span",{children:J})]})},M)})},I=()=>{if(g)return s.jsx(ed,{className:"placeholder:text-[var(--text-bg-neutral-mid)] text-[var(--text-interactive-neutral-active)]",placeholder:i})};return s.jsxs(ba,{open:x,onOpenChange:n?void 0:C,children:[s.jsx(ya,{asChild:!0,disabled:n,children:s.jsxs("div",{className:j("flex items-center gap-1.5 justify-between py-1 px-3 w-[100%] border border-[var(--border-interactive-neutral-idle)] bg-[var(--fill-input-neutral-idle)] rounded-sm scrollbar-thin","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",{"cursor-pointer hover:border-[var(--border-input-neutral-hover)] hover:bg-[var(--fill-input-neutral-hover)]":!n,"cursor-not-allowed opacity-75 ":n},u),ref:E,"aria-disabled":n,...v,children:[s.jsx("div",{className:j("flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",d),children:D()}),s.jsx("div",{className:"[&>svg]:text-[var(--icon-input-neutral-idle)] [&>svg]:hover:text-[var(--icon-input-neutral-hover)] [&>svg]:w-4 [&>svg]:h-4",children:m})]})}),s.jsx(wa,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] [&>svg]:text-purple-muted-300",style:{width:h??"auto"},children:s.jsxs(Qc,{className:"bg-[var(--fill-interactive-neutral-idle)]",children:[I(),s.jsxs(td,{children:[s.jsx(rd,{children:l}),s.jsx(nd,{children:t.map(O=>s.jsx(wf,{disabled:n,option:O,selected:V,onSelect:te,dir:b},O.value))})]})]})})]})}const Cf=S.forwardRef(e=>{const{options:t,onChange:r,readOnly:n,value:o,disabled:a,mode:i,...l}=e,d=u=>{n||r&&r({target:{value:u}})};return s.jsx(B1,{options:t,value:o,disabled:a,...l,onSelect:d,mode:i})});Cf.displayName="BaseSelectComponent";const G1=ar(Cf),Ie=e=>{const{className:t,disabled:r=!1,readOnly:n=!1,methods:o,onSubmit:a=()=>{},...i}=e,{handleSubmit:l}=o,d=j("qodo qodo-form","flex flex-col gap-6",t);return s.jsx(Ru,{methods:o,disabled:r,readOnly:n,children:s.jsx("form",{className:d,onSubmit:l(a),...i})})};Ie.Button=Xw;Ie.Input=O0;Ie.Select=G1;Ie.Combobox=$0;Ie.RadioGroup=J0;Ie.RadioGroupItem=Va;Ie.Group=af;Ie.Textarea=rC;Ie.Divider=Q0;Ie.Title=eC;Ie.TagsInput=sC;function W1(e){return e==null?[]:Array.isArray(e)?e:[e]}var z1=e=>Array.from(Array(e).keys()),Si=e=>(e==null?void 0:e.constructor.name)==="Array",q1=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!qa(e[r],t[r]))return!1;return!0},qa=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Si(e)&&Si(t))return q1(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const a=r[o];if(!qa(e[a],t[a]))return!1}return!0},U1=e=>e!=null&&typeof e=="object",nn=e=>typeof e=="string",pr=e=>typeof e=="function",H1=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),K1=e=>Object.prototype.toString.call(e),Sf=Function.prototype.toString,Y1=Sf.call(Object),X1=e=>{if(!U1(e)||K1(e)!="[object Object]"||Q1(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=H1(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sf.call(r)==Y1},Z1=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,J1=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Q1=e=>Z1(e)||J1(e),eS=e=>e(),tS=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},rS=e=>Number.isNaN(e),nS=e=>rS(e)?0:e,oS=(e,t,r)=>{const n=nS(e),o=n>=t,a=r==null||n<=r;return o&&a};function Ef(e){if(!X1(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Ef(o))}return r}function Ei(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function aS(e,t){if(e==null)throw new Error(t())}var Rf=e=>typeof e=="object"&&e!==null,We=e=>e?"":void 0,sS=9,iS=e=>Rf(e)&&e.nodeType===sS,lS=e=>Rf(e)&&e===e.window;function cS(e){if(!e)return!1;const t=e.getRootNode();return Pf(t)===e}function dS(e){return iS(e)?e:lS(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function Pf(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var uS=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),fS=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Ri=e=>{const t={};let r;for(;r=fS.exec(e);)t[r[1]]=r[2];return t},pS=(e,t)=>{if(nn(e)){if(nn(t))return`${e};${t}`;e=Ri(e)}else nn(t)&&(t=Ri(t));return Object.assign({},e??{},t??{})};function Be(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=tS(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=uS(t[o],r[o]);continue}if(o==="style"){t[o]=pS(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function mS(e,t,r){let n=[],o;return a=>{const i=e(a);return(i.length!==n.length||i.some((d,u)=>!qa(n[u],d)))&&(n=i,o=t(i,a)),o}}var Wt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Wt||{}),Ro="__init__";function gS(e){const t=()=>{var i;return((i=e.getRootNode)==null?void 0:i.call(e))??document},r=()=>dS(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>Pf(t()),isActiveElement:cS,getById:i=>t().getElementById(i)}}function vS(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var hS=()=>e=>Array.from(new Set(e)),jf=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function hn(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,a]=S.useState(n),i=e().value!==void 0,l=S.useRef(o);l.current=i?e().value:o;const d=S.useRef(l.current);jf(()=>{d.current=l.current},[o,e().value]);const u=p=>{var b,v;const g=d.current,m=pr(p)?p(g):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:g}),i||a(m),r(m,g)||(v=(b=e()).onChange)==null||v.call(b,m,g)};function f(){return i?e().value:o}return{initial:n,ref:l,get:f,set(p){(e().sync?Sr.flushSync:eS)(()=>u(p))},invoke(p,g){var m,b;(b=(m=e()).onChange)==null||b.call(m,p,g)},hash(p){var g,m;return((m=(g=e()).hash)==null?void 0:m.call(g,p))??String(p)}}}hn.cleanup=e=>{S.useEffect(()=>e,[])};hn.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function xS(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var bS=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function yS(e,t={}){var re,te,Q,W;const r=S.useMemo(()=>{const{id:D,ids:I,getRootNode:O}=t;return gS({id:D,ids:I,getRootNode:O})},[t]),n=(...D)=>{e.debug&&console.log(...D)},o=((re=e.props)==null?void 0:re.call(e,{props:Ef(t),scope:r}))??t,a=wS(o),i=(te=e.context)==null?void 0:te.call(e,{prop:a,bindable:hn,scope:r,flush:Pi,getContext(){return d},getComputed(){return N},getRefs(){return v},getEvent(){return m()}}),l=Nf(i),d={get(D){var I;return(I=l.current)==null?void 0:I[D].ref.current},set(D,I){var O;(O=l.current)==null||O[D].set(I)},initial(D){var I;return(I=l.current)==null?void 0:I[D].initial},hash(D){var O,R;const I=(O=l.current)==null?void 0:O[D].get();return(R=l.current)==null?void 0:R[D].hash(I)}},u=S.useRef(new Map),f=S.useRef(null),p=S.useRef(null),g=S.useRef({type:""}),m=()=>({...g.current,current(){return g.current},previous(){return p.current}}),b=()=>({...T,matches(...D){return D.includes(T.ref.current)},hasTag(D){var I,O;return!!((O=(I=e.states[T.ref.current])==null?void 0:I.tags)!=null&&O.includes(D))}}),v=xS(((Q=e.refs)==null?void 0:Q.call(e,{prop:a,context:d}))??{}),h=()=>({state:b(),context:d,event:m(),prop:a,send:U,action:y,guard:x,track:bS,refs:v,computed:N,flush:Pi,scope:r,choose:E}),y=D=>{const I=pr(D)?D(h()):D;if(!I)return;const O=I.map(R=>{var B,J;const M=(J=(B=e.implementations)==null?void 0:B.actions)==null?void 0:J[R];return M||Ei(`[zag-js] No implementation found for action "${JSON.stringify(R)}"`),M});for(const R of O)R==null||R(h())},x=D=>{var I,O;return pr(D)?D(h()):(O=(I=e.implementations)==null?void 0:I.guards)==null?void 0:O[D](h())},C=D=>{const I=pr(D)?D(h()):D;if(!I)return;const O=I.map(M=>{var J,k;const B=(k=(J=e.implementations)==null?void 0:J.effects)==null?void 0:k[M];return B||Ei(`[zag-js] No implementation found for effect "${JSON.stringify(M)}"`),B}),R=[];for(const M of O){const B=M==null?void 0:M(h());B&&R.push(B)}return()=>R.forEach(M=>M==null?void 0:M())},E=D=>W1(D).find(I=>{let O=!I.guard;return nn(I.guard)?O=!!x(I.guard):pr(I.guard)&&(O=I.guard(h())),O}),N=D=>{aS(e.computed,()=>"[zag-js] No computed object found on machine");const I=e.computed[D];return I({context:d,event:m(),prop:a,refs:v,scope:r,computed:N})},T=hn(()=>({defaultValue:e.initialState({prop:a}),onChange(D,I){var R,M,B,J;if(I){const k=u.current.get(I);k==null||k(),u.current.delete(I)}I&&y((R=e.states[I])==null?void 0:R.exit),y((M=f.current)==null?void 0:M.actions);const O=C((B=e.states[D])==null?void 0:B.effects);if(O&&u.current.set(D,O),I===Ro){y(e.entry);const k=C(e.effects);k&&u.current.set(Ro,k)}y((J=e.states[D])==null?void 0:J.entry)}})),A=S.useRef(void 0),P=S.useRef(Wt.NotStarted);jf(()=>{queueMicrotask(()=>{const O=P.current===Wt.Started;P.current=Wt.Started,n(O?"rehydrating...":"initializing...");const R=A.current??T.initial;T.invoke(R,O?T.get():Ro)});const D=u.current,I=T.ref.current;return()=>{n("unmounting..."),A.current=I,P.current=Wt.Stopped,D.forEach(O=>O==null?void 0:O()),u.current=new Map,f.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const V=()=>"ref"in T?T.ref.current:T.get(),U=D=>{queueMicrotask(()=>{var J,k;if(P.current!==Wt.Started)return;p.current=g.current,g.current=D;let I=V();const O=((J=e.states[I].on)==null?void 0:J[D.type])??((k=e.on)==null?void 0:k[D.type]),R=E(O);if(!R)return;f.current=R;const M=R.target??I;n("transition",D.type,R.target||I,`(${R.actions})`);const B=M!==I;B?Sr.flushSync(()=>T.set(M)):R.reenter&&!B?T.invoke(I,I):y(R.actions??[])})};return(W=e.watch)==null||W.call(e,h()),{state:b(),send:U,context:d,prop:a,scope:r,refs:v,computed:N,event:m(),getStatus:()=>P.current}}function Nf(e){const t=S.useRef(e);return t.current=e,t}function wS(e){const t=Nf(e);return function(n){return t.current[n]}}function Pi(e){queueMicrotask(()=>{Sr.flushSync(()=>e())})}var CS=vS(e=>e);function SS(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function ES(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Po=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:a,...i}=r;if(!o)return S.createElement(e,{...i,ref:n},a);if(!S.isValidElement(a))return null;const l=S.Children.only(a),d=ES(l);return S.cloneElement(l,{...Be(i,l.props),ref:n?SS(n,d):d})}));return t.displayName=e.displayName||e.name,t},RS=()=>{const e=new Map;return new Proxy(Po,{apply(t,r,n){return Po(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Po(n)),e.get(n)}})},Xe=RS();function PS(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Lr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:i}=e,l=S.createContext(i);l.displayName=t;function d(){var f;const u=S.useContext(l);if(!u&&r){const p=new Error(a??PS(n,o));throw p.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,p,d),p}return u}return[l.Provider,d,l]}const[jS,nt]=Lr({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),kf=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getContentProps({index:r.count}),e);return s.jsx(Xe.div,{...n,ref:t})});kf.displayName="StepsCompletedContent";const Ua=()=>(e,t)=>t.reduce((r,n)=>{const[o,a]=r,i=n;return a[i]!==void 0&&(o[i]=a[i]),delete a[i],[o,a]},[{},{...e}]),Tf=S.forwardRef((e,t)=>{const[r,n]=Ua()(e,["index"]),o=nt(),a=Be(o.getContentProps(r),n);return s.jsx(Xe.div,{...a,ref:t})});Tf.displayName="StepsContent";const[NS,Ha]=Lr({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),Af=S.forwardRef((e,t)=>{const r=nt(),n=Ha(),o=Be(r.getIndicatorProps(n),e);return s.jsx(Xe.div,{...o,ref:t})});Af.displayName="StepsIndicator";const[kS,mP]=Lr({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),_f=S.forwardRef((e,t)=>{const[r,n]=Ua()(e,["index"]),o=nt(),a=Be(o.getItemProps(r),n),i=o.getItemState(r);return s.jsx(NS,{value:r,children:s.jsx(kS,{value:i,children:s.jsx(Xe.div,{...a,ref:t})})})});_f.displayName="StepsItem";const If=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getListProps(),e);return s.jsx(Xe.div,{...n,ref:t})});If.displayName="StepsList";const Mf=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getNextTriggerProps(),e);return s.jsx(Xe.button,{...n,ref:t})});Mf.displayName="StepsNextTrigger";const Of=S.forwardRef((e,t)=>{const r=nt(),n=Be(r.getPrevTriggerProps(),e);return s.jsx(Xe.button,{...n,ref:t})});Of.displayName="StepsPrevTrigger";var mr=(e,t=[])=>({parts:(...r)=>{if(TS(t))return mr(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>mr(e,[...t,...r]),omit:(...r)=>mr(e,t.filter(n=>!r.includes(n))),rename:r=>mr(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Vt(e)}"][data-part="${Vt(n)}"]`,`& [data-scope="${Vt(e)}"][data-part="${Vt(n)}"]`].join(", "),attrs:{"data-scope":Vt(e),"data-part":Vt(n)}}}),{})}),Vt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),TS=e=>e.length===0,AS=mr("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),ze=AS.build(),_S=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},IS=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},ji=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},MS=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function OS(e,t){const{context:r,send:n,computed:o,prop:a,scope:i}=e,l=r.get("step"),d=a("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),g=y=>({triggerId:ji(i,y.index),contentId:MS(i,y.index),current:y.index===l,completed:y.index<l,incomplete:y.index>l,index:y.index,first:y.index===0,last:y.index===d-1}),m=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},b=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},v=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},h=y=>{n({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:l,count:d,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:m,goToPrevStep:b,resetStep:v,getItemState:g,setStep:h,getRootProps(){return t.element({...ze.root.attrs,id:_S(i),dir:a("dir"),"data-orientation":a("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const x=z1(d).map((C,E)=>ji(i,E));return t.element({...ze.list.attrs,dir:a("dir"),id:IS(i),role:"tablist","aria-owns":x.join(" "),"aria-orientation":a("orientation"),"data-orientation":a("orientation")})},getItemProps(y){const x=g(y);return t.element({...ze.item.attrs,dir:a("dir"),"aria-current":x.current?"step":void 0,"data-orientation":a("orientation")})},getTriggerProps(y){const x=g(y);return t.button({...ze.trigger.attrs,id:x.triggerId,role:"tab",dir:a("dir"),tabIndex:!a("linear")||x.current?0:-1,"aria-selected":x.current,"aria-controls":x.contentId,"data-state":x.current?"open":"closed","data-orientation":a("orientation"),"data-complete":We(x.completed),"data-current":We(x.current),"data-incomplete":We(x.incomplete),onClick(C){C.defaultPrevented||a("linear")||n({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const x=g(y);return t.element({...ze.content.attrs,dir:a("dir"),id:x.contentId,role:"tabpanel",tabIndex:0,hidden:!x.current,"data-state":x.current?"open":"closed","data-orientation":a("orientation"),"aria-labelledby":x.triggerId})},getIndicatorProps(y){const x=g(y);return t.element({...ze.indicator.attrs,dir:a("dir"),"aria-hidden":!0,"data-complete":We(x.completed),"data-current":We(x.current),"data-incomplete":We(x.incomplete)})},getSeparatorProps(y){const x=g(y);return t.element({...ze.separator.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-complete":We(x.completed),"data-current":We(x.current),"data-incomplete":We(x.incomplete)})},getNextTriggerProps(){return t.button({...ze.nextTrigger.attrs,dir:a("dir"),type:"button",disabled:!f,onClick(y){y.defaultPrevented||m()}})},getPrevTriggerProps(){return t.button({dir:a("dir"),...ze.prevTrigger.attrs,type:"button",disabled:!p,onClick(y){y.defaultPrevented||b()}})},getProgressProps(){return t.element({dir:a("dir"),...ze.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":We(u===100)})}}}var DS={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,a;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((a=e("onStepComplete"))==null||a())}}))}},computed:{percent:mS(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){$S(t("count"),e.get("step"))}}}},$S=(e,t)=>{if(!oS(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};hS()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[gP,LS]=Lr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[vP,FS]=Lr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function VS(e){const t=S.useId(),{getRootNode:r}=LS(),{dir:n}=FS(),o={id:t,dir:n,getRootNode:r,...e},a=yS(DS,o);return OS(a,CS)}const Df=S.forwardRef((e,t)=>{const[r,n]=Ua()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=VS(r),a=Be(o.getRootProps(),n);return s.jsx(jS,{value:o,children:s.jsx(Xe.div,{...a,ref:t})})});Df.displayName="StepsRoot";const $f=S.forwardRef((e,t)=>{const r=nt(),n=Ha(),o=Be(r.getSeparatorProps(n),e);return s.jsx(Xe.div,{...o,ref:t})});$f.displayName="StepsSeparator";const Lf=S.forwardRef((e,t)=>{const r=nt(),n=Ha(),o=Be(r.getTriggerProps(n),e);return s.jsx(Xe.button,{...o,ref:t})});Lf.displayName="StepsTrigger";function BS(e){return ku({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const Ff=S.createContext(void 0),GS=({children:e,step:t})=>s.jsx(Ff.Provider,{value:{step:t},children:e}),Vf=()=>{const e=S.useContext(Ff);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},WS=({className:e,step:t,...r})=>{const n=j("qodo qodo-steps","flex flex-col gap-4",e);return s.jsx(GS,{step:t??0,children:s.jsx(Df,{className:n,step:t,...r})})},zS=({className:e,...t})=>{const r=j("flex flex-row gap-4",e);return s.jsx(If,{className:r,...t})},qS=({className:e,...t})=>{const r=j("flex flex-row items-center gap-4",e);return s.jsx(_f,{className:r,...t})},US=({className:e,...t})=>{const r=j("flex flex-row items-center gap-4 text-purple-muted-100 text-sm",e);return s.jsx(Lf,{className:r,...t})},HS=({index:e,className:t,...r})=>{const{step:n}=Vf(),o=e===n,a=e<n,i=j("flex items-center justify-center w-8 h-8 rounded-full text-white",a&&"bg-green-700",o&&"bg-green-600",!a&&!o&&"bg-purple-muted-500",t),l=j({"text-white":o,"text-purple-muted-300":!a&&e!==n});return s.jsx(Af,{className:i,...r,children:a?s.jsx(BS,{className:"text-green-400"}):s.jsx("span",{className:l,children:e+1})})},KS=({index:e,className:t,...r})=>{const{step:n}=Vf(),o=e<n,a=j("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return s.jsx($f,{className:a,...r})},YS=({className:e,...t})=>{const r=j(e);return s.jsx(Tf,{className:r,...t})},XS=({className:e,...t})=>{const r=j(e);return s.jsx(kf,{className:r,...t})},ZS=({className:e,...t})=>{const r=j("bg-primary text-white px-4 py-2 rounded-md",e);return s.jsx(Of,{className:r,...t})},JS=({className:e,...t})=>{const r=j("bg-primary text-white px-4 py-2 rounded-md",e);return s.jsx(Mf,{className:r,...t})},QS={Root:WS,List:zS,Item:qS,Trigger:US,Indicator:HS,Separator:KS,Content:YS,CompletedContent:XS,PrevTrigger:ZS,NextTrigger:JS},Fr=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>s.jsx(Wu,{...r,children:s.jsxs(zu,{children:[s.jsx(qu,{...n,children:e}),t&&s.jsx(Uu,{...o,children:t})]})});/**
205
205
  * react-table
206
206
  *
207
207
  * Copyright (c) TanStack
@@ -210,5 +210,5 @@ Defaulting to \`null\`.`}var gy=xd,vy=yd;function hy({className:e,value:t,...r})
210
210
  * LICENSE.md file in the root directory of this source tree.
211
211
  *
212
212
  * @license MIT
213
- */function Pi(e,t){return e?_S(e)?c.createElement(e,t):e:null}function _S(e){return IS(e)||typeof e=="function"||MS(e)}function IS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function MS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const kf=c.forwardRef(({className:e,wrapperClassName:t,...r},n)=>s.jsx("div",{className:N("max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",t),children:s.jsx("table",{ref:n,className:N("w-full caption-bottom text-sm",e),...r})}));kf.displayName="Table";const Tf=c.forwardRef(({className:e,...t},r)=>s.jsx("thead",{ref:r,className:N("sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",e),...t}));Tf.displayName="TableHeader";const Af=c.forwardRef(({className:e,...t},r)=>s.jsx("tbody",{ref:r,className:N("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));Af.displayName="TableBody";const OS=c.forwardRef(({className:e,...t},r)=>s.jsx("tfoot",{ref:r,className:N("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));OS.displayName="TableFooter";const Ct=c.forwardRef(({className:e,...t},r)=>s.jsx("tr",{ref:r,className:N("border-b border-purple-muted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-purple-muted-600/30",e,{"cursor-pointer hover:bg-purple-muted-600/20":!!t.onClick}),...t}));Ct.displayName="TableRow";const _f=c.forwardRef(({className:e,...t},r)=>s.jsx("th",{ref:r,className:N("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));_f.displayName="TableHead";const Gt=c.forwardRef(({className:e,...t},r)=>s.jsx("td",{ref:r,className:N("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Gt.displayName="TableCell";const DS=c.forwardRef(({className:e,...t},r)=>s.jsx("caption",{ref:r,className:N("mt-4 text-sm text-muted-foreground",e),...t}));DS.displayName="TableCaption";const $S=({title:e="No results"})=>s.jsx("div",{className:"grid place-items-center text-foreground h-full w-full p-14",children:e}),LS=({columnsCount:e,rowsCount:t=8})=>s.jsx(s.Fragment,{children:Array.from({length:t}).map((r,n)=>s.jsx(Ct,{children:Array.from({length:e}).map((o,a)=>s.jsx(Gt,{children:s.jsx(Cd,{className:"h-5.5 w-full"})},`loading-cell-${a}`))},`loading-row-${n}`))}),FS=e=>s.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[s.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",fill:"white"}),s.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",fill:"black"}),s.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),s.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),s.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",fill:"white"}),s.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M89.0353 182.686C75.1053 138.51 106.825 68.8089 143.315 34.4425C185.995 -5.7651 243.385 -13.4257 278.755 68.5323L270.145 71.5115C270.365 71.6285 238.435 46.4974 222.705 46.4974C217.675 46.4974 214.215 50.2532 210.675 54.6687C192.345 77.5336 173.815 147.99 131.485 147.905C131.485 147.905 132.205 179.43 99.6853 183.92C99.6853 183.92 124.525 182.282 124.525 193.315H83.9453C84.2153 192.709 83.5353 185.016 89.0453 182.686H89.0353Z",fill:"white",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M130.318 157.438C130.318 157.438 133.678 142.638 127.758 131.765",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),s.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",fill:"white"}),s.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",fill:"white"}),s.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",fill:"white"}),s.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M275.767 61.9785L263.938 66.8728L270.147 71.5118L278.568 68.3517L275.767 61.9785Z",fill:"#7A68FA",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M225.147 40.4968C231.289 40.4968 236.267 35.1997 236.267 28.6654C236.267 22.1311 231.289 16.834 225.147 16.834C219.006 16.834 214.027 22.1311 214.027 28.6654C214.027 35.1997 219.006 40.4968 225.147 40.4968Z",fill:"white",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M225.147 32.9536C227.373 32.9536 229.177 31.0338 229.177 28.6657C229.177 26.2976 227.373 24.3779 225.147 24.3779C222.921 24.3779 221.117 26.2976 221.117 28.6657C221.117 31.0338 222.921 32.9536 225.147 32.9536Z",fill:"black"}),s.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M220.18 55.8399C220.18 55.8399 223.26 53.4567 227.08 54.9675",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M223.938 59.5836C223.938 59.5836 227.918 58.2004 230.658 60.4986",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_65_2990",children:s.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),ji=({title:e="There's nothing to show",description:t="No items to display"})=>s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[s.jsx(FS,{className:"mb-6"}),s.jsx("h4",{className:"mb-1 text-foreground",children:e}),s.jsx("p",{className:"text-purple-muted-300",children:t})]}),If=({className:e,...t})=>s.jsx("nav",{role:"navigation","aria-label":"pagination",className:N("qodo qodo-pagination mx-auto flex w-full justify-center",e),...t});If.displayName="Pagination";const Mf=c.forwardRef(({className:e,...t},r)=>s.jsx("ul",{ref:r,className:N("flex flex-row items-center gap-1",e),...t}));Mf.displayName="PaginationContent";const gr=c.forwardRef(({className:e,...t},r)=>s.jsx("li",{ref:r,className:N("",e),...t}));gr.displayName="PaginationItem";const Of=({className:e,isActive:t,size:r="icon",...n})=>s.jsx("a",{"aria-current":t?"page":void 0,className:N(Xi({variant:t?"outline":"ghost",size:r}),e),...n});Of.displayName="PaginationLink";const Df=({className:e,...t})=>s.jsxs("span",{"aria-hidden":!0,className:N("flex h-9 w-9 items-center justify-center",e),...t,children:[s.jsx(Hi,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"More pages"})]});Df.displayName="PaginationEllipsis";const VS=({table:e,isLoading:t=!1})=>{const r=e.getPageCount(),n=e.getState().pagination.pageIndex+1,[o,a]=S.useState(r);S.useEffect(()=>{r>=1&&a(r)},[r]);const i=S.useMemo(()=>{const m="text-purple-muted-300 dark:text-purple-muted-300",b="hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300",v="bg-purple-muted-600 text-purple-muted-300 dark:bg-purple-muted-600 dark:text-purple-muted-300",h="border-none flex items-center justify-center w-8 h-8",y="pointer-events-none opacity-50 cursor-not-allowed";return{previous:N(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",h,m,t&&y),next:N(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",h,m,t&&y),link:x=>N(h,t?"cursor-not-allowed":"cursor-pointer",m,!t&&b,x&&v,t&&y)}},[n,r,t]),l=S.useCallback(m=>{if(t)return;const b=m-1;e.setPagination(v=>({...v,pageIndex:b}))},[e,t]),d=S.useCallback(()=>{t||n<=1||l(n-1)},[n,l,t]),u=S.useCallback(()=>{t||r<=1||n>=r||l(n+1)},[r,n,l,t]),f=S.useCallback(m=>{if(m<=1)return[];if(m<=7)return Array.from({length:m},(v,h)=>h+1);const b=[];return n<=4?b.push(1,2,3,4,5,"ellipsis",m):n>=m-3?b.push(1,"ellipsis",m-4,m-3,m-2,m-1,m):b.push(1,"ellipsis",n-1,n,n+1,"ellipsis",m),b},[n]),p=S.useMemo(()=>{if(r<=1){const m=Math.max(r,o);return f(m)}return f(r)},[r,o,f]),g=S.useCallback((m,b)=>m==="ellipsis"?s.jsx(gr,{children:s.jsx(Df,{})},`ellipsis-${b}`):s.jsx(gr,{className:"flex items-center justify-center",children:s.jsx(Of,{onClick:()=>l(m),isActive:m===n,className:i.link(m===n),children:m})},`${m}-${b}-pagination-item`),[l,n,i]);return r<2&&o<2?s.jsx(s.Fragment,{}):s.jsx(If,{className:"dark:bg-transparent",children:s.jsxs(Mf,{children:[s.jsx(gr,{children:s.jsx(Qe,{variant:"ghost",size:"icon",className:i.previous,onClick:d,children:s.jsx(lg,{})})}),p.map(g),s.jsx(gr,{children:s.jsx(Qe,{variant:"ghost",size:"icon",className:i.next,onClick:u,children:s.jsx(Ui,{onClick:u})})})]})})},BS=150,Ni=(e,t)=>{const r=t.columnDef.minSize,n=t.columnDef.maxSize;return{[`w-[${e}px]`]:e!==BS,[`min-w-[${r}px]`]:r!==void 0,[`max-w-[${n}px]`]:n!==void 0}},GS=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:a=!1,onRowClick:i,emptyStateTitle:l="There's nothing to show",emptyStateDescription:d="No items to display",noResultsTitle:u="No results",wrapperClassName:f,loadingRowsCount:p=8,activeRowId:g})=>{const m=e.getVisibleFlatColumns().length,b=e.options.manualPagination&&e.options.onPaginationChange,v=e.getRowModel().rows.length===0,h=e.getCoreRowModel().rows.length===0&&!o,y=!o&&(a||h||v),x="hover:bg-transparent cursor-default",C=()=>e.getHeaderGroups().map(j=>s.jsx(Ct,{children:j.headers.map(T=>s.jsx(_f,{className:N("text-[#A1A1AA]",Ni(T.getSize(),T.column)),children:T.isPlaceholder?void 0:Pi(T.column.columnDef.header,T.getContext())},T.id))},j.id)),E=()=>o?s.jsx(LS,{rowsCount:p,columnsCount:m}):a?s.jsx(Ct,{className:x,children:s.jsx(Gt,{colSpan:m,children:(n==null?void 0:n())||s.jsx(ji,{title:l,description:d})})}):h?s.jsx(Ct,{className:x,children:s.jsx(Gt,{colSpan:m,children:(t==null?void 0:t())||s.jsx(ji,{title:l,description:d})})}):v?s.jsx(Ct,{className:x,children:s.jsx(Gt,{colSpan:m,children:(r==null?void 0:r())||s.jsx($S,{title:u})})}):e.getRowModel().rows.map(j=>{var P;const T=(P=j.original)==null?void 0:P.id,A=j.getIsSelected()||!!g&&g===T;return s.jsx(Ct,{"data-state":A?"selected":void 0,onClick:()=>i==null?void 0:i(j.original),children:j.getVisibleCells().map(F=>s.jsx(Gt,{className:N("text-[#FAFAFA] whitespace-nowrap",Ni(F.column.getSize(),F.column)),children:Pi(F.column.columnDef.cell,F.getContext())},F.id))},j.id)});return s.jsxs("div",{className:N("qodo qodo-table","flex flex-col h-full w-full"),children:[s.jsx("div",{className:"flex-1 min-h-0",children:s.jsxs(kf,{wrapperClassName:f,className:N({"h-[100%]":y}),children:[s.jsx(Tf,{children:C()}),s.jsx(Af,{children:E()})]})}),b&&s.jsx("footer",{className:"pt-4 pb-2 border-t border-purple-muted-600/20 flex-shrink-0",children:s.jsx(VS,{table:e,isLoading:o})})]})},Yo=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return s.jsx("div",{...r,children:n})},WS=e=>{const{variant:t,children:r}=e,n=r||t;return s.jsx(Ht,{...e,children:n})},zS=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),s.jsx(Yo,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return s.jsx(Yo,{...r,children:o})},qS=({column:e,children:t,tooltipContent:r})=>{const[n,o]=S.useState(!1),a=e.getCanSort();let i=t;return r&&(i=s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{children:t}),s.jsx(Fr,{contentProps:{className:"max-w-[200px]"},content:r,children:s.jsx(Cg,{className:"h-4 w-4"})})]})),a?s.jsxs("span",{className:"flex gap-1 items-center cursor-pointer",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),role:"button",children:[i,s.jsx(og,{className:N("ml-2 h-4 w-4",{invisible:!n})})]}):s.jsx("span",{children:i})};var Xo=["Enter"," "],US=["ArrowDown","PageUp","Home"],$f=["ArrowUp","PageDown","End"],HS=[...US,...$f],KS={ltr:[...Xo,"ArrowRight"],rtl:[...Xo,"ArrowLeft"]},YS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vr="Menu",[wr,XS,ZS]=En(Vr),[At,Lf]=we(Vr,[ZS,ut,nr]),Br=ut(),Ff=nr(),[Vf,ht]=At(Vr),[JS,Gr]=At(Vr),Bf=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,l=Br(t),[d,u]=c.useState(null),f=c.useRef(!1),p=De(a),g=Zt(o);return c.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),s.jsx(Nr,{...l,children:s.jsx(Vf,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:u,children:s.jsx(JS,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:g,modal:i,children:n})})})};Bf.displayName=Vr;var QS="MenuAnchor",Ua=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Br(r);return s.jsx(kr,{...o,...n,ref:t})});Ua.displayName=QS;var Ha="MenuPortal",[eE,Gf]=At(Ha,{forceMount:void 0}),Wf=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=ht(Ha,t);return s.jsx(eE,{scope:t,forceMount:r,children:s.jsx(je,{present:r||a.open,children:s.jsx(tr,{asChild:!0,container:o,children:n})})})};Wf.displayName=Ha;var _e="MenuContent",[tE,Ka]=At(_e),zf=c.forwardRef((e,t)=>{const r=Gf(_e,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=ht(_e,e.__scopeMenu),i=Gr(_e,e.__scopeMenu);return s.jsx(wr.Provider,{scope:e.__scopeMenu,children:s.jsx(je,{present:n||a.open,children:s.jsx(wr.Slot,{scope:e.__scopeMenu,children:i.modal?s.jsx(rE,{...o,ref:t}):s.jsx(nE,{...o,ref:t})})})})}),rE=c.forwardRef((e,t)=>{const r=ht(_e,e.__scopeMenu),n=c.useRef(null),o=se(t,n);return c.useEffect(()=>{const a=n.current;if(a)return _n(a)},[]),s.jsx(Ya,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),nE=c.forwardRef((e,t)=>{const r=ht(_e,e.__scopeMenu);return s.jsx(Ya,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),oE=it("MenuContent.ScrollLock"),Ya=c.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:m,disableOutsideScroll:b,...v}=e,h=ht(_e,r),y=Gr(_e,r),x=Br(r),C=Ff(r),E=XS(r),[j,T]=c.useState(null),A=c.useRef(null),P=se(t,A,h.onContentChange),F=c.useRef(0),U=c.useRef(""),re=c.useRef(0),ee=c.useRef(null),J=c.useRef("right"),z=c.useRef(0),$=b?Tr:c.Fragment,_=b?{as:oE,allowPinchZoom:!0}:void 0,D=M=>{var I,Q;const V=U.current+M,X=E().filter(te=>!te.disabled),k=document.activeElement,B=(I=X.find(te=>te.ref.current===k))==null?void 0:I.textValue,Y=X.map(te=>te.textValue),O=vE(Y,V,B),W=(Q=X.find(te=>te.textValue===O))==null?void 0:Q.ref.current;(function te(oe){U.current=oe,window.clearTimeout(F.current),oe!==""&&(F.current=window.setTimeout(()=>te(""),1e3))})(V),W&&setTimeout(()=>W.focus())};c.useEffect(()=>()=>window.clearTimeout(F.current),[]),Rn();const R=c.useCallback(M=>{var X,k;return J.current===((X=ee.current)==null?void 0:X.side)&&xE(M,(k=ee.current)==null?void 0:k.area)},[]);return s.jsx(tE,{scope:r,searchRef:U,onItemEnter:c.useCallback(M=>{R(M)&&M.preventDefault()},[R]),onItemLeave:c.useCallback(M=>{var V;R(M)||((V=A.current)==null||V.focus(),T(null))},[R]),onTriggerLeave:c.useCallback(M=>{R(M)&&M.preventDefault()},[R]),pointerGraceTimerRef:re,onPointerGraceIntentChange:c.useCallback(M=>{ee.current=M},[]),children:s.jsx($,{..._,children:s.jsx(Pr,{asChild:!0,trapped:o,onMountAutoFocus:G(a,M=>{var V;M.preventDefault(),(V=A.current)==null||V.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:s.jsx(Jt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:m,children:s.jsx(Sa,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:j,onCurrentTabStopIdChange:T,onEntryFocus:G(d,M=>{y.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(Tn,{role:"menu","aria-orientation":"vertical","data-state":ip(h.open),"data-radix-menu-content":"",dir:y.dir,...x,...v,ref:P,style:{outline:"none",...v.style},onKeyDown:G(v.onKeyDown,M=>{const X=M.target.closest("[data-radix-menu-content]")===M.currentTarget,k=M.ctrlKey||M.altKey||M.metaKey,B=M.key.length===1;X&&(M.key==="Tab"&&M.preventDefault(),!k&&B&&D(M.key));const Y=A.current;if(M.target!==Y||!HS.includes(M.key))return;M.preventDefault();const W=E().filter(I=>!I.disabled).map(I=>I.ref.current);$f.includes(M.key)&&W.reverse(),mE(W)}),onBlur:G(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(F.current),U.current="")}),onPointerMove:G(e.onPointerMove,Cr(M=>{const V=M.target,X=z.current!==M.clientX;if(M.currentTarget.contains(V)&&X){const k=M.clientX>z.current?"right":"left";J.current=k,z.current=M.clientX}}))})})})})})})});zf.displayName=_e;var aE="MenuGroup",Xa=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(Z.div,{role:"group",...n,ref:t})});Xa.displayName=aE;var sE="MenuLabel",qf=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(Z.div,{...n,ref:t})});qf.displayName=sE;var xn="MenuItem",ki="menu.itemSelect",Yn=c.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=c.useRef(null),i=Gr(xn,e.__scopeMenu),l=Ka(xn,e.__scopeMenu),d=se(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!r&&p){const g=new CustomEvent(ki,{bubbles:!0,cancelable:!0});p.addEventListener(ki,m=>n==null?void 0:n(m),{once:!0}),Ji(p,g),g.defaultPrevented?u.current=!1:i.onClose()}};return s.jsx(Uf,{...o,ref:d,disabled:r,onClick:G(e.onClick,f),onPointerDown:p=>{var g;(g=e.onPointerDown)==null||g.call(e,p),u.current=!0},onPointerUp:G(e.onPointerUp,p=>{var g;u.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:G(e.onKeyDown,p=>{const g=l.searchRef.current!=="";r||g&&p.key===" "||Xo.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Yn.displayName=xn;var Uf=c.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=Ka(xn,r),l=Ff(r),d=c.useRef(null),u=se(t,d),[f,p]=c.useState(!1),[g,m]=c.useState("");return c.useEffect(()=>{const b=d.current;b&&m((b.textContent??"").trim())},[a.children]),s.jsx(wr.ItemSlot,{scope:r,disabled:n,textValue:o??g,children:s.jsx(Ea,{asChild:!0,...l,focusable:!n,children:s.jsx(Z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:u,onPointerMove:G(e.onPointerMove,Cr(b=>{n?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,Cr(b=>i.onItemLeave(b))),onFocus:G(e.onFocus,()=>p(!0)),onBlur:G(e.onBlur,()=>p(!1))})})})}),iE="MenuCheckboxItem",Hf=c.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return s.jsx(Jf,{scope:e.__scopeMenu,checked:r,children:s.jsx(Yn,{role:"menuitemcheckbox","aria-checked":bn(r)?"mixed":r,...o,ref:t,"data-state":Qa(r),onSelect:G(o.onSelect,()=>n==null?void 0:n(bn(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Hf.displayName=iE;var Kf="MenuRadioGroup",[lE,cE]=At(Kf,{value:void 0,onValueChange:()=>{}}),Yf=c.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=De(n);return s.jsx(lE,{scope:e.__scopeMenu,value:r,onValueChange:a,children:s.jsx(Xa,{...o,ref:t})})});Yf.displayName=Kf;var Xf="MenuRadioItem",Zf=c.forwardRef((e,t)=>{const{value:r,...n}=e,o=cE(Xf,e.__scopeMenu),a=r===o.value;return s.jsx(Jf,{scope:e.__scopeMenu,checked:a,children:s.jsx(Yn,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":Qa(a),onSelect:G(n.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,r)},{checkForDefaultPrevented:!1})})})});Zf.displayName=Xf;var Za="MenuItemIndicator",[Jf,dE]=At(Za,{checked:!1}),Qf=c.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=dE(Za,r);return s.jsx(je,{present:n||bn(a.checked)||a.checked===!0,children:s.jsx(Z.span,{...o,ref:t,"data-state":Qa(a.checked)})})});Qf.displayName=Za;var uE="MenuSeparator",ep=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});ep.displayName=uE;var fE="MenuArrow",tp=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Br(r);return s.jsx(An,{...o,...n,ref:t})});tp.displayName=fE;var Ja="MenuSub",[pE,rp]=At(Ja),np=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=ht(Ja,t),i=Br(t),[l,d]=c.useState(null),[u,f]=c.useState(null),p=De(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),s.jsx(Nr,{...i,children:s.jsx(Vf,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:f,children:s.jsx(pE,{scope:t,contentId:ge(),triggerId:ge(),trigger:l,onTriggerChange:d,children:r})})})};np.displayName=Ja;var vr="MenuSubTrigger",op=c.forwardRef((e,t)=>{const r=ht(vr,e.__scopeMenu),n=Gr(vr,e.__scopeMenu),o=rp(vr,e.__scopeMenu),a=Ka(vr,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),d(null)}},[l,d]),s.jsx(Ua,{asChild:!0,...u,children:s.jsx(Uf,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":ip(r.open),...e,ref:et(t,o.onTriggerChange),onClick:p=>{var g;(g=e.onClick)==null||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:G(e.onPointerMove,Cr(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:G(e.onPointerLeave,Cr(p=>{var m,b;f();const g=(m=r.content)==null?void 0:m.getBoundingClientRect();if(g){const v=(b=r.content)==null?void 0:b.dataset.side,h=v==="right",y=h?-5:5,x=g[h?"left":"right"],C=g[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x,y:g.top},{x:C,y:g.top},{x:C,y:g.bottom},{x,y:g.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:G(e.onKeyDown,p=>{var m;const g=a.searchRef.current!=="";e.disabled||g&&p.key===" "||KS[n.dir].includes(p.key)&&(r.onOpenChange(!0),(m=r.content)==null||m.focus(),p.preventDefault())})})})});op.displayName=vr;var ap="MenuSubContent",sp=c.forwardRef((e,t)=>{const r=Gf(_e,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=ht(_e,e.__scopeMenu),i=Gr(_e,e.__scopeMenu),l=rp(ap,e.__scopeMenu),d=c.useRef(null),u=se(t,d);return s.jsx(wr.Provider,{scope:e.__scopeMenu,children:s.jsx(je,{present:n||a.open,children:s.jsx(wr.Slot,{scope:e.__scopeMenu,children:s.jsx(Ya,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:G(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:G(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:G(e.onKeyDown,f=>{var m;const p=f.currentTarget.contains(f.target),g=YS[i.dir].includes(f.key);p&&g&&(a.onOpenChange(!1),(m=l.trigger)==null||m.focus(),f.preventDefault())})})})})})});sp.displayName=ap;function ip(e){return e?"open":"closed"}function bn(e){return e==="indeterminate"}function Qa(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}function mE(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function gE(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function vE(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=gE(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==r));const d=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function hE(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],d=t[i],u=l.x,f=l.y,p=d.x,g=d.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function xE(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return hE(r,t)}function Cr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var bE=Bf,yE=Ua,wE=Wf,CE=zf,SE=Xa,EE=qf,RE=Yn,PE=Hf,jE=Yf,NE=Zf,kE=Qf,TE=ep,AE=tp,_E=np,IE=op,ME=sp,Xn="DropdownMenu",[OE,KR]=we(Xn,[Lf]),Ce=Lf(),[DE,lp]=OE(Xn),cp=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,d=Ce(t),u=c.useRef(null),[f,p]=ye({prop:o,defaultProp:a??!1,onChange:i,caller:Xn});return s.jsx(DE,{scope:t,triggerId:ge(),triggerRef:u,contentId:ge(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(g=>!g),[p]),modal:l,children:s.jsx(bE,{...d,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};cp.displayName=Xn;var dp="DropdownMenuTrigger",up=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=lp(dp,r),i=Ce(r);return s.jsx(yE,{asChild:!0,...i,children:s.jsx(Z.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":n?"":void 0,disabled:n,...o,ref:et(t,a.triggerRef),onPointerDown:G(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:G(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});up.displayName=dp;var $E="DropdownMenuPortal",fp=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Ce(t);return s.jsx(wE,{...n,...r})};fp.displayName=$E;var pp="DropdownMenuContent",mp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lp(pp,r),a=Ce(r),i=c.useRef(!1);return s.jsx(CE,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,l=>{var d;i.current||(d=o.triggerRef.current)==null||d.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:G(e.onInteractOutside,l=>{const d=l.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mp.displayName=pp;var LE="DropdownMenuGroup",gp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(SE,{...o,...n,ref:t})});gp.displayName=LE;var FE="DropdownMenuLabel",vp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(EE,{...o,...n,ref:t})});vp.displayName=FE;var VE="DropdownMenuItem",hp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(RE,{...o,...n,ref:t})});hp.displayName=VE;var BE="DropdownMenuCheckboxItem",xp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(PE,{...o,...n,ref:t})});xp.displayName=BE;var GE="DropdownMenuRadioGroup",bp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(jE,{...o,...n,ref:t})});bp.displayName=GE;var WE="DropdownMenuRadioItem",yp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(NE,{...o,...n,ref:t})});yp.displayName=WE;var zE="DropdownMenuItemIndicator",wp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(kE,{...o,...n,ref:t})});wp.displayName=zE;var qE="DropdownMenuSeparator",Cp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(TE,{...o,...n,ref:t})});Cp.displayName=qE;var UE="DropdownMenuArrow",HE=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(AE,{...o,...n,ref:t})});HE.displayName=UE;var KE=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=Ce(t),[l,d]=ye({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return s.jsx(_E,{...i,open:l,onOpenChange:d,children:r})},YE="DropdownMenuSubTrigger",Sp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(IE,{...o,...n,ref:t})});Sp.displayName=YE;var XE="DropdownMenuSubContent",Ep=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(ME,{...o,...n,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)"}})});Ep.displayName=XE;var ZE=cp,JE=up,Rp=fp,Pp=mp,QE=gp,jp=vp,Np=hp,kp=xp,eR=bp,Tp=yp,Ap=wp,_p=Cp,tR=KE,Ip=Sp,Mp=Ep;const rR=ZE,nR=JE,oR=QE,aR=Rp,sR=tR,iR=eR,Op=c.forwardRef(({className:e,inset:t,children:r,...n},o)=>s.jsxs(Ip,{ref:o,className:N("qodo qodo-dropdown-menu-sub-trigger flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:text-[var(--text-interactive-neutral-hover)] hover:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,s.jsx(Ui,{className:"ml-auto"})]}));Op.displayName=Ip.displayName;const Dp=c.forwardRef(({className:e,...t},r)=>s.jsx(Mp,{ref:r,className:N("z-50 min-w-[8rem] overflow-hidden cursor-pointer rounded-sm border shadow-lg 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","text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1",e),...t}));Dp.displayName=Mp.displayName;const $p=c.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(Rp,{children:s.jsx(Pp,{ref:n,sideOffset:t,className:N("qodo qodo-dropdown-menu-content z-50 min-w-[8rem] overflow-hidden rounded-sm border text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1 ","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 [&_svg]:text-inherit dark:[&_svg]:text-inherit",e),...r})}));$p.displayName=Pp.displayName;const es=c.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(Np,{ref:n,className:N("w-full qodo qodo-dropdown-menu-item relative flex select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] cursor-pointer data-[disabled]:cursor-default",t&&"pl-8",e),...r}));es.displayName=Np.displayName;const Lp=c.forwardRef(({className:e,children:t,checked:r,...n},o)=>s.jsxs(kp,{ref:o,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:cursor-default",e),checked:r,...n,children:[s.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(Ap,{children:s.jsx(Er,{className:"h-4 w-4"})})}),t]}));Lp.displayName=kp.displayName;const Fp=c.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(Tp,{ref:n,className:N("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:cursor-default",e),...r,children:[s.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(Ap,{children:s.jsx(Er,{className:"h-[18px] w-[18px]"})})}),t]}));Fp.displayName=Tp.displayName;const ts=c.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(jp,{ref:n,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ts.displayName=jp.displayName;const xt=c.forwardRef(({className:e,...t},r)=>s.jsx(_p,{ref:r,className:N("-mx-1 my-1 h-px bg-purple-muted-500",e),...t}));xt.displayName=_p.displayName;const Vp=({className:e,...t})=>s.jsx("span",{className:N("ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",e),...t});Vp.displayName="DropdownMenuEndAndornment";const lR=({radioItem:e})=>s.jsxs(Fp,{className:"m-0 rounded-none gap-2 pl-3 pr-9 py-1.5",value:e.value,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),cR=({radioGroupItem:e})=>s.jsxs(s.Fragment,{children:[s.jsx(iR,{value:e.value,onValueChange:e.onValueChange,children:e.radioItems.map((t,r)=>s.jsx(lR,{radioItem:t},`item-${r}`))}),e.separator&&s.jsx(xt,{})]}),dR=({actionItem:e})=>s.jsxs("div",{className:"w-full [&>button]:w-full",children:[s.jsx(Fr,{content:e.tooltip,providerProps:{delayDuration:200},children:s.jsx(es,{className:"m-0 rounded-xs py-1.5 px-3 outline-none",disabled:e.disabled||e.loading,onClick:e.onClick,onSelect:e.onSelect,children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.loading&&s.jsx(Ki,{className:"h-4 w-4 motion-preset-spin motion-duration-1000"}),!e.loading&&e.icon,e.label,e.endAndornment&&s.jsx(Vp,{children:e.endAndornment})]})})}),e.separator&&s.jsx(xt,{})]}),uR=({checkboxItem:e})=>s.jsxs(Lp,{className:"gap-2 m-0 rounded-none py-1.5 pl-3 pr-9 outline-none",checked:e.checked,onCheckedChange:e.onSelect,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),fR=({checkboxGroupItem:e})=>s.jsxs(s.Fragment,{children:[s.jsx(oR,{children:e.checkboxes.map((t,r)=>s.jsx(uR,{checkboxItem:t},`item-${r}`))}),e.separator&&s.jsx(xt,{})]}),pR=({subMenuItem:e})=>s.jsxs(s.Fragment,{children:[s.jsxs(sR,{children:[s.jsxs(Op,{disabled:e.disabled,className:"m-0 rounded-none py-1.5 pl-3 pr-1",children:[e.icon,e.label]}),s.jsx(aR,{children:s.jsx(Dp,{children:e.subItems.map((t,r)=>Bp(t,r))})})]}),e.separator&&s.jsx(xt,{})]}),mR=({menuItem:e})=>s.jsx(ts,{className:"text-purple-muted-300 px-3 font-normal",children:e.label}),gR=()=>s.jsx(xt,{}),Bp=(e,t)=>{switch(e.type){case"ActionMenuItem":return s.jsx(dR,{actionItem:e},`item-${t}`);case"CheckboxGroup":return s.jsx(fR,{checkboxGroupItem:e},`item-${t}`);case"RadioGroup":return s.jsx(cR,{radioGroupItem:e},`item-${t}`);case"SubMenuItem":return s.jsx(pR,{subMenuItem:e},`item-${t}`);case"MenuLabel":return s.jsx(mR,{menuItem:e},`item-${t}`);case"Separator":return s.jsx(gR,{},`item-${t}`);default:return null}},vR={s:"min-w-[140px]",m:"min-w-[249px]",l:"min-w-[257px]"},hR=({header:e})=>s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-purple-muted-300",children:e.title}),s.jsx("span",{children:e.label})]}),xR=({header:e})=>e?s.jsxs(s.Fragment,{children:[s.jsx(ts,{className:"text-purple-100 font-normal px-3",children:e.type==="MenuTitleHeader"&&s.jsx(hR,{header:e})}),s.jsx(xt,{className:"bg-purple-muted-500"})]}):null,bR=({footer:e})=>e?s.jsxs(s.Fragment,{children:[s.jsx(xt,{className:"bg-purple-muted-500"}),s.jsxs(es,{onClick:e.action,disabled:e.disabled,className:"cursor-pointer m-0 rounded-none py-1.5 px-3 text-purple-300 focus:text-purple-300 focus:bg-transparent",children:[e.icon,e.label]})]}):null,Gp=({menuItems:e,header:t,footer:r,triggerElement:n,size:o="s",asChild:a=!1,side:i="bottom",modal:l=!1,disabled:d=!1,className:u=""})=>{const f=zi(vR,{[o]:o,className:u},!1);return s.jsx("div",{className:N("qodo qodo-dropdown"),children:s.jsxs(rR,{modal:l,children:[s.jsx(nR,{asChild:a,className:"select-none outline-none flex items-center",disabled:d,children:n}),s.jsxs($p,{side:i,align:"end",className:f,children:[s.jsx(xR,{header:t}),e.filter(p=>!p.isHidden).map((p,g)=>Bp(p,g)),s.jsx(bR,{footer:r})]})]})})},yR=({triggerAriaLabel:e="Open actions menu",className:t,...r})=>s.jsx(Qe,{variant:"ghost",size:"icon","aria-label":e,className:N("flex items-center justify-center h-4 w-4",t),...r,children:s.jsx(Hi,{className:"h-4 w-4"})}),wR=({menuItems:e=[],triggerElement:t=yR,triggerProps:r={},className:n,size:o="s",asChild:a=!1,side:i="bottom",modal:l=!1})=>s.jsx("div",{className:n,onClick:d=>d.stopPropagation(),children:s.jsx(Gp,{triggerElement:s.jsx(t,{className:N("flex items-center justify-center",r==null?void 0:r.className),...r}),menuItems:e,size:o,asChild:a,side:i,modal:l,disabled:r==null?void 0:r.disabled})}),CR={"data-lpignore":"true","data-1p-ignore":"true","data-bitwarden-watching":"false","data-form-type":"other","data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",spellCheck:!1,autoComplete:"off"},Ti={SMALL:"small",LARGE:"large"},SR=({containerClassName:e,className:t,searchSize:r=Ti.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...a})=>{const i=r===Ti.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",l=N("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-muted-600":"text-purple-muted-400"),d=N("text-purple-muted-200 dark:border-purple-muted-600 dark:text-purple-muted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-muted-400 pl-9",{"pr-9":!o});return s.jsxs("div",{className:N("qodo qodo-search-input","relative",e),children:[s.jsx(Yi,{className:N(l,"left-3")}),s.jsx(Rr,{className:N(i,d,t),disabled:n,...a,...CR}),!o&&s.jsx(Eg,{className:N(l,"right-3")})]})},ER=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,RR=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),PR=(e,t)=>{var n;if(!(t!=null&&t.length))return!0;const r=(n=e.split("@")[1])==null?void 0:n.toLowerCase();return t.some(o=>r===o.toLowerCase())},jR=(e,t)=>e.map(r=>{const n=ER.test(r),o=n?PR(r,t==null?void 0:t.domains):void 0;return{email:r,isValid:n&&o!==!1,isDomainValid:o}}),NR=(e,t,r)=>{const n=jR(e,r),o=[...t];for(const a of n)o.some(l=>l.email===a.email)||o.push(a);return o},kR=({onChange:e=()=>{},organization:t})=>{const[r,n]=S.useState([]),o=S.useCallback(u=>{e(u)},[e]),a=S.useCallback(u=>{n(u),o(u)},[o]),i=S.useCallback(u=>{const f=RR(u);if(f.length===0)return;const p=NR(f,r,t);a(p)},[r,a,t]),l=S.useCallback(()=>{a([])},[a]),d=S.useCallback(u=>{const f=r.filter(p=>p.email!==u);a(f)},[r,a]);return{emails:r,setEmails:a,addTokens:i,removeToken:d,clearAll:l,notify:o}},TR=e=>{const{draft:t,setDraft:r,addTokens:n,allSelected:o,setAllSelected:a,clearAll:i,emails:l,setEmails:d,notify:u}=e;return f=>{if((f.key==="a"||f.key==="A")&&(f.metaKey||f.ctrlKey)){f.preventDefault(),a(!0);return}if(o&&(f.key==="Backspace"||f.key==="Delete")){f.preventDefault(),a(!1),i(),r("");return}if(o&&f.key==="Escape"){f.preventDefault(),a(!1);return}if(o&&f.key.length===1&&!f.metaKey&&!f.ctrlKey&&!f.altKey&&(a(!1),i()),f.key==="Backspace"&&t.length===0&&l.length>0){f.preventDefault();const p=l[l.length-1],g=l.slice(0,-1);d(g),r(p.email),u(g);return}if(f.key==="Enter"){f.preventDefault(),t.trim()&&(n(t),r(""));return}[",",";"," "].includes(f.key)&&(f.preventDefault(),t.trim()&&(n(t),r("")))}},AR=({email:e,isValid:t,onRemove:r})=>{const n=o=>{o.stopPropagation(),r(e)};return s.jsxs(Ht,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[s.jsx("span",{className:"max-w-[200px] truncate",children:e}),s.jsx("button",{onClick:n,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:s.jsx(Sn,{size:12})})]})},_R=({hasContent:e,onClearAll:t,emails:r,invalidEmailError:n,invalidDomainError:o})=>{const{formatErrors:a,domainErrors:i,totalInvalidCount:l}=S.useMemo(()=>{const m=r.filter(h=>!h.isValid),b=m.filter(h=>!h.email.includes("@")||h.isDomainValid===void 0),v=m.filter(h=>h.isDomainValid===!1);return{formatErrors:b,domainErrors:v,totalInvalidCount:m.length}},[r]),d=m=>{m.preventDefault(),m.stopPropagation()},u=m=>{d(m),t()},f=m=>{d(m)},p=m=>{m.stopPropagation()},g=(m,b)=>b.length===0?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"space-y-1 text-purple-muted-200",children:[s.jsxs("span",{className:"font-medium border-b border-purple-muted-200",children:[m,":"]}),b.map((v,h)=>s.jsx("p",{className:"break-all",children:v.email},`${m}-${h}-${v.email}`))]});return s.jsxs(s.Fragment,{children:[e&&s.jsx("button",{type:"button",onClick:u,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:s.jsx(Mg,{className:"h-4 w-4"})}),l>0&&s.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:s.jsx(Fr,{triggerProps:{asChild:!0},content:s.jsx("div",{onClick:f,onWheel:p,className:"max-w-[min(90vw,32rem)] max-h-[min(60vh,20rem)] p-3 rounded-md border dark:border-red-800 shadow-lg dark:bg-purple-muted-800 dark:text-purple-muted-100",children:s.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[g(n,a),g(o,i)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:s.jsx("button",{type:"button","aria-label":`${l} invalid emails`,className:"text-red-400 hover:text-red-300",children:s.jsx(Dg,{className:"size-[18px]"})})})})]})},IR=({onChange:e,disabled:t=!1,inviteMembersPlaceholder:r=({domain:f})=>`Enter email addresses (e.g., user@${f})`,inviteMembersDisabledTooltip:n="You don't have permission to modify email addresses",organization:o,inputClassName:a,chipClassName:i,wrapperClassName:l,invalidEmailError:d="Invalid email",invalidDomainError:u="Email domain is not allowed"})=>{const f=S.useRef(null),p=S.useRef(null),[g,m]=S.useState(""),[b,v]=S.useState(!1),{emails:h,setEmails:y,addTokens:x,removeToken:C,clearAll:E,notify:j}=kR({onChange:e}),T=TR({draft:g,setDraft:m,addTokens:x,allSelected:b,setAllSelected:v,clearAll:E,emails:h,setEmails:y,notify:j}),A=()=>{var X;const V=((X=o==null?void 0:o.domains)==null?void 0:X[0])||"example.com";return r({domain:V})},P=S.useCallback(V=>{m(V.target.value)},[]),F=S.useCallback(()=>{g.trim()&&(x(g),m("")),v(!1)},[g,x]),U=S.useCallback(V=>{const X=V.clipboardData.getData("text");X&&(V.preventDefault(),x(X),m(""))},[x]),re=S.useCallback(()=>{var V;(V=p.current)==null||V.focus()},[p]),ee=S.useCallback(()=>{v(!1)},[]),J=S.useCallback(V=>{var k;const X=V.relatedTarget;X&&((k=f.current)!=null&&k.contains(X))||g.trim()&&(x(g),m(""))},[g,x]),z=h.length>0,$=!z&&g.length===0,_=z||g.length>0,D=N("bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",z?"flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar":"flex-1 !min-w-full overflow-hidden",{"opacity-50 cursor-not-allowed":t},a),R=N("inline-flex items-center gap-1 no-scrollbar",z?"w-max":"w-full",i),M=N("qodo qodo-email-chips-input","relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-muted-500 dark:bg-purple-muted-800 focus-within:ring-purple-muted-400",l);return s.jsx(Fr,{triggerProps:{asChild:!0},content:t?n:void 0,children:s.jsxs("div",{ref:f,className:M,onClick:re,onFocus:ee,onBlur:J,children:[s.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400",children:s.jsx(jg,{className:"w-4 h-4"})}),s.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:s.jsxs("div",{className:R,children:[h.map((V,X)=>s.jsx(AR,{email:V.email,isValid:V.isValid,onRemove:C},`email-${X}-${V.email}`)),s.jsx("input",{ref:p,value:g,onChange:P,onKeyDown:T,onBlur:F,onPaste:U,className:D,placeholder:$?A():"",disabled:t})]})}),s.jsx(_R,{hasContent:_,onClearAll:E,emails:h,invalidEmailError:d,invalidDomainError:u})]})})},Qr={DEFAULT:"default",PRIMARY:"primary",ACTIVE:"active"};function MR({title:e,description:t,caption:r,additionalContent:n,titleClassName:o,descriptionClassName:a,variant:i=Qr.DEFAULT,className:l,icon:d,iconClassName:u}){const f=N("px-6 py-4 gap-1 flex flex-row items-center gap-4","border-[var(--border-panel-neutral)] rounded-md fill-[var(--fill-panel-neutral)]",{"px-4":!!d},l),p=N("p-0 m-0 text-xs","text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",o),g=N("w-8 h-8 flex items-center justify-center","bg-purple-muted-600 rounded-full p-2.5",u),m=N("text-xl font-medium p-0 m-0 leading-4",{"text-muted-foreground dark:text-white":i===Qr.DEFAULT,"text-purple-300 dark:text-purple-300":i===Qr.PRIMARY,"text-[var(--color-text-tag-positive-idle)] dark:text-[var(--color-text-tag-positive-idle)]":i===Qr.ACTIVE},a);return s.jsxs(pd,{className:f,children:[d&&s.jsx("div",{className:g,children:d}),s.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[s.jsx(md,{className:"m-0 p-0 gap-0",children:s.jsx(gd,{className:p,children:e})}),s.jsxs(hd,{className:"m-0 p-0 flex flex-col gap-2",children:[t&&s.jsx(vd,{className:m,children:t}),r&&s.jsx("span",{className:"text-xs text-foreground dark:text-foreground tracking-[0.12px]",children:r}),n]})]})]})}exports.Accordion=uw;exports.AccordionContent=mw;exports.AccordionItem=fw;exports.AccordionTrigger=pw;exports.ActionsCell=wR;exports.Badge=Ht;exports.BadgeCell=WS;exports.BaseCell=Yo;exports.Button=Qe;exports.Card=pd;exports.CardAction=iy;exports.CardContent=hd;exports.CardDescription=vd;exports.CardFooter=ly;exports.CardHeader=md;exports.CardTitle=gd;exports.ClassHelper=zi;exports.Combobox=ba;exports.Dialog=$b;exports.DialogClose=Fb;exports.DialogContent=Vb;exports.DialogDescription=zb;exports.DialogFooter=Gb;exports.DialogHeader=Bb;exports.DialogOverlay=Xc;exports.DialogPortal=Yc;exports.DialogTitle=Wb;exports.DialogTrigger=Lb;exports.Dropdown=Gp;exports.EmailChipsInput=IR;exports.Form=Ie;exports.FormProvider=pu;exports.Input=Rr;exports.InsightCard=MR;exports.NumberCell=zS;exports.Progress=hy;exports.RadioGroup=$a;exports.RadioGroupItem=La;exports.SearchInput=SR;exports.Select=Yx;exports.SelectContent=vc;exports.SelectGroup=Xx;exports.SelectItem=xc;exports.SelectLabel=hc;exports.SelectScrollDownButton=da;exports.SelectScrollUpButton=ca;exports.SelectSeparator=bc;exports.SelectTrigger=gc;exports.SelectValue=Zx;exports.Skeleton=Cd;exports.SortableHeaderCell=qS;exports.Steps=AS;exports.Switch=Ey;exports.Table=GS;exports.TagsInput=Yu;exports.Toggle=Py;exports.ToggleGroup=Wy;exports.ToggleGroupItem=zy;exports.Tooltip=Fr;exports.borderRadius=pm;exports.cn=N;exports.colors=um;exports.spacing=fm;exports.typography=mm;exports.useFormContext=mu;
213
+ */function Ni(e,t){return e?eE(e)?c.createElement(e,t):e:null}function eE(e){return tE(e)||typeof e=="function"||rE(e)}function tE(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function rE(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const Bf=c.forwardRef(({className:e,wrapperClassName:t,...r},n)=>s.jsx("div",{className:j("max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",t),children:s.jsx("table",{ref:n,className:j("w-full caption-bottom text-sm",e),...r})}));Bf.displayName="Table";const Gf=c.forwardRef(({className:e,...t},r)=>s.jsx("thead",{ref:r,className:j("sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",e),...t}));Gf.displayName="TableHeader";const Wf=c.forwardRef(({className:e,...t},r)=>s.jsx("tbody",{ref:r,className:j("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));Wf.displayName="TableBody";const nE=c.forwardRef(({className:e,...t},r)=>s.jsx("tfoot",{ref:r,className:j("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));nE.displayName="TableFooter";const St=c.forwardRef(({className:e,...t},r)=>s.jsx("tr",{ref:r,className:j("border-b border-purple-muted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-purple-muted-600/30",e,{"cursor-pointer hover:bg-purple-muted-600/20":!!t.onClick}),...t}));St.displayName="TableRow";const zf=c.forwardRef(({className:e,...t},r)=>s.jsx("th",{ref:r,className:j("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));zf.displayName="TableHead";const zt=c.forwardRef(({className:e,...t},r)=>s.jsx("td",{ref:r,className:j("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));zt.displayName="TableCell";const oE=c.forwardRef(({className:e,...t},r)=>s.jsx("caption",{ref:r,className:j("mt-4 text-sm text-muted-foreground",e),...t}));oE.displayName="TableCaption";const aE=({title:e="No results"})=>s.jsx("div",{className:"grid place-items-center text-foreground h-full w-full p-14",children:e}),sE=({columnsCount:e,rowsCount:t=8})=>s.jsx(s.Fragment,{children:Array.from({length:t}).map((r,n)=>s.jsx(St,{children:Array.from({length:e}).map((o,a)=>s.jsx(zt,{children:s.jsx(Ed,{className:"h-5.5 w-full"})},`loading-cell-${a}`))},`loading-row-${n}`))}),iE=e=>s.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[s.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",fill:"white"}),s.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",fill:"black"}),s.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),s.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),s.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",fill:"white"}),s.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M89.0353 182.686C75.1053 138.51 106.825 68.8089 143.315 34.4425C185.995 -5.7651 243.385 -13.4257 278.755 68.5323L270.145 71.5115C270.365 71.6285 238.435 46.4974 222.705 46.4974C217.675 46.4974 214.215 50.2532 210.675 54.6687C192.345 77.5336 173.815 147.99 131.485 147.905C131.485 147.905 132.205 179.43 99.6853 183.92C99.6853 183.92 124.525 182.282 124.525 193.315H83.9453C84.2153 192.709 83.5353 185.016 89.0453 182.686H89.0353Z",fill:"white",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M130.318 157.438C130.318 157.438 133.678 142.638 127.758 131.765",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),s.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",fill:"white"}),s.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",fill:"white"}),s.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",fill:"white"}),s.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M275.767 61.9785L263.938 66.8728L270.147 71.5118L278.568 68.3517L275.767 61.9785Z",fill:"#7A68FA",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M225.147 40.4968C231.289 40.4968 236.267 35.1997 236.267 28.6654C236.267 22.1311 231.289 16.834 225.147 16.834C219.006 16.834 214.027 22.1311 214.027 28.6654C214.027 35.1997 219.006 40.4968 225.147 40.4968Z",fill:"white",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M225.147 32.9536C227.373 32.9536 229.177 31.0338 229.177 28.6657C229.177 26.2976 227.373 24.3779 225.147 24.3779C222.921 24.3779 221.117 26.2976 221.117 28.6657C221.117 31.0338 222.921 32.9536 225.147 32.9536Z",fill:"black"}),s.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M220.18 55.8399C220.18 55.8399 223.26 53.4567 227.08 54.9675",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M223.938 59.5836C223.938 59.5836 227.918 58.2004 230.658 60.4986",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_65_2990",children:s.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),ki=({title:e="There's nothing to show",description:t="No items to display"})=>s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[s.jsx(iE,{className:"mb-6"}),s.jsx("h4",{className:"mb-1 text-foreground",children:e}),s.jsx("p",{className:"text-purple-muted-300",children:t})]}),qf=({className:e,...t})=>s.jsx("nav",{role:"navigation","aria-label":"pagination",className:j("qodo qodo-pagination mx-auto flex w-full justify-center",e),...t});qf.displayName="Pagination";const Uf=c.forwardRef(({className:e,...t},r)=>s.jsx("ul",{ref:r,className:j("flex flex-row items-center gap-1",e),...t}));Uf.displayName="PaginationContent";const gr=c.forwardRef(({className:e,...t},r)=>s.jsx("li",{ref:r,className:j("",e),...t}));gr.displayName="PaginationItem";const Hf=({className:e,isActive:t,size:r="icon",...n})=>s.jsx("a",{"aria-current":t?"page":void 0,className:j(Ji({variant:t?"outline":"ghost",size:r}),e),...n});Hf.displayName="PaginationLink";const Kf=({className:e,...t})=>s.jsxs("span",{"aria-hidden":!0,className:j("flex h-9 w-9 items-center justify-center",e),...t,children:[s.jsx(Yi,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"More pages"})]});Kf.displayName="PaginationEllipsis";const lE=({table:e,isLoading:t=!1})=>{const r=e.getPageCount(),n=e.getState().pagination.pageIndex+1,[o,a]=S.useState(r);S.useEffect(()=>{r>=1&&a(r)},[r]);const i=S.useMemo(()=>{const m="text-purple-muted-300 dark:text-purple-muted-300",b="hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300",v="bg-purple-muted-600 text-purple-muted-300 dark:bg-purple-muted-600 dark:text-purple-muted-300",h="border-none flex items-center justify-center w-8 h-8",y="pointer-events-none opacity-50 cursor-not-allowed";return{previous:j(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",h,m,t&&y),next:j(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",h,m,t&&y),link:x=>j(h,t?"cursor-not-allowed":"cursor-pointer",m,!t&&b,x&&v,t&&y)}},[n,r,t]),l=S.useCallback(m=>{if(t)return;const b=m-1;e.setPagination(v=>({...v,pageIndex:b}))},[e,t]),d=S.useCallback(()=>{t||n<=1||l(n-1)},[n,l,t]),u=S.useCallback(()=>{t||r<=1||n>=r||l(n+1)},[r,n,l,t]),f=S.useCallback(m=>{if(m<=1)return[];if(m<=7)return Array.from({length:m},(v,h)=>h+1);const b=[];return n<=4?b.push(1,2,3,4,5,"ellipsis",m):n>=m-3?b.push(1,"ellipsis",m-4,m-3,m-2,m-1,m):b.push(1,"ellipsis",n-1,n,n+1,"ellipsis",m),b},[n]),p=S.useMemo(()=>{if(r<=1){const m=Math.max(r,o);return f(m)}return f(r)},[r,o,f]),g=S.useCallback((m,b)=>m==="ellipsis"?s.jsx(gr,{children:s.jsx(Kf,{})},`ellipsis-${b}`):s.jsx(gr,{className:"flex items-center justify-center",children:s.jsx(Hf,{onClick:()=>l(m),isActive:m===n,className:i.link(m===n),children:m})},`${m}-${b}-pagination-item`),[l,n,i]);return r<2&&o<2?s.jsx(s.Fragment,{}):s.jsx(qf,{className:"dark:bg-transparent",children:s.jsxs(Uf,{children:[s.jsx(gr,{children:s.jsx(Qe,{variant:"ghost",size:"icon",className:i.previous,onClick:d,children:s.jsx(yg,{})})}),p.map(g),s.jsx(gr,{children:s.jsx(Qe,{variant:"ghost",size:"icon",className:i.next,onClick:u,children:s.jsx(Ki,{onClick:u})})})]})})},cE=150,Ti=(e,t)=>{const r=t.columnDef.minSize,n=t.columnDef.maxSize;return{[`w-[${e}px]`]:e!==cE,[`min-w-[${r}px]`]:r!==void 0,[`max-w-[${n}px]`]:n!==void 0}},dE=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:a=!1,onRowClick:i,emptyStateTitle:l="There's nothing to show",emptyStateDescription:d="No items to display",noResultsTitle:u="No results",wrapperClassName:f,loadingRowsCount:p=8,activeRowId:g})=>{const m=e.getVisibleFlatColumns().length,b=e.options.manualPagination&&e.options.onPaginationChange,v=e.getRowModel().rows.length===0,h=e.getCoreRowModel().rows.length===0&&!o,y=!o&&(a||h||v),x="hover:bg-transparent cursor-default",C=()=>e.getHeaderGroups().map(N=>s.jsx(St,{children:N.headers.map(T=>s.jsx(zf,{className:j("text-[#A1A1AA]",Ti(T.getSize(),T.column)),children:T.isPlaceholder?void 0:Ni(T.column.columnDef.header,T.getContext())},T.id))},N.id)),E=()=>o?s.jsx(sE,{rowsCount:p,columnsCount:m}):a?s.jsx(St,{className:x,children:s.jsx(zt,{colSpan:m,children:(n==null?void 0:n())||s.jsx(ki,{title:l,description:d})})}):h?s.jsx(St,{className:x,children:s.jsx(zt,{colSpan:m,children:(t==null?void 0:t())||s.jsx(ki,{title:l,description:d})})}):v?s.jsx(St,{className:x,children:s.jsx(zt,{colSpan:m,children:(r==null?void 0:r())||s.jsx(aE,{title:u})})}):e.getRowModel().rows.map(N=>{var P;const T=(P=N.original)==null?void 0:P.id,A=N.getIsSelected()||!!g&&g===T;return s.jsx(St,{"data-state":A?"selected":void 0,onClick:()=>i==null?void 0:i(N.original),children:N.getVisibleCells().map(V=>s.jsx(zt,{className:j("text-[#FAFAFA] whitespace-nowrap",Ti(V.column.getSize(),V.column)),children:Ni(V.column.columnDef.cell,V.getContext())},V.id))},N.id)});return s.jsxs("div",{className:j("qodo qodo-table","flex flex-col h-full w-full"),children:[s.jsx("div",{className:"flex-1 min-h-0",children:s.jsxs(Bf,{wrapperClassName:f,className:j({"h-[100%]":y}),children:[s.jsx(Gf,{children:C()}),s.jsx(Wf,{children:E()})]})}),b&&s.jsx("footer",{className:"pt-4 pb-2 border-t border-purple-muted-600/20 flex-shrink-0",children:s.jsx(lE,{table:e,isLoading:o})})]})},Jo=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return s.jsx("div",{...r,children:n})},uE=e=>{const{variant:t,children:r}=e,n=r||t;return s.jsx(Yt,{...e,children:n})},fE=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),s.jsx(Jo,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return s.jsx(Jo,{...r,children:o})},pE=({column:e,children:t,tooltipContent:r})=>{const[n,o]=S.useState(!1),a=e.getCanSort();let i=t;return r&&(i=s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{children:t}),s.jsx(Fr,{contentProps:{className:"max-w-[200px]"},content:r,children:s.jsx(Mg,{className:"h-4 w-4"})})]})),a?s.jsxs("span",{className:"flex gap-1 items-center cursor-pointer",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),role:"button",children:[i,s.jsx(vg,{className:j("ml-2 h-4 w-4",{invisible:!n})})]}):s.jsx("span",{children:i})};var Qo=["Enter"," "],mE=["ArrowDown","PageUp","Home"],Yf=["ArrowUp","PageDown","End"],gE=[...mE,...Yf],vE={ltr:[...Qo,"ArrowRight"],rtl:[...Qo,"ArrowLeft"]},hE={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vr="Menu",[wr,xE,bE]=En(Vr),[It,Xf]=we(Vr,[bE,ut,gt]),Br=ut(),Zf=gt(),[Jf,xt]=It(Vr),[yE,Gr]=It(Vr),Qf=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,l=Br(t),[d,u]=c.useState(null),f=c.useRef(!1),p=De(a),g=Tt(o);return c.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),s.jsx(Nr,{...l,children:s.jsx(Jf,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:u,children:s.jsx(yE,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:g,modal:i,children:n})})})};Qf.displayName=Vr;var wE="MenuAnchor",Ka=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Br(r);return s.jsx(kr,{...o,...n,ref:t})});Ka.displayName=wE;var Ya="MenuPortal",[CE,ep]=It(Ya,{forceMount:void 0}),tp=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=xt(Ya,t);return s.jsx(CE,{scope:t,forceMount:r,children:s.jsx(Re,{present:r||a.open,children:s.jsx(rr,{asChild:!0,container:o,children:n})})})};tp.displayName=Ya;var _e="MenuContent",[SE,Xa]=It(_e),rp=c.forwardRef((e,t)=>{const r=ep(_e,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=xt(_e,e.__scopeMenu),i=Gr(_e,e.__scopeMenu);return s.jsx(wr.Provider,{scope:e.__scopeMenu,children:s.jsx(Re,{present:n||a.open,children:s.jsx(wr.Slot,{scope:e.__scopeMenu,children:i.modal?s.jsx(EE,{...o,ref:t}):s.jsx(RE,{...o,ref:t})})})})}),EE=c.forwardRef((e,t)=>{const r=xt(_e,e.__scopeMenu),n=c.useRef(null),o=se(t,n);return c.useEffect(()=>{const a=n.current;if(a)return _n(a)},[]),s.jsx(Za,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),RE=c.forwardRef((e,t)=>{const r=xt(_e,e.__scopeMenu);return s.jsx(Za,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),PE=it("MenuContent.ScrollLock"),Za=c.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:m,disableOutsideScroll:b,...v}=e,h=xt(_e,r),y=Gr(_e,r),x=Br(r),C=Zf(r),E=xE(r),[N,T]=c.useState(null),A=c.useRef(null),P=se(t,A,h.onContentChange),V=c.useRef(0),U=c.useRef(""),re=c.useRef(0),te=c.useRef(null),Q=c.useRef("right"),W=c.useRef(0),D=b?Tr:c.Fragment,I=b?{as:PE,allowPinchZoom:!0}:void 0,O=M=>{var _,K;const B=U.current+M,J=E().filter(ee=>!ee.disabled),k=document.activeElement,G=(_=J.find(ee=>ee.ref.current===k))==null?void 0:_.textValue,Z=J.map(ee=>ee.textValue),z=LE(Z,B,G),L=(K=J.find(ee=>ee.textValue===z))==null?void 0:K.ref.current;(function ee(oe){U.current=oe,window.clearTimeout(V.current),oe!==""&&(V.current=window.setTimeout(()=>ee(""),1e3))})(B),L&&setTimeout(()=>L.focus())};c.useEffect(()=>()=>window.clearTimeout(V.current),[]),Rn();const R=c.useCallback(M=>{var J,k;return Q.current===((J=te.current)==null?void 0:J.side)&&VE(M,(k=te.current)==null?void 0:k.area)},[]);return s.jsx(SE,{scope:r,searchRef:U,onItemEnter:c.useCallback(M=>{R(M)&&M.preventDefault()},[R]),onItemLeave:c.useCallback(M=>{var B;R(M)||((B=A.current)==null||B.focus(),T(null))},[R]),onTriggerLeave:c.useCallback(M=>{R(M)&&M.preventDefault()},[R]),pointerGraceTimerRef:re,onPointerGraceIntentChange:c.useCallback(M=>{te.current=M},[]),children:s.jsx(D,{...I,children:s.jsx(Pr,{asChild:!0,trapped:o,onMountAutoFocus:F(a,M=>{var B;M.preventDefault(),(B=A.current)==null||B.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:s.jsx(Qt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:m,children:s.jsx(Bn,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:N,onCurrentTabStopIdChange:T,onEntryFocus:F(d,M=>{y.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(Tn,{role:"menu","aria-orientation":"vertical","data-state":bp(h.open),"data-radix-menu-content":"",dir:y.dir,...x,...v,ref:P,style:{outline:"none",...v.style},onKeyDown:F(v.onKeyDown,M=>{const J=M.target.closest("[data-radix-menu-content]")===M.currentTarget,k=M.ctrlKey||M.altKey||M.metaKey,G=M.key.length===1;J&&(M.key==="Tab"&&M.preventDefault(),!k&&G&&O(M.key));const Z=A.current;if(M.target!==Z||!gE.includes(M.key))return;M.preventDefault();const L=E().filter(_=>!_.disabled).map(_=>_.ref.current);Yf.includes(M.key)&&L.reverse(),DE(L)}),onBlur:F(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(V.current),U.current="")}),onPointerMove:F(e.onPointerMove,Cr(M=>{const B=M.target,J=W.current!==M.clientX;if(M.currentTarget.contains(B)&&J){const k=M.clientX>W.current?"right":"left";Q.current=k,W.current=M.clientX}}))})})})})})})});rp.displayName=_e;var jE="MenuGroup",Ja=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(H.div,{role:"group",...n,ref:t})});Ja.displayName=jE;var NE="MenuLabel",np=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(H.div,{...n,ref:t})});np.displayName=NE;var xn="MenuItem",Ai="menu.itemSelect",Jn=c.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=c.useRef(null),i=Gr(xn,e.__scopeMenu),l=Xa(xn,e.__scopeMenu),d=se(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!r&&p){const g=new CustomEvent(Ai,{bubbles:!0,cancelable:!0});p.addEventListener(Ai,m=>n==null?void 0:n(m),{once:!0}),el(p,g),g.defaultPrevented?u.current=!1:i.onClose()}};return s.jsx(op,{...o,ref:d,disabled:r,onClick:F(e.onClick,f),onPointerDown:p=>{var g;(g=e.onPointerDown)==null||g.call(e,p),u.current=!0},onPointerUp:F(e.onPointerUp,p=>{var g;u.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:F(e.onKeyDown,p=>{const g=l.searchRef.current!=="";r||g&&p.key===" "||Qo.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Jn.displayName=xn;var op=c.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=Xa(xn,r),l=Zf(r),d=c.useRef(null),u=se(t,d),[f,p]=c.useState(!1),[g,m]=c.useState("");return c.useEffect(()=>{const b=d.current;b&&m((b.textContent??"").trim())},[a.children]),s.jsx(wr.ItemSlot,{scope:r,disabled:n,textValue:o??g,children:s.jsx(Gn,{asChild:!0,...l,focusable:!n,children:s.jsx(H.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:u,onPointerMove:F(e.onPointerMove,Cr(b=>{n?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,Cr(b=>i.onItemLeave(b))),onFocus:F(e.onFocus,()=>p(!0)),onBlur:F(e.onBlur,()=>p(!1))})})})}),kE="MenuCheckboxItem",ap=c.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return s.jsx(dp,{scope:e.__scopeMenu,checked:r,children:s.jsx(Jn,{role:"menuitemcheckbox","aria-checked":bn(r)?"mixed":r,...o,ref:t,"data-state":ts(r),onSelect:F(o.onSelect,()=>n==null?void 0:n(bn(r)?!0:!r),{checkForDefaultPrevented:!1})})})});ap.displayName=kE;var sp="MenuRadioGroup",[TE,AE]=It(sp,{value:void 0,onValueChange:()=>{}}),ip=c.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=De(n);return s.jsx(TE,{scope:e.__scopeMenu,value:r,onValueChange:a,children:s.jsx(Ja,{...o,ref:t})})});ip.displayName=sp;var lp="MenuRadioItem",cp=c.forwardRef((e,t)=>{const{value:r,...n}=e,o=AE(lp,e.__scopeMenu),a=r===o.value;return s.jsx(dp,{scope:e.__scopeMenu,checked:a,children:s.jsx(Jn,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":ts(a),onSelect:F(n.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,r)},{checkForDefaultPrevented:!1})})})});cp.displayName=lp;var Qa="MenuItemIndicator",[dp,_E]=It(Qa,{checked:!1}),up=c.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=_E(Qa,r);return s.jsx(Re,{present:n||bn(a.checked)||a.checked===!0,children:s.jsx(H.span,{...o,ref:t,"data-state":ts(a.checked)})})});up.displayName=Qa;var IE="MenuSeparator",fp=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(H.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});fp.displayName=IE;var ME="MenuArrow",pp=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Br(r);return s.jsx(An,{...o,...n,ref:t})});pp.displayName=ME;var es="MenuSub",[OE,mp]=It(es),gp=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=xt(es,t),i=Br(t),[l,d]=c.useState(null),[u,f]=c.useState(null),p=De(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),s.jsx(Nr,{...i,children:s.jsx(Jf,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:f,children:s.jsx(OE,{scope:t,contentId:me(),triggerId:me(),trigger:l,onTriggerChange:d,children:r})})})};gp.displayName=es;var vr="MenuSubTrigger",vp=c.forwardRef((e,t)=>{const r=xt(vr,e.__scopeMenu),n=Gr(vr,e.__scopeMenu),o=mp(vr,e.__scopeMenu),a=Xa(vr,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),d(null)}},[l,d]),s.jsx(Ka,{asChild:!0,...u,children:s.jsx(op,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":bp(r.open),...e,ref:et(t,o.onTriggerChange),onClick:p=>{var g;(g=e.onClick)==null||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,Cr(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:F(e.onPointerLeave,Cr(p=>{var m,b;f();const g=(m=r.content)==null?void 0:m.getBoundingClientRect();if(g){const v=(b=r.content)==null?void 0:b.dataset.side,h=v==="right",y=h?-5:5,x=g[h?"left":"right"],C=g[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x,y:g.top},{x:C,y:g.top},{x:C,y:g.bottom},{x,y:g.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,p=>{var m;const g=a.searchRef.current!=="";e.disabled||g&&p.key===" "||vE[n.dir].includes(p.key)&&(r.onOpenChange(!0),(m=r.content)==null||m.focus(),p.preventDefault())})})})});vp.displayName=vr;var hp="MenuSubContent",xp=c.forwardRef((e,t)=>{const r=ep(_e,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=xt(_e,e.__scopeMenu),i=Gr(_e,e.__scopeMenu),l=mp(hp,e.__scopeMenu),d=c.useRef(null),u=se(t,d);return s.jsx(wr.Provider,{scope:e.__scopeMenu,children:s.jsx(Re,{present:n||a.open,children:s.jsx(wr.Slot,{scope:e.__scopeMenu,children:s.jsx(Za,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:F(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:F(e.onKeyDown,f=>{var m;const p=f.currentTarget.contains(f.target),g=hE[i.dir].includes(f.key);p&&g&&(a.onOpenChange(!1),(m=l.trigger)==null||m.focus(),f.preventDefault())})})})})})});xp.displayName=hp;function bp(e){return e?"open":"closed"}function bn(e){return e==="indeterminate"}function ts(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}function DE(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function $E(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function LE(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=$E(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==r));const d=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function FE(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],d=t[i],u=l.x,f=l.y,p=d.x,g=d.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function VE(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return FE(r,t)}function Cr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var BE=Qf,GE=Ka,WE=tp,zE=rp,qE=Ja,UE=np,HE=Jn,KE=ap,YE=ip,XE=cp,ZE=up,JE=fp,QE=pp,eR=gp,tR=vp,rR=xp,Qn="DropdownMenu",[nR,hP]=we(Qn,[Xf]),Ce=Xf(),[oR,yp]=nR(Qn),wp=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,d=Ce(t),u=c.useRef(null),[f,p]=ye({prop:o,defaultProp:a??!1,onChange:i,caller:Qn});return s.jsx(oR,{scope:t,triggerId:me(),triggerRef:u,contentId:me(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(g=>!g),[p]),modal:l,children:s.jsx(BE,{...d,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};wp.displayName=Qn;var Cp="DropdownMenuTrigger",Sp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=yp(Cp,r),i=Ce(r);return s.jsx(GE,{asChild:!0,...i,children:s.jsx(H.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":n?"":void 0,disabled:n,...o,ref:et(t,a.triggerRef),onPointerDown:F(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:F(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Sp.displayName=Cp;var aR="DropdownMenuPortal",Ep=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Ce(t);return s.jsx(WE,{...n,...r})};Ep.displayName=aR;var Rp="DropdownMenuContent",Pp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=yp(Rp,r),a=Ce(r),i=c.useRef(!1);return s.jsx(zE,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,l=>{var d;i.current||(d=o.triggerRef.current)==null||d.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:F(e.onInteractOutside,l=>{const d=l.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pp.displayName=Rp;var sR="DropdownMenuGroup",jp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(qE,{...o,...n,ref:t})});jp.displayName=sR;var iR="DropdownMenuLabel",Np=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(UE,{...o,...n,ref:t})});Np.displayName=iR;var lR="DropdownMenuItem",kp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(HE,{...o,...n,ref:t})});kp.displayName=lR;var cR="DropdownMenuCheckboxItem",Tp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(KE,{...o,...n,ref:t})});Tp.displayName=cR;var dR="DropdownMenuRadioGroup",Ap=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(YE,{...o,...n,ref:t})});Ap.displayName=dR;var uR="DropdownMenuRadioItem",_p=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(XE,{...o,...n,ref:t})});_p.displayName=uR;var fR="DropdownMenuItemIndicator",Ip=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(ZE,{...o,...n,ref:t})});Ip.displayName=fR;var pR="DropdownMenuSeparator",Mp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(JE,{...o,...n,ref:t})});Mp.displayName=pR;var mR="DropdownMenuArrow",gR=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(QE,{...o,...n,ref:t})});gR.displayName=mR;var vR=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=Ce(t),[l,d]=ye({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return s.jsx(eR,{...i,open:l,onOpenChange:d,children:r})},hR="DropdownMenuSubTrigger",Op=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(tR,{...o,...n,ref:t})});Op.displayName=hR;var xR="DropdownMenuSubContent",Dp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Ce(r);return s.jsx(rR,{...o,...n,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)"}})});Dp.displayName=xR;var bR=wp,yR=Sp,$p=Ep,Lp=Pp,wR=jp,Fp=Np,Vp=kp,Bp=Tp,CR=Ap,Gp=_p,Wp=Ip,zp=Mp,SR=vR,qp=Op,Up=Dp;const ER=bR,RR=yR,PR=wR,jR=$p,NR=SR,kR=CR,Hp=c.forwardRef(({className:e,inset:t,children:r,...n},o)=>s.jsxs(qp,{ref:o,className:j("qodo qodo-dropdown-menu-sub-trigger flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:text-[var(--text-interactive-neutral-hover)] hover:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,s.jsx(Ki,{className:"ml-auto"})]}));Hp.displayName=qp.displayName;const Kp=c.forwardRef(({className:e,...t},r)=>s.jsx(Up,{ref:r,className:j("z-50 min-w-[8rem] overflow-hidden cursor-pointer rounded-sm border shadow-lg 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","text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1",e),...t}));Kp.displayName=Up.displayName;const Yp=c.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx($p,{children:s.jsx(Lp,{ref:n,sideOffset:t,className:j("qodo qodo-dropdown-menu-content z-50 min-w-[8rem] overflow-hidden rounded-sm border text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1 ","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 [&_svg]:text-inherit dark:[&_svg]:text-inherit",e),...r})}));Yp.displayName=Lp.displayName;const rs=c.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(Vp,{ref:n,className:j("w-full qodo qodo-dropdown-menu-item relative flex select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] cursor-pointer data-[disabled]:cursor-default",t&&"pl-8",e),...r}));rs.displayName=Vp.displayName;const Xp=c.forwardRef(({className:e,children:t,checked:r,...n},o)=>s.jsxs(Bp,{ref:o,className:j("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:cursor-default",e),checked:r,...n,children:[s.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(Wp,{children:s.jsx(Er,{className:"h-4 w-4"})})}),t]}));Xp.displayName=Bp.displayName;const Zp=c.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(Gp,{ref:n,className:j("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:cursor-default",e),...r,children:[s.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(Wp,{children:s.jsx(Er,{className:"h-[18px] w-[18px]"})})}),t]}));Zp.displayName=Gp.displayName;const ns=c.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(Fp,{ref:n,className:j("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ns.displayName=Fp.displayName;const bt=c.forwardRef(({className:e,...t},r)=>s.jsx(zp,{ref:r,className:j("-mx-1 my-1 h-px bg-purple-muted-500",e),...t}));bt.displayName=zp.displayName;const Jp=({className:e,...t})=>s.jsx("span",{className:j("ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",e),...t});Jp.displayName="DropdownMenuEndAndornment";const TR=({radioItem:e})=>s.jsxs(Zp,{className:"m-0 rounded-none gap-2 pl-3 pr-9 py-1.5",value:e.value,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),AR=({radioGroupItem:e})=>s.jsxs(s.Fragment,{children:[s.jsx(kR,{value:e.value,onValueChange:e.onValueChange,children:e.radioItems.map((t,r)=>s.jsx(TR,{radioItem:t},`item-${r}`))}),e.separator&&s.jsx(bt,{})]}),_R=({actionItem:e})=>s.jsxs("div",{className:"w-full [&>button]:w-full",children:[s.jsx(Fr,{content:e.tooltip,providerProps:{delayDuration:200},children:s.jsx(rs,{className:"m-0 rounded-xs py-1.5 px-3 outline-none",disabled:e.disabled||e.loading,onClick:e.onClick,onSelect:e.onSelect,children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.loading&&s.jsx(Xi,{className:"h-4 w-4 motion-preset-spin motion-duration-1000"}),!e.loading&&e.icon,e.label,e.endAndornment&&s.jsx(Jp,{children:e.endAndornment})]})})}),e.separator&&s.jsx(bt,{})]}),IR=({checkboxItem:e})=>s.jsxs(Xp,{className:"gap-2 m-0 rounded-none py-1.5 pl-3 pr-9 outline-none",checked:e.checked,onCheckedChange:e.onSelect,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),MR=({checkboxGroupItem:e})=>s.jsxs(s.Fragment,{children:[s.jsx(PR,{children:e.checkboxes.map((t,r)=>s.jsx(IR,{checkboxItem:t},`item-${r}`))}),e.separator&&s.jsx(bt,{})]}),OR=({subMenuItem:e})=>s.jsxs(s.Fragment,{children:[s.jsxs(NR,{children:[s.jsxs(Hp,{disabled:e.disabled,className:"m-0 rounded-none py-1.5 pl-3 pr-1",children:[e.icon,e.label]}),s.jsx(jR,{children:s.jsx(Kp,{children:e.subItems.map((t,r)=>Qp(t,r))})})]}),e.separator&&s.jsx(bt,{})]}),DR=({menuItem:e})=>s.jsx(ns,{className:"text-purple-muted-300 px-3 font-normal",children:e.label}),$R=()=>s.jsx(bt,{}),Qp=(e,t)=>{switch(e.type){case"ActionMenuItem":return s.jsx(_R,{actionItem:e},`item-${t}`);case"CheckboxGroup":return s.jsx(MR,{checkboxGroupItem:e},`item-${t}`);case"RadioGroup":return s.jsx(AR,{radioGroupItem:e},`item-${t}`);case"SubMenuItem":return s.jsx(OR,{subMenuItem:e},`item-${t}`);case"MenuLabel":return s.jsx(DR,{menuItem:e},`item-${t}`);case"Separator":return s.jsx($R,{},`item-${t}`);default:return null}},LR={s:"min-w-[140px]",m:"min-w-[249px]",l:"min-w-[257px]"},FR=({header:e})=>s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-purple-muted-300",children:e.title}),s.jsx("span",{children:e.label})]}),VR=({header:e})=>e?s.jsxs(s.Fragment,{children:[s.jsx(ns,{className:"text-purple-100 font-normal px-3",children:e.type==="MenuTitleHeader"&&s.jsx(FR,{header:e})}),s.jsx(bt,{className:"bg-purple-muted-500"})]}):null,BR=({footer:e})=>e?s.jsxs(s.Fragment,{children:[s.jsx(bt,{className:"bg-purple-muted-500"}),s.jsxs(rs,{onClick:e.action,disabled:e.disabled,className:"cursor-pointer m-0 rounded-none py-1.5 px-3 text-purple-300 focus:text-purple-300 focus:bg-transparent",children:[e.icon,e.label]})]}):null,em=({menuItems:e,header:t,footer:r,triggerElement:n,size:o="s",asChild:a=!1,side:i="bottom",modal:l=!1,disabled:d=!1,className:u=""})=>{const f=Ui(LR,{[o]:o,className:u},!1);return s.jsx("div",{className:j("qodo qodo-dropdown"),children:s.jsxs(ER,{modal:l,children:[s.jsx(RR,{asChild:a,className:"select-none outline-none flex items-center",disabled:d,children:n}),s.jsxs(Yp,{side:i,align:"end",className:f,children:[s.jsx(VR,{header:t}),e.filter(p=>!p.isHidden).map((p,g)=>Qp(p,g)),s.jsx(BR,{footer:r})]})]})})},GR=({triggerAriaLabel:e="Open actions menu",className:t,...r})=>s.jsx(Qe,{variant:"ghost",size:"icon","aria-label":e,className:j("flex items-center justify-center h-4 w-4",t),...r,children:s.jsx(Yi,{className:"h-4 w-4"})}),WR=({menuItems:e=[],triggerElement:t=GR,triggerProps:r={},className:n,size:o="s",asChild:a=!1,side:i="bottom",modal:l=!1})=>s.jsx("div",{className:n,onClick:d=>d.stopPropagation(),children:s.jsx(em,{triggerElement:s.jsx(t,{className:j("flex items-center justify-center",r==null?void 0:r.className),...r}),menuItems:e,size:o,asChild:a,side:i,modal:l,disabled:r==null?void 0:r.disabled})}),zR={"data-lpignore":"true","data-1p-ignore":"true","data-bitwarden-watching":"false","data-form-type":"other","data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",spellCheck:!1,autoComplete:"off"},_i={SMALL:"small",LARGE:"large"},qR=({containerClassName:e,className:t,searchSize:r=_i.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...a})=>{const i=r===_i.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",l=j("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-muted-600":"text-purple-muted-400"),d=j("text-purple-muted-200 dark:border-purple-muted-600 dark:text-purple-muted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-muted-400 pl-9",{"pr-9":!o});return s.jsxs("div",{className:j("qodo qodo-search-input","relative",e),children:[s.jsx(Zi,{className:j(l,"left-3")}),s.jsx(Rr,{className:j(i,d,t),disabled:n,...a,...zR}),!o&&s.jsx(Dg,{className:j(l,"right-3")})]})},UR=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,HR=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),KR=(e,t)=>{var n;if(!(t!=null&&t.length))return!0;const r=(n=e.split("@")[1])==null?void 0:n.toLowerCase();return t.some(o=>r===o.toLowerCase())},YR=(e,t)=>e.map(r=>{const n=UR.test(r),o=n?KR(r,t==null?void 0:t.domains):void 0;return{email:r,isValid:n&&o!==!1,isDomainValid:o}}),XR=(e,t,r)=>{const n=YR(e,r),o=[...t];for(const a of n)o.some(l=>l.email===a.email)||o.push(a);return o},ZR=({onChange:e=()=>{},organization:t})=>{const[r,n]=S.useState([]),o=S.useCallback(u=>{e(u)},[e]),a=S.useCallback(u=>{n(u),o(u)},[o]),i=S.useCallback(u=>{const f=HR(u);if(f.length===0)return;const p=XR(f,r,t);a(p)},[r,a,t]),l=S.useCallback(()=>{a([])},[a]),d=S.useCallback(u=>{const f=r.filter(p=>p.email!==u);a(f)},[r,a]);return{emails:r,setEmails:a,addTokens:i,removeToken:d,clearAll:l,notify:o}},JR=e=>{const{draft:t,setDraft:r,addTokens:n,allSelected:o,setAllSelected:a,clearAll:i,emails:l,setEmails:d,notify:u}=e;return f=>{if((f.key==="a"||f.key==="A")&&(f.metaKey||f.ctrlKey)){f.preventDefault(),a(!0);return}if(o&&(f.key==="Backspace"||f.key==="Delete")){f.preventDefault(),a(!1),i(),r("");return}if(o&&f.key==="Escape"){f.preventDefault(),a(!1);return}if(o&&f.key.length===1&&!f.metaKey&&!f.ctrlKey&&!f.altKey&&(a(!1),i()),f.key==="Backspace"&&t.length===0&&l.length>0){f.preventDefault();const p=l[l.length-1],g=l.slice(0,-1);d(g),r(p.email),u(g);return}if(f.key==="Enter"){f.preventDefault(),t.trim()&&(n(t),r(""));return}[",",";"," "].includes(f.key)&&(f.preventDefault(),t.trim()&&(n(t),r("")))}},QR=({email:e,isValid:t,onRemove:r})=>{const n=o=>{o.stopPropagation(),r(e)};return s.jsxs(Yt,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[s.jsx("span",{className:"max-w-[200px] truncate",children:e}),s.jsx("button",{onClick:n,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:s.jsx(Sn,{size:12})})]})},eP=({hasContent:e,onClearAll:t,emails:r,invalidEmailError:n,invalidDomainError:o})=>{const{formatErrors:a,domainErrors:i,totalInvalidCount:l}=S.useMemo(()=>{const m=r.filter(h=>!h.isValid),b=m.filter(h=>!h.email.includes("@")||h.isDomainValid===void 0),v=m.filter(h=>h.isDomainValid===!1);return{formatErrors:b,domainErrors:v,totalInvalidCount:m.length}},[r]),d=m=>{m.preventDefault(),m.stopPropagation()},u=m=>{d(m),t()},f=m=>{d(m)},p=m=>{m.stopPropagation()},g=(m,b)=>b.length===0?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"space-y-1 text-purple-muted-200",children:[s.jsxs("span",{className:"font-medium border-b border-purple-muted-200",children:[m,":"]}),b.map((v,h)=>s.jsx("p",{className:"break-all",children:v.email},`${m}-${h}-${v.email}`))]});return s.jsxs(s.Fragment,{children:[e&&s.jsx("button",{type:"button",onClick:u,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:s.jsx(Ug,{className:"h-4 w-4"})}),l>0&&s.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:s.jsx(Fr,{triggerProps:{asChild:!0},content:s.jsx("div",{onClick:f,onWheel:p,className:"max-w-[min(90vw,32rem)] max-h-[min(60vh,20rem)] p-3 rounded-md border dark:border-red-800 shadow-lg dark:bg-purple-muted-800 dark:text-purple-muted-100",children:s.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[g(n,a),g(o,i)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:s.jsx("button",{type:"button","aria-label":`${l} invalid emails`,className:"text-red-400 hover:text-red-300",children:s.jsx(Kg,{className:"size-[18px]"})})})})]})},tP=({onChange:e,disabled:t=!1,inviteMembersPlaceholder:r=({domain:f})=>`Enter email addresses (e.g., user@${f})`,inviteMembersDisabledTooltip:n="You don't have permission to modify email addresses",organization:o,inputClassName:a,chipClassName:i,wrapperClassName:l,invalidEmailError:d="Invalid email",invalidDomainError:u="Email domain is not allowed"})=>{const f=S.useRef(null),p=S.useRef(null),[g,m]=S.useState(""),[b,v]=S.useState(!1),{emails:h,setEmails:y,addTokens:x,removeToken:C,clearAll:E,notify:N}=ZR({onChange:e,organization:o}),T=JR({draft:g,setDraft:m,addTokens:x,allSelected:b,setAllSelected:v,clearAll:E,emails:h,setEmails:y,notify:N}),A=()=>{var J;const B=((J=o==null?void 0:o.domains)==null?void 0:J[0])||"example.com";return r({domain:B})},P=S.useCallback(B=>{m(B.target.value)},[]),V=S.useCallback(()=>{g.trim()&&(x(g),m("")),v(!1)},[g,x]),U=S.useCallback(B=>{const J=B.clipboardData.getData("text");J&&(B.preventDefault(),x(J),m(""))},[x]),re=S.useCallback(()=>{var B;(B=p.current)==null||B.focus()},[p]),te=S.useCallback(()=>{v(!1)},[]),Q=S.useCallback(B=>{var k;const J=B.relatedTarget;J&&((k=f.current)!=null&&k.contains(J))||g.trim()&&(x(g),m(""))},[g,x]),W=h.length>0,D=!W&&g.length===0,I=W||g.length>0,O=j("bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",W?"flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar":"flex-1 !min-w-full overflow-hidden",{"opacity-50 cursor-not-allowed":t},a),R=j("inline-flex items-center gap-1 no-scrollbar",W?"w-max":"w-full",i),M=j("qodo qodo-email-chips-input","relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-muted-500 dark:bg-purple-muted-800 focus-within:ring-purple-muted-400",l);return s.jsx(Fr,{triggerProps:{asChild:!0},content:t?n:void 0,children:s.jsxs("div",{ref:f,className:M,onClick:re,onFocus:te,onBlur:Q,children:[s.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400",children:s.jsx(Fg,{className:"w-4 h-4"})}),s.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:s.jsxs("div",{className:R,children:[h.map((B,J)=>s.jsx(QR,{email:B.email,isValid:B.isValid,onRemove:C},`email-${J}-${B.email}`)),s.jsx("input",{ref:p,value:g,onChange:P,onKeyDown:T,onBlur:V,onPaste:U,className:O,placeholder:D?A():"",disabled:t})]})}),s.jsx(eP,{hasContent:I,onClearAll:E,emails:h,invalidEmailError:d,invalidDomainError:u})]})})},Qr={DEFAULT:"default",PRIMARY:"primary",ACTIVE:"active"};function rP({title:e,description:t,caption:r,additionalContent:n,titleClassName:o,descriptionClassName:a,variant:i=Qr.DEFAULT,className:l,icon:d,iconClassName:u}){const f=j("px-6 py-4 gap-1 flex flex-row items-center gap-4","border-[var(--border-panel-neutral)] rounded-md fill-[var(--fill-panel-neutral)]",{"px-4":!!d},l),p=j("p-0 m-0 text-xs","text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",o),g=j("w-8 h-8 flex items-center justify-center","bg-purple-muted-600 rounded-full p-2.5",u),m=j("text-xl font-medium p-0 m-0 leading-4",{"text-muted-foreground dark:text-white":i===Qr.DEFAULT,"text-purple-300 dark:text-purple-300":i===Qr.PRIMARY,"text-[var(--color-text-tag-positive-idle)] dark:text-[var(--color-text-tag-positive-idle)]":i===Qr.ACTIVE},a);return s.jsxs(gd,{className:f,children:[d&&s.jsx("div",{className:g,children:d}),s.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[s.jsx(vd,{className:"m-0 p-0 gap-0",children:s.jsx(hd,{className:p,children:e})}),s.jsxs(bd,{className:"m-0 p-0 flex flex-col gap-2",children:[t&&s.jsx(xd,{className:m,children:t}),r&&s.jsx("span",{className:"text-xs text-foreground dark:text-foreground tracking-[0.12px]",children:r}),n]})]})]})}exports.Accordion=Sw;exports.AccordionContent=Pw;exports.AccordionItem=Ew;exports.AccordionTrigger=Rw;exports.ActionsCell=WR;exports.Badge=Yt;exports.BadgeCell=uE;exports.BaseCell=Jo;exports.Button=Qe;exports.Card=gd;exports.CardAction=by;exports.CardContent=bd;exports.CardDescription=xd;exports.CardFooter=yy;exports.CardHeader=vd;exports.CardTitle=hd;exports.ClassHelper=Ui;exports.Combobox=Ca;exports.Dialog=Yb;exports.DialogClose=Zb;exports.DialogContent=Jb;exports.DialogDescription=ry;exports.DialogFooter=ey;exports.DialogHeader=Qb;exports.DialogOverlay=Jc;exports.DialogPortal=Zc;exports.DialogTitle=ty;exports.DialogTrigger=Xb;exports.Dropdown=em;exports.EmailChipsInput=tP;exports.Form=Ie;exports.FormProvider=Ru;exports.Input=Rr;exports.InsightCard=rP;exports.NumberCell=fE;exports.Progress=ky;exports.RadioGroup=Fa;exports.RadioGroupItem=Va;exports.SearchInput=qR;exports.Select=ib;exports.SelectContent=xc;exports.SelectGroup=lb;exports.SelectItem=yc;exports.SelectLabel=bc;exports.SelectScrollDownButton=pa;exports.SelectScrollUpButton=fa;exports.SelectSeparator=wc;exports.SelectTrigger=hc;exports.SelectValue=cb;exports.Skeleton=Ed;exports.SortableHeaderCell=pE;exports.Steps=QS;exports.Switch=Dy;exports.Table=dE;exports.Tabs=Iw;exports.TabsContent=Dw;exports.TabsList=Mw;exports.TabsTrigger=Ow;exports.TagsInput=lf;exports.Toggle=Ly;exports.ToggleGroup=tw;exports.ToggleGroupItem=rw;exports.Tooltip=Fr;exports.borderRadius=Rm;exports.cn=j;exports.colors=Sm;exports.spacing=Em;exports.typography=Pm;exports.useFormContext=Pu;
214
214
  //# sourceMappingURL=index.cjs.js.map