@infinityloop.labs/ui-kit 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react"),require("@infinityloop.labs/utils"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@infinityloop.labs/utils","react-dom"],P):(R=typeof globalThis<"u"?globalThis:R||self,P((R["@infinityloop"]=R["@infinityloop"]||{},R["@infinityloop"]["labs/ui-kit"]={}),R.React,R["@infinityloop"]["labs/utils"]))})(this,function(R,P,ce){"use strict";function vt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=vt(P),Hr="";var be={exports:{}},re={};/**
1
+ (function(K,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("@infinityloop.labs/utils"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@infinityloop.labs/utils","react-dom"],V):(K=typeof globalThis<"u"?globalThis:K||self,V((K["@infinityloop"]=K["@infinityloop"]||{},K["@infinityloop"]["labs/ui-kit"]={}),K.React,K["@infinityloop"]["labs/utils"],K.ReactDOM))})(this,function(K,V,wt,Zn){"use strict";function Jn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=Jn(V),St=Jn(Zn),Xf="";var Zt={exports:{}},it={};/**
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 Oe;function xt(){if(Oe)return re;Oe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,n,a){var i=null;if(a!==void 0&&(i=""+a),n.key!==void 0&&(i=""+n.key),"key"in n){a={};for(var l in n)l!=="key"&&(a[l]=n[l])}else a=n;return n=a.ref,{$$typeof:e,type:o,key:i,ref:n!==void 0?n:null,props:a}}return re.Fragment=t,re.jsx=r,re.jsxs=r,re}var oe={};/**
9
+ */var Qn;function Js(){if(Qn)return it;Qn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return it.Fragment=t,it.jsx=n,it.jsxs=n,it}var at={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,42 +14,62 @@
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 Pe;function yt(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===pe?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case T:return"Fragment";case I:return"Profiler";case j:return"StrictMode";case G:return"Suspense";case K:return"SuspenseList";case me:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case k:return"Portal";case W:return s.displayName||"Context";case J:return(s._context.displayName||"Context")+".Consumer";case U:var h=s.render;return s=s.displayName,s||(s=h.displayName||h.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case g:return h=s.displayName||null,h!==null?h:e(s.type)||"Memo";case N:h=s._payload,s=s._init;try{return e(s(h))}catch{}}return null}function t(s){return""+s}function r(s){try{t(s);var h=!1}catch{h=!0}if(h){h=console;var S=h.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return S.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),t(s)}}function o(s){if(s===T)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===N)return"<...>";try{var h=e(s);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function n(){var s=H.A;return s===null?null:s.getOwner()}function a(){return Error("react-stack-top-frame")}function i(s){if(ae.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function l(s,h){function S(){L||(L=!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)",h))}S.isReactWarning=!0,Object.defineProperty(s,"key",{get:S,configurable:!0})}function c(){var s=e(this.type);return $[s]||($[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function f(s,h,S,A,V,ee){var _=S.ref;return s={$$typeof:b,type:s,key:h,props:S,_owner:A},(_!==void 0?_:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:c}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function v(s,h,S,A,V,ee){var _=h.children;if(_!==void 0)if(A)if(se(_)){for(A=0;A<_.length;A++)p(_[A]);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(ae.call(h,"key")){_=e(s);var F=Object.keys(h).filter(function(te){return te!=="key"});A=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",le[_+A]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var er;function Qs(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===I?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case b:return"Fragment";case x:return"Profiler";case y:return"StrictMode";case N:return"Suspense";case A:return"SuspenseList";case B:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case p:return"Portal";case C:return S.displayName||"Context";case w:return(S._context.displayName||"Context")+".Consumer";case E:var L=S.render;return S=S.displayName,S||(S=L.displayName||L.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case k:return L=S.displayName||null,L!==null?L:e(S.type)||"Memo";case $:L=S._payload,S=S._init;try{return e(S(L))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var L=!1}catch{L=!0}if(L){L=console;var F=L.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return F.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),t(S)}}function r(S){if(S===b)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===$)return"<...>";try{var L=e(S);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var S=D.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function i(S){if(W.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function a(S,L){function F(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}F.isReactWarning=!0,Object.defineProperty(S,"key",{get:F,configurable:!0})}function l(){var S=e(this.type);return j[S]||(j[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function u(S,L,F,z,de,fe){var P=F.ref;return S={$$typeof:v,type:S,key:L,props:F,_owner:z},(P!==void 0?P:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function f(S,L,F,z,de,fe){var P=L.children;if(P!==void 0)if(z)if(H(P)){for(z=0;z<P.length;z++)d(P[z]);Object.freeze&&Object.freeze(P)}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 d(P);if(W.call(L,"key")){P=e(S);var Y=Object.keys(L).filter(function(X){return X!=="key"});z=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",se[P+z]||(Y=0<Y.length?"{"+Y.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} />`,A,_,F,_),le[_+A]=!0)}if(_=null,S!==void 0&&(r(S),_=""+S),i(h)&&(r(h.key),_=""+h.key),"key"in h){S={};for(var Y in h)Y!=="key"&&(S[Y]=h[Y])}else S=h;return _&&l(S,typeof s=="function"?s.displayName||s.name||"Unknown":s),f(s,_,S,n(),V,ee)}function p(s){w(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===N&&(s._payload.status==="fulfilled"?w(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function w(s){return typeof s=="object"&&s!==null&&s.$$typeof===b}var x=P,b=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),W=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),H=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,se=Array.isArray,M=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(s){return s()}};var L,$={},m=x.react_stack_bottom_frame.bind(x,a)(),ie=M(o(a)),le={};oe.Fragment=T,oe.jsx=function(s,h,S){var A=1e4>H.recentlyCreatedOwnerStacks++;return v(s,h,S,!1,A?Error("react-stack-top-frame"):m,A?M(o(s)):ie)},oe.jsxs=function(s,h,S){var A=1e4>H.recentlyCreatedOwnerStacks++;return v(s,h,S,!0,A?Error("react-stack-top-frame"):m,A?M(o(s)):ie)}}()),oe}process.env.NODE_ENV==="production"?be.exports=xt():be.exports=yt();var C=be.exports;const Ne={"flex-start":"items-start","flex-end":"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},Le={"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},he=P.forwardRef(({children:e,className:t="",column:r,middle:o,...n},a)=>C.jsx("div",{ref:a,className:ce.clsx("flex",r&&"flex-col",n["justify-content"]&&Le[n["justify-content"]],n["align-items"]&&Ne[n["align-items"]],o&&`${Ne.center} ${Le.center}`,t),...n,children:e}));he.displayName="Flex";const wt={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},ze=P.forwardRef(({children:e,className:t="",column:r=2,...o},n)=>C.jsx("div",{ref:n,className:ce.clsx("grid",wt[r],t),...o,children:e}));ze.displayName="Grid";const kt={H1SemiBold:"text-24 leading-140 font-600",H2SemiBold:"text-20 leading-140 font-600",H3Medium:"text-18 leading-148 font-500",H3SemiBold:"text-18 leading-148 font-600",H4SemiBold:"text-16 leading-148 font-600",MRegular:"text-16 leading-148 font-400",MMedium:"text-16 leading-148 font-500",MSemiBold:"text-16 leading-148 font-600",SRegular:"text-14 leading-148 font-400",SMedium:"text-14 leading-148 font-500",SSemiBold:"text-14 leading-148 font-600",XSMedium:"text-12 leading-130 font-500",MonoMRegular:"font-mono text-16 leading-140 font-400",MonoSRegular:"font-mono text-14 leading-140 font-400",Heading32:"text-32 leading-40 font-600",Heading24:"text-24 leading-30 font-600",Heading20:"text-20 leading-28 font-600",Heading16:"text-16 leading-24 font-600",Heading14:"text-14 leading-16 font-600",Heading12:"text-12 leading-16 font-600",SemiBold52:"text-52 leading-64 font-600",SemiBold48:"text-48 leading-60 font-600",SemiBold40:"text-40 leading-48 font-600",SemiBold32:"text-32 leading-40 font-600",SemiBold24:"text-24 leading-32 font-600",SemiBold20:"text-20 leading-28 font-600",SemiBold16:"text-16 leading-24 font-600",SemiBold14:"text-14 leading-20 font-600",Regular24:"text-24 leading-30 font-400",Regular20:"text-20 leading-26 font-400",Regular16:"text-16 leading-24 font-400",Regular14:"text-14 leading-20 font-400",Regular12:"text-12 leading-16 font-400",Mono16:"font-mono text-16 leading-24 font-400"},Ie=({typography:e,element:t="span",className:r="",children:o,...n})=>{const a=ce.clsx("font-infinityloop",kt[e],r);return P.createElement(t,{className:a,...n},o)};Ie.displayName="Typography";const St=({children:e,className:t,color:r="white"})=>C.jsx(he,{className:ce.clsx("rounded-3",{"bg-content-constant":r==="white","bg-content-secondary":r==="gray"},t),children:e});function Me(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _t(...e){return t=>{let r=!1;const o=e.map(n=>{const a=Me(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():Me(e[n],null)}}}}var Et=Symbol.for("react.lazy"),de=E[" use ".trim().toString()];function At(e){return typeof e=="object"&&e!==null&&"then"in e}function $e(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Et&&"_payload"in e&&At(e._payload)}function Be(e){const t=Rt(e),r=E.forwardRef((o,n)=>{let{children:a,...i}=o;$e(a)&&typeof de=="function"&&(a=de(a._payload));const l=E.Children.toArray(a),c=l.find(Tt);if(c){const f=c.props.children,v=l.map(p=>p===c?E.Children.count(f)>1?E.Children.only(null):E.isValidElement(f)?f.props.children:null:p);return C.jsx(t,{...i,ref:n,children:E.isValidElement(f)?E.cloneElement(f,void 0,v):null})}return C.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}var Ge=Be("Slot");function Rt(e){const t=E.forwardRef((r,o)=>{let{children:n,...a}=r;if($e(n)&&typeof de=="function"&&(n=de(n._payload)),E.isValidElement(n)){const i=Ot(n),l=jt(a,n.props);return n.type!==E.Fragment&&(l.ref=o?_t(o,i):i),E.cloneElement(n,l)}return E.Children.count(n)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ct=Symbol("radix.slottable");function Tt(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ct}function jt(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function Ot(e){var o,n;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Ve(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Ve(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Fe(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Ve(e))&&(o&&(o+=" "),o+=t);return o}const De=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,We=Fe,Pt=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return We(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(f=>{const v=r==null?void 0:r[f],p=a==null?void 0:a[f];if(v===null)return null;const w=De(v)||De(p);return n[f][w]}),l=r&&Object.entries(r).reduce((f,v)=>{let[p,w]=v;return w===void 0||(f[p]=w),f},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,v)=>{let{class:p,className:w,...x}=v;return Object.entries(x).every(b=>{let[k,T]=b;return Array.isArray(T)?T.includes({...a,...l}[k]):{...a,...l}[k]===T})?[...f,p,w]:f},[]);return We(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},ve="-",Nt=e=>{const t=zt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(ve);return l[0]===""&&l.length!==1&&l.shift(),Ue(l,t)||Lt(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},Ue=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?Ue(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(ve);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},He=/^\[(.+)\]$/,Lt=e=>{if(He.test(e)){const t=He.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zt=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)xe(r[n],o,n,t);return o},xe=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Ye(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(It(n)){xe(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{xe(i,Ye(t,a),r,o)})})},Ye=(e,t)=>{let r=e;return t.split(ve).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},It=e=>e.isThemeGetter,Mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},ye="!",we=":",$t=we.length,Bt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,l=0,c=0,f;for(let b=0;b<n.length;b++){let k=n[b];if(i===0&&l===0){if(k===we){a.push(n.slice(c,b)),c=b+$t;continue}if(k==="/"){f=b;continue}}k==="["?i++:k==="]"?i--:k==="("?l++:k===")"&&l--}const v=a.length===0?n:n.substring(c),p=Gt(v),w=p!==v,x=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:w,baseClassName:p,maybePostfixModifierPosition:x}};if(t){const n=t+we,a=o;o=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},Gt=e=>e.endsWith(ye)?e.substring(0,e.length-1):e.startsWith(ye)?e.substring(1):e,Vt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},Ft=e=>({cache:Mt(e.cacheSize),parseClassName:Bt(e),sortModifiers:Vt(e),...Nt(e)}),Dt=/\s+/,Wt=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],l=e.trim().split(Dt);let c="";for(let f=l.length-1;f>=0;f-=1){const v=l[f],{isExternal:p,modifiers:w,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:k}=r(v);if(p){c=v+(c.length>0?" "+c:c);continue}let T=!!k,j=o(T?b.substring(0,k):b);if(!j){if(!T){c=v+(c.length>0?" "+c:c);continue}if(j=o(b),!j){c=v+(c.length>0?" "+c:c);continue}T=!1}const I=a(w).join(":"),J=x?I+ye:I,W=J+j;if(i.includes(W))continue;i.push(W);const U=n(j,T);for(let G=0;G<U.length;++G){const K=U[G];i.push(J+K)}c=v+(c.length>0?" "+c:c)}return c};function Ut(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=qe(t))&&(o&&(o+=" "),o+=r);return o}const qe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=qe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ht(e,...t){let r,o,n,a=i;function i(c){const f=t.reduce((v,p)=>p(v),e());return r=Ft(f),o=r.cache.get,n=r.cache.set,a=l,l(c)}function l(c){const f=o(c);if(f)return f;const v=Wt(c,r);return n(c,v),v}return function(){return a(Ut.apply(null,arguments))}}const O=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ke=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yt=/^\d+\/\d+$/,qt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jt=/\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$/,Kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>Yt.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),ke=e=>e.endsWith("%")&&y(e.slice(0,-1)),B=e=>qt.test(e),Qt=()=>!0,er=e=>Jt.test(e)&&!Kt.test(e),Xe=()=>!1,tr=e=>Xt.test(e),rr=e=>Zt.test(e),or=e=>!d(e)&&!u(e),nr=e=>Z(e,rt,Xe),d=e=>Je.test(e),q=e=>Z(e,ot,er),Se=e=>Z(e,cr,y),Ze=e=>Z(e,et,Xe),ar=e=>Z(e,tt,rr),ue=e=>Z(e,nt,tr),u=e=>Ke.test(e),ne=e=>Q(e,ot),sr=e=>Q(e,dr),Qe=e=>Q(e,et),ir=e=>Q(e,rt),lr=e=>Q(e,tt),fe=e=>Q(e,nt,!0),Z=(e,t,r)=>{const o=Je.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Q=(e,t,r=!1)=>{const o=Ke.exec(e);return o?o[1]?t(o[1]):r:!1},et=e=>e==="position"||e==="percentage",tt=e=>e==="image"||e==="url",rt=e=>e==="length"||e==="size"||e==="bg-size",ot=e=>e==="length",cr=e=>e==="number",dr=e=>e==="family-name",nt=e=>e==="shadow",ur=Ht(()=>{const e=O("color"),t=O("font"),r=O("text"),o=O("font-weight"),n=O("tracking"),a=O("leading"),i=O("breakpoint"),l=O("container"),c=O("spacing"),f=O("radius"),v=O("shadow"),p=O("inset-shadow"),w=O("text-shadow"),x=O("drop-shadow"),b=O("blur"),k=O("perspective"),T=O("aspect"),j=O("ease"),I=O("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...W(),u,d],G=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],g=()=>[u,d,c],N=()=>[X,"full","auto",...g()],me=()=>[D,"none","subgrid",u,d],pe=()=>["auto",{span:["full",D,u,d]},D,u,d],H=()=>[D,"auto",u,d],ae=()=>["auto","min","max","fr",u,d],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...g()],$=()=>[X,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],m=()=>[e,u,d],ie=()=>[...W(),Qe,Ze,{position:[u,d]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],s=()=>["auto","cover","contain",ir,nr,{size:[u,d]}],h=()=>[ke,ne,q],S=()=>["","none","full",f,u,d],A=()=>["",y,ne,q],V=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[y,ke,Qe,Ze],F=()=>["","none",b,u,d],Y=()=>["none",y,u,d],te=()=>["none",y,u,d],je=()=>[y,u,d],ge=()=>[X,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[B],breakpoint:[B],color:[Qt],container:[B],"drop-shadow":[B],ease:["in","out","in-out"],font:[or],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[B],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[B],shadow:[B],spacing:["px",y],text:[B],"text-shadow":[B],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",X,d,u,T]}],container:["container"],columns:[{columns:[y,d,u,l]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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:U()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",u,d]}],basis:[{basis:[X,"full","auto",l,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,X,"auto","initial","none",d]}],grow:[{grow:["",y,u,d]}],shrink:[{shrink:["",y,u,d]}],order:[{order:[D,"first","last","none",u,d]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],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":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,ne,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u,Se]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ke,d]}],"font-family":[{font:[sr,d,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:[n,u,d]}],"line-clamp":[{"line-clamp":[y,"none",u,Se]}],leading:[{leading:[a,...g()]}],"list-image":[{"list-image":["none",u,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:m()}],"text-color":[{text:m()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",u,q]}],"text-decoration-color":[{decoration:m()}],"underline-offset":[{"underline-offset":[y,"auto",u,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,d]}],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",u,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:s()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,u,d],radial:["",u,d],conic:[D,u,d]},lr,ar]}],"bg-color":[{bg:m()}],"gradient-from-pos":[{from:h()}],"gradient-via-pos":[{via:h()}],"gradient-to-pos":[{to:h()}],"gradient-from":[{from:m()}],"gradient-via":[{via:m()}],"gradient-to":[{to:m()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:m()}],"border-color-x":[{"border-x":m()}],"border-color-y":[{"border-y":m()}],"border-color-s":[{"border-s":m()}],"border-color-e":[{"border-e":m()}],"border-color-t":[{"border-t":m()}],"border-color-r":[{"border-r":m()}],"border-color-b":[{"border-b":m()}],"border-color-l":[{"border-l":m()}],"divide-color":[{divide:m()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,u,d]}],"outline-w":[{outline:["",y,ne,q]}],"outline-color":[{outline:m()}],shadow:[{shadow:["","none",v,fe,ue]}],"shadow-color":[{shadow:m()}],"inset-shadow":[{"inset-shadow":["none",p,fe,ue]}],"inset-shadow-color":[{"inset-shadow":m()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:m()}],"ring-offset-w":[{"ring-offset":[y,q]}],"ring-offset-color":[{"ring-offset":m()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":m()}],"text-shadow":[{"text-shadow":["none",w,fe,ue]}],"text-shadow-color":[{"text-shadow":m()}],opacity:[{opacity:[y,u,d]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":m()}],"mask-image-linear-to-color":[{"mask-linear-to":m()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":m()}],"mask-image-t-to-color":[{"mask-t-to":m()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":m()}],"mask-image-r-to-color":[{"mask-r-to":m()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":m()}],"mask-image-b-to-color":[{"mask-b-to":m()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":m()}],"mask-image-l-to-color":[{"mask-l-to":m()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":m()}],"mask-image-x-to-color":[{"mask-x-to":m()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":m()}],"mask-image-y-to-color":[{"mask-y-to":m()}],"mask-image-radial":[{"mask-radial":[u,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":m()}],"mask-image-radial-to-color":[{"mask-radial-to":m()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":m()}],"mask-image-conic-to-color":[{"mask-conic-to":m()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:s()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,d]}],filter:[{filter:["","none",u,d]}],blur:[{blur:F()}],brightness:[{brightness:[y,u,d]}],contrast:[{contrast:[y,u,d]}],"drop-shadow":[{"drop-shadow":["","none",x,fe,ue]}],"drop-shadow-color":[{"drop-shadow":m()}],grayscale:[{grayscale:["",y,u,d]}],"hue-rotate":[{"hue-rotate":[y,u,d]}],invert:[{invert:["",y,u,d]}],saturate:[{saturate:[y,u,d]}],sepia:[{sepia:["",y,u,d]}],"backdrop-filter":[{"backdrop-filter":["","none",u,d]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[y,u,d]}],"backdrop-contrast":[{"backdrop-contrast":[y,u,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,u,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,u,d]}],"backdrop-invert":[{"backdrop-invert":["",y,u,d]}],"backdrop-opacity":[{"backdrop-opacity":[y,u,d]}],"backdrop-saturate":[{"backdrop-saturate":[y,u,d]}],"backdrop-sepia":[{"backdrop-sepia":["",y,u,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",u,d]}],ease:[{ease:["linear","initial",j,u,d]}],delay:[{delay:[y,u,d]}],animate:[{animate:["none",I,u,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,u,d]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[u,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:m()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:m()}],"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",u,d]}],"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":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"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",u,d]}],fill:[{fill:["none",...m()]}],"stroke-w":[{stroke:[y,ne,q,Se]}],stroke:[{stroke:["none",...m()]}],"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 z(...e){return ur(Fe(e))}const at=Pt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function fr({className:e,variant:t,size:r,asChild:o=!1,...n}){const a=o?Ge:"button";return C.jsx(a,{"data-slot":"button",className:z(at({variant:t,size:r,className:e})),...n})}function mr({className:e,type:t,...r}){return C.jsx("input",{type:t,"data-slot":"input",className:z("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}/**
22
+ <%s key={someKey} {...props} />`,z,P,Y,P),se[P+z]=!0)}if(P=null,F!==void 0&&(n(F),P=""+F),i(L)&&(n(L.key),P=""+L.key),"key"in L){F={};for(var te in L)te!=="key"&&(F[te]=L[te])}else F=L;return P&&a(F,typeof S=="function"?S.displayName||S.name||"Unknown":S),u(S,P,F,o(),de,fe)}function d(S){m(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===$&&(S._payload.status==="fulfilled"?m(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function m(S){return typeof S=="object"&&S!==null&&S.$$typeof===v}var h=V,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,H=Array.isArray,G=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(S){return S()}};var M,j={},_=h.react_stack_bottom_frame.bind(h,s)(),q=G(r(s)),se={};at.Fragment=b,at.jsx=function(S,L,F){var z=1e4>D.recentlyCreatedOwnerStacks++;return f(S,L,F,!1,z?Error("react-stack-top-frame"):_,z?G(r(S)):q)},at.jsxs=function(S,L,F){var z=1e4>D.recentlyCreatedOwnerStacks++;return f(S,L,F,!0,z?Error("react-stack-top-frame"):_,z?G(r(S)):q)}}()),at}process.env.NODE_ENV==="production"?Zt.exports=Js():Zt.exports=Qs();var g=Zt.exports;const tr={"flex-start":"items-start","flex-end":"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},nr={"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},Jt=V.forwardRef(({children:e,className:t="",column:n,middle:r,...o},s)=>g.jsx("div",{ref:s,className:wt.clsx("flex",n&&"flex-col",o["justify-content"]&&nr[o["justify-content"]],o["align-items"]&&tr[o["align-items"]],r&&`${tr.center} ${nr.center}`,t),...o,children:e}));Jt.displayName="Flex";const ei={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},rr=V.forwardRef(({children:e,className:t="",column:n=2,...r},o)=>g.jsx("div",{ref:o,className:wt.clsx("grid",ei[n],t),...r,children:e}));rr.displayName="Grid";const ti={H1SemiBold:"text-24 leading-140 font-600",H2SemiBold:"text-20 leading-140 font-600",H3Medium:"text-18 leading-148 font-500",H3SemiBold:"text-18 leading-148 font-600",H4SemiBold:"text-16 leading-148 font-600",MRegular:"text-16 leading-148 font-400",MMedium:"text-16 leading-148 font-500",MSemiBold:"text-16 leading-148 font-600",SRegular:"text-14 leading-148 font-400",SMedium:"text-14 leading-148 font-500",SSemiBold:"text-14 leading-148 font-600",XSMedium:"text-12 leading-130 font-500",MonoMRegular:"font-mono text-16 leading-140 font-400",MonoSRegular:"font-mono text-14 leading-140 font-400",Heading32:"text-32 leading-40 font-600",Heading24:"text-24 leading-30 font-600",Heading20:"text-20 leading-28 font-600",Heading16:"text-16 leading-24 font-600",Heading14:"text-14 leading-16 font-600",Heading12:"text-12 leading-16 font-600",SemiBold52:"text-52 leading-64 font-600",SemiBold48:"text-48 leading-60 font-600",SemiBold40:"text-40 leading-48 font-600",SemiBold32:"text-32 leading-40 font-600",SemiBold24:"text-24 leading-32 font-600",SemiBold20:"text-20 leading-28 font-600",SemiBold16:"text-16 leading-24 font-600",SemiBold14:"text-14 leading-20 font-600",Regular24:"text-24 leading-30 font-400",Regular20:"text-20 leading-26 font-400",Regular16:"text-16 leading-24 font-400",Regular14:"text-14 leading-20 font-400",Regular12:"text-12 leading-16 font-400",Mono16:"font-mono text-16 leading-24 font-400"},or=({typography:e,element:t="span",className:n="",children:r,...o})=>{const s=wt.clsx("font-infinityloop",ti[e],n);return V.createElement(t,{className:s,...o},r)};or.displayName="Typography";const ni=({children:e,className:t,color:n="white"})=>g.jsx(Jt,{className:wt.clsx("rounded-3",{"bg-content-constant":n==="white","bg-content-secondary":n==="gray"},t),children:e});function sr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ve(...e){return t=>{let n=!1;const r=e.map(o=>{const s=sr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():sr(e[o],null)}}}}function ne(...e){return c.useCallback(ve(...e),e)}var ri=Symbol.for("react.lazy"),Ct=c[" use ".trim().toString()];function oi(e){return typeof e=="object"&&e!==null&&"then"in e}function ir(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ri&&"_payload"in e&&oi(e._payload)}function ar(e){const t=si(e),n=c.forwardRef((r,o)=>{let{children:s,...i}=r;ir(s)&&typeof Ct=="function"&&(s=Ct(s._payload));const a=c.Children.toArray(s),l=a.find(ai);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Qt=ar("Slot");function si(e){const t=c.forwardRef((n,r)=>{let{children:o,...s}=n;if(ir(o)&&typeof Ct=="function"&&(o=Ct(o._payload)),c.isValidElement(o)){const i=ci(o),a=li(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ii=Symbol("radix.slottable");function ai(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ii}function li(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ci(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function lr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=lr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lr(e))&&(r&&(r+=" "),r+=t);return r}const ur=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,dr=cr,fr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return dr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=s==null?void 0:s[u];if(f===null)return null;const m=ur(f)||ur(d);return o[u][m]}),a=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:m,...h}=f;return Object.entries(h).every(v=>{let[p,b]=v;return Array.isArray(b)?b.includes({...s,...a}[p]):{...s,...a}[p]===b})?[...u,d,m]:u},[]);return dr(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},en="-",ui=e=>{const t=fi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(en);return a[0]===""&&a.length!==1&&a.shift(),pr(a,t)||di(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},pr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(en);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},mr=/^\[(.+)\]$/,di=e=>{if(mr.test(e)){const t=mr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)tn(n[o],r,o,t);return r},tn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:hr(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(pi(o)){tn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{tn(i,hr(t,s),n,r)})})},hr=(e,t)=>{let n=e;return t.split(en).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pi=e=>e.isThemeGetter,mi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},nn="!",rn=":",hi=rn.length,gi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,l=0,u;for(let v=0;v<o.length;v++){let p=o[v];if(i===0&&a===0){if(p===rn){s.push(o.slice(l,v)),l=v+hi;continue}if(p==="/"){u=v;continue}}p==="["?i++:p==="]"?i--:p==="("?a++:p===")"&&a--}const f=s.length===0?o:o.substring(l),d=vi(f),m=d!==f,h=u&&u>l?u-l:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const o=t+rn,s=r;r=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},vi=e=>e.endsWith(nn)?e.substring(0,e.length-1):e.startsWith(nn)?e.substring(1):e,bi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},yi=e=>({cache:mi(e.cacheSize),parseClassName:gi(e),sortModifiers:bi(e),...ui(e)}),xi=/\s+/,wi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(xi);let l="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:d,modifiers:m,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}=n(f);if(d){l=f+(l.length>0?" "+l:l);continue}let b=!!p,y=r(b?v.substring(0,p):v);if(!y){if(!b){l=f+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=f+(l.length>0?" "+l:l);continue}b=!1}const x=s(m).join(":"),w=h?x+nn:x,C=w+y;if(i.includes(C))continue;i.push(C);const E=o(y,b);for(let N=0;N<E.length;++N){const A=E[N];i.push(w+A)}l=f+(l.length>0?" "+l:l)}return l};function Si(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gr(t))&&(r&&(r+=" "),r+=n);return r}const gr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ci(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((f,d)=>d(f),e());return n=yi(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const f=wi(l,n);return o(l,f),f}return function(){return s(Si.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,br=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_i=/^\d+\/\d+$/,Ei=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ki=/\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$/,Pi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ai=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ri=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>_i.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>!!e&&Number.isInteger(Number(e)),on=e=>e.endsWith("%")&&U(e.slice(0,-1)),Pe=e=>Ei.test(e),Ni=()=>!0,Oi=e=>ki.test(e)&&!Pi.test(e),yr=()=>!1,Ti=e=>Ai.test(e),Mi=e=>Ri.test(e),Ii=e=>!O(e)&&!T(e),ji=e=>Ue(e,_r,yr),O=e=>vr.test(e),Fe=e=>Ue(e,Er,Oi),sn=e=>Ue(e,Bi,U),xr=e=>Ue(e,Sr,yr),Li=e=>Ue(e,Cr,Mi),_t=e=>Ue(e,kr,Ti),T=e=>br.test(e),lt=e=>Ge(e,Er),$i=e=>Ge(e,Vi),wr=e=>Ge(e,Sr),Di=e=>Ge(e,_r),Fi=e=>Ge(e,Cr),Et=e=>Ge(e,kr,!0),Ue=(e,t,n)=>{const r=vr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=br.exec(e);return r?r[1]?t(r[1]):n:!1},Sr=e=>e==="position"||e==="percentage",Cr=e=>e==="image"||e==="url",_r=e=>e==="length"||e==="size"||e==="bg-size",Er=e=>e==="length",Bi=e=>e==="number",Vi=e=>e==="family-name",kr=e=>e==="shadow",zi=Ci(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),s=ie("leading"),i=ie("breakpoint"),a=ie("container"),l=ie("spacing"),u=ie("radius"),f=ie("shadow"),d=ie("inset-shadow"),m=ie("text-shadow"),h=ie("drop-shadow"),v=ie("blur"),p=ie("perspective"),b=ie("aspect"),y=ie("ease"),x=ie("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),T,O],N=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],k=()=>[T,O,l],$=()=>[He,"full","auto",...k()],B=()=>[Oe,"none","subgrid",T,O],I=()=>["auto",{span:["full",Oe,T,O]},Oe,T,O],D=()=>[Oe,"auto",T,O],W=()=>["auto","min","max","fr",T,O],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...k()],j=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],_=()=>[e,T,O],q=()=>[...C(),wr,xr,{position:[T,O]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Di,ji,{size:[T,O]}],L=()=>[on,lt,Fe],F=()=>["","none","full",u,T,O],z=()=>["",U,lt,Fe],de=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[U,on,wr,xr],Y=()=>["","none",v,T,O],te=()=>["none",U,T,O],X=()=>["none",U,T,O],J=()=>[U,T,O],Z=()=>[He,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Ni],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[Ii],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",U],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,O,T,b]}],container:["container"],columns:[{columns:[U,O,T,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",T,O]}],basis:[{basis:[He,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,He,"auto","initial","none",O]}],grow:[{grow:["",U,T,O]}],shrink:[{shrink:["",U,T,O]}],order:[{order:[Oe,"first","last","none",T,O]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,lt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,T,sn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",on,O]}],"font-family":[{font:[$i,O,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,T,O]}],"line-clamp":[{"line-clamp":[U,"none",T,sn]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",T,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,O]}],"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:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",T,Fe]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[U,"auto",T,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,T,O],radial:["",T,O],conic:[Oe,T,O]},Fi,Li]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"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:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,T,O]}],"outline-w":[{outline:["",U,lt,Fe]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",f,Et,_t]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Et,_t]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[U,Fe]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",m,Et,_t]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[U,T,O]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[U]}],"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":[T,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"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":[U]}],"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:q()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,O]}],filter:[{filter:["","none",T,O]}],blur:[{blur:Y()}],brightness:[{brightness:[U,T,O]}],contrast:[{contrast:[U,T,O]}],"drop-shadow":[{"drop-shadow":["","none",h,Et,_t]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",U,T,O]}],"hue-rotate":[{"hue-rotate":[U,T,O]}],invert:[{invert:["",U,T,O]}],saturate:[{saturate:[U,T,O]}],sepia:[{sepia:["",U,T,O]}],"backdrop-filter":[{"backdrop-filter":["","none",T,O]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[U,T,O]}],"backdrop-contrast":[{"backdrop-contrast":[U,T,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,T,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,T,O]}],"backdrop-invert":[{"backdrop-invert":["",U,T,O]}],"backdrop-opacity":[{"backdrop-opacity":[U,T,O]}],"backdrop-saturate":[{"backdrop-saturate":[U,T,O]}],"backdrop-sepia":[{"backdrop-sepia":["",U,T,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",T,O]}],ease:[{ease:["linear","initial",y,T,O]}],delay:[{delay:[U,T,O]}],animate:[{animate:["none",x,T,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,T,O]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[T,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"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",T,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",T,O]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[U,lt,Fe,sn]}],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 Q(...e){return zi(cr(e))}const Pr=fr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Wi({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?Qt:"button";return g.jsx(s,{"data-slot":"button",className:Q(Pr({variant:t,size:n,className:e})),...o})}function Hi({className:e,type:t,...n}){return g.jsx("input",{type:t,"data-slot":"input",className:Q("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}/**
23
23
  * @license lucide-react v0.546.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const pr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),st=e=>{const t=gr(e);return t.charAt(0).toUpperCase()+t.slice(1)},it=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),br=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const Ui=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ar=e=>{const t=Gi(e);return t.charAt(0).toUpperCase()+t.slice(1)},Rr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Ki=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
28
  * @license lucide-react v0.546.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var hr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
32
+ */var Yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
33
  * @license lucide-react v0.546.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const vr=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...l},c)=>P.createElement("svg",{ref:c,...hr,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:it("lucide",n),...!a&&!br(l)&&{"aria-hidden":"true"},...l},[...i.map(([f,v])=>P.createElement(f,v)),...Array.isArray(a)?a:[a]]));/**
37
+ */const qi=V.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>V.createElement("svg",{ref:l,...Yi,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rr("lucide",o),...!s&&!Ki(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,f])=>V.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
38
38
  * @license lucide-react v0.546.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const lt=(e,t)=>{const r=P.forwardRef(({className:o,...n},a)=>P.createElement(vr,{ref:a,iconNode:t,className:it(`lucide-${pr(st(e))}`,`lucide-${e}`,o),...n}));return r.displayName=st(e),r};/**
42
+ */const Ke=(e,t)=>{const n=V.forwardRef(({className:r,...o},s)=>V.createElement(qi,{ref:s,iconNode:t,className:Rr(`lucide-${Ui(Ar(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ar(e),n};/**
43
43
  * @license lucide-react v0.546.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const xr=lt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
47
+ */const Xi=Ke("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
48
48
  * @license lucide-react v0.546.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const yr=lt("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"}]]);function wr({...e}){return C.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function kr({className:e,...t}){return C.jsx("ol",{"data-slot":"breadcrumb-list",className:z("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function Sr({className:e,...t}){return C.jsx("li",{"data-slot":"breadcrumb-item",className:z("inline-flex items-center gap-1.5",e),...t})}function _r({asChild:e,className:t,...r}){const o=e?Ge:"a";return C.jsx(o,{"data-slot":"breadcrumb-link",className:z("hover:text-foreground transition-colors",t),...r})}function Er({className:e,...t}){return C.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:z("text-foreground font-normal",e),...t})}function Ar({children:e,className:t,...r}){return C.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:z("[&>svg]:size-3.5",t),...r,children:e??C.jsx(xr,{})})}function Rr({className:e,...t}){return C.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:z("flex size-9 items-center justify-center",e),...t,children:[C.jsx(yr,{className:"size-4"}),C.jsx("span",{className:"sr-only",children:"More"})]})}function Cr(e,t=[]){let r=[];function o(a,i){const l=E.createContext(i);l.displayName=a+"Context";const c=r.length;r=[...r,i];const f=p=>{var j;const{scope:w,children:x,...b}=p,k=((j=w==null?void 0:w[e])==null?void 0:j[c])||l,T=E.useMemo(()=>b,Object.values(b));return C.jsx(k.Provider,{value:T,children:x})};f.displayName=a+"Provider";function v(p,w){var k;const x=((k=w==null?void 0:w[e])==null?void 0:k[c])||l,b=E.useContext(x);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[f,v]}const n=()=>{const a=r.map(i=>E.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,Tr(n,...t)]}function Tr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const i=o.reduce((l,{useScope:c,scopeName:f})=>{const p=c(a)[`__scope${f}`];return{...l,...p}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function jr(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}var _e=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},Or=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ee=Or.reduce((e,t)=>{const r=Be(`Primitive.${t}`),o=E.forwardRef((n,a)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(c,{...l,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Ae={exports:{}},Re={};/**
52
+ */const Nr=Ke("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
53
+ * @license lucide-react v0.546.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const Zi=Ke("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
58
+ * @license lucide-react v0.546.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const Ji=Ke("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
63
+ * @license lucide-react v0.546.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const Qi=Ke("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"}]]);/**
68
+ * @license lucide-react v0.546.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const ea=Ke("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]);function ta({...e}){return g.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function na({className:e,...t}){return g.jsx("ol",{"data-slot":"breadcrumb-list",className:Q("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function ra({className:e,...t}){return g.jsx("li",{"data-slot":"breadcrumb-item",className:Q("inline-flex items-center gap-1.5",e),...t})}function oa({asChild:e,className:t,...n}){const r=e?Qt:"a";return g.jsx(r,{"data-slot":"breadcrumb-link",className:Q("hover:text-foreground transition-colors",t),...n})}function sa({className:e,...t}){return g.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:Q("text-foreground font-normal",e),...t})}function ia({children:e,className:t,...n}){return g.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:Q("[&>svg]:size-3.5",t),...n,children:e??g.jsx(Zi,{})})}function aa({className:e,...t}){return g.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:Q("flex size-9 items-center justify-center",e),...t,children:[g.jsx(Qi,{className:"size-4"}),g.jsx("span",{className:"sr-only",children:"More"})]})}function la(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,ca(o,...t)]}function ca(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Te(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ue=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},ua=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],an=ua.reduce((e,t)=>{const n=ar(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ln={exports:{}},cn={};/**
53
73
  * @license React
54
74
  * use-sync-external-store-shim.production.js
55
75
  *
@@ -57,7 +77,7 @@ React keys must be passed directly to JSX without using spread:
57
77
  *
58
78
  * This source code is licensed under the MIT license found in the
59
79
  * LICENSE file in the root directory of this source tree.
60
- */var ct;function Pr(){if(ct)return Re;ct=1;var e=P;function t(p,w){return p===w&&(p!==0||1/p===1/w)||p!==p&&w!==w}var r=typeof Object.is=="function"?Object.is:t,o=e.useState,n=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(p,w){var x=w(),b=o({inst:{value:x,getSnapshot:w}}),k=b[0].inst,T=b[1];return a(function(){k.value=x,k.getSnapshot=w,c(k)&&T({inst:k})},[p,x,w]),n(function(){return c(k)&&T({inst:k}),p(function(){c(k)&&T({inst:k})})},[p]),i(x),x}function c(p){var w=p.getSnapshot;p=p.value;try{var x=w();return!r(p,x)}catch{return!0}}function f(p,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:l;return Re.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,Re}var Ce={};/**
80
+ */var Or;function da(){if(Or)return cn;Or=1;var e=V;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(d,m){var h=m(),v=r({inst:{value:h,getSnapshot:m}}),p=v[0].inst,b=v[1];return s(function(){p.value=h,p.getSnapshot=m,l(p)&&b({inst:p})},[d,h,m]),o(function(){return l(p)&&b({inst:p}),d(function(){l(p)&&b({inst:p})})},[d]),i(h),h}function l(d){var m=d.getSnapshot;d=d.value;try{var h=m();return!n(d,h)}catch{return!0}}function u(d,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,cn}var un={};/**
61
81
  * @license React
62
82
  * use-sync-external-store-shim.development.js
63
83
  *
@@ -65,4 +85,46 @@ React keys must be passed directly to JSX without using spread:
65
85
  *
66
86
  * This source code is licensed under the MIT license found in the
67
87
  * LICENSE file in the root directory of this source tree.
68
- */var dt;function Nr(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&function(){function e(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}function t(x,b){v||n.startTransition===void 0||(v=!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 k=b();if(!p){var T=b();a(k,T)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}T=i({inst:{value:k,getSnapshot:b}});var j=T[0].inst,I=T[1];return c(function(){j.value=k,j.getSnapshot=b,r(j)&&I({inst:j})},[x,k,b]),l(function(){return r(j)&&I({inst:j}),x(function(){r(j)&&I({inst:j})})},[x]),f(k),k}function r(x){var b=x.getSnapshot;x=x.value;try{var k=b();return!a(x,k)}catch{return!0}}function o(x,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=P,a=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,c=n.useLayoutEffect,f=n.useDebugValue,v=!1,p=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;Ce.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ce}process.env.NODE_ENV==="production"?Ae.exports=Pr():Ae.exports=Nr();var Lr=Ae.exports;function zr(){return Lr.useSyncExternalStore(Ir,()=>!0,()=>!1)}function Ir(){return()=>{}}var Te="Avatar",[Mr,Kr]=Cr(Te),[$r,ut]=Mr(Te),ft=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...o}=e,[n,a]=E.useState("idle");return C.jsx($r,{scope:r,imageLoadingStatus:n,onImageLoadingStatusChange:a,children:C.jsx(Ee.span,{...o,ref:t})})});ft.displayName=Te;var mt="AvatarImage",pt=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:o,onLoadingStatusChange:n=()=>{},...a}=e,i=ut(mt,r),l=Br(o,a),c=jr(f=>{n(f),i.onImageLoadingStatusChange(f)});return _e(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?C.jsx(Ee.img,{...a,ref:t,src:o}):null});pt.displayName=mt;var gt="AvatarFallback",bt=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:o,...n}=e,a=ut(gt,r),[i,l]=E.useState(o===void 0);return E.useEffect(()=>{if(o!==void 0){const c=window.setTimeout(()=>l(!0),o);return()=>window.clearTimeout(c)}},[o]),i&&a.imageLoadingStatus!=="loaded"?C.jsx(Ee.span,{...n,ref:t}):null});bt.displayName=gt;function ht(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Br(e,{referrerPolicy:t,crossOrigin:r}){const o=zr(),n=E.useRef(null),a=(()=>o?(n.current||(n.current=new window.Image),n.current):null)(),[i,l]=E.useState(()=>ht(a,e));return _e(()=>{l(ht(a,e))},[a,e]),_e(()=>{const c=p=>()=>{l(p)};if(!a)return;const f=c("loaded"),v=c("error");return a.addEventListener("load",f),a.addEventListener("error",v),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",f),a.removeEventListener("error",v)}},[a,r,t]),i}var Gr=ft,Vr=pt,Fr=bt;function Dr({className:e,...t}){return C.jsx(Gr,{"data-slot":"avatar",className:z("relative flex size-8 shrink-0 overflow-hidden rounded-full border-2",e),...t})}function Wr({className:e,...t}){return C.jsx(Vr,{"data-slot":"avatar-image",className:z("aspect-square size-full",e),...t})}function Ur({className:e,...t}){return C.jsx(Fr,{"data-slot":"avatar-fallback",className:z("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}R.Avatar=Dr,R.AvatarFallback=Ur,R.AvatarImage=Wr,R.Breadcrumb=wr,R.BreadcrumbEllipsis=Rr,R.BreadcrumbItem=Sr,R.BreadcrumbLink=_r,R.BreadcrumbList=kr,R.BreadcrumbPage=Er,R.BreadcrumbSeparator=Ar,R.Button=fr,R.Flex=he,R.Grid=ze,R.Input=mr,R.Paper=St,R.Typography=Ie,R.buttonVariants=at,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
88
+ */var Tr;function fa(){return Tr||(Tr=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 p=v();if(!d){var b=v();s(p,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}b=i({inst:{value:p,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=p,y.getSnapshot=v,n(y)&&x({inst:y})},[h,p,v]),a(function(){return n(y)&&x({inst:y}),h(function(){n(y)&&x({inst:y})})},[h]),u(p),p}function n(h){var v=h.getSnapshot;h=h.value;try{var p=v();return!s(h,p)}catch{return!0}}function r(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=V,s=typeof Object.is=="function"?Object.is:e,i=o.useState,a=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,f=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;un.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),un}process.env.NODE_ENV==="production"?ln.exports=da():ln.exports=fa();var pa=ln.exports;function ma(){return pa.useSyncExternalStore(ha,()=>!0,()=>!1)}function ha(){return()=>{}}var dn="Avatar",[ga,op]=la(dn),[va,Mr]=ga(dn),Ir=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=c.useState("idle");return g.jsx(va,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:g.jsx(an.span,{...r,ref:t})})});Ir.displayName=dn;var jr="AvatarImage",Lr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=Mr(jr,n),a=ba(r,s),l=Te(u=>{o(u),i.onImageLoadingStatusChange(u)});return ue(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?g.jsx(an.img,{...s,ref:t,src:r}):null});Lr.displayName=jr;var $r="AvatarFallback",Dr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Mr($r,n),[i,a]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?g.jsx(an.span,{...o,ref:t}):null});Dr.displayName=$r;function Fr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ba(e,{referrerPolicy:t,crossOrigin:n}){const r=ma(),o=c.useRef(null),s=(()=>r?(o.current||(o.current=new window.Image),o.current):null)(),[i,a]=c.useState(()=>Fr(s,e));return ue(()=>{a(Fr(s,e))},[s,e]),ue(()=>{const l=d=>()=>{a(d)};if(!s)return;const u=l("loaded"),f=l("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),i}var ya=Ir,xa=Lr,wa=Dr;function Sa({className:e,...t}){return g.jsx(ya,{"data-slot":"avatar",className:Q("relative flex size-8 shrink-0 overflow-hidden rounded-full border-2",e),...t})}function Ca({className:e,...t}){return g.jsx(xa,{"data-slot":"avatar-image",className:Q("aspect-square size-full",e),...t})}function _a({className:e,...t}){return g.jsx(wa,{"data-slot":"avatar-fallback",className:Q("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const fn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in fn)Object.freeze(fn[e]);const ct=Object.freeze(fn),Br=Object.create(null);for(const e in ct)Object.hasOwn(ct,e)&&(Br[ct[e]]=e);const ae={to:{},get:{}};ae.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":{n=ae.get.hsl(e),r="hsl";break}case"hwb":{n=ae.get.hwb(e),r="hwb";break}default:{n=ae.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null},ae.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,s=/^(\w+)$/;let i=[0,0,0,1],a,l,u;if(a=e.match(n)){for(u=a[2],a=a[1],l=0;l<3;l++){const f=l*2;i[l]=Number.parseInt(a.slice(f,f+2),16)}u&&(i[3]=Number.parseInt(u,16)/255)}else if(a=e.match(t)){for(a=a[1],u=a[3],l=0;l<3;l++)i[l]=Number.parseInt(a[l]+a[l],16);u&&(i[3]=Number.parseInt(u+u,16)/255)}else if(a=e.match(r)){for(l=0;l<3;l++)i[l]=Number.parseFloat(a[l+1]);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=e.match(o)){for(l=0;l<3;l++)i[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=e.toLowerCase().match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(ct,a[1])?(i=ct[a[1]].slice(),i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=Me(i[l],0,255);return i[3]=Me(i[3],0,1),i},ae.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Me(Number.parseFloat(n[2]),0,100),i=Me(Number.parseFloat(n[3]),0,100),a=Me(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},ae.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Me(Number.parseFloat(n[2]),0,100),i=Me(Number.parseFloat(n[3]),0,100),a=Me(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},ae.to.hex=function(...e){return"#"+kt(e[0])+kt(e[1])+kt(e[2])+(e[3]<1?kt(Math.round(e[3]*255)):"")},ae.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},ae.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},ae.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},ae.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},ae.to.keyword=function(...e){return Br[e.slice(0,3)]};function Me(e,t,n){return Math.min(Math.max(t,e),n)}function kt(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const pn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in pn)Object.freeze(pn[e]);const ut=Object.freeze(pn),Vr={};for(const e of Object.keys(ut))Vr[ut[e]]=e;const R={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Ae=(6/29)**3;function Ye(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function qe(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(R)){if(!("channels"in R[e]))throw new Error("missing channels property: "+e);if(!("labels"in R[e]))throw new Error("missing channel labels property: "+e);if(R[e].labels.length!==R[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=R[e];delete R[e].channels,delete R[e].labels,Object.defineProperty(R[e],"channels",{value:t}),Object.defineProperty(R[e],"labels",{value:n})}R.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;switch(s){case o:{a=0;break}case t:{a=(n-r)/i;break}case n:{a=2+(r-t)/i;break}case r:{a=4+(t-n)/i;break}}a=Math.min(a*60,360),a<0&&(a+=360);const u=(o+s)/2;return s===o?l=0:u<=.5?l=i/(s+o):l=i/(2-s-o),[a,l*100,u*100]},R.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(i,a,l),f=u-Math.min(i,a,l),d=function(m){return(u-m)/6/f+1/2};if(f===0)o=0,s=0;else{switch(s=f/u,t=d(i),n=d(a),r=d(l),u){case i:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,u*100]},R.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=R.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,s*100,r*100]},R.rgb.oklab=function(e){const t=qe(e[0]/255),n=qe(e[1]/255),r=qe(e[2]/255),o=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),s=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,u=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,u*100]},R.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),s=(1-t-o)/(1-o)||0,i=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,i*100,a*100,o*100]};function Ea(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}R.rgb.keyword=function(e){const t=Vr[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(ut)){const s=ut[o],i=Ea(e,s);i<n&&(n=i,r=o)}return r},R.keyword.rgb=function(e){return[...ut[e]]},R.rgb.xyz=function(e){const t=qe(e[0]/255),n=qe(e[1]/255),r=qe(e[2]/255),o=t*.4124564+n*.3575761+r*.1804375,s=t*.2126729+n*.7151522+r*.072175,i=t*.0193339+n*.119192+r*.9503041;return[o*100,s*100,i*100]},R.rgb.lab=function(e){const t=R.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>Ae?n**(1/3):7.787*n+16/116,r=r>Ae?r**(1/3):7.787*r+16/116,o=o>Ae?o**(1/3):7.787*o+16/116;const s=116*r-16,i=500*(n-r),a=200*(r-o);return[s,i,a]},R.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s;if(n===0)return s=r*255,[s,s,s];const i=r<.5?r*(1+n):r+n-r*n,a=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[u]=s*255;return l},R.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s;const i=(r+n)/2,a=r===0?2*o/(s+o):2*n/(r+n);return[t,a*100,i*100]},R.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},R.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,s*100,i*100]},R.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,i&1&&(s=1-s);const l=n+s*(a-n);let u,f,d;switch(i){default:case 6:case 0:{u=a,f=l,d=n;break}case 1:{u=l,f=a,d=n;break}case 2:{u=n,f=a,d=l;break}case 3:{u=n,f=l,d=a;break}case 4:{u=l,f=n,d=a;break}case 5:{u=a,f=n,d=l;break}}return[u*255,f*255,d*255]},R.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,i*255,a*255]},R.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=t*3.2404542+n*-1.5371385+r*-.4985314,s=t*-.969266+n*1.8760108+r*.041556,i=t*.0556434+n*-.2040259+r*1.0572252,o=Ye(o),s=Ye(s),i=Ye(i),[o*255,s*255,i*255]},R.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>Ae?t**(1/3):7.787*t+16/116,n=n>Ae?n**(1/3):7.787*n+16/116,r=r>Ae?r**(1/3):7.787*r+16/116;const o=116*n-16,s=500*(t-n),i=200*(n-r);return[o,s,i]},R.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),s=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,u=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,u*100]},R.oklab.oklch=function(e){return R.lab.lch(e)},R.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(.999999998*t+.396337792*n+.215803758*r)**3,s=(1.000000008*t-.105561342*n-.063854175*r)**3,i=(1.000000055*t-.089484182*n-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*i,l=-.040580178*o+1.11225687*s-.071676679*i,u=-.076381285*o-.421481978*s+1.58616322*i;return[a*100,l*100,u*100]},R.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(t+.3963377774*n+.2158037573*r)**3,s=(t-.1055613458*n-.0638541728*r)**3,i=(t-.0894841775*n-1.291485548*r)**3,a=Ye(4.0767416621*o-3.3077115913*s+.2309699292*i),l=Ye(-1.2684380046*o+2.6097574011*s-.3413193965*i),u=Ye(-.0041960863*o-.7034186147*s+1.707614701*i);return[a*255,l*255,u*255]},R.oklch.oklab=function(e){return R.lch.lab(e)},R.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,s,i;s=(t+16)/116,o=n/500+s,i=s-r/200;const a=s**3,l=o**3,u=i**3;return s=a>Ae?a:(s-16/116)/7.787,o=l>Ae?l:(o-16/116)/7.787,i=u>Ae?u:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]},R.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const i=Math.sqrt(n*n+r*r);return[t,i,o]},R.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,s=n*Math.cos(o),i=n*Math.sin(o);return[t,s,i]},R.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=t===null?R.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return s===2&&(i+=60),i},R.hsv.ansi16=function(e){return R.rgb.ansi16(R.hsv.rgb(e),e[2])},R.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},R.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,s=(t>>2&1)*n*255;return[r,o,s]},R.ansi256.rgb=function(e){if(e=e[0],e>=232){const s=(e-232)*10+8;return[s,s,s]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},R.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},R.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,s=r>>8&255,i=r&255;return[o,s,i]},R.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a;const l=i<1?s/(1-i):0;return i<=0?a=0:o===t?a=(n-r)/i%6:o===n?a=2+(r-t)/i:a=4+(t-n)/i,a/=6,a%=1,[a*360,i*100,l*100]},R.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},R.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},R.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=i,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=i;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=i,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},R.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},R.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},R.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},R.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let s=0;return o<1&&(s=(r-o)/(1-o)),[e[0],o*100,s*100]},R.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},R.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},R.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},R.gray.hsl=function(e){return[0,0,e[0]]},R.gray.hsv=R.gray.hsl,R.gray.hwb=function(e){return[0,100,e[0]]},R.gray.cmyk=function(e){return[0,0,0,e[0]]},R.gray.lab=function(e){return[e[0],0,0]},R.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},R.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function ka(){const e={},t=Object.keys(R);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function Pa(e){const t=ka(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(R[r]);for(let{length:s}=o,i=0;i<s;i++){const a=o[i],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function Aa(e,t){return function(n){return t(e(n))}}function Ra(e,t){const n=[t[e].parent,e];let r=R[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Aa(R[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function Na(e){const t=Pa(e),n={},r=Object.keys(t);for(let{length:o}=r,s=0;s<o;s++){const i=r[s];t[i].parent!==null&&(n[i]=Ra(i,t))}return n}const ce={},Oa=Object.keys(R);function Ta(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ma(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:s}=o,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of Oa){ce[e]={},Object.defineProperty(ce[e],"channels",{value:R[e].channels}),Object.defineProperty(ce[e],"labels",{value:R[e].labels});const t=Na(e),n=Object.keys(t);for(const r of n){const o=t[r];ce[e][r]=Ma(o),ce[e][r].raw=Ta(o)}}const zr=["keyword","gray","hex"],mn={};for(const e of Object.keys(ce))mn[[...ce[e].labels].sort().join("")]=e;const dt={};function re(e,t){if(!(this instanceof re))return new re(e,t);if(t&&t in zr&&(t=null),t&&!(t in ce))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof re)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=ae.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=ce[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=ce[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=hn(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const s=o.sort().join("");if(!(s in mn))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=mn[s];const{labels:i}=ce[this.model],a=[];for(n=0;n<i.length;n++)a.push(e[i[n]]);this.color=hn(a)}if(dt[this.model])for(r=ce[this.model].channels,n=0;n<r;n++){const o=dt[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}re.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ae.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return ae.to[t.model](...n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return ae.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ce[this.model],{labels:n}=ce[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new re([...this.color.map(ja(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new re([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:oe("rgb",0,le(255)),green:oe("rgb",1,le(255)),blue:oe("rgb",2,le(255)),hue:oe(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:oe("hsl",1,le(100)),lightness:oe("hsl",2,le(100)),saturationv:oe("hsv",1,le(100)),value:oe("hsv",2,le(100)),chroma:oe("hcg",1,le(100)),gray:oe("hcg",2,le(100)),white:oe("hwb",1,le(100)),wblack:oe("hwb",2,le(100)),cyan:oe("cmyk",0,le(100)),magenta:oe("cmyk",1,le(100)),yellow:oe("cmyk",2,le(100)),black:oe("cmyk",3,le(100)),x:oe("xyz",0,le(95.047)),y:oe("xyz",1,le(100)),z:oe("xyz",2,le(108.833)),l:oe("lab",0,le(100)),a:oe("lab",1),b:oe("lab",2),keyword(e){return e!==void 0?new re(e):ce[this.model].keyword(this.color)},hex(e){return e!==void 0?new re(e):ae.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new re(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),ae.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return re.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,s=2*o-1,i=n.alpha()-r.alpha(),a=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,l=1-a;return re.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(ce)){if(zr.includes(e))continue;const{channels:t}=ce[e];re.prototype[e]=function(...n){return this.model===e?new re(this):n.length>0?new re(n,e):new re([...La(ce[this.model][e].raw(this.color)),this.valpha],e)},re[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=hn(n,t)),new re(r,e)}}function Ia(e,t){return Number(e.toFixed(t))}function ja(e){return function(t){return Ia(t,e)}}function oe(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(dt[r]||(dt[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function le(e){return function(t){return Math.max(0,Math.min(e,t))}}function La(e){return Array.isArray(e)?e:[e]}function hn(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}function $a(e){const t=Da(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Ba);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Da(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=za(o),a=Va(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fa=Symbol("radix.slottable");function Ba(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fa}function Va(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function za(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ha=Wa.reduce((e,t)=>{const n=$a(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Wr=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"}),Ua="VisuallyHidden",Ga=c.forwardRef((e,t)=>g.jsx(Ha.span,{...e,ref:t,style:{...Wr,...e.style}}));Ga.displayName=Ua;function Ka(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Ya(o,...t)]}function Ya(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hr(e){const t=qa(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Za);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qa(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Qa(o),a=Ja(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xa=Symbol("radix.slottable");function Za(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xa}function Ja(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Qa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ur(e){const t=e+"CollectionProvider",[n,r]=Ka(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:b,children:y}=p,x=V.useRef(null),w=V.useRef(new Map).current;return g.jsx(o,{scope:b,itemMap:w,collectionRef:x,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=Hr(a),u=V.forwardRef((p,b)=>{const{scope:y,children:x}=p,w=s(a,y),C=ne(b,w.collectionRef);return g.jsx(l,{ref:C,children:x})});u.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=Hr(f),h=V.forwardRef((p,b)=>{const{scope:y,children:x,...w}=p,C=V.useRef(null),E=ne(b,C),N=s(f,y);return V.useEffect(()=>(N.itemMap.set(C,{ref:C,...w}),()=>void N.itemMap.delete(C))),g.jsx(m,{[d]:"",ref:E,children:x})});h.displayName=f;function v(p){const b=s(e+"CollectionConsumer",p);return V.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((N,A)=>w.indexOf(N.ref.current)-w.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},v,r]}function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var el=c[" useInsertionEffect ".trim().toString()]||ue;function gn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=tl({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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=a},[a,r])}const u=c.useCallback(f=>{var d;if(a){const m=nl(f)?f(e):f;m!==e&&((d=i.current)==null||d.call(i,m))}else s(f)},[a,e,s,i]);return[l,u]}function tl({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),s=c.useRef(t);return el(()=>{s.current=t},[t]),c.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function nl(e){return typeof e=="function"}var rl=c[" useId ".trim().toString()]||(()=>{}),ol=0;function vn(e){const[t,n]=c.useState(rl());return ue(()=>{e||n(r=>r??String(ol++))},[e]),e||(t?`radix-${t}`:"")}var sl=c.createContext(void 0);function Gr(e){const t=c.useContext(sl);return e||t||"ltr"}function il(e){const t=al(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(cl);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function al(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=dl(o),a=ul(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ll=Symbol("radix.slottable");function cl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ll}function ul(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kr=fl.reduce((e,t)=>{const n=il(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pl(e,t){e&&St.flushSync(()=>e.dispatchEvent(t))}function ml(e,t=globalThis==null?void 0:globalThis.document){const n=Te(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var hl="DismissableLayer",bn="dismissableLayer.update",gl="dismissableLayer.pointerDownOutside",vl="dismissableLayer.focusOutside",Yr,qr=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xr=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(qr),[f,d]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=c.useState({}),v=ne(t,A=>d(A)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(b),x=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=xl(A=>{const k=A.target,$=[...u.branches].some(B=>B.contains(k));!C||$||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},m),N=wl(A=>{const k=A.target;[...u.branches].some(B=>B.contains(k))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},m);return ml(A=>{x===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Zr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Yr)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Zr())},[f,u]),c.useEffect(()=>{const A=()=>h({});return document.addEventListener(bn,A),()=>document.removeEventListener(bn,A)},[]),g.jsx(Kr.div,{...l,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,E.onPointerDownCapture)})});Xr.displayName=hl;var bl="DismissableLayerBranch",yl=c.forwardRef((e,t)=>{const n=c.useContext(qr),r=c.useRef(null),o=ne(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Kr.div,{...e,ref:o})});yl.displayName=bl;function xl(e,t=globalThis==null?void 0:globalThis.document){const n=Te(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Jr(gl,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wl(e,t=globalThis==null?void 0:globalThis.document){const n=Te(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&Jr(vl,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Jr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?pl(o,s):o.dispatchEvent(s)}function Sl(e){const t=Cl(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(El);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Cl(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Pl(o),a=kl(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _l=Symbol("radix.slottable");function El(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_l}function kl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Pl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Al=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rl=Al.reduce((e,t)=>{const n=Sl(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yn="focusScope.autoFocusOnMount",xn="focusScope.autoFocusOnUnmount",Qr={bubbles:!1,cancelable:!0},Nl="FocusScope",eo=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=Te(o),f=Te(s),d=c.useRef(null),m=ne(t,p=>l(p)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(w){if(h.paused||!a)return;const C=w.target;a.contains(C)?d.current=C:Ie(d.current,{select:!0})},b=function(w){if(h.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Ie(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),x.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){ro.add(h);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(yn,Qr);a.addEventListener(yn,u),a.dispatchEvent(y),y.defaultPrevented||(Ol(Ll(to(a)),{select:!0}),document.activeElement===p&&Ie(a))}return()=>{a.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(xn,Qr);a.addEventListener(xn,f),a.dispatchEvent(y),y.defaultPrevented||Ie(p??document.body,{select:!0}),a.removeEventListener(xn,f),ro.remove(h)},0)}}},[a,u,f,h]);const v=c.useCallback(p=>{if(!n&&!r||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(b&&y){const x=p.currentTarget,[w,C]=Tl(x);w&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&Ie(w,{select:!0})):p.shiftKey&&y===w&&(p.preventDefault(),n&&Ie(C,{select:!0})):y===x&&p.preventDefault()}},[n,r,h.paused]);return g.jsx(Rl.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});eo.displayName=Nl;function Ol(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ie(r,{select:t}),document.activeElement!==n)return}function Tl(e){const t=to(e),n=no(t,e),r=no(t.reverse(),e);return[n,r]}function to(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function no(e,t){for(const n of e)if(!Ml(n,{upTo:t}))return n}function Ml(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 Il(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Il(e)&&t&&e.select()}}var ro=jl();function jl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oo(e,t),e.unshift(t)},remove(t){var n;e=oo(e,t),(n=e[0])==null||n.resume()}}}function oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ll(e){return e.filter(t=>t.tagName!=="A")}function $l(e){const t=Dl(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Bl);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Dl(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=zl(o),a=Vl(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fl=Symbol("radix.slottable");function Bl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fl}function Vl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function zl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hl=Wl.reduce((e,t)=>{const n=$l(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ul="Portal",so=c.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=c.useState(!1);ue(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Zn.createPortal(g.jsx(Hl.div,{...r,ref:t}),i):null});so.displayName=Ul;var wn=0;function Gl(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??io()),document.body.insertAdjacentElement("beforeend",e[1]??io()),wn++,()=>{wn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wn--}},[])}function io(){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 we=function(){return we=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},we.apply(this,arguments)};function ao(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Kl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pt="right-scroll-bar-position",At="width-before-scroll-bar",Yl="with-scroll-bars-hidden",ql="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xl(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zl=typeof window<"u"?c.useLayoutEffect:c.useEffect,lo=new WeakMap;function Jl(e,t){var n=Xl(t||null,function(r){return e.forEach(function(o){return Sn(o,r)})});return Zl(function(){var r=lo.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Sn(a,null)}),s.forEach(function(a){o.has(a)||Sn(a,i)})}lo.set(n,e)},[e]),n}function Ql(e){return e}function ec(e,t){t===void 0&&(t=Ql);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function tc(e){e===void 0&&(e={});var t=ec(null);return t.options=we({async:!0,ssr:!1},e),t}var co=function(e){var t=e.sideCar,n=ao(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,we({},n))};co.isSideCarExport=!0;function nc(e,t){return e.useMedium(t),co}var uo=tc(),Cn=function(){},Rt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Cn,onWheelCapture:Cn,onTouchMoveCapture:Cn}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,h=e.noRelative,v=e.noIsolation,p=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=ao(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,N=Jl([n,t]),A=we(we({},C),o);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:uo,removeScrollBar:u,shards:d,noRelative:h,noIsolation:v,inert:p,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(a),we(we({},A),{ref:N})):c.createElement(x,we({},A,{className:l,ref:N}),a))});Rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rt.classNames={fullWidth:At,zeroRight:Pt};var fo,rc=function(){if(fo)return fo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rc();return t&&e.setAttribute("nonce",t),e}function sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ic(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ac=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oc())&&(sc(t,n),ic(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lc=function(){var e=ac();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},po=function(){var e=lc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},cc={left:0,top:0,right:0,gap:0},_n=function(e){return parseInt(e||"",10)||0},uc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_n(n),_n(r),_n(o)]},dc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cc;var t=uc(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},fc=po(),Xe="data-scroll-locked",pc=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
89
+ .`.concat(Yl,` {
90
+ overflow: hidden `).concat(r,`;
91
+ padding-right: `).concat(a,"px ").concat(r,`;
92
+ }
93
+ body[`).concat(Xe,`] {
94
+ overflow: hidden `).concat(r,`;
95
+ overscroll-behavior: contain;
96
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
97
+ padding-left: `.concat(o,`px;
98
+ padding-top: `).concat(s,`px;
99
+ padding-right: `).concat(i,`px;
100
+ margin-left:0;
101
+ margin-top:0;
102
+ margin-right: `).concat(a,"px ").concat(r,`;
103
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
104
+ }
105
+
106
+ .`).concat(Pt,` {
107
+ right: `).concat(a,"px ").concat(r,`;
108
+ }
109
+
110
+ .`).concat(At,` {
111
+ margin-right: `).concat(a,"px ").concat(r,`;
112
+ }
113
+
114
+ .`).concat(Pt," .").concat(Pt,` {
115
+ right: 0 `).concat(r,`;
116
+ }
117
+
118
+ .`).concat(At," .").concat(At,` {
119
+ margin-right: 0 `).concat(r,`;
120
+ }
121
+
122
+ body[`).concat(Xe,`] {
123
+ `).concat(ql,": ").concat(a,`px;
124
+ }
125
+ `)},mo=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},mc=function(){c.useEffect(function(){return document.body.setAttribute(Xe,(mo()+1).toString()),function(){var e=mo()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},hc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;mc();var s=c.useMemo(function(){return dc(o)},[o]);return c.createElement(fc,{styles:pc(s,!t,o,n?"":"!important")})},En=!1;if(typeof window<"u")try{var Nt=Object.defineProperty({},"passive",{get:function(){return En=!0,!0}});window.addEventListener("test",Nt,Nt),window.removeEventListener("test",Nt,Nt)}catch{En=!1}var Ze=En?{passive:!1}:!1,gc=function(e){return e.tagName==="TEXTAREA"},ho=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!gc(e)&&n[t]==="visible")},vc=function(e){return ho(e,"overflowY")},bc=function(e){return ho(e,"overflowX")},go=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=vo(e,r);if(o){var s=bo(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vo=function(e,t){return e==="v"?vc(t):bc(t)},bo=function(e,t){return e==="v"?yc(t):xc(t)},wc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Sc=function(e,t,n,r,o){var s=wc(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,f=i>0,d=0,m=0;do{if(!a)break;var h=bo(e,a),v=h[0],p=h[1],b=h[2],y=p-b-s*v;(v||y)&&vo(e,a)&&(d+=y,m+=v);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(o&&Math.abs(d)<1||!o&&i>d)||!f&&(o&&Math.abs(m)<1||!o&&-i>m))&&(u=!0),u},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yo=function(e){return[e.deltaX,e.deltaY]},xo=function(e){return e&&"current"in e?e.current:e},Cc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_c=function(e){return`
126
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
127
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
128
+ `)},Ec=0,Je=[];function kc(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Ec++)[0],s=c.useState(po)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Kl([e.lockRef.current],(e.shards||[]).map(xo),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=Ot(p),x=n.current,w="deltaX"in p?p.deltaX:x[0]-y[0],C="deltaY"in p?p.deltaY:x[1]-y[1],E,N=p.target,A=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in p&&A==="h"&&N.type==="range")return!1;var k=window.getSelection(),$=k&&k.anchorNode,B=$?$===N||$.contains(N):!1;if(B)return!1;var I=go(A,N);if(!I)return!0;if(I?E=A:(E=A==="v"?"h":"v",I=go(A,N)),!I)return!1;if(!r.current&&"changedTouches"in p&&(w||C)&&(r.current=E),!E)return!0;var D=r.current||E;return Sc(D,b,p,D==="h"?w:C,!0)},[]),l=c.useCallback(function(p){var b=p;if(!(!Je.length||Je[Je.length-1]!==s)){var y="deltaY"in b?yo(b):Ot(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&Cc(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(xo).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=w.length>0?a(b,w[0]):!i.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),u=c.useCallback(function(p,b,y,x){var w={name:p,delta:b,target:y,should:x,shadowParent:Pc(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=c.useCallback(function(p){n.current=Ot(p),r.current=void 0},[]),d=c.useCallback(function(p){u(p.type,yo(p),p.target,a(p,e.lockRef.current))},[]),m=c.useCallback(function(p){u(p.type,Ot(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return Je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ze),document.addEventListener("touchmove",l,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,Ze),document.removeEventListener("touchmove",l,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(s,{styles:_c(o)}):null,h?c.createElement(hc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ac=nc(uo,kc);var wo=c.forwardRef(function(e,t){return c.createElement(Rt,we({},e,{ref:t,sideCar:Ac}))});wo.classNames=Rt.classNames;const Rc=wo;var Nc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Tt=new WeakMap,Mt={},kn=0,So=function(e){return e&&(e.host||So(e.parentNode))},Oc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=So(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Tc=function(e,t,n,r){var o=Oc(t,Array.isArray(e)?e:[e]);Mt[n]||(Mt[n]=new WeakMap);var s=Mt[n],i=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(a.has(m))f(m);else try{var h=m.getAttribute(r),v=h!==null&&h!=="false",p=(Qe.get(m)||0)+1,b=(s.get(m)||0)+1;Qe.set(m,p),s.set(m,b),i.push(m),p===1&&v&&Tt.set(m,!0),b===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),kn++,function(){i.forEach(function(d){var m=Qe.get(d)-1,h=s.get(d)-1;Qe.set(d,m),s.set(d,h),m||(Tt.has(d)||d.removeAttribute(r),Tt.delete(d)),h||d.removeAttribute(n)}),kn--,kn||(Qe=new WeakMap,Qe=new WeakMap,Tt=new WeakMap,Mt={})}},Mc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Nc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Tc(r,o,n,"aria-hidden")):function(){return null}};function Co(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function _o(e){const[t,n]=c.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ic=["top","right","bottom","left"],je=Math.min,pe=Math.max,It=Math.round,jt=Math.floor,Se=e=>({x:e,y:e}),jc={left:"right",right:"left",bottom:"top",top:"bottom"},Lc={start:"end",end:"start"};function Pn(e,t,n){return pe(e,je(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function An(e){return e==="x"?"y":"x"}function Rn(e){return e==="y"?"height":"width"}const $c=new Set(["top","bottom"]);function Ce(e){return $c.has(Ne(e))?"y":"x"}function Nn(e){return An(Ce(e))}function Dc(e,t,n){n===void 0&&(n=!1);const r=et(e),o=Nn(e),s=Rn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Lt(i)),[i,Lt(i)]}function Fc(e){const t=Lt(e);return[On(e),t,On(t)]}function On(e){return e.replace(/start|end/g,t=>Lc[t])}const Eo=["left","right"],ko=["right","left"],Bc=["top","bottom"],Vc=["bottom","top"];function zc(e,t,n){switch(e){case"top":case"bottom":return n?t?ko:Eo:t?Eo:ko;case"left":case"right":return t?Bc:Vc;default:return[]}}function Wc(e,t,n,r){const o=et(e);let s=zc(Ne(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(On)))),s}function Lt(e){return e.replace(/left|right|bottom|top/g,t=>jc[t])}function Hc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Po(e){return typeof e!="number"?Hc(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ao(e,t,n){let{reference:r,floating:o}=e;const s=Ce(t),i=Nn(t),a=Rn(i),l=Ne(t),u=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(et(t)){case"start":h[i]-=m*(n&&u?-1:1);break;case"end":h[i]+=m*(n&&u?-1:1);break}return h}const Uc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Ao(u,r,l),m=r,h={},v=0;for(let p=0;p<a.length;p++){const{name:b,fn:y}=a[p],{x,y:w,data:C,reset:E}=await y({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,d=w??d,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:d}=Ao(u,m,l)),p=-1)}return{x:f,y:d,placement:m,strategy:o,middlewareData:h}};async function ft(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=Re(t,e),v=Po(h),b=a[m?d==="floating"?"reference":"floating":d],y=$t(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),x=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},E=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-E.top+v.top)/C.y,bottom:(E.bottom-y.bottom+v.bottom)/C.y,left:(y.left-E.left+v.left)/C.x,right:(E.right-y.right+v.right)/C.x}}const Gc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=Re(e,t)||{};if(u==null)return{};const d=Po(f),m={x:n,y:r},h=Nn(o),v=Rn(h),p=await i.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[h]-m[h]-s.floating[v],E=m[h]-s.reference[h],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=N?N[w]:0;(!A||!await(i.isElement==null?void 0:i.isElement(N)))&&(A=a.floating[w]||s.floating[v]);const k=C/2-E/2,$=A/2-p[v]/2-1,B=je(d[y],$),I=je(d[x],$),D=B,W=A-p[v]-I,H=A/2-p[v]/2+k,G=Pn(D,H,W),M=!l.arrow&&et(o)!=null&&H!==G&&s.reference[v]/2-(H<D?B:I)-p[v]/2<0,j=M?H<D?H-D:H-W:0;return{[h]:m[h]+j,data:{[h]:G,centerOffset:H-G-j,...M&&{alignmentOffset:j}},reset:M}}}),Kc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...b}=Re(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(o),x=Ce(a),w=Ne(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(w||!p?[Lt(a)]:Fc(a)),N=v!=="none";!m&&N&&E.push(...Wc(a,p,v,C));const A=[a,...E],k=await ft(t,b),$=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&$.push(k[y]),d){const H=Dc(o,i,C);$.push(k[H[0]],k[H[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every(H=>H<=0)){var I,D;const H=(((I=s.flip)==null?void 0:I.index)||0)+1,G=A[H];if(G&&(!(d==="alignment"?x!==Ce(G):!1)||B.every(_=>Ce(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:H,overflows:B},reset:{placement:G}};let M=(D=B.filter(j=>j.overflows[0]<=0).sort((j,_)=>j.overflows[1]-_.overflows[1])[0])==null?void 0:D.placement;if(!M)switch(h){case"bestFit":{var W;const j=(W=B.filter(_=>{if(N){const q=Ce(_.placement);return q===x||q==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(q=>q>0).reduce((q,se)=>q+se,0)]).sort((_,q)=>_[1]-q[1])[0])==null?void 0:W[0];j&&(M=j);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Ro(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function No(e){return Ic.some(t=>e[t]>=0)}const Yc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const s=await ft(t,{...o,elementContext:"reference"}),i=Ro(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:No(i)}}}case"escaped":{const s=await ft(t,{...o,altBoundary:!0}),i=Ro(s,n.floating);return{data:{escapedOffsets:i,escaped:No(i)}}}default:return{}}}}},Oo=new Set(["left","top"]);async function qc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ne(n),a=et(n),l=Ce(n)==="y",u=Oo.has(i)?-1:1,f=s&&l?-1:1,d=Re(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),l?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const Xc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await qc(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Zc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Re(e,t),u={x:n,y:r},f=await ft(t,l),d=Ce(Ne(o)),m=An(d);let h=u[m],v=u[d];if(s){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=h+f[b],w=h-f[y];h=Pn(x,h,w)}if(i){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=v+f[b],w=v-f[y];v=Pn(x,v,w)}const p=a.fn({...t,[m]:h,[d]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:s,[d]:i}}}}}},Jc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Re(e,t),f={x:n,y:r},d=Ce(o),m=An(d);let h=f[m],v=f[d];const p=Re(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=m==="y"?"height":"width",C=s.reference[m]-s.floating[w]+b.mainAxis,E=s.reference[m]+s.reference[w]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(u){var y,x;const w=m==="y"?"width":"height",C=Oo.has(Ne(o)),E=s.reference[d]-s.floating[w]+(C&&((y=i.offset)==null?void 0:y[d])||0)+(C?0:b.crossAxis),N=s.reference[d]+s.reference[w]+(C?0:((x=i.offset)==null?void 0:x[d])||0)-(C?b.crossAxis:0);v<E?v=E:v>N&&(v=N)}return{[m]:h,[d]:v}}}},Qc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Re(e,t),f=await ft(t,u),d=Ne(o),m=et(o),h=Ce(o)==="y",{width:v,height:p}=s.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=m==="end"?"top":"bottom");const x=p-f.top-f.bottom,w=v-f.left-f.right,C=je(p-f[b],x),E=je(v-f[y],w),N=!t.middlewareData.shift;let A=C,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),N&&!m){const B=pe(f.left,0),I=pe(f.right,0),D=pe(f.top,0),W=pe(f.bottom,0);h?k=v-2*(B!==0||I!==0?B+I:pe(f.left,f.right)):A=p-2*(D!==0||W!==0?D+W:pe(f.top,f.bottom))}await l({...t,availableWidth:k,availableHeight:A});const $=await i.getDimensions(a.floating);return v!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function Dt(){return typeof window<"u"}function tt(e){return To(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _e(e){var t;return(t=(To(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function To(e){return Dt()?e instanceof Node||e instanceof me(e).Node:!1}function be(e){return Dt()?e instanceof Element||e instanceof me(e).Element:!1}function Ee(e){return Dt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Mo(e){return!Dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const eu=new Set(["inline","contents"]);function pt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eu.has(o)}const tu=new Set(["table","td","th"]);function nu(e){return tu.has(tt(e))}const ru=[":popover-open",":modal"];function Ft(e){return ru.some(t=>{try{return e.matches(t)}catch{return!1}})}const ou=["transform","translate","scale","rotate","perspective"],su=["transform","translate","scale","rotate","perspective","filter"],iu=["paint","layout","strict","content"];function Tn(e){const t=Mn(),n=be(e)?ye(e):e;return ou.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||su.some(r=>(n.willChange||"").includes(r))||iu.some(r=>(n.contain||"").includes(r))}function au(e){let t=Le(e);for(;Ee(t)&&!nt(t);){if(Tn(t))return t;if(Ft(t))return null;t=Le(t)}return null}function Mn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lu=new Set(["html","body","#document"]);function nt(e){return lu.has(tt(e))}function ye(e){return me(e).getComputedStyle(e)}function Bt(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mo(e)&&e.host||_e(e);return Mo(t)?t.host:t}function Io(e){const t=Le(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&pt(t)?t:Io(t)}function mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Io(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=me(o);if(s){const a=In(i);return t.concat(i,i.visualViewport||[],pt(o)?o:[],a&&n?mt(a):[])}return t.concat(o,mt(o,[],n))}function In(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=It(n)!==s||It(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function jn(e){return be(e)?e:e.contextElement}function rt(e){const t=jn(e);if(!Ee(t))return Se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=jo(t);let i=(s?It(n.width):n.width)/r,a=(s?It(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const cu=Se(0);function Lo(e){const t=me(e);return!Mn()||!t.visualViewport?cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=jn(e);let i=Se(1);t&&(r?be(r)&&(i=rt(r)):i=rt(e));const a=uu(s,n,r)?Lo(s):Se(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(s){const m=me(s),h=r&&be(r)?me(r):r;let v=m,p=In(v);for(;p&&r&&h!==v;){const b=rt(p),y=p.getBoundingClientRect(),x=ye(p),w=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*b.x,C=y.top+(p.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=w,u+=C,v=me(p),p=In(v)}}return $t({width:f,height:d,x:l,y:u})}function Vt(e,t){const n=Bt(e).scrollLeft;return t?t.left+n:Be(_e(e)).left+n}function $o(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Vt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function du(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=_e(r),a=t?Ft(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Se(1);const f=Se(0),d=Ee(r);if((d||!d&&!s)&&((tt(r)!=="body"||pt(i))&&(l=Bt(r)),Ee(r))){const h=Be(r);u=rt(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=i&&!d&&!s?$o(i,l):Se(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function fu(e){return Array.from(e.getClientRects())}function pu(e){const t=_e(e),n=Bt(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Vt(e);const a=-n.scrollTop;return ye(r).direction==="rtl"&&(i+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Do=25;function mu(e,t){const n=me(e),r=_e(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const f=Mn();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=Vt(r);if(u<=0){const f=r.ownerDocument,d=f.body,m=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-h);v<=Do&&(s-=v)}else u<=Do&&(s+=u);return{width:s,height:i,x:a,y:l}}const hu=new Set(["absolute","fixed"]);function gu(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ee(e)?rt(e):Se(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function Fo(e,t,n){let r;if(t==="viewport")r=mu(e,n);else if(t==="document")r=pu(_e(e));else if(be(t))r=gu(t,n);else{const o=Lo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(r)}function Bo(e,t){const n=Le(e);return n===t||!be(n)||nt(n)?!1:ye(n).position==="fixed"||Bo(n,t)}function vu(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(a=>be(a)&&tt(a)!=="body"),o=null;const s=ye(e).position==="fixed";let i=s?Le(e):e;for(;be(i)&&!nt(i);){const a=ye(i),l=Tn(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&hu.has(o.position)||pt(i)&&!l&&Bo(e,i))?r=r.filter(f=>f!==i):o=a,i=Le(i)}return t.set(e,r),r}function bu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ft(t)?[]:vu(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,f)=>{const d=Fo(t,f,o);return u.top=pe(d.top,u.top),u.right=je(d.right,u.right),u.bottom=je(d.bottom,u.bottom),u.left=pe(d.left,u.left),u},Fo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yu(e){const{width:t,height:n}=jo(e);return{width:t,height:n}}function xu(e,t,n){const r=Ee(t),o=_e(t),s=n==="fixed",i=Be(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Se(0);function u(){l.x=Vt(o)}if(r||!r&&!s)if((tt(t)!=="body"||pt(o))&&(a=Bt(t)),r){const h=Be(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?$o(o,a):Se(0),d=i.left+a.scrollLeft-l.x-f.x,m=i.top+a.scrollTop-l.y-f.y;return{x:d,y:m,width:i.width,height:i.height}}function Ln(e){return ye(e).position==="static"}function Vo(e,t){if(!Ee(e)||ye(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _e(e)===n&&(n=n.ownerDocument.body),n}function zo(e,t){const n=me(e);if(Ft(e))return n;if(!Ee(e)){let o=Le(e);for(;o&&!nt(o);){if(be(o)&&!Ln(o))return o;o=Le(o)}return n}let r=Vo(e,t);for(;r&&nu(r)&&Ln(r);)r=Vo(r,t);return r&&nt(r)&&Ln(r)&&!Tn(r)?n:r||au(e)||n}const wu=async function(e){const t=this.getOffsetParent||zo,n=this.getDimensions,r=await n(e.floating);return{reference:xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Su(e){return ye(e).direction==="rtl"}const Cu={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:_e,getClippingRect:bu,getOffsetParent:zo,getElementRects:wu,getClientRects:fu,getDimensions:yu,getScale:rt,isElement:be,isRTL:Su};function Wo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _u(e,t){let n=null,r;const o=_e(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:m,height:h}=u;if(a||t(),!m||!h)return;const v=jt(d),p=jt(o.clientWidth-(f+m)),b=jt(o.clientHeight-(d+h)),y=jt(f),w={rootMargin:-v+"px "+-p+"px "+-b+"px "+-y+"px",threshold:pe(0,je(1,l))||1};let C=!0;function E(N){const A=N[0].intersectionRatio;if(A!==l){if(!C)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Wo(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return i(!0),s}function Eu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=jn(e),f=o||s?[...u?mt(u):[],...mt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=u&&a?_u(u,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let v,p=l?Be(e):null;l&&b();function b(){const y=Be(e);p&&!Wo(p,y)&&n(),p=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const ku=Xc,Pu=Zc,Au=Kc,Ru=Qc,Nu=Yc,Ho=Gc,Ou=Jc,Tu=(e,t,n)=>{const r=new Map,o={platform:Cu,...n},s={...o.platform,_c:r};return Uc(e,t,{...o,platform:s})};var Mu=typeof document<"u",Iu=function(){},zt=Mu?V.useLayoutEffect:Iu;function Wt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Wt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Wt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Uo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Go(e,t){const n=Uo(e);return Math.round(t*n)/n}function $n(e){const t=c.useRef(e);return zt(()=>{t.current=e}),t}function ju(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);Wt(m,r)||h(r);const[v,p]=c.useState(null),[b,y]=c.useState(null),x=c.useCallback(_=>{_!==N.current&&(N.current=_,p(_))},[]),w=c.useCallback(_=>{_!==A.current&&(A.current=_,y(_))},[]),C=s||v,E=i||b,N=c.useRef(null),A=c.useRef(null),k=c.useRef(f),$=l!=null,B=$n(l),I=$n(o),D=$n(u),W=c.useCallback(()=>{if(!N.current||!A.current)return;const _={placement:t,strategy:n,middleware:m};I.current&&(_.platform=I.current),Tu(N.current,A.current,_).then(q=>{const se={...q,isPositioned:D.current!==!1};H.current&&!Wt(k.current,se)&&(k.current=se,St.flushSync(()=>{d(se)}))})},[m,t,n,I,D]);zt(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[u]);const H=c.useRef(!1);zt(()=>(H.current=!0,()=>{H.current=!1}),[]),zt(()=>{if(C&&(N.current=C),E&&(A.current=E),C&&E){if(B.current)return B.current(C,E,W);W()}},[C,E,W,B,$]);const G=c.useMemo(()=>({reference:N,floating:A,setReference:x,setFloating:w}),[x,w]),M=c.useMemo(()=>({reference:C,floating:E}),[C,E]),j=c.useMemo(()=>{const _={position:n,left:0,top:0};if(!M.floating)return _;const q=Go(M.floating,f.x),se=Go(M.floating,f.y);return a?{..._,transform:"translate("+q+"px, "+se+"px)",...Uo(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:se}},[n,a,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:W,refs:G,elements:M,floatingStyles:j}),[f,W,G,M,j])}const Lu=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ho({element:r.current,padding:o}).fn(n):{}:r?Ho({element:r,padding:o}).fn(n):{}}}},$u=(e,t)=>({...ku(e),options:[e,t]}),Du=(e,t)=>({...Pu(e),options:[e,t]}),Fu=(e,t)=>({...Ou(e),options:[e,t]}),Bu=(e,t)=>({...Au(e),options:[e,t]}),Vu=(e,t)=>({...Ru(e),options:[e,t]}),zu=(e,t)=>({...Nu(e),options:[e,t]}),Wu=(e,t)=>({...Lu(e),options:[e,t]});function Hu(e){const t=Uu(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Ku);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uu(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=qu(o),a=Yu(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gu=Symbol("radix.slottable");function Ku(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gu}function Yu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zu=Xu.reduce((e,t)=>{const n=Hu(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ju="Arrow",Ko=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return g.jsx(Zu.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ko.displayName=Ju;var Qu=Ko;function ed(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,td(o,...t)]}function td(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function nd(e){const t=rd(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(sd);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function rd(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=ad(o),a=id(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var od=Symbol("radix.slottable");function sd(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===od}function id(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ad(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ld=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yo=ld.reduce((e,t)=>{const n=nd(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Dn="Popper",[qo,Xo]=ed(Dn),[cd,Zo]=qo(Dn),Jo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return g.jsx(cd,{scope:t,anchor:r,onAnchorChange:o,children:n})};Jo.displayName=Dn;var Qo="PopperAnchor",es=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Zo(Qo,n),i=c.useRef(null),a=ne(t,i),l=c.useRef(null);return c.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||i.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:g.jsx(Yo.div,{...o,ref:a})});es.displayName=Qo;var Fn="PopperContent",[ud,dd]=qo(Fn),ts=c.forwardRef((e,t)=>{var P,Y,te,X,J,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...p}=e,b=Zo(Fn,n),[y,x]=c.useState(null),w=ne(t,ge=>x(ge)),[C,E]=c.useState(null),N=_o(C),A=(N==null?void 0:N.width)??0,k=(N==null?void 0:N.height)??0,$=r+(s!=="center"?"-"+s:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(u)?u:[u],D=I.length>0,W={padding:B,boundary:I.filter(pd),altBoundary:D},{refs:H,floatingStyles:G,placement:M,isPositioned:j,middlewareData:_}=ju({strategy:"fixed",placement:$,whileElementsMounted:(...ge)=>Eu(...ge,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[$u({mainAxis:o+k,alignmentAxis:i}),l&&Du({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Fu():void 0,...W}),l&&Bu({...W}),Vu({...W,apply:({elements:ge,rects:ke,availableWidth:bt,availableHeight:yt})=>{const{width:xt,height:qf}=ke.reference,Xt=ge.floating.style;Xt.setProperty("--radix-popper-available-width",`${bt}px`),Xt.setProperty("--radix-popper-available-height",`${yt}px`),Xt.setProperty("--radix-popper-anchor-width",`${xt}px`),Xt.setProperty("--radix-popper-anchor-height",`${qf}px`)}}),C&&Wu({element:C,padding:a}),md({arrowWidth:A,arrowHeight:k}),m&&zu({strategy:"referenceHidden",...W})]}),[q,se]=os(M),S=Te(v);ue(()=>{j&&(S==null||S())},[j,S]);const L=(P=_.arrow)==null?void 0:P.x,F=(Y=_.arrow)==null?void 0:Y.y,z=((te=_.arrow)==null?void 0:te.centerOffset)!==0,[de,fe]=c.useState();return ue(()=>{y&&fe(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:j?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(X=_.transformOrigin)==null?void 0:X.x,(J=_.transformOrigin)==null?void 0:J.y].join(" "),...((Z=_.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(ud,{scope:n,placedSide:q,onArrowChange:E,arrowX:L,arrowY:F,shouldHideArrow:z,children:g.jsx(Yo.div,{"data-side":q,"data-align":se,...p,ref:w,style:{...p.style,animation:j?void 0:"none"}})})})});ts.displayName=Fn;var ns="PopperArrow",fd={top:"bottom",right:"left",bottom:"top",left:"right"},rs=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=dd(ns,r),i=fd[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(Qu,{...o,ref:n,style:{...o.style,display:"block"}})})});rs.displayName=ns;function pd(e){return e!==null}var md=e=>({name:"transformOrigin",options:e,fn(t){var b,y,x;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=os(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let v="",p="";return u==="bottom"?(v=i?d:`${m}px`,p=`${-l}px`):u==="top"?(v=i?d:`${m}px`,p=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,p=i?d:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,p=i?d:`${h}px`),{data:{x:v,y:p}}}});function os(e){const[t,n="center"]=e.split("-");return[t,n]}var hd=Jo,gd=es,vd=ts,bd=rs;function Ht(e,[t,n]){return Math.min(n,Math.max(t,e))}function yd(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,xd(o,...t)]}function xd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ss(e){const t=wd(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Cd);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function wd(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Ed(o),a=_d(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sd=Symbol("radix.slottable");function Cd(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sd}function _d(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ed(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=kd.reduce((e,t)=>{const n=ss(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Pd=[" ","Enter","ArrowUp","ArrowDown"],Ad=[" ","Enter"],Ve="Select",[Ut,Gt,Rd]=Ur(Ve),[ot,sp]=yd(Ve,[Rd,Xo]),Kt=Xo(),[Nd,$e]=ot(Ve),[Od,Td]=ot(Ve),is=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:m,required:h,form:v}=e,p=Kt(t),[b,y]=c.useState(null),[x,w]=c.useState(null),[C,E]=c.useState(!1),N=Gr(u),[A,k]=gn({prop:r,defaultProp:o??!1,onChange:s,caller:Ve}),[$,B]=gn({prop:i,defaultProp:a,onChange:l,caller:Ve}),I=c.useRef(null),D=b?v||!!b.closest("form"):!0,[W,H]=c.useState(new Set),G=Array.from(W).map(M=>M.props.value).join(";");return g.jsx(hd,{...p,children:g.jsxs(Nd,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:vn(),value:$,onValueChange:B,open:A,onOpenChange:k,dir:N,triggerPointerDownPosRef:I,disabled:m,children:[g.jsx(Ut.Provider,{scope:t,children:g.jsx(Od,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(M=>{H(j=>new Set(j).add(M))},[]),onNativeOptionRemove:c.useCallback(M=>{H(j=>{const _=new Set(j);return _.delete(M),_})},[]),children:n})}),D?g.jsxs(As,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:d,value:$,onChange:M=>B(M.target.value),disabled:m,form:v,children:[$===void 0?g.jsx("option",{value:""}):null,Array.from(W)]},G):null]})})};is.displayName=Ve;var as="SelectTrigger",ls=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Kt(n),i=$e(as,n),a=i.disabled||r,l=ne(t,i.onTriggerChange),u=Gt(n),f=c.useRef("touch"),[d,m,h]=Ns(p=>{const b=u().filter(w=>!w.disabled),y=b.find(w=>w.value===i.value),x=Os(b,p,y);x!==void 0&&i.onValueChange(x.value)}),v=p=>{a||(i.onOpenChange(!0),h()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return g.jsx(gd,{asChild:!0,...s,children:g.jsx(he.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Rs(i.value)?"":void 0,...o,ref:l,onClick:ee(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&v(p)}),onPointerDown:ee(o.onPointerDown,p=>{f.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:ee(o.onKeyDown,p=>{const b=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(b&&p.key===" ")&&Pd.includes(p.key)&&(v(),p.preventDefault())})})})});ls.displayName=as;var cs="SelectValue",us=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=$e(cs,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=ne(t,l.onValueNodeChange);return ue(()=>{u(f)},[u,f]),g.jsx(he.span,{...a,ref:d,style:{pointerEvents:"none"},children:Rs(l.value)?g.jsx(g.Fragment,{children:i}):s})});us.displayName=cs;var Md="SelectIcon",ds=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return g.jsx(he.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ds.displayName=Md;var Id="SelectPortal",fs=e=>g.jsx(so,{asChild:!0,...e});fs.displayName=Id;var ze="SelectContent",ps=c.forwardRef((e,t)=>{const n=$e(ze,e.__scopeSelect),[r,o]=c.useState();if(ue(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?St.createPortal(g.jsx(ms,{scope:e.__scopeSelect,children:g.jsx(Ut.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(hs,{...e,ref:t})});ps.displayName=ze;var xe=10,[ms,De]=ot(ze),jd="SelectContentImpl",Ld=ss("SelectContent.RemoveScroll"),hs=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:b,...y}=e,x=$e(ze,n),[w,C]=c.useState(null),[E,N]=c.useState(null),A=ne(t,P=>C(P)),[k,$]=c.useState(null),[B,I]=c.useState(null),D=Gt(n),[W,H]=c.useState(!1),G=c.useRef(!1);c.useEffect(()=>{if(w)return Mc(w)},[w]),Gl();const M=c.useCallback(P=>{const[Y,...te]=D().map(Z=>Z.ref.current),[X]=te.slice(-1),J=document.activeElement;for(const Z of P)if(Z===J||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===Y&&E&&(E.scrollTop=0),Z===X&&E&&(E.scrollTop=E.scrollHeight),Z==null||Z.focus(),document.activeElement!==J))return},[D,E]),j=c.useCallback(()=>M([k,w]),[M,k,w]);c.useEffect(()=>{W&&j()},[W,j]);const{onOpenChange:_,triggerPointerDownPosRef:q}=x;c.useEffect(()=>{if(w){let P={x:0,y:0};const Y=X=>{var J,Z;P={x:Math.abs(Math.round(X.pageX)-(((J=q.current)==null?void 0:J.x)??0)),y:Math.abs(Math.round(X.pageY)-(((Z=q.current)==null?void 0:Z.y)??0))}},te=X=>{P.x<=10&&P.y<=10?X.preventDefault():w.contains(X.target)||_(!1),document.removeEventListener("pointermove",Y),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",te,{capture:!0})}}},[w,_,q]),c.useEffect(()=>{const P=()=>_(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[_]);const[se,S]=Ns(P=>{const Y=D().filter(J=>!J.disabled),te=Y.find(J=>J.ref.current===document.activeElement),X=Os(Y,P,te);X&&setTimeout(()=>X.ref.current.focus())}),L=c.useCallback((P,Y,te)=>{const X=!G.current&&!te;(x.value!==void 0&&x.value===Y||X)&&($(P),X&&(G.current=!0))},[x.value]),F=c.useCallback(()=>w==null?void 0:w.focus(),[w]),z=c.useCallback((P,Y,te)=>{const X=!G.current&&!te;(x.value!==void 0&&x.value===Y||X)&&I(P)},[x.value]),de=r==="popper"?Bn:gs,fe=de===Bn?{side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:b}:{};return g.jsx(ms,{scope:n,content:w,viewport:E,onViewportChange:N,itemRefCallback:L,selectedItem:k,onItemLeave:F,itemTextRefCallback:z,focusSelectedItem:j,selectedItemText:B,position:r,isPositioned:W,searchRef:se,children:g.jsx(Rc,{as:Ld,allowPinchZoom:!0,children:g.jsx(eo,{asChild:!0,trapped:x.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:ee(o,P=>{var Y;(Y=x.trigger)==null||Y.focus({preventScroll:!0}),P.preventDefault()}),children:g.jsx(Xr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:g.jsx(de,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:P=>P.preventDefault(),...y,...fe,onPlaced:()=>H(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ee(y.onKeyDown,P=>{const Y=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!Y&&P.key.length===1&&S(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let X=D().filter(J=>!J.disabled).map(J=>J.ref.current);if(["ArrowUp","End"].includes(P.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const J=P.target,Z=X.indexOf(J);X=X.slice(Z+1)}setTimeout(()=>M(X)),P.preventDefault()}})})})})})})});hs.displayName=jd;var $d="SelectItemAlignedPosition",gs=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=$e(ze,n),i=De(ze,n),[a,l]=c.useState(null),[u,f]=c.useState(null),d=ne(t,A=>f(A)),m=Gt(n),h=c.useRef(!1),v=c.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=i,w=c.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&b&&y){const A=s.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),B=y.getBoundingClientRect();if(s.dir!=="rtl"){const J=B.left-k.left,Z=$.left-J,ge=A.left-Z,ke=A.width+ge,bt=Math.max(ke,k.width),yt=window.innerWidth-xe,xt=Ht(Z,[xe,Math.max(xe,yt-bt)]);a.style.minWidth=ke+"px",a.style.left=xt+"px"}else{const J=k.right-B.right,Z=window.innerWidth-$.right-J,ge=window.innerWidth-A.right-Z,ke=A.width+ge,bt=Math.max(ke,k.width),yt=window.innerWidth-xe,xt=Ht(Z,[xe,Math.max(xe,yt-bt)]);a.style.minWidth=ke+"px",a.style.right=xt+"px"}const I=m(),D=window.innerHeight-xe*2,W=p.scrollHeight,H=window.getComputedStyle(u),G=parseInt(H.borderTopWidth,10),M=parseInt(H.paddingTop,10),j=parseInt(H.borderBottomWidth,10),_=parseInt(H.paddingBottom,10),q=G+M+W+_+j,se=Math.min(b.offsetHeight*5,q),S=window.getComputedStyle(p),L=parseInt(S.paddingTop,10),F=parseInt(S.paddingBottom,10),z=A.top+A.height/2-xe,de=D-z,fe=b.offsetHeight/2,P=b.offsetTop+fe,Y=G+M+P,te=q-Y;if(Y<=z){const J=I.length>0&&b===I[I.length-1].ref.current;a.style.bottom="0px";const Z=u.clientHeight-p.offsetTop-p.offsetHeight,ge=Math.max(de,fe+(J?F:0)+Z+j),ke=Y+ge;a.style.height=ke+"px"}else{const J=I.length>0&&b===I[0].ref.current;a.style.top="0px";const ge=Math.max(z,G+p.offsetTop+(J?L:0)+fe)+te;a.style.height=ge+"px",p.scrollTop=Y-z+p.offsetTop}a.style.margin=`${xe}px 0`,a.style.minHeight=se+"px",a.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,a,u,p,b,y,s.dir,r]);ue(()=>w(),[w]);const[C,E]=c.useState();ue(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const N=c.useCallback(A=>{A&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return g.jsx(Fd,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:g.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:g.jsx(he.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});gs.displayName=$d;var Dd="SelectPopperPosition",Bn=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=xe,...s}=e,i=Kt(n);return g.jsx(vd,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});Bn.displayName=Dd;var[Fd,Vn]=ot(ze,{}),zn="SelectViewport",vs=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=De(zn,n),i=Vn(zn,n),a=ne(t,s.onViewportChange),l=c.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),g.jsx(Ut.Slot,{scope:n,children:g.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ee(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&d){const h=Math.abs(l.current-f.scrollTop);if(h>0){const v=window.innerHeight-xe*2,p=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),y=Math.max(p,b);if(y<v){const x=y+h,w=Math.min(v,x),C=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,d.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});vs.displayName=zn;var bs="SelectGroup",[Bd,Vd]=ot(bs),zd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=vn();return g.jsx(Bd,{scope:n,id:o,children:g.jsx(he.div,{role:"group","aria-labelledby":o,...r,ref:t})})});zd.displayName=bs;var ys="SelectLabel",Wd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Vd(ys,n);return g.jsx(he.div,{id:o.id,...r,ref:t})});Wd.displayName=ys;var Yt="SelectItem",[Hd,xs]=ot(Yt),ws=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=$e(Yt,n),l=De(Yt,n),u=a.value===r,[f,d]=c.useState(s??""),[m,h]=c.useState(!1),v=ne(t,x=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,x,r,o)}),p=vn(),b=c.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(Hd,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:c.useCallback(x=>{d(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:g.jsx(Ut.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:g.jsx(he.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:ee(i.onFocus,()=>h(!0)),onBlur:ee(i.onBlur,()=>h(!1)),onClick:ee(i.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:ee(i.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:ee(i.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:ee(i.onPointerMove,x=>{var w;b.current=x.pointerType,o?(w=l.onItemLeave)==null||w.call(l):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ee(i.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:ee(i.onKeyDown,x=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(Ad.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});ws.displayName=Yt;var ht="SelectItemText",Ss=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=$e(ht,n),a=De(ht,n),l=xs(ht,n),u=Td(ht,n),[f,d]=c.useState(null),m=ne(t,y=>d(y),l.onItemTextChange,y=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,y,l.value,l.disabled)}),h=f==null?void 0:f.textContent,v=c.useMemo(()=>g.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return ue(()=>(p(v),()=>b(v)),[p,b,v]),g.jsxs(g.Fragment,{children:[g.jsx(he.span,{id:l.textId,...s,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?St.createPortal(s.children,i.valueNode):null]})});Ss.displayName=ht;var Cs="SelectItemIndicator",_s=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return xs(Cs,n).isSelected?g.jsx(he.span,{"aria-hidden":!0,...r,ref:t}):null});_s.displayName=Cs;var Wn="SelectScrollUpButton",Es=c.forwardRef((e,t)=>{const n=De(Wn,e.__scopeSelect),r=Vn(Wn,e.__scopeSelect),[o,s]=c.useState(!1),i=ne(t,r.onScrollButtonChange);return ue(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?g.jsx(Ps,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Es.displayName=Wn;var Hn="SelectScrollDownButton",ks=c.forwardRef((e,t)=>{const n=De(Hn,e.__scopeSelect),r=Vn(Hn,e.__scopeSelect),[o,s]=c.useState(!1),i=ne(t,r.onScrollButtonChange);return ue(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;s(f)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?g.jsx(Ps,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});ks.displayName=Hn;var Ps=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=De("SelectScrollButton",n),i=c.useRef(null),a=Gt(n),l=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),ue(()=>{var f;const u=a().find(d=>d.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),g.jsx(he.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ee(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ee(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ee(o.onPointerLeave,()=>{l()})})}),Ud="SelectSeparator",Gd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return g.jsx(he.div,{"aria-hidden":!0,...r,ref:t})});Gd.displayName=Ud;var Un="SelectArrow",Kd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt(n),s=$e(Un,n),i=De(Un,n);return s.open&&i.position==="popper"?g.jsx(bd,{...o,...r,ref:t}):null});Kd.displayName=Un;var Yd="SelectBubbleInput",As=c.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=c.useRef(null),s=ne(r,o),i=Co(t);return c.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const d=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),g.jsx(he.select,{...n,style:{...Wr,...n.style},ref:s,defaultValue:t})});As.displayName=Yd;function Rs(e){return e===""||e===void 0}function Ns(e){const t=Te(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Os(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=qd(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function qd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Xd=is,Zd=ls,Jd=us,Qd=ds,ef=fs,tf=ps,nf=vs,rf=ws,of=Ss,sf=_s,af=Es,lf=ks;function cf(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,uf(o,...t)]}function uf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function df(e){const t=ff(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(mf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ff(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=gf(o),a=hf(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pf=Symbol("radix.slottable");function mf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pf}function hf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function gf(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gt=vf.reduce((e,t)=>{const n=df(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ts=["PageUp","PageDown"],Ms=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Is={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},st="Slider",[Gn,bf,yf]=Ur(st),[js,ip]=cf(st,[yf]),[xf,qt]=js(st),Ls=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:v,...p}=e,b=c.useRef(new Set),y=c.useRef(0),w=i==="horizontal"?wf:Sf,[C=[],E]=gn({prop:f,defaultProp:u,onChange:I=>{var W;(W=[...b.current][y.current])==null||W.focus(),d(I)}}),N=c.useRef(C);function A(I){const D=Pf(C,I);B(I,D)}function k(I){B(I,y.current)}function $(){const I=N.current[y.current];C[y.current]!==I&&m(C)}function B(I,D,{commit:W}={commit:!1}){const H=Of(s),G=Tf(Math.round((I-r)/s)*s+r,H),M=Ht(G,[r,o]);E((j=[])=>{const _=Ef(j,M,D);if(Nf(_,l*s)){y.current=_.indexOf(M);const q=String(_)!==String(j);return q&&W&&m(_),q?_:j}else return j})}return g.jsx(xf,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:C,orientation:i,form:v,children:g.jsx(Gn.Provider,{scope:e.__scopeSlider,children:g.jsx(Gn.Slot,{scope:e.__scopeSlider,children:g.jsx(w,{"aria-disabled":a,"data-disabled":a?"":void 0,...p,ref:t,onPointerDown:ee(p.onPointerDown,()=>{a||(N.current=C)}),min:r,max:o,inverted:h,onSlideStart:a?void 0:A,onSlideMove:a?void 0:k,onSlideEnd:a?void 0:$,onHomeKeyDown:()=>!a&&B(r,0,{commit:!0}),onEndKeyDown:()=>!a&&B(o,C.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:D})=>{if(!a){const G=Ts.includes(I.key)||I.shiftKey&&Ms.includes(I.key)?10:1,M=y.current,j=C[M],_=s*G*D;B(j+_,M,{commit:!0})}}})})})})});Ls.displayName=st;var[$s,Ds]=js(st,{startEdge:"left",endEdge:"right",size:"width",direction:1}),wf=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,m]=c.useState(null),h=ne(t,w=>m(w)),v=c.useRef(void 0),p=Gr(o),b=p==="ltr",y=b&&!s||!b&&s;function x(w){const C=v.current||d.getBoundingClientRect(),E=[0,C.width],A=qn(E,y?[n,r]:[r,n]);return v.current=C,A(w-C.left)}return g.jsx($s,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:g.jsx(Fs,{dir:p,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const C=x(w.clientX);i==null||i(C)},onSlideMove:w=>{const C=x(w.clientX);a==null||a(C)},onSlideEnd:()=>{v.current=void 0,l==null||l()},onStepKeyDown:w=>{const E=Is[y?"from-left":"from-right"].includes(w.key);u==null||u({event:w,direction:E?-1:1})}})})}),Sf=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...u}=e,f=c.useRef(null),d=ne(t,f),m=c.useRef(void 0),h=!o;function v(p){const b=m.current||f.current.getBoundingClientRect(),y=[0,b.height],w=qn(y,h?[r,n]:[n,r]);return m.current=b,w(p-b.top)}return g.jsx($s,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:g.jsx(Fs,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const b=v(p.clientY);s==null||s(b)},onSlideMove:p=>{const b=v(p.clientY);i==null||i(b)},onSlideEnd:()=>{m.current=void 0,a==null||a()},onStepKeyDown:p=>{const y=Is[h?"from-bottom":"from-top"].includes(p.key);l==null||l({event:p,direction:y?-1:1})}})})}),Fs=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...u}=e,f=qt(st,n);return g.jsx(gt.span,{...u,ref:t,onKeyDown:ee(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Ts.concat(Ms).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ee(e.onPointerDown,d=>{const m=d.target;m.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(m)?m.focus():r(d)}),onPointerMove:ee(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:ee(e.onPointerUp,d=>{const m=d.target;m.hasPointerCapture(d.pointerId)&&(m.releasePointerCapture(d.pointerId),s(d))})})}),Bs="SliderTrack",Vs=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=qt(Bs,n);return g.jsx(gt.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Vs.displayName=Bs;var Kn="SliderRange",zs=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=qt(Kn,n),s=Ds(Kn,n),i=c.useRef(null),a=ne(t,i),l=o.values.length,u=o.values.map(m=>Us(m,o.min,o.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return g.jsx(gt.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:d+"%"}})});zs.displayName=Kn;var Yn="SliderThumb",Ws=c.forwardRef((e,t)=>{const n=bf(e.__scopeSlider),[r,o]=c.useState(null),s=ne(t,a=>o(a)),i=c.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return g.jsx(Cf,{...e,ref:s,index:i})}),Cf=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=qt(Yn,n),a=Ds(Yn,n),[l,u]=c.useState(null),f=ne(t,x=>u(x)),d=l?i.form||!!l.closest("form"):!0,m=_o(l),h=i.values[r],v=h===void 0?0:Us(h,i.min,i.max),p=kf(r,i.values.length),b=m==null?void 0:m[a.size],y=b?Af(b,v,a.direction):0;return c.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),g.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${v}% + ${y}px)`},children:[g.jsx(Gn.ItemSlot,{scope:e.__scopeSlider,children:g.jsx(gt.span,{role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:f,style:h===void 0?{display:"none"}:e.style,onFocus:ee(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&g.jsx(Hs,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:h},r)]})});Ws.displayName=Yn;var _f="RadioBubbleInput",Hs=c.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=c.useRef(null),s=ne(o,r),i=Co(t);return c.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const d=new Event("input",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),g.jsx(gt.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Hs.displayName=_f;function Ef(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Us(e,t,n){const s=100/(n-t)*(e-t);return Ht(s,[0,100])}function kf(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Pf(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Af(e,t,n){const r=e/2,s=qn([0,50],[0,r]);return(r-s(t)*n)*n}function Rf(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Nf(e,t){if(t>0){const n=Rf(e);return Math.min(...n)>=t}return!0}function qn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Of(e){return(String(e).split(".")[1]||"").length}function Tf(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Gs=Ls,Ks=Vs,Ys=zs,qs=Ws;const Mf=fr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function If({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?Qt:"button";return g.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:Q(Mf({variant:t,size:n,className:e})),...o})}function vt({className:e,type:t,...n}){return g.jsx("input",{type:t,"data-slot":"input",className:Q("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function jf({...e}){return g.jsx(Xd,{"data-slot":"select",...e})}function Lf({...e}){return g.jsx(Jd,{"data-slot":"select-value",...e})}function $f({className:e,size:t="default",children:n,...r}){return g.jsxs(Zd,{"data-slot":"select-trigger","data-size":t,className:Q("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,g.jsx(Qd,{asChild:!0,children:g.jsx(Nr,{className:"size-4 opacity-50"})})]})}function Df({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return g.jsx(ef,{children:g.jsxs(tf,{"data-slot":"select-content",className:Q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[g.jsx(Bf,{}),g.jsx(nf,{className:Q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),g.jsx(Vf,{})]})})}function Ff({className:e,children:t,...n}){return g.jsxs(rf,{"data-slot":"select-item",className:Q("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[g.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:g.jsx(sf,{children:g.jsx(Xi,{className:"size-4"})})}),g.jsx(of,{children:t})]})}function Bf({className:e,...t}){return g.jsx(af,{"data-slot":"select-scroll-up-button",className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Ji,{className:"size-4"})})}function Vf({className:e,...t}){return g.jsx(lf,{"data-slot":"select-scroll-down-button",className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Nr,{className:"size-4"})})}const Xs=V.createContext(void 0),We=()=>{const e=V.useContext(Xs);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},zf=({value:e,defaultValue:t="#000000",onChange:n,className:r,...o})=>{const s=re(e),i=re(t),[a,l]=V.useState(s.hue()||i.hue()||0),[u,f]=V.useState(s.saturationl()||i.saturationl()||100),[d,m]=V.useState(s.lightness()||i.lightness()||50),[h,v]=V.useState(s.alpha()*100||i.alpha()*100),[p,b]=V.useState("hex");return V.useEffect(()=>{if(e){const y=re.rgb(e).rgb().object();l(y.r),f(y.g),m(y.b),v(y.a)}},[e]),V.useEffect(()=>{if(n){const x=re.hsl(a,u,d).alpha(h/100).rgb().array();n([x[0],x[1],x[2],h/100])}},[a,u,d,h,n]),g.jsx(Xs.Provider,{value:{hue:a,saturation:u,lightness:d,alpha:h,mode:p,setHue:l,setSaturation:f,setLightness:m,setAlpha:v,setMode:b},children:g.jsx("div",{className:Q("flex size-full flex-col gap-4",r),...o})})},Zs=V.memo(({className:e,...t})=>{const n=V.useRef(null),[r,o]=V.useState(!1),[s,i]=V.useState(0),[a,l]=V.useState(0),{hue:u,setSaturation:f,setLightness:d}=We(),m=V.useMemo(()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),
129
+ linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),
130
+ hsl(${u}, 100%, 50%)`,[u]),h=V.useCallback(v=>{if(!(r&&n.current))return;const p=n.current.getBoundingClientRect(),b=Math.max(0,Math.min(1,(v.clientX-p.left)/p.width)),y=Math.max(0,Math.min(1,(v.clientY-p.top)/p.height));i(b),l(y),f(b*100);const w=(b<.01?100:50+50*(1-b))*(1-y);d(w)},[r,f,d]);return V.useEffect(()=>{const v=()=>o(!1);return r&&(window.addEventListener("pointermove",h),window.addEventListener("pointerup",v)),()=>{window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",v)}},[r,h]),g.jsx("div",{className:Q("relative size-full cursor-crosshair rounded",e),onPointerDown:v=>{v.preventDefault(),o(!0),h(v.nativeEvent)},ref:n,style:{background:m},...t,children:g.jsx("div",{className:"-translate-x-1/2 -translate-y-1/2 pointer-events-none absolute h-4 w-4 rounded-full border-2 border-white",style:{left:`${s*100}%`,top:`${a*100}%`,boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})});Zs.displayName="ColorPickerSelection";const Wf=({className:e,...t})=>{const{hue:n,setHue:r}=We();return g.jsxs(Gs,{className:Q("relative flex h-4 w-full touch-none",e),max:360,onValueChange:([o])=>r(o),step:1,value:[n],...t,children:[g.jsx(Ks,{className:"relative my-0.5 h-3 w-full grow rounded-full bg-[linear-gradient(90deg,#FF0000,#FFFF00,#00FF00,#00FFFF,#0000FF,#FF00FF,#FF0000)]",children:g.jsx(Ys,{className:"absolute h-full"})}),g.jsx(qs,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},Hf=({className:e,...t})=>{const{alpha:n,setAlpha:r}=We();return g.jsxs(Gs,{className:Q("relative flex h-4 w-full touch-none",e),max:100,onValueChange:([o])=>r(o),step:1,value:[n],...t,children:[g.jsxs(Ks,{className:"relative my-0.5 h-3 w-full grow rounded-full",style:{background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") left center'},children:[g.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-r from-transparent to-black/50"}),g.jsx(Ys,{className:"absolute h-full rounded-full bg-transparent"})]}),g.jsx(qs,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},Uf=({className:e,...t})=>{const{setHue:n,setSaturation:r,setLightness:o,setAlpha:s}=We(),i=async()=>{try{const l=await new EyeDropper().open(),u=re(l.sRGBHex),[f,d,m]=u.hsl().array();n(f),r(d),o(m),s(100)}catch(a){console.error("EyeDropper failed:",a)}};return g.jsx(If,{className:Q("shrink-0 text-muted-foreground",e),onClick:i,size:"icon",variant:"outline",type:"button",...t,children:g.jsx(ea,{size:16})})},Gf=["hex","rgb","css","hsl"],Kf=({className:e,...t})=>{const{mode:n,setMode:r}=We();return g.jsxs(jf,{onValueChange:r,value:n,children:[g.jsx($f,{className:"h-8 w-20 shrink-0 text-xs",...t,children:g.jsx(Lf,{placeholder:"Mode"})}),g.jsx(Df,{children:Gf.map(o=>g.jsx(Ff,{className:"text-xs",value:o,children:o.toUpperCase()},o))})]})},Xn=({className:e,...t})=>g.jsxs("div",{className:"relative",children:[g.jsx(vt,{readOnly:!0,type:"text",...t,className:Q("h-8 w-[3.25rem] rounded-l-none bg-secondary px-2 text-xs shadow-none",e)}),g.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2 text-muted-foreground text-xs",children:"%"})]}),Yf=({className:e,...t})=>{const{hue:n,saturation:r,lightness:o,alpha:s,mode:i}=We(),a=re.hsl(n,r,o,s/100);if(i==="hex"){const l=a.hex();return g.jsxs("div",{className:Q("-space-x-px relative flex w-full items-center rounded-md shadow-sm",e),...t,children:[g.jsx(vt,{className:"h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:l}),g.jsx(Xn,{value:s})]})}if(i==="rgb"){const l=a.rgb().array().map(u=>Math.round(u));return g.jsxs("div",{className:Q("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[l.map((u,f)=>g.jsx(vt,{className:Q("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",f&&"rounded-l-none",e),readOnly:!0,type:"text",value:u},f)),g.jsx(Xn,{value:s})]})}if(i==="css"){const l=a.rgb().array().map(u=>Math.round(u));return g.jsx("div",{className:Q("w-full rounded-md shadow-sm",e),...t,children:g.jsx(vt,{className:"h-8 w-full bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:`rgba(${l.join(", ")}, ${s}%)`,...t})})}if(i==="hsl"){const l=a.hsl().array().map(u=>Math.round(u));return g.jsxs("div",{className:Q("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[l.map((u,f)=>g.jsx(vt,{className:Q("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",f&&"rounded-l-none",e),readOnly:!0,type:"text",value:u},f)),g.jsx(Xn,{value:s})]})}return null};K.Avatar=Sa,K.AvatarFallback=_a,K.AvatarImage=Ca,K.Breadcrumb=ta,K.BreadcrumbEllipsis=aa,K.BreadcrumbItem=ra,K.BreadcrumbLink=oa,K.BreadcrumbList=na,K.BreadcrumbPage=sa,K.BreadcrumbSeparator=ia,K.Button=Wi,K.ColorPicker=zf,K.ColorPickerAlpha=Hf,K.ColorPickerEyeDropper=Uf,K.ColorPickerFormat=Yf,K.ColorPickerHue=Wf,K.ColorPickerOutput=Kf,K.ColorPickerSelection=Zs,K.Flex=Jt,K.Grid=rr,K.Input=Hi,K.Paper=ni,K.Typography=or,K.buttonVariants=Pr,K.useColorPicker=We,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});