@datawire-ai/busyfile-design-library 1.16.0 → 1.18.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(G,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):(G=typeof globalThis<"u"?globalThis:G||self,te(G.BusyFileDesignSystem={},G.React,G.ReactDOM))})(this,function(G,te,br){"use strict";function yr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=yr(te),At=yr(br);var dn={exports:{}},ut={};/**
1
+ (function(U,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):(U=typeof globalThis<"u"?globalThis:U||self,te(U.BusyFileDesignSystem={},U.React,U.ReactDOM))})(this,function(U,te,Rn){"use strict";function _n(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=_n(te),Nt=_n(Rn);var fr={exports:{}},ut={};/**
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 wr;function Qs(){if(wr)return ut;wr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return ut.Fragment=t,ut.jsx=n,ut.jsxs=n,ut}var dt={};/**
9
+ */var Pn;function Ai(){if(Pn)return ut;Pn=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={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,151 +14,151 @@
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 Sr;function ei(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===q?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case B:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case v:return"Portal";case w:return(C.displayName||"Context")+".Provider";case b:return(C._context.displayName||"Context")+".Consumer";case E:var L=C.render;return C=C.displayName,C||(C=L.displayName||L.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return L=C.displayName||null,L!==null?L:e(C.type)||"Memo";case _:L=C._payload,C=C._init;try{return e(C(L))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var L=!1}catch{L=!0}if(L){L=console;var S=L.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return S.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(C)}}function r(C){if(C===m)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===_)return"<...>";try{var L=e(C);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var C=Q.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function s(C){if(J.call(C,"key")){var L=Object.getOwnPropertyDescriptor(C,"key").get;if(L&&L.isReactWarning)return!1}return C.key!==void 0}function i(C,L){function S(){X||(X=!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)",L))}S.isReactWarning=!0,Object.defineProperty(C,"key",{get:S,configurable:!0})}function c(){var C=e(this.type);return $[C]||($[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function u(C,L,S,T,M,O,U,A){return S=O.ref,C={$$typeof:h,type:C,key:L,props:O,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function p(C,L,S,T,M,O,U,A){var D=L.children;if(D!==void 0)if(T)if(ee(D)){for(T=0;T<D.length;T++)f(D[T]);Object.freeze&&Object.freeze(D)}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(D);if(J.call(L,"key")){D=e(C);var W=Object.keys(L).filter(function(re){return re!=="key"});T=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",ne[D+T]||(W=0<W.length?"{"+W.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Nn;function Ti(){return Nn||(Nn=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 W: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 $=E.render;return E=E.displayName,E||(E=$.displayName||$.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case R:return $=E.displayName||null,$!==null?$:e(E.type)||"Memo";case _:$=E._payload,E=E._init;try{return e(E($))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var $=!1}catch{$=!0}if($){$=console;var S=$.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return S.call($,"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===_)return"<...>";try{var $=e(E);return $?"<"+$+">":"<...>"}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 $=Object.getOwnPropertyDescriptor(E,"key").get;if($&&$.isReactWarning)return!1}return E.key!==void 0}function i(E,$){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)",$))}S.isReactWarning=!0,Object.defineProperty(E,"key",{get:S,configurable:!0})}function c(){var E=e(this.type);return D[E]||(D[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 u(E,$,S,T,M,O,Y,N){return S=O.ref,E={$$typeof:h,type:E,key:$,props:O,_owner:M},(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:N}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,$,S,T,M,O,Y,N){var L=$.children;if(L!==void 0)if(T)if(ee(L)){for(T=0;T<L.length;T++)p(L[T]);Object.freeze&&Object.freeze(L)}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(L);if(Q.call($,"key")){L=e(E);var G=Object.keys($).filter(function(ne){return ne!=="key"});T=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",re[L+T]||(G=0<G.length?"{"+G.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,D,W,D),ne[D+T]=!0)}if(D=null,S!==void 0&&(n(S),D=""+S),s(L)&&(n(L.key),D=""+L.key),"key"in L){S={};for(var Y in L)Y!=="key"&&(S[Y]=L[Y])}else S=L;return D&&i(S,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,D,O,M,o(),S,U,A)}function f(C){typeof C=="object"&&C!==null&&C.$$typeof===h&&C._store&&(C._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"),E=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),Q=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,ee=Array.isArray,V=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(C){return C()}};var X,$={},z=g["react-stack-bottom-frame"].bind(g,a)(),R=V(r(a)),ne={};dt.Fragment=m,dt.jsx=function(C,L,S,T,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!1,T,M,O?Error("react-stack-top-frame"):z,O?V(r(C)):R)},dt.jsxs=function(C,L,S,T,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!0,T,M,O?Error("react-stack-top-frame"):z,O?V(r(C)):R)}}()),dt}process.env.NODE_ENV==="production"?dn.exports=Qs():dn.exports=ei();var d=dn.exports;function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Le(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cr(e[o],null)}}}}function ae(...e){return l.useCallback(Le(...e),e)}function $e(e){const t=ti(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(ri);if(c){const u=c.props.children,p=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return d.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,p):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var fn=$e("Slot");function ti(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=ai(o),i=oi(a,o.props);return o.type!==l.Fragment&&(i.ref=r?Le(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function ni(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Er,t}function ri(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function oi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ai(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",si=e=>{const t=li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(pn);return i[0]===""&&i.length!==1&&i.shift(),Rr(i,t)||ii(s)},getConflictingClassGroupIds:(s,i)=>{const c=n[s]||[];return i&&r[s]?[...c,...r[s]]:c}}},Rr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(pn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ar=/^\[(.+)\]$/,ii=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},li=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)mn(n[o],r,o,t);return r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:_r(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(ci(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{mn(s,_r(t,a),n,r)})})},_r=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ci=e=>e.isThemeGetter,ui=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},hn="!",gn=":",di=gn.length,fi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===gn){a.push(o.slice(c,v)),c=v+di;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const p=a.length===0?o:o.substring(c),f=pi(p),g=f!==p,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+gn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},pi=e=>e.endsWith(hn)?e.substring(0,e.length-1):e.startsWith(hn)?e.substring(1):e,mi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},hi=e=>({cache:ui(e.cacheSize),parseClassName:fi(e),sortModifiers:mi(e),...si(e)}),gi=/\s+/,vi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(gi);let c="";for(let u=i.length-1;u>=0;u-=1){const p=i[u],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(p);if(f){c=p+(c.length>0?" "+c:c);continue}let x=!!m,y=r(x?v.substring(0,m):v);if(!y){if(!x){c=p+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=p+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+hn:b,E=w+y;if(s.includes(E))continue;s.push(E);const k=o(y,x);for(let N=0;N<k.length;++N){const P=k[N];s.push(w+P)}c=p+(c.length>0?" "+c:c)}return c};function xi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Nr(t))&&(r&&(r+=" "),r+=n);return r}const Nr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Nr(e[r]))&&(n&&(n+=" "),n+=t);return n};function bi(e,...t){let n,r,o,a=s;function s(c){const u=t.reduce((p,f)=>f(p),e());return n=hi(u),r=n.cache.get,o=n.cache.set,a=i,i(c)}function i(c){const u=r(c);if(u)return u;const p=vi(c,n);return o(c,p),p}return function(){return a(xi.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yi=/^\d+\/\d+$/,wi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Si=/\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$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ei=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ki=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>yi.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>!!e&&Number.isInteger(Number(e)),vn=e=>e.endsWith("%")&&K(e.slice(0,-1)),Ee=e=>wi.test(e),Pi=()=>!0,Ri=e=>Si.test(e)&&!Ci.test(e),jr=()=>!1,Ai=e=>Ei.test(e),_i=e=>ki.test(e),Ni=e=>!j(e)&&!I(e),Ti=e=>Ye(e,$r,jr),j=e=>Tr.test(e),Fe=e=>Ye(e,Fr,Ri),xn=e=>Ye(e,Di,K),Ir=e=>Ye(e,Dr,jr),Oi=e=>Ye(e,Lr,_i),_t=e=>Ye(e,Vr,Ai),I=e=>Or.test(e),ft=e=>Ke(e,Fr),ji=e=>Ke(e,Li),Mr=e=>Ke(e,Dr),Ii=e=>Ke(e,$r),Mi=e=>Ke(e,Lr),Nt=e=>Ke(e,Vr,!0),Ye=(e,t,n)=>{const r=Tr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Or.exec(e);return r?r[1]?t(r[1]):n:!1},Dr=e=>e==="position"||e==="percentage",Lr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Fr=e=>e==="length",Di=e=>e==="number",Li=e=>e==="family-name",Vr=e=>e==="shadow",$i=bi(()=>{const e=se("color"),t=se("font"),n=se("text"),r=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),u=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"),y=se("ease"),b=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...E(),I,j],N=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],_=()=>[I,j,c],B=()=>[Ge,"full","auto",..._()],q=()=>[Re,"none","subgrid",I,j],Q=()=>["auto",{span:["full",Re,I,j]},Re,I,j],J=()=>[Re,"auto",I,j],ee=()=>["auto","min","max","fr",I,j],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",..._()],z=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],R=()=>[e,I,j],ne=()=>[...E(),Mr,Ir,{position:[I,j]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Ii,Ti,{size:[I,j]}],S=()=>[vn,ft,Fe],T=()=>["","none","full",u,I,j],M=()=>["",K,ft,Fe],O=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[K,vn,Mr,Ir],D=()=>["","none",v,I,j],W=()=>["none",K,I,j],Y=()=>["none",K,I,j],re=()=>[K,I,j],oe=()=>[Ge,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Pi],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[Ni],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",K],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,j,I,x]}],container:["container"],columns:[{columns:[K,j,I,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:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Re,"auto",I,j]}],basis:[{basis:[Ge,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,Ge,"auto","initial","none",j]}],grow:[{grow:["",K,I,j]}],shrink:[{shrink:["",K,I,j]}],order:[{order:[Re,"first","last","none",I,j]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"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:[...V(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,ft,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,I,xn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vn,j]}],"font-family":[{font:[ji,j,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,I,j]}],"line-clamp":[{"line-clamp":[K,"none",I,xn]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",I,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",I,Fe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[K,"auto",I,j]}],"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",I,j]}],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",I,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Re,I,j],radial:["",I,j],conic:[Re,I,j]},Mi,Oi]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,I,j]}],"outline-w":[{outline:["",K,ft,Fe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",p,Nt,_t]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,Nt,_t]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[K,Fe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Nt,_t]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[K,I,j]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[I,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,j]}],filter:[{filter:["","none",I,j]}],blur:[{blur:D()}],brightness:[{brightness:[K,I,j]}],contrast:[{contrast:[K,I,j]}],"drop-shadow":[{"drop-shadow":["","none",h,Nt,_t]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",K,I,j]}],"hue-rotate":[{"hue-rotate":[K,I,j]}],invert:[{invert:["",K,I,j]}],saturate:[{saturate:[K,I,j]}],sepia:[{sepia:["",K,I,j]}],"backdrop-filter":[{"backdrop-filter":["","none",I,j]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[K,I,j]}],"backdrop-contrast":[{"backdrop-contrast":[K,I,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,I,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,I,j]}],"backdrop-invert":[{"backdrop-invert":["",K,I,j]}],"backdrop-opacity":[{"backdrop-opacity":[K,I,j]}],"backdrop-saturate":[{"backdrop-saturate":[K,I,j]}],"backdrop-sepia":[{"backdrop-sepia":["",K,I,j]}],"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",I,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",I,j]}],ease:[{ease:["linear","initial",y,I,j]}],delay:[{delay:[K,I,j]}],animate:[{animate:["none",b,I,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,I,j]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[I,j,"","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:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I,j]}],"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",I,j]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[K,ft,Fe,xn]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function F(...e){return $i(Pr(e))}const zr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Pr,ue=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],f=a==null?void 0:a[u];if(p===null)return null;const g=zr(p)||zr(f);return o[u][g]}),i=n&&Object.entries(n).reduce((u,p)=>{let[f,g]=p;return g===void 0||(u[f]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,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})?[...u,f,g]:u},[]);return Br(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},Fi=ue("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 Vi({className:e,variant:t,size:n,asChild:r=!1,children:o,...a}){const s=r?fn:"button";return d.jsx(s,{"data-slot":"button",className:F(Fi({variant:t,size:n}),e),...a,children:o})}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},zi=l[" useInsertionEffect ".trim().toString()]||ie;function qe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Bi({defaultProp:t,onChange:n}),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(`${r} 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,r])}const u=l.useCallback(p=>{var f;if(i){const g=Wi(p)?p(e):p;g!==e&&((f=s.current)==null||f.call(s,g))}else a(p)},[i,e,a,s]);return[c,u]}function Bi({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),a=l.useRef(t);return zi(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Wi(e){return typeof e=="function"}var Hi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Hi.reduce((e,t)=>{const n=$e(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ui(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}var Wr="Toggle",Hr=l.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=qe({prop:n,onChange:o,defaultProp:r??!1,caller:Wr});return d.jsx(H.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Z(e.onClick,()=>{e.disabled||i(!s)})})});Hr.displayName=Wr;var Ur=Hr;const Gr=ue(["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"}}),Yr=ue(["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"}}),Kr=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:n="classic",disabled:r=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:u="right","aria-label":p,"aria-labelledby":f,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!r&&t&&t(k)},E=d.jsx(Ur,{ref:v,pressed:e,onPressedChange:w,disabled:r,"aria-label":p,"aria-labelledby":f||(i?y:void 0),"aria-describedby":c?b:void 0,className:F(Gr({variant:n}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(Yr({variant:n})),"aria-hidden":"true"})});return!i&&!c?E:d.jsxs("div",{className:F("flex gap-3",u==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[E,d.jsxs("div",{className:"flex flex-col justify-center",children:[i&&d.jsx("label",{id:y,htmlFor:x,className:F("text-sm font-medium leading-none cursor-pointer",r&&"cursor-not-allowed"),children:i}),c&&d.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});Kr.displayName="Toggle";const qr=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:n=!1,className:r,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":u,"aria-labelledby":p,onPressedChange:f,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,E=`${b}-description`,k=P=>{n||(x(P),f&&f(P))},N=d.jsx(Ur,{ref:v,pressed:m,onPressedChange:k,disabled:n,"aria-label":u,"aria-labelledby":p||(s?w:void 0),"aria-describedby":i?E:void 0,className:F(Gr({variant:t}),r),id:b,name:a,...h,children:g||d.jsx("span",{className:F(Yr({variant:t})),"aria-hidden":"true"})});return!s&&!i?N:d.jsxs("div",{className:F("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[N,d.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&d.jsx("label",{id:w,htmlFor:b,className:F("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",n&&"cursor-not-allowed"),children:s}),i&&d.jsx("p",{id:E,className:"text-xs text-neutral-black-1",children:i})]})]})});qr.displayName="StatefulToggle";function Gi(e,t){const n=l.createContext(t),r=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ve(e,t=[]){let n=[];function r(a,s){const i=l.createContext(s),c=n.length;n=[...n,s];const u=f=>{var y;const{scope:g,children:h,...v}=f,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return d.jsx(m.Provider,{value:x,children:h})};u.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[u,p]}const o=()=>{const a=n.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,[r,Yi(o,...t)]}function Yi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...i,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ki=l[" useId ".trim().toString()]||(()=>{}),qi=0;function ce(e){const[t,n]=l.useState(Ki());return ie(()=>{n(r=>r??String(qi++))},[e]),e||(t?`radix-${t}`:"")}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Xi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zi="DismissableLayer",bn="dismissableLayer.update",Ji="dismissableLayer.pointerDownOutside",Qi="dismissableLayer.focusOutside",Xr,Zr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(Zr),[p,f]=l.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,P=>f(P)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=p?m.indexOf(p):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,k=nl(P=>{const _=P.target,B=[...u.branches].some(q=>q.contains(_));!E||B||(o==null||o(P),s==null||s(P),P.defaultPrevented||i==null||i())},g),N=rl(P=>{const _=P.target;[...u.branches].some(q=>q.contains(_))||(a==null||a(P),s==null||s(P),P.defaultPrevented||i==null||i())},g);return Xi(P=>{b===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},g),l.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xr=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Jr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xr)}},[p,g,n,u]),l.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Jr())},[p,u]),l.useEffect(()=>{const P=()=>h({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),d.jsx(H.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,k.onPointerDownCapture)})});pt.displayName=Zi;var el="DismissableLayerBranch",tl=l.forwardRef((e,t)=>{const n=l.useContext(Zr),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(H.div,{...e,ref:o})});tl.displayName=el;function nl(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){Qr(Ji,n,u,{discrete:!0})};const u={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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rl(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&Qr(Qi,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Qr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ui(o,a):o.dispatchEvent(a)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",eo={bubbles:!1,cancelable:!0},ol="FocusScope",Tt=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Ae(o),p=Ae(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(r){let m=function(w){if(h.paused||!i)return;const E=w.target;i.contains(E)?f.current=E:_e(f.current,{select:!0})},x=function(w){if(h.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||_e(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&_e(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()}}},[r,i,h.paused]),l.useEffect(()=>{if(i){ro.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(yn,eo);i.addEventListener(yn,u),i.dispatchEvent(y),y.defaultPrevented||(al(ul(to(i)),{select:!0}),document.activeElement===m&&_e(i))}return()=>{i.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(wn,eo);i.addEventListener(wn,p),i.dispatchEvent(y),y.defaultPrevented||_e(m??document.body,{select:!0}),i.removeEventListener(wn,p),ro.remove(h)},0)}}},[i,u,p,h]);const v=l.useCallback(m=>{if(!n&&!r||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,E]=sl(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&_e(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&_e(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,h.paused]);return d.jsx(H.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Tt.displayName=ol;function al(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_e(r,{select:t}),document.activeElement!==n)return}function sl(e){const t=to(e),n=no(t,e),r=no(t.reverse(),e);return[n,r]}function to(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function no(e,t){for(const n of e)if(!il(n,{upTo:t}))return n}function il(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 ll(e){return e instanceof HTMLInputElement&&"select"in e}function _e(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ll(e)&&t&&e.select()}}var ro=cl();function cl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oo(e,t),e.unshift(t)},remove(t){var n;e=oo(e,t),(n=e[0])==null||n.resume()}}}function oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ul(e){return e.filter(t=>t.tagName!=="A")}var dl="Portal",mt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?br.createPortal(d.jsx(H.div,{...r,ref:t}),s):null});mt.displayName=dl;function fl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ne=e=>{const{present:t,children:n}=e,r=pl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=ae(r.ref,ml(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function pl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=fl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,p=o.current;if(p!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,f=h=>{const m=Ot(r.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",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(u),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(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function ml(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ao()),document.body.insertAdjacentElement("beforeend",e[1]??ao()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function ao(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xe=function(){return xe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xe.apply(this,arguments)};function so(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function hl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var jt="right-scroll-bar-position",It="width-before-scroll-bar",gl="with-scroll-bars-hidden",vl="--removed-body-scroll-bar-size";function En(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xl(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var bl=typeof window<"u"?l.useLayoutEffect:l.useEffect,io=new WeakMap;function yl(e,t){var n=xl(null,function(r){return e.forEach(function(o){return En(o,r)})});return bl(function(){var r=io.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||En(i,null)}),a.forEach(function(i){o.has(i)||En(i,s)})}io.set(n,e)},[e]),n}function wl(e){return e}function Sl(e,t){t===void 0&&(t=wl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var c=function(){var p=s;s=[],p.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){s.push(p),u()},filter:function(p){return s=s.filter(p),n}}}};return o}function Cl(e){e===void 0&&(e={});var t=Sl(null);return t.options=xe({async:!0,ssr:!1},e),t}var lo=function(e){var t=e.sideCar,n=so(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,xe({},n))};lo.isSideCarExport=!0;function El(e,t){return e.useMedium(t),lo}var co=Cl(),kn=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,f=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,E=so(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,N=yl([n,t]),P=xe(xe({},E),o);return l.createElement(l.Fragment,null,p&&l.createElement(k,{sideCar:co,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:w}),s?l.cloneElement(l.Children.only(i),xe(xe({},P),{ref:N})):l.createElement(b,xe({},P,{className:c,ref:N}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:It,zeroRight:jt};var kl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kl();return t&&e.setAttribute("nonce",t),e}function Rl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Al(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _l=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Pl())&&(Rl(t,n),Al(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nl=function(){var e=_l();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uo=function(){var e=Nl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Tl={left:0,top:0,right:0,gap:0},Pn=function(e){return parseInt(e||"",10)||0},Ol=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Pn(n),Pn(r),Pn(o)]},jl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Tl;var t=Ol(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Il=uo(),Xe="data-scroll-locked",Ml=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
23
- .`.concat(gl,` {
24
- overflow: hidden `).concat(r,`;
25
- padding-right: `).concat(i,"px ").concat(r,`;
22
+ <%s key={someKey} {...props} />`,T,L,G,L),re[L+T]=!0)}if(L=null,S!==void 0&&(r(S),L=""+S),s($)&&(r($.key),L=""+$.key),"key"in $){S={};for(var Z in $)Z!=="key"&&(S[Z]=$[Z])}else S=$;return L&&i(S,typeof E=="function"?E.displayName||E.name||"Unknown":E),u(E,L,O,M,o(),S,Y,N)}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"),_=Symbol.for("react.lazy"),W=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,z=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(E){return E()}};var q,D={},H=g["react-stack-bottom-frame"].bind(g,a)(),P=z(n(a)),re={};dt.Fragment=m,dt.jsx=function(E,$,S,T,M){var O=1e4>X.recentlyCreatedOwnerStacks++;return f(E,$,S,!1,T,M,O?Error("react-stack-top-frame"):H,O?z(n(E)):P)},dt.jsxs=function(E,$,S,T,M){var O=1e4>X.recentlyCreatedOwnerStacks++;return f(E,$,S,!0,T,M,O?Error("react-stack-top-frame"):H,O?z(n(E)):P)}}()),dt}process.env.NODE_ENV==="production"?fr.exports=Ai():fr.exports=Ti();var d=fr.exports;function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $e(...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($e(...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(ji);if(c){const u=c.props.children,f=i.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var pr=Ve("Slot");function Oi(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Di(o),i=Mi(a,o.props);return o.type!==l.Fragment&&(i.ref=n?$e(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})=>d.jsx(d.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function ji(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function Mi(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 Di(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 On(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=On(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function In(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=On(e))&&(n&&(n+=" "),n+=t);return n}const mr="-",Li=e=>{const t=$i(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(mr);return i[0]===""&&i.length!==1&&i.shift(),jn(i,t)||Fi(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},jn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?jn(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}},$i=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(Vi(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},Vi=e=>e.isThemeGetter,zi=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=":",Bi=vr.length,Wi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,u;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+Bi;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=Hi(f),g=p!==f,h=u&&u>c?u-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},Hi=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Gi=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}},Ui=e=>({cache:zi(e.cacheSize),parseClassName:Wi(e),sortModifiers:Gi(e),...Li(e)}),Ki=/\s+/,Yi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Ki);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{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 qi(){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 Xi(e,...t){let r,n,o,a=s;function s(c){const u=t.reduce((f,p)=>p(f),e());return r=Ui(u),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=Yi(c,r);return o(c,f),f}return function(){return a(qi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zi=/^\d+\/\d+$/,Ji=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,el=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Zi.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=>Ji.test(e),nl=()=>!0,ol=e=>Qi.test(e)&&!el.test(e),Vn=()=>!1,al=e=>tl.test(e),sl=e=>rl.test(e),il=e=>!I(e)&&!j(e),ll=e=>Ye(e,Gn,Vn),I=e=>Fn.test(e),ze=e=>Ye(e,Un,ol),br=e=>Ye(e,pl,J),zn=e=>Ye(e,Wn,Vn),cl=e=>Ye(e,Hn,sl),At=e=>Ye(e,Kn,al),j=e=>$n.test(e),ft=e=>qe(e,Un),ul=e=>qe(e,ml),Bn=e=>qe(e,Wn),dl=e=>qe(e,Gn),fl=e=>qe(e,Hn),Tt=e=>qe(e,Kn,!0),Ye=(e,t,r)=>{const n=Fn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},qe=(e,t,r=!1)=>{const n=$n.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",pl=e=>e==="number",ml=e=>e==="family-name",Kn=e=>e==="shadow",hl=Xi(()=>{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"),u=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(),j,I],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],_=()=>[j,I,c],W=()=>[Ke,"full","auto",..._()],K=()=>[Ae,"none","subgrid",j,I],X=()=>["auto",{span:["full",Ae,j,I]},Ae,j,I],Q=()=>[Ae,"auto",j,I],ee=()=>["auto","min","max","fr",j,I],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],H=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],P=()=>[e,j,I],re=()=>[...C(),Bn,zn,{position:[j,I]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",dl,ll,{size:[j,I]}],S=()=>[xr,ft,ze],T=()=>["","none","full",u,j,I],M=()=>["",J,ft,ze],O=()=>["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"],N=()=>[J,xr,Bn,zn],L=()=>["","none",v,j,I],G=()=>["none",J,j,I],Z=()=>["none",J,j,I],ne=()=>[J,j,I],oe=()=>[Ke,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[nl],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[il],"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,j,x]}],container:["container"],columns:[{columns:[J,I,j,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:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",j,I]}],basis:[{basis:[Ke,"full","auto",i,..._()]}],"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,j,I]}],shrink:[{shrink:["",J,j,I]}],order:[{order:[Ae,"first","last","none",j,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:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[i,"screen",...H()]}],"min-w":[{"min-w":[i,"screen","none",...H()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,ft,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,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:[ul,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,j,I]}],"line-clamp":[{"line-clamp":[J,"none",j,br]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",j,ze]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[J,"auto",j,I]}],"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",j,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",j,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:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,j,I],radial:["",j,I],conic:[Ae,j,I]},fl,cl]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],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:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,j,I]}],"outline-w":[{outline:["",J,ft,ze]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,Tt,At]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",p,Tt,At]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",g,Tt,At]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[J,j,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":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"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:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:L()}],brightness:[{brightness:[J,j,I]}],contrast:[{contrast:[J,j,I]}],"drop-shadow":[{"drop-shadow":["","none",h,Tt,At]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",J,j,I]}],"hue-rotate":[{"hue-rotate":[J,j,I]}],invert:[{invert:["",J,j,I]}],saturate:[{saturate:[J,j,I]}],sepia:[{sepia:["",J,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[J,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,j,I]}],"backdrop-invert":[{"backdrop-invert":["",J,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,j,I]}],"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",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[J,j,I]}],animate:[{animate:["none",b,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],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:[j,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:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",j,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":_()}],"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",j,I]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[J,ft,ze,br]}],stroke:[{stroke:["none",...P()]}],"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 F(...e){return hl(In(e))}const Yn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qn=In,ue=(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(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const g=Yn(f)||Yn(p);return o[u][g]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,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})?[...u,p,g]:u},[]);return qn(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},gl=ue("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 vl({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?pr:"button";return d.jsx(s,{"data-slot":"button",className:F(gl({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:()=>{},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 u=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,u]}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"],V=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),d.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sl(e,t){e&&Nt.flushSync(()=>e.dispatchEvent(t))}var Xn="Toggle",Zn=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Te({prop:r,onChange:o,defaultProp:n??!1,caller:Xn});return d.jsx(V.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)})})});Zn.displayName=Xn;var Jn=Zn;const Qn=ue(["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"}}),eo=ue(["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"}}),to=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:u="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=d.jsx(Jn,{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:F(Qn({variant:r}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(eo({variant:r})),"aria-hidden":"true"})});return!i&&!c?C:d.jsxs("div",{className:F("flex gap-3",u==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[C,d.jsxs("div",{className:"flex flex-col justify-center",children:[i&&d.jsx("label",{id:y,htmlFor:x,className:F("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed"),children:i}),c&&d.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});to.displayName="Toggle";const ro=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":u,"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=d.jsx(Jn,{ref:v,pressed:m,onPressedChange:k,disabled:r,"aria-label":u,"aria-labelledby":f||(s?w:void 0),"aria-describedby":i?C:void 0,className:F(Qn({variant:t}),n),id:b,name:a,...h,children:g||d.jsx("span",{className:F(eo({variant:t})),"aria-hidden":"true"})});return!s&&!i?A:d.jsxs("div",{className:F("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[A,d.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&d.jsx("label",{id:w,htmlFor:b,className:F("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",r&&"cursor-not-allowed"),children:s}),i&&d.jsx("p",{id:C,className:"text-xs text-neutral-black-1",children:i})]})]})});ro.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 d.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 u=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 d.jsx(m.Provider,{value:x,children:h})};u.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[u,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:u})=>{const p=c(a)[`__scope${u}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function no(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 d.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=Ve(i),u=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),C=ae(x,w.collectionRef);return d.jsx(c,{ref:C,children:b})});u.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))),d.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:u,ItemSlot:h},v,n]}var kl=l[" useId ".trim().toString()]||(()=>{}),Rl=0;function le(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 _l=l.createContext(void 0);function yr(e){const t=l.useContext(_l);return e||t||"ltr"}var wr="rovingFocusGroup.onEntryFocus",Pl={bubbles:!1,cancelable:!0},pt="RovingFocusGroup",[Sr,oo,Nl]=no(pt),[Al,ao]=xe(pt,[Nl]),[Tl,Ol]=Al(pt),so=l.forwardRef((e,t)=>d.jsx(Sr.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Sr.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Il,{...e,ref:t})})}));so.displayName=pt;var Il=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,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(u),C=oo(r),k=l.useRef(!1),[A,R]=l.useState(0);return l.useEffect(()=>{const _=g.current;if(_)return _.addEventListener(wr,w),()=>_.removeEventListener(wr,w)},[w]),d.jsx(Tl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(_=>x(_),[x]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:l.useCallback(()=>R(_=>_-1),[]),children:d.jsx(V.div,{tabIndex:y||A===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{k.current=!0}),onFocus:B(e.onFocus,_=>{const W=!k.current;if(_.target===_.currentTarget&&W&&!y){const K=new CustomEvent(wr,Pl);if(_.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(D=>D.focusable),Q=X.find(D=>D.active),ee=X.find(D=>D.id===m),q=[Q,ee,...X].filter(Boolean).map(D=>D.ref.current);co(q,f)}}k.current=!1}),onBlur:B(e.onBlur,()=>b(!1))})})}),io="RovingFocusGroupItem",lo=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=le(),u=a||c,f=Ol(io,r),p=f.currentTabStopId===u,g=oo(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),d.jsx(Sr.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:d.jsx(V.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,x=>{n?f.onItemFocus(u):x.preventDefault()}),onFocus:B(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:B(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(()=>co(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});lo.displayName=io;var jl={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 jl[n]}function co(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 Fl=so,$l=lo;function uo(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,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.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 fo(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 _e=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};_e.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 u=Ot(n.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=n.current,f=o.current;if(f!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;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",u=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(u),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(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}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,po]=xe(Cr),[Hl,Gl]=Wl(Cr),mo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:u,...f}=e,[p,g]=l.useState(null),h=ae(t,x=>g(x)),v=l.useRef(!1),m=p?u||!!p.closest("form"):!0;return d.jsxs(Hl,{scope:r,checked:o,disabled:s,children:[d.jsx(V.button,{type:"button",role:"radio","aria-checked":o,"data-state":xo(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:B(e.onClick,x=>{o||c==null||c(),m&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),m&&d.jsx(vo,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});mo.displayName=Cr;var ho="RadioIndicator",go=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=Gl(ho,r);return d.jsx(_e,{present:n||a.checked,children:d.jsx(V.span,{"data-state":xo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});go.displayName=ho;var Ul="RadioBubbleInput",vo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=fo(r),u=uo(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]),d.jsx(V.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});vo.displayName=Ul;function xo(e){return e?"checked":"unchecked"}var Kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],It="RadioGroup",[Yl,Ym]=xe(It,[ao,po]),bo=ao(),yo=po(),[ql,Xl]=Yl(It),wo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,h=bo(r),v=yr(u),[m,x]=Te({prop:a,defaultProp:o??null,onChange:p,caller:It});return d.jsx(ql,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:x,children:d.jsx(Fl,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:d.jsx(V.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});wo.displayName=It;var So="RadioGroupItem",Co=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Xl(So,r),s=a.disabled||n,i=bo(r),c=yo(r),u=l.useRef(null),f=ae(t,u),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)}},[]),d.jsx($l,{asChild:!0,...i,focusable:!s,active:p,children:d.jsx(mo,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:B(o.onFocus,()=>{var h;g.current&&((h=u.current)==null||h.click())})})})});Co.displayName=So;var Zl="RadioGroupIndicator",Eo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=yo(r);return d.jsx(go,{...o,...n,ref:t})});Eo.displayName=Zl;var ko=wo,Ro=Co,Jl=Eo;const Ql=()=>({root:F("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:F("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:F("w-2 h-2 rounded-full transition-all duration-200","bg-[var(--color-neutral-black-1)]"),label:F("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),_o=l.forwardRef(({className:e,...t},r)=>d.jsx(ko,{className:F("grid gap-2",e),...t,ref:r}));_o.displayName=ko.displayName;const Po=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Ql();return d.jsxs("label",{className:o.root,"data-disabled":t,children:[d.jsx(Ro,{ref:n,className:F(o.indicator),disabled:t,...r,children:d.jsx(Jl,{className:"flex items-center justify-center",children:d.jsx("div",{className:o.innerCircle})})}),e&&d.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Po.displayName=Ro.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",No,Ao=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,u=l.useContext(Ao),[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(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,k=sc(R=>{const _=R.target,W=[...u.branches].some(K=>K.contains(_));!C||W||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},g),A=ic(R=>{const _=R.target;[...u.branches].some(K=>K.contains(_))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},g);return ec(R=>{b===u.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(No=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),To(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=No)}},[f,g,r,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),To())},[f,u]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(Er,R),()=>document.removeEventListener(Er,R)},[]),d.jsx(V.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,k.onPointerDownCapture)})});mt.displayName=tc;var oc="DismissableLayerBranch",ac=l.forwardRef((e,t)=>{const r=l.useContext(Ao),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]),d.jsx(V.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,u,{discrete:!0})};const u={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 To(){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",jt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=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:Oe(p.current,{select:!0})},x=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||Oe(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Oe(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){Do.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(kr,Io);i.addEventListener(kr,u),i.dispatchEvent(y),y.defaultPrevented||(cc(mc(jo(i)),{select:!0}),document.activeElement===m&&Oe(i))}return()=>{i.removeEventListener(kr,u),setTimeout(()=>{const y=new CustomEvent(Rr,Io);i.addEventListener(Rr,f),i.dispatchEvent(y),y.defaultPrevented||Oe(m??document.body,{select:!0}),i.removeEventListener(Rr,f),Do.remove(h)},0)}}},[i,u,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&&Oe(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),r&&Oe(C,{select:!0})):y===b&&m.preventDefault()}},[r,n,h.paused]);return d.jsx(V.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});jt.displayName=lc;function cc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Oe(n,{select:t}),document.activeElement!==r)return}function uc(e){const t=jo(e),r=Mo(t,e),n=Mo(t.reverse(),e);return[r,n]}function jo(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 Mo(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 Oe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fc(e)&&t&&e.select()}}var Do=pc();function pc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Lo(e,t),e.unshift(t)},remove(t){var r;e=Lo(e,t),(r=e[0])==null||r.resume()}}}function Lo(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(d.jsx(V.div,{...n,ref:t}),s):null});ht.displayName=hc;var _r=0;function Pr(){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()),_r++,()=>{_r===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_r--}},[])}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 $o(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 Mt="right-scroll-bar-position",Dt="width-before-scroll-bar",vc="with-scroll-bars-hidden",xc="--removed-body-scroll-bar-size";function Nr(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,Vo=new WeakMap;function wc(e,t){var r=bc(null,function(n){return e.forEach(function(o){return Nr(o,n)})});return yc(function(){var n=Vo.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Nr(i,null)}),a.forEach(function(i){o.has(i)||Nr(i,s)})}Vo.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)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){s.push(f),u()},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 zo=function(e){var t=e.sideCar,r=$o(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))};zo.isSideCarExport=!0;function kc(e,t){return e.useMedium(t),zo}var Bo=Ec(),Ar=function(){},Lt=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,u=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=$o(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:Bo,removeScrollBar:u,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))});Lt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Lt.classNames={fullWidth:Dt,zeroRight:Mt};var Rc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _c(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rc();return t&&e.setAttribute("nonce",t),e}function Pc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nc(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=_c())&&(Pc(t,r),Nc(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])}},Wo=function(){var e=Tc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Oc={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0},Ic=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)]},jc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Oc;var t=Ic(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=Wo(),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
26
  }
27
27
  body[`).concat(Xe,`] {
28
- overflow: hidden `).concat(r,`;
28
+ overflow: hidden `).concat(n,`;
29
29
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
30
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
31
31
  padding-left: `.concat(o,`px;
32
32
  padding-top: `).concat(a,`px;
33
33
  padding-right: `).concat(s,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(i,"px ").concat(r,`;
37
- `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(i,"px ").concat(n,`;
37
+ `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(jt,` {
41
- right: `).concat(i,"px ").concat(r,`;
40
+ .`).concat(Mt,` {
41
+ right: `).concat(i,"px ").concat(n,`;
42
42
  }
43
43
 
44
- .`).concat(It,` {
45
- margin-right: `).concat(i,"px ").concat(r,`;
44
+ .`).concat(Dt,` {
45
+ margin-right: `).concat(i,"px ").concat(n,`;
46
46
  }
47
47
 
48
- .`).concat(jt," .").concat(jt,` {
49
- right: 0 `).concat(r,`;
48
+ .`).concat(Mt," .").concat(Mt,` {
49
+ right: 0 `).concat(n,`;
50
50
  }
51
51
 
52
- .`).concat(It," .").concat(It,` {
53
- margin-right: 0 `).concat(r,`;
52
+ .`).concat(Dt," .").concat(Dt,` {
53
+ margin-right: 0 `).concat(n,`;
54
54
  }
55
55
 
56
56
  body[`).concat(Xe,`] {
57
- `).concat(vl,": ").concat(i,`px;
57
+ `).concat(xc,": ").concat(i,`px;
58
58
  }
59
- `)},fo=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Dl=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(fo()+1).toString()),function(){var e=fo()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Ll=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Dl();var a=l.useMemo(function(){return jl(o)},[o]);return l.createElement(Il,{styles:Ml(a,!t,o,n?"":"!important")})},Rn=!1;if(typeof window<"u")try{var Dt=Object.defineProperty({},"passive",{get:function(){return Rn=!0,!0}});window.addEventListener("test",Dt,Dt),window.removeEventListener("test",Dt,Dt)}catch{Rn=!1}var Ze=Rn?{passive:!1}:!1,$l=function(e){return e.tagName==="TEXTAREA"},po=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$l(e)&&n[t]==="visible")},Fl=function(e){return po(e,"overflowY")},Vl=function(e){return po(e,"overflowX")},mo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ho(e,r);if(o){var a=go(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Bl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ho=function(e,t){return e==="v"?Fl(t):Vl(t)},go=function(e,t){return e==="v"?zl(t):Bl(t)},Wl=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hl=function(e,t,n,r,o){var a=Wl(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,c=t.contains(i),u=!1,p=s>0,f=0,g=0;do{if(!i)break;var h=go(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&ho(e,i)&&(f+=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(p&&Math.abs(f)<1||!p&&Math.abs(g)<1)&&(u=!0),u},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vo=function(e){return[e.deltaX,e.deltaY]},xo=function(e){return e&&"current"in e?e.current:e},Ul=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gl=function(e){return`
59
+ `)},Ho=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,(Ho()+1).toString()),function(){var e=Ho()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Fc=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 jc(o)},[o]);return l.createElement(Mc,{styles:Dc(a,!t,o,r?"":"!important")})},Or=!1;if(typeof window<"u")try{var Ft=Object.defineProperty({},"passive",{get:function(){return Or=!0,!0}});window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch{Or=!1}var Ze=Or?{passive:!1}:!1,$c=function(e){return e.tagName==="TEXTAREA"},Go=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!$c(e)&&r[t]==="visible")},Vc=function(e){return Go(e,"overflowY")},zc=function(e){return Go(e,"overflowX")},Uo=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ko(e,n);if(o){var a=Yo(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]},Ko=function(e,t){return e==="v"?Vc(t):zc(t)},Yo=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),u=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=Yo(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&Ko(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)&&(u=!0),u},$t=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qo=function(e){return[e.deltaX,e.deltaY]},Xo=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
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},Yl=0,Je=[];function Kl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Yl++)[0],a=l.useState(uo)[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=hl([e.lockRef.current],(e.shards||[]).map(xo),!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=Lt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],k,N=m.target,P=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&P==="h"&&N.type==="range")return!1;var _=mo(P,N);if(!_)return!0;if(_?k=P:(k=P==="v"?"h":"v",_=mo(P,N)),!_)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=k),!k)return!0;var B=r.current||k;return Hl(B,x,m,B==="h"?w:E)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?vo(x):Lt(x),b=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Ul(k.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(xo).filter(Boolean).filter(function(k){return k.contains(x.target)}),E=w.length>0?i(x,w[0]):!s.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:ql(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),p=l.useCallback(function(m){n.current=Lt(m),r.current=void 0},[]),f=l.useCallback(function(m){u(m.type,vo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,Lt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Gl(o)}):null,h?l.createElement(Ll,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ql(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xl=El(co,Kl);var $t=l.forwardRef(function(e,t){return l.createElement(Mt,xe({},e,{ref:t,sideCar:Xl}))});$t.classNames=Mt.classNames;var Zl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Ft=new WeakMap,Vt={},An=0,bo=function(e){return e&&(e.host||bo(e.parentNode))},Jl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ql=function(e,t,n,r){var o=Jl(t,Array.isArray(e)?e:[e]);Vt[n]||(Vt[n]=new WeakMap);var a=Vt[n],s=[],i=new Set,c=new Set(o),u=function(f){!f||i.has(f)||(i.add(f),u(f.parentNode))};o.forEach(u);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(r),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&&Ft.set(g,!0),x===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return p(t),i.clear(),An++,function(){s.forEach(function(f){var g=Qe.get(f)-1,h=a.get(f)-1;Qe.set(f,g),a.set(f,h),g||(Ft.has(f)||f.removeAttribute(r),Ft.delete(f)),h||f.removeAttribute(n)}),An--,An||(Qe=new WeakMap,Qe=new WeakMap,Ft=new WeakMap,Vt={})}},_n=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Zl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ql(r,o,n,"aria-hidden")):function(){return null}},zt="Dialog",[yo,Zp]=Ve(zt),[ec,me]=yo(zt),wo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,p]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:zt});return d.jsx(ec,{scope:t,triggerRef:i,contentRef:c,contentId:ce(),titleId:ce(),descriptionId:ce(),open:u,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(f=>!f),[p]),modal:s,children:n})};wo.displayName=zt;var So="DialogTrigger",Co=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(So,n),a=ae(t,o.triggerRef);return d.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":On(o.open),...r,ref:a,onClick:Z(e.onClick,o.onOpenToggle)})});Co.displayName=So;var Nn="DialogPortal",[tc,Eo]=yo(Nn,{forceMount:void 0}),ko=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=me(Nn,t);return d.jsx(tc,{scope:t,forceMount:n,children:l.Children.map(r,s=>d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:s})}))})};ko.displayName=Nn;var Bt="DialogOverlay",Po=l.forwardRef((e,t)=>{const n=Eo(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=me(Bt,e.__scopeDialog);return a.modal?d.jsx(Ne,{present:r||a.open,children:d.jsx(rc,{...o,ref:t})}):null});Po.displayName=Bt;var nc=$e("DialogOverlay.RemoveScroll"),rc=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(Bt,n);return d.jsx($t,{as:nc,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(H.div,{"data-state":On(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ze="DialogContent",Ro=l.forwardRef((e,t)=>{const n=Eo(ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=me(ze,e.__scopeDialog);return d.jsx(Ne,{present:r||a.open,children:a.modal?d.jsx(oc,{...o,ref:t}):d.jsx(ac,{...o,ref:t})})});Ro.displayName=ze;var oc=l.forwardRef((e,t)=>{const n=me(ze,e.__scopeDialog),r=l.useRef(null),o=ae(t,n.contentRef,r);return l.useEffect(()=>{const a=r.current;if(a)return _n(a)},[]),d.jsx(Ao,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault())})}),ac=l.forwardRef((e,t)=>{const n=me(ze,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ao,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ao=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(ze,n),c=l.useRef(null),u=ae(t,c);return Cn(),d.jsxs(d.Fragment,{children:[d.jsx(Tt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":On(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(sc,{titleId:i.titleId}),d.jsx(lc,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Tn="DialogTitle",_o=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(Tn,n);return d.jsx(H.h2,{id:o.titleId,...r,ref:t})});_o.displayName=Tn;var No="DialogDescription",To=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(No,n);return d.jsx(H.p,{id:o.descriptionId,...r,ref:t})});To.displayName=No;var Oo="DialogClose",jo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(Oo,n);return d.jsx(H.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});jo.displayName=Oo;function On(e){return e?"open":"closed"}var Io="DialogTitleWarning",[Jp,Mo]=Gi(Io,{contentName:ze,titleName:Tn,docsSlug:"dialog"}),sc=({titleId:e})=>{const t=Mo(Io),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
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(Wo)[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(Xo),!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=$t(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 _=Uo(R,A);if(!_)return!0;if(_?k=R:(k=R==="v"?"h":"v",_=Uo(R,A)),!_)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=k),!k)return!0;var W=n.current||k;return Gc(W,x,m,W==="h"?w:C)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?qo(x):$t(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(Xo).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()}}},[]),u=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=$t(m),n.current=void 0},[]),p=l.useCallback(function(m){u(m.type,qo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,$t(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(Fc,{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(Bo,qc);var Vt=l.forwardRef(function(e,t){return l.createElement(Lt,be({},e,{ref:t,sideCar:Zc}))});Vt.classNames=Lt.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,zt=new WeakMap,Bt={},Ir=0,Zo=function(e){return e&&(e.host||Zo(e.parentNode))},Qc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Zo(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]);Bt[r]||(Bt[r]=new WeakMap);var a=Bt[r],s=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);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&&zt.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(),Ir++,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||(zt.has(p)||p.removeAttribute(n),zt.delete(p)),h||p.removeAttribute(r)}),Ir--,Ir||(Qe=new WeakMap,Qe=new WeakMap,zt=new WeakMap,Bt={})}},jr=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}},Wt="Dialog",[Jo,qm]=xe(Wt),[tu,me]=Jo(Wt),Qo=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,f]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:Wt});return d.jsx(tu,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};Qo.displayName=Wt;var ea="DialogTrigger",ta=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ea,r),a=ae(t,o.triggerRef);return d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lr(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});ta.displayName=ea;var Mr="DialogPortal",[ru,ra]=Jo(Mr,{forceMount:void 0}),na=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=me(Mr,t);return d.jsx(ru,{scope:t,forceMount:r,children:l.Children.map(n,s=>d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:s})}))})};na.displayName=Mr;var Ht="DialogOverlay",oa=l.forwardRef((e,t)=>{const r=ra(Ht,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Ht,e.__scopeDialog);return a.modal?d.jsx(_e,{present:n||a.open,children:d.jsx(ou,{...o,ref:t})}):null});oa.displayName=Ht;var nu=Ve("DialogOverlay.RemoveScroll"),ou=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Ht,r);return d.jsx(Vt,{as:nu,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(V.div,{"data-state":Lr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Be="DialogContent",aa=l.forwardRef((e,t)=>{const r=ra(Be,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Be,e.__scopeDialog);return d.jsx(_e,{present:n||a.open,children:a.modal?d.jsx(au,{...o,ref:t}):d.jsx(su,{...o,ref:t})})});aa.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 jr(a)},[]),d.jsx(sa,{...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())})}),su=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(sa,{...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,u;(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;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),sa=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(Be,r),c=l.useRef(null),u=ae(t,c);return Pr(),d.jsxs(d.Fragment,{children:[d.jsx(jt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(mt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Lr(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(iu,{titleId:i.titleId}),d.jsx(cu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",ia=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Dr,r);return d.jsx(V.h2,{id:o.titleId,...n,ref:t})});ia.displayName=Dr;var la="DialogDescription",ca=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(la,r);return d.jsx(V.p,{id:o.descriptionId,...n,ref:t})});ca.displayName=la;var ua="DialogClose",da=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ua,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});da.displayName=ua;function Lr(e){return e?"open":"closed"}var fa="DialogTitleWarning",[Xm,pa]=Cl(fa,{contentName:Be,titleName:Dr,docsSlug:"dialog"}),iu=({titleId:e})=>{const t=pa(fa),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
63
63
 
64
64
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
65
65
 
66
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ic="DialogDescriptionWarning",lc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mo(ic).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(r))},[r,e,t]),null},Do=wo,cc=Co,Lo=ko,$o=Po,Fo=Ro,uc=_o,dc=To,Vo=jo;/**
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 {${pa(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},ma=Qo,uu=ta,ha=na,ga=oa,va=aa,du=ia,fu=ca,xa=da;/**
67
67
  * @license lucide-react v0.542.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const fc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),zo=e=>{const t=pc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),mc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
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()),ba=e=>{const t=mu(e);return t.charAt(0).toUpperCase()+t.slice(1)},ya=(...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};/**
72
72
  * @license lucide-react v0.542.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */var hc={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"};/**
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"};/**
77
77
  * @license lucide-react v0.542.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const gc=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...hc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bo("lucide",o),...!a&&!mc(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,p])=>te.createElement(u,p)),...Array.isArray(a)?a:[a]]));/**
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:ya("lucide",o),...!a&&!hu(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,f])=>te.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
82
82
  * @license lucide-react v0.542.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const le=(e,t)=>{const n=te.forwardRef(({className:r,...o},a)=>te.createElement(gc,{ref:a,iconNode:t,className:Bo(`lucide-${fc(zo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=zo(e),n};/**
86
+ */const ce=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(vu,{ref:a,iconNode:t,className:ya(`lucide-${pu(ba(e))}`,`lucide-${e}`,n),...o}));return r.displayName=ba(e),r};/**
87
87
  * @license lucide-react v0.542.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const vc=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"}]]);/**
91
+ */const xu=ce("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
92
  * @license lucide-react v0.542.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const xc=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"}]]);/**
96
+ */const bu=ce("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
97
  * @license lucide-react v0.542.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const bc=le("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
101
+ */const yu=ce("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
102
102
  * @license lucide-react v0.542.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const jn=le("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
106
+ */const Fr=ce("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
107
107
  * @license lucide-react v0.542.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const yc=le("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
111
+ */const wu=ce("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
112
112
  * @license lucide-react v0.542.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const wc=le("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
116
+ */const Su=ce("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
117
117
  * @license lucide-react v0.542.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const Sc=le("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
121
+ */const Cu=ce("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
122
122
  * @license lucide-react v0.542.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const Cc=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"}]]);/**
126
+ */const Eu=ce("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"}]]);/**
127
127
  * @license lucide-react v0.542.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const Ec=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"}]]);/**
131
+ */const ku=ce("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"}]]);/**
132
132
  * @license lucide-react v0.542.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const kc=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"}]]);/**
136
+ */const Ru=ce("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"}]]);/**
137
137
  * @license lucide-react v0.542.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const Wo=le("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
141
+ */const wa=ce("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
142
142
  * @license lucide-react v0.542.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const Pc=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"}]]);/**
146
+ */const _u=ce("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"}]]);/**
147
147
  * @license lucide-react v0.542.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const Ho=le("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
151
+ */const Sa=ce("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
152
152
  * @license lucide-react v0.542.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const Rc=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"}]]);/**
156
+ */const Pu=ce("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"}]]);/**
157
157
  * @license lucide-react v0.542.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const Uo=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ac({...e}){return d.jsx(Do,{"data-slot":"dialog",...e})}function _c({...e}){return d.jsx(cc,{"data-slot":"dialog-trigger",...e})}function Go({...e}){return d.jsx(Lo,{"data-slot":"dialog-portal",...e})}function Nc({...e}){return d.jsx(Vo,{"data-slot":"dialog-close",...e})}function Yo({className:e,...t}){return d.jsx($o,{"data-slot":"dialog-overlay",className:F("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 Tc({className:e,children:t,showCloseButton:n=!0,...r}){return d.jsxs(Go,{"data-slot":"dialog-portal",children:[d.jsx(Yo,{}),d.jsxs(Fo,{"data-slot":"dialog-content",className:F("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),...r,children:[t,n&&d.jsxs(Vo,{"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:[d.jsx(Uo,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Oc({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:F("flex flex-col gap-2 text-center sm:text-left",e),...t})}function jc({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Ic({className:e,...t}){return d.jsx(uc,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold ",e),...t})}function Mc({className:e,...t}){return d.jsx(dc,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}const Dc=ue("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"}});function Ko({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...a}){const s=r?fn:"span";return d.jsx(s,{"data-slot":"badge",className:F(Dc({variant:t,type:n}),e),...a,children:o})}const Lc=["top","right","bottom","left"],Te=Math.min,de=Math.max,Wt=Math.round,Ht=Math.floor,be=e=>({x:e,y:e}),$c={left:"right",right:"left",bottom:"top",top:"bottom"},Fc={start:"end",end:"start"};function In(e,t,n){return de(e,Te(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Dn(e){return e==="y"?"height":"width"}const Vc=new Set(["top","bottom"]);function ye(e){return Vc.has(Pe(e))?"y":"x"}function Ln(e){return Mn(ye(e))}function zc(e,t,n){n===void 0&&(n=!1);const r=et(e),o=Ln(e),a=Dn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ut(s)),[s,Ut(s)]}function Bc(e){const t=Ut(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>Fc[t])}const qo=["left","right"],Xo=["right","left"],Wc=["top","bottom"],Hc=["bottom","top"];function Uc(e,t,n){switch(e){case"top":case"bottom":return n?t?Xo:qo:t?qo:Xo;case"left":case"right":return t?Wc:Hc;default:return[]}}function Gc(e,t,n,r){const o=et(e);let a=Uc(Pe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map($n)))),a}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>$c[t])}function Yc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zo(e){return typeof e!="number"?Yc(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jo(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Ln(t),i=Dn(s),c=Pe(t),u=a==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let h;switch(c){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(et(t)){case"start":h[s]-=g*(n&&u?-1:1);break;case"end":h[s]+=g*(n&&u?-1:1);break}return h}const Kc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=Jo(u,r,c),g=r,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:E,reset:k}=await y({x:p,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});p=b??p,f=w??f,h={...h,[x]:{...h[x],...E}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:p,y:f}=Jo(u,g,c)),m=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:h}};async function ht(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=ke(t,e),v=Zo(h),x=i[g?f==="floating"?"reference":"floating":f],y=Gt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:p,strategy:c})),b=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=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=Gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/E.y,bottom:(k.bottom-y.bottom+v.bottom)/E.y,left:(y.left-k.left+v.left)/E.x,right:(k.right-y.right+v.right)/E.x}}const qc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:u,padding:p=0}=ke(e,t)||{};if(u==null)return{};const f=Zo(p),g={x:n,y:r},h=Ln(o),v=Dn(h),m=await s.getDimensions(u),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=a.reference[v]+a.reference[h]-g[h]-a.floating[v],k=g[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=N?N[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(N)))&&(P=i.floating[w]||a.floating[v]);const _=E/2-k/2,B=P/2-m[v]/2-1,q=Te(f[y],B),Q=Te(f[b],B),J=q,ee=P-m[v]-Q,V=P/2-m[v]/2+_,X=In(J,V,ee),$=!c.arrow&&et(o)!=null&&V!==X&&a.reference[v]/2-(V<J?q:Q)-m[v]/2<0,z=$?V<J?V-J:V-ee:0;return{[h]:g[h]+z,data:{[h]:X,centerOffset:V-X-z,...$&&{alignmentOffset:z}},reset:$}}}),Xc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Pe(o),b=ye(i),w=Pe(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!m?[Ut(i)]:Bc(i)),N=v!=="none";!g&&N&&k.push(...Gc(i,m,v,E));const P=[i,...k],_=await ht(t,x),B=[];let q=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&B.push(_[y]),f){const V=zc(o,s,E);B.push(_[V[0]],_[V[1]])}if(q=[...q,{placement:o,overflows:B}],!B.every(V=>V<=0)){var Q,J;const V=(((Q=a.flip)==null?void 0:Q.index)||0)+1,X=P[V];if(X&&(!(f==="alignment"?b!==ye(X):!1)||q.every(R=>ye(R.placement)===b?R.overflows[0]>0:!0)))return{data:{index:V,overflows:q},reset:{placement:X}};let $=(J=q.filter(z=>z.overflows[0]<=0).sort((z,R)=>z.overflows[1]-R.overflows[1])[0])==null?void 0:J.placement;if(!$)switch(h){case"bestFit":{var ee;const z=(ee=q.filter(R=>{if(N){const ne=ye(R.placement);return ne===b||ne==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(ne=>ne>0).reduce((ne,C)=>ne+C,0)]).sort((R,ne)=>R[1]-ne[1])[0])==null?void 0:ee[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ea(e){return Lc.some(t=>e[t]>=0)}const Zc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ke(e,t);switch(r){case"referenceHidden":{const a=await ht(t,{...o,elementContext:"reference"}),s=Qo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ea(s)}}}case"escaped":{const a=await ht(t,{...o,altBoundary:!0}),s=Qo(a,n.floating);return{data:{escapedOffsets:s,escaped:ea(s)}}}default:return{}}}}},ta=new Set(["left","top"]);async function Jc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),i=et(n),c=ye(n)==="y",u=ta.has(s)?-1:1,p=a&&c?-1:1,f=ke(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*u}:{x:g*u,y:h*p}}const Qc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Jc(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},eu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=ke(e,t),u={x:n,y:r},p=await ht(t,c),f=ye(Pe(o)),g=Mn(f);let h=u[g],v=u[f];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+p[x],w=h-p[y];h=In(b,h,w)}if(s){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=v+p[x],w=v-p[y];v=In(b,v,w)}const m=i.fn({...t,[g]:h,[f]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:a,[f]:s}}}}}},tu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=ke(e,t),p={x:n,y:r},f=ye(o),g=Mn(f);let h=p[g],v=p[f];const m=ke(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",E=a.reference[g]-a.floating[w]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<E?h=E:h>k&&(h=k)}if(u){var y,b;const w=g==="y"?"width":"height",E=ta.has(Pe(o)),k=a.reference[f]-a.floating[w]+(E&&((y=s.offset)==null?void 0:y[f])||0)+(E?0:x.crossAxis),N=a.reference[f]+a.reference[w]+(E?0:((b=s.offset)==null?void 0:b[f])||0)-(E?x.crossAxis:0);v<k?v=k:v>N&&(v=N)}return{[g]:h,[f]:v}}}},nu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...u}=ke(e,t),p=await ht(t,u),f=Pe(o),g=et(o),h=ye(o)==="y",{width:v,height:m}=a.floating;let x,y;f==="top"||f==="bottom"?(x=f,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,x=g==="end"?"top":"bottom");const b=m-p.top-p.bottom,w=v-p.left-p.right,E=Te(m-p[x],b),k=Te(v-p[y],w),N=!t.middlewareData.shift;let P=E,_=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),N&&!g){const q=de(p.left,0),Q=de(p.right,0),J=de(p.top,0),ee=de(p.bottom,0);h?_=v-2*(q!==0||Q!==0?q+Q:de(p.left,p.right)):P=m-2*(J!==0||ee!==0?J+ee:de(p.top,p.bottom))}await c({...t,availableWidth:_,availableHeight:P});const B=await s.getDimensions(i.floating);return v!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function tt(e){return na(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function na(e){return Yt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return Yt()?e instanceof Element||e instanceof fe(e).Element:!1}function Se(e){return Yt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ra(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const ru=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ru.has(o)}const ou=new Set(["table","td","th"]);function au(e){return ou.has(tt(e))}const su=[":popover-open",":modal"];function Kt(e){return su.some(t=>{try{return e.matches(t)}catch{return!1}})}const iu=["transform","translate","scale","rotate","perspective"],lu=["transform","translate","scale","rotate","perspective","filter"],cu=["paint","layout","strict","content"];function Fn(e){const t=Vn(),n=he(e)?ge(e):e;return iu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||lu.some(r=>(n.willChange||"").includes(r))||cu.some(r=>(n.contain||"").includes(r))}function uu(e){let t=Oe(e);for(;Se(t)&&!nt(t);){if(Fn(t))return t;if(Kt(t))return null;t=Oe(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const du=new Set(["html","body","#document"]);function nt(e){return du.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function qt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ra(e)&&e.host||we(e);return ra(t)?t.host:t}function oa(e){const t=Oe(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&gt(t)?t:oa(t)}function vt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=oa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=fe(o);if(a){const i=zn(s);return t.concat(s,s.visualViewport||[],gt(o)?o:[],i&&n?vt(i):[])}return t.concat(o,vt(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aa(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Wt(n)!==a||Wt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Bn(e){return he(e)?e:e.contextElement}function rt(e){const t=Bn(e);if(!Se(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=aa(t);let s=(a?Wt(n.width):n.width)/r,i=(a?Wt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const fu=be(0);function sa(e){const t=fe(e);return!Vn()||!t.visualViewport?fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fe(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Bn(e);let s=be(1);t&&(r?he(r)&&(s=rt(r)):s=rt(e));const i=pu(a,n,r)?sa(a):be(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,p=o.width/s.x,f=o.height/s.y;if(a){const g=fe(a),h=r&&he(r)?fe(r):r;let v=g,m=zn(v);for(;m&&r&&h!==v;){const x=rt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,E=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,p*=x.x,f*=x.y,c+=w,u+=E,v=fe(m),m=zn(v)}}return Gt({width:p,height:f,x:c,y:u})}function Xt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function ia(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=we(r),i=t?Kt(t.floating):!1;if(r===s||i&&a)return n;let c={scrollLeft:0,scrollTop:0},u=be(1);const p=be(0),f=Se(r);if((f||!f&&!a)&&((tt(r)!=="body"||gt(s))&&(c=qt(r)),Se(r))){const h=Be(r);u=rt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const g=s&&!f&&!a?ia(s,c):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-c.scrollTop*u.y+p.y+g.y}}function hu(e){return Array.from(e.getClientRects())}function gu(e){const t=we(e),n=qt(e),r=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=de(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=de(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const la=25;function vu(e,t){const n=fe(e),r=we(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const p=Vn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const p=r.ownerDocument,f=p.body,g=getComputedStyle(f),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-h);v<=la&&(a-=v)}else u<=la&&(a+=u);return{width:a,height:s,x:i,y:c}}const xu=new Set(["absolute","fixed"]);function bu(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Se(e)?rt(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:s,height:i,x:c,y:u}}function ca(e,t,n){let r;if(t==="viewport")r=vu(e,n);else if(t==="document")r=gu(we(e));else if(he(t))r=bu(t,n);else{const o=sa(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gt(r)}function ua(e,t){const n=Oe(e);return n===t||!he(n)||nt(n)?!1:ge(n).position==="fixed"||ua(n,t)}function yu(e,t){const n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?Oe(e):e;for(;he(s)&&!nt(s);){const i=ge(s),c=Fn(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&xu.has(o.position)||gt(s)&&!c&&ua(e,s))?r=r.filter(p=>p!==s):o=i,s=Oe(s)}return t.set(e,r),r}function wu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Kt(t)?[]:yu(t,this._c):[].concat(n),r],i=s[0],c=s.reduce((u,p)=>{const f=ca(t,p,o);return u.top=de(f.top,u.top),u.right=Te(f.right,u.right),u.bottom=Te(f.bottom,u.bottom),u.left=de(f.left,u.left),u},ca(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Su(e){const{width:t,height:n}=aa(e);return{width:t,height:n}}function Cu(e,t,n){const r=Se(t),o=we(t),a=n==="fixed",s=Be(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=be(0);function u(){c.x=Xt(o)}if(r||!r&&!a)if((tt(t)!=="body"||gt(o))&&(i=qt(t)),r){const h=Be(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const p=o&&!r&&!a?ia(o,i):be(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 Wn(e){return ge(e).position==="static"}function da(e,t){if(!Se(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function fa(e,t){const n=fe(e);if(Kt(e))return n;if(!Se(e)){let o=Oe(e);for(;o&&!nt(o);){if(he(o)&&!Wn(o))return o;o=Oe(o)}return n}let r=da(e,t);for(;r&&au(r)&&Wn(r);)r=da(r,t);return r&&nt(r)&&Wn(r)&&!Fn(r)?n:r||uu(e)||n}const Eu=async function(e){const t=this.getOffsetParent||fa,n=this.getDimensions,r=await n(e.floating);return{reference:Cu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ku(e){return ge(e).direction==="rtl"}const Pu={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:we,getClippingRect:wu,getOffsetParent:fa,getElementRects:Eu,getClientRects:hu,getDimensions:Su,getScale:rt,isElement:he,isRTL:ku};function pa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ru(e,t){let n=null,r;const o=we(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:p,top:f,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ht(f),m=Ht(o.clientWidth-(p+g)),x=Ht(o.clientHeight-(f+h)),y=Ht(p),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Te(1,c))||1};let E=!0;function k(N){const P=N[0].intersectionRatio;if(P!==c){if(!E)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!pa(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return s(!0),a}function Au(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Bn(e),p=o||a?[...u?vt(u):[],...vt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=u&&i?Ru(u,n):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?Be(e):null;c&&x();function x(){const y=Be(e);m&&!pa(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;p.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const _u=Qc,Nu=eu,Tu=Xc,Ou=nu,ju=Zc,ma=qc,Iu=tu,Mu=(e,t,n)=>{const r=new Map,o={platform:Pu,...n},a={...o.platform,_c:r};return Kc(e,t,{...o,platform:a})};var Du=typeof document<"u",Lu=function(){},Zt=Du?te.useLayoutEffect:Lu;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Jt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ha(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(e,t){const n=ha(e);return Math.round(t*n)/n}function Hn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function $u(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[p,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(r);Jt(g,r)||h(r);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(R=>{R!==N.current&&(N.current=R,m(R))},[]),w=l.useCallback(R=>{R!==P.current&&(P.current=R,y(R))},[]),E=a||v,k=s||x,N=l.useRef(null),P=l.useRef(null),_=l.useRef(p),B=c!=null,q=Hn(c),Q=Hn(o),J=Hn(u),ee=l.useCallback(()=>{if(!N.current||!P.current)return;const R={placement:t,strategy:n,middleware:g};Q.current&&(R.platform=Q.current),Mu(N.current,P.current,R).then(ne=>{const C={...ne,isPositioned:J.current!==!1};V.current&&!Jt(_.current,C)&&(_.current=C,At.flushSync(()=>{f(C)}))})},[g,t,n,Q,J]);Zt(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const V=l.useRef(!1);Zt(()=>(V.current=!0,()=>{V.current=!1}),[]),Zt(()=>{if(E&&(N.current=E),k&&(P.current=k),E&&k){if(q.current)return q.current(E,k,ee);ee()}},[E,k,ee,q,B]);const X=l.useMemo(()=>({reference:N,floating:P,setReference:b,setFloating:w}),[b,w]),$=l.useMemo(()=>({reference:E,floating:k}),[E,k]),z=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!$.floating)return R;const ne=ga($.floating,p.x),C=ga($.floating,p.y);return i?{...R,transform:"translate("+ne+"px, "+C+"px)",...ha($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:C}},[n,i,$.floating,p.x,p.y]);return l.useMemo(()=>({...p,update:ee,refs:X,elements:$,floatingStyles:z}),[p,ee,X,$,z])}const Fu=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ma({element:r.current,padding:o}).fn(n):{}:r?ma({element:r,padding:o}).fn(n):{}}}},Vu=(e,t)=>({..._u(e),options:[e,t]}),zu=(e,t)=>({...Nu(e),options:[e,t]}),Bu=(e,t)=>({...Iu(e),options:[e,t]}),Wu=(e,t)=>({...Tu(e),options:[e,t]}),Hu=(e,t)=>({...Ou(e),options:[e,t]}),Uu=(e,t)=>({...ju(e),options:[e,t]}),Gu=(e,t)=>({...Fu(e),options:[e,t]});var Yu="Arrow",va=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(H.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});va.displayName=Yu;var Ku=va;function qu(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Un="Popper",[xa,ot]=Ve(Un),[Xu,ba]=xa(Un),ya=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return d.jsx(Xu,{scope:t,anchor:r,onAnchorChange:o,children:n})};ya.displayName=Un;var wa="PopperAnchor",Sa=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ba(wa,n),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),r?null:d.jsx(H.div,{...o,ref:i})});Sa.displayName=wa;var Gn="PopperContent",[Zu,Ju]=xa(Gn),Ca=l.forwardRef((e,t)=>{var A,D,W,Y,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=ba(Gn,n),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[E,k]=l.useState(null),N=qu(E),P=(N==null?void 0:N.width)??0,_=(N==null?void 0:N.height)??0,B=r+(a!=="center"?"-"+a:""),q=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Q=Array.isArray(u)?u:[u],J=Q.length>0,ee={padding:q,boundary:Q.filter(ed),altBoundary:J},{refs:V,floatingStyles:X,placement:$,isPositioned:z,middlewareData:R}=$u({strategy:"fixed",placement:B,whileElementsMounted:(...pe)=>Au(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Vu({mainAxis:o+_,alignmentAxis:s}),c&&zu({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Bu():void 0,...ee}),c&&Wu({...ee}),Hu({...ee,apply:({elements:pe,rects:Ce,availableWidth:kt,availableHeight:Pt})=>{const{width:Rt,height:Yp}=Ce.reference,un=pe.floating.style;un.setProperty("--radix-popper-available-width",`${kt}px`),un.setProperty("--radix-popper-available-height",`${Pt}px`),un.setProperty("--radix-popper-anchor-width",`${Rt}px`),un.setProperty("--radix-popper-anchor-height",`${Yp}px`)}}),E&&Gu({element:E,padding:i}),td({arrowWidth:P,arrowHeight:_}),g&&Uu({strategy:"referenceHidden",...ee})]}),[ne,C]=Pa($),L=Ae(v);ie(()=>{z&&(L==null||L())},[z,L]);const S=(A=R.arrow)==null?void 0:A.x,T=(D=R.arrow)==null?void 0:D.y,M=((W=R.arrow)==null?void 0:W.centerOffset)!==0,[O,U]=l.useState();return ie(()=>{y&&U(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(Y=R.transformOrigin)==null?void 0:Y.x,(re=R.transformOrigin)==null?void 0:re.y].join(" "),...((oe=R.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Zu,{scope:n,placedSide:ne,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:M,children:d.jsx(H.div,{"data-side":ne,"data-align":C,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});Ca.displayName=Gn;var Ea="PopperArrow",Qu={top:"bottom",right:"left",bottom:"top",left:"right"},ka=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ju(Ea,r),s=Qu[a.placedSide];return d.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:d.jsx(Ku,{...o,ref:n,style:{...o.style,display:"block"}})})});ka.displayName=Ea;function ed(e){return e!==null}var td=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,p]=Pa(n),f={start:"0%",center:"50%",end:"100%"}[p],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 u==="bottom"?(v=s?f:`${g}px`,m=`${-c}px`):u==="top"?(v=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?f:`${h}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?f:`${h}px`),{data:{x:v,y:m}}}});function Pa(e){const[t,n="center"]=e.split("-");return[t,n]}var Yn=ya,Qt=Sa,Kn=Ca,qn=ka,Ra=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"}),nd="VisuallyHidden",Aa=l.forwardRef((e,t)=>d.jsx(H.span,{...e,ref:t,style:{...Ra,...e.style}}));Aa.displayName=nd;var rd=Aa,[en,mm]=Ve("Tooltip",[ot]),tn=ot(),_a="TooltipProvider",od=700,Xn="tooltip.open",[ad,Zn]=en(_a),Na=e=>{const{__scopeTooltip:t,delayDuration:n=od,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(ad,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};Na.displayName=_a;var xt="Tooltip",[sd,bt]=en(xt),Ta=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=Zn(xt,e.__scopeTooltip),u=tn(t),[p,f]=l.useState(null),g=ce(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=qe({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),a==null||a(P)},caller:xt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=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]),N=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)},[]),d.jsx(Yn,{...u,children:d.jsx(sd,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:p,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:E,onClose:k,disableHoverableContent:v,children:n})})};Ta.displayName=xt;var Jn="TooltipTrigger",Oa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Jn,n),a=Zn(Jn,n),s=tn(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),p=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(Qt,{asChild:!0,...s,children:d.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Oa.displayName=Jn;var Qn="TooltipPortal",[id,ld]=en(Qn,{forceMount:void 0}),ja=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=bt(Qn,t);return d.jsx(id,{scope:t,forceMount:n,children:d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:r})})})};ja.displayName=Qn;var at="TooltipContent",Ia=l.forwardRef((e,t)=>{const n=ld(at,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=bt(at,e.__scopeTooltip);return d.jsx(Ne,{present:r||s.open,children:s.disableHoverableContent?d.jsx(Ma,{side:o,...a,ref:t}):d.jsx(cd,{side:o,...a,ref:t})})}),cd=l.forwardRef((e,t)=>{const n=bt(at,e.__scopeTooltip),r=Zn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=n,p=o.current,{onPointerInTransitChange:f}=r,g=l.useCallback(()=>{i(null),f(!1)},[f]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=pd(y,x.getBoundingClientRect()),w=md(y,b),E=hd(m.getBoundingClientRect()),k=vd([...w,...E]);i(k),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,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(p==null?void 0:p.contains(x)),w=!gd(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,s,u,g]),d.jsx(Ma,{...e,ref:a})}),[ud,dd]=en(xt,{isInside:!1}),fd=ni("TooltipContent"),Ma=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=bt(at,n),u=tn(n),{onClose:p}=c;return l.useEffect(()=>(document.addEventListener(Xn,p),()=>document.removeEventListener(Xn,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]),d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:d.jsxs(Kn,{"data-state":c.stateAttribute,...u,...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:[d.jsx(fd,{children:r}),d.jsx(ud,{scope:n,isInside:!0,children:d.jsx(rd,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ia.displayName=at;var Da="TooltipArrow",La=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return dd(Da,n).isInside?null:d.jsx(qn,{...o,...r,ref:t})});La.displayName=Da;function pd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function md(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],u=i.x,p=i.y,f=c.x,g=c.y;p>r!=g>r&&n<(f-u)*(r-p)/(g-p)+u&&(o=!o)}return o}function vd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),xd(t)}function xd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var bd=Na,yd=Ta,wd=Oa,Sd=ja,Cd=Ia,Ed=La;function $a({delayDuration:e=0,...t}){return d.jsx(bd,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function kd({...e}){return d.jsx($a,{children:d.jsx(yd,{"data-slot":"tooltip",...e})})}function Pd({...e}){return d.jsx(wd,{"data-slot":"tooltip-trigger",...e})}function Rd({className:e,sideOffset:t=0,children:n,...r}){return d.jsx(Sd,{children:d.jsxs(Cd,{"data-slot":"tooltip-content",sideOffset:t,className:F("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),...r,children:[n,d.jsx(Ed,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ad=ue("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"}}),er=({label:e,helperText:t,errorText:n,leftIcon:r,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>d.jsxs("div",{className:"flex flex-col gap-1",children:[e&&d.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),d.jsxs("div",{className:F(Ad({size:a,status:n?"error":i?"disabled":"default"}),s),children:[r&&d.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),d.jsx("input",{disabled:i,className:F("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&d.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||n)&&d.jsx("p",{className:F("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),_d=e=>d.jsx(er,{type:"email",inputMode:"email",...e}),Nd=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),u=n?n(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=u.every(f=>f.isValid);return te.useEffect(()=>{t&&t(p,u)},[s,p,u,t]),d.jsx("div",{className:"flex flex-col gap-2",children:d.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&d.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),d.jsx(er,{type:o?"text":"password",value:s,onChange:f=>i(f.target.value),...r,rightIcon:d.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?d.jsx(Cc,{size:18,className:"text-neutral-black-2"}):d.jsx(Ec,{size:18,className:"text-neutral-black-2"})})}),d.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((f,g)=>d.jsxs("div",{className:"flex items-center gap-1",children:[f.isValid?d.jsx(wc,{size:14,className:"text-success-d"}):d.jsx(Sc,{size:14,className:"text-stroke"}),d.jsx("span",{className:f.isValid?"text-success-d":"text-input",children:f.label})]},g))})]})})},Td=e=>d.jsx(er,{type:"search",leftIcon:d.jsx(Wo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Fa(e,[t,n]){return Math.min(n,Math.max(t,e))}function Od(e){const t=e+"CollectionProvider",[n,r]=Ve(t),[o,a]=n(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 d.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=$e(i),u=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),E=ae(x,w.collectionRef);return d.jsx(c,{ref:E,children:b})});u.displayName=i;const p=e+"CollectionItemSlot",f="data-radix-collection-item",g=$e(p),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,E=te.useRef(null),k=ae(x,E),N=a(p,y);return te.useEffect(()=>(N.itemMap.set(E,{ref:E,...w}),()=>void N.itemMap.delete(E))),d.jsx(g,{[f]:"",ref:k,children:b})});h.displayName=p;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(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,P)=>w.indexOf(N.ref.current)-w.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,r]}var jd=l.createContext(void 0);function Id(e){const t=l.useContext(jd);return e||t||"ltr"}function Md(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])}var Dd=[" ","Enter","ArrowUp","ArrowDown"],Ld=[" ","Enter"],We="Select",[nn,rn,$d]=Od(We),[st,hm]=Ve(We,[$d,ot]),on=ot(),[Fd,je]=st(We),[Vd,zd]=st(We),Va=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:p,autoComplete:f,disabled:g,required:h,form:v}=e,m=on(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[E,k]=l.useState(!1),N=Id(u),[P,_]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:We}),[B,q]=qe({prop:s,defaultProp:i,onChange:c,caller:We}),Q=l.useRef(null),J=x?v||!!x.closest("form"):!0,[ee,V]=l.useState(new Set),X=Array.from(ee).map($=>$.props.value).join(";");return d.jsx(Yn,{...m,children:d.jsxs(Fd,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:k,contentId:ce(),value:B,onValueChange:q,open:P,onOpenChange:_,dir:N,triggerPointerDownPosRef:Q,disabled:g,children:[d.jsx(nn.Provider,{scope:t,children:d.jsx(Vd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{V(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{V(z=>{const R=new Set(z);return R.delete($),R})},[]),children:n})}),J?d.jsxs(us,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:f,value:B,onChange:$=>q($.target.value),disabled:g,form:v,children:[B===void 0?d.jsx("option",{value:""}):null,Array.from(ee)]},X):null]})})};Va.displayName=We;var za="SelectTrigger",Ba=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=on(n),s=je(za,n),i=s.disabled||r,c=ae(t,s.onTriggerChange),u=rn(n),p=l.useRef("touch"),[f,g,h]=fs(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=ps(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 d.jsx(Qt,{asChild:!0,...a,children:d.jsx(H.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":ds(s.value)?"":void 0,...o,ref:c,onClick:Z(o.onClick,m=>{m.currentTarget.focus(),p.current!=="mouse"&&v(m)}),onPointerDown:Z(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:Z(o.onKeyDown,m=>{const x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Dd.includes(m.key)&&(v(),m.preventDefault())})})})});Ba.displayName=za;var Wa="SelectValue",Ha=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,c=je(Wa,n),{onValueNodeHasChildrenChange:u}=c,p=a!==void 0,f=ae(t,c.onValueNodeChange);return ie(()=>{u(p)},[u,p]),d.jsx(H.span,{...i,ref:f,style:{pointerEvents:"none"},children:ds(c.value)?d.jsx(d.Fragment,{children:s}):a})});Ha.displayName=Wa;var Bd="SelectIcon",Ua=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ua.displayName=Bd;var Wd="SelectPortal",Ga=e=>d.jsx(mt,{asChild:!0,...e});Ga.displayName=Wd;var He="SelectContent",Ya=l.forwardRef((e,t)=>{const n=je(He,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?At.createPortal(d.jsx(Ka,{scope:e.__scopeSelect,children:d.jsx(nn.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(qa,{...e,ref:t})});Ya.displayName=He;var ve=10,[Ka,Ie]=st(He),Hd="SelectContentImpl",Ud=$e("SelectContent.RemoveScroll"),qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=je(He,n),[w,E]=l.useState(null),[k,N]=l.useState(null),P=ae(t,A=>E(A)),[_,B]=l.useState(null),[q,Q]=l.useState(null),J=rn(n),[ee,V]=l.useState(!1),X=l.useRef(!1);l.useEffect(()=>{if(w)return _n(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...W]=J().map(oe=>oe.ref.current),[Y]=W.slice(-1),re=document.activeElement;for(const oe of A)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===D&&k&&(k.scrollTop=0),oe===Y&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[J,k]),z=l.useCallback(()=>$([_,w]),[$,_,w]);l.useEffect(()=>{ee&&z()},[ee,z]);const{onOpenChange:R,triggerPointerDownPosRef:ne}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=Y=>{var re,oe;A={x:Math.abs(Math.round(Y.pageX)-(((re=ne.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Y.pageY)-(((oe=ne.current)==null?void 0:oe.y)??0))}},W=Y=>{A.x<=10&&A.y<=10?Y.preventDefault():w.contains(Y.target)||R(!1),document.removeEventListener("pointermove",D),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",W,{capture:!0})}}},[w,R,ne]),l.useEffect(()=>{const A=()=>R(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[R]);const[C,L]=fs(A=>{const D=J().filter(re=>!re.disabled),W=D.find(re=>re.ref.current===document.activeElement),Y=ps(D,A,W);Y&&setTimeout(()=>Y.ref.current.focus())}),S=l.useCallback((A,D,W)=>{const Y=!X.current&&!W;(b.value!==void 0&&b.value===D||Y)&&(B(A),Y&&(X.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,W)=>{const Y=!X.current&&!W;(b.value!==void 0&&b.value===D||Y)&&Q(A)},[b.value]),O=r==="popper"?tr:Xa,U=O===tr?{side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(Ka,{scope:n,content:w,viewport:k,onViewportChange:N,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:q,position:r,isPositioned:ee,searchRef:C,children:d.jsx($t,{as:Ud,allowPinchZoom:!0,children:d.jsx(Tt,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:Z(o,A=>{var D;(D=b.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:d.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:A=>A.preventDefault(),...y,...U,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let Y=J().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(A.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const re=A.target,oe=Y.indexOf(re);Y=Y.slice(oe+1)}setTimeout(()=>$(Y)),A.preventDefault()}})})})})})})});qa.displayName=Hd;var Gd="SelectItemAlignedPosition",Xa=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=je(He,n),s=Ie(He,n),[i,c]=l.useState(null),[u,p]=l.useState(null),f=ae(t,P=>p(P)),g=rn(n),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&&u&&m&&x&&y){const P=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(a.dir!=="rtl"){const re=q.left-_.left,oe=B.left-re,pe=P.left-oe,Ce=P.width+pe,kt=Math.max(Ce,_.width),Pt=window.innerWidth-ve,Rt=Fa(oe,[ve,Math.max(ve,Pt-kt)]);i.style.minWidth=Ce+"px",i.style.left=Rt+"px"}else{const re=_.right-q.right,oe=window.innerWidth-B.right-re,pe=window.innerWidth-P.right-oe,Ce=P.width+pe,kt=Math.max(Ce,_.width),Pt=window.innerWidth-ve,Rt=Fa(oe,[ve,Math.max(ve,Pt-kt)]);i.style.minWidth=Ce+"px",i.style.right=Rt+"px"}const Q=g(),J=window.innerHeight-ve*2,ee=m.scrollHeight,V=window.getComputedStyle(u),X=parseInt(V.borderTopWidth,10),$=parseInt(V.paddingTop,10),z=parseInt(V.borderBottomWidth,10),R=parseInt(V.paddingBottom,10),ne=X+$+ee+R+z,C=Math.min(x.offsetHeight*5,ne),L=window.getComputedStyle(m),S=parseInt(L.paddingTop,10),T=parseInt(L.paddingBottom,10),M=P.top+P.height/2-ve,O=J-M,U=x.offsetHeight/2,A=x.offsetTop+U,D=X+$+A,W=ne-D;if(D<=M){const re=Q.length>0&&x===Q[Q.length-1].ref.current;i.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(O,U+(re?T:0)+oe+z),Ce=D+pe;i.style.height=Ce+"px"}else{const re=Q.length>0&&x===Q[0].ref.current;i.style.top="0px";const pe=Math.max(M,X+m.offsetTop+(re?S:0)+U)+W;i.style.height=pe+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=C+"px",i.style.maxHeight=J+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,u,m,x,y,a.dir,r]);ie(()=>w(),[w]);const[E,k]=l.useState();ie(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(P=>{P&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return d.jsx(Kd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(H.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Xa.displayName=Gd;var Yd="SelectPopperPosition",tr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ve,...a}=e,s=on(n);return d.jsx(Kn,{...s,...a,ref:t,align:r,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)"}})});tr.displayName=Yd;var[Kd,nr]=st(He,{}),rr="SelectViewport",Za=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Ie(rr,n),s=nr(rr,n),i=ae(t,a.onViewportChange),c=l.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(nn.Slot,{scope:n,children:d.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const p=u.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-ve*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),E=b-w;f.style.height=w+"px",f.style.bottom==="0px"&&(p.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});Za.displayName=rr;var Ja="SelectGroup",[qd,Xd]=st(Ja),Qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ce();return d.jsx(qd,{scope:n,id:o,children:d.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Qa.displayName=Ja;var es="SelectLabel",ts=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Xd(es,n);return d.jsx(H.div,{id:o.id,...r,ref:t})});ts.displayName=es;var an="SelectItem",[Zd,ns]=st(an),rs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=je(an,n),c=Ie(an,n),u=i.value===r,[p,f]=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,r,o)}),m=ce(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Zd,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{f(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:d.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:d.jsx(H.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:Z(s.onFocus,()=>h(!0)),onBlur:Z(s.onBlur,()=>h(!1)),onClick:Z(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:Z(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:Z(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:Z(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:Z(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Z(s.onKeyDown,b=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(Ld.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});rs.displayName=an;var yt="SelectItemText",os=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=je(yt,n),i=Ie(yt,n),c=ns(yt,n),u=zd(yt,n),[p,f]=l.useState(null),g=ae(t,y=>f(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=p==null?void 0:p.textContent,v=l.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),d.jsxs(d.Fragment,{children:[d.jsx(H.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});os.displayName=yt;var as="SelectItemIndicator",ss=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ns(as,n).isSelected?d.jsx(H.span,{"aria-hidden":!0,...r,ref:t}):null});ss.displayName=as;var or="SelectScrollUpButton",is=l.forwardRef((e,t)=>{const n=Ie(or,e.__scopeSelect),r=nr(or,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(cs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});is.displayName=or;var ar="SelectScrollDownButton",ls=l.forwardRef((e,t)=>{const n=Ie(ar,e.__scopeSelect),r=nr(ar,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<u;a(p)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(cs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ls.displayName=ar;var cs=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Ie("SelectScrollButton",n),s=l.useRef(null),i=rn(n),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var p;const u=i().find(f=>f.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[i]),d.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),Jd="SelectSeparator",Qd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(H.div,{"aria-hidden":!0,...r,ref:t})});Qd.displayName=Jd;var sr="SelectArrow",ef=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),a=je(sr,n),s=Ie(sr,n);return a.open&&s.position==="popper"?d.jsx(qn,{...o,...r,ref:t}):null});ef.displayName=sr;var tf="SelectBubbleInput",us=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),a=ae(r,o),s=Md(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]),d.jsx(H.select,{...n,style:{...Ra,...n.style},ref:a,defaultValue:t})});us.displayName=tf;function ds(e){return e===""||e===void 0}function fs(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=n.current+s;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ps(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=nf(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function nf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rf=Va,of=Ba,af=Ha,sf=Ua,lf=Ga,cf=Ya,uf=Za,df=Qa,ff=ts,pf=rs,mf=os,hf=ss,gf=is,vf=ls;function xf({...e}){return d.jsx(rf,{"data-slot":"select",...e})}function bf({...e}){return d.jsx(df,{"data-slot":"select-group",...e})}function yf({...e}){return d.jsx(af,{"data-slot":"select-value",...e})}function wf({className:e,size:t="default",children:n,...r}){return d.jsxs(of,{"data-slot":"select-trigger","data-size":t,className:F("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),...r,children:[n,d.jsx(sf,{asChild:!0,children:d.jsx(jn,{className:"size-4 opacity-50"})})]})}function Sf({className:e,children:t,position:n="popper",...r}){return d.jsx(lf,{children:d.jsxs(cf,{"data-slot":"select-content",className:F("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",n==="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:n,...r,children:[d.jsx(Ef,{}),d.jsx(uf,{className:F("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(kf,{})]})})}function Cf({className:e,...t}){return d.jsx(ff,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ms({className:e,children:t,...n}){return d.jsxs(pf,{"data-slot":"select-item",className:F("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),...n,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(hf,{children:d.jsx(bc,{className:"size-4"})})}),d.jsx(mf,{children:t})]})}function Ef({className:e,...t}){return d.jsx(gf,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(yc,{className:"size-4"})})}function kf({className:e,...t}){return d.jsx(vf,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(jn,{className:"size-4"})})}var sn="Popover",[hs,gm]=Ve(sn,[ot]),wt=ot(),[Pf,Me]=hs(sn),gs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=wt(t),c=l.useRef(null),[u,p]=l.useState(!1),[f,g]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:sn});return d.jsx(Yn,{...i,children:d.jsx(Pf,{scope:t,contentId:ce(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>p(!0),[]),onCustomAnchorRemove:l.useCallback(()=>p(!1),[]),modal:s,children:n})})};gs.displayName=sn;var vs="PopoverAnchor",Rf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(vs,n),a=wt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(Qt,{...a,...r,ref:t})});Rf.displayName=vs;var xs="PopoverTrigger",bs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(xs,n),a=wt(n),s=ae(t,o.triggerRef),i=d.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Es(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(Qt,{asChild:!0,...a,children:i})});bs.displayName=xs;var ir="PopoverPortal",[Af,_f]=hs(ir,{forceMount:void 0}),ys=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Me(ir,t);return d.jsx(Af,{scope:t,forceMount:n,children:d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:r})})})};ys.displayName=ir;var it="PopoverContent",ws=l.forwardRef((e,t)=>{const n=_f(it,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Me(it,e.__scopePopover);return d.jsx(Ne,{present:r||a.open,children:a.modal?d.jsx(Tf,{...o,ref:t}):d.jsx(Of,{...o,ref:t})})});ws.displayName=it;var Nf=$e("PopoverContent.RemoveScroll"),Tf=l.forwardRef((e,t)=>{const n=Me(it,e.__scopePopover),r=l.useRef(null),o=ae(t,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return _n(s)},[]),d.jsx($t,{as:Nf,allowPinchZoom:!0,children:d.jsx(Ss,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Of=l.forwardRef((e,t)=>{const n=Me(it,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ss=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...f}=e,g=Me(it,n),h=wt(n);return Cn(),d.jsx(Tt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Kn,{"data-state":Es(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)"}})})})}),Cs="PopoverClose",jf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(Cs,n);return d.jsx(H.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});jf.displayName=Cs;var If="PopoverArrow",Mf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return d.jsx(qn,{...o,...r,ref:t})});Mf.displayName=If;function Es(e){return e?"open":"closed"}var Df=gs,Lf=bs,$f=ys,Ff=ws;function Vf({...e}){return d.jsx(Df,{"data-slot":"popover",...e})}function zf({...e}){return d.jsx(Lf,{"data-slot":"popover-trigger",...e})}function Bf({className:e,align:t="center",sideOffset:n=4,...r}){return d.jsx($f,{children:d.jsx(Ff,{"data-slot":"popover-content",align:t,sideOffset:n,className:F("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var ks=1,Wf=.9,Hf=.8,Uf=.17,lr=.1,cr=.999,Gf=.9999,Yf=.99,Kf=/[\\\/_+.#"@\[\(\{&]/,qf=/[\\\/_+.#"@\[\(\{&]/g,Xf=/[\s-]/,Ps=/[\s-]/g;function ur(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?ks:Yf;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=r.charAt(a),u=n.indexOf(c,o),p=0,f,g,h,v;u>=0;)f=ur(e,t,n,r,u+1,a+1,s),f>p&&(u===o?f*=ks:Kf.test(e.charAt(u-1))?(f*=Hf,h=e.slice(o,u-1).match(qf),h&&o>0&&(f*=Math.pow(cr,h.length))):Xf.test(e.charAt(u-1))?(f*=Wf,v=e.slice(o,u-1).match(Ps),v&&o>0&&(f*=Math.pow(cr,v.length))):(f*=Uf,o>0&&(f*=Math.pow(cr,u-o))),e.charAt(u)!==t.charAt(a)&&(f*=Gf)),(f<lr&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(g=ur(e,t,n,r,u+1,a+2,s),g*lr>f&&(f=g*lr)),f>p&&(p=f),u=n.indexOf(c,u+1);return s[i]=p,p}function Rs(e){return e.toLowerCase().replace(Ps," ")}function Zf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ur(e,t,Rs(e),Rs(t),0,0,{})}var St='[cmdk-group=""]',dr='[cmdk-group-items=""]',Jf='[cmdk-group-heading=""]',As='[cmdk-item=""]',_s=`${As}:not([aria-disabled="true"])`,fr="cmdk-item-select",lt="data-value",Qf=(e,t,n)=>Zf(e,t,n),Ns=l.createContext(void 0),Ct=()=>l.useContext(Ns),Ts=l.createContext(void 0),pr=()=>l.useContext(Ts),Os=l.createContext(void 0),js=l.forwardRef((e,t)=>{let n=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}}}),r=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=Is(e),{label:c,children:u,value:p,onValueChange:f,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=ce(),w=ce(),E=ce(),k=l.useRef(null),N=up();Ue(()=>{if(p!==void 0){let S=p.trim();n.current.value=S,P.emit()}},[p]),Ue(()=>{N(6,ee)},[]);let P=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>n.current,setState:(S,T,M)=>{var O,U,A,D;if(!Object.is(n.current[S],T)){if(n.current[S]=T,S==="search")J(),q(),N(1,Q);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(E);W?W.focus():(O=document.getElementById(b))==null||O.focus()}if(N(7,()=>{var W;n.current.selectedItemId=(W=V())==null?void 0:W.id,P.emit()}),M||N(5,ee),((U=i.current)==null?void 0:U.value)!==void 0){let W=T??"";(D=(A=i.current).onValueChange)==null||D.call(A,W);return}}P.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),_=l.useMemo(()=>({value:(S,T,M)=>{var O;T!==((O=a.current.get(S))==null?void 0:O.value)&&(a.current.set(S,{value:T,keywords:M}),n.current.filtered.items.set(S,B(T,M)),N(2,()=>{q(),P.emit()}))},item:(S,T)=>(r.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),N(3,()=>{J(),q(),n.current.value||Q(),P.emit()}),()=>{a.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let M=V();N(4,()=>{J(),(M==null?void 0:M.getAttribute("id"))===S&&Q(),P.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:E,labelId:w,listInnerRef:k}),[]);function B(S,T){var M,O;let U=(O=(M=i.current)==null?void 0:M.filter)!=null?O:Qf;return S?U(S,n.current.search,T):0}function q(){if(!n.current.search||i.current.shouldFilter===!1)return;let S=n.current.filtered.items,T=[];n.current.filtered.groups.forEach(O=>{let U=o.current.get(O),A=0;U.forEach(D=>{let W=S.get(D);A=Math.max(W,A)}),T.push([O,A])});let M=k.current;X().sort((O,U)=>{var A,D;let W=O.getAttribute("id"),Y=U.getAttribute("id");return((A=S.get(Y))!=null?A:0)-((D=S.get(W))!=null?D:0)}).forEach(O=>{let U=O.closest(dr);U?U.appendChild(O.parentElement===U?O:O.closest(`${dr} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${dr} > *`))}),T.sort((O,U)=>U[1]-O[1]).forEach(O=>{var U;let A=(U=k.current)==null?void 0:U.querySelector(`${St}[${lt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Q(){let S=X().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);P.setState("value",T||void 0)}function J(){var S,T,M,O;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let U=0;for(let A of r.current){let D=(T=(S=a.current.get(A))==null?void 0:S.value)!=null?T:"",W=(O=(M=a.current.get(A))==null?void 0:M.keywords)!=null?O:[],Y=B(D,W);n.current.filtered.items.set(A,Y),Y>0&&U++}for(let[A,D]of o.current)for(let W of D)if(n.current.filtered.items.get(W)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=U}function ee(){var S,T,M;let O=V();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(T=O.closest(St))==null?void 0:T.querySelector(Jf))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function V(){var S;return(S=k.current)==null?void 0:S.querySelector(`${As}[aria-selected="true"]`)}function X(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(_s))||[])}function $(S){let T=X()[S];T&&P.setState("value",T.getAttribute(lt))}function z(S){var T;let M=V(),O=X(),U=O.findIndex(D=>D===M),A=O[U+S];(T=i.current)!=null&&T.loop&&(A=U+S<0?O[O.length-1]:U+S===O.length?O[0]:O[U+S]),A&&P.setState("value",A.getAttribute(lt))}function R(S){let T=V(),M=T==null?void 0:T.closest(St),O;for(;M&&!O;)M=S>0?lp(M,St):cp(M,St),O=M==null?void 0:M.querySelector(_s);O?P.setState("value",O.getAttribute(lt)):z(S)}let ne=()=>$(X().length-1),C=S=>{S.preventDefault(),S.metaKey?ne():S.altKey?R(1):z(1)},L=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?R(-1):z(-1)};return l.createElement(H.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var T;(T=y.onKeyDown)==null||T.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&C(S);break}case"ArrowDown":{C(S);break}case"p":case"k":{x&&S.ctrlKey&&L(S);break}case"ArrowUp":{L(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),ne();break}case"Enter":{S.preventDefault();let O=V();if(O){let U=new Event(fr);O.dispatchEvent(U)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:fp},c),ln(e,S=>l.createElement(Ts.Provider,{value:P},l.createElement(Ns.Provider,{value:_},S))))}),ep=l.forwardRef((e,t)=>{var n,r;let o=ce(),a=l.useRef(null),s=l.useContext(Os),i=Ct(),c=Is(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let p=Ms(o,a,[e.value,e.children,a],e.keywords),f=pr(),g=De(N=>N.value&&N.value===p.current),h=De(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=a.current;if(!(!N||e.disabled))return N.addEventListener(fr,v),()=>N.removeEventListener(fr,v)},[h,e.onSelect,e.disabled]);function v(){var N,P;m(),(P=(N=c.current).onSelect)==null||P.call(N,p.current)}function m(){f.setState("value",p.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:E,...k}=e;return l.createElement(H.div,{ref:Le(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)}),tp=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=ce(),i=l.useRef(null),c=l.useRef(null),u=ce(),p=Ct(),f=De(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>p.group(s),[]),Ms(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(H.div,{ref:Le(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(Os.Provider,{value:g},h))))}),np=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),a=De(s=>!s.search);return!n&&!a?null:l.createElement(H.div,{ref:Le(o,t),...r,"cmdk-separator":"",role:"separator"})}),rp=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=pr(),s=De(u=>u.search),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(H.input,{ref:t,...r,"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:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),op=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,p=a.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(f),g.unobserve(u)}}},[]),l.createElement(H.div,{ref:Le(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Le(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),ap=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Do,{open:n,onOpenChange:r},l.createElement(Lo,{container:s},l.createElement($o,{"cmdk-overlay":"",className:o}),l.createElement(Fo,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(js,{ref:t,...i}))))}),sp=l.forwardRef((e,t)=>De(n=>n.filtered.count===0)?l.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),ip=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return l.createElement(H.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Et=Object.assign(js,{List:op,Item:ep,Input:rp,Group:tp,Separator:np,Dialog:ap,Empty:sp,Loading:ip});function lp(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function cp(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Is(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 De(e){let t=pr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Ms(e,t,n,r=[]){let o=l.useRef(),a=Ct();return Ue(()=>{var s;let i=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var up=()=>{let[e,t]=l.useState(),n=ct(()=>new Map);return Ue(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function dp(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(dp(t),{ref:t.ref},n(t.props.children)):n(t)}var fp={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function pp({className:e,...t}){return d.jsx(Et,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function mp({className:e,...t}){return d.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[d.jsx(Wo,{className:"size-4 shrink-0 opacity-50"}),d.jsx(Et.Input,{"data-slot":"command-input",className:F("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 hp({...e}){return d.jsx(Et.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ds({className:e,...t}){return d.jsx(Et.Group,{"data-slot":"command-group",className:F("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 Ls({className:e,...t}){return d.jsx(Et.Item,{"data-slot":"command-item",className:F("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 mr(e){return e.length>0&&e[0].kind==="group"}function gp(e){return e.multiple?d.jsx(Fs,{...e}):d.jsx($s,{...e})}const $s=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),u=a??i,p=f=>{c(f),s==null||s(f)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(xf,{value:u,onValueChange:p,disabled:n,children:[d.jsx(wf,{"aria-invalid":!!r,className:F("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:d.jsx(yf,{placeholder:t})}),d.jsx(Sf,{className:"w-full bg-white border border-neutral-black-4",children:mr(e)?e.map(f=>d.jsxs(bf,{className:"p-2",children:[d.jsx(Cf,{children:f.label}),f.options.map(g=>d.jsx(ms,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},f.label)):e.map(f=>d.jsx(ms,{value:f.value,disabled:f.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:f.label},f.value))})]}),r&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Fs=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[u,p]=te.useState([]),f=a??u,g=te.useMemo(()=>mr(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 d.jsxs("div",{className:"w-94",children:[d.jsxs(Vf,{open:i,onOpenChange:c,children:[d.jsx(zf,{asChild:!0,children:d.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:F("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[d.jsx("div",{className:"flex flex-wrap gap-1",children:f.length>0?f.map(v=>d.jsxs(Ko,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[d.jsx("span",{className:"text-neutral-black-1",children:v}),d.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:d.jsx(Uo,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):d.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),d.jsx(jn,{className:"h-4 w-4 text-neutral-black-1"})]})}),d.jsx(Bf,{className:"p-0 w-full bg-white border border-neutral-black-4",children:d.jsxs(pp,{className:"w-full",children:[d.jsx(mp,{placeholder:"Search..."}),d.jsx(hp,{children:"No results found."}),mr(e)?e.map(v=>d.jsx(Ds,{heading:v.label,children:v.options.map(m=>d.jsxs(Ls,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):d.jsx(Ds,{children:g.map(v=>d.jsxs(Ls,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},vp=ue("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 xp({className:e,variant:t,asChild:n=!1,children:r,...o}){const a=n?fn:"div";return d.jsx(a,{"data-slot":"card",className:F(vp({variant:t}),e),...o,children:r})}var hr={exports:{}},gr={};/**
161
+ */const Ca=ce("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Nu({...e}){return d.jsx(ma,{"data-slot":"dialog",...e})}function Au({...e}){return d.jsx(uu,{"data-slot":"dialog-trigger",...e})}function Ea({...e}){return d.jsx(ha,{"data-slot":"dialog-portal",...e})}function Tu({...e}){return d.jsx(xa,{"data-slot":"dialog-close",...e})}function ka({className:e,...t}){return d.jsx(ga,{"data-slot":"dialog-overlay",className:F("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 Ou({className:e,children:t,showCloseButton:r=!0,...n}){return d.jsxs(Ea,{"data-slot":"dialog-portal",children:[d.jsx(ka,{}),d.jsxs(va,{"data-slot":"dialog-content",className:F("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&&d.jsxs(xa,{"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:[d.jsx(Ca,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Iu({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:F("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ju({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Mu({className:e,...t}){return d.jsx(du,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold ",e),...t})}function Du({className:e,...t}){return d.jsx(fu,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}const Lu=ue("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"}}),$r=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?pr:"span";return d.jsx(i,{ref:s,"data-slot":"badge",className:F(Lu({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});$r.displayName="Badge";const Fu=["top","right","bottom","left"],Ie=Math.min,de=Math.max,Gt=Math.round,Ut=Math.floor,ye=e=>({x:e,y:e}),$u={left:"right",right:"left",bottom:"top",top:"bottom"},Vu={start:"end",end:"start"};function Vr(e,t,r){return de(e,Ie(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ne(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 zu=new Set(["top","bottom"]);function we(e){return zu.has(Ne(e))?"y":"x"}function Wr(e){return zr(we(e))}function Bu(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=Kt(s)),[s,Kt(s)]}function Wu(e){const t=Kt(e);return[Hr(e),t,Hr(t)]}function Hr(e){return e.replace(/start|end/g,t=>Vu[t])}const Ra=["left","right"],_a=["right","left"],Hu=["top","bottom"],Gu=["bottom","top"];function Uu(e,t,r){switch(e){case"top":case"bottom":return r?t?_a:Ra:t?Ra:_a;case"left":case"right":return t?Hu:Gu;default:return[]}}function Ku(e,t,r,n){const o=et(e);let a=Uu(Ne(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Hr)))),a}function Kt(e){return e.replace(/left|right|bottom|top/g,t=>$u[t])}function Yu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?Yu(e):{top:e,right:e,bottom:e,left:e}}function Yt(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 Na(e,t,r){let{reference:n,floating:o}=e;const a=we(t),s=Wr(t),i=Br(s),c=Ne(t),u=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&&u?-1:1);break;case"end":h[s]+=g*(r&&u?-1:1);break}return h}const qu=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 u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Na(u,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:u,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&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Na(u,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:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Pa(h),x=i[g?p==="floating"?"reference":"floating":p],y=Yt(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:u,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=Yt(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 Xu=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:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Pa(f),g={x:r,y:n},h=Wr(o),v=Br(h),m=await s.getDimensions(u),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(u));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-k/2,W=R/2-m[v]/2-1,K=Ie(p[y],W),X=Ie(p[b],W),Q=K,ee=R-m[v]-X,z=R/2-m[v]/2+_,q=Vr(Q,z,ee),D=!c.arrow&&et(o)!=null&&z!==q&&a.reference[v]/2-(z<Q?K:X)-m[v]/2<0,H=D?z<Q?z-Q:z-ee:0;return{[h]:g[h]+H,data:{[h]:q,centerOffset:z-q-H,...D&&{alignmentOffset:H}},reset:D}}}),Zu=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:u}=t,{mainAxis:f=!0,crossAxis:p=!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 y=Ne(o),b=we(i),w=Ne(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!m?[Kt(i)]:Wu(i)),A=v!=="none";!g&&A&&k.push(...Ku(i,m,v,C));const R=[i,...k],_=await gt(t,x),W=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&W.push(_[y]),p){const z=Bu(o,s,C);W.push(_[z[0]],_[z[1]])}if(K=[...K,{placement:o,overflows:W}],!W.every(z=>z<=0)){var X,Q;const z=(((X=a.flip)==null?void 0:X.index)||0)+1,q=R[z];if(q&&(!(p==="alignment"?b!==we(q):!1)||K.every(P=>we(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:q}};let D=(Q=K.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:Q.placement;if(!D)switch(h){case"bestFit":{var ee;const H=(ee=K.filter(P=>{if(A){const re=we(P.placement);return re===b||re==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(re=>re>0).reduce((re,E)=>re+E,0)]).sort((P,re)=>P[1]-re[1])[0])==null?void 0:ee[0];H&&(D=H);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Aa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ta(e){return Fu.some(t=>e[t]>=0)}const Ju=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 gt(t,{...o,elementContext:"reference"}),s=Aa(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ta(s)}}}case"escaped":{const a=await gt(t,{...o,altBoundary:!0}),s=Aa(a,r.floating);return{data:{escapedOffsets:s,escaped:Ta(s)}}}default:return{}}}}},Oa=new Set(["left","top"]);async function Qu(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ne(r),i=et(r),c=we(r)==="y",u=Oa.has(s)?-1:1,f=a&&c?-1:1,p=Pe(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*u}:{x:g*u,y:h*f}}const ed=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 Qu(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}}}}},td=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}=Pe(e,t),u={x:r,y:n},f=await gt(t,c),p=we(Ne(o)),g=zr(p);let h=u[g],v=u[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}}}}}},rd=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:u=!0}=Pe(e,t),f={x:r,y:n},p=we(o),g=zr(p);let h=f[g],v=f[p];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,k=a.reference[g]+a.reference[w]-x.mainAxis;h<C?h=C:h>k&&(h=k)}if(u){var y,b;const w=g==="y"?"width":"height",C=Oa.has(Ne(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}}}},nd=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=()=>{},...u}=Pe(e,t),f=await gt(t,u),p=Ne(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=Ie(m-f[x],b),k=Ie(v-f[y],w),A=!t.middlewareData.shift;let R=C,_=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=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?_=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:_,availableHeight:R});const W=await s.getDimensions(i.floating);return v!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function qt(){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 qt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return qt()?e instanceof Element||e instanceof fe(e).Element:!1}function Ce(e){return qt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ja(e){return!qt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const od=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)&&!od.has(o)}const ad=new Set(["table","td","th"]);function sd(e){return ad.has(tt(e))}const id=[":popover-open",":modal"];function Xt(e){return id.some(t=>{try{return e.matches(t)}catch{return!1}})}const ld=["transform","translate","scale","rotate","perspective"],cd=["transform","translate","scale","rotate","perspective","filter"],ud=["paint","layout","strict","content"];function Gr(e){const t=Ur(),r=he(e)?ge(e):e;return ld.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)||cd.some(n=>(r.willChange||"").includes(n))||ud.some(n=>(r.contain||"").includes(n))}function dd(e){let t=je(e);for(;Ce(t)&&!rt(t);){if(Gr(t))return t;if(Xt(t))return null;t=je(t)}return null}function Ur(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fd=new Set(["html","body","#document"]);function rt(e){return fd.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function Zt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ja(e)&&e.host||Se(e);return ja(t)?t.host:t}function Ma(e){const t=je(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&vt(t)?t:Ma(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ma(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 Da(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=Gt(r)!==a||Gt(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}=Da(t);let s=(a?Gt(r.width):r.width)/n,i=(a?Gt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const pd=ye(0);function La(e){const t=fe(e);return!Ur()||!t.visualViewport?pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function md(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=md(a,r,n)?La(a):ye(0);let c=(o.left+i.x)/s.x,u=(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,u*=x.y,f*=x.x,p*=x.y,c+=w,u+=C,v=fe(m),m=Kr(v)}}return Yt({width:f,height:p,x:c,y:u})}function Jt(e,t){const r=Zt(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-Jt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function hd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Se(n),i=t?Xt(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},u=ye(1);const f=ye(0),p=Ce(n);if((p||!p&&!a)&&((tt(n)!=="body"||vt(s))&&(c=Zt(n)),Ce(n))){const h=We(n);u=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*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-c.scrollTop*u.y+f.y+g.y}}function gd(e){return Array.from(e.getClientRects())}function vd(e){const t=Se(e),r=Zt(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+Jt(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 $a=25;function xd(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 u=Jt(n);if(u<=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<=$a&&(a-=v)}else u<=$a&&(a+=u);return{width:a,height:s,x:i,y:c}}const bd=new Set(["absolute","fixed"]);function yd(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,u=n*a.y;return{width:s,height:i,x:c,y:u}}function Va(e,t,r){let n;if(t==="viewport")n=xd(e,r);else if(t==="document")n=vd(Se(e));else if(he(t))n=yd(t,r);else{const o=La(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Yt(n)}function za(e,t){const r=je(e);return r===t||!he(r)||rt(r)?!1:ge(r).position==="fixed"||za(r,t)}function wd(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?je(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&&bd.has(o.position)||vt(s)&&!c&&za(e,s))?n=n.filter(f=>f!==s):o=i,s=je(s)}return t.set(e,n),n}function Sd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Xt(t)?[]:wd(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((u,f)=>{const p=Va(t,f,o);return u.top=de(p.top,u.top),u.right=Ie(p.right,u.right),u.bottom=Ie(p.bottom,u.bottom),u.left=de(p.left,u.left),u},Va(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cd(e){const{width:t,height:r}=Da(e);return{width:t,height:r}}function Ed(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 u(){c.x=Jt(o)}if(n||!n&&!a)if((tt(t)!=="body"||vt(o))&&(i=Zt(t)),n){const h=We(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!n&&o&&u();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 Ba(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 Wa(e,t){const r=fe(e);if(Xt(e))return r;if(!Ce(e)){let o=je(e);for(;o&&!rt(o);){if(he(o)&&!qr(o))return o;o=je(o)}return r}let n=Ba(e,t);for(;n&&sd(n)&&qr(n);)n=Ba(n,t);return n&&rt(n)&&qr(n)&&!Gr(n)?r:n||dd(e)||r}const kd=async function(e){const t=this.getOffsetParent||Wa,r=this.getDimensions,n=await r(e.floating);return{reference:Ed(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Rd(e){return ge(e).direction==="rtl"}const _d={convertOffsetParentRelativeRectToViewportRelativeRect:hd,getDocumentElement:Se,getClippingRect:Sd,getOffsetParent:Wa,getElementRects:kd,getClientRects:gd,getDimensions:Cd,getScale:nt,isElement:he,isRTL:Rd};function Ha(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pd(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 u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ut(p),m=Ut(o.clientWidth-(f+g)),x=Ut(o.clientHeight-(p+h)),y=Ut(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Ie(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&&!Ha(u,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 Nd(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,u=Yr(e),f=o||a?[...u?xt(u):[],...xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&i?Pd(u,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?We(e):null;c&&x();function x(){const y=We(e);m&&!Ha(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 Ad=ed,Td=td,Od=Zu,Id=nd,jd=Ju,Ga=Xu,Md=rd,Dd=(e,t,r)=>{const n=new Map,o={platform:_d,...r},a={...o.platform,_c:n};return qu(e,t,{...o,platform:a})};var Ld=typeof document<"u",Fd=function(){},Qt=Ld?te.useLayoutEffect:Fd;function er(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(!er(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)&&!er(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ua(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ka(e,t){const r=Ua(e);return Math.round(t*r)/r}function Xr(e){const t=l.useRef(e);return Qt(()=>{t.current=e}),t}function $d(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:u}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);er(g,n)||h(n);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(P=>{P!==A.current&&(A.current=P,m(P))},[]),w=l.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),C=a||v,k=s||x,A=l.useRef(null),R=l.useRef(null),_=l.useRef(f),W=c!=null,K=Xr(c),X=Xr(o),Q=Xr(u),ee=l.useCallback(()=>{if(!A.current||!R.current)return;const P={placement:t,strategy:r,middleware:g};X.current&&(P.platform=X.current),Dd(A.current,R.current,P).then(re=>{const E={...re,isPositioned:Q.current!==!1};z.current&&!er(_.current,E)&&(_.current=E,Nt.flushSync(()=>{p(E)}))})},[g,t,r,X,Q]);Qt(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const z=l.useRef(!1);Qt(()=>(z.current=!0,()=>{z.current=!1}),[]),Qt(()=>{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,W]);const q=l.useMemo(()=>({reference:A,floating:R,setReference:b,setFloating:w}),[b,w]),D=l.useMemo(()=>({reference:C,floating:k}),[C,k]),H=l.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const re=Ka(D.floating,f.x),E=Ka(D.floating,f.y);return i?{...P,transform:"translate("+re+"px, "+E+"px)",...Ua(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:E}},[r,i,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:D,floatingStyles:H}),[f,ee,q,D,H])}const Vd=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?Ga({element:n.current,padding:o}).fn(r):{}:n?Ga({element:n,padding:o}).fn(r):{}}}},zd=(e,t)=>({...Ad(e),options:[e,t]}),Bd=(e,t)=>({...Td(e),options:[e,t]}),Wd=(e,t)=>({...Md(e),options:[e,t]}),Hd=(e,t)=>({...Od(e),options:[e,t]}),Gd=(e,t)=>({...Id(e),options:[e,t]}),Ud=(e,t)=>({...jd(e),options:[e,t]}),Kd=(e,t)=>({...Vd(e),options:[e,t]});var Yd="Arrow",Ya=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return d.jsx(V.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ya.displayName=Yd;var qd=Ya,Zr="Popper",[qa,ot]=xe(Zr),[Xd,Xa]=qa(Zr),Za=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return d.jsx(Xd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Za.displayName=Zr;var Ja="PopperAnchor",Qa=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Xa(Ja,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:d.jsx(V.div,{...o,ref:i})});Qa.displayName=Ja;var Jr="PopperContent",[Zd,Jd]=qa(Jr),es=l.forwardRef((e,t)=>{var N,L,G,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:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=Xa(Jr,r),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[C,k]=l.useState(null),A=uo(C),R=(A==null?void 0:A.width)??0,_=(A==null?void 0:A.height)??0,W=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(u)?u:[u],Q=X.length>0,ee={padding:K,boundary:X.filter(ef),altBoundary:Q},{refs:z,floatingStyles:q,placement:D,isPositioned:H,middlewareData:P}=$d({strategy:"fixed",placement:W,whileElementsMounted:(...pe)=>Nd(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[zd({mainAxis:o+_,alignmentAxis:s}),c&&Bd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Wd():void 0,...ee}),c&&Hd({...ee}),Gd({...ee,apply:({elements:pe,rects:Ee,availableWidth:Rt,availableHeight:_t})=>{const{width:Pt,height:Hm}=Ee.reference,dr=pe.floating.style;dr.setProperty("--radix-popper-available-width",`${Rt}px`),dr.setProperty("--radix-popper-available-height",`${_t}px`),dr.setProperty("--radix-popper-anchor-width",`${Pt}px`),dr.setProperty("--radix-popper-anchor-height",`${Hm}px`)}}),C&&Kd({element:C,padding:i}),tf({arrowWidth:R,arrowHeight:_}),g&&Ud({strategy:"referenceHidden",...ee})]}),[re,E]=ns(D),$=Re(v);ie(()=>{H&&($==null||$())},[H,$]);const S=(N=P.arrow)==null?void 0:N.x,T=(L=P.arrow)==null?void 0:L.y,M=((G=P.arrow)==null?void 0:G.centerOffset)!==0,[O,Y]=l.useState();return ie(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(Z=P.transformOrigin)==null?void 0:Z.x,(ne=P.transformOrigin)==null?void 0:ne.y].join(" "),...((oe=P.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Zd,{scope:r,placedSide:re,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:M,children:d.jsx(V.div,{"data-side":re,"data-align":E,...m,ref:w,style:{...m.style,animation:H?void 0:"none"}})})})});es.displayName=Jr;var ts="PopperArrow",Qd={top:"bottom",right:"left",bottom:"top",left:"right"},rs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Jd(ts,n),s=Qd[a.placedSide];return d.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:d.jsx(qd,{...o,ref:r,style:{...o.style,display:"block"}})})});rs.displayName=ts;function ef(e){return e!==null}var tf=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,[u,f]=ns(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 u==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):u==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?p:`${h}px`):u==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function ns(e){const[t,r="center"]=e.split("-");return[t,r]}var Qr=Za,tr=Qa,en=es,tn=rs,os=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"}),rf="VisuallyHidden",as=l.forwardRef((e,t)=>d.jsx(V.span,{...e,ref:t,style:{...os,...e.style}}));as.displayName=rf;var nf=as,[rr,fh]=xe("Tooltip",[ot]),nr=ot(),ss="TooltipProvider",of=700,rn="tooltip.open",[af,nn]=rr(ss),is=e=>{const{__scopeTooltip:t,delayDuration:r=of,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 u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(af,{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(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};is.displayName=ss;var bt="Tooltip",[sf,yt]=rr(bt),ls=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=nn(bt,e.__scopeTooltip),u=nr(t),[f,p]=l.useState(null),g=le(),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)},[]),d.jsx(Qr,{...u,children:d.jsx(sf,{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})})};ls.displayName=bt;var on="TooltipTrigger",cs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(on,r),a=nn(on,r),s=nr(r),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(tr,{asChild:!0,...s,children:d.jsx(V.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:B(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:B(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});cs.displayName=on;var an="TooltipPortal",[lf,cf]=rr(an,{forceMount:void 0}),us=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(an,t);return d.jsx(lf,{scope:t,forceMount:r,children:d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:n})})})};us.displayName=an;var at="TooltipContent",ds=l.forwardRef((e,t)=>{const r=cf(at,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(at,e.__scopeTooltip);return d.jsx(_e,{present:n||s.open,children:s.disableHoverableContent?d.jsx(fs,{side:o,...a,ref:t}):d.jsx(uf,{side:o,...a,ref:t})})}),uf=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:u}=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=mf(y,x.getBoundingClientRect()),w=hf(y,b),C=gf(m.getBoundingClientRect()),k=xf([...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=!vf(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,u,g]),d.jsx(fs,{...e,ref:a})}),[df,ff]=rr(bt,{isInside:!1}),pf=Ii("TooltipContent"),fs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(at,r),u=nr(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]),d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(en,{"data-state":c.stateAttribute,...u,...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:[d.jsx(pf,{children:n}),d.jsx(df,{scope:r,isInside:!0,children:d.jsx(nf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});ds.displayName=at;var ps="TooltipArrow",ms=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nr(r);return ff(ps,r).isInside?null:d.jsx(tn,{...o,...n,ref:t})});ms.displayName=ps;function mf(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 hf(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 gf(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 vf(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],u=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function xf(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),bf(t)}function bf(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 yf=is,wf=ls,Sf=cs,Cf=us,Ef=ds,kf=ms;function hs({delayDuration:e=0,...t}){return d.jsx(yf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Rf({...e}){return d.jsx(hs,{children:d.jsx(wf,{"data-slot":"tooltip",...e})})}function _f({...e}){return d.jsx(Sf,{"data-slot":"tooltip-trigger",...e})}function Pf({className:e,sideOffset:t=0,children:r,...n}){return d.jsx(Cf,{children:d.jsxs(Ef,{"data-slot":"tooltip-content",sideOffset:t,className:F("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,d.jsx(kf,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Nf=ue("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})=>d.jsxs("div",{className:"flex flex-col gap-1",children:[e&&d.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),d.jsxs("div",{className:F(Nf({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&d.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),d.jsx("input",{disabled:i,className:F("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&d.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&d.jsx("p",{className:F("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),Af=e=>d.jsx(sn,{type:"email",inputMode:"email",...e}),Tf=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),u=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=u.every(p=>p.isValid);return te.useEffect(()=>{t&&t(f,u)},[s,f,u,t]),d.jsx("div",{className:"flex flex-col gap-2",children:d.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&d.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),d.jsx(sn,{type:o?"text":"password",value:s,onChange:p=>i(p.target.value),...n,rightIcon:d.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?d.jsx(Eu,{size:18,className:"text-neutral-black-2"}):d.jsx(ku,{size:18,className:"text-neutral-black-2"})})}),d.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((p,g)=>d.jsxs("div",{className:"flex items-center gap-1",children:[p.isValid?d.jsx(Su,{size:14,className:"text-success-d"}):d.jsx(Cu,{size:14,className:"text-stroke"}),d.jsx("span",{className:p.isValid?"text-success-d":"text-input",children:p.label})]},g))})]})})},Of=e=>d.jsx(sn,{type:"search",leftIcon:d.jsx(wa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function gs(e,[t,r]){return Math.min(r,Math.max(t,e))}var If=[" ","Enter","ArrowUp","ArrowDown"],jf=[" ","Enter"],He="Select",[or,ar,Mf]=no(He),[st,ph]=xe(He,[Mf,ot]),sr=ot(),[Df,Me]=st(He),[Lf,Ff]=st(He),vs=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=sr(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[C,k]=l.useState(!1),A=yr(u),[R,_]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[W,K]=Te({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=x?v||!!x.closest("form"):!0,[ee,z]=l.useState(new Set),q=Array.from(ee).map(D=>D.props.value).join(";");return d.jsx(Qr,{...m,children:d.jsxs(Df,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:le(),value:W,onValueChange:K,open:R,onOpenChange:_,dir:A,triggerPointerDownPosRef:X,disabled:g,children:[d.jsx(or.Provider,{scope:t,children:d.jsx(Lf,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(D=>{z(H=>new Set(H).add(D))},[]),onNativeOptionRemove:l.useCallback(D=>{z(H=>{const P=new Set(H);return P.delete(D),P})},[]),children:r})}),Q?d.jsxs(zs,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:W,onChange:D=>K(D.target.value),disabled:g,form:v,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};vs.displayName=He;var xs="SelectTrigger",bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=sr(r),s=Me(xs,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),u=ar(r),f=l.useRef("touch"),[p,g,h]=Ws(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=Hs(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 d.jsx(tr,{asChild:!0,...a,children:d.jsx(V.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":Bs(s.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:B(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:B(o.onKeyDown,m=>{const x=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&If.includes(m.key)&&(v(),m.preventDefault())})})})});bs.displayName=xs;var ys="SelectValue",ws=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=Me(ys,r),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,p=ae(t,c.onValueNodeChange);return ie(()=>{u(f)},[u,f]),d.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:Bs(c.value)?d.jsx(d.Fragment,{children:s}):a})});ws.displayName=ys;var $f="SelectIcon",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return d.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ss.displayName=$f;var Vf="SelectPortal",Cs=e=>d.jsx(ht,{asChild:!0,...e});Cs.displayName=Vf;var Ge="SelectContent",Es=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?Nt.createPortal(d.jsx(ks,{scope:e.__scopeSelect,children:d.jsx(or.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(Rs,{...e,ref:t})});Es.displayName=Ge;var ve=10,[ks,De]=st(Ge),zf="SelectContentImpl",Bf=Ve("SelectContent.RemoveScroll"),Rs=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,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,N=>C(N)),[_,W]=l.useState(null),[K,X]=l.useState(null),Q=ar(r),[ee,z]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return jr(w)},[w]),Pr();const D=l.useCallback(N=>{const[L,...G]=Q().map(oe=>oe.ref.current),[Z]=G.slice(-1),ne=document.activeElement;for(const oe of N)if(oe===ne||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===L&&k&&(k.scrollTop=0),oe===Z&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==ne))return},[Q,k]),H=l.useCallback(()=>D([_,w]),[D,_,w]);l.useEffect(()=>{ee&&H()},[ee,H]);const{onOpenChange:P,triggerPointerDownPosRef:re}=b;l.useEffect(()=>{if(w){let N={x:0,y:0};const L=Z=>{var ne,oe;N={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))}},G=Z=>{N.x<=10&&N.y<=10?Z.preventDefault():w.contains(Z.target)||P(!1),document.removeEventListener("pointermove",L),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,P,re]),l.useEffect(()=>{const N=()=>P(!1);return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[P]);const[E,$]=Ws(N=>{const L=Q().filter(ne=>!ne.disabled),G=L.find(ne=>ne.ref.current===document.activeElement),Z=Hs(L,N,G);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((N,L,G)=>{const Z=!q.current&&!G;(b.value!==void 0&&b.value===L||Z)&&(W(N),Z&&(q.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((N,L,G)=>{const Z=!q.current&&!G;(b.value!==void 0&&b.value===L||Z)&&X(N)},[b.value]),O=n==="popper"?ln:_s,Y=O===ln?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(ks,{scope:r,content:w,viewport:k,onViewportChange:A,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:H,selectedItemText:K,position:n,isPositioned:ee,searchRef:E,children:d.jsx(Vt,{as:Bf,allowPinchZoom:!0,children:d.jsx(jt,{asChild:!0,trapped:b.open,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:B(o,N=>{var L;(L=b.trigger)==null||L.focus({preventScroll:!0}),N.preventDefault()}),children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:d.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:N=>N.preventDefault(),...y,...Y,onPlaced:()=>z(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,N=>{const L=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!L&&N.key.length===1&&$(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let Z=Q().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(N.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const ne=N.target,oe=Z.indexOf(ne);Z=Z.slice(oe+1)}setTimeout(()=>D(Z)),N.preventDefault()}})})})})})})});Rs.displayName=zf;var Wf="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),[u,f]=l.useState(null),p=ae(t,R=>f(R)),g=ar(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&&u&&m&&x&&y){const R=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),W=a.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=K.left-_.left,oe=W.left-ne,pe=R.left-oe,Ee=R.width+pe,Rt=Math.max(Ee,_.width),_t=window.innerWidth-ve,Pt=gs(oe,[ve,Math.max(ve,_t-Rt)]);i.style.minWidth=Ee+"px",i.style.left=Pt+"px"}else{const ne=_.right-K.right,oe=window.innerWidth-W.right-ne,pe=window.innerWidth-R.right-oe,Ee=R.width+pe,Rt=Math.max(Ee,_.width),_t=window.innerWidth-ve,Pt=gs(oe,[ve,Math.max(ve,_t-Rt)]);i.style.minWidth=Ee+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-ve*2,ee=m.scrollHeight,z=window.getComputedStyle(u),q=parseInt(z.borderTopWidth,10),D=parseInt(z.paddingTop,10),H=parseInt(z.borderBottomWidth,10),P=parseInt(z.paddingBottom,10),re=q+D+ee+P+H,E=Math.min(x.offsetHeight*5,re),$=window.getComputedStyle(m),S=parseInt($.paddingTop,10),T=parseInt($.paddingBottom,10),M=R.top+R.height/2-ve,O=Q-M,Y=x.offsetHeight/2,N=x.offsetTop+Y,L=q+D+N,G=re-L;if(L<=M){const ne=X.length>0&&x===X[X.length-1].ref.current;i.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(O,Y+(ne?T:0)+oe+H),Ee=L+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(M,q+m.offsetTop+(ne?S:0)+Y)+G;i.style.height=pe+"px",m.scrollTop=L-M+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,u,m,x,y,a.dir,n]);ie(()=>w(),[w]);const[C,k]=l.useState();ie(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const A=l.useCallback(R=>{R&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return d.jsx(Gf,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:d.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});_s.displayName=Wf;var Hf="SelectPopperPosition",ln=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...a}=e,s=sr(r);return d.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=Hf;var[Gf,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 d.jsxs(d.Fragment,{children:[d.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}),d.jsx(or.Slot,{scope:r,children:d.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,u=>{const f=u.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 Ns="SelectGroup",[Uf,Kf]=st(Ns),As=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=le();return d.jsx(Uf,{scope:r,id:o,children:d.jsx(V.div,{role:"group","aria-labelledby":o,...n,ref:t})})});As.displayName=Ns;var Ts="SelectLabel",Os=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Kf(Ts,r);return d.jsx(V.div,{id:o.id,...n,ref:t})});Os.displayName=Ts;var ir="SelectItem",[Yf,Is]=st(ir),js=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=Me(ir,r),c=De(ir,r),u=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=le(),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 d.jsx(Yf,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{p(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:d.jsx(or.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:d.jsx(V.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>h(!0)),onBlur:B(s.onBlur,()=>h(!1)),onClick:B(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:B(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:B(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:B(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:B(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(s.onKeyDown,b=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&b.key===" "||(jf.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});js.displayName=ir;var wt="SelectItemText",Ms=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),u=Ff(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(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),d.jsxs(d.Fragment,{children:[d.jsx(V.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Nt.createPortal(a.children,s.valueNode):null]})});Ms.displayName=wt;var Ds="SelectItemIndicator",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Is(Ds,r).isSelected?d.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});Ls.displayName=Ds;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 u=c.scrollTop>0;a(u)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(Vs,{...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",$s=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 u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});$s.displayName=fn;var Vs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=De("SelectScrollButton",r),s=l.useRef(null),i=ar(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const u=i().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),d.jsx(V.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 u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),qf="SelectSeparator",Xf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return d.jsx(V.div,{"aria-hidden":!0,...n,ref:t})});Xf.displayName=qf;var pn="SelectArrow",Zf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=sr(r),a=Me(pn,r),s=De(pn,r);return a.open&&s.position==="popper"?d.jsx(tn,{...o,...n,ref:t}):null});Zf.displayName=pn;var Jf="SelectBubbleInput",zs=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=fo(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]),d.jsx(V.select,{...r,style:{...os,...r.style},ref:a,defaultValue:t})});zs.displayName=Jf;function Bs(e){return e===""||e===void 0}function Ws(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(u){r.current=u,window.clearTimeout(n.current),u!==""&&(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 Hs(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Qf(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Qf(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ep=vs,tp=bs,rp=ws,np=Ss,op=Cs,ap=Es,sp=Ps,ip=As,lp=Os,cp=js,up=Ms,dp=Ls,fp=Fs,pp=$s;function mp({...e}){return d.jsx(ep,{"data-slot":"select",...e})}function hp({...e}){return d.jsx(ip,{"data-slot":"select-group",...e})}function gp({...e}){return d.jsx(rp,{"data-slot":"select-value",...e})}function vp({className:e,size:t="default",children:r,...n}){return d.jsxs(tp,{"data-slot":"select-trigger","data-size":t,className:F("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,d.jsx(np,{asChild:!0,children:d.jsx(Fr,{className:"size-4 opacity-50"})})]})}function xp({className:e,children:t,position:r="popper",...n}){return d.jsx(op,{children:d.jsxs(ap,{"data-slot":"select-content",className:F("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:[d.jsx(yp,{}),d.jsx(sp,{className:F("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(wp,{})]})})}function bp({className:e,...t}){return d.jsx(lp,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Gs({className:e,children:t,...r}){return d.jsxs(cp,{"data-slot":"select-item",className:F("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:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(dp,{children:d.jsx(yu,{className:"size-4"})})}),d.jsx(up,{children:t})]})}function yp({className:e,...t}){return d.jsx(fp,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(wu,{className:"size-4"})})}function wp({className:e,...t}){return d.jsx(pp,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Fr,{className:"size-4"})})}var lr="Popover",[Us,mh]=xe(lr,[ot]),St=ot(),[Sp,Le]=Us(lr),Ks=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=St(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,g]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:lr});return d.jsx(Qr,{...i,children:d.jsx(Sp,{scope:t,contentId:le(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};Ks.displayName=lr;var Ys="PopoverAnchor",Cp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(Ys,r),a=St(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(tr,{...a,...n,ref:t})});Cp.displayName=Ys;var qs="PopoverTrigger",Xs=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(qs,r),a=St(r),s=ae(t,o.triggerRef),i=d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ti(o.open),...n,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(tr,{asChild:!0,...a,children:i})});Xs.displayName=qs;var mn="PopoverPortal",[Ep,kp]=Us(mn,{forceMount:void 0}),Zs=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Le(mn,t);return d.jsx(Ep,{scope:t,forceMount:r,children:d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:n})})})};Zs.displayName=mn;var it="PopoverContent",Js=l.forwardRef((e,t)=>{const r=kp(it,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Le(it,e.__scopePopover);return d.jsx(_e,{present:n||a.open,children:a.modal?d.jsx(_p,{...o,ref:t}):d.jsx(Pp,{...o,ref:t})})});Js.displayName=it;var Rp=Ve("PopoverContent.RemoveScroll"),_p=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 jr(s)},[]),d.jsx(Vt,{as:Rp,allowPinchZoom:!0,children:d.jsx(Qs,{...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,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pp=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(Qs,{...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,u;(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;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Qs=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=Le(it,r),h=St(r);return Pr(),d.jsx(jt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(en,{"data-state":ti(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)"}})})})}),ei="PopoverClose",Np=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(ei,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Np.displayName=ei;var Ap="PopoverArrow",Tp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=St(r);return d.jsx(tn,{...o,...n,ref:t})});Tp.displayName=Ap;function ti(e){return e?"open":"closed"}var Op=Ks,Ip=Xs,jp=Zs,Mp=Js;function Dp({...e}){return d.jsx(Op,{"data-slot":"popover",...e})}function Lp({...e}){return d.jsx(Ip,{"data-slot":"popover-trigger",...e})}function Fp({className:e,align:t="center",sideOffset:r=4,...n}){return d.jsx(jp,{children:d.jsx(Mp,{"data-slot":"popover-content",align:t,sideOffset:r,className:F("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var ri=1,$p=.9,Vp=.8,zp=.17,hn=.1,gn=.999,Bp=.9999,Wp=.99,Hp=/[\\\/_+.#"@\[\(\{&]/,Gp=/[\\\/_+.#"@\[\(\{&]/g,Up=/[\s-]/,ni=/[\s-]/g;function vn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?ri:Wp;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),u=r.indexOf(c,o),f=0,p,g,h,v;u>=0;)p=vn(e,t,r,n,u+1,a+1,s),p>f&&(u===o?p*=ri:Hp.test(e.charAt(u-1))?(p*=Vp,h=e.slice(o,u-1).match(Gp),h&&o>0&&(p*=Math.pow(gn,h.length))):Up.test(e.charAt(u-1))?(p*=$p,v=e.slice(o,u-1).match(ni),v&&o>0&&(p*=Math.pow(gn,v.length))):(p*=zp,o>0&&(p*=Math.pow(gn,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=Bp)),(p<hn&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(g=vn(e,t,r,n,u+1,a+2,s),g*hn>p&&(p=g*hn)),p>f&&(f=p),u=r.indexOf(c,u+1);return s[i]=f,f}function oi(e){return e.toLowerCase().replace(ni," ")}function Kp(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,vn(e,t,oi(e),oi(t),0,0,{})}var Ct='[cmdk-group=""]',xn='[cmdk-group-items=""]',Yp='[cmdk-group-heading=""]',ai='[cmdk-item=""]',si=`${ai}:not([aria-disabled="true"])`,bn="cmdk-item-select",lt="data-value",qp=(e,t,r)=>Kp(e,t,r),ii=l.createContext(void 0),Et=()=>l.useContext(ii),li=l.createContext(void 0),yn=()=>l.useContext(li),ci=l.createContext(void 0),ui=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=di(e),{label:c,children:u,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=le(),w=le(),C=le(),k=l.useRef(null),A=sm();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,M)=>{var O,Y,N,L;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 G=document.getElementById(C);G?G.focus():(O=document.getElementById(b))==null||O.focus()}if(A(7,()=>{var G;r.current.selectedItemId=(G=z())==null?void 0:G.id,R.emit()}),M||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let G=T??"";(L=(N=i.current).onValueChange)==null||L.call(N,G);return}}R.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),_=l.useMemo(()=>({value:(S,T,M)=>{var O;T!==((O=a.current.get(S))==null?void 0:O.value)&&(a.current.set(S,{value:T,keywords:M}),r.current.filtered.items.set(S,W(T,M)),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 M=z();A(4,()=>{Q(),(M==null?void 0:M.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 W(S,T){var M,O;let Y=(O=(M=i.current)==null?void 0:M.filter)!=null?O:qp;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(O=>{let Y=o.current.get(O),N=0;Y.forEach(L=>{let G=S.get(L);N=Math.max(G,N)}),T.push([O,N])});let M=k.current;q().sort((O,Y)=>{var N,L;let G=O.getAttribute("id"),Z=Y.getAttribute("id");return((N=S.get(Z))!=null?N:0)-((L=S.get(G))!=null?L:0)}).forEach(O=>{let Y=O.closest(xn);Y?Y.appendChild(O.parentElement===Y?O:O.closest(`${xn} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${xn} > *`))}),T.sort((O,Y)=>Y[1]-O[1]).forEach(O=>{var Y;let N=(Y=k.current)==null?void 0:Y.querySelector(`${Ct}[${lt}="${encodeURIComponent(O[0])}"]`);N==null||N.parentElement.appendChild(N)})}function X(){let S=q().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);R.setState("value",T||void 0)}function Q(){var S,T,M,O;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 N of n.current){let L=(T=(S=a.current.get(N))==null?void 0:S.value)!=null?T:"",G=(O=(M=a.current.get(N))==null?void 0:M.keywords)!=null?O:[],Z=W(L,G);r.current.filtered.items.set(N,Z),Z>0&&Y++}for(let[N,L]of o.current)for(let G of L)if(r.current.filtered.items.get(G)>0){r.current.filtered.groups.add(N);break}r.current.filtered.count=Y}function ee(){var S,T,M;let O=z();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(T=O.closest(Ct))==null?void 0:T.querySelector(Yp))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function z(){var S;return(S=k.current)==null?void 0:S.querySelector(`${ai}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(si))||[])}function D(S){let T=q()[S];T&&R.setState("value",T.getAttribute(lt))}function H(S){var T;let M=z(),O=q(),Y=O.findIndex(L=>L===M),N=O[Y+S];(T=i.current)!=null&&T.loop&&(N=Y+S<0?O[O.length-1]:Y+S===O.length?O[0]:O[Y+S]),N&&R.setState("value",N.getAttribute(lt))}function P(S){let T=z(),M=T==null?void 0:T.closest(Ct),O;for(;M&&!O;)M=S>0?om(M,Ct):am(M,Ct),O=M==null?void 0:M.querySelector(si);O?R.setState("value",O.getAttribute(lt)):H(S)}let re=()=>D(q().length-1),E=S=>{S.preventDefault(),S.metaKey?re():S.altKey?P(1):H(1)},$=S=>{S.preventDefault(),S.metaKey?D(0):S.altKey?P(-1):H(-1)};return l.createElement(V.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var T;(T=y.onKeyDown)==null||T.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))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&&$(S);break}case"ArrowUp":{$(S);break}case"Home":{S.preventDefault(),D(0);break}case"End":{S.preventDefault(),re();break}case"Enter":{S.preventDefault();let O=z();if(O){let Y=new Event(bn);O.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:lm},c),cr(e,S=>l.createElement(li.Provider,{value:R},l.createElement(ii.Provider,{value:_},S))))}),Xp=l.forwardRef((e,t)=>{var r,n;let o=le(),a=l.useRef(null),s=l.useContext(ci),i=Et(),c=di(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let f=fi(o,a,[e.value,e.children,a],e.keywords),p=yn(),g=Fe(A=>A.value&&A.value===f.current),h=Fe(A=>u||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(V.div,{ref:$e(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)}),Zp=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=le(),i=l.useRef(null),c=l.useRef(null),u=le(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>f.group(s),[]),fi(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(V.div,{ref:$e(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:u},r),cr(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},l.createElement(ci.Provider,{value:g},h))))}),Jp=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=Fe(s=>!s.search);return!r&&!a?null:l.createElement(V.div,{ref:$e(o,t),...n,"cmdk-separator":"",role:"separator"})}),Qp=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=yn(),s=Fe(u=>u.search),i=Fe(u=>u.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(V.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:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),em=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(u=>u.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=u.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),l.createElement(V.div,{ref:$e(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},cr(e,u=>l.createElement("div",{ref:$e(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),tm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(ma,{open:r,onOpenChange:n},l.createElement(ha,{container:s},l.createElement(ga,{"cmdk-overlay":"",className:o}),l.createElement(va,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(ui,{ref:t,...i}))))}),rm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),nm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(V.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},cr(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),kt=Object.assign(ui,{List:em,Item:Xp,Input:Qp,Group:Zp,Separator:Jp,Dialog:tm,Empty:rm,Loading:nm});function om(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function am(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function di(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 Fe(e){let t=yn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function fi(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ue(()=>{var s;let i=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=n.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var sm=()=>{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 im(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function cr({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(im(t),{ref:t.ref},r(t.props.children)):r(t)}var lm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function cm({className:e,...t}){return d.jsx(kt,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function um({className:e,...t}){return d.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[d.jsx(wa,{className:"size-4 shrink-0 opacity-50"}),d.jsx(kt.Input,{"data-slot":"command-input",className:F("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 dm({...e}){return d.jsx(kt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function pi({className:e,...t}){return d.jsx(kt.Group,{"data-slot":"command-group",className:F("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 mi({className:e,...t}){return d.jsx(kt.Item,{"data-slot":"command-item",className:F("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 fm(e){return e.multiple?d.jsx(gi,{...e}):d.jsx(hi,{...e})}const hi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),u=a??i,f=p=>{c(p),s==null||s(p)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(mp,{value:u,onValueChange:f,disabled:r,children:[d.jsx(vp,{"aria-invalid":!!n,className:F("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:d.jsx(gp,{placeholder:t})}),d.jsx(xp,{className:"w-full bg-white border border-neutral-black-4",children:wn(e)?e.map(p=>d.jsxs(hp,{className:"p-2",children:[d.jsx(bp,{children:p.label}),p.options.map(g=>d.jsx(Gs,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>d.jsx(Gs,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},gi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[u,f]=te.useState([]),p=a??u,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 d.jsxs("div",{className:"w-94",children:[d.jsxs(Dp,{open:i,onOpenChange:c,children:[d.jsx(Lp,{asChild:!0,children:d.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:F("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:[d.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>d.jsxs($r,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[d.jsx("span",{className:"text-neutral-black-1",children:v}),d.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:d.jsx(Ca,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):d.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),d.jsx(Fr,{className:"h-4 w-4 text-neutral-black-1"})]})}),d.jsx(Fp,{className:"p-0 w-full bg-white border border-neutral-black-4",children:d.jsxs(cm,{className:"w-full",children:[d.jsx(um,{placeholder:"Search..."}),d.jsx(dm,{children:"No results found."}),wn(e)?e.map(v=>d.jsx(pi,{heading:v.label,children:v.options.map(m=>d.jsxs(mi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):d.jsx(pi,{children:g.map(v=>d.jsxs(mi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},pm=ue("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 mm({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?pr:"div";return d.jsx(a,{"data-slot":"card",className:F(pm({variant:t}),e),...o,children:n})}var Sn={exports:{}},Cn={};/**
162
162
  * @license React
163
163
  * use-sync-external-store-shim.production.js
164
164
  *
@@ -166,7 +166,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
166
166
  *
167
167
  * This source code is licensed under the MIT license found in the
168
168
  * LICENSE file in the root directory of this source tree.
169
- */var Vs;function bp(){if(Vs)return gr;Vs=1;var e=te;function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(f,g){var h=g(),v=r({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!n(f,h)}catch{return!0}}function u(f,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return gr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,gr}var vr={};/**
169
+ */var vi;function hm(){if(vi)return Cn;vi=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 u(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return Cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Cn}var En={};/**
170
170
  * @license React
171
171
  * use-sync-external-store-shim.development.js
172
172
  *
@@ -174,4 +174,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
174
174
  *
175
175
  * This source code is licensed under the MIT license found in the
176
176
  * LICENSE file in the root directory of this source tree.
177
- */var zs;function yp(){return zs||(zs=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 y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,n(y)&&b({inst:y})},[h,m,v]),i(function(){return n(y)&&b({inst:y}),h(function(){n(y)&&b({inst:y})})},[h]),u(m),m}function n(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function r(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,u=o.useDebugValue,p=!1,f=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;vr.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())}()),vr}process.env.NODE_ENV==="production"?hr.exports=bp():hr.exports=yp();var wp=hr.exports;function Sp(){return wp.useSyncExternalStore(Cp,()=>!0,()=>!1)}function Cp(){return()=>{}}var xr="Avatar",[Ep,vm]=Ve(xr),[kp,Bs]=Ep(xr),Ws=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=l.useState("idle");return d.jsx(kp,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(H.span,{...r,ref:t})})});Ws.displayName=xr;var Hs="AvatarImage",Us=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Bs(Hs,n),i=Pp(r,a),c=Ae(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?d.jsx(H.img,{...a,ref:t,src:r}):null});Us.displayName=Hs;var Gs="AvatarFallback",Ys=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Bs(Gs,n),[s,i]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(c)}},[r]),s&&a.imageLoadingStatus!=="loaded"?d.jsx(H.span,{...o,ref:t}):null});Ys.displayName=Gs;function Ks(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Pp(e,{referrerPolicy:t,crossOrigin:n}){const r=Sp(),o=l.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Ks(a,e));return ie(()=>{i(Ks(a,e))},[a,e]),ie(()=>{const c=f=>()=>{i(f)};if(!a)return;const u=c("loaded"),p=c("error");return a.addEventListener("load",u),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",p)}},[a,n,t]),s}var Rp=Ws,qs=Us,cn=Ys;const Ap=ue("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}}),_p=ue("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"}}),Np=ue("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"}}),Tp=ue("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 Op(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return d.jsxs(Rp,{className:F(Ap({size:n,progress:s}),i),...c,children:[t==="picture"&&d.jsxs(d.Fragment,{children:[d.jsx(qs,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(cn,{children:d.jsx(Ho,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&d.jsx(cn,{className:"uppercase",children:e.initials}),t==="placeholder"&&d.jsx(cn,{children:d.jsx(Ho,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&d.jsx("span",{"data-testid":"avatar-status",className:_p({status:r,size:n})}),o&&d.jsx("span",{"data-testid":"avatar-notification",className:Np({size:n,priority:o.priority}),children:o.value}),a&&d.jsx("span",{"data-testid":"avatar-camera-icon",className:Tp({size:n}),children:d.jsx(vc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function jp({className:e,...t}){return d.jsx(qs,{className:F("aspect-square h-full w-full",e),...t})}function Ip({className:e,...t}){return d.jsx(cn,{className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Mp="Separator",Xs="horizontal",Dp=["horizontal","vertical"],Zs=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Xs,...o}=e,a=Lp(r)?r:Xs,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(H.div,{"data-orientation":a,...i,...o,ref:t})});Zs.displayName=Mp;function Lp(e){return Dp.includes(e)}var $p=Zs;function Fp({className:e,orientation:t="horizontal",decorative:n=!0,size:r=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[r]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[r];return d.jsx($p,{"data-slot":"separator",role:"separator",decorative:n,orientation:t,className:F("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Vp=ue("flex flex-col gap-12"),zp=ue("",{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}}),Bp=ue("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}}),Wp=(e,t)=>e&&!t;function Hp({items:e,variant:t="filled",className:n}){const r=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>r!==-1&&s>=r?{...a,notVisited:!0}:a);return d.jsx("div",{className:F(Vp(),n),"data-testid":"timeline",children:d.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),u=Wp(i,c),p=a.notVisited||!1,f=o[s+1],g=(f==null?void 0:f.notVisited)||!1,h=t==="icon"&&g;return d.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[d.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[d.jsx("div",{"data-testid":"timeline-dot",className:F(zp({variant:t,visited:!p})),children:t==="icon"&&a.icon&&d.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),d.jsx("p",{className:F("text-neutral-black-1",p&&"text-neutral-black-4"),children:a.title})]}),d.jsx("div",{"data-testid":"timeline-connector",className:F(Bp({hideConnector:u,variant:t,visited:!h})),children:(a.description||a.content)&&d.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&d.jsx("p",{className:F("text-[var(--color-neutral-black-1)] text-sm",p&&"text-neutral-black-4"),children:a.description}),a.content&&d.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const Up=({variant:e="icon",width:t,height:n,iconSize:r=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return d.jsx(kc,{size:r,"data-testid":"placeholder-image"});case"video":return d.jsx(Rc,{size:r,"data-testid":"placeholder-video"});case"pieChart":return d.jsx(xc,{size:r,"data-testid":"placeholder-pieChart"});case"icon":default:return d.jsx(Pc,{size:r,"data-testid":"placeholder-smile"})}};return d.jsx("div",{"data-testid":"placeholder-wrapper",className:F("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:n},...a,children:s()})},Gp=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Js=l.forwardRef(({variant:e="linear",value:t=0,color:n="var(--color-primary-1)",className:r,...o},a)=>{const s=Gp(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,u=(i-c)/2,p=2*Math.PI*u,f=p-s/100*p;return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("flex flex-col items-center justify-center",r),...o,children:d.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:n,strokeWidth:c,fill:"transparent",strokeDasharray:p,strokeDashoffset:f,className:"transition-all duration-700"})]})})}return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",r),...o,children:d.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:n}})})});Js.displayName="ProgressIndicator",G.Avatar=Op,G.AvatarFallback=Ip,G.AvatarImage=jp,G.Badge=Ko,G.Button=Vi,G.Card=xp,G.Dialog=Ac,G.DialogClose=Nc,G.DialogContent=Tc,G.DialogDescription=Mc,G.DialogFooter=jc,G.DialogHeader=Oc,G.DialogOverlay=Yo,G.DialogPortal=Go,G.DialogTitle=Ic,G.DialogTrigger=_c,G.Divider=Fp,G.EmailInput=_d,G.MultiSelect=Fs,G.PasswordInput=Nd,G.Placeholder=Up,G.ProgressIndicator=Js,G.SearchInput=Td,G.SelectOption=gp,G.SingleSelect=$s,G.StatefulToggle=qr,G.Timeline=Hp,G.Toggle=Kr,G.Tooltip=kd,G.TooltipContent=Rd,G.TooltipProvider=$a,G.TooltipTrigger=Pd,G.cn=F,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
177
+ */var xi;function gm(){return xi||(xi=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]),u(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,u=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=hm():Sn.exports=gm();var vm=Sn.exports;function xm(){return vm.useSyncExternalStore(bm,()=>!0,()=>!1)}function bm(){return()=>{}}var kn="Avatar",[ym,hh]=xe(kn),[wm,bi]=ym(kn),yi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return d.jsx(wm,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(V.span,{...n,ref:t})})});yi.displayName=kn;var wi="AvatarImage",Si=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=bi(wi,r),i=Sm(n,a),c=Re(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?d.jsx(V.img,{...a,ref:t,src:n}):null});Si.displayName=wi;var Ci="AvatarFallback",Ei=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=bi(Ci,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"?d.jsx(V.span,{...o,ref:t}):null});Ei.displayName=Ci;function ki(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Sm(e,{referrerPolicy:t,crossOrigin:r}){const n=xm(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>ki(a,e));return ie(()=>{i(ki(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const u=c("loaded"),f=c("error");return a.addEventListener("load",u),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",f)}},[a,r,t]),s}var Cm=yi,Ri=Si,ur=Ei;const Em=ue("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}}),km=ue("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"}}),Rm=ue("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"}}),_m=ue("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 Pm(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return d.jsxs(Cm,{className:F(Em({size:r,progress:s}),i),...c,children:[t==="picture"&&d.jsxs(d.Fragment,{children:[d.jsx(Ri,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(ur,{children:d.jsx(Sa,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&d.jsx(ur,{className:"uppercase",children:e.initials}),t==="placeholder"&&d.jsx(ur,{children:d.jsx(Sa,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&d.jsx("span",{"data-testid":"avatar-status",className:km({status:n,size:r})}),o&&d.jsx("span",{"data-testid":"avatar-notification",className:Rm({size:r,priority:o.priority}),children:o.value}),a&&d.jsx("span",{"data-testid":"avatar-camera-icon",className:_m({size:r}),children:d.jsx(xu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function Nm({className:e,...t}){return d.jsx(Ri,{className:F("aspect-square h-full w-full",e),...t})}function Am({className:e,...t}){return d.jsx(ur,{className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Tm="Separator",_i="horizontal",Om=["horizontal","vertical"],Pi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=_i,...o}=e,a=Im(n)?n:_i,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(V.div,{"data-orientation":a,...i,...o,ref:t})});Pi.displayName=Tm;function Im(e){return Om.includes(e)}var jm=Pi;function Mm({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 d.jsx(jm,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:F("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Dm=ue("flex flex-col gap-12"),Lm=ue("",{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}}),Fm=ue("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}}),$m=(e,t)=>e&&!t;function Vm({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 d.jsx("div",{className:F(Dm(),r),"data-testid":"timeline",children:d.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),u=$m(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return d.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[d.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[d.jsx("div",{"data-testid":"timeline-dot",className:F(Lm({variant:t,visited:!f})),children:t==="icon"&&a.icon&&d.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),d.jsx("p",{className:F("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),d.jsx("div",{"data-testid":"timeline-connector",className:F(Fm({hideConnector:u,variant:t,visited:!h})),children:(a.description||a.content)&&d.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&d.jsx("p",{className:F("text-[var(--color-neutral-black-1)] text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&d.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const zm=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return d.jsx(Ru,{size:n,"data-testid":"placeholder-image"});case"video":return d.jsx(Pu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return d.jsx(bu,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return d.jsx(_u,{size:n,"data-testid":"placeholder-smile"})}};return d.jsx("div",{"data-testid":"placeholder-wrapper",className:F("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()})},Bm=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Ni=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Bm(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,u=(i-c)/2,f=2*Math.PI*u,p=f-s/100*f;return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("flex flex-col items-center justify-center",n),...o,children:d.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:d.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Ni.displayName="ProgressIndicator";function Wm({className:e,...t}){return d.jsx("div",{"data-slot":"skeleton",className:F("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}U.Avatar=Pm,U.AvatarFallback=Am,U.AvatarImage=Nm,U.Badge=$r,U.Button=vl,U.Card=mm,U.Dialog=Nu,U.DialogClose=Tu,U.DialogContent=Ou,U.DialogDescription=Du,U.DialogFooter=ju,U.DialogHeader=Iu,U.DialogOverlay=ka,U.DialogPortal=Ea,U.DialogTitle=Mu,U.DialogTrigger=Au,U.Divider=Mm,U.EmailInput=Af,U.MultiSelect=gi,U.PasswordInput=Tf,U.Placeholder=zm,U.ProgressIndicator=Ni,U.RadioGroup=_o,U.RadioGroupItem=Po,U.SearchInput=Of,U.SelectOption=fm,U.SingleSelect=hi,U.Skeleton=Wm,U.StatefulToggle=ro,U.Timeline=Vm,U.Toggle=to,U.Tooltip=Rf,U.TooltipContent=Pf,U.TooltipProvider=hs,U.TooltipTrigger=_f,U.cn=F,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});