@datawire-ai/busyfile-design-library 1.22.0 → 1.24.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.
- package/README.md +116 -72
- package/dist/index.js +1764 -1591
- package/dist/index.umd.cjs +44 -29
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(F,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(F=typeof globalThis<"u"?globalThis:F||self,te(F.BusyFileDesignSystem={},F.React,F.ReactDOM))})(this,function(F,te,Rn){"use strict";function Nn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Nn(te),Pt=Nn(Rn);var pr={exports:{}},ut={};/**
|
|
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
|
|
9
|
+
*/var _n;function Ti(){if(_n)return ut;_n=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return ut.Fragment=t,ut.jsx=r,ut.jsxs=r,ut}var dt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,12 +14,12 @@
|
|
|
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
|
|
17
|
+
*/var Pn;function ji(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===K?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList";case H:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case v:return"Portal";case w:return(E.displayName||"Context")+".Provider";case b:return(E._context.displayName||"Context")+".Consumer";case C:var V=E.render;return E=E.displayName,E||(E=V.displayName||V.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case R:return V=E.displayName||null,V!==null?V:e(E.type)||"Memo";case N:V=E._payload,E=E._init;try{return e(E(V))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var V=!1}catch{V=!0}if(V){V=console;var S=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return S.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(E)}}function n(E){if(E===m)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===N)return"<...>";try{var V=e(E);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function o(){var E=X.A;return E===null?null:E.getOwner()}function a(){return Error("react-stack-top-frame")}function s(E){if(Q.call(E,"key")){var V=Object.getOwnPropertyDescriptor(E,"key").get;if(V&&V.isReactWarning)return!1}return E.key!==void 0}function i(E,V){function S(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}S.isReactWarning=!0,Object.defineProperty(E,"key",{get:S,configurable:!0})}function c(){var E=e(this.type);return L[E]||(L[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function d(E,V,S,T,D,j,Y,P){return S=j.ref,E={$$typeof:h,type:E,key:V,props:j,_owner:D},(S!==void 0?S:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,V,S,T,D,j,Y,P){var $=V.children;if($!==void 0)if(T)if(ee($)){for(T=0;T<$.length;T++)p($[T]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p($);if(Q.call(V,"key")){$=e(E);var U=Object.keys(V).filter(function(ne){return ne!=="key"});T=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",re[$+T]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
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,L,U,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=Ti():fr.exports=Oi();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=Ii(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(Mi);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 Ii(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Li(o),i=Di(a,o.props);return o.type!==l.Fragment&&(i.ref=n?$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 ji(e){const t=({children:r})=>d.jsx(d.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function Mi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function Di(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Li(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function 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="-",Fi=e=>{const t=Vi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(mr);return i[0]===""&&i.length!==1&&i.shift(),jn(i,t)||$i(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=/^\[(.+)\]$/,$i=e=>{if(Mn.test(e)){const t=Mn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Vi=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)hr(r[o],n,o,t);return n},hr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Dn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(zi(o)){hr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{hr(s,Dn(t,a),r,n)})})},Dn=(e,t)=>{let r=e;return t.split(mr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},zi=e=>e.isThemeGetter,Bi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},gr="!",vr=":",Wi=vr.length,Hi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,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+Wi;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=Gi(f),g=p!==f,h=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},Gi=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Ui=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ki=e=>({cache:Bi(e.cacheSize),parseClassName:Hi(e),sortModifiers:Ui(e),...Fi(e)}),Yi=/\s+/,qi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Yi);let c="";for(let 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 Xi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ln(t))&&(n&&(n+=" "),n+=r);return n}const Ln=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ln(e[n]))&&(r&&(r+=" "),r+=t);return r};function Zi(e,...t){let r,n,o,a=s;function s(c){const u=t.reduce((f,p)=>p(f),e());return r=Ki(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=qi(c,r);return o(c,f),f}return function(){return a(Xi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ji=/^\d+\/\d+$/,Qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,el=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Ji.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),xr=e=>e.endsWith("%")&&J(e.slice(0,-1)),ke=e=>Qi.test(e),ol=()=>!0,al=e=>el.test(e)&&!tl.test(e),Vn=()=>!1,sl=e=>rl.test(e),il=e=>nl.test(e),ll=e=>!I(e)&&!j(e),cl=e=>Ye(e,Gn,Vn),I=e=>Fn.test(e),ze=e=>Ye(e,Un,al),br=e=>Ye(e,ml,J),zn=e=>Ye(e,Wn,Vn),ul=e=>Ye(e,Hn,il),At=e=>Ye(e,Kn,sl),j=e=>$n.test(e),ft=e=>qe(e,Un),dl=e=>qe(e,hl),Bn=e=>qe(e,Wn),fl=e=>qe(e,Gn),pl=e=>qe(e,Hn),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",ml=e=>e==="number",hl=e=>e==="family-name",Kn=e=>e==="shadow",gl=Zi(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),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",fl,cl,{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],U=()=>["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:[ol],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",J],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,I,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:[dl,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,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]},pl,ul]}],"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:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[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 gl(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)},vl=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 Xn({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(vl({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 Zn="Toggle",Jn=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Te({prop:r,onChange:o,defaultProp:n??!1,caller:Zn});return 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)})})});Jn.displayName=Zn;var Qn=Jn;const eo=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"}}),to=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"}}),ro=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition: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(Qn,{ref:v,pressed:e,onPressedChange:w,disabled:n,"aria-label":f,"aria-labelledby":p||(i?y:void 0),"aria-describedby":c?b:void 0,className:F(eo({variant:r}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(to({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})]})]})});ro.displayName="Toggle";const no=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:r=!1,className:n,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":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(Qn,{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(eo({variant:t}),n),id:b,name:a,...h,children:g||d.jsx("span",{className:F(to({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})]})]})});no.displayName="StatefulToggle";function Cl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return 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 oo(e){const t=e+"CollectionProvider",[r,n]=xe(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:y}=m,b=te.useRef(null),w=te.useRef(new Map).current;return 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,ao,Nl]=oo(pt),[Al,so]=xe(pt,[Nl]),[Tl,Ol]=Al(pt),io=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})})}));io.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=ao(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);uo(q,f)}}k.current=!1}),onBlur:B(e.onBlur,()=>b(!1))})})}),lo="RovingFocusGroupItem",co=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=le(),u=a||c,f=Ol(lo,r),p=f.currentTabStopId===u,g=ao(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(()=>uo(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});co.displayName=lo;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 uo(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ll(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fl=io,$l=co;function fo(e){const[t,r]=l.useState(void 0);return ie(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,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 po(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Vl(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var _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,mo]=xe(Cr),[Hl,Gl]=Wl(Cr),ho=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form: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":bo(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(xo,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});ho.displayName=Cr;var go="RadioIndicator",vo=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=Gl(go,r);return d.jsx(_e,{present:n||a.checked,children:d.jsx(V.span,{"data-state":bo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});vo.displayName=go;var Ul="RadioBubbleInput",xo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=po(r),u=fo(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),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}})});xo.displayName=Ul;function bo(e){return e?"checked":"unchecked"}var Kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],It="RadioGroup",[Yl,qm]=xe(It,[so,mo]),yo=so(),wo=mo(),[ql,Xl]=Yl(It),So=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,h=yo(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})})})});So.displayName=It;var Co="RadioGroupItem",Eo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Xl(Co,r),s=a.disabled||n,i=yo(r),c=wo(r),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(ho,{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())})})})});Eo.displayName=Co;var Zl="RadioGroupIndicator",ko=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=wo(r);return d.jsx(vo,{...o,...n,ref:t})});ko.displayName=Zl;var Ro=So,_o=Eo,Jl=ko;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")}),Po=l.forwardRef(({className:e,...t},r)=>d.jsx(Ro,{className:F("grid gap-2",e),...t,ref:r}));Po.displayName=Ro.displayName;const No=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Ql();return d.jsxs("label",{className:o.root,"data-disabled":t,children:[d.jsx(_o,{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})]})});No.displayName=_o.displayName;function ec(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var tc="DismissableLayer",Er="dismissableLayer.update",rc="dismissableLayer.pointerDownOutside",nc="dismissableLayer.focusOutside",Ao,To=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(To),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,R=>p(R)),m=Array.from(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&&(Ao=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Oo(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ao)}},[f,g,r,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Oo())},[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(To),n=l.useRef(null),o=ae(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),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(){Io(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&&Io(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 Oo(){const e=new CustomEvent(Er);document.dispatchEvent(e)}function Io(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",jo={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){Lo.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(kr,jo);i.addEventListener(kr,u),i.dispatchEvent(y),y.defaultPrevented||(cc(mc(Mo(i)),{select:!0}),document.activeElement===m&&Oe(i))}return()=>{i.removeEventListener(kr,u),setTimeout(()=>{const y=new CustomEvent(Rr,jo);i.addEventListener(Rr,f),i.dispatchEvent(y),y.defaultPrevented||Oe(m??document.body,{select:!0}),i.removeEventListener(Rr,f),Lo.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=Mo(e),r=Do(t,e),n=Do(t.reverse(),e);return[r,n]}function Mo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Do(e,t){for(const r of e)if(!dc(r,{upTo:t}))return r}function dc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fc(e){return e instanceof HTMLInputElement&&"select"in e}function 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 Lo=pc();function pc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Fo(e,t),e.unshift(t)},remove(t){var r;e=Fo(e,t),(r=e[0])==null||r.resume()}}}function Fo(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]??$o()),document.body.insertAdjacentElement("beforeend",e[1]??$o()),_r++,()=>{_r===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_r--}},[])}function $o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var be=function(){return be=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},be.apply(this,arguments)};function Vo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var 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,zo=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=zo.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)})}zo.set(r,e)},[e]),r}function Sc(e){return e}function Cc(e,t){t===void 0&&(t=Sc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},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 Bo=function(e){var t=e.sideCar,r=Vo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,be({},r))};Bo.isSideCarExport=!0;function kc(e,t){return e.useMedium(t),Bo}var Wo=Ec(),Ar=function(){},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=Vo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,A=wc([r,t]),R=be(be({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(k,{sideCar:Wo,removeScrollBar: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])}},Ho=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=Ho(),Xe="data-scroll-locked",Dc=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
22
|
+
<%s key={someKey} {...props} />`,T,$,U,$),re[$+T]=!0)}if($=null,S!==void 0&&(r(S),$=""+S),s(V)&&(r(V.key),$=""+V.key),"key"in V){S={};for(var Z in V)Z!=="key"&&(S[Z]=V[Z])}else S=V;return $&&i(S,typeof E=="function"?E.displayName||E.name||"Unknown":E),d(E,$,j,D,o(),S,Y,P)}function p(E){typeof E=="object"&&E!==null&&E.$$typeof===h&&E._store&&(E._store.validated=1)}var g=te,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,B=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(E){return E()}};var q,L={},G=g["react-stack-bottom-frame"].bind(g,a)(),_=B(n(a)),re={};dt.Fragment=m,dt.jsx=function(E,V,S,T,D){var j=1e4>X.recentlyCreatedOwnerStacks++;return f(E,V,S,!1,T,D,j?Error("react-stack-top-frame"):G,j?B(n(E)):_)},dt.jsxs=function(E,V,S,T,D){var j=1e4>X.recentlyCreatedOwnerStacks++;return f(E,V,S,!0,T,D,j?Error("react-stack-top-frame"):G,j?B(n(E)):_)}}()),dt}process.env.NODE_ENV==="production"?pr.exports=Ti():pr.exports=ji();var u=pr.exports;function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fe(...e){return t=>{let r=!1;const n=e.map(o=>{const a=An(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():An(e[o],null)}}}}function ae(...e){return l.useCallback(Fe(...e),e)}function Ve(e){const t=Oi(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(Mi);if(c){const d=c.props.children,f=i.map(p=>p===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var At=Ve("Slot");function Oi(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Li(o),i=Di(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Fe(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tn=Symbol("radix.slottable");function Ii(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function Mi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function Di(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Li(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function jn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=jn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function On(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=jn(e))&&(n&&(n+=" "),n+=t);return n}const mr="-",$i=e=>{const t=Vi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(mr);return i[0]===""&&i.length!==1&&i.shift(),In(i,t)||Fi(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},In=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?In(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(mr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Mn=/^\[(.+)\]$/,Fi=e=>{if(Mn.test(e)){const t=Mn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Vi=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)hr(r[o],n,o,t);return n},hr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Dn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(zi(o)){hr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{hr(s,Dn(t,a),r,n)})})},Dn=(e,t)=>{let r=e;return t.split(mr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},zi=e=>e.isThemeGetter,Bi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},gr="!",vr=":",Wi=vr.length,Hi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===vr){a.push(o.slice(c,v)),c=v+Wi;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=Gi(f),g=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+vr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Gi=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Ui=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ki=e=>({cache:Bi(e.cacheSize),parseClassName:Hi(e),sortModifiers:Ui(e),...$i(e)}),Yi=/\s+/,qi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Yi);let c="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=n(x?v.substring(0,m):v);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=n(v),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+gr:b,C=w+y;if(s.includes(C))continue;s.push(C);const k=o(y,x);for(let A=0;A<k.length;++A){const R=k[A];s.push(w+R)}c=f+(c.length>0?" "+c:c)}return c};function Xi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ln(t))&&(n&&(n+=" "),n+=r);return n}const Ln=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ln(e[n]))&&(r&&(r+=" "),r+=t);return r};function Zi(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((f,p)=>p(f),e());return r=Ki(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const f=qi(c,r);return o(c,f),f}return function(){return a(Xi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ji=/^\d+\/\d+$/,Qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,el=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Ji.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),xr=e=>e.endsWith("%")&&J(e.slice(0,-1)),ke=e=>Qi.test(e),ol=()=>!0,al=e=>el.test(e)&&!tl.test(e),Vn=()=>!1,sl=e=>rl.test(e),il=e=>nl.test(e),ll=e=>!I(e)&&!M(e),cl=e=>Ye(e,Gn,Vn),I=e=>$n.test(e),ze=e=>Ye(e,Un,al),br=e=>Ye(e,ml,J),zn=e=>Ye(e,Wn,Vn),ul=e=>Ye(e,Hn,il),Tt=e=>Ye(e,Kn,sl),M=e=>Fn.test(e),ft=e=>qe(e,Un),dl=e=>qe(e,hl),Bn=e=>qe(e,Wn),fl=e=>qe(e,Gn),pl=e=>qe(e,Hn),jt=e=>qe(e,Kn,!0),Ye=(e,t,r)=>{const n=$n.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},qe=(e,t,r=!1)=>{const n=Fn.exec(e);return n?n[1]?t(n[1]):r:!1},Wn=e=>e==="position"||e==="percentage",Hn=e=>e==="image"||e==="url",Gn=e=>e==="length"||e==="size"||e==="bg-size",Un=e=>e==="length",ml=e=>e==="number",hl=e=>e==="family-name",Kn=e=>e==="shadow",gl=Zi(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),x=se("aspect"),y=se("ease"),b=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),M,I],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],N=()=>[M,I,c],H=()=>[Ke,"full","auto",...N()],K=()=>[Ae,"none","subgrid",M,I],X=()=>["auto",{span:["full",Ae,M,I]},Ae,M,I],Q=()=>[Ae,"auto",M,I],ee=()=>["auto","min","max","fr",M,I],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...N()],G=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],_=()=>[e,M,I],re=()=>[...C(),Bn,zn,{position:[M,I]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",fl,cl,{size:[M,I]}],S=()=>[xr,ft,ze],T=()=>["","none","full",d,M,I],D=()=>["",J,ft,ze],j=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,xr,Bn,zn],$=()=>["","none",v,M,I],U=()=>["none",J,M,I],Z=()=>["none",J,M,I],ne=()=>[J,M,I],oe=()=>[Ke,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[ol],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",J],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,I,M,x]}],container:["container"],columns:[{columns:[J,I,M,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",M,I]}],basis:[{basis:[Ke,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ke,"auto","initial","none",I]}],grow:[{grow:["",J,M,I]}],shrink:[{shrink:["",J,M,I]}],order:[{order:[Ae,"first","last","none",M,I]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[i,"screen",...G()]}],"min-w":[{"min-w":[i,"screen","none",...G()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,ft,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xr,I]}],"font-family":[{font:[dl,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,M,I]}],"line-clamp":[{"line-clamp":[J,"none",M,br]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",M,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",M,ze]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[J,"auto",M,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,M,I],radial:["",M,I],conic:[Ae,M,I]},pl,ul]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,M,I]}],"outline-w":[{outline:["",J,ft,ze]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",f,jt,Tt]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",p,jt,Tt]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",g,jt,Tt]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[J,M,I]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[M,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,I]}],filter:[{filter:["","none",M,I]}],blur:[{blur:$()}],brightness:[{brightness:[J,M,I]}],contrast:[{contrast:[J,M,I]}],"drop-shadow":[{"drop-shadow":["","none",h,jt,Tt]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",J,M,I]}],"hue-rotate":[{"hue-rotate":[J,M,I]}],invert:[{invert:["",J,M,I]}],saturate:[{saturate:[J,M,I]}],sepia:[{sepia:["",J,M,I]}],"backdrop-filter":[{"backdrop-filter":["","none",M,I]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[J,M,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,M,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,M,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,M,I]}],"backdrop-invert":[{"backdrop-invert":["",J,M,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,M,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,M,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,M,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",M,I]}],ease:[{ease:["linear","initial",y,M,I]}],delay:[{delay:[J,M,I]}],animate:[{animate:["none",b,M,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,I]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[M,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,I]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[J,ft,ze,br]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function O(...e){return gl(On(e))}const Yn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qn=On,ce=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return qn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const g=Yn(f)||Yn(p);return o[d][g]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...d,p,g]:d},[]);return qn(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},vl=ce("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function Xn({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?At:"button";return u.jsx(s,{"data-slot":"button",className:O(vl({variant:t,size:r}),e),...a,children:o})}function W(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},xl=l[" useInsertionEffect ".trim().toString()]||ie;function Te({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=bl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{var p;if(i){const g=yl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,d]}function bl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return xl(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function yl(e){return typeof e=="function"}var wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=wl.reduce((e,t)=>{const r=Ve(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sl(e,t){e&&Pt.flushSync(()=>e.dispatchEvent(t))}var Zn="Toggle",Jn=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Te({prop:r,onChange:o,defaultProp:n??!1,caller:Zn});return u.jsx(z.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:W(e.onClick,()=>{e.disabled||i(!s)})})});Jn.displayName=Zn;var Qn=Jn;const eo=ce(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100"],{variants:{variant:{classic:["h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=on]:bg-neutral-black-1 data-[state=on]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=on]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=on]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=on]:disabled:bg-neutral-black-5 data-[state=on]:disabled:hover:shadow-none data-[state=on]:disabled:focus-visible:shadow-none data-[state=on]:disabled:active:shadow-none"]}},defaultVariants:{variant:"classic"}}),to=ce(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]"],{variants:{variant:{classic:["h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=on]:translate-x-[12px]"]}},defaultVariants:{variant:"classic"}}),ro=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:d="right","aria-label":f,"aria-labelledby":p,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!n&&t&&t(k)},C=u.jsx(Qn,{ref:v,pressed:e,onPressedChange:w,disabled:n,"aria-label":f,"aria-labelledby":p||(i?y:void 0),"aria-describedby":c?b:void 0,className:O(eo({variant:r}),o),id:x,name:s,...h,children:g||u.jsx("span",{className:O(to({variant:r})),"aria-hidden":"true"})});return!i&&!c?C:u.jsxs("div",{className:O("flex gap-3",d==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[C,u.jsxs("div",{className:"flex flex-col justify-center",children:[i&&u.jsx("label",{id:y,htmlFor:x,className:O("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed"),children:i}),c&&u.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});ro.displayName="Toggle";const no=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:r=!1,className:n,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":d,"aria-labelledby":f,onPressedChange:p,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,C=`${b}-description`,k=R=>{r||(x(R),p&&p(R))},A=u.jsx(Qn,{ref:v,pressed:m,onPressedChange:k,disabled:r,"aria-label":d,"aria-labelledby":f||(s?w:void 0),"aria-describedby":i?C:void 0,className:O(eo({variant:t}),n),id:b,name:a,...h,children:g||u.jsx("span",{className:O(to({variant:t})),"aria-hidden":"true"})});return!s&&!i?A:u.jsxs("div",{className:O("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[A,u.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&u.jsx("label",{id:w,htmlFor:b,className:O("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",r&&"cursor-not-allowed"),children:s}),i&&u.jsx("p",{id:C,className:"text-xs text-neutral-black-1",children:i})]})]})});no.displayName="StatefulToggle";function Cl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function xe(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=p=>{var y;const{scope:g,children:h,...v}=p,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:x,children:h})};d.displayName=a+"Provider";function f(p,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,El(o,...t)]}function El(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function oo(e){const t=e+"CollectionProvider",[r,n]=xe(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:y}=m,b=te.useRef(null),w=te.useRef(new Map).current;return u.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=Ve(i),d=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),C=ae(x,w.collectionRef);return u.jsx(c,{ref:C,children:b})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ve(f),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,C=te.useRef(null),k=ae(x,C),A=a(f,y);return te.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.itemMap.delete(C))),u.jsx(g,{[p]:"",ref:k,children:b})});h.displayName=f;function v(m){const x=a(e+"CollectionConsumer",m);return te.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((A,R)=>w.indexOf(A.ref.current)-w.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var kl=l[" useId ".trim().toString()]||(()=>{}),Rl=0;function ue(e){const[t,r]=l.useState(kl());return ie(()=>{r(n=>n??String(Rl++))},[e]),t?`radix-${t}`:""}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var Nl=l.createContext(void 0);function yr(e){const t=l.useContext(Nl);return e||t||"ltr"}var wr="rovingFocusGroup.onEntryFocus",_l={bubbles:!1,cancelable:!0},pt="RovingFocusGroup",[Sr,ao,Pl]=oo(pt),[Al,so]=xe(pt,[Pl]),[Tl,jl]=Al(pt),io=l.forwardRef((e,t)=>u.jsx(Sr.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Sr.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Ol,{...e,ref:t})})}));io.displayName=pt;var Ol=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ae(t,g),v=yr(a),[m,x]=Te({prop:s,defaultProp:i??null,onChange:c,caller:pt}),[y,b]=l.useState(!1),w=Re(d),C=ao(r),k=l.useRef(!1),[A,R]=l.useState(0);return l.useEffect(()=>{const N=g.current;if(N)return N.addEventListener(wr,w),()=>N.removeEventListener(wr,w)},[w]),u.jsx(Tl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(N=>x(N),[x]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:l.useCallback(()=>R(N=>N-1),[]),children:u.jsx(z.div,{tabIndex:y||A===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{k.current=!0}),onFocus:W(e.onFocus,N=>{const H=!k.current;if(N.target===N.currentTarget&&H&&!y){const K=new CustomEvent(wr,_l);if(N.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(L=>L.focusable),Q=X.find(L=>L.active),ee=X.find(L=>L.id===m),q=[Q,ee,...X].filter(Boolean).map(L=>L.ref.current);uo(q,f)}}k.current=!1}),onBlur:W(e.onBlur,()=>b(!1))})})}),lo="RovingFocusGroupItem",co=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ue(),d=a||c,f=jl(lo,r),p=f.currentTabStopId===d,g=ao(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(Sr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:W(e.onMouseDown,x=>{n?f.onItemFocus(d):x.preventDefault()}),onFocus:W(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:W(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=Dl(x,f.orientation,f.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const C=w.indexOf(x.currentTarget);w=f.loop?Ll(w,C+1):w.slice(C+1)}setTimeout(()=>uo(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});co.displayName=lo;var Il={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ml(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Dl(e,t,r){const n=Ml(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Il[n]}function uo(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ll(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var $l=io,Fl=co;function fo(e){const[t,r]=l.useState(void 0);return ie(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}function po(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Vl(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ne=e=>{const{present:t,children:r}=e,n=zl(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ae(n.ref,Bl(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function zl(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Vl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Ot(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,f=o.current;if(f!==e){const g=a.current,h=Ot(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Ot(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function Bl(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Cr="Radio",[Wl,mo]=xe(Cr),[Hl,Gl]=Wl(Cr),ho=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...f}=e,[p,g]=l.useState(null),h=ae(t,x=>g(x)),v=l.useRef(!1),m=p?d||!!p.closest("form"):!0;return u.jsxs(Hl,{scope:r,checked:o,disabled:s,children:[u.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":bo(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:W(e.onClick,x=>{o||c==null||c(),m&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),m&&u.jsx(xo,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});ho.displayName=Cr;var go="RadioIndicator",vo=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=Gl(go,r);return u.jsx(Ne,{present:n||a.checked,children:u.jsx(z.span,{"data-state":bo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});vo.displayName=go;var Ul="RadioBubbleInput",xo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=po(r),d=fo(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xo.displayName=Ul;function bo(e){return e?"checked":"unchecked"}var Kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],It="RadioGroup",[Yl,uh]=xe(It,[so,mo]),yo=so(),wo=mo(),[ql,Xl]=Yl(It),So=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...g}=e,h=yo(r),v=yr(d),[m,x]=Te({prop:a,defaultProp:o??null,onChange:p,caller:It});return u.jsx(ql,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:x,children:u.jsx($l,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:u.jsx(z.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});So.displayName=It;var Co="RadioGroupItem",Eo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Xl(Co,r),s=a.disabled||n,i=yo(r),c=wo(r),d=l.useRef(null),f=ae(t,d),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Kl.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(Fl,{asChild:!0,...i,focusable:!s,active:p,children:u.jsx(ho,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:W(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:W(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});Eo.displayName=Co;var Zl="RadioGroupIndicator",ko=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=wo(r);return u.jsx(vo,{...o,...n,ref:t})});ko.displayName=Zl;var Ro=So,No=Eo,Jl=ko;const Ql=()=>({root:O("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:O("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-[var(--color-neutral-black-2)]","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-[var(--color-neutral-black-5)]","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-[var(--color-neutral-black-3)]","data-[state=checked]:border-[var(--color-neutral-black-1)]","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-[var(--color-neutral-black-4)]","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-[var(--color-neutral-black-1)]","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-[var(--color-neutral-black-3)]"),innerCircle:O("w-2 h-2 rounded-full transition-all duration-200","bg-[var(--color-neutral-black-1)]"),label:O("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),_o=l.forwardRef(({className:e,...t},r)=>u.jsx(Ro,{className:O("grid gap-2",e),...t,ref:r}));_o.displayName=Ro.displayName;const Po=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Ql();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(No,{ref:n,className:O(o.indicator),disabled:t,...r,children:u.jsx(Jl,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Po.displayName=No.displayName;function ec(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var tc="DismissableLayer",Er="dismissableLayer.update",rc="dismissableLayer.pointerDownOutside",nc="dismissableLayer.focusOutside",Ao,To=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(To),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,R=>p(R)),m=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,k=sc(R=>{const N=R.target,H=[...d.branches].some(K=>K.contains(N));!C||H||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},g),A=ic(R=>{const N=R.target;[...d.branches].some(K=>K.contains(N))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},g);return ec(R=>{b===d.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ao=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),jo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ao)}},[f,g,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),jo())},[f,d]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(Er,R),()=>document.removeEventListener(Er,R)},[]),u.jsx(z.div,{...c,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,A.onFocusCapture),onBlurCapture:W(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,k.onPointerDownCapture)})});mt.displayName=tc;var oc="DismissableLayerBranch",ac=l.forwardRef((e,t)=>{const r=l.useContext(To),n=l.useRef(null),o=ae(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(z.div,{...e,ref:o})});ac.displayName=oc;function sc(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Oo(rc,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ic(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Oo(nc,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function jo(){const e=new CustomEvent(Er);document.dispatchEvent(e)}function Oo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Sl(o,a):o.dispatchEvent(a)}var kr="focusScope.autoFocusOnMount",Rr="focusScope.autoFocusOnUnmount",Io={bubbles:!1,cancelable:!0},lc="FocusScope",Mt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Re(o),f=Re(a),p=l.useRef(null),g=ae(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(w){if(h.paused||!i)return;const C=w.target;i.contains(C)?p.current=C:je(p.current,{select:!0})},x=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||je(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&je(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){Lo.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(kr,Io);i.addEventListener(kr,d),i.dispatchEvent(y),y.defaultPrevented||(cc(mc(Mo(i)),{select:!0}),document.activeElement===m&&je(i))}return()=>{i.removeEventListener(kr,d),setTimeout(()=>{const y=new CustomEvent(Rr,Io);i.addEventListener(Rr,f),i.dispatchEvent(y),y.defaultPrevented||je(m??document.body,{select:!0}),i.removeEventListener(Rr,f),Lo.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,C]=uc(b);w&&C?!m.shiftKey&&y===C?(m.preventDefault(),r&&je(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),r&&je(C,{select:!0})):y===b&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(z.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Mt.displayName=lc;function cc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(je(n,{select:t}),document.activeElement!==r)return}function uc(e){const t=Mo(e),r=Do(t,e),n=Do(t.reverse(),e);return[r,n]}function Mo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Do(e,t){for(const r of e)if(!dc(r,{upTo:t}))return r}function dc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fc(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fc(e)&&t&&e.select()}}var Lo=pc();function pc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=$o(e,t),e.unshift(t)},remove(t){var r;e=$o(e,t),(r=e[0])==null||r.resume()}}}function $o(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function mc(e){return e.filter(t=>t.tagName!=="A")}var hc="Portal",ht=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Rn.createPortal(u.jsx(z.div,{...n,ref:t}),s):null});ht.displayName=hc;var Nr=0;function _r(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fo()),document.body.insertAdjacentElement("beforeend",e[1]??Fo()),Nr++,()=>{Nr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Nr--}},[])}function Fo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var be=function(){return be=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},be.apply(this,arguments)};function Vo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Dt="right-scroll-bar-position",Lt="width-before-scroll-bar",vc="with-scroll-bars-hidden",xc="--removed-body-scroll-bar-size";function Pr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bc(e,t){var r=te.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var yc=typeof window<"u"?l.useLayoutEffect:l.useEffect,zo=new WeakMap;function wc(e,t){var r=bc(null,function(n){return e.forEach(function(o){return Pr(o,n)})});return yc(function(){var n=zo.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Pr(i,null)}),a.forEach(function(i){o.has(i)||Pr(i,s)})}zo.set(r,e)},[e]),r}function Sc(e){return e}function Cc(e,t){t===void 0&&(t=Sc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function Ec(e){e===void 0&&(e={});var t=Cc(null);return t.options=be({async:!0,ssr:!1},e),t}var Bo=function(e){var t=e.sideCar,r=Vo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,be({},r))};Bo.isSideCarExport=!0;function kc(e,t){return e.useMedium(t),Bo}var Wo=Ec(),Ar=function(){},$t=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Ar,onWheelCapture:Ar,onTouchMoveCapture:Ar}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=Vo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,A=wc([r,t]),R=be(be({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(k,{sideCar:Wo,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),be(be({},R),{ref:A})):l.createElement(b,be({},R,{className:c,ref:A}),i))});$t.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$t.classNames={fullWidth:Lt,zeroRight:Dt};var Rc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rc();return t&&e.setAttribute("nonce",t),e}function _c(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ac=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Nc())&&(_c(t,r),Pc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tc=function(){var e=Ac();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ho=function(){var e=Tc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},jc={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0},Oc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tr(r),Tr(n),Tr(o)]},Ic=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jc;var t=Oc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Mc=Ho(),Xe="data-scroll-locked",Dc=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
23
23
|
.`.concat(vc,` {
|
|
24
24
|
overflow: hidden `).concat(n,`;
|
|
25
25
|
padding-right: `).concat(i,"px ").concat(n,`;
|
|
@@ -37,29 +37,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
37
37
|
`),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
40
|
+
.`).concat(Dt,` {
|
|
41
41
|
right: `).concat(i,"px ").concat(n,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
44
|
+
.`).concat(Lt,` {
|
|
45
45
|
margin-right: `).concat(i,"px ").concat(n,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(Dt," .").concat(Dt,` {
|
|
49
49
|
right: 0 `).concat(n,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
52
|
+
.`).concat(Lt," .").concat(Lt,` {
|
|
53
53
|
margin-right: 0 `).concat(n,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
body[`).concat(Xe,`] {
|
|
57
57
|
`).concat(xc,": ").concat(i,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},Go=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Lc=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(Go()+1).toString()),function(){var e=Go()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])}
|
|
59
|
+
`)},Go=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Lc=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(Go()+1).toString()),function(){var e=Go()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},$c=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Lc();var a=l.useMemo(function(){return Ic(o)},[o]);return l.createElement(Mc,{styles:Dc(a,!t,o,r?"":"!important")})},jr=!1;if(typeof window<"u")try{var Ft=Object.defineProperty({},"passive",{get:function(){return jr=!0,!0}});window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch{jr=!1}var Ze=jr?{passive:!1}:!1,Fc=function(e){return e.tagName==="TEXTAREA"},Uo=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Fc(e)&&r[t]==="visible")},Vc=function(e){return Uo(e,"overflowY")},zc=function(e){return Uo(e,"overflowX")},Ko=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Yo(e,n);if(o){var a=qo(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Wc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Yo=function(e,t){return e==="v"?Vc(t):zc(t)},qo=function(e,t){return e==="v"?Bc(t):Wc(t)},Hc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Gc=function(e,t,r,n,o){var a=Hc(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),d=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=qo(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&Yo(e,i)&&(p+=y,g+=v);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Vt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xo=function(e){return[e.deltaX,e.deltaY]},Zo=function(e){return e&&"current"in e?e.current:e},Uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kc=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},Yc=0,Je=[];function qc(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Yc++)[0],a=l.useState(Ho)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=gc([e.lockRef.current],(e.shards||[]).map(Zo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y
|
|
62
|
+
`)},Yc=0,Je=[];function qc(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Yc++)[0],a=l.useState(Ho)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=gc([e.lockRef.current],(e.shards||[]).map(Zo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=Vt(m),b=r.current,w="deltaX"in m?m.deltaX:b[0]-y[0],C="deltaY"in m?m.deltaY:b[1]-y[1],k,A=m.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&A.type==="range")return!1;var N=Ko(R,A);if(!N)return!0;if(N?k=R:(k=R==="v"?"h":"v",N=Ko(R,A)),!N)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=k),!k)return!0;var H=n.current||k;return Gc(H,x,m,H==="h"?w:C)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?Xo(x):Vt(x),b=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Uc(k.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(Zo).filter(Boolean).filter(function(k){return k.contains(x.target)}),C=w.length>0?i(x,w[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:Xc(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(m){r.current=Vt(m),n.current=void 0},[]),p=l.useCallback(function(m){d(m.type,Xo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){d(m.type,Vt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Kc(o)}):null,h?l.createElement($c,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zc=kc(Wo,qc);var zt=l.forwardRef(function(e,t){return l.createElement($t,be({},e,{ref:t,sideCar:Zc}))});zt.classNames=$t.classNames;var Jc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Bt=new WeakMap,Wt={},Or=0,Jo=function(e){return e&&(e.host||Jo(e.parentNode))},Qc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Jo(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},eu=function(e,t,r,n){var o=Qc(t,Array.isArray(e)?e:[e]);Wt[r]||(Wt[r]=new WeakMap);var a=Wt[r],s=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(Qe.get(g)||0)+1,x=(a.get(g)||0)+1;Qe.set(g,m),a.set(g,x),s.push(g),m===1&&v&&Bt.set(g,!0),x===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),i.clear(),Or++,function(){s.forEach(function(p){var g=Qe.get(p)-1,h=a.get(p)-1;Qe.set(p,g),a.set(p,h),g||(Bt.has(p)||p.removeAttribute(n),Bt.delete(p)),h||p.removeAttribute(r)}),Or--,Or||(Qe=new WeakMap,Qe=new WeakMap,Bt=new WeakMap,Wt={})}},Ir=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Jc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eu(n,o,r,"aria-hidden")):function(){return null}},Ht="Dialog",[Qo,dh]=xe(Ht),[tu,me]=Qo(Ht),ea=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[d,f]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:Ht});return u.jsx(tu,{scope:t,triggerRef:i,contentRef:c,contentId:ue(),titleId:ue(),descriptionId:ue(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};ea.displayName=Ht;var ta="DialogTrigger",ra=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ta,r),a=ae(t,o.triggerRef);return u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lr(o.open),...n,ref:a,onClick:W(e.onClick,o.onOpenToggle)})});ra.displayName=ta;var Mr="DialogPortal",[ru,na]=Qo(Mr,{forceMount:void 0}),oa=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=me(Mr,t);return u.jsx(ru,{scope:t,forceMount:r,children:l.Children.map(n,s=>u.jsx(Ne,{present:r||a.open,children:u.jsx(ht,{asChild:!0,container:o,children:s})}))})};oa.displayName=Mr;var Gt="DialogOverlay",aa=l.forwardRef((e,t)=>{const r=na(Gt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Gt,e.__scopeDialog);return a.modal?u.jsx(Ne,{present:n||a.open,children:u.jsx(ou,{...o,ref:t})}):null});aa.displayName=Gt;var nu=Ve("DialogOverlay.RemoveScroll"),ou=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Gt,r);return u.jsx(zt,{as:nu,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(z.div,{"data-state":Lr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Be="DialogContent",sa=l.forwardRef((e,t)=>{const r=na(Be,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Be,e.__scopeDialog);return u.jsx(Ne,{present:n||a.open,children:a.modal?u.jsx(au,{...o,ref:t}):u.jsx(su,{...o,ref:t})})});sa.displayName=Be;var au=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(null),o=ae(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Ir(a)},[]),u.jsx(ia,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:W(e.onFocusOutside,a=>a.preventDefault())})}),su=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(ia,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ia=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(Be,r),c=l.useRef(null),d=ae(t,c);return _r(),u.jsxs(u.Fragment,{children:[u.jsx(Mt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(mt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Lr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(iu,{titleId:i.titleId}),u.jsx(cu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",la=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Dr,r);return u.jsx(z.h2,{id:o.titleId,...n,ref:t})});la.displayName=Dr;var ca="DialogDescription",ua=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ca,r);return u.jsx(z.p,{id:o.descriptionId,...n,ref:t})});ua.displayName=ca;var da="DialogClose",fa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(da,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});fa.displayName=da;function Lr(e){return e?"open":"closed"}var pa="DialogTitleWarning",[fh,ma]=Cl(pa,{contentName:Be,titleName:Dr,docsSlug:"dialog"}),iu=({titleId:e})=>{const t=ma(pa),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
63
63
|
|
|
64
64
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
65
65
|
|
|
@@ -78,87 +78,102 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
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 vu=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...gu,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:wa("lucide",o),...!a&&!hu(i)&&{"aria-hidden":"true"},...i},[...s.map(([
|
|
81
|
+
*/const vu=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...gu,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:wa("lucide",o),...!a&&!hu(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>te.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
82
|
+
* @license lucide-react v0.542.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const le=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(vu,{ref:a,iconNode:t,className:wa(`lucide-${pu(ya(e))}`,`lucide-${e}`,n),...o}));return r.displayName=ya(e),r};/**
|
|
87
|
+
* @license lucide-react v0.542.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const xu=le("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
92
|
+
* @license lucide-react v0.542.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const bu=le("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
|
|
82
97
|
* @license lucide-react v0.542.0 - ISC
|
|
83
98
|
*
|
|
84
99
|
* This source code is licensed under the ISC license.
|
|
85
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
101
|
+
*/const yu=le("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
87
102
|
* @license lucide-react v0.542.0 - ISC
|
|
88
103
|
*
|
|
89
104
|
* This source code is licensed under the ISC license.
|
|
90
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
106
|
+
*/const $r=le("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
92
107
|
* @license lucide-react v0.542.0 - ISC
|
|
93
108
|
*
|
|
94
109
|
* This source code is licensed under the ISC license.
|
|
95
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
111
|
+
*/const wu=le("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
97
112
|
* @license lucide-react v0.542.0 - ISC
|
|
98
113
|
*
|
|
99
114
|
* This source code is licensed under the ISC license.
|
|
100
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
116
|
+
*/const Su=le("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
102
117
|
* @license lucide-react v0.542.0 - ISC
|
|
103
118
|
*
|
|
104
119
|
* This source code is licensed under the ISC license.
|
|
105
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
121
|
+
*/const Cu=le("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
107
122
|
* @license lucide-react v0.542.0 - ISC
|
|
108
123
|
*
|
|
109
124
|
* This source code is licensed under the ISC license.
|
|
110
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
126
|
+
*/const Eu=le("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
112
127
|
* @license lucide-react v0.542.0 - ISC
|
|
113
128
|
*
|
|
114
129
|
* This source code is licensed under the ISC license.
|
|
115
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
131
|
+
*/const ku=le("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
117
132
|
* @license lucide-react v0.542.0 - ISC
|
|
118
133
|
*
|
|
119
134
|
* This source code is licensed under the ISC license.
|
|
120
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
136
|
+
*/const Ru=le("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
122
137
|
* @license lucide-react v0.542.0 - ISC
|
|
123
138
|
*
|
|
124
139
|
* This source code is licensed under the ISC license.
|
|
125
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
141
|
+
*/const Nu=le("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
127
142
|
* @license lucide-react v0.542.0 - ISC
|
|
128
143
|
*
|
|
129
144
|
* This source code is licensed under the ISC license.
|
|
130
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
146
|
+
*/const _u=le("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
132
147
|
* @license lucide-react v0.542.0 - ISC
|
|
133
148
|
*
|
|
134
149
|
* This source code is licensed under the ISC license.
|
|
135
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
151
|
+
*/const Pu=le("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
137
152
|
* @license lucide-react v0.542.0 - ISC
|
|
138
153
|
*
|
|
139
154
|
* This source code is licensed under the ISC license.
|
|
140
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const Sa=
|
|
156
|
+
*/const Sa=le("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
142
157
|
* @license lucide-react v0.542.0 - ISC
|
|
143
158
|
*
|
|
144
159
|
* This source code is licensed under the ISC license.
|
|
145
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
161
|
+
*/const Au=le("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
|
|
147
162
|
* @license lucide-react v0.542.0 - ISC
|
|
148
163
|
*
|
|
149
164
|
* This source code is licensed under the ISC license.
|
|
150
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const Ca=
|
|
166
|
+
*/const Ca=le("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
|
|
152
167
|
* @license lucide-react v0.542.0 - ISC
|
|
153
168
|
*
|
|
154
169
|
* This source code is licensed under the ISC license.
|
|
155
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
171
|
+
*/const Tu=le("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
157
172
|
* @license lucide-react v0.542.0 - ISC
|
|
158
173
|
*
|
|
159
174
|
* This source code is licensed under the ISC license.
|
|
160
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const Ea=ce("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Nu({...e}){return d.jsx(ha,{"data-slot":"dialog",...e})}function Au({...e}){return d.jsx(uu,{"data-slot":"dialog-trigger",...e})}function ka({...e}){return d.jsx(ga,{"data-slot":"dialog-portal",...e})}function Tu({...e}){return d.jsx(ba,{"data-slot":"dialog-close",...e})}function Ra({className:e,...t}){return d.jsx(va,{"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(ka,{"data-slot":"dialog-portal",children:[d.jsx(Ra,{}),d.jsxs(xa,{"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(ba,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(Ea,{}),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 _a=["left","right"],Pa=["right","left"],Hu=["top","bottom"],Gu=["bottom","top"];function Uu(e,t,r){switch(e){case"top":case"bottom":return r?t?Pa:_a:t?_a:Pa;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 Na(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 Aa(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}=Aa(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}=Aa(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=Na(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=Na(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 Ta(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oa(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=Ta(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Oa(s)}}}case"escaped":{const a=await gt(t,{...o,altBoundary:!0}),s=Ta(a,r.floating);return{data:{escapedOffsets:s,escaped:Oa(s)}}}default:return{}}}}},Ia=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=Ia.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=Ia.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 ja(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=(ja(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ja(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 Ma(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||Ma(e)&&e.host||Se(e);return Ma(t)?t.host:t}function Da(e){const t=je(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&vt(t)?t:Da(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Da(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Kr(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function Kr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function La(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=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}=La(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 Fa(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)?Fa(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 $a(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?$a(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 Va=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<=Va&&(a-=v)}else u<=Va&&(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 za(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=Fa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Yt(n)}function Ba(e,t){const r=je(e);return r===t||!he(r)||rt(r)?!1:ge(r).position==="fixed"||Ba(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&&Ba(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=za(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},za(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}=La(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?$a(o,i):ye(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function qr(e){return ge(e).position==="static"}function Wa(e,t){if(!Ce(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function Ha(e,t){const r=fe(e);if(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=Wa(e,t);for(;n&&sd(n)&&qr(n);)n=Wa(n,t);return n&&rt(n)&&qr(n)&&!Gr(n)?r:n||dd(e)||r}const kd=async function(e){const t=this.getOffsetParent||Ha,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:Ha,getElementRects:kd,getClientRects:gd,getDimensions:Cd,getScale:nt,isElement:he,isRTL:Rd};function Ga(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&&!Ga(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&&!Ga(m,y)&&r(),m=y,v=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p==null||p(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Ad=ed,Td=td,Od=Zu,Id=nd,jd=Ju,Ua=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 Ka(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ya(e,t){const r=Ka(e);return Math.round(t*r)/r}function Xr(e){const t=l.useRef(e);return 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=Ya(D.floating,f.x),E=Ya(D.floating,f.y);return i?{...P,transform:"translate("+re+"px, "+E+"px)",...Ka(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?Ua({element:n.current,padding:o}).fn(r):{}:n?Ua({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",qa=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"})})});qa.displayName=Yd;var qd=qa,Zr="Popper",[Xa,ot]=xe(Zr),[Xd,Za]=Xa(Zr),Ja=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return d.jsx(Xd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ja.displayName=Zr;var Qa="PopperAnchor",es=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Za(Qa,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const 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})});es.displayName=Qa;var Jr="PopperContent",[Zd,Jd]=Xa(Jr),ts=l.forwardRef((e,t)=>{var N,L,U,Z,ne,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=Za(Jr,r),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[C,k]=l.useState(null),A=fo(C),R=(A==null?void 0:A.width)??0,_=(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:Gm}=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",`${Gm}px`)}}),C&&Kd({element:C,padding:i}),tf({arrowWidth:R,arrowHeight:_}),g&&Ud({strategy:"referenceHidden",...ee})]}),[re,E]=os(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=((U=P.arrow)==null?void 0:U.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"}})})})});ts.displayName=Jr;var rs="PopperArrow",Qd={top:"bottom",right:"left",bottom:"top",left:"right"},ns=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Jd(rs,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"}})})});ns.displayName=rs;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]=os(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return 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 os(e){const[t,r="center"]=e.split("-");return[t,r]}var Qr=Ja,tr=es,en=ts,tn=ns,as=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rf="VisuallyHidden",ss=l.forwardRef((e,t)=>d.jsx(V.span,{...e,ref:t,style:{...as,...e.style}}));ss.displayName=rf;var nf=ss,[rr,ph]=xe("Tooltip",[ot]),nr=ot(),is="TooltipProvider",of=700,rn="tooltip.open",[af,nn]=rr(is),ls=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})};ls.displayName=is;var bt="Tooltip",[sf,yt]=rr(bt),cs=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})})};cs.displayName=bt;var on="TooltipTrigger",us=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(on,r),a=nn(on,r),s=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)})})});us.displayName=on;var an="TooltipPortal",[lf,cf]=rr(an,{forceMount:void 0}),ds=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})})})};ds.displayName=an;var at="TooltipContent",fs=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(ps,{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(ps,{...e,ref:a})}),[df,ff]=rr(bt,{isInside:!1}),pf=ji("TooltipContent"),ps=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})})]})})});fs.displayName=at;var ms="TooltipArrow",hs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nr(r);return ff(ms,r).isInside?null:d.jsx(tn,{...o,...n,ref:t})});hs.displayName=ms;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=ls,wf=cs,Sf=us,Cf=ds,Ef=fs,kf=hs;function gs({delayDuration:e=0,...t}){return d.jsx(yf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Rf({...e}){return d.jsx(gs,{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(Sa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function vs(e,[t,r]){return Math.min(r,Math.max(t,e))}var If=[" ","Enter","ArrowUp","ArrowDown"],jf=[" ","Enter"],He="Select",[or,ar,Mf]=oo(He),[st,mh]=xe(He,[Mf,ot]),sr=ot(),[Df,Me]=st(He),[Lf,Ff]=st(He),xs=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(Bs,{"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]})})};xs.displayName=He;var bs="SelectTrigger",ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=sr(r),s=Me(bs,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),u=ar(r),f=l.useRef("touch"),[p,g,h]=Hs(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=Gs(x,m,y);b!==void 0&&s.onValueChange(b.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return 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":Ws(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())})})})});ys.displayName=bs;var ws="SelectValue",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=Me(ws,r),{onValueNodeHasChildrenChange: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:Ws(c.value)?d.jsx(d.Fragment,{children:s}):a})});Ss.displayName=ws;var $f="SelectIcon",Cs=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return d.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Cs.displayName=$f;var Vf="SelectPortal",Es=e=>d.jsx(ht,{asChild:!0,...e});Es.displayName=Vf;var Ge="SelectContent",ks=l.forwardRef((e,t)=>{const r=Me(Ge,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Nt.createPortal(d.jsx(Rs,{scope:e.__scopeSelect,children:d.jsx(or.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(_s,{...e,ref:t})});ks.displayName=Ge;var ve=10,[Rs,De]=st(Ge),zf="SelectContentImpl",Bf=Ve("SelectContent.RemoveScroll"),_s=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,...U]=Q().map(oe=>oe.ref.current),[Z]=U.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))}},U=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",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",U,{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,$]=Hs(N=>{const L=Q().filter(ne=>!ne.disabled),U=L.find(ne=>ne.ref.current===document.activeElement),Z=Gs(L,N,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((N,L,U)=>{const Z=!q.current&&!U;(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,U)=>{const Z=!q.current&&!U;(b.value!==void 0&&b.value===L||Z)&&X(N)},[b.value]),O=n==="popper"?ln:Ps,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(Rs,{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()}})})})})})})});_s.displayName=zf;var Wf="SelectItemAlignedPosition",Ps=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=vs(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=vs(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,U=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)+U;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}})})})});Ps.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",Ns=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})})})]})});Ns.displayName=un;var As="SelectGroup",[Uf,Kf]=st(As),Ts=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})})});Ts.displayName=As;var Os="SelectLabel",Is=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Kf(Os,r);return d.jsx(V.div,{id:o.id,...n,ref:t})});Is.displayName=Os;var ir="SelectItem",[Yf,js]=st(ir),Ms=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())})})})})});Ms.displayName=ir;var wt="SelectItemText",Ds=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=Me(wt,r),i=De(wt,r),c=js(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]})});Ds.displayName=wt;var Ls="SelectItemIndicator",Fs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return js(Ls,r).isSelected?d.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});Fs.displayName=Ls;var dn="SelectScrollUpButton",$s=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(zs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});$s.displayName=dn;var fn="SelectScrollDownButton",Vs=l.forwardRef((e,t)=>{const r=De(fn,e.__scopeSelect),n=cn(fn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const 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(zs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Vs.displayName=fn;var zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=De("SelectScrollButton",r),s=l.useRef(null),i=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",Bs=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=po(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),d.jsx(V.select,{...r,style:{...as,...r.style},ref:a,defaultValue:t})});Bs.displayName=Jf;function Ws(e){return e===""||e===void 0}function Hs(e){const t=Re(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(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 Gs(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=xs,tp=ys,rp=Ss,np=Cs,op=Es,ap=ks,sp=Ns,ip=Ts,lp=Is,cp=Ms,up=Ds,dp=Fs,fp=$s,pp=Vs;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 Us({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",[Ks,hh]=xe(lr,[ot]),St=ot(),[Sp,Le]=Ks(lr),Ys=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})})};Ys.displayName=lr;var qs="PopoverAnchor",Cp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(qs,r),a=St(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(tr,{...a,...n,ref:t})});Cp.displayName=qs;var Xs="PopoverTrigger",Zs=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(Xs,r),a=St(r),s=ae(t,o.triggerRef),i=d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ri(o.open),...n,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(tr,{asChild:!0,...a,children:i})});Zs.displayName=Xs;var mn="PopoverPortal",[Ep,kp]=Ks(mn,{forceMount:void 0}),Js=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})})})};Js.displayName=mn;var it="PopoverContent",Qs=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})})});Qs.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(ei,{...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(ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,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()}})}),ei=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":ri(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ti="PopoverClose",Np=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(ti,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Np.displayName=ti;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 ri(e){return e?"open":"closed"}var Op=Ys,Ip=Zs,jp=Js,Mp=Qs;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-white text-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var ni=1,$p=.9,Vp=.8,zp=.17,hn=.1,gn=.999,Bp=.9999,Wp=.99,Hp=/[\\\/_+.#"@\[\(\{&]/,Gp=/[\\\/_+.#"@\[\(\{&]/g,Up=/[\s-]/,oi=/[\s-]/g;function vn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?ni: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*=ni: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(oi),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 ai(e){return e.toLowerCase().replace(oi," ")}function Kp(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,vn(e,t,ai(e),ai(t),0,0,{})}var Ct='[cmdk-group=""]',xn='[cmdk-group-items=""]',Yp='[cmdk-group-heading=""]',si='[cmdk-item=""]',ii=`${si}:not([aria-disabled="true"])`,bn="cmdk-item-select",lt="data-value",qp=(e,t,r)=>Kp(e,t,r),li=l.createContext(void 0),Et=()=>l.useContext(li),ci=l.createContext(void 0),yn=()=>l.useContext(ci),ui=l.createContext(void 0),di=l.forwardRef((e,t)=>{let r=ct(()=>{var S,T;return{search:"",value:(T=(S=e.value)!=null?S:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=fi(e),{label:c,children: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 U=document.getElementById(C);U?U.focus():(O=document.getElementById(b))==null||O.focus()}if(A(7,()=>{var U;r.current.selectedItemId=(U=z())==null?void 0:U.id,R.emit()}),M||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=T??"";(L=(N=i.current).onValueChange)==null||L.call(N,U);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 U=S.get(L);N=Math.max(U,N)}),T.push([O,N])});let M=k.current;q().sort((O,Y)=>{var N,L;let U=O.getAttribute("id"),Z=Y.getAttribute("id");return((N=S.get(Z))!=null?N:0)-((L=S.get(U))!=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:"",U=(O=(M=a.current.get(N))==null?void 0:M.keywords)!=null?O:[],Z=W(L,U);r.current.filtered.items.set(N,Z),Z>0&&Y++}for(let[N,L]of o.current)for(let U of L)if(r.current.filtered.items.get(U)>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(`${si}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(ii))||[])}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(ii);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(ci.Provider,{value:R},l.createElement(li.Provider,{value:_},S))))}),Xp=l.forwardRef((e,t)=>{var r,n;let o=le(),a=l.useRef(null),s=l.useContext(ui),i=Et(),c=fi(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=pi(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),[]),pi(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(ui.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(ha,{open:r,onOpenChange:n},l.createElement(ga,{container:s},l.createElement(va,{"cmdk-overlay":"",className:o}),l.createElement(xa,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(di,{ref:t,...i}))))}),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(di,{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 fi(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ct(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=yn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function pi(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ue(()=>{var s;let i=(()=>{var 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(Sa,{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 mi({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 hi({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(vi,{...e}):d.jsx(gi,{...e})}const gi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),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(Us,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>d.jsx(Us,{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})]})},vi=({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(Ea,{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(mi,{heading:v.label,children:v.options.map(m=>d.jsxs(hi,{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(mi,{children:g.map(v=>d.jsxs(hi,{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={};/**
|
|
176
|
+
*/const Ea=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ju({...e}){return u.jsx(ha,{"data-slot":"dialog",...e})}function Ou({...e}){return u.jsx(uu,{"data-slot":"dialog-trigger",...e})}function ka({...e}){return u.jsx(ga,{"data-slot":"dialog-portal",...e})}function Iu({...e}){return u.jsx(ba,{"data-slot":"dialog-close",...e})}function Ra({className:e,...t}){return u.jsx(va,{"data-slot":"dialog-overlay",className:O("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Mu({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs(ka,{"data-slot":"dialog-portal",children:[u.jsx(Ra,{}),u.jsxs(xa,{"data-slot":"dialog-content",className:O("bg-background bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&u.jsxs(ba,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[u.jsx(Ea,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Du({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:O("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Lu({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:O("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function $u({className:e,...t}){return u.jsx(du,{"data-slot":"dialog-title",className:O("text-lg leading-none font-semibold ",e),...t})}function Fu({className:e,...t}){return u.jsx(fu,{"data-slot":"dialog-description",className:O("text-muted-foreground text-sm",e),...t})}const Vu=ce("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}}),Fr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?At:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:O(Vu({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Fr.displayName="Badge";const zu=["top","right","bottom","left"],Oe=Math.min,de=Math.max,Ut=Math.round,Kt=Math.floor,ye=e=>({x:e,y:e}),Bu={left:"right",right:"left",bottom:"top",top:"bottom"},Wu={start:"end",end:"start"};function Vr(e,t,r){return de(e,Oe(t,r))}function _e(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function zr(e){return e==="x"?"y":"x"}function Br(e){return e==="y"?"height":"width"}const Hu=new Set(["top","bottom"]);function we(e){return Hu.has(Pe(e))?"y":"x"}function Wr(e){return zr(we(e))}function Gu(e,t,r){r===void 0&&(r=!1);const n=et(e),o=Wr(e),a=Br(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Yt(s)),[s,Yt(s)]}function Uu(e){const t=Yt(e);return[Hr(e),t,Hr(t)]}function Hr(e){return e.replace(/start|end/g,t=>Wu[t])}const Na=["left","right"],_a=["right","left"],Ku=["top","bottom"],Yu=["bottom","top"];function qu(e,t,r){switch(e){case"top":case"bottom":return r?t?_a:Na:t?Na:_a;case"left":case"right":return t?Ku:Yu;default:return[]}}function Xu(e,t,r,n){const o=et(e);let a=qu(Pe(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Hr)))),a}function Yt(e){return e.replace(/left|right|bottom|top/g,t=>Bu[t])}function Zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?Zu(e):{top:e,right:e,bottom:e,left:e}}function qt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Aa(e,t,r){let{reference:n,floating:o}=e;const a=we(t),s=Wr(t),i=Br(s),c=Pe(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(et(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const Ju=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Aa(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:C,reset:k}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=b??f,p=w??p,h={...h,[x]:{...h[x],...C}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Aa(d,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function gt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=_e(t,e),v=Pa(h),x=i[g?p==="floating"?"reference":"floating":p],y=qt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),b=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},k=qt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/C.y,bottom:(k.bottom-y.bottom+v.bottom)/C.y,left:(y.left-k.left+v.left)/C.x,right:(k.right-y.right+v.right)/C.x}}const Qu=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=_e(e,t)||{};if(d==null)return{};const p=Pa(f),g={x:r,y:n},h=Wr(o),v=Br(h),m=await s.getDimensions(d),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],k=g[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=A?A[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(A)))&&(R=i.floating[w]||a.floating[v]);const N=C/2-k/2,H=R/2-m[v]/2-1,K=Oe(p[y],H),X=Oe(p[b],H),Q=K,ee=R-m[v]-X,B=R/2-m[v]/2+N,q=Vr(Q,B,ee),L=!c.arrow&&et(o)!=null&&B!==q&&a.reference[v]/2-(B<Q?K:X)-m[v]/2<0,G=L?B<Q?B-Q:B-ee:0;return{[h]:g[h]+G,data:{[h]:q,centerOffset:B-q-G,...L&&{alignmentOffset:G}},reset:L}}}),ed=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=_e(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Pe(o),b=we(i),w=Pe(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=g||(w||!m?[Yt(i)]:Uu(i)),A=v!=="none";!g&&A&&k.push(...Xu(i,m,v,C));const R=[i,...k],N=await gt(t,x),H=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&H.push(N[y]),p){const B=Gu(o,s,C);H.push(N[B[0]],N[B[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every(B=>B<=0)){var X,Q;const B=(((X=a.flip)==null?void 0:X.index)||0)+1,q=R[B];if(q&&(!(p==="alignment"?b!==we(q):!1)||K.every(_=>we(_.placement)===b?_.overflows[0]>0:!0)))return{data:{index:B,overflows:K},reset:{placement:q}};let L=(Q=K.filter(G=>G.overflows[0]<=0).sort((G,_)=>G.overflows[1]-_.overflows[1])[0])==null?void 0:Q.placement;if(!L)switch(h){case"bestFit":{var ee;const G=(ee=K.filter(_=>{if(A){const re=we(_.placement);return re===b||re==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(re=>re>0).reduce((re,E)=>re+E,0)]).sort((_,re)=>_[1]-re[1])[0])==null?void 0:ee[0];G&&(L=G);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Ta(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ja(e){return zu.some(t=>e[t]>=0)}const td=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=_e(e,t);switch(n){case"referenceHidden":{const a=await gt(t,{...o,elementContext:"reference"}),s=Ta(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ja(s)}}}case"escaped":{const a=await gt(t,{...o,altBoundary:!0}),s=Ta(a,r.floating);return{data:{escapedOffsets:s,escaped:ja(s)}}}default:return{}}}}},Oa=new Set(["left","top"]);async function rd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Pe(r),i=et(r),c=we(r)==="y",d=Oa.has(s)?-1:1,f=a&&c?-1:1,p=_e(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const nd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await rd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},od=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=_e(e,t),d={x:r,y:n},f=await gt(t,c),p=we(Pe(o)),g=zr(p);let h=d[g],v=d[p];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+f[x],w=h-f[y];h=Vr(b,h,w)}if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=v+f[x],w=v-f[y];v=Vr(b,v,w)}const m=i.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[p]:s}}}}}},ad=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=_e(e,t),f={x:r,y:n},p=we(o),g=zr(p);let h=f[g],v=f[p];const m=_e(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",C=a.reference[g]-a.floating[w]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<C?h=C:h>k&&(h=k)}if(d){var y,b;const w=g==="y"?"width":"height",C=Oa.has(Pe(o)),k=a.reference[p]-a.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:x.crossAxis),A=a.reference[p]+a.reference[w]+(C?0:((b=s.offset)==null?void 0:b[p])||0)-(C?x.crossAxis:0);v<k?v=k:v>A&&(v=A)}return{[g]:h,[p]:v}}}},sd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=_e(e,t),f=await gt(t,d),p=Pe(o),g=et(o),h=we(o)==="y",{width:v,height:m}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,C=Oe(m-f[x],b),k=Oe(v-f[y],w),A=!t.middlewareData.shift;let R=C,N=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=b),A&&!g){const K=de(f.left,0),X=de(f.right,0),Q=de(f.top,0),ee=de(f.bottom,0);h?N=v-2*(K!==0||X!==0?K+X:de(f.left,f.right)):R=m-2*(Q!==0||ee!==0?Q+ee:de(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:R});const H=await s.getDimensions(i.floating);return v!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function Xt(){return typeof window<"u"}function tt(e){return Ia(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(Ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ia(e){return Xt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return Xt()?e instanceof Element||e instanceof fe(e).Element:!1}function Ce(e){return Xt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function Ma(e){return!Xt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const id=new Set(["inline","contents"]);function vt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!id.has(o)}const ld=new Set(["table","td","th"]);function cd(e){return ld.has(tt(e))}const ud=[":popover-open",":modal"];function Zt(e){return ud.some(t=>{try{return e.matches(t)}catch{return!1}})}const dd=["transform","translate","scale","rotate","perspective"],fd=["transform","translate","scale","rotate","perspective","filter"],pd=["paint","layout","strict","content"];function Gr(e){const t=Ur(),r=he(e)?ge(e):e;return dd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||fd.some(n=>(r.willChange||"").includes(n))||pd.some(n=>(r.contain||"").includes(n))}function md(e){let t=Ie(e);for(;Ce(t)&&!rt(t);){if(Gr(t))return t;if(Zt(t))return null;t=Ie(t)}return null}function Ur(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hd=new Set(["html","body","#document"]);function rt(e){return hd.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function Jt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ma(e)&&e.host||Se(e);return Ma(t)?t.host:t}function Da(e){const t=Ie(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&vt(t)?t:Da(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Da(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Kr(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function Kr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function La(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Ut(r)!==a||Ut(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Yr(e){return he(e)?e:e.contextElement}function nt(e){const t=Yr(e);if(!Ce(t))return ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=La(t);let s=(a?Ut(r.width):r.width)/n,i=(a?Ut(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const gd=ye(0);function $a(e){const t=fe(e);return!Ur()||!t.visualViewport?gd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Yr(e);let s=ye(1);t&&(n?he(n)&&(s=nt(n)):s=nt(e));const i=vd(a,r,n)?$a(a):ye(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=fe(a),h=n&&he(n)?fe(n):n;let v=g,m=Kr(v);for(;m&&n&&h!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,C=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,d*=x.y,f*=x.x,p*=x.y,c+=w,d+=C,v=fe(m),m=Kr(v)}}return qt({width:f,height:p,x:c,y:d})}function Qt(e,t){const r=Jt(e).scrollLeft;return t?t.left+r:We(Se(e)).left+r}function Fa(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Qt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function xd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Se(n),i=t?Zt(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=ye(1);const f=ye(0),p=Ce(n);if((p||!p&&!a)&&((tt(n)!=="body"||vt(s))&&(c=Jt(n)),Ce(n))){const h=We(n);d=nt(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?Fa(s,c):ye(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-c.scrollTop*d.y+f.y+g.y}}function bd(e){return Array.from(e.getClientRects())}function yd(e){const t=Se(e),r=Jt(e),n=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=de(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Qt(e);const i=-r.scrollTop;return ge(n).direction==="rtl"&&(s+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Va=25;function wd(e,t){const r=fe(e),n=Se(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=Ur();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=Qt(n);if(d<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=Va&&(a-=v)}else d<=Va&&(a+=d);return{width:a,height:s,x:i,y:c}}const Sd=new Set(["absolute","fixed"]);function Cd(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ce(e)?nt(e):ye(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function za(e,t,r){let n;if(t==="viewport")n=wd(e,r);else if(t==="document")n=yd(Se(e));else if(he(t))n=Cd(t,r);else{const o=$a(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qt(n)}function Ba(e,t){const r=Ie(e);return r===t||!he(r)||rt(r)?!1:ge(r).position==="fixed"||Ba(r,t)}function Ed(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?Ie(e):e;for(;he(s)&&!rt(s);){const i=ge(s),c=Gr(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&Sd.has(o.position)||vt(s)&&!c&&Ba(e,s))?n=n.filter(f=>f!==s):o=i,s=Ie(s)}return t.set(e,n),n}function kd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Zt(t)?[]:Ed(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,f)=>{const p=za(t,f,o);return d.top=de(p.top,d.top),d.right=Oe(p.right,d.right),d.bottom=Oe(p.bottom,d.bottom),d.left=de(p.left,d.left),d},za(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Rd(e){const{width:t,height:r}=La(e);return{width:t,height:r}}function Nd(e,t,r){const n=Ce(t),o=Se(t),a=r==="fixed",s=We(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=ye(0);function d(){c.x=Qt(o)}if(n||!n&&!a)if((tt(t)!=="body"||vt(o))&&(i=Jt(t)),n){const h=We(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?Fa(o,i):ye(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function qr(e){return ge(e).position==="static"}function Wa(e,t){if(!Ce(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function Ha(e,t){const r=fe(e);if(Zt(e))return r;if(!Ce(e)){let o=Ie(e);for(;o&&!rt(o);){if(he(o)&&!qr(o))return o;o=Ie(o)}return r}let n=Wa(e,t);for(;n&&cd(n)&&qr(n);)n=Wa(n,t);return n&&rt(n)&&qr(n)&&!Gr(n)?r:n||md(e)||r}const _d=async function(e){const t=this.getOffsetParent||Ha,r=this.getDimensions,n=await r(e.floating);return{reference:Nd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pd(e){return ge(e).direction==="rtl"}const Ad={convertOffsetParentRelativeRectToViewportRelativeRect:xd,getDocumentElement:Se,getClippingRect:kd,getOffsetParent:Ha,getElementRects:_d,getClientRects:bd,getDimensions:Rd,getScale:nt,isElement:he,isRTL:Pd};function Ga(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Td(e,t){let r=null,n;const o=Se(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=Kt(p),m=Kt(o.clientWidth-(f+g)),x=Kt(o.clientHeight-(p+h)),y=Kt(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Oe(1,c))||1};let C=!0;function k(A){const R=A[0].intersectionRatio;if(R!==c){if(!C)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Ga(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,w)}r.observe(e)}return s(!0),a}function jd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Yr(e),f=o||a?[...d?xt(d):[],...xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=d&&i?Td(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?We(e):null;c&&x();function x(){const y=We(e);m&&!Ga(m,y)&&r(),m=y,v=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p==null||p(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Od=nd,Id=od,Md=ed,Dd=sd,Ld=td,Ua=Qu,$d=ad,Fd=(e,t,r)=>{const n=new Map,o={platform:Ad,...r},a={...o.platform,_c:n};return Ju(e,t,{...o,platform:a})};var Vd=typeof document<"u",zd=function(){},er=Vd?te.useLayoutEffect:zd;function tr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!tr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!tr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ka(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ya(e,t){const r=Ka(e);return Math.round(t*r)/r}function Xr(e){const t=l.useRef(e);return er(()=>{t.current=e}),t}function Bd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);tr(g,n)||h(n);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(_=>{_!==A.current&&(A.current=_,m(_))},[]),w=l.useCallback(_=>{_!==R.current&&(R.current=_,y(_))},[]),C=a||v,k=s||x,A=l.useRef(null),R=l.useRef(null),N=l.useRef(f),H=c!=null,K=Xr(c),X=Xr(o),Q=Xr(d),ee=l.useCallback(()=>{if(!A.current||!R.current)return;const _={placement:t,strategy:r,middleware:g};X.current&&(_.platform=X.current),Fd(A.current,R.current,_).then(re=>{const E={...re,isPositioned:Q.current!==!1};B.current&&!tr(N.current,E)&&(N.current=E,Pt.flushSync(()=>{p(E)}))})},[g,t,r,X,Q]);er(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const B=l.useRef(!1);er(()=>(B.current=!0,()=>{B.current=!1}),[]),er(()=>{if(C&&(A.current=C),k&&(R.current=k),C&&k){if(K.current)return K.current(C,k,ee);ee()}},[C,k,ee,K,H]);const q=l.useMemo(()=>({reference:A,floating:R,setReference:b,setFloating:w}),[b,w]),L=l.useMemo(()=>({reference:C,floating:k}),[C,k]),G=l.useMemo(()=>{const _={position:r,left:0,top:0};if(!L.floating)return _;const re=Ya(L.floating,f.x),E=Ya(L.floating,f.y);return i?{..._,transform:"translate("+re+"px, "+E+"px)",...Ka(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:E}},[r,i,L.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:L,floatingStyles:G}),[f,ee,q,L,G])}const Wd=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Ua({element:n.current,padding:o}).fn(r):{}:n?Ua({element:n,padding:o}).fn(r):{}}}},Hd=(e,t)=>({...Od(e),options:[e,t]}),Gd=(e,t)=>({...Id(e),options:[e,t]}),Ud=(e,t)=>({...$d(e),options:[e,t]}),Kd=(e,t)=>({...Md(e),options:[e,t]}),Yd=(e,t)=>({...Dd(e),options:[e,t]}),qd=(e,t)=>({...Ld(e),options:[e,t]}),Xd=(e,t)=>({...Wd(e),options:[e,t]});var Zd="Arrow",qa=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(z.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});qa.displayName=Zd;var Jd=qa,Zr="Popper",[Xa,ot]=xe(Zr),[Qd,Za]=Xa(Zr),Ja=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx(Qd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ja.displayName=Zr;var Qa="PopperAnchor",es=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Za(Qa,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(z.div,{...o,ref:i})});es.displayName=Qa;var Jr="PopperContent",[ef,tf]=Xa(Jr),ts=l.forwardRef((e,t)=>{var P,$,U,Z,ne,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=Za(Jr,r),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[C,k]=l.useState(null),A=fo(C),R=(A==null?void 0:A.width)??0,N=(A==null?void 0:A.height)??0,H=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(nf),altBoundary:Q},{refs:B,floatingStyles:q,placement:L,isPositioned:G,middlewareData:_}=Bd({strategy:"fixed",placement:H,whileElementsMounted:(...pe)=>jd(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Hd({mainAxis:o+N,alignmentAxis:s}),c&&Gd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ud():void 0,...ee}),c&&Kd({...ee}),Yd({...ee,apply:({elements:pe,rects:Ee,availableWidth:Rt,availableHeight:Nt})=>{const{width:_t,height:sh}=Ee.reference,fr=pe.floating.style;fr.setProperty("--radix-popper-available-width",`${Rt}px`),fr.setProperty("--radix-popper-available-height",`${Nt}px`),fr.setProperty("--radix-popper-anchor-width",`${_t}px`),fr.setProperty("--radix-popper-anchor-height",`${sh}px`)}}),C&&Xd({element:C,padding:i}),of({arrowWidth:R,arrowHeight:N}),g&&qd({strategy:"referenceHidden",...ee})]}),[re,E]=os(L),V=Re(v);ie(()=>{G&&(V==null||V())},[G,V]);const S=(P=_.arrow)==null?void 0:P.x,T=($=_.arrow)==null?void 0:$.y,D=((U=_.arrow)==null?void 0:U.centerOffset)!==0,[j,Y]=l.useState();return ie(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(Z=_.transformOrigin)==null?void 0:Z.x,(ne=_.transformOrigin)==null?void 0:ne.y].join(" "),...((oe=_.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(ef,{scope:r,placedSide:re,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:D,children:u.jsx(z.div,{"data-side":re,"data-align":E,...m,ref:w,style:{...m.style,animation:G?void 0:"none"}})})})});ts.displayName=Jr;var rs="PopperArrow",rf={top:"bottom",right:"left",bottom:"top",left:"right"},ns=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=tf(rs,n),s=rf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(Jd,{...o,ref:r,style:{...o.style,display:"block"}})})});ns.displayName=rs;function nf(e){return e!==null}var of=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:r,rects:n,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=os(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):d==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function os(e){const[t,r="center"]=e.split("-");return[t,r]}var Qr=Ja,rr=es,en=ts,tn=ns,as=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),af="VisuallyHidden",ss=l.forwardRef((e,t)=>u.jsx(z.span,{...e,ref:t,style:{...as,...e.style}}));ss.displayName=af;var sf=ss,[nr,Th]=xe("Tooltip",[ot]),or=ot(),is="TooltipProvider",lf=700,rn="tooltip.open",[cf,nn]=nr(is),ls=e=>{const{__scopeTooltip:t,delayDuration:r=lf,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(cf,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};ls.displayName=is;var bt="Tooltip",[uf,yt]=nr(bt),cs=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=nn(bt,e.__scopeTooltip),d=or(t),[f,p]=l.useState(null),g=ue(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=Te({prop:n,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(rn))):c.onClose(),a==null||a(R)},caller:bt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,b(!0)},[b]),k=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),A=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,b(!0),h.current=0},m)},[m,b]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(Qr,{...d,children:u.jsx(uf,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:C,onClose:k,disableHoverableContent:v,children:r})})};cs.displayName=bt;var on="TooltipTrigger",us=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(on,r),a=nn(on,r),s=or(r),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(rr,{asChild:!0,...s,children:u.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:W(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:W(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:W(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:W(e.onBlur,o.onClose),onClick:W(e.onClick,o.onClose)})})});us.displayName=on;var an="TooltipPortal",[df,ff]=nr(an,{forceMount:void 0}),ds=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(an,t);return u.jsx(df,{scope:t,forceMount:r,children:u.jsx(Ne,{present:r||a.open,children:u.jsx(ht,{asChild:!0,container:o,children:n})})})};ds.displayName=an;var at="TooltipContent",fs=l.forwardRef((e,t)=>{const r=ff(at,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(at,e.__scopeTooltip);return u.jsx(Ne,{present:n||s.open,children:s.disableHoverableContent?u.jsx(ps,{side:o,...a,ref:t}):u.jsx(pf,{side:o,...a,ref:t})})}),pf=l.forwardRef((e,t)=>{const r=yt(at,e.__scopeTooltip),n=nn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=vf(y,x.getBoundingClientRect()),w=xf(y,b),C=bf(m.getBoundingClientRect()),k=wf([...w,...C]);i(k),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=x=>h(x,f),m=x=>h(x,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,h,g]),l.useEffect(()=>{if(s){const v=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!yf(y,s);b?g():w&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,g]),u.jsx(ps,{...e,ref:a})}),[mf,hf]=nr(bt,{isInside:!1}),gf=Ii("TooltipContent"),ps=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(at,r),d=or(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(rn,f),()=>document.removeEventListener(rn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(en,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(gf,{children:n}),u.jsx(mf,{scope:r,isInside:!0,children:u.jsx(sf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});fs.displayName=at;var ms="TooltipArrow",hs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=or(r);return hf(ms,r).isInside?null:u.jsx(tn,{...o,...n,ref:t})});hs.displayName=ms;function vf(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function xf(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function bf(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function yf(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-d)*(n-f)/(g-f)+d&&(o=!o)}return o}function wf(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Sf(t)}function Sf(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Cf=ls,Ef=cs,kf=us,Rf=ds,Nf=fs,_f=hs;function gs({delayDuration:e=0,...t}){return u.jsx(Cf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Pf({...e}){return u.jsx(gs,{children:u.jsx(Ef,{"data-slot":"tooltip",...e})})}function Af({...e}){return u.jsx(kf,{"data-slot":"tooltip-trigger",...e})}function Tf({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(Rf,{children:u.jsxs(Nf,{"data-slot":"tooltip-content",sideOffset:t,className:O("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...n,children:[r,u.jsx(_f,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const jf=ce("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),sn=({label:e,helperText:t,errorText:r,leftIcon:n,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[e&&u.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),u.jsxs("div",{className:O(jf({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),u.jsx("input",{disabled:i,className:O("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&u.jsx("p",{className:O("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),Of=e=>u.jsx(sn,{type:"email",inputMode:"email",...e}),If=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),d=r?r(s):(p=>[{label:"minimum 8 characters",isValid:p.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(p)},{label:"one lowercase character",isValid:/[a-z]/.test(p)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(p)},{label:"one number",isValid:/\d/.test(p)}])(s),f=d.every(p=>p.isValid);return te.useEffect(()=>{t&&t(f,d)},[s,f,d,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),u.jsx(sn,{type:o?"text":"password",value:s,onChange:p=>i(p.target.value),...n,rightIcon:u.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?u.jsx(Ru,{size:18,className:"text-neutral-black-2"}):u.jsx(Nu,{size:18,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:d.map((p,g)=>u.jsxs("div",{className:"flex items-center gap-1",children:[p.isValid?u.jsx(Cu,{size:14,className:"text-success-d"}):u.jsx(Eu,{size:14,className:"text-stroke"}),u.jsx("span",{className:p.isValid?"text-success-d":"text-input",children:p.label})]},g))})]})})},Mf=e=>u.jsx(sn,{type:"search",leftIcon:u.jsx(Sa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function vs(e,[t,r]){return Math.min(r,Math.max(t,e))}var Df=[" ","Enter","ArrowUp","ArrowDown"],Lf=[" ","Enter"],He="Select",[ar,sr,$f]=oo(He),[st,jh]=xe(He,[$f,ot]),ir=ot(),[Ff,Me]=st(He),[Vf,zf]=st(He),xs=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=ir(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[C,k]=l.useState(!1),A=yr(d),[R,N]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[H,K]=Te({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=x?v||!!x.closest("form"):!0,[ee,B]=l.useState(new Set),q=Array.from(ee).map(L=>L.props.value).join(";");return u.jsx(Qr,{...m,children:u.jsxs(Ff,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:ue(),value:H,onValueChange:K,open:R,onOpenChange:N,dir:A,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(ar.Provider,{scope:t,children:u.jsx(Vf,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(L=>{B(G=>new Set(G).add(L))},[]),onNativeOptionRemove:l.useCallback(L=>{B(G=>{const _=new Set(G);return _.delete(L),_})},[]),children:r})}),Q?u.jsxs(Bs,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:H,onChange:L=>K(L.target.value),disabled:g,form:v,children:[H===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};xs.displayName=He;var bs="SelectTrigger",ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=ir(r),s=Me(bs,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),d=sr(r),f=l.useRef("touch"),[p,g,h]=Hs(m=>{const x=d().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=Gs(x,m,y);b!==void 0&&s.onValueChange(b.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(rr,{asChild:!0,...a,children:u.jsx(z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ws(s.value)?"":void 0,...o,ref:c,onClick:W(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:W(o.onPointerDown,m=>{f.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:W(o.onKeyDown,m=>{const x=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Df.includes(m.key)&&(v(),m.preventDefault())})})})});ys.displayName=bs;var ws="SelectValue",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=Me(ws,r),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,p=ae(t,c.onValueNodeChange);return ie(()=>{d(f)},[d,f]),u.jsx(z.span,{...i,ref:p,style:{pointerEvents:"none"},children:Ws(c.value)?u.jsx(u.Fragment,{children:s}):a})});Ss.displayName=ws;var Bf="SelectIcon",Cs=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Cs.displayName=Bf;var Wf="SelectPortal",Es=e=>u.jsx(ht,{asChild:!0,...e});Es.displayName=Wf;var Ge="SelectContent",ks=l.forwardRef((e,t)=>{const r=Me(Ge,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Pt.createPortal(u.jsx(Rs,{scope:e.__scopeSelect,children:u.jsx(ar.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Ns,{...e,ref:t})});ks.displayName=Ge;var ve=10,[Rs,De]=st(Ge),Hf="SelectContentImpl",Gf=Ve("SelectContent.RemoveScroll"),Ns=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Me(Ge,r),[w,C]=l.useState(null),[k,A]=l.useState(null),R=ae(t,P=>C(P)),[N,H]=l.useState(null),[K,X]=l.useState(null),Q=sr(r),[ee,B]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return Ir(w)},[w]),_r();const L=l.useCallback(P=>{const[$,...U]=Q().map(oe=>oe.ref.current),[Z]=U.slice(-1),ne=document.activeElement;for(const oe of P)if(oe===ne||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===$&&k&&(k.scrollTop=0),oe===Z&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==ne))return},[Q,k]),G=l.useCallback(()=>L([N,w]),[L,N,w]);l.useEffect(()=>{ee&&G()},[ee,G]);const{onOpenChange:_,triggerPointerDownPosRef:re}=b;l.useEffect(()=>{if(w){let P={x:0,y:0};const $=Z=>{var ne,oe;P={x:Math.abs(Math.round(Z.pageX)-(((ne=re.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=re.current)==null?void 0:oe.y)??0))}},U=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():w.contains(Z.target)||_(!1),document.removeEventListener("pointermove",$),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",$),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,_,re]),l.useEffect(()=>{const P=()=>_(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[_]);const[E,V]=Hs(P=>{const $=Q().filter(ne=>!ne.disabled),U=$.find(ne=>ne.ref.current===document.activeElement),Z=Gs($,P,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,$,U)=>{const Z=!q.current&&!U;(b.value!==void 0&&b.value===$||Z)&&(H(P),Z&&(q.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),D=l.useCallback((P,$,U)=>{const Z=!q.current&&!U;(b.value!==void 0&&b.value===$||Z)&&X(P)},[b.value]),j=n==="popper"?ln:_s,Y=j===ln?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return u.jsx(Rs,{scope:r,content:w,viewport:k,onViewportChange:A,itemRefCallback:S,selectedItem:N,onItemLeave:T,itemTextRefCallback:D,focusSelectedItem:G,selectedItemText:K,position:n,isPositioned:ee,searchRef:E,children:u.jsx(zt,{as:Gf,allowPinchZoom:!0,children:u.jsx(Mt,{asChild:!0,trapped:b.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:W(o,P=>{var $;($=b.trigger)==null||$.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:u.jsx(j,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:P=>P.preventDefault(),...y,...Y,onPlaced:()=>B(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:W(y.onKeyDown,P=>{const $=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!$&&P.key.length===1&&V(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const ne=P.target,oe=Z.indexOf(ne);Z=Z.slice(oe+1)}setTimeout(()=>L(Z)),P.preventDefault()}})})})})})})});Ns.displayName=Hf;var Uf="SelectItemAlignedPosition",_s=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=Me(Ge,r),s=De(Ge,r),[i,c]=l.useState(null),[d,f]=l.useState(null),p=ae(t,R=>f(R)),g=sr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&x&&y){const R=a.trigger.getBoundingClientRect(),N=d.getBoundingClientRect(),H=a.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=K.left-N.left,oe=H.left-ne,pe=R.left-oe,Ee=R.width+pe,Rt=Math.max(Ee,N.width),Nt=window.innerWidth-ve,_t=vs(oe,[ve,Math.max(ve,Nt-Rt)]);i.style.minWidth=Ee+"px",i.style.left=_t+"px"}else{const ne=N.right-K.right,oe=window.innerWidth-H.right-ne,pe=window.innerWidth-R.right-oe,Ee=R.width+pe,Rt=Math.max(Ee,N.width),Nt=window.innerWidth-ve,_t=vs(oe,[ve,Math.max(ve,Nt-Rt)]);i.style.minWidth=Ee+"px",i.style.right=_t+"px"}const X=g(),Q=window.innerHeight-ve*2,ee=m.scrollHeight,B=window.getComputedStyle(d),q=parseInt(B.borderTopWidth,10),L=parseInt(B.paddingTop,10),G=parseInt(B.borderBottomWidth,10),_=parseInt(B.paddingBottom,10),re=q+L+ee+_+G,E=Math.min(x.offsetHeight*5,re),V=window.getComputedStyle(m),S=parseInt(V.paddingTop,10),T=parseInt(V.paddingBottom,10),D=R.top+R.height/2-ve,j=Q-D,Y=x.offsetHeight/2,P=x.offsetTop+Y,$=q+L+P,U=re-$;if($<=D){const ne=X.length>0&&x===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(j,Y+(ne?T:0)+oe+G),Ee=$+pe;i.style.height=Ee+"px"}else{const ne=X.length>0&&x===X[0].ref.current;i.style.top="0px";const pe=Math.max(D,q+m.offsetTop+(ne?S:0)+Y)+U;i.style.height=pe+"px",m.scrollTop=$-D+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=E+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,x,y,a.dir,n]);ie(()=>w(),[w]);const[C,k]=l.useState();ie(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const A=l.useCallback(R=>{R&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return u.jsx(Yf,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});_s.displayName=Uf;var Kf="SelectPopperPosition",ln=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...a}=e,s=ir(r);return u.jsx(en,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ln.displayName=Kf;var[Yf,cn]=st(Ge,{}),un="SelectViewport",Ps=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=De(un,r),s=cn(un,r),i=ae(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(ar.Slot,{scope:r,children:u.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:W(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-ve*2,m=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),C=b-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Ps.displayName=un;var As="SelectGroup",[qf,Xf]=st(As),Ts=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ue();return u.jsx(qf,{scope:r,id:o,children:u.jsx(z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Ts.displayName=As;var js="SelectLabel",Os=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Xf(js,r);return u.jsx(z.div,{id:o.id,...n,ref:t})});Os.displayName=js;var lr="SelectItem",[Zf,Is]=st(lr),Ms=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=Me(lr,r),c=De(lr,r),d=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ae(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,n,o)}),m=ue(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Zf,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(b=>{p(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:u.jsx(ar.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:u.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:W(s.onFocus,()=>h(!0)),onBlur:W(s.onBlur,()=>h(!1)),onClick:W(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:W(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:W(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:W(s.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:W(s.onKeyDown,b=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&b.key===" "||(Lf.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Ms.displayName=lr;var wt="SelectItemText",Ds=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=Me(wt,r),i=De(wt,r),c=Is(wt,r),d=zf(wt,r),[f,p]=l.useState(null),g=ae(t,y=>p(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=d;return ie(()=>(m(v),()=>x(v)),[m,x,v]),u.jsxs(u.Fragment,{children:[u.jsx(z.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Pt.createPortal(a.children,s.valueNode):null]})});Ds.displayName=wt;var Ls="SelectItemIndicator",$s=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Is(Ls,r).isSelected?u.jsx(z.span,{"aria-hidden":!0,...n,ref:t}):null});$s.displayName=Ls;var dn="SelectScrollUpButton",Fs=l.forwardRef((e,t)=>{const r=De(dn,e.__scopeSelect),n=cn(dn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(zs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Fs.displayName=dn;var fn="SelectScrollDownButton",Vs=l.forwardRef((e,t)=>{const r=De(fn,e.__scopeSelect),n=cn(fn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(zs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Vs.displayName=fn;var zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=De("SelectScrollButton",r),s=l.useRef(null),i=sr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:W(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:W(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:W(o.onPointerLeave,()=>{c()})})}),Jf="SelectSeparator",Qf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(z.div,{"aria-hidden":!0,...n,ref:t})});Qf.displayName=Jf;var pn="SelectArrow",ep=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ir(r),a=Me(pn,r),s=De(pn,r);return a.open&&s.position==="popper"?u.jsx(tn,{...o,...n,ref:t}):null});ep.displayName=pn;var tp="SelectBubbleInput",Bs=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=po(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(z.select,{...r,style:{...as,...r.style},ref:a,defaultValue:t})});Bs.displayName=tp;function Ws(e){return e===""||e===void 0}function Hs(e){const t=Re(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function Gs(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=rp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function rp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var np=xs,op=ys,ap=Ss,sp=Cs,ip=Es,lp=ks,cp=Ps,up=Ts,dp=Os,fp=Ms,pp=Ds,mp=$s,hp=Fs,gp=Vs;function vp({...e}){return u.jsx(np,{"data-slot":"select",...e})}function xp({...e}){return u.jsx(up,{"data-slot":"select-group",...e})}function bp({...e}){return u.jsx(ap,{"data-slot":"select-value",...e})}function yp({className:e,size:t="default",children:r,...n}){return u.jsxs(op,{"data-slot":"select-trigger","data-size":t,className:O("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,u.jsx(sp,{asChild:!0,children:u.jsx($r,{className:"size-4 opacity-50"})})]})}function wp({className:e,children:t,position:r="popper",...n}){return u.jsx(ip,{children:u.jsxs(lp,{"data-slot":"select-content",className:O("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[u.jsx(Cp,{}),u.jsx(cp,{className:O("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(Ep,{})]})})}function Sp({className:e,...t}){return u.jsx(dp,{"data-slot":"select-label",className:O("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Us({className:e,children:t,...r}){return u.jsxs(fp,{"data-slot":"select-item",className:O("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(mp,{children:u.jsx(yu,{className:"size-4"})})}),u.jsx(pp,{children:t})]})}function Cp({className:e,...t}){return u.jsx(hp,{"data-slot":"select-scroll-up-button",className:O("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Su,{className:"size-4"})})}function Ep({className:e,...t}){return u.jsx(gp,{"data-slot":"select-scroll-down-button",className:O("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx($r,{className:"size-4"})})}var cr="Popover",[Ks,Oh]=xe(cr,[ot]),St=ot(),[kp,Le]=Ks(cr),Ys=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=St(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,g]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:cr});return u.jsx(Qr,{...i,children:u.jsx(kp,{scope:t,contentId:ue(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};Ys.displayName=cr;var qs="PopoverAnchor",Rp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(qs,r),a=St(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(rr,{...a,...n,ref:t})});Rp.displayName=qs;var Xs="PopoverTrigger",Zs=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(Xs,r),a=St(r),s=ae(t,o.triggerRef),i=u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ri(o.open),...n,ref:s,onClick:W(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(rr,{asChild:!0,...a,children:i})});Zs.displayName=Xs;var mn="PopoverPortal",[Np,_p]=Ks(mn,{forceMount:void 0}),Js=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Le(mn,t);return u.jsx(Np,{scope:t,forceMount:r,children:u.jsx(Ne,{present:r||a.open,children:u.jsx(ht,{asChild:!0,container:o,children:n})})})};Js.displayName=mn;var it="PopoverContent",Qs=l.forwardRef((e,t)=>{const r=_p(it,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Le(it,e.__scopePopover);return u.jsx(Ne,{present:n||a.open,children:a.modal?u.jsx(Ap,{...o,ref:t}):u.jsx(Tp,{...o,ref:t})})});Qs.displayName=it;var Pp=Ve("PopoverContent.RemoveScroll"),Ap=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(null),o=ae(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Ir(s)},[]),u.jsx(zt,{as:Pp,allowPinchZoom:!0,children:u.jsx(ei,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:W(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Tp=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ei=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,g=Le(it,r),h=St(r);return _r(),u.jsx(Mt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(mt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(en,{"data-state":ri(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ti="PopoverClose",jp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(ti,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});jp.displayName=ti;var Op="PopoverArrow",Ip=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=St(r);return u.jsx(tn,{...o,...n,ref:t})});Ip.displayName=Op;function ri(e){return e?"open":"closed"}var Mp=Ys,Dp=Zs,Lp=Js,$p=Qs;function Fp({...e}){return u.jsx(Mp,{"data-slot":"popover",...e})}function Vp({...e}){return u.jsx(Dp,{"data-slot":"popover-trigger",...e})}function zp({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(Lp,{children:u.jsx($p,{"data-slot":"popover-content",align:t,sideOffset:r,className:O("bg-white text-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var ni=1,Bp=.9,Wp=.8,Hp=.17,hn=.1,gn=.999,Gp=.9999,Up=.99,Kp=/[\\\/_+.#"@\[\(\{&]/,Yp=/[\\\/_+.#"@\[\(\{&]/g,qp=/[\s-]/,oi=/[\s-]/g;function vn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?ni:Up;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),f=0,p,g,h,v;d>=0;)p=vn(e,t,r,n,d+1,a+1,s),p>f&&(d===o?p*=ni:Kp.test(e.charAt(d-1))?(p*=Wp,h=e.slice(o,d-1).match(Yp),h&&o>0&&(p*=Math.pow(gn,h.length))):qp.test(e.charAt(d-1))?(p*=Bp,v=e.slice(o,d-1).match(oi),v&&o>0&&(p*=Math.pow(gn,v.length))):(p*=Hp,o>0&&(p*=Math.pow(gn,d-o))),e.charAt(d)!==t.charAt(a)&&(p*=Gp)),(p<hn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=vn(e,t,r,n,d+1,a+2,s),g*hn>p&&(p=g*hn)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[i]=f,f}function ai(e){return e.toLowerCase().replace(oi," ")}function Xp(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,vn(e,t,ai(e),ai(t),0,0,{})}var Ct='[cmdk-group=""]',xn='[cmdk-group-items=""]',Zp='[cmdk-group-heading=""]',si='[cmdk-item=""]',ii=`${si}:not([aria-disabled="true"])`,bn="cmdk-item-select",lt="data-value",Jp=(e,t,r)=>Xp(e,t,r),li=l.createContext(void 0),Et=()=>l.useContext(li),ci=l.createContext(void 0),yn=()=>l.useContext(ci),ui=l.createContext(void 0),di=l.forwardRef((e,t)=>{let r=ct(()=>{var S,T;return{search:"",value:(T=(S=e.value)!=null?S:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=fi(e),{label:c,children:d,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=ue(),w=ue(),C=ue(),k=l.useRef(null),A=cm();Ue(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,R.emit()}},[f]),Ue(()=>{A(6,ee)},[]);let R=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,T,D)=>{var j,Y,P,$;if(!Object.is(r.current[S],T)){if(r.current[S]=T,S==="search")Q(),K(),A(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(j=document.getElementById(b))==null||j.focus()}if(A(7,()=>{var U;r.current.selectedItemId=(U=B())==null?void 0:U.id,R.emit()}),D||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=T??"";($=(P=i.current).onValueChange)==null||$.call(P,U);return}}R.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),N=l.useMemo(()=>({value:(S,T,D)=>{var j;T!==((j=a.current.get(S))==null?void 0:j.value)&&(a.current.set(S,{value:T,keywords:D}),r.current.filtered.items.set(S,H(T,D)),A(2,()=>{K(),R.emit()}))},item:(S,T)=>(n.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),A(3,()=>{Q(),K(),r.current.value||X(),R.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let D=B();A(4,()=>{Q(),(D==null?void 0:D.getAttribute("id"))===S&&X(),R.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:b,inputId:C,labelId:w,listInnerRef:k}),[]);function H(S,T){var D,j;let Y=(j=(D=i.current)==null?void 0:D.filter)!=null?j:Jp;return S?Y(S,r.current.search,T):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,T=[];r.current.filtered.groups.forEach(j=>{let Y=o.current.get(j),P=0;Y.forEach($=>{let U=S.get($);P=Math.max(U,P)}),T.push([j,P])});let D=k.current;q().sort((j,Y)=>{var P,$;let U=j.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-(($=S.get(U))!=null?$:0)}).forEach(j=>{let Y=j.closest(xn);Y?Y.appendChild(j.parentElement===Y?j:j.closest(`${xn} > *`)):D.appendChild(j.parentElement===D?j:j.closest(`${xn} > *`))}),T.sort((j,Y)=>Y[1]-j[1]).forEach(j=>{var Y;let P=(Y=k.current)==null?void 0:Y.querySelector(`${Ct}[${lt}="${encodeURIComponent(j[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(D=>D.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);R.setState("value",T||void 0)}function Q(){var S,T,D,j;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let $=(T=(S=a.current.get(P))==null?void 0:S.value)!=null?T:"",U=(j=(D=a.current.get(P))==null?void 0:D.keywords)!=null?j:[],Z=H($,U);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,$]of o.current)for(let U of $)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,T,D;let j=B();j&&(((S=j.parentElement)==null?void 0:S.firstChild)===j&&((D=(T=j.closest(Ct))==null?void 0:T.querySelector(Zp))==null||D.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function B(){var S;return(S=k.current)==null?void 0:S.querySelector(`${si}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(ii))||[])}function L(S){let T=q()[S];T&&R.setState("value",T.getAttribute(lt))}function G(S){var T;let D=B(),j=q(),Y=j.findIndex($=>$===D),P=j[Y+S];(T=i.current)!=null&&T.loop&&(P=Y+S<0?j[j.length-1]:Y+S===j.length?j[0]:j[Y+S]),P&&R.setState("value",P.getAttribute(lt))}function _(S){let T=B(),D=T==null?void 0:T.closest(Ct),j;for(;D&&!j;)D=S>0?im(D,Ct):lm(D,Ct),j=D==null?void 0:D.querySelector(ii);j?R.setState("value",j.getAttribute(lt)):G(S)}let re=()=>L(q().length-1),E=S=>{S.preventDefault(),S.metaKey?re():S.altKey?_(1):G(1)},V=S=>{S.preventDefault(),S.metaKey?L(0):S.altKey?_(-1):G(-1)};return l.createElement(z.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var T;(T=y.onKeyDown)==null||T.call(y,S);let D=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||D))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&E(S);break}case"ArrowDown":{E(S);break}case"p":case"k":{x&&S.ctrlKey&&V(S);break}case"ArrowUp":{V(S);break}case"Home":{S.preventDefault(),L(0);break}case"End":{S.preventDefault(),re();break}case"Enter":{S.preventDefault();let j=B();if(j){let Y=new Event(bn);j.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:dm},c),ur(e,S=>l.createElement(ci.Provider,{value:R},l.createElement(li.Provider,{value:N},S))))}),Qp=l.forwardRef((e,t)=>{var r,n;let o=ue(),a=l.useRef(null),s=l.useContext(ui),i=Et(),c=fi(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ue(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=pi(o,a,[e.value,e.children,a],e.keywords),p=yn(),g=$e(A=>A.value&&A.value===f.current),h=$e(A=>d||i.filter()===!1?!0:A.search?A.filtered.items.get(o)>0:!0);l.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(bn,v),()=>A.removeEventListener(bn,v)},[h,e.onSelect,e.disabled]);function v(){var A,R;m(),(R=(A=c.current).onSelect)==null||R.call(A,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:C,...k}=e;return l.createElement(z.div,{ref:Fe(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),em=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ue(),i=l.useRef(null),c=l.useRef(null),d=ue(),f=Et(),p=$e(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>f.group(s),[]),pi(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(z.div,{ref:Fe(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),ur(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(ui.Provider,{value:g},h))))}),tm=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=$e(s=>!s.search);return!r&&!a?null:l.createElement(z.div,{ref:Fe(o,t),...n,"cmdk-separator":"",role:"separator"})}),rm=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=yn(),s=$e(d=>d.search),i=$e(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(z.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),nm=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=$e(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(p),g.unobserve(d)}}},[]),l.createElement(z.div,{ref:Fe(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},ur(e,d=>l.createElement("div",{ref:Fe(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),om=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(ha,{open:r,onOpenChange:n},l.createElement(ga,{container:s},l.createElement(va,{"cmdk-overlay":"",className:o}),l.createElement(xa,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(di,{ref:t,...i}))))}),am=l.forwardRef((e,t)=>$e(r=>r.filtered.count===0)?l.createElement(z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),sm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ur(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),kt=Object.assign(di,{List:nm,Item:Qp,Input:rm,Group:em,Separator:tm,Dialog:om,Empty:am,Loading:sm});function im(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function lm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function fi(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ct(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function $e(e){let t=yn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function pi(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ue(()=>{var s;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var cm=()=>{let[e,t]=l.useState(),r=ct(()=>new Map);return Ue(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function um(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ur({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(um(t),{ref:t.ref},r(t.props.children)):r(t)}var dm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function fm({className:e,...t}){return u.jsx(kt,{"data-slot":"command",className:O("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function pm({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Sa,{className:"size-4 shrink-0 opacity-50"}),u.jsx(kt.Input,{"data-slot":"command-input",className:O("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function mm({...e}){return u.jsx(kt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function mi({className:e,...t}){return u.jsx(kt.Group,{"data-slot":"command-group",className:O("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function hi({className:e,...t}){return u.jsx(kt.Item,{"data-slot":"command-item",className:O("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function wn(e){return e.length>0&&e[0].kind==="group"}function hm(e){return e.multiple?u.jsx(vi,{...e}):u.jsx(gi,{...e})}const gi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),d=a??i,f=p=>{c(p),s==null||s(p)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(vp,{value:d,onValueChange:f,disabled:r,children:[u.jsx(yp,{"aria-invalid":!!n,className:O("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(bp,{placeholder:t})}),u.jsx(wp,{className:"w-full bg-white border border-neutral-black-4",children:wn(e)?e.map(p=>u.jsxs(xp,{className:"p-2",children:[u.jsx(Sp,{children:p.label}),p.options.map(g=>u.jsx(Us,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>u.jsx(Us,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},vi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[d,f]=te.useState([]),p=a??d,g=te.useMemo(()=>wn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(x=>x!==v):[...p,v];f(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Fp,{open:i,onOpenChange:c,children:[u.jsx(Vp,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:O("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>u.jsxs(Fr,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Ea,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx($r,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(zp,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(fm,{className:"w-full",children:[u.jsx(pm,{placeholder:"Search..."}),u.jsx(mm,{children:"No results found."}),wn(e)?e.map(v=>u.jsx(mi,{heading:v.label,children:v.options.map(m=>u.jsxs(hi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(mi,{children:g.map(v=>u.jsxs(hi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},gm=ce("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function vm({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?At:"div";return u.jsx(a,{"data-slot":"card",className:O(gm({variant:t}),e),...o,children:n})}var Sn={exports:{}},Cn={};/**
|
|
162
177
|
* @license React
|
|
163
178
|
* use-sync-external-store-shim.production.js
|
|
164
179
|
*
|
|
@@ -166,7 +181,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
166
181
|
*
|
|
167
182
|
* This source code is licensed under the MIT license found in the
|
|
168
183
|
* LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/var xi;function
|
|
184
|
+
*/var xi;function xm(){if(xi)return Cn;xi=1;var e=te;function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(p,g){var h=g(),v=n({inst:{value:h,getSnapshot:g}}),m=v[0].inst,x=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&x({inst:m})},[p,h,g]),o(function(){return c(m)&&x({inst:m}),p(function(){c(m)&&x({inst:m})})},[p]),s(h),h}function c(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!r(p,h)}catch{return!0}}function d(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return Cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Cn}var En={};/**
|
|
170
185
|
* @license React
|
|
171
186
|
* use-sync-external-store-shim.development.js
|
|
172
187
|
*
|
|
@@ -174,4 +189,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
174
189
|
*
|
|
175
190
|
* This source code is licensed under the MIT license found in the
|
|
176
191
|
* LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/var bi;function gm(){return bi||(bi=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!p){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}x=s({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,r(y)&&b({inst:y})},[h,m,v]),i(function(){return r(y)&&b({inst:y}),h(function(){r(y)&&b({inst:y})})},[h]),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,gh]=xe(kn),[wm,yi]=ym(kn),wi=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})})});wi.displayName=kn;var Si="AvatarImage",Ci=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=yi(Si,r),i=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});Ci.displayName=Si;var Ei="AvatarFallback",ki=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=yi(Ei,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?d.jsx(V.span,{...o,ref:t}):null});ki.displayName=Ei;function Ri(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function 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(()=>Ri(a,e));return ie(()=>{i(Ri(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=wi,_i=Ci,ur=ki;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(_i,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(ur,{children:d.jsx(Ca,{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(Ca,{"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(_i,{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",Pi="horizontal",Om=["horizontal","vertical"],Ni=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Pi,...o}=e,a=Im(n)?n:Pi,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})});Ni.displayName=Tm;function Im(e){return Om.includes(e)}var jm=Ni;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)),Ai=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}})})});Ai.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})}function Hm({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return d.jsx("main",{className:F("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:d.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[d.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:d.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),d.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[d.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",d.jsx("span",{className:"text-primary-1",children:"4"})]}),d.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[d.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),d.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),d.jsx("a",{href:o,children:d.jsx(Xn,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}G.Avatar=Pm,G.AvatarFallback=Am,G.AvatarImage=Nm,G.Badge=$r,G.Button=Xn,G.Card=mm,G.Dialog=Nu,G.DialogClose=Tu,G.DialogContent=Ou,G.DialogDescription=Du,G.DialogFooter=ju,G.DialogHeader=Iu,G.DialogOverlay=Ra,G.DialogPortal=ka,G.DialogTitle=Mu,G.DialogTrigger=Au,G.Divider=Mm,G.EmailInput=Af,G.MultiSelect=vi,G.Page404=Hm,G.PasswordInput=Tf,G.Placeholder=zm,G.ProgressIndicator=Ai,G.RadioGroup=Po,G.RadioGroupItem=No,G.SearchInput=Of,G.SelectOption=fm,G.SingleSelect=gi,G.Skeleton=Wm,G.StatefulToggle=no,G.Timeline=Vm,G.Toggle=ro,G.Tooltip=Rf,G.TooltipContent=Pf,G.TooltipProvider=gs,G.TooltipTrigger=_f,G.cn=F,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
192
|
+
*/var bi;function bm(){return bi||(bi=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!p){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}x=s({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,r(y)&&b({inst:y})},[h,m,v]),i(function(){return r(y)&&b({inst:y}),h(function(){r(y)&&b({inst:y})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=te,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;En.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),En}process.env.NODE_ENV==="production"?Sn.exports=xm():Sn.exports=bm();var ym=Sn.exports;function wm(){return ym.useSyncExternalStore(Sm,()=>!0,()=>!1)}function Sm(){return()=>{}}var kn="Avatar",[Cm,Ih]=xe(kn),[Em,yi]=Cm(kn),wi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(Em,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(z.span,{...n,ref:t})})});wi.displayName=kn;var Si="AvatarImage",Ci=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=yi(Si,r),i=km(n,a),c=Re(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(z.img,{...a,ref:t,src:n}):null});Ci.displayName=Si;var Ei="AvatarFallback",ki=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=yi(Ei,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(z.span,{...o,ref:t}):null});ki.displayName=Ei;function Ri(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function km(e,{referrerPolicy:t,crossOrigin:r}){const n=wm(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Ri(a,e));return ie(()=>{i(Ri(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,r,t]),s}var Rm=wi,Ni=Ci,dr=ki;const Nm=ce("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),_m=ce("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),Pm=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),Am=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function Tm(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(Rm,{className:O(Nm({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Ni,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(dr,{children:u.jsx(Ca,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(dr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(dr,{children:u.jsx(Ca,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:_m({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:Pm({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:Am({size:r}),children:u.jsx(xu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function jm({className:e,...t}){return u.jsx(Ni,{className:O("aspect-square h-full w-full",e),...t})}function Om({className:e,...t}){return u.jsx(dr,{className:O("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Im="Separator",_i="horizontal",Mm=["horizontal","vertical"],Pi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=_i,...o}=e,a=Dm(n)?n:_i,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(z.div,{"data-orientation":a,...i,...o,ref:t})});Pi.displayName=Im;function Dm(e){return Mm.includes(e)}var Lm=Pi;function $m({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(Lm,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:O("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Fm=ce("flex flex-col gap-12"),Vm=ce("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),zm=ce("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),Bm=(e,t)=>e&&!t;function Wm({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:O(Fm(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=Bm(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:O(Vm({variant:t,visited:!f})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:O("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:O(zm({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:O("text-[var(--color-neutral-black-1)] text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const Hm=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(_u,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(Tu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(bu,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(Au,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:O("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},Gm=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Ai=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Gm(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,f=2*Math.PI*d,p=f-s/100*f;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:O("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:O("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Ai.displayName="ProgressIndicator";function Um({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:O("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function Km({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:O("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(Xn,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function Ym({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function qm({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:O("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function Xm({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:O("inline-flex items-center gap-1.5",e),...t})}function Zm({asChild:e,className:t,...r}){const n=e?At:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:O("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function Jm({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:O("text-neutral-black-2 cursor-default",e),...t})}function Qm({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:O("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(wu,{})})}function eh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:O("flex size-9 items-center justify-center",e),...t,children:[u.jsx(ku,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const th=ce("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),rh=ce("flex items-center gap-3");function nh({className:e,children:t,...r}){return u.jsx("nav",{className:O(th(),e),...r,children:t})}function oh({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:O(rh(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(Pu,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function ah({children:e,className:t}){return u.jsx("div",{className:O("flex items-center gap-2",t),children:e})}F.Avatar=Tm,F.AvatarFallback=Om,F.AvatarImage=jm,F.Badge=Fr,F.Breadcrumb=Ym,F.BreadcrumbEllipsis=eh,F.BreadcrumbItem=Xm,F.BreadcrumbLink=Zm,F.BreadcrumbList=qm,F.BreadcrumbPage=Jm,F.BreadcrumbSeparator=Qm,F.Button=Xn,F.Card=vm,F.Dialog=ju,F.DialogClose=Iu,F.DialogContent=Mu,F.DialogDescription=Fu,F.DialogFooter=Lu,F.DialogHeader=Du,F.DialogOverlay=Ra,F.DialogPortal=ka,F.DialogTitle=$u,F.DialogTrigger=Ou,F.Divider=$m,F.EmailInput=Of,F.MultiSelect=vi,F.Navigation=nh,F.NavigationEnd=ah,F.NavigationStart=oh,F.Page404=Km,F.PasswordInput=If,F.Placeholder=Hm,F.ProgressIndicator=Ai,F.RadioGroup=_o,F.RadioGroupItem=Po,F.SearchInput=Mf,F.SelectOption=hm,F.SingleSelect=gi,F.Skeleton=Um,F.StatefulToggle=no,F.Timeline=Wm,F.Toggle=ro,F.Tooltip=Pf,F.TooltipContent=Tf,F.TooltipProvider=gs,F.TooltipTrigger=Af,F.cn=O,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
|