@datawire-ai/busyfile-design-library 1.24.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(F,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(F=typeof globalThis<"u"?globalThis:F||self,te(F.BusyFileDesignSystem={},F.React,F.ReactDOM))})(this,function(F,te,Rn){"use strict";function Nn(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 l=Nn(te),Pt=Nn(Rn);var pr={exports:{}},ut={};/**
1
+ (function(F,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(F=typeof globalThis<"u"?globalThis:F||self,te(F.BusyFileDesignSystem={},F.React,F.ReactDOM))})(this,function(F,te,Tn){"use strict";function jn(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 l=jn(te),At=jn(Tn);var hr={exports:{}},dt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.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 _n;function Ti(){if(_n)return ut;_n=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return ut.Fragment=t,ut.jsx=r,ut.jsxs=r,ut}var dt={};/**
9
+ */var In;function Hi(){if(In)return dt;In=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return dt.Fragment=t,dt.jsx=r,dt.jsxs=r,dt}var ft={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,166 +14,166 @@
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 Pn;function ji(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===K?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList";case H:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case v:return"Portal";case w:return(E.displayName||"Context")+".Provider";case b:return(E._context.displayName||"Context")+".Consumer";case C:var V=E.render;return E=E.displayName,E||(E=V.displayName||V.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case R:return V=E.displayName||null,V!==null?V:e(E.type)||"Memo";case N:V=E._payload,E=E._init;try{return e(E(V))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var V=!1}catch{V=!0}if(V){V=console;var S=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return S.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(E)}}function n(E){if(E===m)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===N)return"<...>";try{var V=e(E);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function o(){var E=X.A;return E===null?null:E.getOwner()}function a(){return Error("react-stack-top-frame")}function s(E){if(Q.call(E,"key")){var V=Object.getOwnPropertyDescriptor(E,"key").get;if(V&&V.isReactWarning)return!1}return E.key!==void 0}function i(E,V){function S(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}S.isReactWarning=!0,Object.defineProperty(E,"key",{get:S,configurable:!0})}function c(){var E=e(this.type);return L[E]||(L[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function d(E,V,S,T,D,j,Y,P){return S=j.ref,E={$$typeof:h,type:E,key:V,props:j,_owner:D},(S!==void 0?S:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,V,S,T,D,j,Y,P){var $=V.children;if($!==void 0)if(T)if(ee($)){for(T=0;T<$.length;T++)p($[T]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p($);if(Q.call(V,"key")){$=e(E);var U=Object.keys(V).filter(function(ne){return ne!=="key"});T=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",re[$+T]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var On;function Gi(){return On||(On=1,process.env.NODE_ENV!=="production"&&function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===K?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case m:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case E:return"Suspense";case A:return"SuspenseList";case H:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case v:return"Portal";case w:return(k.displayName||"Context")+".Provider";case y:return(k._context.displayName||"Context")+".Consumer";case C:var V=k.render;return k=k.displayName,k||(k=V.displayName||V.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case R:return V=k.displayName||null,V!==null?V:e(k.type)||"Memo";case _:V=k._payload,k=k._init;try{return e(k(V))}catch{}}return null}function t(k){return""+k}function r(k){try{t(k);var V=!1}catch{V=!0}if(V){V=console;var S=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return S.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(k)}}function n(k){if(k===m)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===_)return"<...>";try{var V=e(k);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function o(){var k=X.A;return k===null?null:k.getOwner()}function a(){return Error("react-stack-top-frame")}function s(k){if(Q.call(k,"key")){var V=Object.getOwnPropertyDescriptor(k,"key").get;if(V&&V.isReactWarning)return!1}return k.key!==void 0}function i(k,V){function S(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}S.isReactWarning=!0,Object.defineProperty(k,"key",{get:S,configurable:!0})}function c(){var k=e(this.type);return L[k]||(L[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function d(k,V,S,T,D,j,Y,P){return S=j.ref,k={$$typeof:h,type:k,key:V,props:j,_owner:D},(S!==void 0?S:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:c}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function p(k,V,S,T,D,j,Y,P){var $=V.children;if($!==void 0)if(T)if(ee($)){for(T=0;T<$.length;T++)f($[T]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f($);if(Q.call(V,"key")){$=e(k);var U=Object.keys(V).filter(function(ne){return ne!=="key"});T=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",re[$+T]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,T,$,U,$),re[$+T]=!0)}if($=null,S!==void 0&&(r(S),$=""+S),s(V)&&(r(V.key),$=""+V.key),"key"in V){S={};for(var Z in V)Z!=="key"&&(S[Z]=V[Z])}else S=V;return $&&i(S,typeof E=="function"?E.displayName||E.name||"Unknown":E),d(E,$,j,D,o(),S,Y,P)}function p(E){typeof E=="object"&&E!==null&&E.$$typeof===h&&E._store&&(E._store.validated=1)}var g=te,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,B=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(E){return E()}};var q,L={},G=g["react-stack-bottom-frame"].bind(g,a)(),_=B(n(a)),re={};dt.Fragment=m,dt.jsx=function(E,V,S,T,D){var j=1e4>X.recentlyCreatedOwnerStacks++;return f(E,V,S,!1,T,D,j?Error("react-stack-top-frame"):G,j?B(n(E)):_)},dt.jsxs=function(E,V,S,T,D){var j=1e4>X.recentlyCreatedOwnerStacks++;return f(E,V,S,!0,T,D,j?Error("react-stack-top-frame"):G,j?B(n(E)):_)}}()),dt}process.env.NODE_ENV==="production"?pr.exports=Ti():pr.exports=ji();var u=pr.exports;function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fe(...e){return t=>{let r=!1;const n=e.map(o=>{const a=An(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():An(e[o],null)}}}}function ae(...e){return l.useCallback(Fe(...e),e)}function Ve(e){const t=Oi(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(Mi);if(c){const d=c.props.children,f=i.map(p=>p===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var At=Ve("Slot");function Oi(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Li(o),i=Di(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Fe(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tn=Symbol("radix.slottable");function Ii(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function Mi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function Di(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]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Li(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 jn(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=jn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function On(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=jn(e))&&(n&&(n+=" "),n+=t);return n}const mr="-",$i=e=>{const t=Vi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(mr);return i[0]===""&&i.length!==1&&i.shift(),In(i,t)||Fi(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},In=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?In(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(mr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Mn=/^\[(.+)\]$/,Fi=e=>{if(Mn.test(e)){const t=Mn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Vi=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)hr(r[o],n,o,t);return n},hr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Dn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(zi(o)){hr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{hr(s,Dn(t,a),r,n)})})},Dn=(e,t)=>{let r=e;return t.split(mr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},zi=e=>e.isThemeGetter,Bi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},gr="!",vr=":",Wi=vr.length,Hi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===vr){a.push(o.slice(c,v)),c=v+Wi;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=Gi(f),g=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+vr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Gi=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Ui=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(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ki=e=>({cache:Bi(e.cacheSize),parseClassName:Hi(e),sortModifiers:Ui(e),...$i(e)}),Yi=/\s+/,qi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Yi);let c="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=n(x?v.substring(0,m):v);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=n(v),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+gr:b,C=w+y;if(s.includes(C))continue;s.push(C);const k=o(y,x);for(let A=0;A<k.length;++A){const R=k[A];s.push(w+R)}c=f+(c.length>0?" "+c:c)}return c};function Xi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ln(t))&&(n&&(n+=" "),n+=r);return n}const Ln=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ln(e[n]))&&(r&&(r+=" "),r+=t);return r};function Zi(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((f,p)=>p(f),e());return r=Ki(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const f=qi(c,r);return o(c,f),f}return function(){return a(Xi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ji=/^\d+\/\d+$/,Qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,el=/\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$/,tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Ji.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),xr=e=>e.endsWith("%")&&J(e.slice(0,-1)),ke=e=>Qi.test(e),ol=()=>!0,al=e=>el.test(e)&&!tl.test(e),Vn=()=>!1,sl=e=>rl.test(e),il=e=>nl.test(e),ll=e=>!I(e)&&!M(e),cl=e=>Ye(e,Gn,Vn),I=e=>$n.test(e),ze=e=>Ye(e,Un,al),br=e=>Ye(e,ml,J),zn=e=>Ye(e,Wn,Vn),ul=e=>Ye(e,Hn,il),Tt=e=>Ye(e,Kn,sl),M=e=>Fn.test(e),ft=e=>qe(e,Un),dl=e=>qe(e,hl),Bn=e=>qe(e,Wn),fl=e=>qe(e,Gn),pl=e=>qe(e,Hn),jt=e=>qe(e,Kn,!0),Ye=(e,t,r)=>{const n=$n.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},qe=(e,t,r=!1)=>{const n=Fn.exec(e);return n?n[1]?t(n[1]):r:!1},Wn=e=>e==="position"||e==="percentage",Hn=e=>e==="image"||e==="url",Gn=e=>e==="length"||e==="size"||e==="bg-size",Un=e=>e==="length",ml=e=>e==="number",hl=e=>e==="family-name",Kn=e=>e==="shadow",gl=Zi(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),x=se("aspect"),y=se("ease"),b=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),M,I],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],N=()=>[M,I,c],H=()=>[Ke,"full","auto",...N()],K=()=>[Ae,"none","subgrid",M,I],X=()=>["auto",{span:["full",Ae,M,I]},Ae,M,I],Q=()=>[Ae,"auto",M,I],ee=()=>["auto","min","max","fr",M,I],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...N()],G=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],_=()=>[e,M,I],re=()=>[...C(),Bn,zn,{position:[M,I]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",fl,cl,{size:[M,I]}],S=()=>[xr,ft,ze],T=()=>["","none","full",d,M,I],D=()=>["",J,ft,ze],j=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,xr,Bn,zn],$=()=>["","none",v,M,I],U=()=>["none",J,M,I],Z=()=>["none",J,M,I],ne=()=>[J,M,I],oe=()=>[Ke,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[ol],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",J],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,I,M,x]}],container:["container"],columns:[{columns:[J,I,M,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:k()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",M,I]}],basis:[{basis:[Ke,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ke,"auto","initial","none",I]}],grow:[{grow:["",J,M,I]}],shrink:[{shrink:["",J,M,I]}],order:[{order:[Ae,"first","last","none",M,I]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[i,"screen",...G()]}],"min-w":[{"min-w":[i,"screen","none",...G()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,ft,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xr,I]}],"font-family":[{font:[dl,I,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,M,I]}],"line-clamp":[{"line-clamp":[J,"none",M,br]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",M,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",M,ze]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[J,"auto",M,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,I]}],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",M,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,M,I],radial:["",M,I],conic:[Ae,M,I]},pl,ul]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,M,I]}],"outline-w":[{outline:["",J,ft,ze]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",f,jt,Tt]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",p,jt,Tt]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",g,jt,Tt]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[J,M,I]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[M,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,I]}],filter:[{filter:["","none",M,I]}],blur:[{blur:$()}],brightness:[{brightness:[J,M,I]}],contrast:[{contrast:[J,M,I]}],"drop-shadow":[{"drop-shadow":["","none",h,jt,Tt]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",J,M,I]}],"hue-rotate":[{"hue-rotate":[J,M,I]}],invert:[{invert:["",J,M,I]}],saturate:[{saturate:[J,M,I]}],sepia:[{sepia:["",J,M,I]}],"backdrop-filter":[{"backdrop-filter":["","none",M,I]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[J,M,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,M,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,M,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,M,I]}],"backdrop-invert":[{"backdrop-invert":["",J,M,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,M,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,M,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,M,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",M,I]}],ease:[{ease:["linear","initial",y,M,I]}],delay:[{delay:[J,M,I]}],animate:[{animate:["none",b,M,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,I]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[M,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,I]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",M,I]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[J,ft,ze,br]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function O(...e){return gl(On(e))}const Yn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qn=On,ce=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return qn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const g=Yn(f)||Yn(p);return o[d][g]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...d,p,g]:d},[]);return qn(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},vl=ce("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function Xn({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?At:"button";return u.jsx(s,{"data-slot":"button",className:O(vl({variant:t,size:r}),e),...a,children:o})}function W(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},xl=l[" useInsertionEffect ".trim().toString()]||ie;function Te({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=bl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{var p;if(i){const g=yl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,d]}function bl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return xl(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function yl(e){return typeof e=="function"}var wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=wl.reduce((e,t)=>{const r=Ve(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sl(e,t){e&&Pt.flushSync(()=>e.dispatchEvent(t))}var Zn="Toggle",Jn=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Te({prop:r,onChange:o,defaultProp:n??!1,caller:Zn});return u.jsx(z.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:W(e.onClick,()=>{e.disabled||i(!s)})})});Jn.displayName=Zn;var Qn=Jn;const eo=ce(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100"],{variants:{variant:{classic:["h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=on]:bg-neutral-black-1 data-[state=on]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=on]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=on]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=on]:disabled:bg-neutral-black-5 data-[state=on]:disabled:hover:shadow-none data-[state=on]:disabled:focus-visible:shadow-none data-[state=on]:disabled:active:shadow-none"]}},defaultVariants:{variant:"classic"}}),to=ce(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]"],{variants:{variant:{classic:["h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=on]:translate-x-[12px]"]}},defaultVariants:{variant:"classic"}}),ro=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:d="right","aria-label":f,"aria-labelledby":p,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!n&&t&&t(k)},C=u.jsx(Qn,{ref:v,pressed:e,onPressedChange:w,disabled:n,"aria-label":f,"aria-labelledby":p||(i?y:void 0),"aria-describedby":c?b:void 0,className:O(eo({variant:r}),o),id:x,name:s,...h,children:g||u.jsx("span",{className:O(to({variant:r})),"aria-hidden":"true"})});return!i&&!c?C:u.jsxs("div",{className:O("flex gap-3",d==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[C,u.jsxs("div",{className:"flex flex-col justify-center",children:[i&&u.jsx("label",{id:y,htmlFor:x,className:O("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed"),children:i}),c&&u.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});ro.displayName="Toggle";const no=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:r=!1,className:n,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":d,"aria-labelledby":f,onPressedChange:p,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,C=`${b}-description`,k=R=>{r||(x(R),p&&p(R))},A=u.jsx(Qn,{ref:v,pressed:m,onPressedChange:k,disabled:r,"aria-label":d,"aria-labelledby":f||(s?w:void 0),"aria-describedby":i?C:void 0,className:O(eo({variant:t}),n),id:b,name:a,...h,children:g||u.jsx("span",{className:O(to({variant:t})),"aria-hidden":"true"})});return!s&&!i?A:u.jsxs("div",{className:O("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[A,u.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&u.jsx("label",{id:w,htmlFor:b,className:O("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",r&&"cursor-not-allowed"),children:s}),i&&u.jsx("p",{id:C,className:"text-xs text-neutral-black-1",children:i})]})]})});no.displayName="StatefulToggle";function Cl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function xe(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=p=>{var y;const{scope:g,children:h,...v}=p,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:x,children:h})};d.displayName=a+"Provider";function f(p,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,El(o,...t)]}function El(...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 s=n.reduce((i,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function oo(e){const t=e+"CollectionProvider",[r,n]=xe(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:y}=m,b=te.useRef(null),w=te.useRef(new Map).current;return u.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=Ve(i),d=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),C=ae(x,w.collectionRef);return u.jsx(c,{ref:C,children:b})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ve(f),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,C=te.useRef(null),k=ae(x,C),A=a(f,y);return te.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.itemMap.delete(C))),u.jsx(g,{[p]:"",ref:k,children:b})});h.displayName=f;function v(m){const x=a(e+"CollectionConsumer",m);return te.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((A,R)=>w.indexOf(A.ref.current)-w.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var kl=l[" useId ".trim().toString()]||(()=>{}),Rl=0;function ue(e){const[t,r]=l.useState(kl());return ie(()=>{r(n=>n??String(Rl++))},[e]),t?`radix-${t}`:""}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var Nl=l.createContext(void 0);function yr(e){const t=l.useContext(Nl);return e||t||"ltr"}var wr="rovingFocusGroup.onEntryFocus",_l={bubbles:!1,cancelable:!0},pt="RovingFocusGroup",[Sr,ao,Pl]=oo(pt),[Al,so]=xe(pt,[Pl]),[Tl,jl]=Al(pt),io=l.forwardRef((e,t)=>u.jsx(Sr.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Sr.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Ol,{...e,ref:t})})}));io.displayName=pt;var Ol=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ae(t,g),v=yr(a),[m,x]=Te({prop:s,defaultProp:i??null,onChange:c,caller:pt}),[y,b]=l.useState(!1),w=Re(d),C=ao(r),k=l.useRef(!1),[A,R]=l.useState(0);return l.useEffect(()=>{const N=g.current;if(N)return N.addEventListener(wr,w),()=>N.removeEventListener(wr,w)},[w]),u.jsx(Tl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(N=>x(N),[x]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:l.useCallback(()=>R(N=>N-1),[]),children:u.jsx(z.div,{tabIndex:y||A===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{k.current=!0}),onFocus:W(e.onFocus,N=>{const H=!k.current;if(N.target===N.currentTarget&&H&&!y){const K=new CustomEvent(wr,_l);if(N.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(L=>L.focusable),Q=X.find(L=>L.active),ee=X.find(L=>L.id===m),q=[Q,ee,...X].filter(Boolean).map(L=>L.ref.current);uo(q,f)}}k.current=!1}),onBlur:W(e.onBlur,()=>b(!1))})})}),lo="RovingFocusGroupItem",co=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ue(),d=a||c,f=jl(lo,r),p=f.currentTabStopId===d,g=ao(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(Sr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:W(e.onMouseDown,x=>{n?f.onItemFocus(d):x.preventDefault()}),onFocus:W(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:W(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=Dl(x,f.orientation,f.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const C=w.indexOf(x.currentTarget);w=f.loop?Ll(w,C+1):w.slice(C+1)}setTimeout(()=>uo(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});co.displayName=lo;var Il={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ml(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Dl(e,t,r){const n=Ml(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Il[n]}function uo(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ll(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var $l=io,Fl=co;function fo(e){const[t,r]=l.useState(void 0);return ie(()=>{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 s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}function po(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Vl(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ne=e=>{const{present:t,children:r}=e,n=zl(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ae(n.ref,Bl(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function zl(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Vl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Ot(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,f=o.current;if(f!==e){const g=a.current,h=Ot(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Ot(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function Bl(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 Cr="Radio",[Wl,mo]=xe(Cr),[Hl,Gl]=Wl(Cr),ho=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...f}=e,[p,g]=l.useState(null),h=ae(t,x=>g(x)),v=l.useRef(!1),m=p?d||!!p.closest("form"):!0;return u.jsxs(Hl,{scope:r,checked:o,disabled:s,children:[u.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":bo(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:W(e.onClick,x=>{o||c==null||c(),m&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),m&&u.jsx(xo,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});ho.displayName=Cr;var go="RadioIndicator",vo=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=Gl(go,r);return u.jsx(Ne,{present:n||a.checked,children:u.jsx(z.span,{"data-state":bo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});vo.displayName=go;var Ul="RadioBubbleInput",xo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=po(r),d=fo(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xo.displayName=Ul;function bo(e){return e?"checked":"unchecked"}var Kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],It="RadioGroup",[Yl,uh]=xe(It,[so,mo]),yo=so(),wo=mo(),[ql,Xl]=Yl(It),So=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...g}=e,h=yo(r),v=yr(d),[m,x]=Te({prop:a,defaultProp:o??null,onChange:p,caller:It});return u.jsx(ql,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:x,children:u.jsx($l,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:u.jsx(z.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});So.displayName=It;var Co="RadioGroupItem",Eo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Xl(Co,r),s=a.disabled||n,i=yo(r),c=wo(r),d=l.useRef(null),f=ae(t,d),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Kl.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(Fl,{asChild:!0,...i,focusable:!s,active:p,children:u.jsx(ho,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:W(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:W(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});Eo.displayName=Co;var Zl="RadioGroupIndicator",ko=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=wo(r);return u.jsx(vo,{...o,...n,ref:t})});ko.displayName=Zl;var Ro=So,No=Eo,Jl=ko;const Ql=()=>({root:O("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:O("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-[var(--color-neutral-black-2)]","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-[var(--color-neutral-black-5)]","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-[var(--color-neutral-black-3)]","data-[state=checked]:border-[var(--color-neutral-black-1)]","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-[var(--color-neutral-black-4)]","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-[var(--color-neutral-black-1)]","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-[var(--color-neutral-black-3)]"),innerCircle:O("w-2 h-2 rounded-full transition-all duration-200","bg-[var(--color-neutral-black-1)]"),label:O("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),_o=l.forwardRef(({className:e,...t},r)=>u.jsx(Ro,{className:O("grid gap-2",e),...t,ref:r}));_o.displayName=Ro.displayName;const Po=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Ql();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(No,{ref:n,className:O(o.indicator),disabled:t,...r,children:u.jsx(Jl,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Po.displayName=No.displayName;function ec(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e);l.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 tc="DismissableLayer",Er="dismissableLayer.update",rc="dismissableLayer.pointerDownOutside",nc="dismissableLayer.focusOutside",Ao,To=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(To),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,R=>p(R)),m=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,k=sc(R=>{const N=R.target,H=[...d.branches].some(K=>K.contains(N));!C||H||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},g),A=ic(R=>{const N=R.target;[...d.branches].some(K=>K.contains(N))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},g);return ec(R=>{b===d.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ao=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),jo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ao)}},[f,g,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),jo())},[f,d]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(Er,R),()=>document.removeEventListener(Er,R)},[]),u.jsx(z.div,{...c,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,A.onFocusCapture),onBlurCapture:W(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,k.onPointerDownCapture)})});mt.displayName=tc;var oc="DismissableLayerBranch",ac=l.forwardRef((e,t)=>{const r=l.useContext(To),n=l.useRef(null),o=ae(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(z.div,{...e,ref:o})});ac.displayName=oc;function sc(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Oo(rc,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ic(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Oo(nc,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 jo(){const e=new CustomEvent(Er);document.dispatchEvent(e)}function Oo(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?Sl(o,a):o.dispatchEvent(a)}var kr="focusScope.autoFocusOnMount",Rr="focusScope.autoFocusOnUnmount",Io={bubbles:!1,cancelable:!0},lc="FocusScope",Mt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Re(o),f=Re(a),p=l.useRef(null),g=ae(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(w){if(h.paused||!i)return;const C=w.target;i.contains(C)?p.current=C:je(p.current,{select:!0})},x=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||je(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&je(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){Lo.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(kr,Io);i.addEventListener(kr,d),i.dispatchEvent(y),y.defaultPrevented||(cc(mc(Mo(i)),{select:!0}),document.activeElement===m&&je(i))}return()=>{i.removeEventListener(kr,d),setTimeout(()=>{const y=new CustomEvent(Rr,Io);i.addEventListener(Rr,f),i.dispatchEvent(y),y.defaultPrevented||je(m??document.body,{select:!0}),i.removeEventListener(Rr,f),Lo.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,C]=uc(b);w&&C?!m.shiftKey&&y===C?(m.preventDefault(),r&&je(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),r&&je(C,{select:!0})):y===b&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(z.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Mt.displayName=lc;function cc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(je(n,{select:t}),document.activeElement!==r)return}function uc(e){const t=Mo(e),r=Do(t,e),n=Do(t.reverse(),e);return[r,n]}function Mo(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 Do(e,t){for(const r of e)if(!dc(r,{upTo:t}))return r}function dc(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 fc(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fc(e)&&t&&e.select()}}var Lo=pc();function pc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=$o(e,t),e.unshift(t)},remove(t){var r;e=$o(e,t),(r=e[0])==null||r.resume()}}}function $o(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function mc(e){return e.filter(t=>t.tagName!=="A")}var hc="Portal",ht=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Rn.createPortal(u.jsx(z.div,{...n,ref:t}),s):null});ht.displayName=hc;var Nr=0;function _r(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fo()),document.body.insertAdjacentElement("beforeend",e[1]??Fo()),Nr++,()=>{Nr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nr--}},[])}function Fo(){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 be=function(){return be=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},be.apply(this,arguments)};function Vo(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 gc(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))}typeof SuppressedError=="function"&&SuppressedError;var Dt="right-scroll-bar-position",Lt="width-before-scroll-bar",vc="with-scroll-bars-hidden",xc="--removed-body-scroll-bar-size";function Pr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bc(e,t){var r=te.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 yc=typeof window<"u"?l.useLayoutEffect:l.useEffect,zo=new WeakMap;function wc(e,t){var r=bc(null,function(n){return e.forEach(function(o){return Pr(o,n)})});return yc(function(){var n=zo.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Pr(i,null)}),a.forEach(function(i){o.has(i)||Pr(i,s)})}zo.set(r,e)},[e]),r}function Sc(e){return e}function Cc(e,t){t===void 0&&(t=Sc);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 s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function Ec(e){e===void 0&&(e={});var t=Cc(null);return t.options=be({async:!0,ssr:!1},e),t}var Bo=function(e){var t=e.sideCar,r=Vo(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 l.createElement(n,be({},r))};Bo.isSideCarExport=!0;function kc(e,t){return e.useMedium(t),Bo}var Wo=Ec(),Ar=function(){},$t=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Ar,onWheelCapture:Ar,onTouchMoveCapture:Ar}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=Vo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,A=wc([r,t]),R=be(be({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(k,{sideCar:Wo,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),be(be({},R),{ref:A})):l.createElement(b,be({},R,{className:c,ref:A}),i))});$t.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$t.classNames={fullWidth:Lt,zeroRight:Dt};var Rc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rc();return t&&e.setAttribute("nonce",t),e}function _c(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ac=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Nc())&&(_c(t,r),Pc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tc=function(){var e=Ac();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ho=function(){var e=Tc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},jc={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0},Oc=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[Tr(r),Tr(n),Tr(o)]},Ic=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jc;var t=Oc(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])}},Mc=Ho(),Xe="data-scroll-locked",Dc=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(vc,` {
24
- overflow: hidden `).concat(n,`;
25
- padding-right: `).concat(i,"px ").concat(n,`;
26
- }
27
- body[`).concat(Xe,`] {
28
- overflow: hidden `).concat(n,`;
29
- overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
31
- padding-left: `.concat(o,`px;
32
- padding-top: `).concat(a,`px;
33
- padding-right: `).concat(s,`px;
34
- margin-left:0;
35
- margin-top:0;
36
- margin-right: `).concat(i,"px ").concat(n,`;
37
- `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
38
- }
39
-
40
- .`).concat(Dt,` {
41
- right: `).concat(i,"px ").concat(n,`;
42
- }
43
-
44
- .`).concat(Lt,` {
45
- margin-right: `).concat(i,"px ").concat(n,`;
46
- }
47
-
48
- .`).concat(Dt," .").concat(Dt,` {
49
- right: 0 `).concat(n,`;
50
- }
51
-
52
- .`).concat(Lt," .").concat(Lt,` {
53
- margin-right: 0 `).concat(n,`;
54
- }
55
-
56
- body[`).concat(Xe,`] {
57
- `).concat(xc,": ").concat(i,`px;
58
- }
59
- `)},Go=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Lc=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(Go()+1).toString()),function(){var e=Go()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},$c=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Lc();var a=l.useMemo(function(){return Ic(o)},[o]);return l.createElement(Mc,{styles:Dc(a,!t,o,r?"":"!important")})},jr=!1;if(typeof window<"u")try{var Ft=Object.defineProperty({},"passive",{get:function(){return jr=!0,!0}});window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch{jr=!1}var Ze=jr?{passive:!1}:!1,Fc=function(e){return e.tagName==="TEXTAREA"},Uo=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Fc(e)&&r[t]==="visible")},Vc=function(e){return Uo(e,"overflowY")},zc=function(e){return Uo(e,"overflowX")},Ko=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Yo(e,n);if(o){var a=qo(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Wc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Yo=function(e,t){return e==="v"?Vc(t):zc(t)},qo=function(e,t){return e==="v"?Bc(t):Wc(t)},Hc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Gc=function(e,t,r,n,o){var a=Hc(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),d=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=qo(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&Yo(e,i)&&(p+=y,g+=v);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Vt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xo=function(e){return[e.deltaX,e.deltaY]},Zo=function(e){return e&&"current"in e?e.current:e},Uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kc=function(e){return`
60
- .block-interactivity-`.concat(e,` {pointer-events: none;}
61
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},Yc=0,Je=[];function qc(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Yc++)[0],a=l.useState(Ho)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=gc([e.lockRef.current],(e.shards||[]).map(Zo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=Vt(m),b=r.current,w="deltaX"in m?m.deltaX:b[0]-y[0],C="deltaY"in m?m.deltaY:b[1]-y[1],k,A=m.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&A.type==="range")return!1;var N=Ko(R,A);if(!N)return!0;if(N?k=R:(k=R==="v"?"h":"v",N=Ko(R,A)),!N)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=k),!k)return!0;var H=n.current||k;return Gc(H,x,m,H==="h"?w:C)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?Xo(x):Vt(x),b=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Uc(k.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(Zo).filter(Boolean).filter(function(k){return k.contains(x.target)}),C=w.length>0?i(x,w[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:Xc(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(m){r.current=Vt(m),n.current=void 0},[]),p=l.useCallback(function(m){d(m.type,Xo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){d(m.type,Vt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Kc(o)}):null,h?l.createElement($c,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zc=kc(Wo,qc);var zt=l.forwardRef(function(e,t){return l.createElement($t,be({},e,{ref:t,sideCar:Zc}))});zt.classNames=$t.classNames;var Jc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Bt=new WeakMap,Wt={},Or=0,Jo=function(e){return e&&(e.host||Jo(e.parentNode))},Qc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Jo(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})},eu=function(e,t,r,n){var o=Qc(t,Array.isArray(e)?e:[e]);Wt[r]||(Wt[r]=new WeakMap);var a=Wt[r],s=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(Qe.get(g)||0)+1,x=(a.get(g)||0)+1;Qe.set(g,m),a.set(g,x),s.push(g),m===1&&v&&Bt.set(g,!0),x===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),i.clear(),Or++,function(){s.forEach(function(p){var g=Qe.get(p)-1,h=a.get(p)-1;Qe.set(p,g),a.set(p,h),g||(Bt.has(p)||p.removeAttribute(n),Bt.delete(p)),h||p.removeAttribute(r)}),Or--,Or||(Qe=new WeakMap,Qe=new WeakMap,Bt=new WeakMap,Wt={})}},Ir=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Jc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eu(n,o,r,"aria-hidden")):function(){return null}},Ht="Dialog",[Qo,dh]=xe(Ht),[tu,me]=Qo(Ht),ea=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[d,f]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:Ht});return u.jsx(tu,{scope:t,triggerRef:i,contentRef:c,contentId:ue(),titleId:ue(),descriptionId:ue(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};ea.displayName=Ht;var ta="DialogTrigger",ra=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ta,r),a=ae(t,o.triggerRef);return u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lr(o.open),...n,ref:a,onClick:W(e.onClick,o.onOpenToggle)})});ra.displayName=ta;var Mr="DialogPortal",[ru,na]=Qo(Mr,{forceMount:void 0}),oa=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=me(Mr,t);return u.jsx(ru,{scope:t,forceMount:r,children:l.Children.map(n,s=>u.jsx(Ne,{present:r||a.open,children:u.jsx(ht,{asChild:!0,container:o,children:s})}))})};oa.displayName=Mr;var Gt="DialogOverlay",aa=l.forwardRef((e,t)=>{const r=na(Gt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Gt,e.__scopeDialog);return a.modal?u.jsx(Ne,{present:n||a.open,children:u.jsx(ou,{...o,ref:t})}):null});aa.displayName=Gt;var nu=Ve("DialogOverlay.RemoveScroll"),ou=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Gt,r);return u.jsx(zt,{as:nu,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(z.div,{"data-state":Lr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Be="DialogContent",sa=l.forwardRef((e,t)=>{const r=na(Be,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Be,e.__scopeDialog);return u.jsx(Ne,{present:n||a.open,children:a.modal?u.jsx(au,{...o,ref:t}):u.jsx(su,{...o,ref:t})})});sa.displayName=Be;var au=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(null),o=ae(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Ir(a)},[]),u.jsx(ia,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:W(e.onFocusOutside,a=>a.preventDefault())})}),su=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(ia,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ia=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(Be,r),c=l.useRef(null),d=ae(t,c);return _r(),u.jsxs(u.Fragment,{children:[u.jsx(Mt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(mt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Lr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(iu,{titleId:i.titleId}),u.jsx(cu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",la=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Dr,r);return u.jsx(z.h2,{id:o.titleId,...n,ref:t})});la.displayName=Dr;var ca="DialogDescription",ua=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ca,r);return u.jsx(z.p,{id:o.descriptionId,...n,ref:t})});ua.displayName=ca;var da="DialogClose",fa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(da,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});fa.displayName=da;function Lr(e){return e?"open":"closed"}var pa="DialogTitleWarning",[fh,ma]=Cl(pa,{contentName:Be,titleName:Dr,docsSlug:"dialog"}),iu=({titleId:e})=>{const t=ma(pa),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
63
-
64
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
65
-
66
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},lu="DialogDescriptionWarning",cu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ma(lu).contentName}}.`;return l.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},ha=ea,uu=ra,ga=oa,va=aa,xa=sa,du=la,fu=ua,ba=fa;/**
22
+ <%s key={someKey} {...props} />`,T,$,U,$),re[$+T]=!0)}if($=null,S!==void 0&&(r(S),$=""+S),s(V)&&(r(V.key),$=""+V.key),"key"in V){S={};for(var Z in V)Z!=="key"&&(S[Z]=V[Z])}else S=V;return $&&i(S,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,$,j,D,o(),S,Y,P)}function f(k){typeof k=="object"&&k!==null&&k.$$typeof===h&&k._store&&(k._store.validated=1)}var g=te,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(k){return k()}};var q,L={},G=g["react-stack-bottom-frame"].bind(g,a)(),N=W(n(a)),re={};ft.Fragment=m,ft.jsx=function(k,V,S,T,D){var j=1e4>X.recentlyCreatedOwnerStacks++;return p(k,V,S,!1,T,D,j?Error("react-stack-top-frame"):G,j?W(n(k)):N)},ft.jsxs=function(k,V,S,T,D){var j=1e4>X.recentlyCreatedOwnerStacks++;return p(k,V,S,!0,T,D,j?Error("react-stack-top-frame"):G,j?W(n(k)):N)}}()),ft}process.env.NODE_ENV==="production"?hr.exports=Hi():hr.exports=Gi();var u=hr.exports;function Mn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Mn(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():Mn(e[o],null)}}}}function ae(...e){return l.useCallback(Ve(...e),e)}function ze(e){const t=Ui(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(Yi);if(c){const d=c.props.children,p=i.map(f=>f===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:f);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,p):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Tt=ze("Slot");function Ui(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Xi(o),i=qi(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Ve(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dn=Symbol("radix.slottable");function Ki(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Dn,t}function Yi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dn}function qi(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]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Xi(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 Ln(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=Ln(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ln(e))&&(n&&(n+=" "),n+=t);return n}const gr="-",Zi=e=>{const t=Qi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(gr);return i[0]===""&&i.length!==1&&i.shift(),Fn(i,t)||Ji(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},Fn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Fn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(gr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Vn=/^\[(.+)\]$/,Ji=e=>{if(Vn.test(e)){const t=Vn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Qi=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)vr(r[o],n,o,t);return n},vr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:zn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(el(o)){vr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{vr(s,zn(t,a),r,n)})})},zn=(e,t)=>{let r=e;return t.split(gr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},el=e=>e.isThemeGetter,tl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},xr="!",br=":",rl=br.length,nl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===br){a.push(o.slice(c,v)),c=v+rl;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const p=a.length===0?o:o.substring(c),f=ol(p),g=f!==p,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+br,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ol=e=>e.endsWith(xr)?e.substring(0,e.length-1):e.startsWith(xr)?e.substring(1):e,al=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(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},sl=e=>({cache:tl(e.cacheSize),parseClassName:nl(e),sortModifiers:al(e),...Zi(e)}),il=/\s+/,ll=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(il);let c="";for(let d=i.length-1;d>=0;d-=1){const p=i[d],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(p);if(f){c=p+(c.length>0?" "+c:c);continue}let x=!!m,b=n(x?v.substring(0,m):v);if(!b){if(!x){c=p+(c.length>0?" "+c:c);continue}if(b=n(v),!b){c=p+(c.length>0?" "+c:c);continue}x=!1}const y=a(g).join(":"),w=h?y+xr:y,C=w+b;if(s.includes(C))continue;s.push(C);const E=o(b,x);for(let A=0;A<E.length;++A){const R=E[A];s.push(w+R)}c=p+(c.length>0?" "+c:c)}return c};function cl(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Bn(t))&&(n&&(n+=" "),n+=r);return n}const Bn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Bn(e[n]))&&(r&&(r+=" "),r+=t);return r};function ul(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((p,f)=>f(p),e());return r=sl(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const p=ll(c,r);return o(c,p),p}return function(){return a(cl.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Wn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dl=/^\d+\/\d+$/,fl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pl=/\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$/,ml=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>dl.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),yr=e=>e.endsWith("%")&&J(e.slice(0,-1)),Re=e=>fl.test(e),vl=()=>!0,xl=e=>pl.test(e)&&!ml.test(e),Gn=()=>!1,bl=e=>hl.test(e),yl=e=>gl.test(e),wl=e=>!O(e)&&!M(e),Sl=e=>qe(e,Xn,Gn),O=e=>Wn.test(e),Be=e=>qe(e,Zn,xl),wr=e=>qe(e,_l,J),Un=e=>qe(e,Yn,Gn),Cl=e=>qe(e,qn,yl),jt=e=>qe(e,Jn,bl),M=e=>Hn.test(e),pt=e=>Xe(e,Zn),kl=e=>Xe(e,Nl),Kn=e=>Xe(e,Yn),El=e=>Xe(e,Xn),Rl=e=>Xe(e,qn),It=e=>Xe(e,Jn,!0),qe=(e,t,r)=>{const n=Wn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Xe=(e,t,r=!1)=>{const n=Hn.exec(e);return n?n[1]?t(n[1]):r:!1},Yn=e=>e==="position"||e==="percentage",qn=e=>e==="image"||e==="url",Xn=e=>e==="length"||e==="size"||e==="bg-size",Zn=e=>e==="length",_l=e=>e==="number",Nl=e=>e==="family-name",Jn=e=>e==="shadow",Pl=ul(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),p=se("shadow"),f=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),x=se("aspect"),b=se("ease"),y=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),M,O],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],_=()=>[M,O,c],H=()=>[Ye,"full","auto",..._()],K=()=>[Te,"none","subgrid",M,O],X=()=>["auto",{span:["full",Te,M,O]},Te,M,O],Q=()=>[Te,"auto",M,O],ee=()=>["auto","min","max","fr",M,O],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",..._()],G=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],N=()=>[e,M,O],re=()=>[...C(),Kn,Un,{position:[M,O]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",El,Sl,{size:[M,O]}],S=()=>[yr,pt,Be],T=()=>["","none","full",d,M,O],D=()=>["",J,pt,Be],j=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,yr,Kn,Un],$=()=>["","none",v,M,O],U=()=>["none",J,M,O],Z=()=>["none",J,M,O],ne=()=>[J,M,O],oe=()=>[Ye,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[vl],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[wl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",J],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,O,M,x]}],container:["container"],columns:[{columns:[J,O,M,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",M,O]}],basis:[{basis:[Ye,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ye,"auto","initial","none",O]}],grow:[{grow:["",J,M,O]}],shrink:[{shrink:["",J,M,O]}],order:[{order:[Te,"first","last","none",M,O]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[i,"screen",...G()]}],"min-w":[{"min-w":[i,"screen","none",...G()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,pt,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yr,O]}],"font-family":[{font:[kl,O,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,M,O]}],"line-clamp":[{"line-clamp":[J,"none",M,wr]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",M,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",M,Be]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[J,"auto",M,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,O]}],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",M,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,M,O],radial:["",M,O],conic:[Te,M,O]},Rl,Cl]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,M,O]}],"outline-w":[{outline:["",J,pt,Be]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",p,It,jt]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,It,jt]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[J,Be]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,It,jt]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[J,M,O]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[M,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,O]}],filter:[{filter:["","none",M,O]}],blur:[{blur:$()}],brightness:[{brightness:[J,M,O]}],contrast:[{contrast:[J,M,O]}],"drop-shadow":[{"drop-shadow":["","none",h,It,jt]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",J,M,O]}],"hue-rotate":[{"hue-rotate":[J,M,O]}],invert:[{invert:["",J,M,O]}],saturate:[{saturate:[J,M,O]}],sepia:[{sepia:["",J,M,O]}],"backdrop-filter":[{"backdrop-filter":["","none",M,O]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[J,M,O]}],"backdrop-contrast":[{"backdrop-contrast":[J,M,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,M,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,M,O]}],"backdrop-invert":[{"backdrop-invert":["",J,M,O]}],"backdrop-opacity":[{"backdrop-opacity":[J,M,O]}],"backdrop-saturate":[{"backdrop-saturate":[J,M,O]}],"backdrop-sepia":[{"backdrop-sepia":["",J,M,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",M,O]}],ease:[{ease:["linear","initial",b,M,O]}],delay:[{delay:[J,M,O]}],animate:[{animate:["none",y,M,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,O]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[M,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",M,O]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,O]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[J,pt,Be,wr]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function I(...e){return Pl($n(e))}const Qn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eo=$n,ce=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return eo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const p=r==null?void 0:r[d],f=a==null?void 0:a[d];if(p===null)return null;const g=Qn(p)||Qn(f);return o[d][g]}),i=r&&Object.entries(r).reduce((d,p)=>{let[f,g]=p;return g===void 0||(d[f]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,p)=>{let{class:f,className:g,...h}=p;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...d,f,g]:d},[]);return eo(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Al=ce("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function to({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?Tt:"button";return u.jsx(s,{"data-slot":"button",className:I(Al({variant:t,size:r}),e),...a,children:o})}function B(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Tl=l[" useInsertionEffect ".trim().toString()]||ie;function _e({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=jl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const p=l.useRef(e!==void 0);l.useEffect(()=>{const f=p.current;f!==i&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,n])}const d=l.useCallback(p=>{var f;if(i){const g=Il(p)?p(e):p;g!==e&&((f=s.current)==null||f.call(s,g))}else a(p)},[i,e,a,s]);return[c,d]}function jl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return Tl(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Il(e){return typeof e=="function"}var Ol=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Ol.reduce((e,t)=>{const r=ze(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ml(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}var ro="Toggle",no=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=_e({prop:r,onChange:o,defaultProp:n??!1,caller:ro});return u.jsx(z.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||i(!s)})})});no.displayName=ro;var oo=no;const ao=ce(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100"],{variants:{variant:{classic:["h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=on]:bg-neutral-black-1 data-[state=on]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=on]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=on]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=on]:disabled:bg-neutral-black-5 data-[state=on]:disabled:hover:shadow-none data-[state=on]:disabled:focus-visible:shadow-none data-[state=on]:disabled:active:shadow-none"]}},defaultVariants:{variant:"classic"}}),so=ce(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]"],{variants:{variant:{classic:["h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=on]:translate-x-[12px]"]}},defaultVariants:{variant:"classic"}}),io=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:d="right","aria-label":p,"aria-labelledby":f,children:g,...h},v)=>{const m=te.useId(),x=a||m,b=`${x}-label`,y=`${x}-description`,w=E=>{!n&&t&&t(E)},C=u.jsx(oo,{ref:v,pressed:e,onPressedChange:w,disabled:n,"aria-label":p,"aria-labelledby":f||(i?b:void 0),"aria-describedby":c?y:void 0,className:I(ao({variant:r}),o),id:x,name:s,...h,children:g||u.jsx("span",{className:I(so({variant:r})),"aria-hidden":"true"})});return!i&&!c?C:u.jsxs("div",{className:I("flex gap-3",d==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[C,u.jsxs("div",{className:"flex flex-col justify-center",children:[i&&u.jsx("label",{id:b,htmlFor:x,className:I("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed"),children:i}),c&&u.jsx("p",{id:y,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});io.displayName="Toggle";const lo=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:r=!1,className:n,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":d,"aria-labelledby":p,onPressedChange:f,children:g,...h},v)=>{const[m,x]=te.useState(e),b=te.useId(),y=o||b,w=`${y}-label`,C=`${y}-description`,E=R=>{r||(x(R),f&&f(R))},A=u.jsx(oo,{ref:v,pressed:m,onPressedChange:E,disabled:r,"aria-label":d,"aria-labelledby":p||(s?w:void 0),"aria-describedby":i?C:void 0,className:I(ao({variant:t}),n),id:y,name:a,...h,children:g||u.jsx("span",{className:I(so({variant:t})),"aria-hidden":"true"})});return!s&&!i?A:u.jsxs("div",{className:I("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[A,u.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&u.jsx("label",{id:w,htmlFor:y,className:I("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",r&&"cursor-not-allowed"),children:s}),i&&u.jsx("p",{id:C,className:"text-xs text-neutral-black-1",children:i})]})]})});lo.displayName="StatefulToggle";function Dl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function me(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=f=>{var b;const{scope:g,children:h,...v}=f,m=((b=g==null?void 0:g[e])==null?void 0:b[c])||i,x=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:x,children:h})};d.displayName=a+"Provider";function p(f,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,p]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Ll(o,...t)]}function Ll(...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 s=n.reduce((i,{useScope:c,scopeName:d})=>{const f=c(a)[`__scope${d}`];return{...i,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function co(e){const t=e+"CollectionProvider",[r,n]=me(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:b}=m,y=te.useRef(null),w=te.useRef(new Map).current;return u.jsx(o,{scope:x,itemMap:w,collectionRef:y,children:b})};s.displayName=t;const i=e+"CollectionSlot",c=ze(i),d=te.forwardRef((m,x)=>{const{scope:b,children:y}=m,w=a(i,b),C=ae(x,w.collectionRef);return u.jsx(c,{ref:C,children:y})});d.displayName=i;const p=e+"CollectionItemSlot",f="data-radix-collection-item",g=ze(p),h=te.forwardRef((m,x)=>{const{scope:b,children:y,...w}=m,C=te.useRef(null),E=ae(x,C),A=a(p,b);return te.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.itemMap.delete(C))),u.jsx(g,{[f]:"",ref:E,children:y})});h.displayName=p;function v(m){const x=a(e+"CollectionConsumer",m);return te.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((A,R)=>w.indexOf(A.ref.current)-w.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var $l=l[" useId ".trim().toString()]||(()=>{}),Fl=0;function ue(e){const[t,r]=l.useState($l());return ie(()=>{r(n=>n??String(Fl++))},[e]),t?`radix-${t}`:""}function Ne(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var Vl=l.createContext(void 0);function Sr(e){const t=l.useContext(Vl);return e||t||"ltr"}var Cr="rovingFocusGroup.onEntryFocus",zl={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[kr,uo,Bl]=co(mt),[Wl,fo]=me(mt,[Bl]),[Hl,Gl]=Wl(mt),po=l.forwardRef((e,t)=>u.jsx(kr.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(kr.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Ul,{...e,ref:t})})}));po.displayName=mt;var Ul=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...f}=e,g=l.useRef(null),h=ae(t,g),v=Sr(a),[m,x]=_e({prop:s,defaultProp:i??null,onChange:c,caller:mt}),[b,y]=l.useState(!1),w=Ne(d),C=uo(r),E=l.useRef(!1),[A,R]=l.useState(0);return l.useEffect(()=>{const _=g.current;if(_)return _.addEventListener(Cr,w),()=>_.removeEventListener(Cr,w)},[w]),u.jsx(Hl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(_=>x(_),[x]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:l.useCallback(()=>R(_=>_-1),[]),children:u.jsx(z.div,{tabIndex:b||A===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{E.current=!0}),onFocus:B(e.onFocus,_=>{const H=!E.current;if(_.target===_.currentTarget&&H&&!b){const K=new CustomEvent(Cr,zl);if(_.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(L=>L.focusable),Q=X.find(L=>L.active),ee=X.find(L=>L.id===m),q=[Q,ee,...X].filter(Boolean).map(L=>L.ref.current);go(q,p)}}E.current=!1}),onBlur:B(e.onBlur,()=>y(!1))})})}),mo="RovingFocusGroupItem",ho=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ue(),d=a||c,p=Gl(mo,r),f=p.currentTabStopId===d,g=uo(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=p;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(kr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(z.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,x=>{n?p.onItemFocus(d):x.preventDefault()}),onFocus:B(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:B(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){p.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const b=ql(x,p.orientation,p.dir);if(b!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const C=w.indexOf(x.currentTarget);w=p.loop?Xl(w,C+1):w.slice(C+1)}setTimeout(()=>go(w))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:m!=null}):s})})});ho.displayName=mo;var Kl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ql(e,t,r){const n=Yl(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Kl[n]}function go(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Xl(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Zl=po,Jl=ho;function Er(e){const[t,r]=l.useState(void 0);return ie(()=>{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 s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}function Rr(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ql(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var be=e=>{const{present:t,children:r}=e,n=ec(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ae(n.ref,tc(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};be.displayName="Presence";function ec(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Ql(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Ot(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,p=o.current;if(p!==e){const g=a.current,h=Ot(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=h=>{const m=Ot(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function tc(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 _r="Radio",[rc,vo]=me(_r),[nc,oc]=rc(_r),xo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...p}=e,[f,g]=l.useState(null),h=ae(t,x=>g(x)),v=l.useRef(!1),m=f?d||!!f.closest("form"):!0;return u.jsxs(nc,{scope:r,checked:o,disabled:s,children:[u.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":So(o),"data-disabled":s?"":void 0,disabled:s,value:i,...p,ref:h,onClick:B(e.onClick,x=>{o||c==null||c(),m&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),m&&u.jsx(wo,{control:f,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});xo.displayName=_r;var bo="RadioIndicator",yo=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=oc(bo,r);return u.jsx(be,{present:n||a.checked,children:u.jsx(z.span,{"data-state":So(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});yo.displayName=bo;var ac="RadioBubbleInput",wo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=Rr(r),d=Er(t);return l.useEffect(()=>{const p=s.current;if(!p)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(p,r),p.dispatchEvent(v)}},[c,r,n]),u.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wo.displayName=ac;function So(e){return e?"checked":"unchecked"}var sc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Mt="RadioGroup",[ic,_h]=me(Mt,[fo,vo]),Co=fo(),ko=vo(),[lc,cc]=ic(Mt),Eo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:p=!0,onValueChange:f,...g}=e,h=Co(r),v=Sr(d),[m,x]=_e({prop:a,defaultProp:o??null,onChange:f,caller:Mt});return u.jsx(lc,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:x,children:u.jsx(Zl,{asChild:!0,...h,orientation:c,dir:v,loop:p,children:u.jsx(z.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});Eo.displayName=Mt;var Ro="RadioGroupItem",_o=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=cc(Ro,r),s=a.disabled||n,i=Co(r),c=ko(r),d=l.useRef(null),p=ae(t,d),f=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{sc.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(Jl,{asChild:!0,...i,focusable:!s,active:f,children:u.jsx(xo,{disabled:s,required:a.required,checked:f,...c,...o,name:a.name,ref:p,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:B(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});_o.displayName=Ro;var uc="RadioGroupIndicator",No=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=ko(r);return u.jsx(yo,{...o,...n,ref:t})});No.displayName=uc;var Po=Eo,Ao=_o,dc=No;const fc=()=>({root:I("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:I("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:I("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:I("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),To=l.forwardRef(({className:e,...t},r)=>u.jsx(Po,{className:I("grid gap-2",e),...t,ref:r}));To.displayName=Po.displayName;const jo=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=fc();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(Ao,{ref:n,className:I(o.indicator),disabled:t,...r,children:u.jsx(dc,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});jo.displayName=Ao.displayName;var Dt="Checkbox",[pc,Nh]=me(Dt),[mc,Nr]=pc(Dt);function hc(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:c,required:d,value:p="on",internal_do_not_use_render:f}=e,[g,h]=_e({prop:r,defaultProp:o??!1,onChange:c,caller:Dt}),[v,m]=l.useState(null),[x,b]=l.useState(null),y=l.useRef(!1),w=v?!!s||!!v.closest("form"):!0,C={checked:g,disabled:a,setChecked:h,control:v,setControl:m,name:i,form:s,value:p,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:je(o)?!1:o,isFormControl:w,bubbleInput:x,setBubbleInput:b};return u.jsx(mc,{scope:t,...C,children:gc(f)?f(C):n})}var Io="CheckboxTrigger",Oo=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:i,checked:c,required:d,setControl:p,setChecked:f,hasConsumerStoppedPropagationRef:g,isFormControl:h,bubbleInput:v}=Nr(Io,e),m=ae(o,p),x=l.useRef(c);return l.useEffect(()=>{const b=a==null?void 0:a.form;if(b){const y=()=>f(x.current);return b.addEventListener("reset",y),()=>b.removeEventListener("reset",y)}},[a,f]),u.jsx(z.button,{type:"button",role:"checkbox","aria-checked":je(c)?"mixed":c,"aria-required":d,"data-state":Vo(c),"data-disabled":i?"":void 0,disabled:i,value:s,...n,ref:m,onKeyDown:B(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:B(r,b=>{f(y=>je(y)?!0:!y),v&&h&&(g.current=b.isPropagationStopped(),g.current||b.stopPropagation())})})});Oo.displayName=Io;var Mo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c,onCheckedChange:d,form:p,...f}=e;return u.jsx(hc,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:n,form:p,value:c,internal_do_not_use_render:({isFormControl:g})=>u.jsxs(u.Fragment,{children:[u.jsx(Oo,{...f,ref:t,__scopeCheckbox:r}),g&&u.jsx(Fo,{__scopeCheckbox:r})]})})});Mo.displayName=Dt;var Do="CheckboxIndicator",Lo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=Nr(Do,r);return u.jsx(be,{present:n||je(a.checked)||a.checked===!0,children:u.jsx(z.span,{"data-state":Vo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Lo.displayName=Do;var $o="CheckboxBubbleInput",Fo=l.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:c,name:d,value:p,form:f,bubbleInput:g,setBubbleInput:h}=Nr($o,e),v=ae(r,h),m=Rr(a),x=Er(n);l.useEffect(()=>{const y=g;if(!y)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,A=!o.current;if(m!==a&&E){const R=new Event("click",{bubbles:A});y.indeterminate=je(a),E.call(y,je(a)?!1:a),y.dispatchEvent(R)}},[g,m,a,o]);const b=l.useRef(je(a)?!1:a);return u.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:i,disabled:c,name:d,value:p,form:f,...t,tabIndex:-1,ref:v,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Fo.displayName=$o;function gc(e){return typeof e=="function"}function je(e){return e==="indeterminate"}function Vo(e){return je(e)?"indeterminate":e?"checked":"unchecked"}/**
67
23
  * @license lucide-react v0.542.0 - ISC
68
24
  *
69
25
  * This source code is licensed under the ISC license.
70
26
  * See the LICENSE file in the root directory of this source tree.
71
- */const pu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ya=e=>{const t=mu(e);return t.charAt(0).toUpperCase()+t.slice(1)},wa=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),hu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const vc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),zo=e=>{const t=xc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bo=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),bc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
72
28
  * @license lucide-react v0.542.0 - ISC
73
29
  *
74
30
  * This source code is licensed under the ISC license.
75
31
  * See the LICENSE file in the root directory of this source tree.
76
- */var gu={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"};/**
32
+ */var yc={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"};/**
77
33
  * @license lucide-react v0.542.0 - ISC
78
34
  *
79
35
  * This source code is licensed under the ISC license.
80
36
  * See the LICENSE file in the root directory of this source tree.
81
- */const vu=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...gu,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:wa("lucide",o),...!a&&!hu(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>te.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
37
+ */const wc=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...yc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Bo("lucide",o),...!a&&!bc(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,p])=>te.createElement(d,p)),...Array.isArray(a)?a:[a]]));/**
82
38
  * @license lucide-react v0.542.0 - ISC
83
39
  *
84
40
  * This source code is licensed under the ISC license.
85
41
  * See the LICENSE file in the root directory of this source tree.
86
- */const le=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(vu,{ref:a,iconNode:t,className:wa(`lucide-${pu(ya(e))}`,`lucide-${e}`,n),...o}));return r.displayName=ya(e),r};/**
42
+ */const le=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(wc,{ref:a,iconNode:t,className:Bo(`lucide-${vc(zo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=zo(e),r};/**
87
43
  * @license lucide-react v0.542.0 - ISC
88
44
  *
89
45
  * This source code is licensed under the ISC license.
90
46
  * See the LICENSE file in the root directory of this source tree.
91
- */const xu=le("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
47
+ */const Sc=le("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
92
48
  * @license lucide-react v0.542.0 - ISC
93
49
  *
94
50
  * This source code is licensed under the ISC license.
95
51
  * See the LICENSE file in the root directory of this source tree.
96
- */const bu=le("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
52
+ */const Cc=le("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
97
53
  * @license lucide-react v0.542.0 - ISC
98
54
  *
99
55
  * This source code is licensed under the ISC license.
100
56
  * See the LICENSE file in the root directory of this source tree.
101
- */const yu=le("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
57
+ */const Wo=le("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
102
58
  * @license lucide-react v0.542.0 - ISC
103
59
  *
104
60
  * This source code is licensed under the ISC license.
105
61
  * See the LICENSE file in the root directory of this source tree.
106
- */const $r=le("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
62
+ */const Pr=le("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
107
63
  * @license lucide-react v0.542.0 - ISC
108
64
  *
109
65
  * This source code is licensed under the ISC license.
110
66
  * See the LICENSE file in the root directory of this source tree.
111
- */const wu=le("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
67
+ */const kc=le("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
112
68
  * @license lucide-react v0.542.0 - ISC
113
69
  *
114
70
  * This source code is licensed under the ISC license.
115
71
  * See the LICENSE file in the root directory of this source tree.
116
- */const Su=le("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
72
+ */const Ec=le("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
117
73
  * @license lucide-react v0.542.0 - ISC
118
74
  *
119
75
  * This source code is licensed under the ISC license.
120
76
  * See the LICENSE file in the root directory of this source tree.
121
- */const Cu=le("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
77
+ */const Rc=le("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
122
78
  * @license lucide-react v0.542.0 - ISC
123
79
  *
124
80
  * This source code is licensed under the ISC license.
125
81
  * See the LICENSE file in the root directory of this source tree.
126
- */const Eu=le("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
82
+ */const _c=le("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
127
83
  * @license lucide-react v0.542.0 - ISC
128
84
  *
129
85
  * This source code is licensed under the ISC license.
130
86
  * See the LICENSE file in the root directory of this source tree.
131
- */const ku=le("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
87
+ */const Nc=le("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
132
88
  * @license lucide-react v0.542.0 - ISC
133
89
  *
134
90
  * This source code is licensed under the ISC license.
135
91
  * See the LICENSE file in the root directory of this source tree.
136
- */const Ru=le("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
92
+ */const Pc=le("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
137
93
  * @license lucide-react v0.542.0 - ISC
138
94
  *
139
95
  * This source code is licensed under the ISC license.
140
96
  * See the LICENSE file in the root directory of this source tree.
141
- */const Nu=le("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
97
+ */const Ac=le("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
142
98
  * @license lucide-react v0.542.0 - ISC
143
99
  *
144
100
  * This source code is licensed under the ISC license.
145
101
  * See the LICENSE file in the root directory of this source tree.
146
- */const _u=le("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
102
+ */const Tc=le("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
147
103
  * @license lucide-react v0.542.0 - ISC
148
104
  *
149
105
  * This source code is licensed under the ISC license.
150
106
  * See the LICENSE file in the root directory of this source tree.
151
- */const Pu=le("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
107
+ */const jc=le("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
152
108
  * @license lucide-react v0.542.0 - ISC
153
109
  *
154
110
  * This source code is licensed under the ISC license.
155
111
  * See the LICENSE file in the root directory of this source tree.
156
- */const Sa=le("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
112
+ */const Ho=le("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
157
113
  * @license lucide-react v0.542.0 - ISC
158
114
  *
159
115
  * This source code is licensed under the ISC license.
160
116
  * See the LICENSE file in the root directory of this source tree.
161
- */const Au=le("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
117
+ */const Ic=le("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
162
118
  * @license lucide-react v0.542.0 - ISC
163
119
  *
164
120
  * This source code is licensed under the ISC license.
165
121
  * See the LICENSE file in the root directory of this source tree.
166
- */const Ca=le("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
122
+ */const Go=le("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
167
123
  * @license lucide-react v0.542.0 - ISC
168
124
  *
169
125
  * This source code is licensed under the ISC license.
170
126
  * See the LICENSE file in the root directory of this source tree.
171
- */const Tu=le("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
127
+ */const Oc=le("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
172
128
  * @license lucide-react v0.542.0 - ISC
173
129
  *
174
130
  * This source code is licensed under the ISC license.
175
131
  * See the LICENSE file in the root directory of this source tree.
176
- */const Ea=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ju({...e}){return u.jsx(ha,{"data-slot":"dialog",...e})}function Ou({...e}){return u.jsx(uu,{"data-slot":"dialog-trigger",...e})}function ka({...e}){return u.jsx(ga,{"data-slot":"dialog-portal",...e})}function Iu({...e}){return u.jsx(ba,{"data-slot":"dialog-close",...e})}function Ra({className:e,...t}){return u.jsx(va,{"data-slot":"dialog-overlay",className:O("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Mu({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs(ka,{"data-slot":"dialog-portal",children:[u.jsx(Ra,{}),u.jsxs(xa,{"data-slot":"dialog-content",className:O("bg-background bg-white 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 border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&u.jsxs(ba,{"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:[u.jsx(Ea,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Du({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:O("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Lu({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:O("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function $u({className:e,...t}){return u.jsx(du,{"data-slot":"dialog-title",className:O("text-lg leading-none font-semibold ",e),...t})}function Fu({className:e,...t}){return u.jsx(fu,{"data-slot":"dialog-description",className:O("text-muted-foreground text-sm",e),...t})}const Vu=ce("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}}),Fr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?At:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:O(Vu({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Fr.displayName="Badge";const zu=["top","right","bottom","left"],Oe=Math.min,de=Math.max,Ut=Math.round,Kt=Math.floor,ye=e=>({x:e,y:e}),Bu={left:"right",right:"left",bottom:"top",top:"bottom"},Wu={start:"end",end:"start"};function Vr(e,t,r){return de(e,Oe(t,r))}function _e(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function zr(e){return e==="x"?"y":"x"}function Br(e){return e==="y"?"height":"width"}const Hu=new Set(["top","bottom"]);function we(e){return Hu.has(Pe(e))?"y":"x"}function Wr(e){return zr(we(e))}function Gu(e,t,r){r===void 0&&(r=!1);const n=et(e),o=Wr(e),a=Br(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Yt(s)),[s,Yt(s)]}function Uu(e){const t=Yt(e);return[Hr(e),t,Hr(t)]}function Hr(e){return e.replace(/start|end/g,t=>Wu[t])}const Na=["left","right"],_a=["right","left"],Ku=["top","bottom"],Yu=["bottom","top"];function qu(e,t,r){switch(e){case"top":case"bottom":return r?t?_a:Na:t?Na:_a;case"left":case"right":return t?Ku:Yu;default:return[]}}function Xu(e,t,r,n){const o=et(e);let a=qu(Pe(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Hr)))),a}function Yt(e){return e.replace(/left|right|bottom|top/g,t=>Bu[t])}function Zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?Zu(e):{top:e,right:e,bottom:e,left:e}}function qt(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 Aa(e,t,r){let{reference:n,floating:o}=e;const a=we(t),s=Wr(t),i=Br(s),c=Pe(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(et(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const Ju=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Aa(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:C,reset:k}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=b??f,p=w??p,h={...h,[x]:{...h[x],...C}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Aa(d,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function gt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=_e(t,e),v=Pa(h),x=i[g?p==="floating"?"reference":"floating":p],y=qt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),b=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},k=qt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/C.y,bottom:(k.bottom-y.bottom+v.bottom)/C.y,left:(y.left-k.left+v.left)/C.x,right:(k.right-y.right+v.right)/C.x}}const Qu=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=_e(e,t)||{};if(d==null)return{};const p=Pa(f),g={x:r,y:n},h=Wr(o),v=Br(h),m=await s.getDimensions(d),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],k=g[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=A?A[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(A)))&&(R=i.floating[w]||a.floating[v]);const N=C/2-k/2,H=R/2-m[v]/2-1,K=Oe(p[y],H),X=Oe(p[b],H),Q=K,ee=R-m[v]-X,B=R/2-m[v]/2+N,q=Vr(Q,B,ee),L=!c.arrow&&et(o)!=null&&B!==q&&a.reference[v]/2-(B<Q?K:X)-m[v]/2<0,G=L?B<Q?B-Q:B-ee:0;return{[h]:g[h]+G,data:{[h]:q,centerOffset:B-q-G,...L&&{alignmentOffset:G}},reset:L}}}),ed=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=_e(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Pe(o),b=we(i),w=Pe(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=g||(w||!m?[Yt(i)]:Uu(i)),A=v!=="none";!g&&A&&k.push(...Xu(i,m,v,C));const R=[i,...k],N=await gt(t,x),H=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&H.push(N[y]),p){const B=Gu(o,s,C);H.push(N[B[0]],N[B[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every(B=>B<=0)){var X,Q;const B=(((X=a.flip)==null?void 0:X.index)||0)+1,q=R[B];if(q&&(!(p==="alignment"?b!==we(q):!1)||K.every(_=>we(_.placement)===b?_.overflows[0]>0:!0)))return{data:{index:B,overflows:K},reset:{placement:q}};let L=(Q=K.filter(G=>G.overflows[0]<=0).sort((G,_)=>G.overflows[1]-_.overflows[1])[0])==null?void 0:Q.placement;if(!L)switch(h){case"bestFit":{var ee;const G=(ee=K.filter(_=>{if(A){const re=we(_.placement);return re===b||re==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(re=>re>0).reduce((re,E)=>re+E,0)]).sort((_,re)=>_[1]-re[1])[0])==null?void 0:ee[0];G&&(L=G);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Ta(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ja(e){return zu.some(t=>e[t]>=0)}const td=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=_e(e,t);switch(n){case"referenceHidden":{const a=await gt(t,{...o,elementContext:"reference"}),s=Ta(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ja(s)}}}case"escaped":{const a=await gt(t,{...o,altBoundary:!0}),s=Ta(a,r.floating);return{data:{escapedOffsets:s,escaped:ja(s)}}}default:return{}}}}},Oa=new Set(["left","top"]);async function rd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Pe(r),i=et(r),c=we(r)==="y",d=Oa.has(s)?-1:1,f=a&&c?-1:1,p=_e(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const nd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await rd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},od=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:s=!1,limiter:i={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=_e(e,t),d={x:r,y:n},f=await gt(t,c),p=we(Pe(o)),g=zr(p);let h=d[g],v=d[p];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+f[x],w=h-f[y];h=Vr(b,h,w)}if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=v+f[x],w=v-f[y];v=Vr(b,v,w)}const m=i.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[p]:s}}}}}},ad=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=_e(e,t),f={x:r,y:n},p=we(o),g=zr(p);let h=f[g],v=f[p];const m=_e(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",C=a.reference[g]-a.floating[w]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<C?h=C:h>k&&(h=k)}if(d){var y,b;const w=g==="y"?"width":"height",C=Oa.has(Pe(o)),k=a.reference[p]-a.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:x.crossAxis),A=a.reference[p]+a.reference[w]+(C?0:((b=s.offset)==null?void 0:b[p])||0)-(C?x.crossAxis:0);v<k?v=k:v>A&&(v=A)}return{[g]:h,[p]:v}}}},sd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=_e(e,t),f=await gt(t,d),p=Pe(o),g=et(o),h=we(o)==="y",{width:v,height:m}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,C=Oe(m-f[x],b),k=Oe(v-f[y],w),A=!t.middlewareData.shift;let R=C,N=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=b),A&&!g){const K=de(f.left,0),X=de(f.right,0),Q=de(f.top,0),ee=de(f.bottom,0);h?N=v-2*(K!==0||X!==0?K+X:de(f.left,f.right)):R=m-2*(Q!==0||ee!==0?Q+ee:de(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:R});const H=await s.getDimensions(i.floating);return v!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function Xt(){return typeof window<"u"}function tt(e){return Ia(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(Ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ia(e){return Xt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return Xt()?e instanceof Element||e instanceof fe(e).Element:!1}function Ce(e){return Xt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function Ma(e){return!Xt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const id=new Set(["inline","contents"]);function vt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!id.has(o)}const ld=new Set(["table","td","th"]);function cd(e){return ld.has(tt(e))}const ud=[":popover-open",":modal"];function Zt(e){return ud.some(t=>{try{return e.matches(t)}catch{return!1}})}const dd=["transform","translate","scale","rotate","perspective"],fd=["transform","translate","scale","rotate","perspective","filter"],pd=["paint","layout","strict","content"];function Gr(e){const t=Ur(),r=he(e)?ge(e):e;return dd.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)||fd.some(n=>(r.willChange||"").includes(n))||pd.some(n=>(r.contain||"").includes(n))}function md(e){let t=Ie(e);for(;Ce(t)&&!rt(t);){if(Gr(t))return t;if(Zt(t))return null;t=Ie(t)}return null}function Ur(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hd=new Set(["html","body","#document"]);function rt(e){return hd.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function Jt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ma(e)&&e.host||Se(e);return Ma(t)?t.host:t}function Da(e){const t=Ie(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&vt(t)?t:Da(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Da(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Kr(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function Kr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function La(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Ut(r)!==a||Ut(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Yr(e){return he(e)?e:e.contextElement}function nt(e){const t=Yr(e);if(!Ce(t))return ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=La(t);let s=(a?Ut(r.width):r.width)/n,i=(a?Ut(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const gd=ye(0);function $a(e){const t=fe(e);return!Ur()||!t.visualViewport?gd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Yr(e);let s=ye(1);t&&(n?he(n)&&(s=nt(n)):s=nt(e));const i=vd(a,r,n)?$a(a):ye(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=fe(a),h=n&&he(n)?fe(n):n;let v=g,m=Kr(v);for(;m&&n&&h!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,C=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,d*=x.y,f*=x.x,p*=x.y,c+=w,d+=C,v=fe(m),m=Kr(v)}}return qt({width:f,height:p,x:c,y:d})}function Qt(e,t){const r=Jt(e).scrollLeft;return t?t.left+r:We(Se(e)).left+r}function Fa(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Qt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function xd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Se(n),i=t?Zt(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=ye(1);const f=ye(0),p=Ce(n);if((p||!p&&!a)&&((tt(n)!=="body"||vt(s))&&(c=Jt(n)),Ce(n))){const h=We(n);d=nt(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?Fa(s,c):ye(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-c.scrollTop*d.y+f.y+g.y}}function bd(e){return Array.from(e.getClientRects())}function yd(e){const t=Se(e),r=Jt(e),n=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=de(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Qt(e);const i=-r.scrollTop;return ge(n).direction==="rtl"&&(s+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Va=25;function wd(e,t){const r=fe(e),n=Se(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=Ur();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=Qt(n);if(d<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=Va&&(a-=v)}else d<=Va&&(a+=d);return{width:a,height:s,x:i,y:c}}const Sd=new Set(["absolute","fixed"]);function Cd(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ce(e)?nt(e):ye(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function za(e,t,r){let n;if(t==="viewport")n=wd(e,r);else if(t==="document")n=yd(Se(e));else if(he(t))n=Cd(t,r);else{const o=$a(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qt(n)}function Ba(e,t){const r=Ie(e);return r===t||!he(r)||rt(r)?!1:ge(r).position==="fixed"||Ba(r,t)}function Ed(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?Ie(e):e;for(;he(s)&&!rt(s);){const i=ge(s),c=Gr(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&Sd.has(o.position)||vt(s)&&!c&&Ba(e,s))?n=n.filter(f=>f!==s):o=i,s=Ie(s)}return t.set(e,n),n}function kd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Zt(t)?[]:Ed(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,f)=>{const p=za(t,f,o);return d.top=de(p.top,d.top),d.right=Oe(p.right,d.right),d.bottom=Oe(p.bottom,d.bottom),d.left=de(p.left,d.left),d},za(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Rd(e){const{width:t,height:r}=La(e);return{width:t,height:r}}function Nd(e,t,r){const n=Ce(t),o=Se(t),a=r==="fixed",s=We(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=ye(0);function d(){c.x=Qt(o)}if(n||!n&&!a)if((tt(t)!=="body"||vt(o))&&(i=Jt(t)),n){const h=We(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?Fa(o,i):ye(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function qr(e){return ge(e).position==="static"}function Wa(e,t){if(!Ce(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function Ha(e,t){const r=fe(e);if(Zt(e))return r;if(!Ce(e)){let o=Ie(e);for(;o&&!rt(o);){if(he(o)&&!qr(o))return o;o=Ie(o)}return r}let n=Wa(e,t);for(;n&&cd(n)&&qr(n);)n=Wa(n,t);return n&&rt(n)&&qr(n)&&!Gr(n)?r:n||md(e)||r}const _d=async function(e){const t=this.getOffsetParent||Ha,r=this.getDimensions,n=await r(e.floating);return{reference:Nd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pd(e){return ge(e).direction==="rtl"}const Ad={convertOffsetParentRelativeRectToViewportRelativeRect:xd,getDocumentElement:Se,getClippingRect:kd,getOffsetParent:Ha,getElementRects:_d,getClientRects:bd,getDimensions:Rd,getScale:nt,isElement:he,isRTL:Pd};function Ga(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Td(e,t){let r=null,n;const o=Se(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=Kt(p),m=Kt(o.clientWidth-(f+g)),x=Kt(o.clientHeight-(p+h)),y=Kt(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Oe(1,c))||1};let C=!0;function k(A){const R=A[0].intersectionRatio;if(R!==c){if(!C)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Ga(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,w)}r.observe(e)}return s(!0),a}function jd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Yr(e),f=o||a?[...d?xt(d):[],...xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=d&&i?Td(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?We(e):null;c&&x();function x(){const y=We(e);m&&!Ga(m,y)&&r(),m=y,v=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p==null||p(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Od=nd,Id=od,Md=ed,Dd=sd,Ld=td,Ua=Qu,$d=ad,Fd=(e,t,r)=>{const n=new Map,o={platform:Ad,...r},a={...o.platform,_c:n};return Ju(e,t,{...o,platform:a})};var Vd=typeof document<"u",zd=function(){},er=Vd?te.useLayoutEffect:zd;function tr(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(!tr(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)&&!tr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ka(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ya(e,t){const r=Ka(e);return Math.round(t*r)/r}function Xr(e){const t=l.useRef(e);return er(()=>{t.current=e}),t}function Bd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);tr(g,n)||h(n);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(_=>{_!==A.current&&(A.current=_,m(_))},[]),w=l.useCallback(_=>{_!==R.current&&(R.current=_,y(_))},[]),C=a||v,k=s||x,A=l.useRef(null),R=l.useRef(null),N=l.useRef(f),H=c!=null,K=Xr(c),X=Xr(o),Q=Xr(d),ee=l.useCallback(()=>{if(!A.current||!R.current)return;const _={placement:t,strategy:r,middleware:g};X.current&&(_.platform=X.current),Fd(A.current,R.current,_).then(re=>{const E={...re,isPositioned:Q.current!==!1};B.current&&!tr(N.current,E)&&(N.current=E,Pt.flushSync(()=>{p(E)}))})},[g,t,r,X,Q]);er(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const B=l.useRef(!1);er(()=>(B.current=!0,()=>{B.current=!1}),[]),er(()=>{if(C&&(A.current=C),k&&(R.current=k),C&&k){if(K.current)return K.current(C,k,ee);ee()}},[C,k,ee,K,H]);const q=l.useMemo(()=>({reference:A,floating:R,setReference:b,setFloating:w}),[b,w]),L=l.useMemo(()=>({reference:C,floating:k}),[C,k]),G=l.useMemo(()=>{const _={position:r,left:0,top:0};if(!L.floating)return _;const re=Ya(L.floating,f.x),E=Ya(L.floating,f.y);return i?{..._,transform:"translate("+re+"px, "+E+"px)",...Ka(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:E}},[r,i,L.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:L,floatingStyles:G}),[f,ee,q,L,G])}const Wd=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?Ua({element:n.current,padding:o}).fn(r):{}:n?Ua({element:n,padding:o}).fn(r):{}}}},Hd=(e,t)=>({...Od(e),options:[e,t]}),Gd=(e,t)=>({...Id(e),options:[e,t]}),Ud=(e,t)=>({...$d(e),options:[e,t]}),Kd=(e,t)=>({...Md(e),options:[e,t]}),Yd=(e,t)=>({...Dd(e),options:[e,t]}),qd=(e,t)=>({...Ld(e),options:[e,t]}),Xd=(e,t)=>({...Wd(e),options:[e,t]});var Zd="Arrow",qa=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(z.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});qa.displayName=Zd;var Jd=qa,Zr="Popper",[Xa,ot]=xe(Zr),[Qd,Za]=Xa(Zr),Ja=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx(Qd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ja.displayName=Zr;var Qa="PopperAnchor",es=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Za(Qa,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(z.div,{...o,ref:i})});es.displayName=Qa;var Jr="PopperContent",[ef,tf]=Xa(Jr),ts=l.forwardRef((e,t)=>{var P,$,U,Z,ne,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=Za(Jr,r),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[C,k]=l.useState(null),A=fo(C),R=(A==null?void 0:A.width)??0,N=(A==null?void 0:A.height)??0,H=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(nf),altBoundary:Q},{refs:B,floatingStyles:q,placement:L,isPositioned:G,middlewareData:_}=Bd({strategy:"fixed",placement:H,whileElementsMounted:(...pe)=>jd(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Hd({mainAxis:o+N,alignmentAxis:s}),c&&Gd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ud():void 0,...ee}),c&&Kd({...ee}),Yd({...ee,apply:({elements:pe,rects:Ee,availableWidth:Rt,availableHeight:Nt})=>{const{width:_t,height:sh}=Ee.reference,fr=pe.floating.style;fr.setProperty("--radix-popper-available-width",`${Rt}px`),fr.setProperty("--radix-popper-available-height",`${Nt}px`),fr.setProperty("--radix-popper-anchor-width",`${_t}px`),fr.setProperty("--radix-popper-anchor-height",`${sh}px`)}}),C&&Xd({element:C,padding:i}),of({arrowWidth:R,arrowHeight:N}),g&&qd({strategy:"referenceHidden",...ee})]}),[re,E]=os(L),V=Re(v);ie(()=>{G&&(V==null||V())},[G,V]);const S=(P=_.arrow)==null?void 0:P.x,T=($=_.arrow)==null?void 0:$.y,D=((U=_.arrow)==null?void 0:U.centerOffset)!==0,[j,Y]=l.useState();return ie(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(Z=_.transformOrigin)==null?void 0:Z.x,(ne=_.transformOrigin)==null?void 0:ne.y].join(" "),...((oe=_.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(ef,{scope:r,placedSide:re,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:D,children:u.jsx(z.div,{"data-side":re,"data-align":E,...m,ref:w,style:{...m.style,animation:G?void 0:"none"}})})})});ts.displayName=Jr;var rs="PopperArrow",rf={top:"bottom",right:"left",bottom:"top",left:"right"},ns=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=tf(rs,n),s=rf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(Jd,{...o,ref:r,style:{...o.style,display:"block"}})})});ns.displayName=rs;function nf(e){return e!==null}var of=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:r,rects:n,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=os(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):d==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function os(e){const[t,r="center"]=e.split("-");return[t,r]}var Qr=Ja,rr=es,en=ts,tn=ns,as=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"}),af="VisuallyHidden",ss=l.forwardRef((e,t)=>u.jsx(z.span,{...e,ref:t,style:{...as,...e.style}}));ss.displayName=af;var sf=ss,[nr,Th]=xe("Tooltip",[ot]),or=ot(),is="TooltipProvider",lf=700,rn="tooltip.open",[cf,nn]=nr(is),ls=e=>{const{__scopeTooltip:t,delayDuration:r=lf,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(cf,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};ls.displayName=is;var bt="Tooltip",[uf,yt]=nr(bt),cs=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=nn(bt,e.__scopeTooltip),d=or(t),[f,p]=l.useState(null),g=ue(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=Te({prop:n,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(rn))):c.onClose(),a==null||a(R)},caller:bt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,b(!0)},[b]),k=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),A=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,b(!0),h.current=0},m)},[m,b]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(Qr,{...d,children:u.jsx(uf,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:C,onClose:k,disableHoverableContent:v,children:r})})};cs.displayName=bt;var on="TooltipTrigger",us=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(on,r),a=nn(on,r),s=or(r),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(rr,{asChild:!0,...s,children:u.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:W(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:W(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:W(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:W(e.onBlur,o.onClose),onClick:W(e.onClick,o.onClose)})})});us.displayName=on;var an="TooltipPortal",[df,ff]=nr(an,{forceMount:void 0}),ds=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(an,t);return u.jsx(df,{scope:t,forceMount:r,children:u.jsx(Ne,{present:r||a.open,children:u.jsx(ht,{asChild:!0,container:o,children:n})})})};ds.displayName=an;var at="TooltipContent",fs=l.forwardRef((e,t)=>{const r=ff(at,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(at,e.__scopeTooltip);return u.jsx(Ne,{present:n||s.open,children:s.disableHoverableContent?u.jsx(ps,{side:o,...a,ref:t}):u.jsx(pf,{side:o,...a,ref:t})})}),pf=l.forwardRef((e,t)=>{const r=yt(at,e.__scopeTooltip),n=nn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=vf(y,x.getBoundingClientRect()),w=xf(y,b),C=bf(m.getBoundingClientRect()),k=wf([...w,...C]);i(k),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=x=>h(x,f),m=x=>h(x,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,h,g]),l.useEffect(()=>{if(s){const v=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!yf(y,s);b?g():w&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,g]),u.jsx(ps,{...e,ref:a})}),[mf,hf]=nr(bt,{isInside:!1}),gf=Ii("TooltipContent"),ps=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(at,r),d=or(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(rn,f),()=>document.removeEventListener(rn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(en,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(gf,{children:n}),u.jsx(mf,{scope:r,isInside:!0,children:u.jsx(sf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});fs.displayName=at;var ms="TooltipArrow",hs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=or(r);return hf(ms,r).isInside?null:u.jsx(tn,{...o,...n,ref:t})});hs.displayName=ms;function vf(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 xf(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 bf(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 yf(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-d)*(n-f)/(g-f)+d&&(o=!o)}return o}function wf(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),Sf(t)}function Sf(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],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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 Cf=ls,Ef=cs,kf=us,Rf=ds,Nf=fs,_f=hs;function gs({delayDuration:e=0,...t}){return u.jsx(Cf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Pf({...e}){return u.jsx(gs,{children:u.jsx(Ef,{"data-slot":"tooltip",...e})})}function Af({...e}){return u.jsx(kf,{"data-slot":"tooltip-trigger",...e})}function Tf({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(Rf,{children:u.jsxs(Nf,{"data-slot":"tooltip-content",sideOffset:t,className:O("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...n,children:[r,u.jsx(_f,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const jf=ce("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),sn=({label:e,helperText:t,errorText:r,leftIcon:n,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[e&&u.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),u.jsxs("div",{className:O(jf({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),u.jsx("input",{disabled:i,className:O("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&u.jsx("p",{className:O("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),Of=e=>u.jsx(sn,{type:"email",inputMode:"email",...e}),If=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),d=r?r(s):(p=>[{label:"minimum 8 characters",isValid:p.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(p)},{label:"one lowercase character",isValid:/[a-z]/.test(p)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(p)},{label:"one number",isValid:/\d/.test(p)}])(s),f=d.every(p=>p.isValid);return te.useEffect(()=>{t&&t(f,d)},[s,f,d,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),u.jsx(sn,{type:o?"text":"password",value:s,onChange:p=>i(p.target.value),...n,rightIcon:u.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?u.jsx(Ru,{size:18,className:"text-neutral-black-2"}):u.jsx(Nu,{size:18,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:d.map((p,g)=>u.jsxs("div",{className:"flex items-center gap-1",children:[p.isValid?u.jsx(Cu,{size:14,className:"text-success-d"}):u.jsx(Eu,{size:14,className:"text-stroke"}),u.jsx("span",{className:p.isValid?"text-success-d":"text-input",children:p.label})]},g))})]})})},Mf=e=>u.jsx(sn,{type:"search",leftIcon:u.jsx(Sa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function vs(e,[t,r]){return Math.min(r,Math.max(t,e))}var Df=[" ","Enter","ArrowUp","ArrowDown"],Lf=[" ","Enter"],He="Select",[ar,sr,$f]=oo(He),[st,jh]=xe(He,[$f,ot]),ir=ot(),[Ff,Me]=st(He),[Vf,zf]=st(He),xs=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=ir(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[C,k]=l.useState(!1),A=yr(d),[R,N]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[H,K]=Te({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=x?v||!!x.closest("form"):!0,[ee,B]=l.useState(new Set),q=Array.from(ee).map(L=>L.props.value).join(";");return u.jsx(Qr,{...m,children:u.jsxs(Ff,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:ue(),value:H,onValueChange:K,open:R,onOpenChange:N,dir:A,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(ar.Provider,{scope:t,children:u.jsx(Vf,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(L=>{B(G=>new Set(G).add(L))},[]),onNativeOptionRemove:l.useCallback(L=>{B(G=>{const _=new Set(G);return _.delete(L),_})},[]),children:r})}),Q?u.jsxs(Bs,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:H,onChange:L=>K(L.target.value),disabled:g,form:v,children:[H===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};xs.displayName=He;var bs="SelectTrigger",ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=ir(r),s=Me(bs,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),d=sr(r),f=l.useRef("touch"),[p,g,h]=Hs(m=>{const x=d().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=Gs(x,m,y);b!==void 0&&s.onValueChange(b.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(rr,{asChild:!0,...a,children:u.jsx(z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ws(s.value)?"":void 0,...o,ref:c,onClick:W(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:W(o.onPointerDown,m=>{f.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:W(o.onKeyDown,m=>{const x=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Df.includes(m.key)&&(v(),m.preventDefault())})})})});ys.displayName=bs;var ws="SelectValue",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=Me(ws,r),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,p=ae(t,c.onValueNodeChange);return ie(()=>{d(f)},[d,f]),u.jsx(z.span,{...i,ref:p,style:{pointerEvents:"none"},children:Ws(c.value)?u.jsx(u.Fragment,{children:s}):a})});Ss.displayName=ws;var Bf="SelectIcon",Cs=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Cs.displayName=Bf;var Wf="SelectPortal",Es=e=>u.jsx(ht,{asChild:!0,...e});Es.displayName=Wf;var Ge="SelectContent",ks=l.forwardRef((e,t)=>{const r=Me(Ge,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Pt.createPortal(u.jsx(Rs,{scope:e.__scopeSelect,children:u.jsx(ar.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Ns,{...e,ref:t})});ks.displayName=Ge;var ve=10,[Rs,De]=st(Ge),Hf="SelectContentImpl",Gf=Ve("SelectContent.RemoveScroll"),Ns=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Me(Ge,r),[w,C]=l.useState(null),[k,A]=l.useState(null),R=ae(t,P=>C(P)),[N,H]=l.useState(null),[K,X]=l.useState(null),Q=sr(r),[ee,B]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return Ir(w)},[w]),_r();const L=l.useCallback(P=>{const[$,...U]=Q().map(oe=>oe.ref.current),[Z]=U.slice(-1),ne=document.activeElement;for(const oe of P)if(oe===ne||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===$&&k&&(k.scrollTop=0),oe===Z&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==ne))return},[Q,k]),G=l.useCallback(()=>L([N,w]),[L,N,w]);l.useEffect(()=>{ee&&G()},[ee,G]);const{onOpenChange:_,triggerPointerDownPosRef:re}=b;l.useEffect(()=>{if(w){let P={x:0,y:0};const $=Z=>{var ne,oe;P={x:Math.abs(Math.round(Z.pageX)-(((ne=re.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=re.current)==null?void 0:oe.y)??0))}},U=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():w.contains(Z.target)||_(!1),document.removeEventListener("pointermove",$),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",$),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,_,re]),l.useEffect(()=>{const P=()=>_(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[_]);const[E,V]=Hs(P=>{const $=Q().filter(ne=>!ne.disabled),U=$.find(ne=>ne.ref.current===document.activeElement),Z=Gs($,P,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,$,U)=>{const Z=!q.current&&!U;(b.value!==void 0&&b.value===$||Z)&&(H(P),Z&&(q.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),D=l.useCallback((P,$,U)=>{const Z=!q.current&&!U;(b.value!==void 0&&b.value===$||Z)&&X(P)},[b.value]),j=n==="popper"?ln:_s,Y=j===ln?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return u.jsx(Rs,{scope:r,content:w,viewport:k,onViewportChange:A,itemRefCallback:S,selectedItem:N,onItemLeave:T,itemTextRefCallback:D,focusSelectedItem:G,selectedItemText:K,position:n,isPositioned:ee,searchRef:E,children:u.jsx(zt,{as:Gf,allowPinchZoom:!0,children:u.jsx(Mt,{asChild:!0,trapped:b.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:W(o,P=>{var $;($=b.trigger)==null||$.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:u.jsx(j,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:P=>P.preventDefault(),...y,...Y,onPlaced:()=>B(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:W(y.onKeyDown,P=>{const $=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!$&&P.key.length===1&&V(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const ne=P.target,oe=Z.indexOf(ne);Z=Z.slice(oe+1)}setTimeout(()=>L(Z)),P.preventDefault()}})})})})})})});Ns.displayName=Hf;var Uf="SelectItemAlignedPosition",_s=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=Me(Ge,r),s=De(Ge,r),[i,c]=l.useState(null),[d,f]=l.useState(null),p=ae(t,R=>f(R)),g=sr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&x&&y){const R=a.trigger.getBoundingClientRect(),N=d.getBoundingClientRect(),H=a.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=K.left-N.left,oe=H.left-ne,pe=R.left-oe,Ee=R.width+pe,Rt=Math.max(Ee,N.width),Nt=window.innerWidth-ve,_t=vs(oe,[ve,Math.max(ve,Nt-Rt)]);i.style.minWidth=Ee+"px",i.style.left=_t+"px"}else{const ne=N.right-K.right,oe=window.innerWidth-H.right-ne,pe=window.innerWidth-R.right-oe,Ee=R.width+pe,Rt=Math.max(Ee,N.width),Nt=window.innerWidth-ve,_t=vs(oe,[ve,Math.max(ve,Nt-Rt)]);i.style.minWidth=Ee+"px",i.style.right=_t+"px"}const X=g(),Q=window.innerHeight-ve*2,ee=m.scrollHeight,B=window.getComputedStyle(d),q=parseInt(B.borderTopWidth,10),L=parseInt(B.paddingTop,10),G=parseInt(B.borderBottomWidth,10),_=parseInt(B.paddingBottom,10),re=q+L+ee+_+G,E=Math.min(x.offsetHeight*5,re),V=window.getComputedStyle(m),S=parseInt(V.paddingTop,10),T=parseInt(V.paddingBottom,10),D=R.top+R.height/2-ve,j=Q-D,Y=x.offsetHeight/2,P=x.offsetTop+Y,$=q+L+P,U=re-$;if($<=D){const ne=X.length>0&&x===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(j,Y+(ne?T:0)+oe+G),Ee=$+pe;i.style.height=Ee+"px"}else{const ne=X.length>0&&x===X[0].ref.current;i.style.top="0px";const pe=Math.max(D,q+m.offsetTop+(ne?S:0)+Y)+U;i.style.height=pe+"px",m.scrollTop=$-D+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=E+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,x,y,a.dir,n]);ie(()=>w(),[w]);const[C,k]=l.useState();ie(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const A=l.useCallback(R=>{R&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return u.jsx(Yf,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});_s.displayName=Uf;var Kf="SelectPopperPosition",ln=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...a}=e,s=ir(r);return u.jsx(en,{...s,...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)"}})});ln.displayName=Kf;var[Yf,cn]=st(Ge,{}),un="SelectViewport",Ps=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=De(un,r),s=cn(un,r),i=ae(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(ar.Slot,{scope:r,children:u.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:W(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-ve*2,m=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),C=b-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Ps.displayName=un;var As="SelectGroup",[qf,Xf]=st(As),Ts=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ue();return u.jsx(qf,{scope:r,id:o,children:u.jsx(z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Ts.displayName=As;var js="SelectLabel",Os=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Xf(js,r);return u.jsx(z.div,{id:o.id,...n,ref:t})});Os.displayName=js;var lr="SelectItem",[Zf,Is]=st(lr),Ms=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=Me(lr,r),c=De(lr,r),d=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ae(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,n,o)}),m=ue(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.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 u.jsx(Zf,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(b=>{p(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:u.jsx(ar.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:u.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:W(s.onFocus,()=>h(!0)),onBlur:W(s.onBlur,()=>h(!1)),onClick:W(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:W(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:W(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:W(s.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:W(s.onKeyDown,b=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&b.key===" "||(Lf.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Ms.displayName=lr;var wt="SelectItemText",Ds=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=Me(wt,r),i=De(wt,r),c=Is(wt,r),d=zf(wt,r),[f,p]=l.useState(null),g=ae(t,y=>p(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=d;return ie(()=>(m(v),()=>x(v)),[m,x,v]),u.jsxs(u.Fragment,{children:[u.jsx(z.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Pt.createPortal(a.children,s.valueNode):null]})});Ds.displayName=wt;var Ls="SelectItemIndicator",$s=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Is(Ls,r).isSelected?u.jsx(z.span,{"aria-hidden":!0,...n,ref:t}):null});$s.displayName=Ls;var dn="SelectScrollUpButton",Fs=l.forwardRef((e,t)=>{const r=De(dn,e.__scopeSelect),n=cn(dn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(zs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Fs.displayName=dn;var fn="SelectScrollDownButton",Vs=l.forwardRef((e,t)=>{const r=De(fn,e.__scopeSelect),n=cn(fn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(zs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Vs.displayName=fn;var zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=De("SelectScrollButton",r),s=l.useRef(null),i=sr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:W(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:W(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:W(o.onPointerLeave,()=>{c()})})}),Jf="SelectSeparator",Qf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(z.div,{"aria-hidden":!0,...n,ref:t})});Qf.displayName=Jf;var pn="SelectArrow",ep=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ir(r),a=Me(pn,r),s=De(pn,r);return a.open&&s.position==="popper"?u.jsx(tn,{...o,...n,ref:t}):null});ep.displayName=pn;var tp="SelectBubbleInput",Bs=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=po(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(z.select,{...r,style:{...as,...r.style},ref:a,defaultValue:t})});Bs.displayName=tp;function Ws(e){return e===""||e===void 0}function Hs(e){const t=Re(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function Gs(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=rp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function rp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var np=xs,op=ys,ap=Ss,sp=Cs,ip=Es,lp=ks,cp=Ps,up=Ts,dp=Os,fp=Ms,pp=Ds,mp=$s,hp=Fs,gp=Vs;function vp({...e}){return u.jsx(np,{"data-slot":"select",...e})}function xp({...e}){return u.jsx(up,{"data-slot":"select-group",...e})}function bp({...e}){return u.jsx(ap,{"data-slot":"select-value",...e})}function yp({className:e,size:t="default",children:r,...n}){return u.jsxs(op,{"data-slot":"select-trigger","data-size":t,className:O("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground 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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,u.jsx(sp,{asChild:!0,children:u.jsx($r,{className:"size-4 opacity-50"})})]})}function wp({className:e,children:t,position:r="popper",...n}){return u.jsx(ip,{children:u.jsxs(lp,{"data-slot":"select-content",className:O("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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",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,...n,children:[u.jsx(Cp,{}),u.jsx(cp,{className:O("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(Ep,{})]})})}function Sp({className:e,...t}){return u.jsx(dp,{"data-slot":"select-label",className:O("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Us({className:e,children:t,...r}){return u.jsxs(fp,{"data-slot":"select-item",className:O("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(mp,{children:u.jsx(yu,{className:"size-4"})})}),u.jsx(pp,{children:t})]})}function Cp({className:e,...t}){return u.jsx(hp,{"data-slot":"select-scroll-up-button",className:O("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Su,{className:"size-4"})})}function Ep({className:e,...t}){return u.jsx(gp,{"data-slot":"select-scroll-down-button",className:O("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx($r,{className:"size-4"})})}var cr="Popover",[Ks,Oh]=xe(cr,[ot]),St=ot(),[kp,Le]=Ks(cr),Ys=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=St(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,g]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:cr});return u.jsx(Qr,{...i,children:u.jsx(kp,{scope:t,contentId:ue(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};Ys.displayName=cr;var qs="PopoverAnchor",Rp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(qs,r),a=St(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(rr,{...a,...n,ref:t})});Rp.displayName=qs;var Xs="PopoverTrigger",Zs=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(Xs,r),a=St(r),s=ae(t,o.triggerRef),i=u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ri(o.open),...n,ref:s,onClick:W(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(rr,{asChild:!0,...a,children:i})});Zs.displayName=Xs;var mn="PopoverPortal",[Np,_p]=Ks(mn,{forceMount:void 0}),Js=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Le(mn,t);return u.jsx(Np,{scope:t,forceMount:r,children:u.jsx(Ne,{present:r||a.open,children:u.jsx(ht,{asChild:!0,container:o,children:n})})})};Js.displayName=mn;var it="PopoverContent",Qs=l.forwardRef((e,t)=>{const r=_p(it,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Le(it,e.__scopePopover);return u.jsx(Ne,{present:n||a.open,children:a.modal?u.jsx(Ap,{...o,ref:t}):u.jsx(Tp,{...o,ref:t})})});Qs.displayName=it;var Pp=Ve("PopoverContent.RemoveScroll"),Ap=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(null),o=ae(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Ir(s)},[]),u.jsx(zt,{as:Pp,allowPinchZoom:!0,children:u.jsx(ei,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:W(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Tp=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ei=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,g=Le(it,r),h=St(r);return _r(),u.jsx(Mt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(mt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(en,{"data-state":ri(g.open),role:"dialog",id:g.contentId,...h,...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)"}})})})}),ti="PopoverClose",jp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(ti,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});jp.displayName=ti;var Op="PopoverArrow",Ip=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=St(r);return u.jsx(tn,{...o,...n,ref:t})});Ip.displayName=Op;function ri(e){return e?"open":"closed"}var Mp=Ys,Dp=Zs,Lp=Js,$p=Qs;function Fp({...e}){return u.jsx(Mp,{"data-slot":"popover",...e})}function Vp({...e}){return u.jsx(Dp,{"data-slot":"popover-trigger",...e})}function zp({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(Lp,{children:u.jsx($p,{"data-slot":"popover-content",align:t,sideOffset:r,className:O("bg-white text-black 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})})}var ni=1,Bp=.9,Wp=.8,Hp=.17,hn=.1,gn=.999,Gp=.9999,Up=.99,Kp=/[\\\/_+.#"@\[\(\{&]/,Yp=/[\\\/_+.#"@\[\(\{&]/g,qp=/[\s-]/,oi=/[\s-]/g;function vn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?ni:Up;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),f=0,p,g,h,v;d>=0;)p=vn(e,t,r,n,d+1,a+1,s),p>f&&(d===o?p*=ni:Kp.test(e.charAt(d-1))?(p*=Wp,h=e.slice(o,d-1).match(Yp),h&&o>0&&(p*=Math.pow(gn,h.length))):qp.test(e.charAt(d-1))?(p*=Bp,v=e.slice(o,d-1).match(oi),v&&o>0&&(p*=Math.pow(gn,v.length))):(p*=Hp,o>0&&(p*=Math.pow(gn,d-o))),e.charAt(d)!==t.charAt(a)&&(p*=Gp)),(p<hn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=vn(e,t,r,n,d+1,a+2,s),g*hn>p&&(p=g*hn)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[i]=f,f}function ai(e){return e.toLowerCase().replace(oi," ")}function Xp(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,vn(e,t,ai(e),ai(t),0,0,{})}var Ct='[cmdk-group=""]',xn='[cmdk-group-items=""]',Zp='[cmdk-group-heading=""]',si='[cmdk-item=""]',ii=`${si}:not([aria-disabled="true"])`,bn="cmdk-item-select",lt="data-value",Jp=(e,t,r)=>Xp(e,t,r),li=l.createContext(void 0),Et=()=>l.useContext(li),ci=l.createContext(void 0),yn=()=>l.useContext(ci),ui=l.createContext(void 0),di=l.forwardRef((e,t)=>{let r=ct(()=>{var S,T;return{search:"",value:(T=(S=e.value)!=null?S:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=fi(e),{label:c,children:d,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=ue(),w=ue(),C=ue(),k=l.useRef(null),A=cm();Ue(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,R.emit()}},[f]),Ue(()=>{A(6,ee)},[]);let R=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,T,D)=>{var j,Y,P,$;if(!Object.is(r.current[S],T)){if(r.current[S]=T,S==="search")Q(),K(),A(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(j=document.getElementById(b))==null||j.focus()}if(A(7,()=>{var U;r.current.selectedItemId=(U=B())==null?void 0:U.id,R.emit()}),D||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=T??"";($=(P=i.current).onValueChange)==null||$.call(P,U);return}}R.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),N=l.useMemo(()=>({value:(S,T,D)=>{var j;T!==((j=a.current.get(S))==null?void 0:j.value)&&(a.current.set(S,{value:T,keywords:D}),r.current.filtered.items.set(S,H(T,D)),A(2,()=>{K(),R.emit()}))},item:(S,T)=>(n.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),A(3,()=>{Q(),K(),r.current.value||X(),R.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let D=B();A(4,()=>{Q(),(D==null?void 0:D.getAttribute("id"))===S&&X(),R.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:b,inputId:C,labelId:w,listInnerRef:k}),[]);function H(S,T){var D,j;let Y=(j=(D=i.current)==null?void 0:D.filter)!=null?j:Jp;return S?Y(S,r.current.search,T):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,T=[];r.current.filtered.groups.forEach(j=>{let Y=o.current.get(j),P=0;Y.forEach($=>{let U=S.get($);P=Math.max(U,P)}),T.push([j,P])});let D=k.current;q().sort((j,Y)=>{var P,$;let U=j.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-(($=S.get(U))!=null?$:0)}).forEach(j=>{let Y=j.closest(xn);Y?Y.appendChild(j.parentElement===Y?j:j.closest(`${xn} > *`)):D.appendChild(j.parentElement===D?j:j.closest(`${xn} > *`))}),T.sort((j,Y)=>Y[1]-j[1]).forEach(j=>{var Y;let P=(Y=k.current)==null?void 0:Y.querySelector(`${Ct}[${lt}="${encodeURIComponent(j[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(D=>D.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);R.setState("value",T||void 0)}function Q(){var S,T,D,j;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let $=(T=(S=a.current.get(P))==null?void 0:S.value)!=null?T:"",U=(j=(D=a.current.get(P))==null?void 0:D.keywords)!=null?j:[],Z=H($,U);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,$]of o.current)for(let U of $)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,T,D;let j=B();j&&(((S=j.parentElement)==null?void 0:S.firstChild)===j&&((D=(T=j.closest(Ct))==null?void 0:T.querySelector(Zp))==null||D.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function B(){var S;return(S=k.current)==null?void 0:S.querySelector(`${si}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(ii))||[])}function L(S){let T=q()[S];T&&R.setState("value",T.getAttribute(lt))}function G(S){var T;let D=B(),j=q(),Y=j.findIndex($=>$===D),P=j[Y+S];(T=i.current)!=null&&T.loop&&(P=Y+S<0?j[j.length-1]:Y+S===j.length?j[0]:j[Y+S]),P&&R.setState("value",P.getAttribute(lt))}function _(S){let T=B(),D=T==null?void 0:T.closest(Ct),j;for(;D&&!j;)D=S>0?im(D,Ct):lm(D,Ct),j=D==null?void 0:D.querySelector(ii);j?R.setState("value",j.getAttribute(lt)):G(S)}let re=()=>L(q().length-1),E=S=>{S.preventDefault(),S.metaKey?re():S.altKey?_(1):G(1)},V=S=>{S.preventDefault(),S.metaKey?L(0):S.altKey?_(-1):G(-1)};return l.createElement(z.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var T;(T=y.onKeyDown)==null||T.call(y,S);let D=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||D))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&E(S);break}case"ArrowDown":{E(S);break}case"p":case"k":{x&&S.ctrlKey&&V(S);break}case"ArrowUp":{V(S);break}case"Home":{S.preventDefault(),L(0);break}case"End":{S.preventDefault(),re();break}case"Enter":{S.preventDefault();let j=B();if(j){let Y=new Event(bn);j.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:dm},c),ur(e,S=>l.createElement(ci.Provider,{value:R},l.createElement(li.Provider,{value:N},S))))}),Qp=l.forwardRef((e,t)=>{var r,n;let o=ue(),a=l.useRef(null),s=l.useContext(ui),i=Et(),c=fi(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ue(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=pi(o,a,[e.value,e.children,a],e.keywords),p=yn(),g=$e(A=>A.value&&A.value===f.current),h=$e(A=>d||i.filter()===!1?!0:A.search?A.filtered.items.get(o)>0:!0);l.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(bn,v),()=>A.removeEventListener(bn,v)},[h,e.onSelect,e.disabled]);function v(){var A,R;m(),(R=(A=c.current).onSelect)==null||R.call(A,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:C,...k}=e;return l.createElement(z.div,{ref:Fe(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),em=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ue(),i=l.useRef(null),c=l.useRef(null),d=ue(),f=Et(),p=$e(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>f.group(s),[]),pi(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(z.div,{ref:Fe(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),ur(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(ui.Provider,{value:g},h))))}),tm=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=$e(s=>!s.search);return!r&&!a?null:l.createElement(z.div,{ref:Fe(o,t),...n,"cmdk-separator":"",role:"separator"})}),rm=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=yn(),s=$e(d=>d.search),i=$e(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(z.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),nm=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=$e(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(p),g.unobserve(d)}}},[]),l.createElement(z.div,{ref:Fe(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},ur(e,d=>l.createElement("div",{ref:Fe(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),om=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(ha,{open:r,onOpenChange:n},l.createElement(ga,{container:s},l.createElement(va,{"cmdk-overlay":"",className:o}),l.createElement(xa,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(di,{ref:t,...i}))))}),am=l.forwardRef((e,t)=>$e(r=>r.filtered.count===0)?l.createElement(z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),sm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ur(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),kt=Object.assign(di,{List:nm,Item:Qp,Input:rm,Group:em,Separator:tm,Dialog:om,Empty:am,Loading:sm});function im(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function lm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function fi(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ct(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function $e(e){let t=yn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function pi(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ue(()=>{var s;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var cm=()=>{let[e,t]=l.useState(),r=ct(()=>new Map);return Ue(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function um(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ur({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(um(t),{ref:t.ref},r(t.props.children)):r(t)}var dm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function fm({className:e,...t}){return u.jsx(kt,{"data-slot":"command",className:O("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function pm({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Sa,{className:"size-4 shrink-0 opacity-50"}),u.jsx(kt.Input,{"data-slot":"command-input",className:O("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 mm({...e}){return u.jsx(kt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function mi({className:e,...t}){return u.jsx(kt.Group,{"data-slot":"command-group",className:O("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 hi({className:e,...t}){return u.jsx(kt.Item,{"data-slot":"command-item",className:O("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function wn(e){return e.length>0&&e[0].kind==="group"}function hm(e){return e.multiple?u.jsx(vi,{...e}):u.jsx(gi,{...e})}const gi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),d=a??i,f=p=>{c(p),s==null||s(p)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(vp,{value:d,onValueChange:f,disabled:r,children:[u.jsx(yp,{"aria-invalid":!!n,className:O("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(bp,{placeholder:t})}),u.jsx(wp,{className:"w-full bg-white border border-neutral-black-4",children:wn(e)?e.map(p=>u.jsxs(xp,{className:"p-2",children:[u.jsx(Sp,{children:p.label}),p.options.map(g=>u.jsx(Us,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>u.jsx(Us,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},vi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[d,f]=te.useState([]),p=a??d,g=te.useMemo(()=>wn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(x=>x!==v):[...p,v];f(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Fp,{open:i,onOpenChange:c,children:[u.jsx(Vp,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:O("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>u.jsxs(Fr,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Ea,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx($r,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(zp,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(fm,{className:"w-full",children:[u.jsx(pm,{placeholder:"Search..."}),u.jsx(mm,{children:"No results found."}),wn(e)?e.map(v=>u.jsx(mi,{heading:v.label,children:v.options.map(m=>u.jsxs(hi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(mi,{children:g.map(v=>u.jsxs(hi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},gm=ce("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function vm({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?At:"div";return u.jsx(a,{"data-slot":"card",className:O(gm({variant:t}),e),...o,children:n})}var Sn={exports:{}},Cn={};/**
132
+ */const Uo=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Mc=ce(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),Ko=({className:e,...t})=>u.jsx(Mo,{className:I(Mc(),e),...t,children:u.jsx(Lo,{className:"flex items-center justify-center text-white cursor-pointer",children:u.jsx(Wo,{className:"w-3 h-3",strokeWidth:2})})});Ko.displayName="Checkbox";function Dc(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e);l.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 Lc="DismissableLayer",Ar="dismissableLayer.update",$c="dismissableLayer.pointerDownOutside",Fc="dismissableLayer.focusOutside",Yo,qo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(qo),[p,f]=l.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,R=>f(R)),m=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(x),y=p?m.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=b,E=Bc(R=>{const _=R.target,H=[...d.branches].some(K=>K.contains(_));!C||H||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},g),A=Wc(R=>{const _=R.target;[...d.branches].some(K=>K.contains(_))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},g);return Dc(R=>{y===d.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(p)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Yo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Xo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Yo)}},[p,g,r,d]),l.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Xo())},[p,d]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(Ar,R),()=>document.removeEventListener(Ar,R)},[]),u.jsx(z.div,{...c,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,A.onFocusCapture),onBlurCapture:B(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,E.onPointerDownCapture)})});ht.displayName=Lc;var Vc="DismissableLayerBranch",zc=l.forwardRef((e,t)=>{const r=l.useContext(qo),n=l.useRef(null),o=ae(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(z.div,{...e,ref:o})});zc.displayName=Vc;function Bc(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Zo($c,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Wc(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Zo(Fc,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 Xo(){const e=new CustomEvent(Ar);document.dispatchEvent(e)}function Zo(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?Ml(o,a):o.dispatchEvent(a)}var Tr="focusScope.autoFocusOnMount",jr="focusScope.autoFocusOnUnmount",Jo={bubbles:!1,cancelable:!0},Hc="FocusScope",Lt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Ne(o),p=Ne(a),f=l.useRef(null),g=ae(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(w){if(h.paused||!i)return;const C=w.target;i.contains(C)?f.current=C:Ie(f.current,{select:!0})},x=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||Ie(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Ie(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const y=new MutationObserver(b);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),y.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){ta.add(h);const m=document.activeElement;if(!i.contains(m)){const b=new CustomEvent(Tr,Jo);i.addEventListener(Tr,d),i.dispatchEvent(b),b.defaultPrevented||(Gc(Xc(Qo(i)),{select:!0}),document.activeElement===m&&Ie(i))}return()=>{i.removeEventListener(Tr,d),setTimeout(()=>{const b=new CustomEvent(jr,Jo);i.addEventListener(jr,p),i.dispatchEvent(b),b.defaultPrevented||Ie(m??document.body,{select:!0}),i.removeEventListener(jr,p),ta.remove(h)},0)}}},[i,d,p,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(x&&b){const y=m.currentTarget,[w,C]=Uc(y);w&&C?!m.shiftKey&&b===C?(m.preventDefault(),r&&Ie(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&Ie(C,{select:!0})):b===y&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(z.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Lt.displayName=Hc;function Gc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==r)return}function Uc(e){const t=Qo(e),r=ea(t,e),n=ea(t.reverse(),e);return[r,n]}function Qo(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 ea(e,t){for(const r of e)if(!Kc(r,{upTo:t}))return r}function Kc(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 Yc(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Yc(e)&&t&&e.select()}}var ta=qc();function qc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ra(e,t),e.unshift(t)},remove(t){var r;e=ra(e,t),(r=e[0])==null||r.resume()}}}function ra(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Xc(e){return e.filter(t=>t.tagName!=="A")}var Zc="Portal",gt=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Tn.createPortal(u.jsx(z.div,{...n,ref:t}),s):null});gt.displayName=Zc;var Ir=0;function Or(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??na()),document.body.insertAdjacentElement("beforeend",e[1]??na()),Ir++,()=>{Ir===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ir--}},[])}function na(){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 ye=function(){return ye=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},ye.apply(this,arguments)};function oa(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 Jc(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))}typeof SuppressedError=="function"&&SuppressedError;var $t="right-scroll-bar-position",Ft="width-before-scroll-bar",Qc="with-scroll-bars-hidden",eu="--removed-body-scroll-bar-size";function Mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tu(e,t){var r=te.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 ru=typeof window<"u"?l.useLayoutEffect:l.useEffect,aa=new WeakMap;function nu(e,t){var r=tu(null,function(n){return e.forEach(function(o){return Mr(o,n)})});return ru(function(){var n=aa.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Mr(i,null)}),a.forEach(function(i){o.has(i)||Mr(i,s)})}aa.set(r,e)},[e]),r}function ou(e){return e}function au(e,t){t===void 0&&(t=ou);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 s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var p=s;s=[],p.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(p){s.push(p),d()},filter:function(p){return s=s.filter(p),r}}}};return o}function su(e){e===void 0&&(e={});var t=au(null);return t.options=ye({async:!0,ssr:!1},e),t}var sa=function(e){var t=e.sideCar,r=oa(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 l.createElement(n,ye({},r))};sa.isSideCarExport=!0;function iu(e,t){return e.useMedium(t),sa}var ia=su(),Dr=function(){},Vt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Dr,onWheelCapture:Dr,onTouchMoveCapture:Dr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,f=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,C=oa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,A=nu([r,t]),R=ye(ye({},C),o);return l.createElement(l.Fragment,null,p&&l.createElement(E,{sideCar:ia,removeScrollBar:d,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),ye(ye({},R),{ref:A})):l.createElement(y,ye({},R,{className:c,ref:A}),i))});Vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vt.classNames={fullWidth:Ft,zeroRight:$t};var lu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lu();return t&&e.setAttribute("nonce",t),e}function uu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function du(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=cu())&&(uu(t,r),du(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pu=function(){var e=fu();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},la=function(){var e=pu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},mu={left:0,top:0,right:0,gap:0},Lr=function(e){return parseInt(e||"",10)||0},hu=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[Lr(r),Lr(n),Lr(o)]},gu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mu;var t=hu(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])}},vu=la(),Ze="data-scroll-locked",xu=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
133
+ .`.concat(Qc,` {
134
+ overflow: hidden `).concat(n,`;
135
+ padding-right: `).concat(i,"px ").concat(n,`;
136
+ }
137
+ body[`).concat(Ze,`] {
138
+ overflow: hidden `).concat(n,`;
139
+ overscroll-behavior: contain;
140
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
141
+ padding-left: `.concat(o,`px;
142
+ padding-top: `).concat(a,`px;
143
+ padding-right: `).concat(s,`px;
144
+ margin-left:0;
145
+ margin-top:0;
146
+ margin-right: `).concat(i,"px ").concat(n,`;
147
+ `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
148
+ }
149
+
150
+ .`).concat($t,` {
151
+ right: `).concat(i,"px ").concat(n,`;
152
+ }
153
+
154
+ .`).concat(Ft,` {
155
+ margin-right: `).concat(i,"px ").concat(n,`;
156
+ }
157
+
158
+ .`).concat($t," .").concat($t,` {
159
+ right: 0 `).concat(n,`;
160
+ }
161
+
162
+ .`).concat(Ft," .").concat(Ft,` {
163
+ margin-right: 0 `).concat(n,`;
164
+ }
165
+
166
+ body[`).concat(Ze,`] {
167
+ `).concat(eu,": ").concat(i,`px;
168
+ }
169
+ `)},ca=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},bu=function(){l.useEffect(function(){return document.body.setAttribute(Ze,(ca()+1).toString()),function(){var e=ca()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},yu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;bu();var a=l.useMemo(function(){return gu(o)},[o]);return l.createElement(vu,{styles:xu(a,!t,o,r?"":"!important")})},$r=!1;if(typeof window<"u")try{var zt=Object.defineProperty({},"passive",{get:function(){return $r=!0,!0}});window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch{$r=!1}var Je=$r?{passive:!1}:!1,wu=function(e){return e.tagName==="TEXTAREA"},ua=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!wu(e)&&r[t]==="visible")},Su=function(e){return ua(e,"overflowY")},Cu=function(e){return ua(e,"overflowX")},da=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=fa(e,n);if(o){var a=pa(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ku=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Eu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},fa=function(e,t){return e==="v"?Su(t):Cu(t)},pa=function(e,t){return e==="v"?ku(t):Eu(t)},Ru=function(e,t){return e==="h"&&t==="rtl"?-1:1},_u=function(e,t,r,n,o){var a=Ru(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),d=!1,p=s>0,f=0,g=0;do{if(!i)break;var h=pa(e,i),v=h[0],m=h[1],x=h[2],b=m-x-a*v;(v||b)&&fa(e,i)&&(f+=b,g+=v);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(p&&Math.abs(f)<1||!p&&Math.abs(g)<1)&&(d=!0),d},Bt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ma=function(e){return[e.deltaX,e.deltaY]},ha=function(e){return e&&"current"in e?e.current:e},Nu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pu=function(e){return`
170
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
171
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
172
+ `)},Au=0,Qe=[];function Tu(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Au++)[0],a=l.useState(la)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Jc([e.lockRef.current],(e.shards||[]).map(ha),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=Bt(m),y=r.current,w="deltaX"in m?m.deltaX:y[0]-b[0],C="deltaY"in m?m.deltaY:y[1]-b[1],E,A=m.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&A.type==="range")return!1;var _=da(R,A);if(!_)return!0;if(_?E=R:(E=R==="v"?"h":"v",_=da(R,A)),!_)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=E),!E)return!0;var H=n.current||E;return _u(H,x,m,H==="h"?w:C)},[]),c=l.useCallback(function(m){var x=m;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var b="deltaY"in x?ma(x):Bt(x),y=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&Nu(E.delta,b)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(ha).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=w.length>0?i(x,w[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(m,x,b,y){var w={name:m,delta:x,target:b,should:y,shadowParent:ju(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),p=l.useCallback(function(m){r.current=Bt(m),n.current=void 0},[]),f=l.useCallback(function(m){d(m.type,ma(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){d(m.type,Bt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Je),document.addEventListener("touchmove",c,Je),document.addEventListener("touchstart",p,Je),function(){Qe=Qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Je),document.removeEventListener("touchmove",c,Je),document.removeEventListener("touchstart",p,Je)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Pu(o)}):null,h?l.createElement(yu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ju(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Iu=iu(ia,Tu);var Wt=l.forwardRef(function(e,t){return l.createElement(Vt,ye({},e,{ref:t,sideCar:Iu}))});Wt.classNames=Vt.classNames;var Ou=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,Ht=new WeakMap,Gt={},Fr=0,ga=function(e){return e&&(e.host||ga(e.parentNode))},Mu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ga(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})},Du=function(e,t,r,n){var o=Mu(t,Array.isArray(e)?e:[e]);Gt[r]||(Gt[r]=new WeakMap);var a=Gt[r],s=[],i=new Set,c=new Set(o),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};o.forEach(d);var p=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(i.has(g))p(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(et.get(g)||0)+1,x=(a.get(g)||0)+1;et.set(g,m),a.set(g,x),s.push(g),m===1&&v&&Ht.set(g,!0),x===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",g,b)}})};return p(t),i.clear(),Fr++,function(){s.forEach(function(f){var g=et.get(f)-1,h=a.get(f)-1;et.set(f,g),a.set(f,h),g||(Ht.has(f)||f.removeAttribute(n),Ht.delete(f)),h||f.removeAttribute(r)}),Fr--,Fr||(et=new WeakMap,et=new WeakMap,Ht=new WeakMap,Gt={})}},Vr=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Ou(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Du(n,o,r,"aria-hidden")):function(){return null}},Ut="Dialog",[va,Kh]=me(Ut),[Lu,he]=va(Ut),xa=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[d,p]=_e({prop:n,defaultProp:o??!1,onChange:a,caller:Ut});return u.jsx(Lu,{scope:t,triggerRef:i,contentRef:c,contentId:ue(),titleId:ue(),descriptionId:ue(),open:d,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(f=>!f),[p]),modal:s,children:r})};xa.displayName=Ut;var ba="DialogTrigger",ya=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(ba,r),a=ae(t,o.triggerRef);return u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wr(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});ya.displayName=ba;var zr="DialogPortal",[$u,wa]=va(zr,{forceMount:void 0}),Sa=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=he(zr,t);return u.jsx($u,{scope:t,forceMount:r,children:l.Children.map(n,s=>u.jsx(be,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:s})}))})};Sa.displayName=zr;var Kt="DialogOverlay",Ca=l.forwardRef((e,t)=>{const r=wa(Kt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=he(Kt,e.__scopeDialog);return a.modal?u.jsx(be,{present:n||a.open,children:u.jsx(Vu,{...o,ref:t})}):null});Ca.displayName=Kt;var Fu=ze("DialogOverlay.RemoveScroll"),Vu=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Kt,r);return u.jsx(Wt,{as:Fu,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(z.div,{"data-state":Wr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),We="DialogContent",ka=l.forwardRef((e,t)=>{const r=wa(We,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=he(We,e.__scopeDialog);return u.jsx(be,{present:n||a.open,children:a.modal?u.jsx(zu,{...o,ref:t}):u.jsx(Bu,{...o,ref:t})})});ka.displayName=We;var zu=l.forwardRef((e,t)=>{const r=he(We,e.__scopeDialog),n=l.useRef(null),o=ae(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Vr(a)},[]),u.jsx(Ea,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),Bu=l.forwardRef((e,t)=>{const r=he(We,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(Ea,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ea=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(We,r),c=l.useRef(null),d=ae(t,c);return Or(),u.jsxs(u.Fragment,{children:[u.jsx(Lt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Wr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Wu,{titleId:i.titleId}),u.jsx(Gu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Br="DialogTitle",Ra=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Br,r);return u.jsx(z.h2,{id:o.titleId,...n,ref:t})});Ra.displayName=Br;var _a="DialogDescription",Na=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(_a,r);return u.jsx(z.p,{id:o.descriptionId,...n,ref:t})});Na.displayName=_a;var Pa="DialogClose",Aa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Pa,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Aa.displayName=Pa;function Wr(e){return e?"open":"closed"}var Ta="DialogTitleWarning",[Yh,ja]=Dl(Ta,{contentName:We,titleName:Br,docsSlug:"dialog"}),Wu=({titleId:e})=>{const t=ja(Ta),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
173
+
174
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
175
+
176
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Hu="DialogDescriptionWarning",Gu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ja(Hu).contentName}}.`;return l.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},Ia=xa,Uu=ya,Oa=Sa,Ma=Ca,Da=ka,Ku=Ra,Yu=Na,La=Aa;function qu({...e}){return u.jsx(Ia,{"data-slot":"dialog",...e})}function Xu({...e}){return u.jsx(Uu,{"data-slot":"dialog-trigger",...e})}function $a({...e}){return u.jsx(Oa,{"data-slot":"dialog-portal",...e})}function Zu({...e}){return u.jsx(La,{"data-slot":"dialog-close",...e})}function Fa({className:e,...t}){return u.jsx(Ma,{"data-slot":"dialog-overlay",className:I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Ju({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs($a,{"data-slot":"dialog-portal",children:[u.jsx(Fa,{}),u.jsxs(Da,{"data-slot":"dialog-content",className:I("bg-background bg-white 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 border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&u.jsxs(La,{"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:[u.jsx(Uo,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qu({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:I("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ed({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:I("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function td({className:e,...t}){return u.jsx(Ku,{"data-slot":"dialog-title",className:I("text-lg leading-none font-semibold ",e),...t})}function rd({className:e,...t}){return u.jsx(Yu,{"data-slot":"dialog-description",className:I("text-muted-foreground text-sm",e),...t})}const nd=ce("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}}),Hr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?Tt:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:I(nd({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Hr.displayName="Badge";const od=["top","right","bottom","left"],Oe=Math.min,de=Math.max,Yt=Math.round,qt=Math.floor,we=e=>({x:e,y:e}),ad={left:"right",right:"left",bottom:"top",top:"bottom"},sd={start:"end",end:"start"};function Gr(e,t,r){return de(e,Oe(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function Ur(e){return e==="x"?"y":"x"}function Kr(e){return e==="y"?"height":"width"}const id=new Set(["top","bottom"]);function Se(e){return id.has(Ae(e))?"y":"x"}function Yr(e){return Ur(Se(e))}function ld(e,t,r){r===void 0&&(r=!1);const n=tt(e),o=Yr(e),a=Kr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Xt(s)),[s,Xt(s)]}function cd(e){const t=Xt(e);return[qr(e),t,qr(t)]}function qr(e){return e.replace(/start|end/g,t=>sd[t])}const Va=["left","right"],za=["right","left"],ud=["top","bottom"],dd=["bottom","top"];function fd(e,t,r){switch(e){case"top":case"bottom":return r?t?za:Va:t?Va:za;case"left":case"right":return t?ud:dd;default:return[]}}function pd(e,t,r,n){const o=tt(e);let a=fd(Ae(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(qr)))),a}function Xt(e){return e.replace(/left|right|bottom|top/g,t=>ad[t])}function md(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ba(e){return typeof e!="number"?md(e):{top:e,right:e,bottom:e,left:e}}function Zt(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 Wa(e,t,r){let{reference:n,floating:o}=e;const a=Se(t),s=Yr(t),i=Kr(s),c=Ae(t),d=a==="y",p=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:p,y:n.y-o.height};break;case"bottom":h={x:p,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(tt(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const hd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=Wa(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:b}=i[m],{x:y,y:w,data:C,reset:E}=await b({x:p,y:f,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});p=y??p,f=w??f,h={...h,[x]:{...h[x],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:f}=Wa(d,g,c)),m=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:h}};async function vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Ba(h),x=i[g?f==="floating"?"reference":"floating":f],b=Zt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:p,strategy:c})),y=f==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Zt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:c}):y);return{top:(b.top-E.top+v.top)/C.y,bottom:(E.bottom-b.bottom+v.bottom)/C.y,left:(b.left-E.left+v.left)/C.x,right:(E.right-b.right+v.right)/C.x}}const gd=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:p=0}=Pe(e,t)||{};if(d==null)return{};const f=Ba(p),g={x:r,y:n},h=Yr(o),v=Kr(h),m=await s.getDimensions(d),x=h==="y",b=x?"top":"left",y=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],E=g[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=A?A[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(A)))&&(R=i.floating[w]||a.floating[v]);const _=C/2-E/2,H=R/2-m[v]/2-1,K=Oe(f[b],H),X=Oe(f[y],H),Q=K,ee=R-m[v]-X,W=R/2-m[v]/2+_,q=Gr(Q,W,ee),L=!c.arrow&&tt(o)!=null&&W!==q&&a.reference[v]/2-(W<Q?K:X)-m[v]/2<0,G=L?W<Q?W-Q:W-ee:0;return{[h]:g[h]+G,data:{[h]:q,centerOffset:W-q-G,...L&&{alignmentOffset:G}},reset:L}}}),vd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=Ae(o),y=Se(i),w=Ae(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(w||!m?[Xt(i)]:cd(i)),A=v!=="none";!g&&A&&E.push(...pd(i,m,v,C));const R=[i,...E],_=await vt(t,x),H=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&H.push(_[b]),f){const W=ld(o,s,C);H.push(_[W[0]],_[W[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every(W=>W<=0)){var X,Q;const W=(((X=a.flip)==null?void 0:X.index)||0)+1,q=R[W];if(q&&(!(f==="alignment"?y!==Se(q):!1)||K.every(N=>Se(N.placement)===y?N.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:q}};let L=(Q=K.filter(G=>G.overflows[0]<=0).sort((G,N)=>G.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!L)switch(h){case"bestFit":{var ee;const G=(ee=K.filter(N=>{if(A){const re=Se(N.placement);return re===y||re==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(re=>re>0).reduce((re,k)=>re+k,0)]).sort((N,re)=>N[1]-re[1])[0])==null?void 0:ee[0];G&&(L=G);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Ha(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ga(e){return od.some(t=>e[t]>=0)}const xd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Pe(e,t);switch(n){case"referenceHidden":{const a=await vt(t,{...o,elementContext:"reference"}),s=Ha(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ga(s)}}}case"escaped":{const a=await vt(t,{...o,altBoundary:!0}),s=Ha(a,r.floating);return{data:{escapedOffsets:s,escaped:Ga(s)}}}default:return{}}}}},Ua=new Set(["left","top"]);async function bd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ae(r),i=tt(r),c=Se(r)==="y",d=Ua.has(s)?-1:1,p=a&&c?-1:1,f=Pe(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*p,y:g*d}:{x:g*d,y:h*p}}const yd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await bd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},wd=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:s=!1,limiter:i={fn:x=>{let{x:b,y}=x;return{x:b,y}}},...c}=Pe(e,t),d={x:r,y:n},p=await vt(t,c),f=Se(Ae(o)),g=Ur(f);let h=d[g],v=d[f];if(a){const x=g==="y"?"top":"left",b=g==="y"?"bottom":"right",y=h+p[x],w=h-p[b];h=Gr(y,h,w)}if(s){const x=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=v+p[x],w=v-p[b];v=Gr(y,v,w)}const m=i.fn({...t,[g]:h,[f]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[f]:s}}}}}},Sd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Pe(e,t),p={x:r,y:n},f=Se(o),g=Ur(f);let h=p[g],v=p[f];const m=Pe(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",C=a.reference[g]-a.floating[w]+x.mainAxis,E=a.reference[g]+a.reference[w]-x.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var b,y;const w=g==="y"?"width":"height",C=Ua.has(Ae(o)),E=a.reference[f]-a.floating[w]+(C&&((b=s.offset)==null?void 0:b[f])||0)+(C?0:x.crossAxis),A=a.reference[f]+a.reference[w]+(C?0:((y=s.offset)==null?void 0:y[f])||0)-(C?x.crossAxis:0);v<E?v=E:v>A&&(v=A)}return{[g]:h,[f]:v}}}},Cd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=Pe(e,t),p=await vt(t,d),f=Ae(o),g=tt(o),h=Se(o)==="y",{width:v,height:m}=a.floating;let x,b;f==="top"||f==="bottom"?(x=f,b=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,x=g==="end"?"top":"bottom");const y=m-p.top-p.bottom,w=v-p.left-p.right,C=Oe(m-p[x],y),E=Oe(v-p[b],w),A=!t.middlewareData.shift;let R=C,_=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=y),A&&!g){const K=de(p.left,0),X=de(p.right,0),Q=de(p.top,0),ee=de(p.bottom,0);h?_=v-2*(K!==0||X!==0?K+X:de(p.left,p.right)):R=m-2*(Q!==0||ee!==0?Q+ee:de(p.top,p.bottom))}await c({...t,availableWidth:_,availableHeight:R});const H=await s.getDimensions(i.floating);return v!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function rt(e){return Ka(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Ka(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ka(e){return Jt()?e instanceof Node||e instanceof fe(e).Node:!1}function ge(e){return Jt()?e instanceof Element||e instanceof fe(e).Element:!1}function ke(e){return Jt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function Ya(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const kd=new Set(["inline","contents"]);function xt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!kd.has(o)}const Ed=new Set(["table","td","th"]);function Rd(e){return Ed.has(rt(e))}const _d=[":popover-open",":modal"];function Qt(e){return _d.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nd=["transform","translate","scale","rotate","perspective"],Pd=["transform","translate","scale","rotate","perspective","filter"],Ad=["paint","layout","strict","content"];function Xr(e){const t=Zr(),r=ge(e)?ve(e):e;return Nd.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)||Pd.some(n=>(r.willChange||"").includes(n))||Ad.some(n=>(r.contain||"").includes(n))}function Td(e){let t=Me(e);for(;ke(t)&&!nt(t);){if(Xr(t))return t;if(Qt(t))return null;t=Me(t)}return null}function Zr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jd=new Set(["html","body","#document"]);function nt(e){return jd.has(rt(e))}function ve(e){return fe(e).getComputedStyle(e)}function er(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if(rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ya(e)&&e.host||Ce(e);return Ya(t)?t.host:t}function qa(e){const t=Me(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&xt(t)?t:qa(t)}function bt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=qa(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Jr(s);return t.concat(s,s.visualViewport||[],xt(o)?o:[],i&&r?bt(i):[])}return t.concat(o,bt(o,[],r))}function Jr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xa(e){const t=ve(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ke(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Yt(r)!==a||Yt(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Qr(e){return ge(e)?e:e.contextElement}function ot(e){const t=Qr(e);if(!ke(t))return we(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Xa(t);let s=(a?Yt(r.width):r.width)/n,i=(a?Yt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Id=we(0);function Za(e){const t=fe(e);return!Zr()||!t.visualViewport?Id:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Od(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function He(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Qr(e);let s=we(1);t&&(n?ge(n)&&(s=ot(n)):s=ot(e));const i=Od(a,r,n)?Za(a):we(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,p=o.width/s.x,f=o.height/s.y;if(a){const g=fe(a),h=n&&ge(n)?fe(n):n;let v=g,m=Jr(v);for(;m&&n&&h!==v;){const x=ot(m),b=m.getBoundingClientRect(),y=ve(m),w=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*x.x,C=b.top+(m.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,d*=x.y,p*=x.x,f*=x.y,c+=w,d+=C,v=fe(m),m=Jr(v)}}return Zt({width:p,height:f,x:c,y:d})}function tr(e,t){const r=er(e).scrollLeft;return t?t.left+r:He(Ce(e)).left+r}function Ja(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-tr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Md(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Ce(n),i=t?Qt(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=we(1);const p=we(0),f=ke(n);if((f||!f&&!a)&&((rt(n)!=="body"||xt(s))&&(c=er(n)),ke(n))){const h=He(n);d=ot(n),p.x=h.x+n.clientLeft,p.y=h.y+n.clientTop}const g=s&&!f&&!a?Ja(s,c):we(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x+g.x,y:r.y*d.y-c.scrollTop*d.y+p.y+g.y}}function Dd(e){return Array.from(e.getClientRects())}function Ld(e){const t=Ce(e),r=er(e),n=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=de(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+tr(e);const i=-r.scrollTop;return ve(n).direction==="rtl"&&(s+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Qa=25;function $d(e,t){const r=fe(e),n=Ce(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const p=Zr();(!p||p&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=tr(n);if(d<=0){const p=n.ownerDocument,f=p.body,g=getComputedStyle(f),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-f.clientWidth-h);v<=Qa&&(a-=v)}else d<=Qa&&(a+=d);return{width:a,height:s,x:i,y:c}}const Fd=new Set(["absolute","fixed"]);function Vd(e,t){const r=He(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=ke(e)?ot(e):we(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function es(e,t,r){let n;if(t==="viewport")n=$d(e,r);else if(t==="document")n=Ld(Ce(e));else if(ge(t))n=Vd(t,r);else{const o=Za(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(n)}function ts(e,t){const r=Me(e);return r===t||!ge(r)||nt(r)?!1:ve(r).position==="fixed"||ts(r,t)}function zd(e,t){const r=t.get(e);if(r)return r;let n=bt(e,[],!1).filter(i=>ge(i)&&rt(i)!=="body"),o=null;const a=ve(e).position==="fixed";let s=a?Me(e):e;for(;ge(s)&&!nt(s);){const i=ve(s),c=Xr(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&Fd.has(o.position)||xt(s)&&!c&&ts(e,s))?n=n.filter(p=>p!==s):o=i,s=Me(s)}return t.set(e,n),n}function Bd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Qt(t)?[]:zd(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,p)=>{const f=es(t,p,o);return d.top=de(f.top,d.top),d.right=Oe(f.right,d.right),d.bottom=Oe(f.bottom,d.bottom),d.left=de(f.left,d.left),d},es(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Wd(e){const{width:t,height:r}=Xa(e);return{width:t,height:r}}function Hd(e,t,r){const n=ke(t),o=Ce(t),a=r==="fixed",s=He(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=we(0);function d(){c.x=tr(o)}if(n||!n&&!a)if((rt(t)!=="body"||xt(o))&&(i=er(t)),n){const h=He(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const p=o&&!n&&!a?Ja(o,i):we(0),f=s.left+i.scrollLeft-c.x-p.x,g=s.top+i.scrollTop-c.y-p.y;return{x:f,y:g,width:s.width,height:s.height}}function en(e){return ve(e).position==="static"}function rs(e,t){if(!ke(e)||ve(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function ns(e,t){const r=fe(e);if(Qt(e))return r;if(!ke(e)){let o=Me(e);for(;o&&!nt(o);){if(ge(o)&&!en(o))return o;o=Me(o)}return r}let n=rs(e,t);for(;n&&Rd(n)&&en(n);)n=rs(n,t);return n&&nt(n)&&en(n)&&!Xr(n)?r:n||Td(e)||r}const Gd=async function(e){const t=this.getOffsetParent||ns,r=this.getDimensions,n=await r(e.floating);return{reference:Hd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ud(e){return ve(e).direction==="rtl"}const Kd={convertOffsetParentRelativeRectToViewportRelativeRect:Md,getDocumentElement:Ce,getClippingRect:Bd,getOffsetParent:ns,getElementRects:Gd,getClientRects:Dd,getDimensions:Wd,getScale:ot,isElement:ge,isRTL:Ud};function os(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yd(e,t){let r=null,n;const o=Ce(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:p,top:f,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=qt(f),m=qt(o.clientWidth-(p+g)),x=qt(o.clientHeight-(f+h)),b=qt(p),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-b+"px",threshold:de(0,Oe(1,c))||1};let C=!0;function E(A){const R=A[0].intersectionRatio;if(R!==c){if(!C)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!os(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),a}function qd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Qr(e),p=o||a?[...d?bt(d):[],...bt(t)]:[];p.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const f=d&&i?Yd(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?He(e):null;c&&x();function x(){const b=He(e);m&&!os(m,b)&&r(),m=b,v=requestAnimationFrame(x)}return r(),()=>{var b;p.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),f==null||f(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Xd=yd,Zd=wd,Jd=vd,Qd=Cd,ef=xd,as=gd,tf=Sd,rf=(e,t,r)=>{const n=new Map,o={platform:Kd,...r},a={...o.platform,_c:n};return hd(e,t,{...o,platform:a})};var nf=typeof document<"u",of=function(){},rr=nf?te.useLayoutEffect:of;function nr(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(!nr(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)&&!nr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ss(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){const r=ss(e);return Math.round(t*r)/r}function tn(e){const t=l.useRef(e);return rr(()=>{t.current=e}),t}function af(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[p,f]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);nr(g,n)||h(n);const[v,m]=l.useState(null),[x,b]=l.useState(null),y=l.useCallback(N=>{N!==A.current&&(A.current=N,m(N))},[]),w=l.useCallback(N=>{N!==R.current&&(R.current=N,b(N))},[]),C=a||v,E=s||x,A=l.useRef(null),R=l.useRef(null),_=l.useRef(p),H=c!=null,K=tn(c),X=tn(o),Q=tn(d),ee=l.useCallback(()=>{if(!A.current||!R.current)return;const N={placement:t,strategy:r,middleware:g};X.current&&(N.platform=X.current),rf(A.current,R.current,N).then(re=>{const k={...re,isPositioned:Q.current!==!1};W.current&&!nr(_.current,k)&&(_.current=k,At.flushSync(()=>{f(k)}))})},[g,t,r,X,Q]);rr(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[d]);const W=l.useRef(!1);rr(()=>(W.current=!0,()=>{W.current=!1}),[]),rr(()=>{if(C&&(A.current=C),E&&(R.current=E),C&&E){if(K.current)return K.current(C,E,ee);ee()}},[C,E,ee,K,H]);const q=l.useMemo(()=>({reference:A,floating:R,setReference:y,setFloating:w}),[y,w]),L=l.useMemo(()=>({reference:C,floating:E}),[C,E]),G=l.useMemo(()=>{const N={position:r,left:0,top:0};if(!L.floating)return N;const re=is(L.floating,p.x),k=is(L.floating,p.y);return i?{...N,transform:"translate("+re+"px, "+k+"px)",...ss(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:k}},[r,i,L.floating,p.x,p.y]);return l.useMemo(()=>({...p,update:ee,refs:q,elements:L,floatingStyles:G}),[p,ee,q,L,G])}const sf=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?as({element:n.current,padding:o}).fn(r):{}:n?as({element:n,padding:o}).fn(r):{}}}},lf=(e,t)=>({...Xd(e),options:[e,t]}),cf=(e,t)=>({...Zd(e),options:[e,t]}),uf=(e,t)=>({...tf(e),options:[e,t]}),df=(e,t)=>({...Jd(e),options:[e,t]}),ff=(e,t)=>({...Qd(e),options:[e,t]}),pf=(e,t)=>({...ef(e),options:[e,t]}),mf=(e,t)=>({...sf(e),options:[e,t]});var hf="Arrow",ls=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(z.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});ls.displayName=hf;var gf=ls,rn="Popper",[cs,at]=me(rn),[vf,us]=cs(rn),ds=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx(vf,{scope:t,anchor:n,onAnchorChange:o,children:r})};ds.displayName=rn;var fs="PopperAnchor",ps=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=us(fs,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(z.div,{...o,ref:i})});ps.displayName=fs;var nn="PopperContent",[xf,bf]=cs(nn),ms=l.forwardRef((e,t)=>{var P,$,U,Z,ne,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=us(nn,r),[b,y]=l.useState(null),w=ae(t,pe=>y(pe)),[C,E]=l.useState(null),A=Er(C),R=(A==null?void 0:A.width)??0,_=(A==null?void 0:A.height)??0,H=n+(a!=="center"?"-"+a:""),K=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(wf),altBoundary:Q},{refs:W,floatingStyles:q,placement:L,isPositioned:G,middlewareData:N}=af({strategy:"fixed",placement:H,whileElementsMounted:(...pe)=>qd(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[lf({mainAxis:o+_,alignmentAxis:s}),c&&cf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?uf():void 0,...ee}),c&&df({...ee}),ff({...ee,apply:({elements:pe,rects:Ee,availableWidth:_t,availableHeight:Nt})=>{const{width:Pt,height:Ch}=Ee.reference,mr=pe.floating.style;mr.setProperty("--radix-popper-available-width",`${_t}px`),mr.setProperty("--radix-popper-available-height",`${Nt}px`),mr.setProperty("--radix-popper-anchor-width",`${Pt}px`),mr.setProperty("--radix-popper-anchor-height",`${Ch}px`)}}),C&&mf({element:C,padding:i}),Sf({arrowWidth:R,arrowHeight:_}),g&&pf({strategy:"referenceHidden",...ee})]}),[re,k]=vs(L),V=Ne(v);ie(()=>{G&&(V==null||V())},[G,V]);const S=(P=N.arrow)==null?void 0:P.x,T=($=N.arrow)==null?void 0:$.y,D=((U=N.arrow)==null?void 0:U.centerOffset)!==0,[j,Y]=l.useState();return ie(()=>{b&&Y(window.getComputedStyle(b).zIndex)},[b]),u.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(ne=N.transformOrigin)==null?void 0:ne.y].join(" "),...((oe=N.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(xf,{scope:r,placedSide:re,onArrowChange:E,arrowX:S,arrowY:T,shouldHideArrow:D,children:u.jsx(z.div,{"data-side":re,"data-align":k,...m,ref:w,style:{...m.style,animation:G?void 0:"none"}})})})});ms.displayName=nn;var hs="PopperArrow",yf={top:"bottom",right:"left",bottom:"top",left:"right"},gs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=bf(hs,n),s=yf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(gf,{...o,ref:r,style:{...o.style,display:"block"}})})});gs.displayName=hs;function wf(e){return e!==null}var Sf=e=>({name:"transformOrigin",options:e,fn(t){var x,b,y;const{placement:r,rects:n,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,p]=vs(r),f={start:"0%",center:"50%",end:"100%"}[p],g=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?f:`${g}px`,m=`${-c}px`):d==="top"?(v=s?f:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?f:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?f:`${h}px`),{data:{x:v,y:m}}}});function vs(e){const[t,r="center"]=e.split("-");return[t,r]}var on=ds,or=ps,an=ms,sn=gs,xs=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"}),Cf="VisuallyHidden",bs=l.forwardRef((e,t)=>u.jsx(z.span,{...e,ref:t,style:{...xs,...e.style}}));bs.displayName=Cf;var kf=bs,[ar,qh]=me("Tooltip",[at]),sr=at(),ys="TooltipProvider",Ef=700,ln="tooltip.open",[Rf,cn]=ar(ys),ws=e=>{const{__scopeTooltip:t,delayDuration:r=Ef,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(Rf,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};ws.displayName=ys;var yt="Tooltip",[_f,wt]=ar(yt),Ss=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=cn(yt,e.__scopeTooltip),d=sr(t),[p,f]=l.useState(null),g=ue(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[b,y]=_e({prop:n,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(ln))):c.onClose(),a==null||a(R)},caller:yt}),w=l.useMemo(()=>b?x.current?"delayed-open":"instant-open":"closed",[b]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,y(!0)},[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,y(!0),h.current=0},m)},[m,y]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(on,{...d,children:u.jsx(_f,{scope:t,contentId:g,open:b,stateAttribute:w,trigger:p,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:l.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:r})})};Ss.displayName=yt;var un="TooltipTrigger",Cs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=wt(un,r),a=cn(un,r),s=sr(r),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),d=l.useRef(!1),p=l.useRef(!1),f=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(or,{asChild:!0,...s,children:u.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:B(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:B(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:B(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});Cs.displayName=un;var dn="TooltipPortal",[Nf,Pf]=ar(dn,{forceMount:void 0}),ks=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=wt(dn,t);return u.jsx(Nf,{scope:t,forceMount:r,children:u.jsx(be,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};ks.displayName=dn;var st="TooltipContent",Es=l.forwardRef((e,t)=>{const r=Pf(st,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=wt(st,e.__scopeTooltip);return u.jsx(be,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Rs,{side:o,...a,ref:t}):u.jsx(Af,{side:o,...a,ref:t})})}),Af=l.forwardRef((e,t)=>{const r=wt(st,e.__scopeTooltip),n=cn(st,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,p=o.current,{onPointerInTransitChange:f}=n,g=l.useCallback(()=>{i(null),f(!1)},[f]),h=l.useCallback((v,m)=>{const x=v.currentTarget,b={x:v.clientX,y:v.clientY},y=Of(b,x.getBoundingClientRect()),w=Mf(b,y),C=Df(m.getBoundingClientRect()),E=$f([...w,...C]);i(E),f(!0)},[f]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&p){const v=x=>h(x,p),m=x=>h(x,c);return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",m)}}},[c,p,h,g]),l.useEffect(()=>{if(s){const v=m=>{const x=m.target,b={x:m.clientX,y:m.clientY},y=(c==null?void 0:c.contains(x))||(p==null?void 0:p.contains(x)),w=!Lf(b,s);y?g():w&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,s,d,g]),u.jsx(Rs,{...e,ref:a})}),[Tf,jf]=ar(yt,{isInside:!1}),If=Ki("TooltipContent"),Rs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=wt(st,r),d=sr(r),{onClose:p}=c;return l.useEffect(()=>(document.addEventListener(ln,p),()=>document.removeEventListener(ln,p)),[p]),l.useEffect(()=>{if(c.trigger){const f=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,p]),u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:u.jsxs(an,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(If,{children:n}),u.jsx(Tf,{scope:r,isInside:!0,children:u.jsx(kf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});Es.displayName=st;var _s="TooltipArrow",Ns=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=sr(r);return jf(_s,r).isInside?null:u.jsx(sn,{...o,...n,ref:t})});Ns.displayName=_s;function Of(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 Mf(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 Df(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 Lf(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,p=i.y,f=c.x,g=c.y;p>n!=g>n&&r<(f-d)*(n-p)/(g-p)+d&&(o=!o)}return o}function $f(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),Ff(t)}function Ff(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],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.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 Vf=ws,zf=Ss,Bf=Cs,Wf=ks,Hf=Es,Gf=Ns;function Ps({delayDuration:e=0,...t}){return u.jsx(Vf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Uf({...e}){return u.jsx(Ps,{children:u.jsx(zf,{"data-slot":"tooltip",...e})})}function Kf({...e}){return u.jsx(Bf,{"data-slot":"tooltip-trigger",...e})}function Yf({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(Wf,{children:u.jsxs(Hf,{"data-slot":"tooltip-content",sideOffset:t,className:I("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...n,children:[r,u.jsx(Gf,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const qf=ce("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),fn=({label:e,helperText:t,errorText:r,leftIcon:n,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[e&&u.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),u.jsxs("div",{className:I(qf({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),u.jsx("input",{disabled:i,className:I("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&u.jsx("p",{className:I("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),Xf=e=>u.jsx(fn,{type:"email",inputMode:"email",...e}),Zf=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),d=r?r(s):(f=>[{label:"minimum 8 characters",isValid:f.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(f)},{label:"one lowercase character",isValid:/[a-z]/.test(f)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(f)},{label:"one number",isValid:/\d/.test(f)}])(s),p=d.every(f=>f.isValid);return te.useEffect(()=>{t&&t(p,d)},[s,p,d,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),u.jsx(fn,{type:o?"text":"password",value:s,onChange:f=>i(f.target.value),...n,rightIcon:u.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?u.jsx(Pc,{size:18,className:"text-neutral-black-2"}):u.jsx(Ac,{size:18,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:d.map((f,g)=>u.jsxs("div",{className:"flex items-center gap-1",children:[f.isValid?u.jsx(Rc,{size:14,className:"text-success-d"}):u.jsx(_c,{size:14,className:"text-stroke"}),u.jsx("span",{className:f.isValid?"text-success-d":"text-input",children:f.label})]},g))})]})})},Jf=e=>u.jsx(fn,{type:"search",leftIcon:u.jsx(Ho,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function As(e,[t,r]){return Math.min(r,Math.max(t,e))}var Qf=[" ","Enter","ArrowUp","ArrowDown"],ep=[" ","Enter"],Ge="Select",[ir,lr,tp]=co(Ge),[it,Xh]=me(Ge,[tp,at]),cr=at(),[rp,De]=it(Ge),[np,op]=it(Ge),Ts=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:p,autoComplete:f,disabled:g,required:h,form:v}=e,m=cr(t),[x,b]=l.useState(null),[y,w]=l.useState(null),[C,E]=l.useState(!1),A=Sr(d),[R,_]=_e({prop:n,defaultProp:o??!1,onChange:a,caller:Ge}),[H,K]=_e({prop:s,defaultProp:i,onChange:c,caller:Ge}),X=l.useRef(null),Q=x?v||!!x.closest("form"):!0,[ee,W]=l.useState(new Set),q=Array.from(ee).map(L=>L.props.value).join(";");return u.jsx(on,{...m,children:u.jsxs(rp,{required:h,scope:t,trigger:x,onTriggerChange:b,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:ue(),value:H,onValueChange:K,open:R,onOpenChange:_,dir:A,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(ir.Provider,{scope:t,children:u.jsx(np,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(L=>{W(G=>new Set(G).add(L))},[]),onNativeOptionRemove:l.useCallback(L=>{W(G=>{const N=new Set(G);return N.delete(L),N})},[]),children:r})}),Q?u.jsxs(ti,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:f,value:H,onChange:L=>K(L.target.value),disabled:g,form:v,children:[H===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};Ts.displayName=Ge;var js="SelectTrigger",Is=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=cr(r),s=De(js,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),d=lr(r),p=l.useRef("touch"),[f,g,h]=ni(m=>{const x=d().filter(w=>!w.disabled),b=x.find(w=>w.value===s.value),y=oi(x,m,b);y!==void 0&&s.onValueChange(y.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(or,{asChild:!0,...a,children:u.jsx(z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ri(s.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,m=>{m.currentTarget.focus(),p.current!=="mouse"&&v(m)}),onPointerDown:B(o.onPointerDown,m=>{p.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:B(o.onKeyDown,m=>{const x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Qf.includes(m.key)&&(v(),m.preventDefault())})})})});Is.displayName=js;var Os="SelectValue",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=De(Os,r),{onValueNodeHasChildrenChange:d}=c,p=a!==void 0,f=ae(t,c.onValueNodeChange);return ie(()=>{d(p)},[d,p]),u.jsx(z.span,{...i,ref:f,style:{pointerEvents:"none"},children:ri(c.value)?u.jsx(u.Fragment,{children:s}):a})});Ms.displayName=Os;var ap="SelectIcon",Ds=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ds.displayName=ap;var sp="SelectPortal",Ls=e=>u.jsx(gt,{asChild:!0,...e});Ls.displayName=sp;var Ue="SelectContent",$s=l.forwardRef((e,t)=>{const r=De(Ue,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?At.createPortal(u.jsx(Fs,{scope:e.__scopeSelect,children:u.jsx(ir.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Vs,{...e,ref:t})});$s.displayName=Ue;var xe=10,[Fs,Le]=it(Ue),ip="SelectContentImpl",lp=ze("SelectContent.RemoveScroll"),Vs=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...b}=e,y=De(Ue,r),[w,C]=l.useState(null),[E,A]=l.useState(null),R=ae(t,P=>C(P)),[_,H]=l.useState(null),[K,X]=l.useState(null),Q=lr(r),[ee,W]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return Vr(w)},[w]),Or();const L=l.useCallback(P=>{const[$,...U]=Q().map(oe=>oe.ref.current),[Z]=U.slice(-1),ne=document.activeElement;for(const oe of P)if(oe===ne||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===$&&E&&(E.scrollTop=0),oe===Z&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==ne))return},[Q,E]),G=l.useCallback(()=>L([_,w]),[L,_,w]);l.useEffect(()=>{ee&&G()},[ee,G]);const{onOpenChange:N,triggerPointerDownPosRef:re}=y;l.useEffect(()=>{if(w){let P={x:0,y:0};const $=Z=>{var ne,oe;P={x:Math.abs(Math.round(Z.pageX)-(((ne=re.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=re.current)==null?void 0:oe.y)??0))}},U=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():w.contains(Z.target)||N(!1),document.removeEventListener("pointermove",$),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",$),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,N,re]),l.useEffect(()=>{const P=()=>N(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[N]);const[k,V]=ni(P=>{const $=Q().filter(ne=>!ne.disabled),U=$.find(ne=>ne.ref.current===document.activeElement),Z=oi($,P,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,$,U)=>{const Z=!q.current&&!U;(y.value!==void 0&&y.value===$||Z)&&(H(P),Z&&(q.current=!0))},[y.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),D=l.useCallback((P,$,U)=>{const Z=!q.current&&!U;(y.value!==void 0&&y.value===$||Z)&&X(P)},[y.value]),j=n==="popper"?pn:zs,Y=j===pn?{side:i,sideOffset:c,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return u.jsx(Fs,{scope:r,content:w,viewport:E,onViewportChange:A,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:D,focusSelectedItem:G,selectedItemText:K,position:n,isPositioned:ee,searchRef:k,children:u.jsx(Wt,{as:lp,allowPinchZoom:!0,children:u.jsx(Lt,{asChild:!0,trapped:y.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:B(o,P=>{var $;($=y.trigger)==null||$.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:u.jsx(j,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:P=>P.preventDefault(),...b,...Y,onPlaced:()=>W(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:B(b.onKeyDown,P=>{const $=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!$&&P.key.length===1&&V(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const ne=P.target,oe=Z.indexOf(ne);Z=Z.slice(oe+1)}setTimeout(()=>L(Z)),P.preventDefault()}})})})})})})});Vs.displayName=ip;var cp="SelectItemAlignedPosition",zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=De(Ue,r),s=Le(Ue,r),[i,c]=l.useState(null),[d,p]=l.useState(null),f=ae(t,R=>p(R)),g=lr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:b,focusSelectedItem:y}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&x&&b){const R=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),H=a.valueNode.getBoundingClientRect(),K=b.getBoundingClientRect();if(a.dir!=="rtl"){const ne=K.left-_.left,oe=H.left-ne,pe=R.left-oe,Ee=R.width+pe,_t=Math.max(Ee,_.width),Nt=window.innerWidth-xe,Pt=As(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Ee+"px",i.style.left=Pt+"px"}else{const ne=_.right-K.right,oe=window.innerWidth-H.right-ne,pe=window.innerWidth-R.right-oe,Ee=R.width+pe,_t=Math.max(Ee,_.width),Nt=window.innerWidth-xe,Pt=As(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Ee+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-xe*2,ee=m.scrollHeight,W=window.getComputedStyle(d),q=parseInt(W.borderTopWidth,10),L=parseInt(W.paddingTop,10),G=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),re=q+L+ee+N+G,k=Math.min(x.offsetHeight*5,re),V=window.getComputedStyle(m),S=parseInt(V.paddingTop,10),T=parseInt(V.paddingBottom,10),D=R.top+R.height/2-xe,j=Q-D,Y=x.offsetHeight/2,P=x.offsetTop+Y,$=q+L+P,U=re-$;if($<=D){const ne=X.length>0&&x===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(j,Y+(ne?T:0)+oe+G),Ee=$+pe;i.style.height=Ee+"px"}else{const ne=X.length>0&&x===X[0].ref.current;i.style.top="0px";const pe=Math.max(D,q+m.offsetTop+(ne?S:0)+Y)+U;i.style.height=pe+"px",m.scrollTop=$-D+m.offsetTop}i.style.margin=`${xe}px 0`,i.style.minHeight=k+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,x,b,a.dir,n]);ie(()=>w(),[w]);const[C,E]=l.useState();ie(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const A=l.useCallback(R=>{R&&v.current===!0&&(w(),y==null||y(),v.current=!1)},[w,y]);return u.jsx(dp,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(z.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});zs.displayName=cp;var up="SelectPopperPosition",pn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=xe,...a}=e,s=cr(r);return u.jsx(an,{...s,...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)"}})});pn.displayName=up;var[dp,mn]=it(Ue,{}),hn="SelectViewport",Bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Le(hn,r),s=mn(hn,r),i=ae(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(ir.Slot,{scope:r,children:u.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,d=>{const p=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&f){const h=Math.abs(c.current-p.scrollTop);if(h>0){const v=window.innerHeight-xe*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),b=Math.max(m,x);if(b<v){const y=b+h,w=Math.min(v,y),C=y-w;f.style.height=w+"px",f.style.bottom==="0px"&&(p.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});Bs.displayName=hn;var Ws="SelectGroup",[fp,pp]=it(Ws),Hs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ue();return u.jsx(fp,{scope:r,id:o,children:u.jsx(z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Hs.displayName=Ws;var Gs="SelectLabel",Us=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=pp(Gs,r);return u.jsx(z.div,{id:o.id,...n,ref:t})});Us.displayName=Gs;var ur="SelectItem",[mp,Ks]=it(ur),Ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=De(ur,r),c=Le(ur,r),d=i.value===n,[p,f]=l.useState(a??""),[g,h]=l.useState(!1),v=ae(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,n,o)}),m=ue(),x=l.useRef("touch"),b=()=>{o||(i.onValueChange(n),i.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 u.jsx(mp,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(y=>{f(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:u.jsx(ir.ItemSlot,{scope:r,value:n,disabled:o,textValue:p,children:u.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>h(!0)),onBlur:B(s.onBlur,()=>h(!1)),onClick:B(s.onClick,()=>{x.current!=="mouse"&&b()}),onPointerUp:B(s.onPointerUp,()=>{x.current==="mouse"&&b()}),onPointerDown:B(s.onPointerDown,y=>{x.current=y.pointerType}),onPointerMove:B(s.onPointerMove,y=>{var w;x.current=y.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(s.onKeyDown,y=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(ep.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});Ys.displayName=ur;var St="SelectItemText",qs=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=De(St,r),i=Le(St,r),c=Ks(St,r),d=op(St,r),[p,f]=l.useState(null),g=ae(t,b=>f(b),c.onItemTextChange,b=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,b,c.value,c.disabled)}),h=p==null?void 0:p.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=d;return ie(()=>(m(v),()=>x(v)),[m,x,v]),u.jsxs(u.Fragment,{children:[u.jsx(z.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});qs.displayName=St;var Xs="SelectItemIndicator",Zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Ks(Xs,r).isSelected?u.jsx(z.span,{"aria-hidden":!0,...n,ref:t}):null});Zs.displayName=Xs;var gn="SelectScrollUpButton",Js=l.forwardRef((e,t)=>{const r=Le(gn,e.__scopeSelect),n=mn(gn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(ei,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Js.displayName=gn;var vn="SelectScrollDownButton",Qs=l.forwardRef((e,t)=>{const r=Le(vn,e.__scopeSelect),n=mn(vn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<d;a(p)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(ei,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Qs.displayName=vn;var ei=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Le("SelectScrollButton",r),s=l.useRef(null),i=lr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var p;const d=i().find(f=>f.ref.current===document.activeElement);(p=d==null?void 0:d.ref.current)==null||p.scrollIntoView({block:"nearest"})},[i]),u.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:B(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),hp="SelectSeparator",gp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(z.div,{"aria-hidden":!0,...n,ref:t})});gp.displayName=hp;var xn="SelectArrow",vp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=cr(r),a=De(xn,r),s=Le(xn,r);return a.open&&s.position==="popper"?u.jsx(sn,{...o,...n,ref:t}):null});vp.displayName=xn;var xp="SelectBubbleInput",ti=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=Rr(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&p){const f=new Event("change",{bubbles:!0});p.call(i,t),i.dispatchEvent(f)}},[s,t]),u.jsx(z.select,{...r,style:{...xs,...r.style},ref:a,defaultValue:t})});ti.displayName=xp;function ri(e){return e===""||e===void 0}function ni(e){const t=Ne(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function oi(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=bp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function bp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var yp=Ts,wp=Is,Sp=Ms,Cp=Ds,kp=Ls,Ep=$s,Rp=Bs,_p=Hs,Np=Us,Pp=Ys,Ap=qs,Tp=Zs,jp=Js,Ip=Qs;function Op({...e}){return u.jsx(yp,{"data-slot":"select",...e})}function Mp({...e}){return u.jsx(_p,{"data-slot":"select-group",...e})}function Dp({...e}){return u.jsx(Sp,{"data-slot":"select-value",...e})}function Lp({className:e,size:t="default",children:r,...n}){return u.jsxs(wp,{"data-slot":"select-trigger","data-size":t,className:I("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground 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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,u.jsx(Cp,{asChild:!0,children:u.jsx(Pr,{className:"size-4 opacity-50"})})]})}function $p({className:e,children:t,position:r="popper",...n}){return u.jsx(kp,{children:u.jsxs(Ep,{"data-slot":"select-content",className:I("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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",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,...n,children:[u.jsx(Vp,{}),u.jsx(Rp,{className:I("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(zp,{})]})})}function Fp({className:e,...t}){return u.jsx(Np,{"data-slot":"select-label",className:I("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ai({className:e,children:t,...r}){return u.jsxs(Pp,{"data-slot":"select-item",className:I("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Tp,{children:u.jsx(Wo,{className:"size-4"})})}),u.jsx(Ap,{children:t})]})}function Vp({className:e,...t}){return u.jsx(jp,{"data-slot":"select-scroll-up-button",className:I("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Ec,{className:"size-4"})})}function zp({className:e,...t}){return u.jsx(Ip,{"data-slot":"select-scroll-down-button",className:I("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Pr,{className:"size-4"})})}var dr="Popover",[si,Zh]=me(dr,[at]),Ct=at(),[Bp,$e]=si(dr),ii=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Ct(t),c=l.useRef(null),[d,p]=l.useState(!1),[f,g]=_e({prop:n,defaultProp:o??!1,onChange:a,caller:dr});return u.jsx(on,{...i,children:u.jsx(Bp,{scope:t,contentId:ue(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>p(!0),[]),onCustomAnchorRemove:l.useCallback(()=>p(!1),[]),modal:s,children:r})})};ii.displayName=dr;var li="PopoverAnchor",Wp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(li,r),a=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(or,{...a,...n,ref:t})});Wp.displayName=li;var ci="PopoverTrigger",ui=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(ci,r),a=Ct(r),s=ae(t,o.triggerRef),i=u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hi(o.open),...n,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(or,{asChild:!0,...a,children:i})});ui.displayName=ci;var bn="PopoverPortal",[Hp,Gp]=si(bn,{forceMount:void 0}),di=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=$e(bn,t);return u.jsx(Hp,{scope:t,forceMount:r,children:u.jsx(be,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};di.displayName=bn;var lt="PopoverContent",fi=l.forwardRef((e,t)=>{const r=Gp(lt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=$e(lt,e.__scopePopover);return u.jsx(be,{present:n||a.open,children:a.modal?u.jsx(Kp,{...o,ref:t}):u.jsx(Yp,{...o,ref:t})})});fi.displayName=lt;var Up=ze("PopoverContent.RemoveScroll"),Kp=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(null),o=ae(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Vr(s)},[]),u.jsx(Wt,{as:Up,allowPinchZoom:!0,children:u.jsx(pi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Yp=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),pi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...f}=e,g=$e(lt,r),h=Ct(r);return Or(),u.jsx(Lt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(an,{"data-state":hi(g.open),role:"dialog",id:g.contentId,...h,...f,ref:t,style:{...f.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)"}})})})}),mi="PopoverClose",qp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(mi,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});qp.displayName=mi;var Xp="PopoverArrow",Zp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return u.jsx(sn,{...o,...n,ref:t})});Zp.displayName=Xp;function hi(e){return e?"open":"closed"}var Jp=ii,Qp=ui,em=di,tm=fi;function rm({...e}){return u.jsx(Jp,{"data-slot":"popover",...e})}function nm({...e}){return u.jsx(Qp,{"data-slot":"popover-trigger",...e})}function om({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(em,{children:u.jsx(tm,{"data-slot":"popover-content",align:t,sideOffset:r,className:I("bg-white text-black 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})})}var gi=1,am=.9,sm=.8,im=.17,yn=.1,wn=.999,lm=.9999,cm=.99,um=/[\\\/_+.#"@\[\(\{&]/,dm=/[\\\/_+.#"@\[\(\{&]/g,fm=/[\s-]/,vi=/[\s-]/g;function Sn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?gi:cm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),p=0,f,g,h,v;d>=0;)f=Sn(e,t,r,n,d+1,a+1,s),f>p&&(d===o?f*=gi:um.test(e.charAt(d-1))?(f*=sm,h=e.slice(o,d-1).match(dm),h&&o>0&&(f*=Math.pow(wn,h.length))):fm.test(e.charAt(d-1))?(f*=am,v=e.slice(o,d-1).match(vi),v&&o>0&&(f*=Math.pow(wn,v.length))):(f*=im,o>0&&(f*=Math.pow(wn,d-o))),e.charAt(d)!==t.charAt(a)&&(f*=lm)),(f<yn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=Sn(e,t,r,n,d+1,a+2,s),g*yn>f&&(f=g*yn)),f>p&&(p=f),d=r.indexOf(c,d+1);return s[i]=p,p}function xi(e){return e.toLowerCase().replace(vi," ")}function pm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Sn(e,t,xi(e),xi(t),0,0,{})}var kt='[cmdk-group=""]',Cn='[cmdk-group-items=""]',mm='[cmdk-group-heading=""]',bi='[cmdk-item=""]',yi=`${bi}:not([aria-disabled="true"])`,kn="cmdk-item-select",ct="data-value",hm=(e,t,r)=>pm(e,t,r),wi=l.createContext(void 0),Et=()=>l.useContext(wi),Si=l.createContext(void 0),En=()=>l.useContext(Si),Ci=l.createContext(void 0),ki=l.forwardRef((e,t)=>{let r=ut(()=>{var S,T;return{search:"",value:(T=(S=e.value)!=null?S:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ut(()=>new Set),o=ut(()=>new Map),a=ut(()=>new Map),s=ut(()=>new Set),i=Ei(e),{label:c,children:d,value:p,onValueChange:f,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...b}=e,y=ue(),w=ue(),C=ue(),E=l.useRef(null),A=Rm();Ke(()=>{if(p!==void 0){let S=p.trim();r.current.value=S,R.emit()}},[p]),Ke(()=>{A(6,ee)},[]);let R=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,T,D)=>{var j,Y,P,$;if(!Object.is(r.current[S],T)){if(r.current[S]=T,S==="search")Q(),K(),A(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(j=document.getElementById(y))==null||j.focus()}if(A(7,()=>{var U;r.current.selectedItemId=(U=W())==null?void 0:U.id,R.emit()}),D||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=T??"";($=(P=i.current).onValueChange)==null||$.call(P,U);return}}R.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),_=l.useMemo(()=>({value:(S,T,D)=>{var j;T!==((j=a.current.get(S))==null?void 0:j.value)&&(a.current.set(S,{value:T,keywords:D}),r.current.filtered.items.set(S,H(T,D)),A(2,()=>{K(),R.emit()}))},item:(S,T)=>(n.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),A(3,()=>{Q(),K(),r.current.value||X(),R.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let D=W();A(4,()=>{Q(),(D==null?void 0:D.getAttribute("id"))===S&&X(),R.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:C,labelId:w,listInnerRef:E}),[]);function H(S,T){var D,j;let Y=(j=(D=i.current)==null?void 0:D.filter)!=null?j:hm;return S?Y(S,r.current.search,T):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,T=[];r.current.filtered.groups.forEach(j=>{let Y=o.current.get(j),P=0;Y.forEach($=>{let U=S.get($);P=Math.max(U,P)}),T.push([j,P])});let D=E.current;q().sort((j,Y)=>{var P,$;let U=j.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-(($=S.get(U))!=null?$:0)}).forEach(j=>{let Y=j.closest(Cn);Y?Y.appendChild(j.parentElement===Y?j:j.closest(`${Cn} > *`)):D.appendChild(j.parentElement===D?j:j.closest(`${Cn} > *`))}),T.sort((j,Y)=>Y[1]-j[1]).forEach(j=>{var Y;let P=(Y=E.current)==null?void 0:Y.querySelector(`${kt}[${ct}="${encodeURIComponent(j[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(D=>D.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(ct);R.setState("value",T||void 0)}function Q(){var S,T,D,j;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let $=(T=(S=a.current.get(P))==null?void 0:S.value)!=null?T:"",U=(j=(D=a.current.get(P))==null?void 0:D.keywords)!=null?j:[],Z=H($,U);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,$]of o.current)for(let U of $)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,T,D;let j=W();j&&(((S=j.parentElement)==null?void 0:S.firstChild)===j&&((D=(T=j.closest(kt))==null?void 0:T.querySelector(mm))==null||D.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function W(){var S;return(S=E.current)==null?void 0:S.querySelector(`${bi}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=E.current)==null?void 0:S.querySelectorAll(yi))||[])}function L(S){let T=q()[S];T&&R.setState("value",T.getAttribute(ct))}function G(S){var T;let D=W(),j=q(),Y=j.findIndex($=>$===D),P=j[Y+S];(T=i.current)!=null&&T.loop&&(P=Y+S<0?j[j.length-1]:Y+S===j.length?j[0]:j[Y+S]),P&&R.setState("value",P.getAttribute(ct))}function N(S){let T=W(),D=T==null?void 0:T.closest(kt),j;for(;D&&!j;)D=S>0?km(D,kt):Em(D,kt),j=D==null?void 0:D.querySelector(yi);j?R.setState("value",j.getAttribute(ct)):G(S)}let re=()=>L(q().length-1),k=S=>{S.preventDefault(),S.metaKey?re():S.altKey?N(1):G(1)},V=S=>{S.preventDefault(),S.metaKey?L(0):S.altKey?N(-1):G(-1)};return l.createElement(z.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:S=>{var T;(T=b.onKeyDown)==null||T.call(b,S);let D=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||D))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&k(S);break}case"ArrowDown":{k(S);break}case"p":case"k":{x&&S.ctrlKey&&V(S);break}case"ArrowUp":{V(S);break}case"Home":{S.preventDefault(),L(0);break}case"End":{S.preventDefault(),re();break}case"Enter":{S.preventDefault();let j=W();if(j){let Y=new Event(kn);j.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:Nm},c),fr(e,S=>l.createElement(Si.Provider,{value:R},l.createElement(wi.Provider,{value:_},S))))}),gm=l.forwardRef((e,t)=>{var r,n;let o=ue(),a=l.useRef(null),s=l.useContext(Ci),i=Et(),c=Ei(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ke(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let p=Ri(o,a,[e.value,e.children,a],e.keywords),f=En(),g=Fe(A=>A.value&&A.value===p.current),h=Fe(A=>d||i.filter()===!1?!0:A.search?A.filtered.items.get(o)>0:!0);l.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(kn,v),()=>A.removeEventListener(kn,v)},[h,e.onSelect,e.disabled]);function v(){var A,R;m(),(R=(A=c.current).onSelect)==null||R.call(A,p.current)}function m(){f.setState("value",p.current,!0)}if(!h)return null;let{disabled:x,value:b,onSelect:y,forceMount:w,keywords:C,...E}=e;return l.createElement(z.div,{ref:Ve(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),vm=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ue(),i=l.useRef(null),c=l.useRef(null),d=ue(),p=Et(),f=Fe(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ke(()=>p.group(s),[]),Ri(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(z.div,{ref:Ve(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),fr(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(Ci.Provider,{value:g},h))))}),xm=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=Fe(s=>!s.search);return!r&&!a?null:l.createElement(z.div,{ref:Ve(o,t),...n,"cmdk-separator":"",role:"separator"})}),bm=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=En(),s=Fe(d=>d.search),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(z.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),ym=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,p=a.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=d.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(f),g.unobserve(d)}}},[]),l.createElement(z.div,{ref:Ve(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},fr(e,d=>l.createElement("div",{ref:Ve(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),wm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Ia,{open:r,onOpenChange:n},l.createElement(Oa,{container:s},l.createElement(Ma,{"cmdk-overlay":"",className:o}),l.createElement(Da,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(ki,{ref:t,...i}))))}),Sm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Cm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},fr(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Rt=Object.assign(ki,{List:ym,Item:gm,Input:bm,Group:vm,Separator:xm,Dialog:wm,Empty:Sm,Loading:Cm});function km(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Em(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Ei(e){let t=l.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ut(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=En(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function Ri(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ke(()=>{var s;let i=(()=>{var d;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(d=p.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(ct,i),o.current=i}),o}var Rm=()=>{let[e,t]=l.useState(),r=ut(()=>new Map);return Ke(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function _m(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function fr({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(_m(t),{ref:t.ref},r(t.props.children)):r(t)}var Nm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Pm({className:e,...t}){return u.jsx(Rt,{"data-slot":"command",className:I("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Am({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Ho,{className:"size-4 shrink-0 opacity-50"}),u.jsx(Rt.Input,{"data-slot":"command-input",className:I("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 Tm({...e}){return u.jsx(Rt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function _i({className:e,...t}){return u.jsx(Rt.Group,{"data-slot":"command-group",className:I("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 Ni({className:e,...t}){return u.jsx(Rt.Item,{"data-slot":"command-item",className:I("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Rn(e){return e.length>0&&e[0].kind==="group"}function jm(e){return e.multiple?u.jsx(Ai,{...e}):u.jsx(Pi,{...e})}const Pi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),d=a??i,p=f=>{c(f),s==null||s(f)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Op,{value:d,onValueChange:p,disabled:r,children:[u.jsx(Lp,{"aria-invalid":!!n,className:I("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(Dp,{placeholder:t})}),u.jsx($p,{className:"w-full bg-white border border-neutral-black-4",children:Rn(e)?e.map(f=>u.jsxs(Mp,{className:"p-2",children:[u.jsx(Fp,{children:f.label}),f.options.map(g=>u.jsx(ai,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},f.label)):e.map(f=>u.jsx(ai,{value:f.value,disabled:f.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:f.label},f.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Ai=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[d,p]=te.useState([]),f=a??d,g=te.useMemo(()=>Rn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=f.includes(v)?f.filter(x=>x!==v):[...f,v];p(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(rm,{open:i,onOpenChange:c,children:[u.jsx(nm,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:I("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:f.length>0?f.map(v=>u.jsxs(Hr,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Uo,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx(Pr,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(om,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(Pm,{className:"w-full",children:[u.jsx(Am,{placeholder:"Search..."}),u.jsx(Tm,{children:"No results found."}),Rn(e)?e.map(v=>u.jsx(_i,{heading:v.label,children:v.options.map(m=>u.jsxs(Ni,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(_i,{children:g.map(v=>u.jsxs(Ni,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Im=ce("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function Om({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?Tt:"div";return u.jsx(a,{"data-slot":"card",className:I(Im({variant:t}),e),...o,children:n})}var _n={exports:{}},Nn={};/**
177
177
  * @license React
178
178
  * use-sync-external-store-shim.production.js
179
179
  *
@@ -181,7 +181,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
181
181
  *
182
182
  * This source code is licensed under the MIT license found in the
183
183
  * LICENSE file in the root directory of this source tree.
184
- */var xi;function xm(){if(xi)return Cn;xi=1;var e=te;function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(p,g){var h=g(),v=n({inst:{value:h,getSnapshot:g}}),m=v[0].inst,x=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&x({inst:m})},[p,h,g]),o(function(){return c(m)&&x({inst:m}),p(function(){c(m)&&x({inst:m})})},[p]),s(h),h}function c(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!r(p,h)}catch{return!0}}function d(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return Cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Cn}var En={};/**
184
+ */var Ti;function Mm(){if(Ti)return Nn;Ti=1;var e=te;function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(f,g){var h=g(),v=n({inst:{value:h,getSnapshot:g}}),m=v[0].inst,x=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&x({inst:m})},[f,h,g]),o(function(){return c(m)&&x({inst:m}),f(function(){c(m)&&x({inst:m})})},[f]),s(h),h}function c(f){var g=f.getSnapshot;f=f.value;try{var h=g();return!r(f,h)}catch{return!0}}function d(f,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return Nn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Nn}var Pn={};/**
185
185
  * @license React
186
186
  * use-sync-external-store-shim.development.js
187
187
  *
@@ -189,4 +189,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
189
189
  *
190
190
  * This source code is licensed under the MIT license found in the
191
191
  * LICENSE file in the root directory of this source tree.
192
- */var bi;function bm(){return bi||(bi=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!p){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}x=s({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,r(y)&&b({inst:y})},[h,m,v]),i(function(){return r(y)&&b({inst:y}),h(function(){r(y)&&b({inst:y})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=te,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;En.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),En}process.env.NODE_ENV==="production"?Sn.exports=xm():Sn.exports=bm();var ym=Sn.exports;function wm(){return ym.useSyncExternalStore(Sm,()=>!0,()=>!1)}function Sm(){return()=>{}}var kn="Avatar",[Cm,Ih]=xe(kn),[Em,yi]=Cm(kn),wi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(Em,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(z.span,{...n,ref:t})})});wi.displayName=kn;var Si="AvatarImage",Ci=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=yi(Si,r),i=km(n,a),c=Re(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(z.img,{...a,ref:t,src:n}):null});Ci.displayName=Si;var Ei="AvatarFallback",ki=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=yi(Ei,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(z.span,{...o,ref:t}):null});ki.displayName=Ei;function Ri(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function km(e,{referrerPolicy:t,crossOrigin:r}){const n=wm(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Ri(a,e));return ie(()=>{i(Ri(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,r,t]),s}var Rm=wi,Ni=Ci,dr=ki;const Nm=ce("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),_m=ce("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),Pm=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),Am=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function Tm(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(Rm,{className:O(Nm({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Ni,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(dr,{children:u.jsx(Ca,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(dr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(dr,{children:u.jsx(Ca,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:_m({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:Pm({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:Am({size:r}),children:u.jsx(xu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function jm({className:e,...t}){return u.jsx(Ni,{className:O("aspect-square h-full w-full",e),...t})}function Om({className:e,...t}){return u.jsx(dr,{className:O("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Im="Separator",_i="horizontal",Mm=["horizontal","vertical"],Pi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=_i,...o}=e,a=Dm(n)?n:_i,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(z.div,{"data-orientation":a,...i,...o,ref:t})});Pi.displayName=Im;function Dm(e){return Mm.includes(e)}var Lm=Pi;function $m({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(Lm,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:O("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Fm=ce("flex flex-col gap-12"),Vm=ce("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),zm=ce("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),Bm=(e,t)=>e&&!t;function Wm({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:O(Fm(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=Bm(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:O(Vm({variant:t,visited:!f})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:O("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:O(zm({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:O("text-[var(--color-neutral-black-1)] text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const Hm=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(_u,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(Tu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(bu,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(Au,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:O("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},Gm=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Ai=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Gm(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,f=2*Math.PI*d,p=f-s/100*f;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:O("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:O("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Ai.displayName="ProgressIndicator";function Um({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:O("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function Km({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:O("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(Xn,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function Ym({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function qm({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:O("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function Xm({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:O("inline-flex items-center gap-1.5",e),...t})}function Zm({asChild:e,className:t,...r}){const n=e?At:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:O("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function Jm({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:O("text-neutral-black-2 cursor-default",e),...t})}function Qm({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:O("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(wu,{})})}function eh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:O("flex size-9 items-center justify-center",e),...t,children:[u.jsx(ku,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const th=ce("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),rh=ce("flex items-center gap-3");function nh({className:e,children:t,...r}){return u.jsx("nav",{className:O(th(),e),...r,children:t})}function oh({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:O(rh(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(Pu,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function ah({children:e,className:t}){return u.jsx("div",{className:O("flex items-center gap-2",t),children:e})}F.Avatar=Tm,F.AvatarFallback=Om,F.AvatarImage=jm,F.Badge=Fr,F.Breadcrumb=Ym,F.BreadcrumbEllipsis=eh,F.BreadcrumbItem=Xm,F.BreadcrumbLink=Zm,F.BreadcrumbList=qm,F.BreadcrumbPage=Jm,F.BreadcrumbSeparator=Qm,F.Button=Xn,F.Card=vm,F.Dialog=ju,F.DialogClose=Iu,F.DialogContent=Mu,F.DialogDescription=Fu,F.DialogFooter=Lu,F.DialogHeader=Du,F.DialogOverlay=Ra,F.DialogPortal=ka,F.DialogTitle=$u,F.DialogTrigger=Ou,F.Divider=$m,F.EmailInput=Of,F.MultiSelect=vi,F.Navigation=nh,F.NavigationEnd=ah,F.NavigationStart=oh,F.Page404=Km,F.PasswordInput=If,F.Placeholder=Hm,F.ProgressIndicator=Ai,F.RadioGroup=_o,F.RadioGroupItem=Po,F.SearchInput=Mf,F.SelectOption=hm,F.SingleSelect=gi,F.Skeleton=Um,F.StatefulToggle=no,F.Timeline=Wm,F.Toggle=ro,F.Tooltip=Pf,F.TooltipContent=Tf,F.TooltipProvider=gs,F.TooltipTrigger=Af,F.cn=O,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
192
+ */var ji;function Dm(){return ji||(ji=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!f){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}x=s({inst:{value:m,getSnapshot:v}});var b=x[0].inst,y=x[1];return c(function(){b.value=m,b.getSnapshot=v,r(b)&&y({inst:b})},[h,m,v]),i(function(){return r(b)&&y({inst:b}),h(function(){r(b)&&y({inst:b})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=te,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,p=!1,f=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Pn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Pn}process.env.NODE_ENV==="production"?_n.exports=Mm():_n.exports=Dm();var Lm=_n.exports;function $m(){return Lm.useSyncExternalStore(Fm,()=>!0,()=>!1)}function Fm(){return()=>{}}var An="Avatar",[Vm,Jh]=me(An),[zm,Ii]=Vm(An),Oi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(zm,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(z.span,{...n,ref:t})})});Oi.displayName=An;var Mi="AvatarImage",Di=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=Ii(Mi,r),i=Bm(n,a),c=Ne(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(z.img,{...a,ref:t,src:n}):null});Di.displayName=Mi;var Li="AvatarFallback",$i=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=Ii(Li,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(z.span,{...o,ref:t}):null});$i.displayName=Li;function Fi(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Bm(e,{referrerPolicy:t,crossOrigin:r}){const n=$m(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Fi(a,e));return ie(()=>{i(Fi(a,e))},[a,e]),ie(()=>{const c=f=>()=>{i(f)};if(!a)return;const d=c("loaded"),p=c("error");return a.addEventListener("load",d),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",p)}},[a,r,t]),s}var Wm=Oi,Vi=Di,pr=$i;const Hm=ce("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),Gm=ce("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),Um=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),Km=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function Ym(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(Wm,{className:I(Hm({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Vi,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(pr,{children:u.jsx(Go,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(pr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(pr,{children:u.jsx(Go,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:Gm({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:Um({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:Km({size:r}),children:u.jsx(Sc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function qm({className:e,...t}){return u.jsx(Vi,{className:I("aspect-square h-full w-full",e),...t})}function Xm({className:e,...t}){return u.jsx(pr,{className:I("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Zm="Separator",zi="horizontal",Jm=["horizontal","vertical"],Bi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=zi,...o}=e,a=Qm(n)?n:zi,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(z.div,{"data-orientation":a,...i,...o,ref:t})});Bi.displayName=Zm;function Qm(e){return Jm.includes(e)}var eh=Bi;function th({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(eh,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:I("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const rh=ce("flex flex-col gap-12"),nh=ce("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),oh=ce("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),ah=(e,t)=>e&&!t;function sh({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:I(rh(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=ah(i,c),p=a.notVisited||!1,f=o[s+1],g=(f==null?void 0:f.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:I(nh({variant:t,visited:!p})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:I("text-neutral-black-1",p&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:I(oh({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:I("text-neutral-black-1 text-sm",p&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const ih=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(Tc,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(Oc,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(Cc,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(Ic,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:I("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},lh=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Wi=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=lh(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,p=2*Math.PI*d,f=p-s/100*p;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:I("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:p,strokeDashoffset:f,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:I("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Wi.displayName="ProgressIndicator";function ch({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:I("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function uh({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:I("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(to,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function dh({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function fh({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:I("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function ph({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:I("inline-flex items-center gap-1.5",e),...t})}function mh({asChild:e,className:t,...r}){const n=e?Tt:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:I("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function hh({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:I("text-neutral-black-2 cursor-default",e),...t})}function gh({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:I("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(kc,{})})}function vh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:I("flex size-9 items-center justify-center",e),...t,children:[u.jsx(Nc,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const xh=ce("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),bh=ce("flex items-center gap-3");function yh({className:e,children:t,...r}){return u.jsx("nav",{className:I(xh(),e),...r,children:t})}function wh({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:I(bh(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(jc,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function Sh({children:e,className:t}){return u.jsx("div",{className:I("flex items-center gap-2",t),children:e})}F.Avatar=Ym,F.AvatarFallback=Xm,F.AvatarImage=qm,F.Badge=Hr,F.Breadcrumb=dh,F.BreadcrumbEllipsis=vh,F.BreadcrumbItem=ph,F.BreadcrumbLink=mh,F.BreadcrumbList=fh,F.BreadcrumbPage=hh,F.BreadcrumbSeparator=gh,F.Button=to,F.Card=Om,F.Checkbox=Ko,F.Dialog=qu,F.DialogClose=Zu,F.DialogContent=Ju,F.DialogDescription=rd,F.DialogFooter=ed,F.DialogHeader=Qu,F.DialogOverlay=Fa,F.DialogPortal=$a,F.DialogTitle=td,F.DialogTrigger=Xu,F.Divider=th,F.EmailInput=Xf,F.MultiSelect=Ai,F.Navigation=yh,F.NavigationEnd=Sh,F.NavigationStart=wh,F.Page404=uh,F.PasswordInput=Zf,F.Placeholder=ih,F.ProgressIndicator=Wi,F.RadioGroup=To,F.RadioGroupItem=jo,F.SearchInput=Jf,F.SelectOption=jm,F.SingleSelect=Pi,F.Skeleton=ch,F.StatefulToggle=lo,F.Timeline=sh,F.Toggle=io,F.Tooltip=Uf,F.TooltipContent=Yf,F.TooltipProvider=Ps,F.TooltipTrigger=Kf,F.cn=I,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});