@antoniobenincasa/ui 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,66 +1,51 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),Vs=require("react-dom"),be=require("lucide-react");function op(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=op(I),dn=op(Vs);var _r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cr={exports:{}},Vt={};var Bc;function uy(){if(Bc)return Vt;Bc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Vt.Fragment=t,Vt.jsx=r,Vt.jsxs=r,Vt}var zt={};var Vc;function dy(){return Vc||(Vc=1,process.env.NODE_ENV!=="production"&&(function(){function e(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===j?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case S:return"SuspenseList";case B:return"Activity"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case h:return"Portal";case _:return T.displayName||"Context";case w:return(T._context.displayName||"Context")+".Consumer";case C:var R=T.render;return T=T.displayName,T||(T=R.displayName||R.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case P:return R=T.displayName||null,R!==null?R:e(T.type)||"Memo";case M:R=T._payload,T=T._init;try{return e(T(R))}catch{}}return null}function t(T){return""+T}function r(T){try{t(T);var R=!1}catch{R=!0}if(R){R=console;var N=R.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return N.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),t(T)}}function n(T){if(T===m)return"<>";if(typeof T=="object"&&T!==null&&T.$$typeof===M)return"<...>";try{var R=e(T);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function o(){var T=U.A;return T===null?null:T.getOwner()}function a(){return Error("react-stack-top-frame")}function i(T){if(D.call(T,"key")){var R=Object.getOwnPropertyDescriptor(T,"key").get;if(R&&R.isReactWarning)return!1}return T.key!==void 0}function s(T,R){function N(){k||(k=!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)",R))}N.isReactWarning=!0,Object.defineProperty(T,"key",{get:N,configurable:!0})}function c(){var T=e(this.type);return K[T]||(K[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function l(T,R,N,L,z,J){var O=N.ref;return T={$$typeof:y,type:T,key:R,props:N,_owner:L},(O!==void 0?O:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:c}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function d(T,R,N,L,z,J){var O=R.children;if(O!==void 0)if(L)if(F(O)){for(L=0;L<O.length;L++)f(O[L]);Object.freeze&&Object.freeze(O)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(O);if(D.call(R,"key")){O=e(T);var X=Object.keys(R).filter(function(te){return te!=="key"});L=0<X.length?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}",ee[O+L]||(X=0<X.length?"{"+X.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),Sr=require("react-dom"),ge=require("lucide-react");function ea(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 i=ea(H),vn=ea(Sr);var Wt={exports:{}},xt={};var so;function hl(){if(so)return xt;so=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var c in o)c!=="key"&&(a[c]=o[c])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return xt.Fragment=t,xt.jsx=n,xt.jsxs=n,xt}var bt={};var io;function xl(){return io||(io=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===B?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case h:return"Fragment";case C:return"Profiler";case b:return"StrictMode";case M:return"Suspense";case _:return"SuspenseList";case z:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case m:return"Portal";case y:return P.displayName||"Context";case w:return(P._context.displayName||"Context")+".Consumer";case E:var S=P.render;return P=P.displayName,P||(P=S.displayName||S.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case N:return S=P.displayName||null,S!==null?S:e(P.type)||"Memo";case O:S=P._payload,P=P._init;try{return e(P(S))}catch{}}return null}function t(P){return""+P}function n(P){try{t(P);var S=!1}catch{S=!0}if(S){S=console;var T=S.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return T.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),t(P)}}function r(P){if(P===h)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===O)return"<...>";try{var S=e(P);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var P=Y.A;return P===null?null:P.getOwner()}function a(){return Error("react-stack-top-frame")}function s(P){if(Z.call(P,"key")){var S=Object.getOwnPropertyDescriptor(P,"key").get;if(S&&S.isReactWarning)return!1}return P.key!==void 0}function c(P,S){function T(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}T.isReactWarning=!0,Object.defineProperty(P,"key",{get:T,configurable:!0})}function l(){var P=e(this.type);return X[P]||(X[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function u(P,S,T,A,j,K){var R=T.ref;return P={$$typeof:x,type:P,key:S,props:T,_owner:A},(R!==void 0?R:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:l}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function f(P,S,T,A,j,K){var R=S.children;if(R!==void 0)if(A)if(G(R)){for(A=0;A<R.length;A++)p(R[A]);Object.freeze&&Object.freeze(R)}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(R);if(Z.call(S,"key")){R=e(P);var U=Object.keys(S).filter(function(ee){return ee!=="key"});A=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",ne[R+A]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,L,O,X,O),ee[O+L]=!0)}if(O=null,N!==void 0&&(r(N),O=""+N),i(R)&&(r(R.key),O=""+R.key),"key"in R){N={};for(var Q in R)Q!=="key"&&(N[Q]=R[Q])}else N=R;return O&&s(N,typeof T=="function"?T.displayName||T.name||"Unknown":T),l(T,O,N,o(),z,J)}function f(T){v(T)?T._store&&(T._store.validated=1):typeof T=="object"&&T!==null&&T.$$typeof===M&&(T._payload.status==="fulfilled"?v(T._payload.value)&&T._payload.value._store&&(T._payload.value._store.validated=1):T._store&&(T._store.validated=1))}function v(T){return typeof T=="object"&&T!==null&&T.$$typeof===y}var g=I,y=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),_=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),U=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,F=Array.isArray,V=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(T){return T()}};var k,K={},A=g.react_stack_bottom_frame.bind(g,a)(),$=V(n(a)),ee={};zt.Fragment=m,zt.jsx=function(T,R,N){var L=1e4>U.recentlyCreatedOwnerStacks++;return d(T,R,N,!1,L?Error("react-stack-top-frame"):A,L?V(n(T)):$)},zt.jsxs=function(T,R,N){var L=1e4>U.recentlyCreatedOwnerStacks++;return d(T,R,N,!0,L?Error("react-stack-top-frame"):A,L?V(n(T)):$)}})()),zt}var zc;function fy(){return zc||(zc=1,process.env.NODE_ENV==="production"?Cr.exports=uy():Cr.exports=dy()),Cr.exports}var p=fy();function Wc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fe(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Wc(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Wc(e[o],null)}}}}function ne(...e){return u.useCallback(fe(...e),e)}var py=Symbol.for("react.lazy"),Wr=u[" use ".trim().toString()];function my(e){return typeof e=="object"&&e!==null&&"then"in e}function ap(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===py&&"_payload"in e&&my(e._payload)}function zs(e){const t=vy(e),r=u.forwardRef((n,o)=>{let{children:a,...i}=n;ap(a)&&typeof Wr=="function"&&(a=Wr(a._payload));const s=u.Children.toArray(a),c=s.find(gy);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var ip=zs("Slot");function vy(e){const t=u.forwardRef((r,n)=>{let{children:o,...a}=r;if(ap(o)&&typeof Wr=="function"&&(o=Wr(o._payload)),u.isValidElement(o)){const i=by(o),s=yy(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hy=Symbol("radix.slottable");function gy(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hy}function yy(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function by(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function sp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=sp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ze(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=sp(e))&&(n&&(n+=" "),n+=t);return n}const Uc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hc=ze,cp=(e,t)=>r=>{var n;if(t?.variants==null)return Hc(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const d=r?.[l],f=a?.[l];if(d===null)return null;const v=Uc(d)||Uc(f);return o[l][v]}),s=r&&Object.entries(r).reduce((l,d)=>{let[f,v]=d;return v===void 0||(l[f]=v),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,d)=>{let{class:f,className:v,...g}=d;return Object.entries(g).every(y=>{let[h,m]=y;return Array.isArray(m)?m.includes({...a,...s}[h]):{...a,...s}[h]===m})?[...l,f,v]:l},[]);return Hc(e,i,c,r?.class,r?.className)},wy=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},xy=(e,t)=>({classGroupId:e,validator:t}),lp=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ur="-",Gc=[],_y="arbitrary..",Cy=e=>{const t=Ey(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Sy(i);const s=i.split(Ur),c=s[0]===""&&s.length>1?1:0;return up(s,c,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const c=n[i],l=r[i];return c?l?wy(l,c):c:l||Gc}return r[i]||Gc}}},up=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],a=r.nextPart.get(o);if(a){const l=up(e,t+1,a);if(l)return l}const i=r.validators;if(i===null)return;const s=t===0?e.join(Ur):e.slice(t).join(Ur),c=i.length;for(let l=0;l<c;l++){const d=i[l];if(d.validator(s))return d.classGroupId}},Sy=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?_y+n:void 0})(),Ey=e=>{const{theme:t,classGroups:r}=e;return Ry(r,t)},Ry=(e,t)=>{const r=lp();for(const n in e){const o=e[n];Ws(o,r,n,t)}return r},Ws=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];Py(i,t,r,n)}},Py=(e,t,r,n)=>{if(typeof e=="string"){Ty(e,t,r);return}if(typeof e=="function"){Oy(e,t,r,n);return}Ay(e,t,r,n)},Ty=(e,t,r)=>{const n=e===""?t:dp(t,e);n.classGroupId=r},Oy=(e,t,r,n)=>{if(My(e)){Ws(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(xy(r,e))},Ay=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[s,c]=o[i];Ws(c,dp(t,s),r,n)}},dp=(e,t)=>{let r=e;const n=t.split(Ur),o=n.length;for(let a=0;a<o;a++){const i=n[a];let s=r.nextPart.get(i);s||(s=lp(),r.nextPart.set(i,s)),r=s}return r},My=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Iy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,i)=>{r[a]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let i=r[a];if(i!==void 0)return i;if((i=n[a])!==void 0)return o(a,i),i},set(a,i){a in r?r[a]=i:o(a,i)}}},ss="!",Kc=":",Ny=[],Yc=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),jy=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,l;const d=o.length;for(let h=0;h<d;h++){const m=o[h];if(i===0&&s===0){if(m===Kc){a.push(o.slice(c,h)),c=h+1;continue}if(m==="/"){l=h;continue}}m==="["?i++:m==="]"?i--:m==="("?s++:m===")"&&s--}const f=a.length===0?o:o.slice(c);let v=f,g=!1;f.endsWith(ss)?(v=f.slice(0,-1),g=!0):f.startsWith(ss)&&(v=f.slice(1),g=!0);const y=l&&l>c?l-c:void 0;return Yc(a,g,v,y)};if(t){const o=t+Kc,a=n;n=i=>i.startsWith(o)?a(i.slice(o.length)):Yc(Ny,!1,i,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Dy=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const i=r[a],s=i[0]==="[",c=t.has(i);s||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},ky=e=>({cache:Iy(e.cacheSize),parseClassName:jy(e),sortModifiers:Dy(e),...Cy(e)}),$y=/\s+/,Ly=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split($y);let c="";for(let l=s.length-1;l>=0;l-=1){const d=s[l],{isExternal:f,modifiers:v,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:h}=r(d);if(f){c=d+(c.length>0?" "+c:c);continue}let m=!!h,b=n(m?y.substring(0,h):y);if(!b){if(!m){c=d+(c.length>0?" "+c:c);continue}if(b=n(y),!b){c=d+(c.length>0?" "+c:c);continue}m=!1}const x=v.length===0?"":v.length===1?v[0]:a(v).join(":"),w=g?x+ss:x,_=w+b;if(i.indexOf(_)>-1)continue;i.push(_);const C=o(b,m);for(let E=0;E<C.length;++E){const S=C[E];i.push(w+S)}c=d+(c.length>0?" "+c:c)}return c},Fy=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=fp(r))&&(o&&(o+=" "),o+=n);return o},fp=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=fp(e[n]))&&(r&&(r+=" "),r+=t);return r},qy=(e,...t)=>{let r,n,o,a;const i=c=>{const l=t.reduce((d,f)=>f(d),e());return r=ky(l),n=r.cache.get,o=r.cache.set,a=s,s(c)},s=c=>{const l=n(c);if(l)return l;const d=Ly(c,r);return o(c,d),d};return a=i,(...c)=>a(Fy(...c))},By=[],le=e=>{const t=r=>r[e]||By;return t.isThemeGetter=!0,t},pp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vy=/^\d+\/\d+$/,zy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wy=/\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$/,Uy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Hy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Vy.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>!!e&&Number.isInteger(Number(e)),Bn=e=>e.endsWith("%")&&re(e.slice(0,-1)),Be=e=>zy.test(e),Ky=()=>!0,Yy=e=>Wy.test(e)&&!Uy.test(e),vp=()=>!1,Xy=e=>Hy.test(e),Zy=e=>Gy.test(e),Jy=e=>!H(e)&&!G(e),Qy=e=>Dt(e,yp,vp),H=e=>pp.test(e),at=e=>Dt(e,bp,Yy),Vn=e=>Dt(e,ob,re),Xc=e=>Dt(e,hp,vp),eb=e=>Dt(e,gp,Zy),Sr=e=>Dt(e,wp,Xy),G=e=>mp.test(e),Wt=e=>kt(e,bp),tb=e=>kt(e,ab),Zc=e=>kt(e,hp),rb=e=>kt(e,yp),nb=e=>kt(e,gp),Er=e=>kt(e,wp,!0),Dt=(e,t,r)=>{const n=pp.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},kt=(e,t,r=!1)=>{const n=mp.exec(e);return n?n[1]?t(n[1]):r:!1},hp=e=>e==="position"||e==="percentage",gp=e=>e==="image"||e==="url",yp=e=>e==="length"||e==="size"||e==="bg-size",bp=e=>e==="length",ob=e=>e==="number",ab=e=>e==="family-name",wp=e=>e==="shadow",ib=()=>{const e=le("color"),t=le("font"),r=le("text"),n=le("font-weight"),o=le("tracking"),a=le("leading"),i=le("breakpoint"),s=le("container"),c=le("spacing"),l=le("radius"),d=le("shadow"),f=le("inset-shadow"),v=le("text-shadow"),g=le("drop-shadow"),y=le("blur"),h=le("perspective"),m=le("aspect"),b=le("ease"),x=le("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[..._(),G,H],E=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],P=()=>[G,H,c],M=()=>[wt,"full","auto",...P()],B=()=>[Ge,"none","subgrid",G,H],j=()=>["auto",{span:["full",Ge,G,H]},Ge,G,H],U=()=>[Ge,"auto",G,H],D=()=>["auto","min","max","fr",G,H],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...P()],K=()=>[wt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],A=()=>[e,G,H],$=()=>[..._(),Zc,Xc,{position:[G,H]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",rb,Qy,{size:[G,H]}],R=()=>[Bn,Wt,at],N=()=>["","none","full",l,G,H],L=()=>["",re,Wt,at],z=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[re,Bn,Zc,Xc],X=()=>["","none",y,G,H],Q=()=>["none",re,G,H],te=()=>["none",re,G,H],oe=()=>[re,G,H],se=()=>[wt,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Be],breakpoint:[Be],color:[Ky],container:[Be],"drop-shadow":[Be],ease:["in","out","in-out"],font:[Jy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Be],shadow:[Be],spacing:["px",re],text:[Be],"text-shadow":[Be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wt,H,G,m]}],container:["container"],columns:[{columns:[re,H,G,s]}],"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:C()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Ge,"auto",G,H]}],basis:[{basis:[wt,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,wt,"auto","initial","none",H]}],grow:[{grow:["",re,G,H]}],shrink:[{shrink:["",re,G,H]}],order:[{order:[Ge,"first","last","none",G,H]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Wt,at]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,G,Vn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bn,H]}],"font-family":[{font:[tb,H,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,H]}],"line-clamp":[{"line-clamp":[re,"none",G,Vn]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",G,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",G,at]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[re,"auto",G,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ge,G,H],radial:["",G,H],conic:[Ge,G,H]},nb,eb]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,G,H]}],"outline-w":[{outline:["",re,Wt,at]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,Er,Sr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,Er,Sr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[re,at]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",v,Er,Sr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[re,G,H]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"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":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[G,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,H]}],filter:[{filter:["","none",G,H]}],blur:[{blur:X()}],brightness:[{brightness:[re,G,H]}],contrast:[{contrast:[re,G,H]}],"drop-shadow":[{"drop-shadow":["","none",g,Er,Sr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",re,G,H]}],"hue-rotate":[{"hue-rotate":[re,G,H]}],invert:[{invert:["",re,G,H]}],saturate:[{saturate:[re,G,H]}],sepia:[{sepia:["",re,G,H]}],"backdrop-filter":[{"backdrop-filter":["","none",G,H]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[re,G,H]}],"backdrop-contrast":[{"backdrop-contrast":[re,G,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,G,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,G,H]}],"backdrop-invert":[{"backdrop-invert":["",re,G,H]}],"backdrop-opacity":[{"backdrop-opacity":[re,G,H]}],"backdrop-saturate":[{"backdrop-saturate":[re,G,H]}],"backdrop-sepia":[{"backdrop-sepia":["",re,G,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",G,H]}],ease:[{ease:["linear","initial",b,G,H]}],delay:[{delay:[re,G,H]}],animate:[{animate:["none",x,G,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,G,H]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[G,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",G,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,H]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[re,Wt,at,Vn]}],stroke:[{stroke:["none",...A()]}],"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"]}},sb=qy(ib);function W(...e){return sb(ze(e))}const xp=cp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed 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 shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs 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 shadow-xs 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"}},defaultVariants:{variant:"default",size:"default"}});function _p({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?ip:"button";return p.jsx(a,{"data-slot":"button",className:W(xp({variant:t,size:r,className:e})),...o})}function cb({className:e,type:t,...r}){return p.jsx("input",{type:t,"data-slot":"input",className:W("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex 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})}function lb({className:e,...t}){return p.jsx("div",{"data-slot":"card",className:W("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ub({className:e,...t}){return p.jsx("div",{"data-slot":"card-header",className:W("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function db({className:e,...t}){return p.jsx("div",{"data-slot":"card-title",className:W("leading-none font-semibold",e),...t})}function fb({className:e,...t}){return p.jsx("div",{"data-slot":"card-description",className:W("text-muted-foreground text-sm",e),...t})}function pb({className:e,...t}){return p.jsx("div",{"data-slot":"card-action",className:W("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function mb({className:e,...t}){return p.jsx("div",{"data-slot":"card-content",className:W("px-6",e),...t})}function vb({className:e,...t}){return p.jsx("div",{"data-slot":"card-footer",className:W("flex items-center px-6 [.border-t]:pt-6",e),...t})}var hb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gb=hb.reduce((e,t)=>{const r=zs(`Primitive.${t}`),n=u.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),yb="Label",Cp=u.forwardRef((e,t)=>p.jsx(gb.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Cp.displayName=yb;var bb=Cp;function Sp({className:e,...t}){return p.jsx(bb,{"data-slot":"label",className:W("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var wb=e=>e.type==="checkbox",Gt=e=>e instanceof Date,Us=e=>e==null;const Ep=e=>typeof e=="object";var st=e=>!Us(e)&&!Array.isArray(e)&&Ep(e)&&!Gt(e),xb=e=>st(e)&&e.target?wb(e.target)?e.target.checked:e.target.value:e,_b=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Cb=(e,t)=>e.has(_b(t)),Sb=e=>{const t=e.constructor&&e.constructor.prototype;return st(t)&&t.hasOwnProperty("isPrototypeOf")},Eb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Rp(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Eb&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(st(e)&&Sb(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Rp(e[o]));return n}var Pp=e=>/^\w*$/.test(e),cs=e=>e===void 0,Rb=e=>Array.isArray(e)?e.filter(Boolean):[],Tp=e=>Rb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,r)=>{if(!t||!st(e))return r;const n=(Pp(t)?[t]:Tp(t)).reduce((o,a)=>Us(o)?o:o[a],e);return cs(n)||n===e?cs(e[t])?r:e[t]:n},zn=e=>typeof e=="boolean",Rr=e=>typeof e=="function",Jc=(e,t,r)=>{let n=-1;const o=Pp(t)?[t]:Tp(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let c=r;if(n!==i){const l=e[s];c=st(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const Qc={BLUR:"blur",CHANGE:"change"},el={all:"all"},Hs=I.createContext(null);Hs.displayName="HookFormContext";const fn=()=>I.useContext(Hs),Pb=e=>{const{children:t,...r}=e;return I.createElement(Hs.Provider,{value:r},t)};var Tb=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==el.all&&(t._proxyFormState[i]=!n||el.all),r&&(r[i]=!0),e[i]}});return o};const Op=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Ap(e){const t=fn(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=I.useState(r._formState),c=I.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Op(()=>r._subscribe({name:o,formState:c.current,exact:a,callback:l=>{!n&&s({...r._formState,...l})}}),[o,n,a]),I.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),I.useMemo(()=>Tb(i,r,c.current,!1),[i,r])}var Ob=e=>typeof e=="string",tl=(e,t,r,n,o)=>Ob(e)?he(r,e,o):Array.isArray(e)?e.map(a=>he(r,a)):r,rl=e=>Us(e)||!Ep(e);function Lr(e,t,r=new WeakSet){if(rl(e)||rl(t))return Object.is(e,t);if(Gt(e)&&Gt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(Gt(i)&&Gt(s)||st(i)&&st(s)||Array.isArray(i)&&Array.isArray(s)?!Lr(i,s,r):!Object.is(i,s))return!1}}return!0}function Ab(e){const t=fn(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},c=I.useRef(o),l=I.useRef(s),d=I.useRef(void 0),f=I.useRef(r),v=I.useRef(n);l.current=s;const[g,y]=I.useState(()=>{const _=r._getWatch(n,c.current);return l.current?l.current(_):_}),h=I.useCallback(_=>{const C=tl(n,r._names,_||r._formValues,!1,c.current);return l.current?l.current(C):C},[r._formValues,r._names,n]),m=I.useCallback(_=>{if(!a){const C=tl(n,r._names,_||r._formValues,!1,c.current);if(l.current){const E=l.current(C);Lr(E,d.current)||(y(E),d.current=E)}else y(C)}},[r._formValues,r._names,a,n]);Op(()=>((f.current!==r||!Lr(v.current,n))&&(f.current=r,v.current=n,m()),r._subscribe({name:n,formState:{values:!0},exact:i,callback:_=>{m(_.values)}})),[r,i,n,m]),I.useEffect(()=>r._removeUnmounted());const b=f.current!==r,x=v.current,w=I.useMemo(()=>{if(a)return null;const _=!b&&!Lr(x,n);return b||_?h():null},[a,b,n,x,h]);return w!==null?w:g}function Mb(e){const t=fn(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,c=Cb(o._names.array,r),l=I.useMemo(()=>he(o._formValues,r,he(o._defaultValues,r,i)),[o,r,i]),d=Ab({control:o,name:r,defaultValue:l,exact:s}),f=Ap({control:o,name:r,exact:s}),v=I.useRef(e),g=I.useRef(void 0),y=I.useRef(o.register(r,{...e.rules,value:d,...zn(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const h=I.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!he(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!he(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!he(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!he(f.validatingFields,r)},error:{enumerable:!0,get:()=>he(f.errors,r)}}),[f,r]),m=I.useCallback(_=>y.current.onChange({target:{value:xb(_),name:r},type:Qc.CHANGE}),[r]),b=I.useCallback(()=>y.current.onBlur({target:{value:he(o._formValues,r),name:r},type:Qc.BLUR}),[r,o._formValues]),x=I.useCallback(_=>{const C=he(o._fields,r);C&&C._f&&_&&(C._f.ref={focus:()=>Rr(_.focus)&&_.focus(),select:()=>Rr(_.select)&&_.select(),setCustomValidity:E=>Rr(_.setCustomValidity)&&_.setCustomValidity(E),reportValidity:()=>Rr(_.reportValidity)&&_.reportValidity()})},[o._fields,r]),w=I.useMemo(()=>({name:r,value:d,...zn(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:m,onBlur:b,ref:x}),[r,n,f.disabled,m,b,x,d]);return I.useEffect(()=>{const _=o._options.shouldUnregister||a,C=g.current;C&&C!==r&&!c&&o.unregister(C),o.register(r,{...v.current.rules,...zn(v.current.disabled)?{disabled:v.current.disabled}:{}});const E=(S,P)=>{const M=he(o._fields,S);M&&M._f&&(M._f.mount=P)};if(E(r,!0),_){const S=Rp(he(o._options.defaultValues,r,v.current.defaultValue));Jc(o._defaultValues,r,S),cs(he(o._formValues,r))&&Jc(o._formValues,r,S)}return!c&&o.register(r),g.current=r,()=>{(c?_&&!o._state.action:_)?o.unregister(r):E(r,!1)}},[r,o,c,a]),I.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),I.useMemo(()=>({field:w,formState:f,fieldState:h}),[w,f,h])}const Ib=e=>e.render(Mb(e)),Nb=Pb,Mp=u.createContext({}),jb=({...e})=>p.jsx(Mp.Provider,{value:{name:e.name},children:p.jsx(Ib,{...e})}),sr=()=>{const e=u.useContext(Mp),t=u.useContext(Ip),{getFieldState:r}=fn(),n=Ap({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Ip=u.createContext({});function Db({className:e,...t}){const r=u.useId();return p.jsx(Ip.Provider,{value:{id:r},children:p.jsx("div",{"data-slot":"form-item",className:W("grid gap-2",e),...t})})}function kb({className:e,...t}){const{error:r,formItemId:n}=sr();return p.jsx(Sp,{"data-slot":"form-label","data-error":!!r,className:W("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function $b({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=sr();return p.jsx(ip,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Lb({className:e,...t}){const{formDescriptionId:r}=sr();return p.jsx("p",{"data-slot":"form-description",id:r,className:W("text-muted-foreground text-sm",e),...t})}function Fb({className:e,...t}){const{error:r,formMessageId:n}=sr(),o=r?String(r?.message??""):t.children;return o?p.jsx("p",{"data-slot":"form-message",id:n,className:W("text-destructive text-sm",e),...t,children:o}):null}function q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function qb(e,t){const r=u.createContext(t),n=a=>{const{children:i,...s}=a,c=u.useMemo(()=>s,Object.values(s));return p.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=u.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Le(e,t=[]){let r=[];function n(a,i){const s=u.createContext(i),c=r.length;r=[...r,i];const l=f=>{const{scope:v,children:g,...y}=f,h=v?.[e]?.[c]||s,m=u.useMemo(()=>y,Object.values(y));return p.jsx(h.Provider,{value:m,children:g})};l.displayName=a+"Provider";function d(f,v){const g=v?.[e]?.[c]||s,y=u.useContext(g);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[l,d]}const o=()=>{const a=r.map(i=>u.createContext(i));return function(s){const c=s?.[e]||a;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,Bb(o,...t)]}function Bb(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:l})=>{const f=c(a)[`__scope${l}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function nl(e){const t=Vb(e),r=u.forwardRef((n,o)=>{const{children:a,...i}=n,s=u.Children.toArray(a),c=s.find(Wb);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Vb(e){const t=u.forwardRef((r,n)=>{const{children:o,...a}=r;if(u.isValidElement(o)){const i=Hb(o),s=Ub(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zb=Symbol("radix.slottable");function Wb(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zb}function Ub(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Hb(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cr(e){const t=e+"CollectionProvider",[r,n]=Le(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:m,children:b}=h,x=I.useRef(null),w=I.useRef(new Map).current;return p.jsx(o,{scope:m,itemMap:w,collectionRef:x,children:b})};i.displayName=t;const s=e+"CollectionSlot",c=nl(s),l=I.forwardRef((h,m)=>{const{scope:b,children:x}=h,w=a(s,b),_=ne(m,w.collectionRef);return p.jsx(c,{ref:_,children:x})});l.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=nl(d),g=I.forwardRef((h,m)=>{const{scope:b,children:x,...w}=h,_=I.useRef(null),C=ne(m,_),E=a(d,b);return I.useEffect(()=>(E.itemMap.set(_,{ref:_,...w}),()=>{E.itemMap.delete(_)})),p.jsx(v,{[f]:"",ref:C,children:x})});g.displayName=d;function y(h){const m=a(e+"CollectionConsumer",h);return I.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((E,S)=>w.indexOf(E.ref.current)-w.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},y,n]}var ue=globalThis?.document?u.useLayoutEffect:()=>{},Gb=u[" useId ".trim().toString()]||(()=>{}),Kb=0;function ce(e){const[t,r]=u.useState(Gb());return ue(()=>{r(n=>n??String(Kb++))},[e]),e||(t?`radix-${t}`:"")}function Yb(e){const t=Xb(e),r=u.forwardRef((n,o)=>{const{children:a,...i}=n,s=u.Children.toArray(a),c=s.find(Jb);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Xb(e){const t=u.forwardRef((r,n)=>{const{children:o,...a}=r;if(u.isValidElement(o)){const i=ew(o),s=Qb(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zb=Symbol("radix.slottable");function Jb(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zb}function Qb(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ew(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var tw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=tw.reduce((e,t)=>{const r=Yb(`Primitive.${t}`),n=u.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Hr(e,t){e&&dn.flushSync(()=>e.dispatchEvent(t))}function de(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>t.current?.(...r),[])}var rw=u[" useInsertionEffect ".trim().toString()]||ue;function De({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=nw({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:o;{const d=u.useRef(e!==void 0);u.useEffect(()=>{const f=d.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"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.`),d.current=s},[s,n])}const l=u.useCallback(d=>{if(s){const f=ow(d)?d(e):d;f!==e&&i.current?.(f)}else a(d)},[s,e,a,i]);return[c,l]}function nw({defaultProp:e,onChange:t}){const[r,n]=u.useState(e),o=u.useRef(r),a=u.useRef(t);return rw(()=>{a.current=t},[t]),u.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function ow(e){return typeof e=="function"}var aw=u.createContext(void 0);function lr(e){const t=u.useContext(aw);return e||t||"ltr"}var Wn="rovingFocusGroup.onEntryFocus",iw={bubbles:!1,cancelable:!0},ur="RovingFocusGroup",[ls,Np,sw]=cr(ur),[cw,pn]=Le(ur,[sw]),[lw,uw]=cw(ur),jp=u.forwardRef((e,t)=>p.jsx(ls.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ls.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(dw,{...e,ref:t})})}));jp.displayName=ur;var dw=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=e,v=u.useRef(null),g=ne(t,v),y=lr(a),[h,m]=De({prop:i,defaultProp:s??null,onChange:c,caller:ur}),[b,x]=u.useState(!1),w=de(l),_=Np(r),C=u.useRef(!1),[E,S]=u.useState(0);return u.useEffect(()=>{const P=v.current;if(P)return P.addEventListener(Wn,w),()=>P.removeEventListener(Wn,w)},[w]),p.jsx(lw,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(P=>m(P),[m]),onItemShiftTab:u.useCallback(()=>x(!0),[]),onFocusableItemAdd:u.useCallback(()=>S(P=>P+1),[]),onFocusableItemRemove:u.useCallback(()=>S(P=>P-1),[]),children:p.jsx(Z.div,{tabIndex:b||E===0?-1:0,"data-orientation":n,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{C.current=!0}),onFocus:q(e.onFocus,P=>{const M=!C.current;if(P.target===P.currentTarget&&M&&!b){const B=new CustomEvent(Wn,iw);if(P.currentTarget.dispatchEvent(B),!B.defaultPrevented){const j=_().filter(k=>k.focusable),U=j.find(k=>k.active),D=j.find(k=>k.id===h),V=[U,D,...j].filter(Boolean).map(k=>k.ref.current);$p(V,d)}}C.current=!1}),onBlur:q(e.onBlur,()=>x(!1))})})}),Dp="RovingFocusGroupItem",kp=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=e,c=ce(),l=a||c,d=uw(Dp,r),f=d.currentTabStopId===l,v=Np(r),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:h}=d;return u.useEffect(()=>{if(n)return g(),()=>y()},[n,g,y]),p.jsx(ls.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(Z.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:q(e.onMouseDown,m=>{n?d.onItemFocus(l):m.preventDefault()}),onFocus:q(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:q(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){d.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const b=mw(m,d.orientation,d.dir);if(b!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let w=v().filter(_=>_.focusable).map(_=>_.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const _=w.indexOf(m.currentTarget);w=d.loop?vw(w,_+1):w.slice(_+1)}setTimeout(()=>$p(w))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});kp.displayName=Dp;var fw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mw(e,t,r){const n=pw(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return fw[n]}function $p(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function vw(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Lp=jp,Fp=kp;function hw(e,t){return u.useReducer((r,n)=>t[r][n]??r,e)}var me=e=>{const{present:t,children:r}=e,n=gw(t),o=typeof r=="function"?r({present:n.isPresent}):u.Children.only(r),a=ne(n.ref,yw(o));return typeof r=="function"||n.isPresent?u.cloneElement(o,{ref:a}):null};me.displayName="Presence";function gw(e){const[t,r]=u.useState(),n=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),i=e?"mounted":"unmounted",[s,c]=hw(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const l=Pr(n.current);a.current=s==="mounted"?l:"none"},[s]),ue(()=>{const l=n.current,d=o.current;if(d!==e){const v=a.current,g=Pr(l);e?c("MOUNT"):g==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ue(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=g=>{const h=Pr(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(c("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},v=g=>{g.target===t&&(a.current=Pr(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Pr(e){return e?.animationName||"none"}function yw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mn="Tabs",[bw]=Le(mn,[pn]),qp=pn(),[ww,Gs]=bw(mn),Bp=u.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...l}=e,d=lr(s),[f,v]=De({prop:n,onChange:o,defaultProp:a??"",caller:mn});return p.jsx(ww,{scope:r,baseId:ce(),value:f,onValueChange:v,orientation:i,dir:d,activationMode:c,children:p.jsx(Z.div,{dir:d,"data-orientation":i,...l,ref:t})})});Bp.displayName=mn;var Vp="TabsList",zp=u.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Gs(Vp,r),i=qp(r);return p.jsx(Lp,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:p.jsx(Z.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});zp.displayName=Vp;var Wp="TabsTrigger",Up=u.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=Gs(Wp,r),s=qp(r),c=Kp(i.baseId,n),l=Yp(i.baseId,n),d=n===i.value;return p.jsx(Fp,{asChild:!0,...s,focusable:!o,active:d,children:p.jsx(Z.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":l,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:q(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(n):f.preventDefault()}),onKeyDown:q(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(n)}),onFocus:q(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(n)})})})});Up.displayName=Wp;var Hp="TabsContent",Gp=u.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,s=Gs(Hp,r),c=Kp(s.baseId,n),l=Yp(s.baseId,n),d=n===s.value,f=u.useRef(d);return u.useEffect(()=>{const v=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(me,{present:o||d,children:({present:v})=>p.jsx(Z.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!v,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:v&&a})})});Gp.displayName=Hp;function Kp(e,t){return`${e}-trigger-${t}`}function Yp(e,t){return`${e}-content-${t}`}var xw=Bp,_w=zp,Cw=Up,Sw=Gp;function Ew({className:e,...t}){return p.jsx(xw,{"data-slot":"tabs",className:W("flex flex-col gap-2",e),...t})}function Rw({className:e,...t}){return p.jsx(_w,{"data-slot":"tabs-list",className:W("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Pw({className:e,...t}){return p.jsx(Cw,{"data-slot":"tabs-trigger",className:W("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Tw({className:e,...t}){return p.jsx(Sw,{"data-slot":"tabs-content",className:W("flex-1 outline-none",e),...t})}function Ow({className:e,...t}){return p.jsx("div",{"data-slot":"skeleton",className:W("bg-accent animate-pulse rounded-md",e),...t})}function Xp({className:e,...t}){return p.jsx(be.Loader2Icon,{role:"status","aria-label":"Loading",className:W("size-4 animate-spin",e),...t})}function Aw(e,t=globalThis?.document){const r=de(e);u.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Mw="DismissableLayer",us="dismissableLayer.update",Iw="dismissableLayer.pointerDownOutside",Nw="dismissableLayer.focusOutside",ol,Zp=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=u.useContext(Zp),[d,f]=u.useState(null),v=d?.ownerDocument??globalThis?.document,[,g]=u.useState({}),y=ne(t,S=>f(S)),h=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(m),x=d?h.indexOf(d):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=x>=b,C=kw(S=>{const P=S.target,M=[...l.branches].some(B=>B.contains(P));!_||M||(o?.(S),i?.(S),S.defaultPrevented||s?.())},v),E=$w(S=>{const P=S.target;[...l.branches].some(B=>B.contains(P))||(a?.(S),i?.(S),S.defaultPrevented||s?.())},v);return Aw(S=>{x===l.layers.size-1&&(n?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},v),u.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ol=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),al(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ol)}},[d,v,r,l]),u.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),al())},[d,l]),u.useEffect(()=>{const S=()=>g({});return document.addEventListener(us,S),()=>document.removeEventListener(us,S)},[]),p.jsx(Z.div,{...c,ref:y,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,E.onFocusCapture),onBlurCapture:q(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,C.onPointerDownCapture)})});$t.displayName=Mw;var jw="DismissableLayerBranch",Dw=u.forwardRef((e,t)=>{const r=u.useContext(Zp),n=u.useRef(null),o=ne(t,n);return u.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(Z.div,{...e,ref:o})});Dw.displayName=jw;function kw(e,t=globalThis?.document){const r=de(e),n=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){Jp(Iw,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function $w(e,t=globalThis?.document){const r=de(e),n=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!n.current&&Jp(Nw,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function al(){const e=new CustomEvent(us);document.dispatchEvent(e)}function Jp(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Hr(o,a):o.dispatchEvent(a)}function Qp(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var em=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"}),Lw="VisuallyHidden",tm=u.forwardRef((e,t)=>p.jsx(Z.span,{...e,ref:t,style:{...em,...e.style}}));tm.displayName=Lw;var Fw=tm,pt="NavigationMenu",[Ks,rm,qw]=cr(pt),[ds,Bw,Vw]=cr(pt),[Ys]=Le(pt,[qw,Vw]),[zw,Se]=Ys(pt),[Ww,Uw]=Ys(pt),nm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:c="horizontal",dir:l,...d}=e,[f,v]=u.useState(null),g=ne(t,M=>v(M)),y=lr(l),h=u.useRef(0),m=u.useRef(0),b=u.useRef(0),[x,w]=u.useState(!0),[_,C]=De({prop:n,onChange:M=>{const B=M!=="",j=s>0;B?(window.clearTimeout(b.current),j&&w(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>w(!0),s)),o?.(M)},defaultProp:a??"",caller:pt}),E=u.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>C(""),150)},[C]),S=u.useCallback(M=>{window.clearTimeout(m.current),C(M)},[C]),P=u.useCallback(M=>{_===M?window.clearTimeout(m.current):h.current=window.setTimeout(()=>{window.clearTimeout(m.current),C(M)},i)},[_,C,i]);return u.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(m.current),window.clearTimeout(b.current)},[]),p.jsx(om,{scope:r,isRootMenu:!0,value:_,dir:y,orientation:c,rootNavigationMenu:f,onTriggerEnter:M=>{window.clearTimeout(h.current),x?P(M):S(M)},onTriggerLeave:()=>{window.clearTimeout(h.current),E()},onContentEnter:()=>window.clearTimeout(m.current),onContentLeave:E,onItemSelect:M=>{C(B=>B===M?"":M)},onItemDismiss:()=>C(""),children:p.jsx(Z.nav,{"aria-label":"Main","data-orientation":c,dir:y,...d,ref:g})})});nm.displayName=pt;var fs="NavigationMenuSub",Hw=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,c=Se(fs,r),[l,d]=De({prop:n,onChange:o,defaultProp:a??"",caller:fs});return p.jsx(om,{scope:r,isRootMenu:!1,value:l,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:f=>d(f),onItemSelect:f=>d(f),onItemDismiss:()=>d(""),children:p.jsx(Z.div,{"data-orientation":i,...s,ref:t})})});Hw.displayName=fs;var om=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:o,orientation:a,children:i,value:s,onItemSelect:c,onItemDismiss:l,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:v,onContentLeave:g}=e,[y,h]=u.useState(null),[m,b]=u.useState(new Map),[x,w]=u.useState(null);return p.jsx(zw,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:Qp(s),baseId:ce(),dir:o,orientation:a,viewport:y,onViewportChange:h,indicatorTrack:x,onIndicatorTrackChange:w,onTriggerEnter:de(d),onTriggerLeave:de(f),onContentEnter:de(v),onContentLeave:de(g),onItemSelect:de(c),onItemDismiss:de(l),onViewportContentChange:u.useCallback((_,C)=>{b(E=>(E.set(_,C),new Map(E)))},[]),onViewportContentRemove:u.useCallback(_=>{b(C=>C.has(_)?(C.delete(_),new Map(C)):C)},[]),children:p.jsx(Ks.Provider,{scope:t,children:p.jsx(Ww,{scope:t,items:m,children:i})})})},am="NavigationMenuList",im=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Se(am,r),a=p.jsx(Z.ul,{"data-orientation":o.orientation,...n,ref:t});return p.jsx(Z.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:p.jsx(Ks.Slot,{scope:r,children:o.isRootMenu?p.jsx(hm,{asChild:!0,children:a}):a})})});im.displayName=am;var sm="NavigationMenuItem",[Gw,cm]=Ys(sm),lm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,...o}=e,a=ce(),i=n||a||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),c=u.useRef(null),l=u.useRef(null),d=u.useRef(()=>{}),f=u.useRef(!1),v=u.useCallback((y="start")=>{if(s.current){d.current();const h=ms(s.current);h.length&&Js(y==="start"?h:h.reverse())}},[]),g=u.useCallback(()=>{if(s.current){const y=ms(s.current);y.length&&(d.current=ex(y))}},[]);return p.jsx(Gw,{scope:r,value:i,triggerRef:c,contentRef:s,focusProxyRef:l,wasEscapeCloseRef:f,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:g,onContentFocusOutside:g,children:p.jsx(Z.li,{...o,ref:t})})});lm.displayName=sm;var ps="NavigationMenuTrigger",um=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Se(ps,e.__scopeNavigationMenu),i=cm(ps,e.__scopeNavigationMenu),s=u.useRef(null),c=ne(s,i.triggerRef,t),l=ym(a.baseId,i.value),d=bm(a.baseId,i.value),f=u.useRef(!1),v=u.useRef(!1),g=i.value===a.value;return p.jsxs(p.Fragment,{children:[p.jsx(Ks.ItemSlot,{scope:r,value:i.value,children:p.jsx(gm,{asChild:!0,children:p.jsx(Z.button,{id:l,disabled:n,"data-disabled":n?"":void 0,"data-state":Qs(g),"aria-expanded":g,"aria-controls":d,...o,ref:c,onPointerEnter:q(e.onPointerEnter,()=>{v.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:q(e.onPointerMove,Gr(()=>{n||v.current||i.wasEscapeCloseRef.current||f.current||(a.onTriggerEnter(i.value),f.current=!0)})),onPointerLeave:q(e.onPointerLeave,Gr(()=>{n||(a.onTriggerLeave(),f.current=!1)})),onClick:q(e.onClick,()=>{a.onItemSelect(i.value),v.current=g}),onKeyDown:q(e.onKeyDown,y=>{const m={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];g&&y.key===m&&(i.onEntryKeyDown(),y.preventDefault())})})})}),g&&p.jsxs(p.Fragment,{children:[p.jsx(Fw,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:y=>{const h=i.contentRef.current,m=y.relatedTarget,b=m===s.current,x=h?.contains(m);(b||!x)&&i.onFocusProxyEnter(b?"start":"end")}}),a.viewport&&p.jsx("span",{"aria-owns":d})]})]})});um.displayName=ps;var Kw="NavigationMenuLink",il="navigationMenu.linkSelect",dm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return p.jsx(gm,{asChild:!0,children:p.jsx(Z.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:q(e.onClick,i=>{const s=i.target,c=new CustomEvent(il,{bubbles:!0,cancelable:!0});if(s.addEventListener(il,l=>o?.(l),{once:!0}),Hr(s,c),!c.defaultPrevented&&!i.metaKey){const l=new CustomEvent(Fr,{bubbles:!0,cancelable:!0});Hr(s,l)}},{checkForDefaultPrevented:!1})})})});dm.displayName=Kw;var Xs="NavigationMenuIndicator",fm=u.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Se(Xs,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Vs.createPortal(p.jsx(me,{present:r||a,children:p.jsx(Yw,{...n,ref:t})}),o.indicatorTrack):null});fm.displayName=Xs;var Yw=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Se(Xs,r),a=rm(r),[i,s]=u.useState(null),[c,l]=u.useState(null),d=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{const y=a().find(h=>h.value===o.value)?.ref.current;y&&s(y)},[a,o.value]);const v=()=>{i&&l({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})};return vs(i,v),vs(o.indicatorTrack,v),c?p.jsx(Z.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation,...n,ref:t,style:{position:"absolute",...d?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...n.style}}):null}),Tt="NavigationMenuContent",pm=u.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Se(Tt,e.__scopeNavigationMenu),a=cm(Tt,e.__scopeNavigationMenu),i=ne(a.contentRef,t),s=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...n};return o.viewport?p.jsx(Xw,{forceMount:r,...c,ref:i}):p.jsx(me,{present:r||s,children:p.jsx(mm,{"data-state":Qs(s),...c,ref:i,onPointerEnter:q(e.onPointerEnter,o.onContentEnter),onPointerLeave:q(e.onPointerLeave,Gr(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...c.style}})})});pm.displayName=Tt;var Xw=u.forwardRef((e,t)=>{const r=Se(Tt,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:o}=r;return ue(()=>{n(e.value,{ref:t,...e})},[e,t,n]),ue(()=>()=>o(e.value),[e.value,o]),null}),Fr="navigationMenu.rootContentDismiss",mm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:c,...l}=e,d=Se(Tt,r),f=u.useRef(null),v=ne(f,t),g=ym(d.baseId,n),y=bm(d.baseId,n),h=rm(r),m=u.useRef(null),{onItemDismiss:b}=d;u.useEffect(()=>{const w=f.current;if(d.isRootMenu&&w){const _=()=>{b(),s(),w.contains(document.activeElement)&&o.current?.focus()};return w.addEventListener(Fr,_),()=>w.removeEventListener(Fr,_)}},[d.isRootMenu,e.value,o,b,s]);const x=u.useMemo(()=>{const _=h().map(B=>B.value);d.dir==="rtl"&&_.reverse();const C=_.indexOf(d.value),E=_.indexOf(d.previousValue),S=n===d.value,P=E===_.indexOf(n);if(!S&&!P)return m.current;const M=(()=>{if(C!==E){if(S&&E!==-1)return C>E?"from-end":"from-start";if(P&&C!==-1)return C>E?"to-start":"to-end"}return null})();return m.current=M,M},[d.previousValue,d.value,d.dir,h,n]);return p.jsx(hm,{asChild:!0,children:p.jsx($t,{id:y,"aria-labelledby":g,"data-motion":x,"data-orientation":d.orientation,...l,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{const w=new Event(Fr,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(w)},onFocusOutside:q(e.onFocusOutside,w=>{c();const _=w.target;d.rootNavigationMenu?.contains(_)&&w.preventDefault()}),onPointerDownOutside:q(e.onPointerDownOutside,w=>{const _=w.target,C=h().some(S=>S.ref.current?.contains(_)),E=d.isRootMenu&&d.viewport?.contains(_);(C||E||!d.isRootMenu)&&w.preventDefault()}),onKeyDown:q(e.onKeyDown,w=>{const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=ms(w.currentTarget),S=document.activeElement,P=E.findIndex(j=>j===S),B=w.shiftKey?E.slice(0,P).reverse():E.slice(P+1,E.length);Js(B)?w.preventDefault():a.current?.focus()}}),onEscapeKeyDown:q(e.onEscapeKeyDown,w=>{i.current=!0})})})}),Zs="NavigationMenuViewport",vm=u.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Se(Zs,e.__scopeNavigationMenu).value;return p.jsx(me,{present:r||a,children:p.jsx(Zw,{...n,ref:t})})});vm.displayName=Zs;var Zw=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Se(Zs,r),i=ne(t,a.onViewportChange),s=Uw(Tt,e.__scopeNavigationMenu),[c,l]=u.useState(null),[d,f]=u.useState(null),v=c?c?.width+"px":void 0,g=c?c?.height+"px":void 0,y=!!a.value,h=y?a.value:a.previousValue;return vs(d,()=>{d&&l({width:d.offsetWidth,height:d.offsetHeight})}),p.jsx(Z.div,{"data-state":Qs(y),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!y&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":g,...o.style},onPointerEnter:q(e.onPointerEnter,a.onContentEnter),onPointerLeave:q(e.onPointerLeave,Gr(a.onContentLeave)),children:Array.from(s.items).map(([b,{ref:x,forceMount:w,..._}])=>{const C=h===b;return p.jsx(me,{present:w||C,children:p.jsx(mm,{..._,ref:fe(x,E=>{C&&E&&f(E)})})},b)})})}),Jw="FocusGroup",hm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Se(Jw,r);return p.jsx(ds.Provider,{scope:r,children:p.jsx(ds.Slot,{scope:r,children:p.jsx(Z.div,{dir:o.dir,...n,ref:t})})})}),sl=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Qw="FocusGroupItem",gm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Bw(r),a=Se(Qw,r);return p.jsx(ds.ItemSlot,{scope:r,children:p.jsx(Z.button,{...n,ref:t,onKeyDown:q(e.onKeyDown,i=>{if(["Home","End",...sl].includes(i.key)){let c=o().map(f=>f.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&c.reverse(),sl.includes(i.key)){const f=c.indexOf(i.currentTarget);c=c.slice(f+1)}setTimeout(()=>Js(c)),i.preventDefault()}})})})});function ms(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Js(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function ex(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function vs(e,t){const r=de(t);ue(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function Qs(e){return e?"open":"closed"}function ym(e,t){return`${e}-trigger-${t}`}function bm(e,t){return`${e}-content-${t}`}function Gr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var tx=nm,rx=im,nx=lm,ox=um,ax=dm,ix=fm,sx=pm,cx=vm;function lx({className:e,children:t,viewport:r=!0,...n}){return p.jsxs(tx,{"data-slot":"navigation-menu","data-viewport":r,className:W("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,r&&p.jsx(xm,{})]})}function ux({className:e,...t}){return p.jsx(rx,{"data-slot":"navigation-menu-list",className:W("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function dx({className:e,...t}){return p.jsx(nx,{"data-slot":"navigation-menu-item",className:W("relative",e),...t})}const wm=cp("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function fx({className:e,children:t,...r}){return p.jsxs(ox,{"data-slot":"navigation-menu-trigger",className:W(wm(),"group",e),...r,children:[t," ",p.jsx(be.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function px({className:e,...t}){return p.jsx(sx,{"data-slot":"navigation-menu-content",className:W("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function xm({className:e,...t}){return p.jsx("div",{className:W("absolute top-full left-0 isolate z-50 flex justify-center"),children:p.jsx(cx,{"data-slot":"navigation-menu-viewport",className:W("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function mx({className:e,...t}){return p.jsx(ax,{"data-slot":"navigation-menu-link",className:W("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...t})}function vx({className:e,...t}){return p.jsx(ix,{"data-slot":"navigation-menu-indicator",className:W("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:p.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}var Un=0;function vn(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cl()),document.body.insertAdjacentElement("beforeend",e[1]??cl()),Un++,()=>{Un===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Un--}},[])}function cl(){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 Hn="focusScope.autoFocusOnMount",Gn="focusScope.autoFocusOnUnmount",ll={bubbles:!1,cancelable:!0},hx="FocusScope",dr=u.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=u.useState(null),l=de(o),d=de(a),f=u.useRef(null),v=ne(t,h=>c(h)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(n){let h=function(w){if(g.paused||!s)return;const _=w.target;s.contains(_)?f.current=_:Ke(f.current,{select:!0})},m=function(w){if(g.paused||!s)return;const _=w.relatedTarget;_!==null&&(s.contains(_)||Ke(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&Ke(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",m);const x=new MutationObserver(b);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",m),x.disconnect()}}},[n,s,g.paused]),u.useEffect(()=>{if(s){dl.add(g);const h=document.activeElement;if(!s.contains(h)){const b=new CustomEvent(Hn,ll);s.addEventListener(Hn,l),s.dispatchEvent(b),b.defaultPrevented||(gx(_x(_m(s)),{select:!0}),document.activeElement===h&&Ke(s))}return()=>{s.removeEventListener(Hn,l),setTimeout(()=>{const b=new CustomEvent(Gn,ll);s.addEventListener(Gn,d),s.dispatchEvent(b),b.defaultPrevented||Ke(h??document.body,{select:!0}),s.removeEventListener(Gn,d),dl.remove(g)},0)}}},[s,l,d,g]);const y=u.useCallback(h=>{if(!r&&!n||g.paused)return;const m=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(m&&b){const x=h.currentTarget,[w,_]=yx(x);w&&_?!h.shiftKey&&b===_?(h.preventDefault(),r&&Ke(w,{select:!0})):h.shiftKey&&b===w&&(h.preventDefault(),r&&Ke(_,{select:!0})):b===x&&h.preventDefault()}},[r,n,g.paused]);return p.jsx(Z.div,{tabIndex:-1,...i,ref:v,onKeyDown:y})});dr.displayName=hx;function gx(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ke(n,{select:t}),document.activeElement!==r)return}function yx(e){const t=_m(e),r=ul(t,e),n=ul(t.reverse(),e);return[r,n]}function _m(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ul(e,t){for(const r of e)if(!bx(r,{upTo:t}))return r}function bx(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 wx(e){return e instanceof HTMLInputElement&&"select"in e}function Ke(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&wx(e)&&t&&e.select()}}var dl=xx();function xx(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=fl(e,t),e.unshift(t)},remove(t){e=fl(e,t),e[0]?.resume()}}}function fl(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function _x(e){return e.filter(t=>t.tagName!=="A")}const Cx=["top","right","bottom","left"],Ye=Math.min,ge=Math.max,Kr=Math.round,Tr=Math.floor,je=e=>({x:e,y:e}),Sx={left:"right",right:"left",bottom:"top",top:"bottom"},Ex={start:"end",end:"start"};function hs(e,t,r){return ge(e,Ye(t,r))}function We(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function ec(e){return e==="x"?"y":"x"}function tc(e){return e==="y"?"height":"width"}const Rx=new Set(["top","bottom"]);function Ne(e){return Rx.has(Ue(e))?"y":"x"}function rc(e){return ec(Ne(e))}function Px(e,t,r){r===void 0&&(r=!1);const n=Lt(e),o=rc(e),a=tc(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Yr(i)),[i,Yr(i)]}function Tx(e){const t=Yr(e);return[gs(e),t,gs(t)]}function gs(e){return e.replace(/start|end/g,t=>Ex[t])}const pl=["left","right"],ml=["right","left"],Ox=["top","bottom"],Ax=["bottom","top"];function Mx(e,t,r){switch(e){case"top":case"bottom":return r?t?ml:pl:t?pl:ml;case"left":case"right":return t?Ox:Ax;default:return[]}}function Ix(e,t,r,n){const o=Lt(e);let a=Mx(Ue(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(gs)))),a}function Yr(e){return e.replace(/left|right|bottom|top/g,t=>Sx[t])}function Nx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cm(e){return typeof e!="number"?Nx(e):{top:e,right:e,bottom:e,left:e}}function Xr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function vl(e,t,r){let{reference:n,floating:o}=e;const a=Ne(t),i=rc(t),s=tc(i),c=Ue(t),l=a==="y",d=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let g;switch(c){case"top":g={x:d,y:n.y-o.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:f};break;case"left":g={x:n.x-o.width,y:f};break;default:g={x:n.x,y:n.y}}switch(Lt(t)){case"start":g[i]-=v*(r&&l?-1:1);break;case"end":g[i]+=v*(r&&l?-1:1);break}return g}const jx=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=vl(l,n,c),v=n,g={},y=0;for(let h=0;h<s.length;h++){const{name:m,fn:b}=s[h],{x,y:w,data:_,reset:C}=await b({x:d,y:f,initialPlacement:n,placement:v,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});d=x??d,f=w??f,g={...g,[m]:{...g[m],..._}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(l=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:f}=vl(l,v,c)),h=-1)}return{x:d,y:f,placement:v,strategy:o,middlewareData:g}};async function Jt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:v=!1,padding:g=0}=We(t,e),y=Cm(g),m=s[v?f==="floating"?"reference":"floating":f],b=Xr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),x=f==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),_=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Xr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(b.top-C.top+y.top)/_.y,bottom:(C.bottom-b.bottom+y.bottom)/_.y,left:(b.left-C.left+y.left)/_.x,right:(C.right-b.right+y.right)/_.x}}const Dx=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:d=0}=We(e,t)||{};if(l==null)return{};const f=Cm(d),v={x:r,y:n},g=rc(o),y=tc(g),h=await i.getDimensions(l),m=g==="y",b=m?"top":"left",x=m?"bottom":"right",w=m?"clientHeight":"clientWidth",_=a.reference[y]+a.reference[g]-v[g]-a.floating[y],C=v[g]-a.reference[g],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let S=E?E[w]:0;(!S||!await(i.isElement==null?void 0:i.isElement(E)))&&(S=s.floating[w]||a.floating[y]);const P=_/2-C/2,M=S/2-h[y]/2-1,B=Ye(f[b],M),j=Ye(f[x],M),U=B,D=S-h[y]-j,F=S/2-h[y]/2+P,V=hs(U,F,D),k=!c.arrow&&Lt(o)!=null&&F!==V&&a.reference[y]/2-(F<U?B:j)-h[y]/2<0,K=k?F<U?F-U:F-D:0;return{[g]:v[g]+K,data:{[g]:V,centerOffset:F-V-K,...k&&{alignmentOffset:K}},reset:k}}}),kx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...m}=We(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=Ue(o),x=Ne(s),w=Ue(s)===s,_=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=v||(w||!h?[Yr(s)]:Tx(s)),E=y!=="none";!v&&E&&C.push(...Ix(s,h,y,_));const S=[s,...C],P=await Jt(t,m),M=[];let B=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&M.push(P[b]),f){const F=Px(o,i,_);M.push(P[F[0]],P[F[1]])}if(B=[...B,{placement:o,overflows:M}],!M.every(F=>F<=0)){var j,U;const F=(((j=a.flip)==null?void 0:j.index)||0)+1,V=S[F];if(V&&(!(f==="alignment"?x!==Ne(V):!1)||B.every(A=>Ne(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:F,overflows:B},reset:{placement:V}};let k=(U=B.filter(K=>K.overflows[0]<=0).sort((K,A)=>K.overflows[1]-A.overflows[1])[0])==null?void 0:U.placement;if(!k)switch(g){case"bestFit":{var D;const K=(D=B.filter(A=>{if(E){const $=Ne(A.placement);return $===x||$==="y"}return!0}).map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,ee)=>$+ee,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:D[0];K&&(k=K);break}case"initialPlacement":k=s;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function hl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gl(e){return Cx.some(t=>e[t]>=0)}const $x=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=We(e,t);switch(n){case"referenceHidden":{const a=await Jt(t,{...o,elementContext:"reference"}),i=hl(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:gl(i)}}}case"escaped":{const a=await Jt(t,{...o,altBoundary:!0}),i=hl(a,r.floating);return{data:{escapedOffsets:i,escaped:gl(i)}}}default:return{}}}}},Sm=new Set(["left","top"]);async function Lx(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Ue(r),s=Lt(r),c=Ne(r)==="y",l=Sm.has(i)?-1:1,d=a&&c?-1:1,f=We(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof y=="number"&&(g=s==="end"?y*-1:y),c?{x:g*d,y:v*l}:{x:v*l,y:g*d}}const Fx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Lx(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},qx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:m=>{let{x:b,y:x}=m;return{x:b,y:x}}},...c}=We(e,t),l={x:r,y:n},d=await Jt(t,c),f=Ne(Ue(o)),v=ec(f);let g=l[v],y=l[f];if(a){const m=v==="y"?"top":"left",b=v==="y"?"bottom":"right",x=g+d[m],w=g-d[b];g=hs(x,g,w)}if(i){const m=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=y+d[m],w=y-d[b];y=hs(x,y,w)}const h=s.fn({...t,[v]:g,[f]:y});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[v]:a,[f]:i}}}}}},Bx=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=We(e,t),d={x:r,y:n},f=Ne(o),v=ec(f);let g=d[v],y=d[f];const h=We(s,t),m=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const w=v==="y"?"height":"width",_=a.reference[v]-a.floating[w]+m.mainAxis,C=a.reference[v]+a.reference[w]-m.mainAxis;g<_?g=_:g>C&&(g=C)}if(l){var b,x;const w=v==="y"?"width":"height",_=Sm.has(Ue(o)),C=a.reference[f]-a.floating[w]+(_&&((b=i.offset)==null?void 0:b[f])||0)+(_?0:m.crossAxis),E=a.reference[f]+a.reference[w]+(_?0:((x=i.offset)==null?void 0:x[f])||0)-(_?m.crossAxis:0);y<C?y=C:y>E&&(y=E)}return{[v]:g,[f]:y}}}},Vx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=We(e,t),d=await Jt(t,l),f=Ue(o),v=Lt(o),g=Ne(o)==="y",{width:y,height:h}=a.floating;let m,b;f==="top"||f==="bottom"?(m=f,b=v===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=f,m=v==="end"?"top":"bottom");const x=h-d.top-d.bottom,w=y-d.left-d.right,_=Ye(h-d[m],x),C=Ye(y-d[b],w),E=!t.middlewareData.shift;let S=_,P=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(S=x),E&&!v){const B=ge(d.left,0),j=ge(d.right,0),U=ge(d.top,0),D=ge(d.bottom,0);g?P=y-2*(B!==0||j!==0?B+j:ge(d.left,d.right)):S=h-2*(U!==0||D!==0?U+D:ge(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:S});const M=await i.getDimensions(s.floating);return y!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function hn(){return typeof window<"u"}function Ft(e){return Em(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(Em(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Em(e){return hn()?e instanceof Node||e instanceof ye(e).Node:!1}function Pe(e){return hn()?e instanceof Element||e instanceof ye(e).Element:!1}function ke(e){return hn()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function yl(e){return!hn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}const zx=new Set(["inline","contents"]);function fr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!zx.has(o)}const Wx=new Set(["table","td","th"]);function Ux(e){return Wx.has(Ft(e))}const Hx=[":popover-open",":modal"];function gn(e){return Hx.some(t=>{try{return e.matches(t)}catch{return!1}})}const Gx=["transform","translate","scale","rotate","perspective"],Kx=["transform","translate","scale","rotate","perspective","filter"],Yx=["paint","layout","strict","content"];function nc(e){const t=oc(),r=Pe(e)?Te(e):e;return Gx.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Kx.some(n=>(r.willChange||"").includes(n))||Yx.some(n=>(r.contain||"").includes(n))}function Xx(e){let t=Xe(e);for(;ke(t)&&!Ot(t);){if(nc(t))return t;if(gn(t))return null;t=Xe(t)}return null}function oc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Zx=new Set(["html","body","#document"]);function Ot(e){return Zx.has(Ft(e))}function Te(e){return ye(e).getComputedStyle(e)}function yn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Ft(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yl(e)&&e.host||Fe(e);return yl(t)?t.host:t}function Rm(e){const t=Xe(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&fr(t)?t:Rm(t)}function Qt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Rm(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ye(o);if(a){const s=ys(i);return t.concat(i,i.visualViewport||[],fr(o)?o:[],s&&r?Qt(s):[])}return t.concat(o,Qt(o,[],r))}function ys(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pm(e){const t=Te(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ke(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Kr(r)!==a||Kr(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ac(e){return Pe(e)?e:e.contextElement}function Rt(e){const t=ac(e);if(!ke(t))return je(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Pm(t);let i=(a?Kr(r.width):r.width)/n,s=(a?Kr(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Jx=je(0);function Tm(e){const t=ye(e);return!oc()||!t.visualViewport?Jx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qx(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ye(e)?!1:t}function ct(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=ac(e);let i=je(1);t&&(n?Pe(n)&&(i=Rt(n)):i=Rt(e));const s=Qx(a,r,n)?Tm(a):je(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(a){const v=ye(a),g=n&&Pe(n)?ye(n):n;let y=v,h=ys(y);for(;h&&n&&g!==y;){const m=Rt(h),b=h.getBoundingClientRect(),x=Te(h),w=b.left+(h.clientLeft+parseFloat(x.paddingLeft))*m.x,_=b.top+(h.clientTop+parseFloat(x.paddingTop))*m.y;c*=m.x,l*=m.y,d*=m.x,f*=m.y,c+=w,l+=_,y=ye(h),h=ys(y)}}return Xr({width:d,height:f,x:c,y:l})}function bn(e,t){const r=yn(e).scrollLeft;return t?t.left+r:ct(Fe(e)).left+r}function Om(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-bn(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function e_(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Fe(n),s=t?gn(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},l=je(1);const d=je(0),f=ke(n);if((f||!f&&!a)&&((Ft(n)!=="body"||fr(i))&&(c=yn(n)),ke(n))){const g=ct(n);l=Rt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const v=i&&!f&&!a?Om(i,c):je(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+d.x+v.x,y:r.y*l.y-c.scrollTop*l.y+d.y+v.y}}function t_(e){return Array.from(e.getClientRects())}function r_(e){const t=Fe(e),r=yn(e),n=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+bn(e);const s=-r.scrollTop;return Te(n).direction==="rtl"&&(i+=ge(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const bl=25;function n_(e,t){const r=ye(e),n=Fe(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=oc();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=bn(n);if(l<=0){const d=n.ownerDocument,f=d.body,v=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,y=Math.abs(n.clientWidth-f.clientWidth-g);y<=bl&&(a-=y)}else l<=bl&&(a+=l);return{width:a,height:i,x:s,y:c}}const o_=new Set(["absolute","fixed"]);function a_(e,t){const r=ct(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=ke(e)?Rt(e):je(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=n*a.y;return{width:i,height:s,x:c,y:l}}function wl(e,t,r){let n;if(t==="viewport")n=n_(e,r);else if(t==="document")n=r_(Fe(e));else if(Pe(t))n=a_(t,r);else{const o=Tm(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xr(n)}function Am(e,t){const r=Xe(e);return r===t||!Pe(r)||Ot(r)?!1:Te(r).position==="fixed"||Am(r,t)}function i_(e,t){const r=t.get(e);if(r)return r;let n=Qt(e,[],!1).filter(s=>Pe(s)&&Ft(s)!=="body"),o=null;const a=Te(e).position==="fixed";let i=a?Xe(e):e;for(;Pe(i)&&!Ot(i);){const s=Te(i),c=nc(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&o_.has(o.position)||fr(i)&&!c&&Am(e,i))?n=n.filter(d=>d!==i):o=s,i=Xe(i)}return t.set(e,n),n}function s_(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?gn(t)?[]:i_(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((l,d)=>{const f=wl(t,d,o);return l.top=ge(f.top,l.top),l.right=Ye(f.right,l.right),l.bottom=Ye(f.bottom,l.bottom),l.left=ge(f.left,l.left),l},wl(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function c_(e){const{width:t,height:r}=Pm(e);return{width:t,height:r}}function l_(e,t,r){const n=ke(t),o=Fe(t),a=r==="fixed",i=ct(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=je(0);function l(){c.x=bn(o)}if(n||!n&&!a)if((Ft(t)!=="body"||fr(o))&&(s=yn(t)),n){const g=ct(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();a&&!n&&o&&l();const d=o&&!n&&!a?Om(o,s):je(0),f=i.left+s.scrollLeft-c.x-d.x,v=i.top+s.scrollTop-c.y-d.y;return{x:f,y:v,width:i.width,height:i.height}}function Kn(e){return Te(e).position==="static"}function xl(e,t){if(!ke(e)||Te(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Fe(e)===r&&(r=r.ownerDocument.body),r}function Mm(e,t){const r=ye(e);if(gn(e))return r;if(!ke(e)){let o=Xe(e);for(;o&&!Ot(o);){if(Pe(o)&&!Kn(o))return o;o=Xe(o)}return r}let n=xl(e,t);for(;n&&Ux(n)&&Kn(n);)n=xl(n,t);return n&&Ot(n)&&Kn(n)&&!nc(n)?r:n||Xx(e)||r}const u_=async function(e){const t=this.getOffsetParent||Mm,r=this.getDimensions,n=await r(e.floating);return{reference:l_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function d_(e){return Te(e).direction==="rtl"}const f_={convertOffsetParentRelativeRectToViewportRelativeRect:e_,getDocumentElement:Fe,getClippingRect:s_,getOffsetParent:Mm,getElementRects:u_,getClientRects:t_,getDimensions:c_,getScale:Rt,isElement:Pe,isRTL:d_};function Im(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function p_(e,t){let r=null,n;const o=Fe(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:d,top:f,width:v,height:g}=l;if(s||t(),!v||!g)return;const y=Tr(f),h=Tr(o.clientWidth-(d+v)),m=Tr(o.clientHeight-(f+g)),b=Tr(d),w={rootMargin:-y+"px "+-h+"px "+-m+"px "+-b+"px",threshold:ge(0,Ye(1,c))||1};let _=!0;function C(E){const S=E[0].intersectionRatio;if(S!==c){if(!_)return i();S?i(!1,S):n=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!Im(l,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(C,w)}r.observe(e)}return i(!0),a}function m_(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=ac(e),d=o||a?[...l?Qt(l):[],...Qt(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const f=l&&s?p_(l,r):null;let v=-1,g=null;i&&(g=new ResizeObserver(b=>{let[x]=b;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),l&&!c&&g.observe(l),g.observe(t));let y,h=c?ct(e):null;c&&m();function m(){const b=ct(e);h&&!Im(h,b)&&r(),h=b,y=requestAnimationFrame(m)}return r(),()=>{var b;d.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),f?.(),(b=g)==null||b.disconnect(),g=null,c&&cancelAnimationFrame(y)}}const v_=Fx,h_=qx,g_=kx,y_=Vx,b_=$x,_l=Dx,w_=Bx,x_=(e,t,r)=>{const n=new Map,o={platform:f_,...r},a={...o.platform,_c:n};return jx(e,t,{...o,platform:a})};var __=typeof document<"u",C_=function(){},qr=__?I.useLayoutEffect:C_;function Zr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Zr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Zr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Nm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cl(e,t){const r=Nm(e);return Math.round(t*r)/r}function Yn(e){const t=u.useRef(e);return qr(()=>{t.current=e}),t}function S_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=u.useState(n);Zr(v,n)||g(n);const[y,h]=u.useState(null),[m,b]=u.useState(null),x=u.useCallback(A=>{A!==E.current&&(E.current=A,h(A))},[]),w=u.useCallback(A=>{A!==S.current&&(S.current=A,b(A))},[]),_=a||y,C=i||m,E=u.useRef(null),S=u.useRef(null),P=u.useRef(d),M=c!=null,B=Yn(c),j=Yn(o),U=Yn(l),D=u.useCallback(()=>{if(!E.current||!S.current)return;const A={placement:t,strategy:r,middleware:v};j.current&&(A.platform=j.current),x_(E.current,S.current,A).then($=>{const ee={...$,isPositioned:U.current!==!1};F.current&&!Zr(P.current,ee)&&(P.current=ee,dn.flushSync(()=>{f(ee)}))})},[v,t,r,j,U]);qr(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[l]);const F=u.useRef(!1);qr(()=>(F.current=!0,()=>{F.current=!1}),[]),qr(()=>{if(_&&(E.current=_),C&&(S.current=C),_&&C){if(B.current)return B.current(_,C,D);D()}},[_,C,D,B,M]);const V=u.useMemo(()=>({reference:E,floating:S,setReference:x,setFloating:w}),[x,w]),k=u.useMemo(()=>({reference:_,floating:C}),[_,C]),K=u.useMemo(()=>{const A={position:r,left:0,top:0};if(!k.floating)return A;const $=Cl(k.floating,d.x),ee=Cl(k.floating,d.y);return s?{...A,transform:"translate("+$+"px, "+ee+"px)",...Nm(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:ee}},[r,s,k.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:D,refs:V,elements:k,floatingStyles:K}),[d,D,V,k,K])}const E_=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?_l({element:n.current,padding:o}).fn(r):{}:n?_l({element:n,padding:o}).fn(r):{}}}},R_=(e,t)=>({...v_(e),options:[e,t]}),P_=(e,t)=>({...h_(e),options:[e,t]}),T_=(e,t)=>({...w_(e),options:[e,t]}),O_=(e,t)=>({...g_(e),options:[e,t]}),A_=(e,t)=>({...y_(e),options:[e,t]}),M_=(e,t)=>({...b_(e),options:[e,t]}),I_=(e,t)=>({...E_(e),options:[e,t]});var N_="Arrow",jm=u.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return p.jsx(Z.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});jm.displayName=N_;var j_=jm;function D_(e){const[t,r]=u.useState(void 0);return ue(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ic="Popper",[Dm,qt]=Le(ic),[k_,km]=Dm(ic),$m=e=>{const{__scopePopper:t,children:r}=e,[n,o]=u.useState(null);return p.jsx(k_,{scope:t,anchor:n,onAnchorChange:o,children:r})};$m.displayName=ic;var Lm="PopperAnchor",Fm=u.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=km(Lm,r),i=u.useRef(null),s=ne(t,i),c=u.useRef(null);return u.useEffect(()=>{const l=c.current;c.current=n?.current||i.current,l!==c.current&&a.onAnchorChange(c.current)}),n?null:p.jsx(Z.div,{...o,ref:s})});Fm.displayName=Lm;var sc="PopperContent",[$_,L_]=Dm(sc),qm=u.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:y,...h}=e,m=km(sc,r),[b,x]=u.useState(null),w=ne(t,O=>x(O)),[_,C]=u.useState(null),E=D_(_),S=E?.width??0,P=E?.height??0,M=n+(a!=="center"?"-"+a:""),B=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},j=Array.isArray(l)?l:[l],U=j.length>0,D={padding:B,boundary:j.filter(q_),altBoundary:U},{refs:F,floatingStyles:V,placement:k,isPositioned:K,middlewareData:A}=S_({strategy:"fixed",placement:M,whileElementsMounted:(...O)=>m_(...O,{animationFrame:g==="always"}),elements:{reference:m.anchor},middleware:[R_({mainAxis:o+P,alignmentAxis:i}),c&&P_({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?T_():void 0,...D}),c&&O_({...D}),A_({...D,apply:({elements:O,rects:X,availableWidth:Q,availableHeight:te})=>{const{width:oe,height:se}=X.reference,ve=O.floating.style;ve.setProperty("--radix-popper-available-width",`${Q}px`),ve.setProperty("--radix-popper-available-height",`${te}px`),ve.setProperty("--radix-popper-anchor-width",`${oe}px`),ve.setProperty("--radix-popper-anchor-height",`${se}px`)}}),_&&I_({element:_,padding:s}),B_({arrowWidth:S,arrowHeight:P}),v&&M_({strategy:"referenceHidden",...D})]}),[$,ee]=zm(k),T=de(y);ue(()=>{K&&T?.()},[K,T]);const R=A.arrow?.x,N=A.arrow?.y,L=A.arrow?.centerOffset!==0,[z,J]=u.useState();return ue(()=>{b&&J(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx($_,{scope:r,placedSide:$,onArrowChange:C,arrowX:R,arrowY:N,shouldHideArrow:L,children:p.jsx(Z.div,{"data-side":$,"data-align":ee,...h,ref:w,style:{...h.style,animation:K?void 0:"none"}})})})});qm.displayName=sc;var Bm="PopperArrow",F_={top:"bottom",right:"left",bottom:"top",left:"right"},Vm=u.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=L_(Bm,n),i=F_[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(j_,{...o,ref:r,style:{...o.style,display:"block"}})})});Vm.displayName=Bm;function q_(e){return e!==null}var B_=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=zm(r),f={start:"0%",center:"50%",end:"100%"}[d],v=(o.arrow?.x??0)+s/2,g=(o.arrow?.y??0)+c/2;let y="",h="";return l==="bottom"?(y=i?f:`${v}px`,h=`${-c}px`):l==="top"?(y=i?f:`${v}px`,h=`${n.floating.height+c}px`):l==="right"?(y=`${-c}px`,h=i?f:`${g}px`):l==="left"&&(y=`${n.floating.width+c}px`,h=i?f:`${g}px`),{data:{x:y,y:h}}}});function zm(e){const[t,r="center"]=e.split("-");return[t,r]}var wn=$m,xn=Fm,cc=qm,lc=Vm,V_="Portal",pr=u.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=u.useState(!1);ue(()=>a(!0),[]);const i=r||o&&globalThis?.document?.body;return i?Vs.createPortal(p.jsx(Z.div,{...n,ref:t}),i):null});pr.displayName=V_;function z_(e){const t=W_(e),r=u.forwardRef((n,o)=>{const{children:a,...i}=n,s=u.Children.toArray(a),c=s.find(H_);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function W_(e){const t=u.forwardRef((r,n)=>{const{children:o,...a}=r;if(u.isValidElement(o)){const i=K_(o),s=G_(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var U_=Symbol("radix.slottable");function H_(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===U_}function G_(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function K_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Y_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xt=new WeakMap,Or=new WeakMap,Ar={},Xn=0,Wm=function(e){return e&&(e.host||Wm(e.parentNode))},X_=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Wm(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Z_=function(e,t,r,n){var o=X_(t,Array.isArray(e)?e:[e]);Ar[r]||(Ar[r]=new WeakMap);var a=Ar[r],i=[],s=new Set,c=new Set(o),l=function(f){!f||s.has(f)||(s.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(v){if(s.has(v))d(v);else try{var g=v.getAttribute(n),y=g!==null&&g!=="false",h=(xt.get(v)||0)+1,m=(a.get(v)||0)+1;xt.set(v,h),a.set(v,m),i.push(v),h===1&&y&&Or.set(v,!0),m===1&&v.setAttribute(r,"true"),y||v.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return d(t),s.clear(),Xn++,function(){i.forEach(function(f){var v=xt.get(f)-1,g=a.get(f)-1;xt.set(f,v),a.set(f,g),v||(Or.has(f)||f.removeAttribute(n),Or.delete(f)),g||f.removeAttribute(r)}),Xn--,Xn||(xt=new WeakMap,xt=new WeakMap,Or=new WeakMap,Ar={})}},_n=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Y_(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Z_(n,o,r,"aria-hidden")):function(){return null}},Ie=function(){return Ie=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ie.apply(this,arguments)};function Um(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function J_(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Br="right-scroll-bar-position",Vr="width-before-scroll-bar",Q_="with-scroll-bars-hidden",eC="--removed-body-scroll-bar-size";function Zn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tC(e,t){var r=I.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var rC=typeof window<"u"?u.useLayoutEffect:u.useEffect,Sl=new WeakMap;function nC(e,t){var r=tC(null,function(n){return e.forEach(function(o){return Zn(o,n)})});return rC(function(){var n=Sl.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Zn(s,null)}),a.forEach(function(s){o.has(s)||Zn(s,i)})}Sl.set(r,e)},[e]),r}function oC(e){return e}function aC(e,t){t===void 0&&(t=oC);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var d=i;i=[],d.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),r}}}};return o}function iC(e){e===void 0&&(e={});var t=aC(null);return t.options=Ie({async:!0,ssr:!1},e),t}var Hm=function(e){var t=e.sideCar,r=Um(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return u.createElement(n,Ie({},r))};Hm.isSideCarExport=!0;function sC(e,t){return e.useMedium(t),Hm}var Gm=iC(),Jn=function(){},Cn=u.forwardRef(function(e,t){var r=u.useRef(null),n=u.useState({onScrollCapture:Jn,onWheelCapture:Jn,onTouchMoveCapture:Jn}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,g=e.noRelative,y=e.noIsolation,h=e.inert,m=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,_=Um(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,E=nC([r,t]),S=Ie(Ie({},_),o);return u.createElement(u.Fragment,null,d&&u.createElement(C,{sideCar:Gm,removeScrollBar:l,shards:f,noRelative:g,noIsolation:y,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:w}),i?u.cloneElement(u.Children.only(s),Ie(Ie({},S),{ref:E})):u.createElement(x,Ie({},S,{className:c,ref:E}),s))});Cn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cn.classNames={fullWidth:Vr,zeroRight:Br};var cC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cC();return t&&e.setAttribute("nonce",t),e}function uC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fC=function(){var e=0,t=null;return{add:function(r){e==0&&(t=lC())&&(uC(t,r),dC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pC=function(){var e=fC();return function(t,r){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Km=function(){var e=pC(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},mC={left:0,top:0,right:0,gap:0},Qn=function(e){return parseInt(e||"",10)||0},vC=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Qn(r),Qn(n),Qn(o)]},hC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mC;var t=vC(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},gC=Km(),Pt="data-scroll-locked",yC=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
7
- .`.concat(Q_,` {
8
- overflow: hidden `).concat(n,`;
9
- padding-right: `).concat(s,"px ").concat(n,`;
6
+ <%s key={someKey} {...props} />`,A,R,U,R),ne[R+A]=!0)}if(R=null,T!==void 0&&(n(T),R=""+T),s(S)&&(n(S.key),R=""+S.key),"key"in S){T={};for(var J in S)J!=="key"&&(T[J]=S[J])}else T=S;return R&&c(T,typeof P=="function"?P.displayName||P.name||"Unknown":P),u(P,R,T,o(),j,K)}function p(P){g(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===O&&(P._payload.status==="fulfilled"?g(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function g(P){return typeof P=="object"&&P!==null&&P.$$typeof===x}var v=H,x=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),y=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),Y=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,G=Array.isArray,q=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(P){return P()}};var V,X={},I=v.react_stack_bottom_frame.bind(v,a)(),D=q(r(a)),ne={};bt.Fragment=h,bt.jsx=function(P,S,T){var A=1e4>Y.recentlyCreatedOwnerStacks++;return f(P,S,T,!1,A?Error("react-stack-top-frame"):I,A?q(r(P)):D)},bt.jsxs=function(P,S,T){var A=1e4>Y.recentlyCreatedOwnerStacks++;return f(P,S,T,!0,A?Error("react-stack-top-frame"):I,A?q(r(P)):D)}})()),bt}var co;function bl(){return co||(co=1,process.env.NODE_ENV==="production"?Wt.exports=hl():Wt.exports=xl()),Wt.exports}var d=bl();function lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function le(...e){return t=>{let n=!1;const r=e.map(o=>{const a=lo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():lo(e[o],null)}}}}function te(...e){return i.useCallback(le(...e),e)}var wl=Symbol.for("react.lazy"),rn=i[" use ".trim().toString()];function yl(e){return typeof e=="object"&&e!==null&&"then"in e}function ta(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===wl&&"_payload"in e&&yl(e._payload)}function Er(e){const t=Cl(e),n=i.forwardRef((r,o)=>{let{children:a,...s}=r;ta(a)&&typeof rn=="function"&&(a=rn(a._payload));const c=i.Children.toArray(a),l=c.find(El);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var na=Er("Slot");function Cl(e){const t=i.forwardRef((n,r)=>{let{children:o,...a}=n;if(ta(o)&&typeof rn=="function"&&(o=rn(o._payload)),i.isValidElement(o)){const s=Pl(o),c=Rl(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sl=Symbol("radix.slottable");function El(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sl}function Rl(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Pl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ra(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=ra(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function oa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ra(e))&&(r&&(r+=" "),r+=t);return r}const uo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fo=oa,aa=(e,t)=>n=>{var r;if(t?.variants==null)return fo(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const f=n?.[u],p=a?.[u];if(f===null)return null;const g=uo(f)||uo(p);return o[u][g]}),c=n&&Object.entries(n).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:g,...v}=f;return Object.entries(v).every(x=>{let[m,h]=x;return Array.isArray(h)?h.includes({...a,...c}[m]):{...a,...c}[m]===h})?[...u,p,g]:u},[]);return fo(e,s,l,n?.class,n?.className)},_l=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ml=(e,t)=>({classGroupId:e,validator:t}),sa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),on="-",po=[],Nl="arbitrary..",Il=e=>{const t=Al(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Tl(s);const c=s.split(on),l=c[0]===""&&c.length>1?1:0;return ia(c,l,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const l=r[s],u=n[s];return l?u?_l(u,l):l:u||po}return n[s]||po}}},ia=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const u=ia(e,t+1,a);if(u)return u}const s=n.validators;if(s===null)return;const c=t===0?e.join(on):e.slice(t).join(on),l=s.length;for(let u=0;u<l;u++){const f=s[u];if(f.validator(c))return f.classGroupId}},Tl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Nl+r:void 0})(),Al=e=>{const{theme:t,classGroups:n}=e;return kl(n,t)},kl=(e,t)=>{const n=sa();for(const r in e){const o=e[r];Rr(o,n,r,t)}return n},Rr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];Ol(s,t,n,r)}},Ol=(e,t,n,r)=>{if(typeof e=="string"){Dl(e,t,n);return}if(typeof e=="function"){jl(e,t,n,r);return}Fl(e,t,n,r)},Dl=(e,t,n)=>{const r=e===""?t:ca(t,e);r.classGroupId=n},jl=(e,t,n,r)=>{if(Ll(e)){Rr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ml(n,e))},Fl=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[c,l]=o[s];Rr(l,ca(t,c),n,r)}},ca=(e,t)=>{let n=e;const r=t.split(on),o=r.length;for(let a=0;a<o;a++){const s=r[a];let c=n.nextPart.get(s);c||(c=sa(),n.nextPart.set(s,c)),n=c}return n},Ll=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,$l=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return o(a,s),s},set(a,s){a in n?n[a]=s:o(a,s)}}},nr="!",mo=":",Vl=[],go=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),zl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,c=0,l=0,u;const f=o.length;for(let m=0;m<f;m++){const h=o[m];if(s===0&&c===0){if(h===mo){a.push(o.slice(l,m)),l=m+1;continue}if(h==="/"){u=m;continue}}h==="["?s++:h==="]"?s--:h==="("?c++:h===")"&&c--}const p=a.length===0?o:o.slice(l);let g=p,v=!1;p.endsWith(nr)?(g=p.slice(0,-1),v=!0):p.startsWith(nr)&&(g=p.slice(1),v=!0);const x=u&&u>l?u-l:void 0;return go(a,v,g,x)};if(t){const o=t+mo,a=r;r=s=>s.startsWith(o)?a(s.slice(o.length)):go(Vl,!1,s,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Wl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const s=n[a],c=s[0]==="[",l=t.has(s);c||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},Bl=e=>({cache:$l(e.cacheSize),parseClassName:zl(e),sortModifiers:Wl(e),...Il(e)}),Gl=/\s+/,Ul=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],c=e.trim().split(Gl);let l="";for(let u=c.length-1;u>=0;u-=1){const f=c[u],{isExternal:p,modifiers:g,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:m}=n(f);if(p){l=f+(l.length>0?" "+l:l);continue}let h=!!m,b=r(h?x.substring(0,m):x);if(!b){if(!h){l=f+(l.length>0?" "+l:l);continue}if(b=r(x),!b){l=f+(l.length>0?" "+l:l);continue}h=!1}const C=g.length===0?"":g.length===1?g[0]:a(g).join(":"),w=v?C+nr:C,y=w+b;if(s.indexOf(y)>-1)continue;s.push(y);const E=o(b,h);for(let M=0;M<E.length;++M){const _=E[M];s.push(w+_)}l=f+(l.length>0?" "+l:l)}return l},Hl=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=la(n))&&(o&&(o+=" "),o+=r);return o},la=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=la(e[r]))&&(n&&(n+=" "),n+=t);return n},Kl=(e,...t)=>{let n,r,o,a;const s=l=>{const u=t.reduce((f,p)=>p(f),e());return n=Bl(u),r=n.cache.get,o=n.cache.set,a=c,c(l)},c=l=>{const u=r(l);if(u)return u;const f=Ul(l,n);return o(l,f),f};return a=s,(...l)=>a(Hl(...l))},Yl=[],se=e=>{const t=n=>n[e]||Yl;return t.isThemeGetter=!0,t},ua=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,da=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xl=/^\d+\/\d+$/,ql=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zl=/\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$/,Jl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ql=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,et=e=>Xl.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),Vn=e=>e.endsWith("%")&&Q(e.slice(0,-1)),Ie=e=>ql.test(e),tu=()=>!0,nu=e=>Zl.test(e)&&!Jl.test(e),fa=()=>!1,ru=e=>Ql.test(e),ou=e=>eu.test(e),au=e=>!F(e)&&!L(e),su=e=>dt(e,ga,fa),F=e=>ua.test(e),Ge=e=>dt(e,va,nu),zn=e=>dt(e,du,Q),vo=e=>dt(e,pa,fa),iu=e=>dt(e,ma,ou),Bt=e=>dt(e,ha,ru),L=e=>da.test(e),wt=e=>ft(e,va),cu=e=>ft(e,fu),ho=e=>ft(e,pa),lu=e=>ft(e,ga),uu=e=>ft(e,ma),Gt=e=>ft(e,ha,!0),dt=(e,t,n)=>{const r=ua.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ft=(e,t,n=!1)=>{const r=da.exec(e);return r?r[1]?t(r[1]):n:!1},pa=e=>e==="position"||e==="percentage",ma=e=>e==="image"||e==="url",ga=e=>e==="length"||e==="size"||e==="bg-size",va=e=>e==="length",du=e=>e==="number",fu=e=>e==="family-name",ha=e=>e==="shadow",pu=()=>{const e=se("color"),t=se("font"),n=se("text"),r=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),c=se("container"),l=se("spacing"),u=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),v=se("drop-shadow"),x=se("blur"),m=se("perspective"),h=se("aspect"),b=se("ease"),C=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...y(),L,F],M=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],N=()=>[L,F,l],O=()=>[et,"full","auto",...N()],z=()=>[ke,"none","subgrid",L,F],B=()=>["auto",{span:["full",ke,L,F]},ke,L,F],Y=()=>[ke,"auto",L,F],Z=()=>["auto","min","max","fr",L,F],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...N()],X=()=>[et,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],I=()=>[e,L,F],D=()=>[...y(),ho,vo,{position:[L,F]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",lu,su,{size:[L,F]}],S=()=>[Vn,wt,Ge],T=()=>["","none","full",u,L,F],A=()=>["",Q,wt,Ge],j=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[Q,Vn,ho,vo],U=()=>["","none",x,L,F],J=()=>["none",Q,L,F],ee=()=>["none",Q,L,F],re=()=>[Q,L,F],oe=()=>[et,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[tu],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[au],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",Q],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",et,F,L,h]}],container:["container"],columns:[{columns:[Q,F,L,c]}],"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:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[ke,"auto",L,F]}],basis:[{basis:[et,"full","auto",c,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,et,"auto","initial","none",F]}],grow:[{grow:["",Q,L,F]}],shrink:[{shrink:["",Q,L,F]}],order:[{order:[ke,"first","last","none",L,F]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[c,"screen",...X()]}],"min-w":[{"min-w":[c,"screen","none",...X()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,wt,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,L,zn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vn,F]}],"font-family":[{font:[cu,F,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,L,F]}],"line-clamp":[{"line-clamp":[Q,"none",L,zn]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",L,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",L,Ge]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Q,"auto",L,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,F]}],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",L,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ke,L,F],radial:["",L,F],conic:[ke,L,F]},uu,iu]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border: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:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,L,F]}],"outline-w":[{outline:["",Q,wt,Ge]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",f,Gt,Bt]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,Gt,Bt]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Q,Ge]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",g,Gt,Bt]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Q,L,F]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[L,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,F]}],filter:[{filter:["","none",L,F]}],blur:[{blur:U()}],brightness:[{brightness:[Q,L,F]}],contrast:[{contrast:[Q,L,F]}],"drop-shadow":[{"drop-shadow":["","none",v,Gt,Bt]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Q,L,F]}],"hue-rotate":[{"hue-rotate":[Q,L,F]}],invert:[{invert:["",Q,L,F]}],saturate:[{saturate:[Q,L,F]}],sepia:[{sepia:["",Q,L,F]}],"backdrop-filter":[{"backdrop-filter":["","none",L,F]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[Q,L,F]}],"backdrop-contrast":[{"backdrop-contrast":[Q,L,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,L,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,L,F]}],"backdrop-invert":[{"backdrop-invert":["",Q,L,F]}],"backdrop-opacity":[{"backdrop-opacity":[Q,L,F]}],"backdrop-saturate":[{"backdrop-saturate":[Q,L,F]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,L,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",L,F]}],ease:[{ease:["linear","initial",b,L,F]}],delay:[{delay:[Q,L,F]}],animate:[{animate:["none",C,L,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,L,F]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[L,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",L,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L,F]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Q,wt,Ge,zn]}],stroke:[{stroke:["none",...I()]}],"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"]}},mu=Kl(pu);function $(...e){return mu(oa(e))}const xa=aa("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed 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 shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs 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 shadow-xs 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"}},defaultVariants:{variant:"default",size:"default"}});function ba({className:e,variant:t,size:n,asChild:r=!1,...o}){const a=r?na:"button";return d.jsx(a,{"data-slot":"button",className:$(xa({variant:t,size:n,className:e})),...o})}function gu({className:e,type:t,...n}){return d.jsx("input",{type:t,"data-slot":"input",className:$("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex 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 vu({className:e,...t}){return d.jsx("div",{"data-slot":"card",className:$("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function hu({className:e,...t}){return d.jsx("div",{"data-slot":"card-header",className:$("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function xu({className:e,...t}){return d.jsx("div",{"data-slot":"card-title",className:$("leading-none font-semibold",e),...t})}function bu({className:e,...t}){return d.jsx("div",{"data-slot":"card-description",className:$("text-muted-foreground text-sm",e),...t})}function wu({className:e,...t}){return d.jsx("div",{"data-slot":"card-action",className:$("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function yu({className:e,...t}){return d.jsx("div",{"data-slot":"card-content",className:$("px-6",e),...t})}function Cu({className:e,...t}){return d.jsx("div",{"data-slot":"card-footer",className:$("flex items-center px-6 [.border-t]:pt-6",e),...t})}var Su=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Eu=Su.reduce((e,t)=>{const n=Er(`Primitive.${t}`),r=i.forwardRef((o,a)=>{const{asChild:s,...c}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ru="Label",wa=i.forwardRef((e,t)=>d.jsx(Eu.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));wa.displayName=Ru;var Pu=wa;function ya({className:e,...t}){return d.jsx(Pu,{"data-slot":"label",className:$("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var _u=e=>e.type==="checkbox",Ct=e=>e instanceof Date,Pr=e=>e==null;const Ca=e=>typeof e=="object";var Ue=e=>!Pr(e)&&!Array.isArray(e)&&Ca(e)&&!Ct(e),Mu=e=>Ue(e)&&e.target?_u(e.target)?e.target.checked:e.target.value:e,Nu=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Iu=(e,t)=>e.has(Nu(t)),Tu=e=>{const t=e.constructor&&e.constructor.prototype;return Ue(t)&&t.hasOwnProperty("isPrototypeOf")},Au=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Sa(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Au&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Ue(e)&&Tu(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Sa(e[o]));return r}var Ea=e=>/^\w*$/.test(e),rr=e=>e===void 0,ku=e=>Array.isArray(e)?e.filter(Boolean):[],Ra=e=>ku(e.replace(/["|']|\]/g,"").split(/\.|\[/)),fe=(e,t,n)=>{if(!t||!Ue(e))return n;const r=(Ea(t)?[t]:Ra(t)).reduce((o,a)=>Pr(o)?o:o[a],e);return rr(r)||r===e?rr(e[t])?n:e[t]:r},Wn=e=>typeof e=="boolean",Ut=e=>typeof e=="function",xo=(e,t,n)=>{let r=-1;const o=Ea(t)?[t]:Ra(t),a=o.length,s=a-1;for(;++r<a;){const c=o[r];let l=n;if(r!==s){const u=e[c];l=Ue(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=l,e=e[c]}};const bo={BLUR:"blur",CHANGE:"change"},wo={all:"all"},_r=H.createContext(null);_r.displayName="HookFormContext";const hn=()=>H.useContext(_r),Ou=e=>{const{children:t,...n}=e;return H.createElement(_r.Provider,{value:n},t)};var Du=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==wo.all&&(t._proxyFormState[s]=!r||wo.all),n&&(n[s]=!0),e[s]}});return o};const Pa=typeof window<"u"?H.useLayoutEffect:H.useEffect;function _a(e){const t=hn(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,c]=H.useState(n._formState),l=H.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Pa(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:u=>{!r&&c({...n._formState,...u})}}),[o,r,a]),H.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),H.useMemo(()=>Du(s,n,l.current,!1),[s,n])}var ju=e=>typeof e=="string",yo=(e,t,n,r,o)=>ju(e)?fe(n,e,o):Array.isArray(e)?e.map(a=>fe(n,a)):n,Co=e=>Pr(e)||!Ca(e);function Jt(e,t,n=new WeakSet){if(Co(e)||Co(t))return Object.is(e,t);if(Ct(e)&&Ct(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const c=t[a];if(Ct(s)&&Ct(c)||Ue(s)&&Ue(c)||Array.isArray(s)&&Array.isArray(c)?!Jt(s,c,n):!Object.is(s,c))return!1}}return!0}function Fu(e){const t=hn(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:c}=e||{},l=H.useRef(o),u=H.useRef(c),f=H.useRef(void 0),p=H.useRef(n),g=H.useRef(r);u.current=c;const[v,x]=H.useState(()=>{const y=n._getWatch(r,l.current);return u.current?u.current(y):y}),m=H.useCallback(y=>{const E=yo(r,n._names,y||n._formValues,!1,l.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),h=H.useCallback(y=>{if(!a){const E=yo(r,n._names,y||n._formValues,!1,l.current);if(u.current){const M=u.current(E);Jt(M,f.current)||(x(M),f.current=M)}else x(E)}},[n._formValues,n._names,a,r]);Pa(()=>((p.current!==n||!Jt(g.current,r))&&(p.current=n,g.current=r,h()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:y=>{h(y.values)}})),[n,s,r,h]),H.useEffect(()=>n._removeUnmounted());const b=p.current!==n,C=g.current,w=H.useMemo(()=>{if(a)return null;const y=!b&&!Jt(C,r);return b||y?m():null},[a,b,r,C,m]);return w!==null?w:v}function Lu(e){const t=hn(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:c=!0}=e,l=Iu(o._names.array,n),u=H.useMemo(()=>fe(o._formValues,n,fe(o._defaultValues,n,s)),[o,n,s]),f=Fu({control:o,name:n,defaultValue:u,exact:c}),p=_a({control:o,name:n,exact:c}),g=H.useRef(e),v=H.useRef(void 0),x=H.useRef(o.register(n,{...e.rules,value:f,...Wn(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const m=H.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!fe(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!fe(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!fe(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!fe(p.validatingFields,n)},error:{enumerable:!0,get:()=>fe(p.errors,n)}}),[p,n]),h=H.useCallback(y=>x.current.onChange({target:{value:Mu(y),name:n},type:bo.CHANGE}),[n]),b=H.useCallback(()=>x.current.onBlur({target:{value:fe(o._formValues,n),name:n},type:bo.BLUR}),[n,o._formValues]),C=H.useCallback(y=>{const E=fe(o._fields,n);E&&E._f&&y&&(E._f.ref={focus:()=>Ut(y.focus)&&y.focus(),select:()=>Ut(y.select)&&y.select(),setCustomValidity:M=>Ut(y.setCustomValidity)&&y.setCustomValidity(M),reportValidity:()=>Ut(y.reportValidity)&&y.reportValidity()})},[o._fields,n]),w=H.useMemo(()=>({name:n,value:f,...Wn(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:h,onBlur:b,ref:C}),[n,r,p.disabled,h,b,C,f]);return H.useEffect(()=>{const y=o._options.shouldUnregister||a,E=v.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...g.current.rules,...Wn(g.current.disabled)?{disabled:g.current.disabled}:{}});const M=(_,N)=>{const O=fe(o._fields,_);O&&O._f&&(O._f.mount=N)};if(M(n,!0),y){const _=Sa(fe(o._options.defaultValues,n,g.current.defaultValue));xo(o._defaultValues,n,_),rr(fe(o._formValues,n))&&xo(o._formValues,n,_)}return!l&&o.register(n),v.current=n,()=>{(l?y&&!o._state.action:y)?o.unregister(n):M(n,!1)}},[n,o,l,a]),H.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),H.useMemo(()=>({field:w,formState:p,fieldState:m}),[w,p,m])}const $u=e=>e.render(Lu(e)),Vu=Ou,Ma=i.createContext({}),zu=({...e})=>d.jsx(Ma.Provider,{value:{name:e.name},children:d.jsx($u,{...e})}),Nt=()=>{const e=i.useContext(Ma),t=i.useContext(Na),{getFieldState:n}=hn(),r=_a({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Na=i.createContext({});function Wu({className:e,...t}){const n=i.useId();return d.jsx(Na.Provider,{value:{id:n},children:d.jsx("div",{"data-slot":"form-item",className:$("grid gap-2",e),...t})})}function Bu({className:e,...t}){const{error:n,formItemId:r}=Nt();return d.jsx(ya,{"data-slot":"form-label","data-error":!!n,className:$("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Gu({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=Nt();return d.jsx(na,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Uu({className:e,...t}){const{formDescriptionId:n}=Nt();return d.jsx("p",{"data-slot":"form-description",id:n,className:$("text-muted-foreground text-sm",e),...t})}function Hu({className:e,...t}){const{error:n,formMessageId:r}=Nt(),o=n?String(n?.message??""):t.children;return o?d.jsx("p",{"data-slot":"form-message",id:r,className:$("text-destructive text-sm",e),...t,children:o}):null}function k(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Ku(e,t){const n=i.createContext(t),r=a=>{const{children:s,...c}=a,l=i.useMemo(()=>c,Object.values(c));return d.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=i.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Me(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];const u=p=>{const{scope:g,children:v,...x}=p,m=g?.[e]?.[l]||c,h=i.useMemo(()=>x,Object.values(x));return d.jsx(m.Provider,{value:h,children:v})};u.displayName=a+"Provider";function f(p,g){const v=g?.[e]?.[l]||c,x=i.useContext(v);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Yu(o,...t)]}function Yu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:l,scopeName:u})=>{const p=l(a)[`__scope${u}`];return{...c,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function So(e){const t=Xu(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(Zu);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Xu(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=Qu(o),c=Ju(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qu=Symbol("radix.slottable");function Zu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qu}function Ju(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Qu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function It(e){const t=e+"CollectionProvider",[n,r]=Me(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:h,children:b}=m,C=H.useRef(null),w=H.useRef(new Map).current;return d.jsx(o,{scope:h,itemMap:w,collectionRef:C,children:b})};s.displayName=t;const c=e+"CollectionSlot",l=So(c),u=H.forwardRef((m,h)=>{const{scope:b,children:C}=m,w=a(c,b),y=te(h,w.collectionRef);return d.jsx(l,{ref:y,children:C})});u.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=So(f),v=H.forwardRef((m,h)=>{const{scope:b,children:C,...w}=m,y=H.useRef(null),E=te(h,y),M=a(f,b);return H.useEffect(()=>(M.itemMap.set(y,{ref:y,...w}),()=>{M.itemMap.delete(y)})),d.jsx(g,{[p]:"",ref:E,children:C})});v.displayName=f;function x(m){const h=a(e+"CollectionConsumer",m);return H.useCallback(()=>{const C=h.collectionRef.current;if(!C)return[];const w=Array.from(C.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((M,_)=>w.indexOf(M.ref.current)-w.indexOf(_.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:v},x,r]}var ie=globalThis?.document?i.useLayoutEffect:()=>{},ed=i[" useId ".trim().toString()]||(()=>{}),td=0;function ae(e){const[t,n]=i.useState(ed());return ie(()=>{n(r=>r??String(td++))},[e]),e||(t?`radix-${t}`:"")}function nd(e){const t=rd(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(ad);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function rd(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=id(o),c=sd(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var od=Symbol("radix.slottable");function ad(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===od}function sd(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function id(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W=cd.reduce((e,t)=>{const n=nd(`Primitive.${t}`),r=i.forwardRef((o,a)=>{const{asChild:s,...c}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function an(e,t){e&&vn.flushSync(()=>e.dispatchEvent(t))}function ce(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}var ld=i[" useInsertionEffect ".trim().toString()]||ie;function Pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=ud({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"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=c},[c,r])}const u=i.useCallback(f=>{if(c){const p=dd(f)?f(e):f;p!==e&&s.current?.(p)}else a(f)},[c,e,a,s]);return[l,u]}function ud({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return ld(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function dd(e){return typeof e=="function"}var fd=i.createContext(void 0);function Tt(e){const t=i.useContext(fd);return e||t||"ltr"}var Bn="rovingFocusGroup.onEntryFocus",pd={bubbles:!1,cancelable:!0},At="RovingFocusGroup",[or,Ia,md]=It(At),[gd,xn]=Me(At,[md]),[vd,hd]=gd(At),Ta=i.forwardRef((e,t)=>d.jsx(or.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(or.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(xd,{...e,ref:t})})}));Ta.displayName=At;var xd=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=i.useRef(null),v=te(t,g),x=Tt(a),[m,h]=Pe({prop:s,defaultProp:c??null,onChange:l,caller:At}),[b,C]=i.useState(!1),w=ce(u),y=Ia(n),E=i.useRef(!1),[M,_]=i.useState(0);return i.useEffect(()=>{const N=g.current;if(N)return N.addEventListener(Bn,w),()=>N.removeEventListener(Bn,w)},[w]),d.jsx(vd,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:i.useCallback(N=>h(N),[h]),onItemShiftTab:i.useCallback(()=>C(!0),[]),onFocusableItemAdd:i.useCallback(()=>_(N=>N+1),[]),onFocusableItemRemove:i.useCallback(()=>_(N=>N-1),[]),children:d.jsx(W.div,{tabIndex:b||M===0?-1:0,"data-orientation":r,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{E.current=!0}),onFocus:k(e.onFocus,N=>{const O=!E.current;if(N.target===N.currentTarget&&O&&!b){const z=new CustomEvent(Bn,pd);if(N.currentTarget.dispatchEvent(z),!z.defaultPrevented){const B=y().filter(V=>V.focusable),Y=B.find(V=>V.active),Z=B.find(V=>V.id===m),q=[Y,Z,...B].filter(Boolean).map(V=>V.ref.current);Oa(q,f)}}E.current=!1}),onBlur:k(e.onBlur,()=>C(!1))})})}),Aa="RovingFocusGroupItem",ka=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...c}=e,l=ae(),u=a||l,f=hd(Aa,n),p=f.currentTabStopId===u,g=Ia(n),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:m}=f;return i.useEffect(()=>{if(r)return v(),()=>x()},[r,v,x]),d.jsx(or.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(W.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:k(e.onMouseDown,h=>{r?f.onItemFocus(u):h.preventDefault()}),onFocus:k(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:k(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=yd(h,f.orientation,f.dir);if(b!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=g().filter(y=>y.focusable).map(y=>y.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const y=w.indexOf(h.currentTarget);w=f.loop?Cd(w,y+1):w.slice(y+1)}setTimeout(()=>Oa(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});ka.displayName=Aa;var bd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yd(e,t,n){const r=wd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return bd[r]}function Oa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Cd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Da=Ta,ja=ka;function Sd(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var de=e=>{const{present:t,children:n}=e,r=Ed(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=te(r.ref,Rd(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};de.displayName="Presence";function Ed(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Sd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Ht(r.current);a.current=c==="mounted"?u:"none"},[c]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const g=a.current,v=Ht(u);e?l("MOUNT"):v==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=v=>{const m=Ht(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(l("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},g=v=>{v.target===t&&(a.current=Ht(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ht(e){return e?.animationName||"none"}function Rd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bn="Tabs",[Pd]=Me(bn,[xn]),Fa=xn(),[_d,Mr]=Pd(bn),La=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:c,activationMode:l="automatic",...u}=e,f=Tt(c),[p,g]=Pe({prop:r,onChange:o,defaultProp:a??"",caller:bn});return d.jsx(_d,{scope:n,baseId:ae(),value:p,onValueChange:g,orientation:s,dir:f,activationMode:l,children:d.jsx(W.div,{dir:f,"data-orientation":s,...u,ref:t})})});La.displayName=bn;var $a="TabsList",Va=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Mr($a,n),s=Fa(n);return d.jsx(Da,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(W.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Va.displayName=$a;var za="TabsTrigger",Wa=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Mr(za,n),c=Fa(n),l=Ua(s.baseId,r),u=Ha(s.baseId,r),f=r===s.value;return d.jsx(ja,{asChild:!0,...c,focusable:!o,active:f,children:d.jsx(W.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:k(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:k(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:k(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(r)})})})});Wa.displayName=za;var Ba="TabsContent",Ga=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,c=Mr(Ba,n),l=Ua(c.baseId,r),u=Ha(c.baseId,r),f=r===c.value,p=i.useRef(f);return i.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),d.jsx(de,{present:o||f,children:({present:g})=>d.jsx(W.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!g,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&a})})});Ga.displayName=Ba;function Ua(e,t){return`${e}-trigger-${t}`}function Ha(e,t){return`${e}-content-${t}`}var Md=La,Nd=Va,Id=Wa,Td=Ga;function Ad({className:e,...t}){return d.jsx(Md,{"data-slot":"tabs",className:$("flex flex-col gap-2",e),...t})}function kd({className:e,...t}){return d.jsx(Nd,{"data-slot":"tabs-list",className:$("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Od({className:e,...t}){return d.jsx(Id,{"data-slot":"tabs-trigger",className:$("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Dd({className:e,...t}){return d.jsx(Td,{"data-slot":"tabs-content",className:$("flex-1 outline-none",e),...t})}function jd({className:e,...t}){return d.jsx("div",{"data-slot":"skeleton",className:$("bg-accent animate-pulse rounded-md",e),...t})}function Ka({className:e,...t}){return d.jsx(ge.Loader2Icon,{role:"status","aria-label":"Loading",className:$("size-4 animate-spin",e),...t})}function Fd(e,t=globalThis?.document){const n=ce(e);i.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 Ld="DismissableLayer",ar="dismissableLayer.update",$d="dismissableLayer.pointerDownOutside",Vd="dismissableLayer.focusOutside",Eo,Ya=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=e,u=i.useContext(Ya),[f,p]=i.useState(null),g=f?.ownerDocument??globalThis?.document,[,v]=i.useState({}),x=te(t,_=>p(_)),m=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(h),C=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,y=C>=b,E=Bd(_=>{const N=_.target,O=[...u.branches].some(z=>z.contains(N));!y||O||(o?.(_),s?.(_),_.defaultPrevented||c?.())},g),M=Gd(_=>{const N=_.target;[...u.branches].some(z=>z.contains(N))||(a?.(_),s?.(_),_.defaultPrevented||c?.())},g);return Fd(_=>{C===u.layers.size-1&&(r?.(_),!_.defaultPrevented&&c&&(_.preventDefault(),c()))},g),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Eo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ro(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Eo)}},[f,g,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,u]),i.useEffect(()=>{const _=()=>v({});return document.addEventListener(ar,_),()=>document.removeEventListener(ar,_)},[]),d.jsx(W.div,{...l,ref:x,style:{pointerEvents:w?y?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,M.onFocusCapture),onBlurCapture:k(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,E.onPointerDownCapture)})});pt.displayName=Ld;var zd="DismissableLayerBranch",Wd=i.forwardRef((e,t)=>{const n=i.useContext(Ya),r=i.useRef(null),o=te(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(W.div,{...e,ref:o})});Wd.displayName=zd;function Bd(e,t=globalThis?.document){const n=ce(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let l=function(){Xa($d,n,u,{discrete:!0})};const u={originalEvent:c};c.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Gd(e,t=globalThis?.document){const n=ce(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Xa(Vd,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ro(){const e=new CustomEvent(ar);document.dispatchEvent(e)}function Xa(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?an(o,a):o.dispatchEvent(a)}function qa(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Za=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"}),Ud="VisuallyHidden",Ja=i.forwardRef((e,t)=>d.jsx(W.span,{...e,ref:t,style:{...Za,...e.style}}));Ja.displayName=Ud;var Hd=Ja,Ze="NavigationMenu",[Nr,Qa,Kd]=It(Ze),[sr,Yd,Xd]=It(Ze),[Ir]=Me(Ze,[Kd,Xd]),[qd,xe]=Ir(Ze),[Zd,Jd]=Ir(Ze),es=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:s=200,skipDelayDuration:c=300,orientation:l="horizontal",dir:u,...f}=e,[p,g]=i.useState(null),v=te(t,O=>g(O)),x=Tt(u),m=i.useRef(0),h=i.useRef(0),b=i.useRef(0),[C,w]=i.useState(!0),[y,E]=Pe({prop:r,onChange:O=>{const z=O!=="",B=c>0;z?(window.clearTimeout(b.current),B&&w(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>w(!0),c)),o?.(O)},defaultProp:a??"",caller:Ze}),M=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>E(""),150)},[E]),_=i.useCallback(O=>{window.clearTimeout(h.current),E(O)},[E]),N=i.useCallback(O=>{y===O?window.clearTimeout(h.current):m.current=window.setTimeout(()=>{window.clearTimeout(h.current),E(O)},s)},[y,E,s]);return i.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(h.current),window.clearTimeout(b.current)},[]),d.jsx(ts,{scope:n,isRootMenu:!0,value:y,dir:x,orientation:l,rootNavigationMenu:p,onTriggerEnter:O=>{window.clearTimeout(m.current),C?N(O):_(O)},onTriggerLeave:()=>{window.clearTimeout(m.current),M()},onContentEnter:()=>window.clearTimeout(h.current),onContentLeave:M,onItemSelect:O=>{E(z=>z===O?"":O)},onItemDismiss:()=>E(""),children:d.jsx(W.nav,{"aria-label":"Main","data-orientation":l,dir:x,...f,ref:v})})});es.displayName=Ze;var ir="NavigationMenuSub",Qd=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",...c}=e,l=xe(ir,n),[u,f]=Pe({prop:r,onChange:o,defaultProp:a??"",caller:ir});return d.jsx(ts,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:s,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:p=>f(p),onItemSelect:p=>f(p),onItemDismiss:()=>f(""),children:d.jsx(W.div,{"data-orientation":s,...c,ref:t})})});Qd.displayName=ir;var ts=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:s,value:c,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:g,onContentLeave:v}=e,[x,m]=i.useState(null),[h,b]=i.useState(new Map),[C,w]=i.useState(null);return d.jsx(qd,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:c,previousValue:qa(c),baseId:ae(),dir:o,orientation:a,viewport:x,onViewportChange:m,indicatorTrack:C,onIndicatorTrackChange:w,onTriggerEnter:ce(f),onTriggerLeave:ce(p),onContentEnter:ce(g),onContentLeave:ce(v),onItemSelect:ce(l),onItemDismiss:ce(u),onViewportContentChange:i.useCallback((y,E)=>{b(M=>(M.set(y,E),new Map(M)))},[]),onViewportContentRemove:i.useCallback(y=>{b(E=>E.has(y)?(E.delete(y),new Map(E)):E)},[]),children:d.jsx(Nr.Provider,{scope:t,children:d.jsx(Zd,{scope:t,items:h,children:s})})})},ns="NavigationMenuList",rs=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xe(ns,n),a=d.jsx(W.ul,{"data-orientation":o.orientation,...r,ref:t});return d.jsx(W.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:d.jsx(Nr.Slot,{scope:n,children:o.isRootMenu?d.jsx(ps,{asChild:!0,children:a}):a})})});rs.displayName=ns;var os="NavigationMenuItem",[ef,as]=Ir(os),ss=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=ae(),s=r||a||"LEGACY_REACT_AUTO_VALUE",c=i.useRef(null),l=i.useRef(null),u=i.useRef(null),f=i.useRef(()=>{}),p=i.useRef(!1),g=i.useCallback((x="start")=>{if(c.current){f.current();const m=lr(c.current);m.length&&kr(x==="start"?m:m.reverse())}},[]),v=i.useCallback(()=>{if(c.current){const x=lr(c.current);x.length&&(f.current=cf(x))}},[]);return d.jsx(ef,{scope:n,value:s,triggerRef:l,contentRef:c,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:g,onFocusProxyEnter:g,onRootContentClose:v,onContentFocusOutside:v,children:d.jsx(W.li,{...o,ref:t})})});ss.displayName=os;var cr="NavigationMenuTrigger",is=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=xe(cr,e.__scopeNavigationMenu),s=as(cr,e.__scopeNavigationMenu),c=i.useRef(null),l=te(c,s.triggerRef,t),u=gs(a.baseId,s.value),f=vs(a.baseId,s.value),p=i.useRef(!1),g=i.useRef(!1),v=s.value===a.value;return d.jsxs(d.Fragment,{children:[d.jsx(Nr.ItemSlot,{scope:n,value:s.value,children:d.jsx(ms,{asChild:!0,children:d.jsx(W.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Or(v),"aria-expanded":v,"aria-controls":f,...o,ref:l,onPointerEnter:k(e.onPointerEnter,()=>{g.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:k(e.onPointerMove,sn(()=>{r||g.current||s.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(s.value),p.current=!0)})),onPointerLeave:k(e.onPointerLeave,sn(()=>{r||(a.onTriggerLeave(),p.current=!1)})),onClick:k(e.onClick,()=>{a.onItemSelect(s.value),g.current=v}),onKeyDown:k(e.onKeyDown,x=>{const h={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&x.key===h&&(s.onEntryKeyDown(),x.preventDefault())})})})}),v&&d.jsxs(d.Fragment,{children:[d.jsx(Hd,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:x=>{const m=s.contentRef.current,h=x.relatedTarget,b=h===c.current,C=m?.contains(h);(b||!C)&&s.onFocusProxyEnter(b?"start":"end")}}),a.viewport&&d.jsx("span",{"aria-owns":f})]})]})});is.displayName=cr;var tf="NavigationMenuLink",Po="navigationMenu.linkSelect",cs=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.jsx(ms,{asChild:!0,children:d.jsx(W.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:k(e.onClick,s=>{const c=s.target,l=new CustomEvent(Po,{bubbles:!0,cancelable:!0});if(c.addEventListener(Po,u=>o?.(u),{once:!0}),an(c,l),!l.defaultPrevented&&!s.metaKey){const u=new CustomEvent(Qt,{bubbles:!0,cancelable:!0});an(c,u)}},{checkForDefaultPrevented:!1})})})});cs.displayName=tf;var Tr="NavigationMenuIndicator",ls=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xe(Tr,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Sr.createPortal(d.jsx(de,{present:n||a,children:d.jsx(nf,{...r,ref:t})}),o.indicatorTrack):null});ls.displayName=Tr;var nf=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xe(Tr,n),a=Qa(n),[s,c]=i.useState(null),[l,u]=i.useState(null),f=o.orientation==="horizontal",p=!!o.value;i.useEffect(()=>{const x=a().find(m=>m.value===o.value)?.ref.current;x&&c(x)},[a,o.value]);const g=()=>{s&&u({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return ur(s,g),ur(o.indicatorTrack,g),l?d.jsx(W.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),ct="NavigationMenuContent",us=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xe(ct,e.__scopeNavigationMenu),a=as(ct,e.__scopeNavigationMenu),s=te(a.contentRef,t),c=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?d.jsx(rf,{forceMount:n,...l,ref:s}):d.jsx(de,{present:n||c,children:d.jsx(ds,{"data-state":Or(c),...l,ref:s,onPointerEnter:k(e.onPointerEnter,o.onContentEnter),onPointerLeave:k(e.onPointerLeave,sn(o.onContentLeave)),style:{pointerEvents:!c&&o.isRootMenu?"none":void 0,...l.style}})})});us.displayName=ct;var rf=i.forwardRef((e,t)=>{const n=xe(ct,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return ie(()=>{r(e.value,{ref:t,...e})},[e,t,r]),ie(()=>()=>o(e.value),[e.value,o]),null}),Qt="navigationMenu.rootContentDismiss",ds=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:c,onContentFocusOutside:l,...u}=e,f=xe(ct,n),p=i.useRef(null),g=te(p,t),v=gs(f.baseId,r),x=vs(f.baseId,r),m=Qa(n),h=i.useRef(null),{onItemDismiss:b}=f;i.useEffect(()=>{const w=p.current;if(f.isRootMenu&&w){const y=()=>{b(),c(),w.contains(document.activeElement)&&o.current?.focus()};return w.addEventListener(Qt,y),()=>w.removeEventListener(Qt,y)}},[f.isRootMenu,e.value,o,b,c]);const C=i.useMemo(()=>{const y=m().map(z=>z.value);f.dir==="rtl"&&y.reverse();const E=y.indexOf(f.value),M=y.indexOf(f.previousValue),_=r===f.value,N=M===y.indexOf(r);if(!_&&!N)return h.current;const O=(()=>{if(E!==M){if(_&&M!==-1)return E>M?"from-end":"from-start";if(N&&E!==-1)return E>M?"to-start":"to-end"}return null})();return h.current=O,O},[f.previousValue,f.value,f.dir,m,r]);return d.jsx(ps,{asChild:!0,children:d.jsx(pt,{id:x,"aria-labelledby":v,"data-motion":C,"data-orientation":f.orientation,...u,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{const w=new Event(Qt,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(w)},onFocusOutside:k(e.onFocusOutside,w=>{l();const y=w.target;f.rootNavigationMenu?.contains(y)&&w.preventDefault()}),onPointerDownOutside:k(e.onPointerDownOutside,w=>{const y=w.target,E=m().some(_=>_.ref.current?.contains(y)),M=f.isRootMenu&&f.viewport?.contains(y);(E||M||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:k(e.onKeyDown,w=>{const y=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!y){const M=lr(w.currentTarget),_=document.activeElement,N=M.findIndex(B=>B===_),z=w.shiftKey?M.slice(0,N).reverse():M.slice(N+1,M.length);kr(z)?w.preventDefault():a.current?.focus()}}),onEscapeKeyDown:k(e.onEscapeKeyDown,w=>{s.current=!0})})})}),Ar="NavigationMenuViewport",fs=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!xe(Ar,e.__scopeNavigationMenu).value;return d.jsx(de,{present:n||a,children:d.jsx(of,{...r,ref:t})})});fs.displayName=Ar;var of=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=xe(Ar,n),s=te(t,a.onViewportChange),c=Jd(ct,e.__scopeNavigationMenu),[l,u]=i.useState(null),[f,p]=i.useState(null),g=l?l?.width+"px":void 0,v=l?l?.height+"px":void 0,x=!!a.value,m=x?a.value:a.previousValue;return ur(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),d.jsx(W.div,{"data-state":Or(x),"data-orientation":a.orientation,...o,ref:s,style:{pointerEvents:!x&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":v,...o.style},onPointerEnter:k(e.onPointerEnter,a.onContentEnter),onPointerLeave:k(e.onPointerLeave,sn(a.onContentLeave)),children:Array.from(c.items).map(([b,{ref:C,forceMount:w,...y}])=>{const E=m===b;return d.jsx(de,{present:w||E,children:d.jsx(ds,{...y,ref:le(C,M=>{E&&M&&p(M)})})},b)})})}),af="FocusGroup",ps=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xe(af,n);return d.jsx(sr.Provider,{scope:n,children:d.jsx(sr.Slot,{scope:n,children:d.jsx(W.div,{dir:o.dir,...r,ref:t})})})}),_o=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],sf="FocusGroupItem",ms=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Yd(n),a=xe(sf,n);return d.jsx(sr.ItemSlot,{scope:n,children:d.jsx(W.button,{...r,ref:t,onKeyDown:k(e.onKeyDown,s=>{if(["Home","End",..._o].includes(s.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&l.reverse(),_o.includes(s.key)){const p=l.indexOf(s.currentTarget);l=l.slice(p+1)}setTimeout(()=>kr(l)),s.preventDefault()}})})})});function lr(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 kr(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function cf(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function ur(e,t){const n=ce(t);ie(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Or(e){return e?"open":"closed"}function gs(e,t){return`${e}-trigger-${t}`}function vs(e,t){return`${e}-content-${t}`}function sn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lf=es,uf=rs,df=ss,ff=is,pf=cs,mf=ls,gf=us,vf=fs;function hf({className:e,children:t,viewport:n=!0,...r}){return d.jsxs(lf,{"data-slot":"navigation-menu","data-viewport":n,className:$("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,n&&d.jsx(xs,{})]})}function xf({className:e,...t}){return d.jsx(uf,{"data-slot":"navigation-menu-list",className:$("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function bf({className:e,...t}){return d.jsx(df,{"data-slot":"navigation-menu-item",className:$("relative",e),...t})}const hs=aa("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function wf({className:e,children:t,...n}){return d.jsxs(ff,{"data-slot":"navigation-menu-trigger",className:$(hs(),"group",e),...n,children:[t," ",d.jsx(ge.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function yf({className:e,...t}){return d.jsx(gf,{"data-slot":"navigation-menu-content",className:$("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function xs({className:e,...t}){return d.jsx("div",{className:$("absolute top-full left-0 isolate z-50 flex justify-center"),children:d.jsx(vf,{"data-slot":"navigation-menu-viewport",className:$("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function Cf({className:e,...t}){return d.jsx(pf,{"data-slot":"navigation-menu-link",className:$("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Sf({className:e,...t}){return d.jsx(mf,{"data-slot":"navigation-menu-indicator",className:$("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:d.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}var Gn=0;function wn(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mo()),document.body.insertAdjacentElement("beforeend",e[1]??Mo()),Gn++,()=>{Gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gn--}},[])}function Mo(){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 Un="focusScope.autoFocusOnMount",Hn="focusScope.autoFocusOnUnmount",No={bubbles:!1,cancelable:!0},Ef="FocusScope",kt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),u=ce(o),f=ce(a),p=i.useRef(null),g=te(t,m=>l(m)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function(w){if(v.paused||!c)return;const y=w.target;c.contains(y)?p.current=y:Oe(p.current,{select:!0})},h=function(w){if(v.paused||!c)return;const y=w.relatedTarget;y!==null&&(c.contains(y)||Oe(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Oe(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),C.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){To.add(v);const m=document.activeElement;if(!c.contains(m)){const b=new CustomEvent(Un,No);c.addEventListener(Un,u),c.dispatchEvent(b),b.defaultPrevented||(Rf(If(bs(c)),{select:!0}),document.activeElement===m&&Oe(c))}return()=>{c.removeEventListener(Un,u),setTimeout(()=>{const b=new CustomEvent(Hn,No);c.addEventListener(Hn,f),c.dispatchEvent(b),b.defaultPrevented||Oe(m??document.body,{select:!0}),c.removeEventListener(Hn,f),To.remove(v)},0)}}},[c,u,f,v]);const x=i.useCallback(m=>{if(!n&&!r||v.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(h&&b){const C=m.currentTarget,[w,y]=Pf(C);w&&y?!m.shiftKey&&b===y?(m.preventDefault(),n&&Oe(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&Oe(y,{select:!0})):b===C&&m.preventDefault()}},[n,r,v.paused]);return d.jsx(W.div,{tabIndex:-1,...s,ref:g,onKeyDown:x})});kt.displayName=Ef;function Rf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Oe(r,{select:t}),document.activeElement!==n)return}function Pf(e){const t=bs(e),n=Io(t,e),r=Io(t.reverse(),e);return[n,r]}function bs(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 Io(e,t){for(const n of e)if(!_f(n,{upTo:t}))return n}function _f(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 Mf(e){return e instanceof HTMLInputElement&&"select"in e}function Oe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mf(e)&&t&&e.select()}}var To=Nf();function Nf(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ao(e,t),e.unshift(t)},remove(t){e=Ao(e,t),e[0]?.resume()}}}function Ao(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function If(e){return e.filter(t=>t.tagName!=="A")}const Tf=["top","right","bottom","left"],De=Math.min,pe=Math.max,cn=Math.round,Kt=Math.floor,Re=e=>({x:e,y:e}),Af={left:"right",right:"left",bottom:"top",top:"bottom"},kf={start:"end",end:"start"};function dr(e,t,n){return pe(e,De(t,n))}function Te(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function Dr(e){return e==="x"?"y":"x"}function jr(e){return e==="y"?"height":"width"}const Of=new Set(["top","bottom"]);function Ee(e){return Of.has(Ae(e))?"y":"x"}function Fr(e){return Dr(Ee(e))}function Df(e,t,n){n===void 0&&(n=!1);const r=mt(e),o=Fr(e),a=jr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=ln(s)),[s,ln(s)]}function jf(e){const t=ln(e);return[fr(e),t,fr(t)]}function fr(e){return e.replace(/start|end/g,t=>kf[t])}const ko=["left","right"],Oo=["right","left"],Ff=["top","bottom"],Lf=["bottom","top"];function $f(e,t,n){switch(e){case"top":case"bottom":return n?t?Oo:ko:t?ko:Oo;case"left":case"right":return t?Ff:Lf;default:return[]}}function Vf(e,t,n,r){const o=mt(e);let a=$f(Ae(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(fr)))),a}function ln(e){return e.replace(/left|right|bottom|top/g,t=>Af[t])}function zf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ws(e){return typeof e!="number"?zf(e):{top:e,right:e,bottom:e,left:e}}function un(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 Do(e,t,n){let{reference:r,floating:o}=e;const a=Ee(t),s=Fr(t),c=jr(s),l=Ae(t),u=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let v;switch(l){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-o.width,y:p};break;default:v={x:r.x,y:r.y}}switch(mt(t)){case"start":v[s]-=g*(n&&u?-1:1);break;case"end":v[s]+=g*(n&&u?-1:1);break}return v}const Wf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Do(u,r,l),g=r,v={},x=0;for(let m=0;m<c.length;m++){const{name:h,fn:b}=c[m],{x:C,y:w,data:y,reset:E}=await b({x:f,y:p,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,p=w??p,v={...v,[h]:{...v[h],...y}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Do(u,g,l)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:v}};async function Rt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:v=0}=Te(t,e),x=ws(v),h=c[g?p==="floating"?"reference":"floating":p],b=un(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),C=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),y=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=un(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:w,strategy:l}):C);return{top:(b.top-E.top+x.top)/y.y,bottom:(E.bottom-b.bottom+x.bottom)/y.y,left:(b.left-E.left+x.left)/y.x,right:(E.right-b.right+x.right)/y.x}}const Bf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:f=0}=Te(e,t)||{};if(u==null)return{};const p=ws(f),g={x:n,y:r},v=Fr(o),x=jr(v),m=await s.getDimensions(u),h=v==="y",b=h?"top":"left",C=h?"bottom":"right",w=h?"clientHeight":"clientWidth",y=a.reference[x]+a.reference[v]-g[v]-a.floating[x],E=g[v]-a.reference[v],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let _=M?M[w]:0;(!_||!await(s.isElement==null?void 0:s.isElement(M)))&&(_=c.floating[w]||a.floating[x]);const N=y/2-E/2,O=_/2-m[x]/2-1,z=De(p[b],O),B=De(p[C],O),Y=z,Z=_-m[x]-B,G=_/2-m[x]/2+N,q=dr(Y,G,Z),V=!l.arrow&&mt(o)!=null&&G!==q&&a.reference[x]/2-(G<Y?z:B)-m[x]/2<0,X=V?G<Y?G-Y:G-Z:0;return{[v]:g[v]+X,data:{[v]:q,centerOffset:G-q-X,...V&&{alignmentOffset:X}},reset:V}}}),Gf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...h}=Te(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Ae(o),C=Ee(c),w=Ae(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=g||(w||!m?[ln(c)]:jf(c)),M=x!=="none";!g&&M&&E.push(...Vf(c,m,x,y));const _=[c,...E],N=await Rt(t,h),O=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&O.push(N[b]),p){const G=Df(o,s,y);O.push(N[G[0]],N[G[1]])}if(z=[...z,{placement:o,overflows:O}],!O.every(G=>G<=0)){var B,Y;const G=(((B=a.flip)==null?void 0:B.index)||0)+1,q=_[G];if(q&&(!(p==="alignment"?C!==Ee(q):!1)||z.every(I=>Ee(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:G,overflows:z},reset:{placement:q}};let V=(Y=z.filter(X=>X.overflows[0]<=0).sort((X,I)=>X.overflows[1]-I.overflows[1])[0])==null?void 0:Y.placement;if(!V)switch(v){case"bestFit":{var Z;const X=(Z=z.filter(I=>{if(M){const D=Ee(I.placement);return D===C||D==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(D=>D>0).reduce((D,ne)=>D+ne,0)]).sort((I,D)=>I[1]-D[1])[0])==null?void 0:Z[0];X&&(V=X);break}case"initialPlacement":V=c;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function jo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fo(e){return Tf.some(t=>e[t]>=0)}const Uf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Te(e,t);switch(r){case"referenceHidden":{const a=await Rt(t,{...o,elementContext:"reference"}),s=jo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Fo(s)}}}case"escaped":{const a=await Rt(t,{...o,altBoundary:!0}),s=jo(a,n.floating);return{data:{escapedOffsets:s,escaped:Fo(s)}}}default:return{}}}}},ys=new Set(["left","top"]);async function Hf(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ae(n),c=mt(n),l=Ee(n)==="y",u=ys.has(s)?-1:1,f=a&&l?-1:1,p=Te(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(v=c==="end"?x*-1:x),l?{x:v*f,y:g*u}:{x:g*u,y:v*f}}const Kf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Hf(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Yf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:h=>{let{x:b,y:C}=h;return{x:b,y:C}}},...l}=Te(e,t),u={x:n,y:r},f=await Rt(t,l),p=Ee(Ae(o)),g=Dr(p);let v=u[g],x=u[p];if(a){const h=g==="y"?"top":"left",b=g==="y"?"bottom":"right",C=v+f[h],w=v-f[b];v=dr(C,v,w)}if(s){const h=p==="y"?"top":"left",b=p==="y"?"bottom":"right",C=x+f[h],w=x-f[b];x=dr(C,x,w)}const m=c.fn({...t,[g]:v,[p]:x});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:a,[p]:s}}}}}},Xf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Te(e,t),f={x:n,y:r},p=Ee(o),g=Dr(p);let v=f[g],x=f[p];const m=Te(c,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=g==="y"?"height":"width",y=a.reference[g]-a.floating[w]+h.mainAxis,E=a.reference[g]+a.reference[w]-h.mainAxis;v<y?v=y:v>E&&(v=E)}if(u){var b,C;const w=g==="y"?"width":"height",y=ys.has(Ae(o)),E=a.reference[p]-a.floating[w]+(y&&((b=s.offset)==null?void 0:b[p])||0)+(y?0:h.crossAxis),M=a.reference[p]+a.reference[w]+(y?0:((C=s.offset)==null?void 0:C[p])||0)-(y?h.crossAxis:0);x<E?x=E:x>M&&(x=M)}return{[g]:v,[p]:x}}}},qf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:c}=t,{apply:l=()=>{},...u}=Te(e,t),f=await Rt(t,u),p=Ae(o),g=mt(o),v=Ee(o)==="y",{width:x,height:m}=a.floating;let h,b;p==="top"||p==="bottom"?(h=p,b=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(b=p,h=g==="end"?"top":"bottom");const C=m-f.top-f.bottom,w=x-f.left-f.right,y=De(m-f[h],C),E=De(x-f[b],w),M=!t.middlewareData.shift;let _=y,N=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=C),M&&!g){const z=pe(f.left,0),B=pe(f.right,0),Y=pe(f.top,0),Z=pe(f.bottom,0);v?N=x-2*(z!==0||B!==0?z+B:pe(f.left,f.right)):_=m-2*(Y!==0||Z!==0?Y+Z:pe(f.top,f.bottom))}await l({...t,availableWidth:N,availableHeight:_});const O=await s.getDimensions(c.floating);return x!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function gt(e){return Cs(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Cs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cs(e){return yn()?e instanceof Node||e instanceof me(e).Node:!1}function we(e){return yn()?e instanceof Element||e instanceof me(e).Element:!1}function _e(e){return yn()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Lo(e){return!yn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const Zf=new Set(["inline","contents"]);function Ot(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zf.has(o)}const Jf=new Set(["table","td","th"]);function Qf(e){return Jf.has(gt(e))}const ep=[":popover-open",":modal"];function Cn(e){return ep.some(t=>{try{return e.matches(t)}catch{return!1}})}const tp=["transform","translate","scale","rotate","perspective"],np=["transform","translate","scale","rotate","perspective","filter"],rp=["paint","layout","strict","content"];function Lr(e){const t=$r(),n=we(e)?ye(e):e;return tp.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)||np.some(r=>(n.willChange||"").includes(r))||rp.some(r=>(n.contain||"").includes(r))}function op(e){let t=je(e);for(;_e(t)&&!lt(t);){if(Lr(t))return t;if(Cn(t))return null;t=je(t)}return null}function $r(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ap=new Set(["html","body","#document"]);function lt(e){return ap.has(gt(e))}function ye(e){return me(e).getComputedStyle(e)}function Sn(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(gt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lo(e)&&e.host||Ne(e);return Lo(t)?t.host:t}function Ss(e){const t=je(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&Ot(t)?t:Ss(t)}function Pt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ss(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=me(o);if(a){const c=pr(s);return t.concat(s,s.visualViewport||[],Ot(o)?o:[],c&&n?Pt(c):[])}return t.concat(o,Pt(o,[],n))}function pr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Es(e){const t=ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_e(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=cn(n)!==a||cn(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Vr(e){return we(e)?e:e.contextElement}function st(e){const t=Vr(e);if(!_e(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Es(t);let s=(a?cn(n.width):n.width)/r,c=(a?cn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const sp=Re(0);function Rs(e){const t=me(e);return!$r()||!t.visualViewport?sp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ip(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function He(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Vr(e);let s=Re(1);t&&(r?we(r)&&(s=st(r)):s=st(e));const c=ip(a,n,r)?Rs(a):Re(0);let l=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=me(a),v=r&&we(r)?me(r):r;let x=g,m=pr(x);for(;m&&r&&v!==x;){const h=st(m),b=m.getBoundingClientRect(),C=ye(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*h.x,y=b.top+(m.clientTop+parseFloat(C.paddingTop))*h.y;l*=h.x,u*=h.y,f*=h.x,p*=h.y,l+=w,u+=y,x=me(m),m=pr(x)}}return un({width:f,height:p,x:l,y:u})}function En(e,t){const n=Sn(e).scrollLeft;return t?t.left+n:He(Ne(e)).left+n}function Ps(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-En(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function cp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Ne(r),c=t?Cn(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Re(1);const f=Re(0),p=_e(r);if((p||!p&&!a)&&((gt(r)!=="body"||Ot(s))&&(l=Sn(r)),_e(r))){const v=He(r);u=st(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const g=s&&!p&&!a?Ps(s,l):Re(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+g.x,y:n.y*u.y-l.scrollTop*u.y+f.y+g.y}}function lp(e){return Array.from(e.getClientRects())}function up(e){const t=Ne(e),n=Sn(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+En(e);const c=-n.scrollTop;return ye(r).direction==="rtl"&&(s+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}const $o=25;function dp(e,t){const n=me(e),r=Ne(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const f=$r();(!f||f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const u=En(r);if(u<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),v=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-v);x<=$o&&(a-=x)}else u<=$o&&(a+=u);return{width:a,height:s,x:c,y:l}}const fp=new Set(["absolute","fixed"]);function pp(e,t){const n=He(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=_e(e)?st(e):Re(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:c,x:l,y:u}}function Vo(e,t,n){let r;if(t==="viewport")r=dp(e,n);else if(t==="document")r=up(Ne(e));else if(we(t))r=pp(t,n);else{const o=Rs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return un(r)}function _s(e,t){const n=je(e);return n===t||!we(n)||lt(n)?!1:ye(n).position==="fixed"||_s(n,t)}function mp(e,t){const n=t.get(e);if(n)return n;let r=Pt(e,[],!1).filter(c=>we(c)&&gt(c)!=="body"),o=null;const a=ye(e).position==="fixed";let s=a?je(e):e;for(;we(s)&&!lt(s);){const c=ye(s),l=Lr(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&fp.has(o.position)||Ot(s)&&!l&&_s(e,s))?r=r.filter(f=>f!==s):o=c,s=je(s)}return t.set(e,r),r}function gp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Cn(t)?[]:mp(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((u,f)=>{const p=Vo(t,f,o);return u.top=pe(p.top,u.top),u.right=De(p.right,u.right),u.bottom=De(p.bottom,u.bottom),u.left=pe(p.left,u.left),u},Vo(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vp(e){const{width:t,height:n}=Es(e);return{width:t,height:n}}function hp(e,t,n){const r=_e(t),o=Ne(t),a=n==="fixed",s=He(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=Re(0);function u(){l.x=En(o)}if(r||!r&&!a)if((gt(t)!=="body"||Ot(o))&&(c=Sn(t)),r){const v=He(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&u();a&&!r&&o&&u();const f=o&&!r&&!a?Ps(o,c):Re(0),p=s.left+c.scrollLeft-l.x-f.x,g=s.top+c.scrollTop-l.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function Kn(e){return ye(e).position==="static"}function zo(e,t){if(!_e(e)||ye(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function Ms(e,t){const n=me(e);if(Cn(e))return n;if(!_e(e)){let o=je(e);for(;o&&!lt(o);){if(we(o)&&!Kn(o))return o;o=je(o)}return n}let r=zo(e,t);for(;r&&Qf(r)&&Kn(r);)r=zo(r,t);return r&&lt(r)&&Kn(r)&&!Lr(r)?n:r||op(e)||n}const xp=async function(e){const t=this.getOffsetParent||Ms,n=this.getDimensions,r=await n(e.floating);return{reference:hp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bp(e){return ye(e).direction==="rtl"}const wp={convertOffsetParentRelativeRectToViewportRelativeRect:cp,getDocumentElement:Ne,getClippingRect:gp,getOffsetParent:Ms,getElementRects:xp,getClientRects:lp,getDimensions:vp,getScale:st,isElement:we,isRTL:bp};function Ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yp(e,t){let n=null,r;const o=Ne(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:v}=u;if(c||t(),!g||!v)return;const x=Kt(p),m=Kt(o.clientWidth-(f+g)),h=Kt(o.clientHeight-(p+v)),b=Kt(f),w={rootMargin:-x+"px "+-m+"px "+-h+"px "+-b+"px",threshold:pe(0,De(1,l))||1};let y=!0;function E(M){const _=M[0].intersectionRatio;if(_!==l){if(!y)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!Ns(u,e.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return s(!0),a}function Cp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Vr(e),f=o||a?[...u?Pt(u):[],...Pt(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const p=u&&c?yp(u,n):null;let g=-1,v=null;s&&(v=new ResizeObserver(b=>{let[C]=b;C&&C.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let x,m=l?He(e):null;l&&h();function h(){const b=He(e);m&&!Ns(m,b)&&n(),m=b,x=requestAnimationFrame(h)}return n(),()=>{var b;f.forEach(C=>{o&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),p?.(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(x)}}const Sp=Kf,Ep=Yf,Rp=Gf,Pp=qf,_p=Uf,Wo=Bf,Mp=Xf,Np=(e,t,n)=>{const r=new Map,o={platform:wp,...n},a={...o.platform,_c:r};return Wf(e,t,{...o,platform:a})};var Ip=typeof document<"u",Tp=function(){},en=Ip?H.useLayoutEffect:Tp;function dn(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(!dn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!dn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Is(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bo(e,t){const n=Is(e);return Math.round(t*n)/n}function Yn(e){const t=i.useRef(e);return en(()=>{t.current=e}),t}function Ap(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=i.useState(r);dn(g,r)||v(r);const[x,m]=i.useState(null),[h,b]=i.useState(null),C=i.useCallback(I=>{I!==M.current&&(M.current=I,m(I))},[]),w=i.useCallback(I=>{I!==_.current&&(_.current=I,b(I))},[]),y=a||x,E=s||h,M=i.useRef(null),_=i.useRef(null),N=i.useRef(f),O=l!=null,z=Yn(l),B=Yn(o),Y=Yn(u),Z=i.useCallback(()=>{if(!M.current||!_.current)return;const I={placement:t,strategy:n,middleware:g};B.current&&(I.platform=B.current),Np(M.current,_.current,I).then(D=>{const ne={...D,isPositioned:Y.current!==!1};G.current&&!dn(N.current,ne)&&(N.current=ne,vn.flushSync(()=>{p(ne)}))})},[g,t,n,B,Y]);en(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const G=i.useRef(!1);en(()=>(G.current=!0,()=>{G.current=!1}),[]),en(()=>{if(y&&(M.current=y),E&&(_.current=E),y&&E){if(z.current)return z.current(y,E,Z);Z()}},[y,E,Z,z,O]);const q=i.useMemo(()=>({reference:M,floating:_,setReference:C,setFloating:w}),[C,w]),V=i.useMemo(()=>({reference:y,floating:E}),[y,E]),X=i.useMemo(()=>{const I={position:n,left:0,top:0};if(!V.floating)return I;const D=Bo(V.floating,f.x),ne=Bo(V.floating,f.y);return c?{...I,transform:"translate("+D+"px, "+ne+"px)",...Is(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:ne}},[n,c,V.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:Z,refs:q,elements:V,floatingStyles:X}),[f,Z,q,V,X])}const kp=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?Wo({element:r.current,padding:o}).fn(n):{}:r?Wo({element:r,padding:o}).fn(n):{}}}},Op=(e,t)=>({...Sp(e),options:[e,t]}),Dp=(e,t)=>({...Ep(e),options:[e,t]}),jp=(e,t)=>({...Mp(e),options:[e,t]}),Fp=(e,t)=>({...Rp(e),options:[e,t]}),Lp=(e,t)=>({...Pp(e),options:[e,t]}),$p=(e,t)=>({..._p(e),options:[e,t]}),Vp=(e,t)=>({...kp(e),options:[e,t]});var zp="Arrow",Ts=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(W.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ts.displayName=zp;var Wp=Ts;function Bp(e){const[t,n]=i.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zr="Popper",[As,vt]=Me(zr),[Gp,ks]=As(zr),Os=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return d.jsx(Gp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Os.displayName=zr;var Ds="PopperAnchor",js=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ks(Ds,n),s=i.useRef(null),c=te(t,s),l=i.useRef(null);return i.useEffect(()=>{const u=l.current;l.current=r?.current||s.current,u!==l.current&&a.onAnchorChange(l.current)}),r?null:d.jsx(W.div,{...o,ref:c})});js.displayName=Ds;var Wr="PopperContent",[Up,Hp]=As(Wr),Fs=i.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:x,...m}=e,h=ks(Wr,n),[b,C]=i.useState(null),w=te(t,R=>C(R)),[y,E]=i.useState(null),M=Bp(y),_=M?.width??0,N=M?.height??0,O=r+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(u)?u:[u],Y=B.length>0,Z={padding:z,boundary:B.filter(Yp),altBoundary:Y},{refs:G,floatingStyles:q,placement:V,isPositioned:X,middlewareData:I}=Ap({strategy:"fixed",placement:O,whileElementsMounted:(...R)=>Cp(...R,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[Op({mainAxis:o+N,alignmentAxis:s}),l&&Dp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?jp():void 0,...Z}),l&&Fp({...Z}),Lp({...Z,apply:({elements:R,rects:U,availableWidth:J,availableHeight:ee})=>{const{width:re,height:oe}=U.reference,ve=R.floating.style;ve.setProperty("--radix-popper-available-width",`${J}px`),ve.setProperty("--radix-popper-available-height",`${ee}px`),ve.setProperty("--radix-popper-anchor-width",`${re}px`),ve.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),y&&Vp({element:y,padding:c}),Xp({arrowWidth:_,arrowHeight:N}),g&&$p({strategy:"referenceHidden",...Z})]}),[D,ne]=Vs(V),P=ce(x);ie(()=>{X&&P?.()},[X,P]);const S=I.arrow?.x,T=I.arrow?.y,A=I.arrow?.centerOffset!==0,[j,K]=i.useState();return ie(()=>{b&&K(window.getComputedStyle(b).zIndex)},[b]),d.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:X?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Up,{scope:n,placedSide:D,onArrowChange:E,arrowX:S,arrowY:T,shouldHideArrow:A,children:d.jsx(W.div,{"data-side":D,"data-align":ne,...m,ref:w,style:{...m.style,animation:X?void 0:"none"}})})})});Fs.displayName=Wr;var Ls="PopperArrow",Kp={top:"bottom",right:"left",bottom:"top",left:"right"},$s=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Hp(Ls,r),s=Kp[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(Wp,{...o,ref:n,style:{...o.style,display:"block"}})})});$s.displayName=Ls;function Yp(e){return e!==null}var Xp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,f]=Vs(n),p={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+c/2,v=(o.arrow?.y??0)+l/2;let x="",m="";return u==="bottom"?(x=s?p:`${g}px`,m=`${-l}px`):u==="top"?(x=s?p:`${g}px`,m=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,m=s?p:`${v}px`):u==="left"&&(x=`${r.floating.width+l}px`,m=s?p:`${v}px`),{data:{x,y:m}}}});function Vs(e){const[t,n="center"]=e.split("-");return[t,n]}var Rn=Os,Pn=js,Br=Fs,Gr=$s,qp="Portal",Dt=i.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=i.useState(!1);ie(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Sr.createPortal(d.jsx(W.div,{...r,ref:t}),s):null});Dt.displayName=qp;function Zp(e){const t=Jp(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(em);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Jp(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=nm(o),c=tm(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qp=Symbol("radix.slottable");function em(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qp}function tm(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function nm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tt=new WeakMap,Yt=new WeakMap,Xt={},Xn=0,zs=function(e){return e&&(e.host||zs(e.parentNode))},om=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=zs(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})},am=function(e,t,n,r){var o=om(t,Array.isArray(e)?e:[e]);Xt[n]||(Xt[n]=new WeakMap);var a=Xt[n],s=[],c=new Set,l=new Set(o),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))f(g);else try{var v=g.getAttribute(r),x=v!==null&&v!=="false",m=(tt.get(g)||0)+1,h=(a.get(g)||0)+1;tt.set(g,m),a.set(g,h),s.push(g),m===1&&x&&Yt.set(g,!0),h===1&&g.setAttribute(n,"true"),x||g.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",g,b)}})};return f(t),c.clear(),Xn++,function(){s.forEach(function(p){var g=tt.get(p)-1,v=a.get(p)-1;tt.set(p,g),a.set(p,v),g||(Yt.has(p)||p.removeAttribute(r),Yt.delete(p)),v||p.removeAttribute(n)}),Xn--,Xn||(tt=new WeakMap,tt=new WeakMap,Yt=new WeakMap,Xt={})}},_n=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=rm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),am(r,o,n,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function Ws(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 sm(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var tn="right-scroll-bar-position",nn="width-before-scroll-bar",im="with-scroll-bars-hidden",cm="--removed-body-scroll-bar-size";function qn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lm(e,t){var n=H.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 um=typeof window<"u"?i.useLayoutEffect:i.useEffect,Go=new WeakMap;function dm(e,t){var n=lm(null,function(r){return e.forEach(function(o){return qn(o,r)})});return um(function(){var r=Go.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||qn(c,null)}),a.forEach(function(c){o.has(c)||qn(c,s)})}Go.set(n,e)},[e]),n}function fm(e){return e}function pm(e,t){t===void 0&&(t=fm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function mm(e){e===void 0&&(e={});var t=pm(null);return t.options=Se({async:!0,ssr:!1},e),t}var Bs=function(e){var t=e.sideCar,n=Ws(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 i.createElement(r,Se({},n))};Bs.isSideCarExport=!0;function gm(e,t){return e.useMedium(t),Bs}var Gs=mm(),Zn=function(){},Mn=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Zn,onWheelCapture:Zn,onTouchMoveCapture:Zn}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,x=e.noIsolation,m=e.inert,h=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,w=e.gapMode,y=Ws(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,M=dm([n,t]),_=Se(Se({},y),o);return i.createElement(i.Fragment,null,f&&i.createElement(E,{sideCar:Gs,removeScrollBar:u,shards:p,noRelative:v,noIsolation:x,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:w}),s?i.cloneElement(i.Children.only(c),Se(Se({},_),{ref:M})):i.createElement(C,Se({},_,{className:l,ref:M}),c))});Mn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mn.classNames={fullWidth:nn,zeroRight:tn};var vm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vm();return t&&e.setAttribute("nonce",t),e}function xm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hm())&&(xm(t,n),bm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ym=function(){var e=wm();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Us=function(){var e=ym(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Cm={left:0,top:0,right:0,gap:0},Jn=function(e){return parseInt(e||"",10)||0},Sm=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[Jn(n),Jn(r),Jn(o)]},Em=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cm;var t=Sm(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])}},Rm=Us(),it="data-scroll-locked",Pm=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
7
+ .`.concat(im,` {
8
+ overflow: hidden `).concat(r,`;
9
+ padding-right: `).concat(c,"px ").concat(r,`;
10
10
  }
11
- body[`).concat(Pt,`] {
12
- overflow: hidden `).concat(n,`;
11
+ body[`).concat(it,`] {
12
+ overflow: hidden `).concat(r,`;
13
13
  overscroll-behavior: contain;
14
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
14
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
15
15
  padding-left: `.concat(o,`px;
16
16
  padding-top: `).concat(a,`px;
17
- padding-right: `).concat(i,`px;
17
+ padding-right: `).concat(s,`px;
18
18
  margin-left:0;
19
19
  margin-top:0;
20
- margin-right: `).concat(s,"px ").concat(n,`;
21
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
20
+ margin-right: `).concat(c,"px ").concat(r,`;
21
+ `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
22
22
  }
23
23
 
24
- .`).concat(Br,` {
25
- right: `).concat(s,"px ").concat(n,`;
24
+ .`).concat(tn,` {
25
+ right: `).concat(c,"px ").concat(r,`;
26
26
  }
27
27
 
28
- .`).concat(Vr,` {
29
- margin-right: `).concat(s,"px ").concat(n,`;
28
+ .`).concat(nn,` {
29
+ margin-right: `).concat(c,"px ").concat(r,`;
30
30
  }
31
31
 
32
- .`).concat(Br," .").concat(Br,` {
33
- right: 0 `).concat(n,`;
32
+ .`).concat(tn," .").concat(tn,` {
33
+ right: 0 `).concat(r,`;
34
34
  }
35
35
 
36
- .`).concat(Vr," .").concat(Vr,` {
37
- margin-right: 0 `).concat(n,`;
36
+ .`).concat(nn," .").concat(nn,` {
37
+ margin-right: 0 `).concat(r,`;
38
38
  }
39
39
 
40
- body[`).concat(Pt,`] {
41
- `).concat(eC,": ").concat(s,`px;
40
+ body[`).concat(it,`] {
41
+ `).concat(cm,": ").concat(c,`px;
42
42
  }
43
- `)},El=function(){var e=parseInt(document.body.getAttribute(Pt)||"0",10);return isFinite(e)?e:0},bC=function(){u.useEffect(function(){return document.body.setAttribute(Pt,(El()+1).toString()),function(){var e=El()-1;e<=0?document.body.removeAttribute(Pt):document.body.setAttribute(Pt,e.toString())}},[])},wC=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;bC();var a=u.useMemo(function(){return hC(o)},[o]);return u.createElement(gC,{styles:yC(a,!t,o,r?"":"!important")})},bs=!1;if(typeof window<"u")try{var Mr=Object.defineProperty({},"passive",{get:function(){return bs=!0,!0}});window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{bs=!1}var _t=bs?{passive:!1}:!1,xC=function(e){return e.tagName==="TEXTAREA"},Ym=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!xC(e)&&r[t]==="visible")},_C=function(e){return Ym(e,"overflowY")},CC=function(e){return Ym(e,"overflowX")},Rl=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Xm(e,n);if(o){var a=Zm(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},SC=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},EC=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Xm=function(e,t){return e==="v"?_C(t):CC(t)},Zm=function(e,t){return e==="v"?SC(t):EC(t)},RC=function(e,t){return e==="h"&&t==="rtl"?-1:1},PC=function(e,t,r,n,o){var a=RC(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),l=!1,d=i>0,f=0,v=0;do{if(!s)break;var g=Zm(e,s),y=g[0],h=g[1],m=g[2],b=h-m-a*y;(y||b)&&Xm(e,s)&&(f+=b,v+=y);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(v)<1)&&(l=!0),l},Ir=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pl=function(e){return[e.deltaX,e.deltaY]},Tl=function(e){return e&&"current"in e?e.current:e},TC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OC=function(e){return`
43
+ `)},Uo=function(){var e=parseInt(document.body.getAttribute(it)||"0",10);return isFinite(e)?e:0},_m=function(){i.useEffect(function(){return document.body.setAttribute(it,(Uo()+1).toString()),function(){var e=Uo()-1;e<=0?document.body.removeAttribute(it):document.body.setAttribute(it,e.toString())}},[])},Mm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_m();var a=i.useMemo(function(){return Em(o)},[o]);return i.createElement(Rm,{styles:Pm(a,!t,o,n?"":"!important")})},mr=!1;if(typeof window<"u")try{var qt=Object.defineProperty({},"passive",{get:function(){return mr=!0,!0}});window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch{mr=!1}var nt=mr?{passive:!1}:!1,Nm=function(e){return e.tagName==="TEXTAREA"},Hs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nm(e)&&n[t]==="visible")},Im=function(e){return Hs(e,"overflowY")},Tm=function(e){return Hs(e,"overflowX")},Ho=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ks(e,r);if(o){var a=Ys(e,r),s=a[1],c=a[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Am=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},km=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ks=function(e,t){return e==="v"?Im(t):Tm(t)},Ys=function(e,t){return e==="v"?Am(t):km(t)},Om=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dm=function(e,t,n,r,o){var a=Om(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),u=!1,f=s>0,p=0,g=0;do{if(!c)break;var v=Ys(e,c),x=v[0],m=v[1],h=v[2],b=m-h-a*x;(x||b)&&Ks(e,c)&&(p+=b,g+=x);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},Zt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ko=function(e){return[e.deltaX,e.deltaY]},Yo=function(e){return e&&"current"in e?e.current:e},jm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fm=function(e){return`
44
44
  .block-interactivity-`.concat(e,` {pointer-events: none;}
45
45
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
46
- `)},AC=0,Ct=[];function MC(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),o=u.useState(AC++)[0],a=u.useState(Km)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=J_([e.lockRef.current],(e.shards||[]).map(Tl),!0).filter(Boolean);return h.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(h,m){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var b=Ir(h),x=r.current,w="deltaX"in h?h.deltaX:x[0]-b[0],_="deltaY"in h?h.deltaY:x[1]-b[1],C,E=h.target,S=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in h&&S==="h"&&E.type==="range")return!1;var P=window.getSelection(),M=P&&P.anchorNode,B=M?M===E||M.contains(E):!1;if(B)return!1;var j=Rl(S,E);if(!j)return!0;if(j?C=S:(C=S==="v"?"h":"v",j=Rl(S,E)),!j)return!1;if(!n.current&&"changedTouches"in h&&(w||_)&&(n.current=C),!C)return!0;var U=n.current||C;return PC(U,m,h,U==="h"?w:_)},[]),c=u.useCallback(function(h){var m=h;if(!(!Ct.length||Ct[Ct.length-1]!==a)){var b="deltaY"in m?Pl(m):Ir(m),x=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&TC(C.delta,b)})[0];if(x&&x.should){m.cancelable&&m.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(Tl).filter(Boolean).filter(function(C){return C.contains(m.target)}),_=w.length>0?s(m,w[0]):!i.current.noIsolation;_&&m.cancelable&&m.preventDefault()}}},[]),l=u.useCallback(function(h,m,b,x){var w={name:h,delta:m,target:b,should:x,shadowParent:IC(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),d=u.useCallback(function(h){r.current=Ir(h),n.current=void 0},[]),f=u.useCallback(function(h){l(h.type,Pl(h),h.target,s(h,e.lockRef.current))},[]),v=u.useCallback(function(h){l(h.type,Ir(h),h.target,s(h,e.lockRef.current))},[]);u.useEffect(function(){return Ct.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",c,_t),document.addEventListener("touchmove",c,_t),document.addEventListener("touchstart",d,_t),function(){Ct=Ct.filter(function(h){return h!==a}),document.removeEventListener("wheel",c,_t),document.removeEventListener("touchmove",c,_t),document.removeEventListener("touchstart",d,_t)}},[]);var g=e.removeScrollBar,y=e.inert;return u.createElement(u.Fragment,null,y?u.createElement(a,{styles:OC(o)}):null,g?u.createElement(wC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function IC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NC=sC(Gm,MC);var mr=u.forwardRef(function(e,t){return u.createElement(Cn,Ie({},e,{ref:t,sideCar:NC}))});mr.classNames=Cn.classNames;var ws=["Enter"," "],jC=["ArrowDown","PageUp","Home"],Jm=["ArrowUp","PageDown","End"],DC=[...jC,...Jm],kC={ltr:[...ws,"ArrowRight"],rtl:[...ws,"ArrowLeft"]},$C={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vr="Menu",[er,LC,FC]=cr(vr),[mt,Qm]=Le(vr,[FC,qt,pn]),hr=qt(),ev=pn(),[tv,Je]=mt(vr),[qC,gr]=mt(vr),rv=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,s=hr(t),[c,l]=u.useState(null),d=u.useRef(!1),f=de(a),v=lr(o);return u.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),p.jsx(wn,{...s,children:p.jsx(tv,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:l,children:p.jsx(qC,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:v,modal:i,children:n})})})};rv.displayName=vr;var BC="MenuAnchor",uc=u.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=hr(r);return p.jsx(xn,{...o,...n,ref:t})});uc.displayName=BC;var dc="MenuPortal",[VC,nv]=mt(dc,{forceMount:void 0}),ov=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=Je(dc,t);return p.jsx(VC,{scope:t,forceMount:r,children:p.jsx(me,{present:r||a.open,children:p.jsx(pr,{asChild:!0,container:o,children:n})})})};ov.displayName=dc;var Ce="MenuContent",[zC,fc]=mt(Ce),av=u.forwardRef((e,t)=>{const r=nv(Ce,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Je(Ce,e.__scopeMenu),i=gr(Ce,e.__scopeMenu);return p.jsx(er.Provider,{scope:e.__scopeMenu,children:p.jsx(me,{present:n||a.open,children:p.jsx(er.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(WC,{...o,ref:t}):p.jsx(UC,{...o,ref:t})})})})}),WC=u.forwardRef((e,t)=>{const r=Je(Ce,e.__scopeMenu),n=u.useRef(null),o=ne(t,n);return u.useEffect(()=>{const a=n.current;if(a)return _n(a)},[]),p.jsx(pc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),UC=u.forwardRef((e,t)=>{const r=Je(Ce,e.__scopeMenu);return p.jsx(pc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),HC=z_("MenuContent.ScrollLock"),pc=u.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:g,disableOutsideScroll:y,...h}=e,m=Je(Ce,r),b=gr(Ce,r),x=hr(r),w=ev(r),_=LC(r),[C,E]=u.useState(null),S=u.useRef(null),P=ne(t,S,m.onContentChange),M=u.useRef(0),B=u.useRef(""),j=u.useRef(0),U=u.useRef(null),D=u.useRef("right"),F=u.useRef(0),V=y?mr:u.Fragment,k=y?{as:HC,allowPinchZoom:!0}:void 0,K=$=>{const ee=B.current+$,T=_().filter(O=>!O.disabled),R=document.activeElement,N=T.find(O=>O.ref.current===R)?.textValue,L=T.map(O=>O.textValue),z=oS(L,ee,N),J=T.find(O=>O.textValue===z)?.ref.current;(function O(X){B.current=X,window.clearTimeout(M.current),X!==""&&(M.current=window.setTimeout(()=>O(""),1e3))})(ee),J&&setTimeout(()=>J.focus())};u.useEffect(()=>()=>window.clearTimeout(M.current),[]),vn();const A=u.useCallback($=>D.current===U.current?.side&&iS($,U.current?.area),[]);return p.jsx(zC,{scope:r,searchRef:B,onItemEnter:u.useCallback($=>{A($)&&$.preventDefault()},[A]),onItemLeave:u.useCallback($=>{A($)||(S.current?.focus(),E(null))},[A]),onTriggerLeave:u.useCallback($=>{A($)&&$.preventDefault()},[A]),pointerGraceTimerRef:j,onPointerGraceIntentChange:u.useCallback($=>{U.current=$},[]),children:p.jsx(V,{...k,children:p.jsx(dr,{asChild:!0,trapped:o,onMountAutoFocus:q(a,$=>{$.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx($t,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:g,children:p.jsx(Lp,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:C,onCurrentTabStopIdChange:E,onEntryFocus:q(c,$=>{b.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(cc,{role:"menu","aria-orientation":"vertical","data-state":_v(m.open),"data-radix-menu-content":"",dir:b.dir,...x,...h,ref:P,style:{outline:"none",...h.style},onKeyDown:q(h.onKeyDown,$=>{const T=$.target.closest("[data-radix-menu-content]")===$.currentTarget,R=$.ctrlKey||$.altKey||$.metaKey,N=$.key.length===1;T&&($.key==="Tab"&&$.preventDefault(),!R&&N&&K($.key));const L=S.current;if($.target!==L||!DC.includes($.key))return;$.preventDefault();const J=_().filter(O=>!O.disabled).map(O=>O.ref.current);Jm.includes($.key)&&J.reverse(),rS(J)}),onBlur:q(e.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(M.current),B.current="")}),onPointerMove:q(e.onPointerMove,tr($=>{const ee=$.target,T=F.current!==$.clientX;if($.currentTarget.contains(ee)&&T){const R=$.clientX>F.current?"right":"left";D.current=R,F.current=$.clientX}}))})})})})})})});av.displayName=Ce;var GC="MenuGroup",mc=u.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return p.jsx(Z.div,{role:"group",...n,ref:t})});mc.displayName=GC;var KC="MenuLabel",iv=u.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return p.jsx(Z.div,{...n,ref:t})});iv.displayName=KC;var Jr="MenuItem",Ol="menu.itemSelect",Sn=u.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=u.useRef(null),i=gr(Jr,e.__scopeMenu),s=fc(Jr,e.__scopeMenu),c=ne(t,a),l=u.useRef(!1),d=()=>{const f=a.current;if(!r&&f){const v=new CustomEvent(Ol,{bubbles:!0,cancelable:!0});f.addEventListener(Ol,g=>n?.(g),{once:!0}),Hr(f,v),v.defaultPrevented?l.current=!1:i.onClose()}};return p.jsx(sv,{...o,ref:c,disabled:r,onClick:q(e.onClick,d),onPointerDown:f=>{e.onPointerDown?.(f),l.current=!0},onPointerUp:q(e.onPointerUp,f=>{l.current||f.currentTarget?.click()}),onKeyDown:q(e.onKeyDown,f=>{const v=s.searchRef.current!=="";r||v&&f.key===" "||ws.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Sn.displayName=Jr;var sv=u.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=fc(Jr,r),s=ev(r),c=u.useRef(null),l=ne(t,c),[d,f]=u.useState(!1),[v,g]=u.useState("");return u.useEffect(()=>{const y=c.current;y&&g((y.textContent??"").trim())},[a.children]),p.jsx(er.ItemSlot,{scope:r,disabled:n,textValue:o??v,children:p.jsx(Fp,{asChild:!0,...s,focusable:!n,children:p.jsx(Z.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:q(e.onPointerMove,tr(y=>{n?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,tr(y=>i.onItemLeave(y))),onFocus:q(e.onFocus,()=>f(!0)),onBlur:q(e.onBlur,()=>f(!1))})})})}),YC="MenuCheckboxItem",cv=u.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return p.jsx(pv,{scope:e.__scopeMenu,checked:r,children:p.jsx(Sn,{role:"menuitemcheckbox","aria-checked":Qr(r)?"mixed":r,...o,ref:t,"data-state":gc(r),onSelect:q(o.onSelect,()=>n?.(Qr(r)?!0:!r),{checkForDefaultPrevented:!1})})})});cv.displayName=YC;var lv="MenuRadioGroup",[XC,ZC]=mt(lv,{value:void 0,onValueChange:()=>{}}),uv=u.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=de(n);return p.jsx(XC,{scope:e.__scopeMenu,value:r,onValueChange:a,children:p.jsx(mc,{...o,ref:t})})});uv.displayName=lv;var dv="MenuRadioItem",fv=u.forwardRef((e,t)=>{const{value:r,...n}=e,o=ZC(dv,e.__scopeMenu),a=r===o.value;return p.jsx(pv,{scope:e.__scopeMenu,checked:a,children:p.jsx(Sn,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":gc(a),onSelect:q(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});fv.displayName=dv;var vc="MenuItemIndicator",[pv,JC]=mt(vc,{checked:!1}),mv=u.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=JC(vc,r);return p.jsx(me,{present:n||Qr(a.checked)||a.checked===!0,children:p.jsx(Z.span,{...o,ref:t,"data-state":gc(a.checked)})})});mv.displayName=vc;var QC="MenuSeparator",vv=u.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return p.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});vv.displayName=QC;var eS="MenuArrow",hv=u.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=hr(r);return p.jsx(lc,{...o,...n,ref:t})});hv.displayName=eS;var hc="MenuSub",[tS,gv]=mt(hc),yv=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=Je(hc,t),i=hr(t),[s,c]=u.useState(null),[l,d]=u.useState(null),f=de(o);return u.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),p.jsx(wn,{...i,children:p.jsx(tv,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:d,children:p.jsx(tS,{scope:t,contentId:ce(),triggerId:ce(),trigger:s,onTriggerChange:c,children:r})})})};yv.displayName=hc;var Kt="MenuSubTrigger",bv=u.forwardRef((e,t)=>{const r=Je(Kt,e.__scopeMenu),n=gr(Kt,e.__scopeMenu),o=gv(Kt,e.__scopeMenu),a=fc(Kt,e.__scopeMenu),i=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),c(null)}},[s,c]),p.jsx(uc,{asChild:!0,...l,children:p.jsx(sv,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":_v(r.open),...e,ref:fe(t,o.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,tr(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:q(e.onPointerLeave,tr(f=>{d();const v=r.content?.getBoundingClientRect();if(v){const g=r.content?.dataset.side,y=g==="right",h=y?-5:5,m=v[y?"left":"right"],b=v[y?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+h,y:f.clientY},{x:m,y:v.top},{x:b,y:v.top},{x:b,y:v.bottom},{x:m,y:v.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,f=>{const v=a.searchRef.current!=="";e.disabled||v&&f.key===" "||kC[n.dir].includes(f.key)&&(r.onOpenChange(!0),r.content?.focus(),f.preventDefault())})})})});bv.displayName=Kt;var wv="MenuSubContent",xv=u.forwardRef((e,t)=>{const r=nv(Ce,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Je(Ce,e.__scopeMenu),i=gr(Ce,e.__scopeMenu),s=gv(wv,e.__scopeMenu),c=u.useRef(null),l=ne(t,c);return p.jsx(er.Provider,{scope:e.__scopeMenu,children:p.jsx(me,{present:n||a.open,children:p.jsx(er.Slot,{scope:e.__scopeMenu,children:p.jsx(pc,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{i.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:q(e.onFocusOutside,d=>{d.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:q(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),v=$C[i.dir].includes(d.key);f&&v&&(a.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});xv.displayName=wv;function _v(e){return e?"open":"closed"}function Qr(e){return e==="indeterminate"}function gc(e){return Qr(e)?"indeterminate":e?"checked":"unchecked"}function rS(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function nS(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function oS(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=nS(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function aS(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],l=s.x,d=s.y,f=c.x,v=c.y;d>n!=v>n&&r<(f-l)*(n-d)/(v-d)+l&&(o=!o)}return o}function iS(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return aS(r,t)}function tr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var sS=rv,cS=uc,lS=ov,uS=av,dS=mc,fS=iv,pS=Sn,mS=cv,vS=uv,hS=fv,gS=mv,yS=vv,bS=hv,wS=yv,xS=bv,_S=xv,En="DropdownMenu",[CS]=Le(En,[Qm]),pe=Qm(),[SS,Cv]=CS(En),Sv=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=pe(t),l=u.useRef(null),[d,f]=De({prop:o,defaultProp:a??!1,onChange:i,caller:En});return p.jsx(SS,{scope:t,triggerId:ce(),triggerRef:l,contentId:ce(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(v=>!v),[f]),modal:s,children:p.jsx(sS,{...c,open:d,onOpenChange:f,dir:n,modal:s,children:r})})};Sv.displayName=En;var Ev="DropdownMenuTrigger",Rv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Cv(Ev,r),i=pe(r);return p.jsx(cS,{asChild:!0,...i,children:p.jsx(Z.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:fe(t,a.triggerRef),onPointerDown:q(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:q(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Rv.displayName=Ev;var ES="DropdownMenuPortal",Pv=e=>{const{__scopeDropdownMenu:t,...r}=e,n=pe(t);return p.jsx(lS,{...n,...r})};Pv.displayName=ES;var Tv="DropdownMenuContent",Ov=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Cv(Tv,r),a=pe(r),i=u.useRef(!1);return p.jsx(uS,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:q(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ov.displayName=Tv;var RS="DropdownMenuGroup",Av=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(dS,{...o,...n,ref:t})});Av.displayName=RS;var PS="DropdownMenuLabel",Mv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(fS,{...o,...n,ref:t})});Mv.displayName=PS;var TS="DropdownMenuItem",Iv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(pS,{...o,...n,ref:t})});Iv.displayName=TS;var OS="DropdownMenuCheckboxItem",Nv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(mS,{...o,...n,ref:t})});Nv.displayName=OS;var AS="DropdownMenuRadioGroup",jv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(vS,{...o,...n,ref:t})});jv.displayName=AS;var MS="DropdownMenuRadioItem",Dv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(hS,{...o,...n,ref:t})});Dv.displayName=MS;var IS="DropdownMenuItemIndicator",kv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(gS,{...o,...n,ref:t})});kv.displayName=IS;var NS="DropdownMenuSeparator",$v=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(yS,{...o,...n,ref:t})});$v.displayName=NS;var jS="DropdownMenuArrow",DS=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(bS,{...o,...n,ref:t})});DS.displayName=jS;var kS=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=pe(t),[s,c]=De({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(wS,{...i,open:s,onOpenChange:c,children:r})},$S="DropdownMenuSubTrigger",Lv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(xS,{...o,...n,ref:t})});Lv.displayName=$S;var LS="DropdownMenuSubContent",Fv=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=pe(r);return p.jsx(_S,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Fv.displayName=LS;var FS=Sv,qS=Rv,qv=Pv,BS=Ov,VS=Av,zS=Mv,WS=Iv,US=Nv,HS=jv,GS=Dv,Bv=kv,KS=$v,YS=kS,XS=Lv,ZS=Fv;function JS({...e}){return p.jsx(FS,{"data-slot":"dropdown-menu",...e})}function QS({...e}){return p.jsx(qv,{"data-slot":"dropdown-menu-portal",...e})}function eE({...e}){return p.jsx(qS,{"data-slot":"dropdown-menu-trigger",...e})}function tE({className:e,sideOffset:t=4,...r}){return p.jsx(qv,{children:p.jsx(BS,{"data-slot":"dropdown-menu-content",sideOffset:t,className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function rE({...e}){return p.jsx(VS,{"data-slot":"dropdown-menu-group",...e})}function nE({className:e,inset:t,variant:r="default",...n}){return p.jsx(WS,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:W("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function oE({className:e,children:t,checked:r,...n}){return p.jsxs(US,{"data-slot":"dropdown-menu-checkbox-item",className:W("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",e),checked:r,...n,children:[p.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(Bv,{children:p.jsx(be.CheckIcon,{className:"size-4"})})}),t]})}function aE({...e}){return p.jsx(HS,{"data-slot":"dropdown-menu-radio-group",...e})}function iE({className:e,children:t,...r}){return p.jsxs(GS,{"data-slot":"dropdown-menu-radio-item",className:W("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",e),...r,children:[p.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(Bv,{children:p.jsx(be.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function sE({className:e,inset:t,...r}){return p.jsx(zS,{"data-slot":"dropdown-menu-label","data-inset":t,className:W("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function cE({className:e,...t}){return p.jsx(KS,{"data-slot":"dropdown-menu-separator",className:W("bg-border -mx-1 my-1 h-px",e),...t})}function lE({className:e,...t}){return p.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:W("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function uE({...e}){return p.jsx(YS,{"data-slot":"dropdown-menu-sub",...e})}function dE({className:e,inset:t,children:r,...n}){return p.jsxs(XS,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:W("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,p.jsx(be.ChevronRightIcon,{className:"ml-auto size-4"})]})}function fE({className:e,...t}){return p.jsx(ZS,{"data-slot":"dropdown-menu-sub-content",className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var Al=1,pE=.9,mE=.8,vE=.17,eo=.1,to=.999,hE=.9999,gE=.99,yE=/[\\\/_+.#"@\[\(\{&]/,bE=/[\\\/_+.#"@\[\(\{&]/g,wE=/[\s-]/,Vv=/[\s-]/g;function xs(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?Al:gE;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var c=n.charAt(a),l=r.indexOf(c,o),d=0,f,v,g,y;l>=0;)f=xs(e,t,r,n,l+1,a+1,i),f>d&&(l===o?f*=Al:yE.test(e.charAt(l-1))?(f*=mE,g=e.slice(o,l-1).match(bE),g&&o>0&&(f*=Math.pow(to,g.length))):wE.test(e.charAt(l-1))?(f*=pE,y=e.slice(o,l-1).match(Vv),y&&o>0&&(f*=Math.pow(to,y.length))):(f*=vE,o>0&&(f*=Math.pow(to,l-o))),e.charAt(l)!==t.charAt(a)&&(f*=hE)),(f<eo&&r.charAt(l-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(l-1)!==n.charAt(a))&&(v=xs(e,t,r,n,l+1,a+2,i),v*eo>f&&(f=v*eo)),f>d&&(d=f),l=r.indexOf(c,l+1);return i[s]=d,d}function Ml(e){return e.toLowerCase().replace(Vv," ")}function xE(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,xs(e,t,Ml(e),Ml(t),0,0,{})}function _E(e){const t=CE(e),r=u.forwardRef((n,o)=>{const{children:a,...i}=n,s=u.Children.toArray(a),c=s.find(EE);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function CE(e){const t=u.forwardRef((r,n)=>{const{children:o,...a}=r;if(u.isValidElement(o)){const i=PE(o),s=RE(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SE=Symbol("radix.slottable");function EE(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SE}function RE(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function PE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Rn="Dialog",[zv]=Le(Rn),[TE,Oe]=zv(Rn),Wv=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=u.useRef(null),c=u.useRef(null),[l,d]=De({prop:n,defaultProp:o??!1,onChange:a,caller:Rn});return p.jsx(TE,{scope:t,triggerRef:s,contentRef:c,contentId:ce(),titleId:ce(),descriptionId:ce(),open:l,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:i,children:r})};Wv.displayName=Rn;var Uv="DialogTrigger",Hv=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Uv,r),a=ne(t,o.triggerRef);return p.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wc(o.open),...n,ref:a,onClick:q(e.onClick,o.onOpenToggle)})});Hv.displayName=Uv;var yc="DialogPortal",[OE,Gv]=zv(yc,{forceMount:void 0}),Kv=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Oe(yc,t);return p.jsx(OE,{scope:t,forceMount:r,children:u.Children.map(n,i=>p.jsx(me,{present:r||a.open,children:p.jsx(pr,{asChild:!0,container:o,children:i})}))})};Kv.displayName=yc;var en="DialogOverlay",Yv=u.forwardRef((e,t)=>{const r=Gv(en,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Oe(en,e.__scopeDialog);return a.modal?p.jsx(me,{present:n||a.open,children:p.jsx(ME,{...o,ref:t})}):null});Yv.displayName=en;var AE=_E("DialogOverlay.RemoveScroll"),ME=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(en,r);return p.jsx(mr,{as:AE,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(Z.div,{"data-state":wc(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),lt="DialogContent",Xv=u.forwardRef((e,t)=>{const r=Gv(lt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Oe(lt,e.__scopeDialog);return p.jsx(me,{present:n||a.open,children:a.modal?p.jsx(IE,{...o,ref:t}):p.jsx(NE,{...o,ref:t})})});Xv.displayName=lt;var IE=u.forwardRef((e,t)=>{const r=Oe(lt,e.__scopeDialog),n=u.useRef(null),o=ne(t,r.contentRef,n);return u.useEffect(()=>{const a=n.current;if(a)return _n(a)},[]),p.jsx(Zv,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:q(e.onFocusOutside,a=>a.preventDefault())})}),NE=u.forwardRef((e,t)=>{const r=Oe(lt,e.__scopeDialog),n=u.useRef(!1),o=u.useRef(!1);return p.jsx(Zv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Zv=u.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Oe(lt,r),c=u.useRef(null),l=ne(t,c);return vn(),p.jsxs(p.Fragment,{children:[p.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx($t,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":wc(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(jE,{titleId:s.titleId}),p.jsx(kE,{contentRef:c,descriptionId:s.descriptionId})]})]})}),bc="DialogTitle",Jv=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(bc,r);return p.jsx(Z.h2,{id:o.titleId,...n,ref:t})});Jv.displayName=bc;var Qv="DialogDescription",eh=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Qv,r);return p.jsx(Z.p,{id:o.descriptionId,...n,ref:t})});eh.displayName=Qv;var th="DialogClose",rh=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(th,r);return p.jsx(Z.button,{type:"button",...n,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});rh.displayName=th;function wc(e){return e?"open":"closed"}var nh="DialogTitleWarning",[tM,oh]=qb(nh,{contentName:lt,titleName:bc,docsSlug:"dialog"}),jE=({titleId:e})=>{const t=oh(nh),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
46
+ `)},Lm=0,rt=[];function $m(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Lm++)[0],a=i.useState(Us)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=sm([e.lockRef.current],(e.shards||[]).map(Yo),!0).filter(Boolean);return m.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(m,h){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=Zt(m),C=n.current,w="deltaX"in m?m.deltaX:C[0]-b[0],y="deltaY"in m?m.deltaY:C[1]-b[1],E,M=m.target,_=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in m&&_==="h"&&M.type==="range")return!1;var N=window.getSelection(),O=N&&N.anchorNode,z=O?O===M||O.contains(M):!1;if(z)return!1;var B=Ho(_,M);if(!B)return!0;if(B?E=_:(E=_==="v"?"h":"v",B=Ho(_,M)),!B)return!1;if(!r.current&&"changedTouches"in m&&(w||y)&&(r.current=E),!E)return!0;var Y=r.current||E;return Dm(Y,h,m,Y==="h"?w:y)},[]),l=i.useCallback(function(m){var h=m;if(!(!rt.length||rt[rt.length-1]!==a)){var b="deltaY"in h?Ko(h):Zt(h),C=t.current.filter(function(E){return E.name===h.type&&(E.target===h.target||h.target===E.shadowParent)&&jm(E.delta,b)})[0];if(C&&C.should){h.cancelable&&h.preventDefault();return}if(!C){var w=(s.current.shards||[]).map(Yo).filter(Boolean).filter(function(E){return E.contains(h.target)}),y=w.length>0?c(h,w[0]):!s.current.noIsolation;y&&h.cancelable&&h.preventDefault()}}},[]),u=i.useCallback(function(m,h,b,C){var w={name:m,delta:h,target:b,should:C,shadowParent:Vm(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),f=i.useCallback(function(m){n.current=Zt(m),r.current=void 0},[]),p=i.useCallback(function(m){u(m.type,Ko(m),m.target,c(m,e.lockRef.current))},[]),g=i.useCallback(function(m){u(m.type,Zt(m),m.target,c(m,e.lockRef.current))},[]);i.useEffect(function(){return rt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",l,nt),document.addEventListener("touchmove",l,nt),document.addEventListener("touchstart",f,nt),function(){rt=rt.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,nt),document.removeEventListener("touchmove",l,nt),document.removeEventListener("touchstart",f,nt)}},[]);var v=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(a,{styles:Fm(o)}):null,v?i.createElement(Mm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zm=gm(Gs,$m);var jt=i.forwardRef(function(e,t){return i.createElement(Mn,Se({},e,{ref:t,sideCar:zm}))});jt.classNames=Mn.classNames;var gr=["Enter"," "],Wm=["ArrowDown","PageUp","Home"],Xs=["ArrowUp","PageDown","End"],Bm=[...Wm,...Xs],Gm={ltr:[...gr,"ArrowRight"],rtl:[...gr,"ArrowLeft"]},Um={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ft="Menu",[_t,Hm,Km]=It(Ft),[Je,qs]=Me(Ft,[Km,vt,xn]),Lt=vt(),Zs=xn(),[Js,Le]=Je(Ft),[Ym,$t]=Je(Ft),Qs=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=Lt(t),[l,u]=i.useState(null),f=i.useRef(!1),p=ce(a),g=Tt(o);return i.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),d.jsx(Rn,{...c,children:d.jsx(Js,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u,children:d.jsx(Ym,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:g,modal:s,children:r})})})};Qs.displayName=Ft;var Xm="MenuAnchor",Ur=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lt(n);return d.jsx(Pn,{...o,...r,ref:t})});Ur.displayName=Xm;var Hr="MenuPortal",[qm,ei]=Je(Hr,{forceMount:void 0}),ti=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Le(Hr,t);return d.jsx(qm,{scope:t,forceMount:n,children:d.jsx(de,{present:n||a.open,children:d.jsx(Dt,{asChild:!0,container:o,children:r})})})};ti.displayName=Hr;var he="MenuContent",[Zm,Kr]=Je(he),ni=i.forwardRef((e,t)=>{const n=ei(he,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Le(he,e.__scopeMenu),s=$t(he,e.__scopeMenu);return d.jsx(_t.Provider,{scope:e.__scopeMenu,children:d.jsx(de,{present:r||a.open,children:d.jsx(_t.Slot,{scope:e.__scopeMenu,children:s.modal?d.jsx(Jm,{...o,ref:t}):d.jsx(Qm,{...o,ref:t})})})})}),Jm=i.forwardRef((e,t)=>{const n=Le(he,e.__scopeMenu),r=i.useRef(null),o=te(t,r);return i.useEffect(()=>{const a=r.current;if(a)return _n(a)},[]),d.jsx(Yr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:k(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Qm=i.forwardRef((e,t)=>{const n=Le(he,e.__scopeMenu);return d.jsx(Yr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),eg=Zp("MenuContent.ScrollLock"),Yr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:v,disableOutsideScroll:x,...m}=e,h=Le(he,n),b=$t(he,n),C=Lt(n),w=Zs(n),y=Hm(n),[E,M]=i.useState(null),_=i.useRef(null),N=te(t,_,h.onContentChange),O=i.useRef(0),z=i.useRef(""),B=i.useRef(0),Y=i.useRef(null),Z=i.useRef("right"),G=i.useRef(0),q=x?jt:i.Fragment,V=x?{as:eg,allowPinchZoom:!0}:void 0,X=D=>{const ne=z.current+D,P=y().filter(R=>!R.disabled),S=document.activeElement,T=P.find(R=>R.ref.current===S)?.textValue,A=P.map(R=>R.textValue),j=fg(A,ne,T),K=P.find(R=>R.textValue===j)?.ref.current;(function R(U){z.current=U,window.clearTimeout(O.current),U!==""&&(O.current=window.setTimeout(()=>R(""),1e3))})(ne),K&&setTimeout(()=>K.focus())};i.useEffect(()=>()=>window.clearTimeout(O.current),[]),wn();const I=i.useCallback(D=>Z.current===Y.current?.side&&mg(D,Y.current?.area),[]);return d.jsx(Zm,{scope:n,searchRef:z,onItemEnter:i.useCallback(D=>{I(D)&&D.preventDefault()},[I]),onItemLeave:i.useCallback(D=>{I(D)||(_.current?.focus(),M(null))},[I]),onTriggerLeave:i.useCallback(D=>{I(D)&&D.preventDefault()},[I]),pointerGraceTimerRef:B,onPointerGraceIntentChange:i.useCallback(D=>{Y.current=D},[]),children:d.jsx(q,{...V,children:d.jsx(kt,{asChild:!0,trapped:o,onMountAutoFocus:k(a,D=>{D.preventDefault(),_.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:v,children:d.jsx(Da,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:k(l,D=>{b.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Br,{role:"menu","aria-orientation":"vertical","data-state":bi(h.open),"data-radix-menu-content":"",dir:b.dir,...C,...m,ref:N,style:{outline:"none",...m.style},onKeyDown:k(m.onKeyDown,D=>{const P=D.target.closest("[data-radix-menu-content]")===D.currentTarget,S=D.ctrlKey||D.altKey||D.metaKey,T=D.key.length===1;P&&(D.key==="Tab"&&D.preventDefault(),!S&&T&&X(D.key));const A=_.current;if(D.target!==A||!Bm.includes(D.key))return;D.preventDefault();const K=y().filter(R=>!R.disabled).map(R=>R.ref.current);Xs.includes(D.key)&&K.reverse(),ug(K)}),onBlur:k(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(O.current),z.current="")}),onPointerMove:k(e.onPointerMove,Mt(D=>{const ne=D.target,P=G.current!==D.clientX;if(D.currentTarget.contains(ne)&&P){const S=D.clientX>G.current?"right":"left";Z.current=S,G.current=D.clientX}}))})})})})})})});ni.displayName=he;var tg="MenuGroup",Xr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(W.div,{role:"group",...r,ref:t})});Xr.displayName=tg;var ng="MenuLabel",ri=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(W.div,{...r,ref:t})});ri.displayName=ng;var fn="MenuItem",Xo="menu.itemSelect",Nn=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),s=$t(fn,e.__scopeMenu),c=Kr(fn,e.__scopeMenu),l=te(t,a),u=i.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const g=new CustomEvent(Xo,{bubbles:!0,cancelable:!0});p.addEventListener(Xo,v=>r?.(v),{once:!0}),an(p,g),g.defaultPrevented?u.current=!1:s.onClose()}};return d.jsx(oi,{...o,ref:l,disabled:n,onClick:k(e.onClick,f),onPointerDown:p=>{e.onPointerDown?.(p),u.current=!0},onPointerUp:k(e.onPointerUp,p=>{u.current||p.currentTarget?.click()}),onKeyDown:k(e.onKeyDown,p=>{const g=c.searchRef.current!=="";n||g&&p.key===" "||gr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Nn.displayName=fn;var oi=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Kr(fn,n),c=Zs(n),l=i.useRef(null),u=te(t,l),[f,p]=i.useState(!1),[g,v]=i.useState("");return i.useEffect(()=>{const x=l.current;x&&v((x.textContent??"").trim())},[a.children]),d.jsx(_t.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:d.jsx(ja,{asChild:!0,...c,focusable:!r,children:d.jsx(W.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:k(e.onPointerMove,Mt(x=>{r?s.onItemLeave(x):(s.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:k(e.onPointerLeave,Mt(x=>s.onItemLeave(x))),onFocus:k(e.onFocus,()=>p(!0)),onBlur:k(e.onBlur,()=>p(!1))})})})}),rg="MenuCheckboxItem",ai=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(ui,{scope:e.__scopeMenu,checked:n,children:d.jsx(Nn,{role:"menuitemcheckbox","aria-checked":pn(n)?"mixed":n,...o,ref:t,"data-state":Jr(n),onSelect:k(o.onSelect,()=>r?.(pn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ai.displayName=rg;var si="MenuRadioGroup",[og,ag]=Je(si,{value:void 0,onValueChange:()=>{}}),ii=i.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ce(r);return d.jsx(og,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(Xr,{...o,ref:t})})});ii.displayName=si;var ci="MenuRadioItem",li=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=ag(ci,e.__scopeMenu),a=n===o.value;return d.jsx(ui,{scope:e.__scopeMenu,checked:a,children:d.jsx(Nn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Jr(a),onSelect:k(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});li.displayName=ci;var qr="MenuItemIndicator",[ui,sg]=Je(qr,{checked:!1}),di=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=sg(qr,n);return d.jsx(de,{present:r||pn(a.checked)||a.checked===!0,children:d.jsx(W.span,{...o,ref:t,"data-state":Jr(a.checked)})})});di.displayName=qr;var ig="MenuSeparator",fi=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(W.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});fi.displayName=ig;var cg="MenuArrow",pi=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lt(n);return d.jsx(Gr,{...o,...r,ref:t})});pi.displayName=cg;var Zr="MenuSub",[lg,mi]=Je(Zr),gi=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Le(Zr,t),s=Lt(t),[c,l]=i.useState(null),[u,f]=i.useState(null),p=ce(o);return i.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),d.jsx(Rn,{...s,children:d.jsx(Js,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:f,children:d.jsx(lg,{scope:t,contentId:ae(),triggerId:ae(),trigger:c,onTriggerChange:l,children:n})})})};gi.displayName=Zr;var St="MenuSubTrigger",vi=i.forwardRef((e,t)=>{const n=Le(St,e.__scopeMenu),r=$t(St,e.__scopeMenu),o=mi(St,e.__scopeMenu),a=Kr(St,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),l(null)}},[c,l]),d.jsx(Ur,{asChild:!0,...u,children:d.jsx(oi,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":bi(n.open),...e,ref:le(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:k(e.onPointerMove,Mt(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:k(e.onPointerLeave,Mt(p=>{f();const g=n.content?.getBoundingClientRect();if(g){const v=n.content?.dataset.side,x=v==="right",m=x?-5:5,h=g[x?"left":"right"],b=g[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+m,y:p.clientY},{x:h,y:g.top},{x:b,y:g.top},{x:b,y:g.bottom},{x:h,y:g.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:k(e.onKeyDown,p=>{const g=a.searchRef.current!=="";e.disabled||g&&p.key===" "||Gm[r.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});vi.displayName=St;var hi="MenuSubContent",xi=i.forwardRef((e,t)=>{const n=ei(he,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Le(he,e.__scopeMenu),s=$t(he,e.__scopeMenu),c=mi(hi,e.__scopeMenu),l=i.useRef(null),u=te(t,l);return d.jsx(_t.Provider,{scope:e.__scopeMenu,children:d.jsx(de,{present:r||a.open,children:d.jsx(_t.Slot,{scope:e.__scopeMenu,children:d.jsx(Yr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:k(e.onFocusOutside,f=>{f.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:k(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:k(e.onKeyDown,f=>{const p=f.currentTarget.contains(f.target),g=Um[s.dir].includes(f.key);p&&g&&(a.onOpenChange(!1),c.trigger?.focus(),f.preventDefault())})})})})})});xi.displayName=hi;function bi(e){return e?"open":"closed"}function pn(e){return e==="indeterminate"}function Jr(e){return pn(e)?"indeterminate":e?"checked":"unchecked"}function ug(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function dg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function fg(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=dg(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function pg(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a],l=t[s],u=c.x,f=c.y,p=l.x,g=l.y;f>r!=g>r&&n<(p-u)*(r-f)/(g-f)+u&&(o=!o)}return o}function mg(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pg(n,t)}function Mt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gg=Qs,vg=Ur,hg=ti,xg=ni,bg=Xr,wg=ri,yg=Nn,Cg=ai,Sg=ii,Eg=li,Rg=di,Pg=fi,_g=pi,Mg=gi,Ng=vi,Ig=xi,In="DropdownMenu",[Tg]=Me(In,[qs]),ue=qs(),[Ag,wi]=Tg(In),yi=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=ue(t),u=i.useRef(null),[f,p]=Pe({prop:o,defaultProp:a??!1,onChange:s,caller:In});return d.jsx(Ag,{scope:t,triggerId:ae(),triggerRef:u,contentId:ae(),open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(g=>!g),[p]),modal:c,children:d.jsx(gg,{...l,open:f,onOpenChange:p,dir:r,modal:c,children:n})})};yi.displayName=In;var Ci="DropdownMenuTrigger",Si=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=wi(Ci,n),s=ue(n);return d.jsx(vg,{asChild:!0,...s,children:d.jsx(W.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:le(t,a.triggerRef),onPointerDown:k(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:k(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Si.displayName=Ci;var kg="DropdownMenuPortal",Ei=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ue(t);return d.jsx(hg,{...r,...n})};Ei.displayName=kg;var Ri="DropdownMenuContent",Pi=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=wi(Ri,n),a=ue(n),s=i.useRef(!1);return d.jsx(xg,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:k(e.onCloseAutoFocus,c=>{s.current||o.triggerRef.current?.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:k(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pi.displayName=Ri;var Og="DropdownMenuGroup",_i=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(bg,{...o,...r,ref:t})});_i.displayName=Og;var Dg="DropdownMenuLabel",Mi=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(wg,{...o,...r,ref:t})});Mi.displayName=Dg;var jg="DropdownMenuItem",Ni=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(yg,{...o,...r,ref:t})});Ni.displayName=jg;var Fg="DropdownMenuCheckboxItem",Ii=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Cg,{...o,...r,ref:t})});Ii.displayName=Fg;var Lg="DropdownMenuRadioGroup",Ti=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Sg,{...o,...r,ref:t})});Ti.displayName=Lg;var $g="DropdownMenuRadioItem",Ai=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Eg,{...o,...r,ref:t})});Ai.displayName=$g;var Vg="DropdownMenuItemIndicator",ki=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Rg,{...o,...r,ref:t})});ki.displayName=Vg;var zg="DropdownMenuSeparator",Oi=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Pg,{...o,...r,ref:t})});Oi.displayName=zg;var Wg="DropdownMenuArrow",Bg=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(_g,{...o,...r,ref:t})});Bg.displayName=Wg;var Gg=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=ue(t),[c,l]=Pe({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return d.jsx(Mg,{...s,open:c,onOpenChange:l,children:n})},Ug="DropdownMenuSubTrigger",Di=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Ng,{...o,...r,ref:t})});Di.displayName=Ug;var Hg="DropdownMenuSubContent",ji=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ue(n);return d.jsx(Ig,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ji.displayName=Hg;var Kg=yi,Yg=Si,Fi=Ei,Xg=Pi,qg=_i,Zg=Mi,Jg=Ni,Qg=Ii,ev=Ti,tv=Ai,Li=ki,nv=Oi,rv=Gg,ov=Di,av=ji;function sv({...e}){return d.jsx(Kg,{"data-slot":"dropdown-menu",...e})}function iv({...e}){return d.jsx(Fi,{"data-slot":"dropdown-menu-portal",...e})}function cv({...e}){return d.jsx(Yg,{"data-slot":"dropdown-menu-trigger",...e})}function lv({className:e,sideOffset:t=4,...n}){return d.jsx(Fi,{children:d.jsx(Xg,{"data-slot":"dropdown-menu-content",sideOffset:t,className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function uv({...e}){return d.jsx(qg,{"data-slot":"dropdown-menu-group",...e})}function dv({className:e,inset:t,variant:n="default",...r}){return d.jsx(Jg,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:$("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function fv({className:e,children:t,checked:n,...r}){return d.jsxs(Qg,{"data-slot":"dropdown-menu-checkbox-item",className:$("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",e),checked:n,...r,children:[d.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:d.jsx(Li,{children:d.jsx(ge.CheckIcon,{className:"size-4"})})}),t]})}function pv({...e}){return d.jsx(ev,{"data-slot":"dropdown-menu-radio-group",...e})}function mv({className:e,children:t,...n}){return d.jsxs(tv,{"data-slot":"dropdown-menu-radio-item",className:$("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",e),...n,children:[d.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:d.jsx(Li,{children:d.jsx(ge.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function gv({className:e,inset:t,...n}){return d.jsx(Zg,{"data-slot":"dropdown-menu-label","data-inset":t,className:$("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function vv({className:e,...t}){return d.jsx(nv,{"data-slot":"dropdown-menu-separator",className:$("bg-border -mx-1 my-1 h-px",e),...t})}function hv({className:e,...t}){return d.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:$("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function xv({...e}){return d.jsx(rv,{"data-slot":"dropdown-menu-sub",...e})}function bv({className:e,inset:t,children:n,...r}){return d.jsxs(ov,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:$("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,d.jsx(ge.ChevronRightIcon,{className:"ml-auto size-4"})]})}function wv({className:e,...t}){return d.jsx(av,{"data-slot":"dropdown-menu-sub-content",className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var qo=1,yv=.9,Cv=.8,Sv=.17,Qn=.1,er=.999,Ev=.9999,Rv=.99,Pv=/[\\\/_+.#"@\[\(\{&]/,_v=/[\\\/_+.#"@\[\(\{&]/g,Mv=/[\s-]/,$i=/[\s-]/g;function vr(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?qo:Rv;var c=`${o},${a}`;if(s[c]!==void 0)return s[c];for(var l=r.charAt(a),u=n.indexOf(l,o),f=0,p,g,v,x;u>=0;)p=vr(e,t,n,r,u+1,a+1,s),p>f&&(u===o?p*=qo:Pv.test(e.charAt(u-1))?(p*=Cv,v=e.slice(o,u-1).match(_v),v&&o>0&&(p*=Math.pow(er,v.length))):Mv.test(e.charAt(u-1))?(p*=yv,x=e.slice(o,u-1).match($i),x&&o>0&&(p*=Math.pow(er,x.length))):(p*=Sv,o>0&&(p*=Math.pow(er,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=Ev)),(p<Qn&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(g=vr(e,t,n,r,u+1,a+2,s),g*Qn>p&&(p=g*Qn)),p>f&&(f=p),u=n.indexOf(l,u+1);return s[c]=f,f}function Zo(e){return e.toLowerCase().replace($i," ")}function Nv(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,vr(e,t,Zo(e),Zo(t),0,0,{})}function Iv(e){const t=Tv(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(kv);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Tv(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=Dv(o),c=Ov(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Av=Symbol("radix.slottable");function kv(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Av}function Ov(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Dv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tn="Dialog",[Vi]=Me(Tn),[jv,Ce]=Vi(Tn),zi=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,f]=Pe({prop:r,defaultProp:o??!1,onChange:a,caller:Tn});return d.jsx(jv,{scope:t,triggerRef:c,contentRef:l,contentId:ae(),titleId:ae(),descriptionId:ae(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};zi.displayName=Tn;var Wi="DialogTrigger",Bi=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ce(Wi,n),a=te(t,o.triggerRef);return d.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":to(o.open),...r,ref:a,onClick:k(e.onClick,o.onOpenToggle)})});Bi.displayName=Wi;var Qr="DialogPortal",[Fv,Gi]=Vi(Qr,{forceMount:void 0}),Ui=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ce(Qr,t);return d.jsx(Fv,{scope:t,forceMount:n,children:i.Children.map(r,s=>d.jsx(de,{present:n||a.open,children:d.jsx(Dt,{asChild:!0,container:o,children:s})}))})};Ui.displayName=Qr;var mn="DialogOverlay",Hi=i.forwardRef((e,t)=>{const n=Gi(mn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ce(mn,e.__scopeDialog);return a.modal?d.jsx(de,{present:r||a.open,children:d.jsx($v,{...o,ref:t})}):null});Hi.displayName=mn;var Lv=Iv("DialogOverlay.RemoveScroll"),$v=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ce(mn,n);return d.jsx(jt,{as:Lv,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(W.div,{"data-state":to(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ke="DialogContent",Ki=i.forwardRef((e,t)=>{const n=Gi(Ke,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ce(Ke,e.__scopeDialog);return d.jsx(de,{present:r||a.open,children:a.modal?d.jsx(Vv,{...o,ref:t}):d.jsx(zv,{...o,ref:t})})});Ki.displayName=Ke;var Vv=i.forwardRef((e,t)=>{const n=Ce(Ke,e.__scopeDialog),r=i.useRef(null),o=te(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return _n(a)},[]),d.jsx(Yi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:k(e.onFocusOutside,a=>a.preventDefault())})}),zv=i.forwardRef((e,t)=>{const n=Ce(Ke,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return d.jsx(Yi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Yi=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,c=Ce(Ke,n),l=i.useRef(null),u=te(t,l);return wn(),d.jsxs(d.Fragment,{children:[d.jsx(kt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":to(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Wv,{titleId:c.titleId}),d.jsx(Gv,{contentRef:l,descriptionId:c.descriptionId})]})]})}),eo="DialogTitle",Xi=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ce(eo,n);return d.jsx(W.h2,{id:o.titleId,...r,ref:t})});Xi.displayName=eo;var qi="DialogDescription",Zi=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ce(qi,n);return d.jsx(W.p,{id:o.descriptionId,...r,ref:t})});Zi.displayName=qi;var Ji="DialogClose",Qi=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ce(Ji,n);return d.jsx(W.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});Qi.displayName=Ji;function to(e){return e?"open":"closed"}var ec="DialogTitleWarning",[Ox,tc]=Ku(ec,{contentName:Ke,titleName:eo,docsSlug:"dialog"}),Wv=({titleId:e})=>{const t=tc(ec),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
47
47
 
48
48
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
49
49
 
50
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},DE="DialogDescriptionWarning",kE=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oh(DE).contentName}}.`;return u.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ah=Wv,$E=Hv,ih=Kv,sh=Yv,ch=Xv,LE=Jv,FE=eh,lh=rh,qE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=qE.reduce((e,t)=>{const r=zs(`Primitive.${t}`),n=u.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Ut='[cmdk-group=""]',ro='[cmdk-group-items=""]',BE='[cmdk-group-heading=""]',uh='[cmdk-item=""]',Il=`${uh}:not([aria-disabled="true"])`,_s="cmdk-item-select",St="data-value",VE=(e,t,r)=>xE(e,t,r),dh=u.createContext(void 0),yr=()=>u.useContext(dh),fh=u.createContext(void 0),xc=()=>u.useContext(fh),ph=u.createContext(void 0),mh=u.forwardRef((e,t)=>{let r=Et(()=>{var R,N;return{search:"",value:(N=(R=e.value)!=null?R:e.defaultValue)!=null?N:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Et(()=>new Set),o=Et(()=>new Map),a=Et(()=>new Map),i=Et(()=>new Set),s=vh(e),{label:c,children:l,value:d,onValueChange:f,filter:v,shouldFilter:g,loop:y,disablePointerSelection:h=!1,vimBindings:m=!0,...b}=e,x=ce(),w=ce(),_=ce(),C=u.useRef(null),E=QE();ut(()=>{if(d!==void 0){let R=d.trim();r.current.value=R,S.emit()}},[d]),ut(()=>{E(6,D)},[]);let S=u.useMemo(()=>({subscribe:R=>(i.current.add(R),()=>i.current.delete(R)),snapshot:()=>r.current,setState:(R,N,L)=>{var z,J,O,X;if(!Object.is(r.current[R],N)){if(r.current[R]=N,R==="search")U(),B(),E(1,j);else if(R==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(_);Q?Q.focus():(z=document.getElementById(x))==null||z.focus()}if(E(7,()=>{var Q;r.current.selectedItemId=(Q=F())==null?void 0:Q.id,S.emit()}),L||E(5,D),((J=s.current)==null?void 0:J.value)!==void 0){let Q=N??"";(X=(O=s.current).onValueChange)==null||X.call(O,Q);return}}S.emit()}},emit:()=>{i.current.forEach(R=>R())}}),[]),P=u.useMemo(()=>({value:(R,N,L)=>{var z;N!==((z=a.current.get(R))==null?void 0:z.value)&&(a.current.set(R,{value:N,keywords:L}),r.current.filtered.items.set(R,M(N,L)),E(2,()=>{B(),S.emit()}))},item:(R,N)=>(n.current.add(R),N&&(o.current.has(N)?o.current.get(N).add(R):o.current.set(N,new Set([R]))),E(3,()=>{U(),B(),r.current.value||j(),S.emit()}),()=>{a.current.delete(R),n.current.delete(R),r.current.filtered.items.delete(R);let L=F();E(4,()=>{U(),L?.getAttribute("id")===R&&j(),S.emit()})}),group:R=>(o.current.has(R)||o.current.set(R,new Set),()=>{a.current.delete(R),o.current.delete(R)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:_,labelId:w,listInnerRef:C}),[]);function M(R,N){var L,z;let J=(z=(L=s.current)==null?void 0:L.filter)!=null?z:VE;return R?J(R,r.current.search,N):0}function B(){if(!r.current.search||s.current.shouldFilter===!1)return;let R=r.current.filtered.items,N=[];r.current.filtered.groups.forEach(z=>{let J=o.current.get(z),O=0;J.forEach(X=>{let Q=R.get(X);O=Math.max(Q,O)}),N.push([z,O])});let L=C.current;V().sort((z,J)=>{var O,X;let Q=z.getAttribute("id"),te=J.getAttribute("id");return((O=R.get(te))!=null?O:0)-((X=R.get(Q))!=null?X:0)}).forEach(z=>{let J=z.closest(ro);J?J.appendChild(z.parentElement===J?z:z.closest(`${ro} > *`)):L.appendChild(z.parentElement===L?z:z.closest(`${ro} > *`))}),N.sort((z,J)=>J[1]-z[1]).forEach(z=>{var J;let O=(J=C.current)==null?void 0:J.querySelector(`${Ut}[${St}="${encodeURIComponent(z[0])}"]`);O?.parentElement.appendChild(O)})}function j(){let R=V().find(L=>L.getAttribute("aria-disabled")!=="true"),N=R?.getAttribute(St);S.setState("value",N||void 0)}function U(){var R,N,L,z;if(!r.current.search||s.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let J=0;for(let O of n.current){let X=(N=(R=a.current.get(O))==null?void 0:R.value)!=null?N:"",Q=(z=(L=a.current.get(O))==null?void 0:L.keywords)!=null?z:[],te=M(X,Q);r.current.filtered.items.set(O,te),te>0&&J++}for(let[O,X]of o.current)for(let Q of X)if(r.current.filtered.items.get(Q)>0){r.current.filtered.groups.add(O);break}r.current.filtered.count=J}function D(){var R,N,L;let z=F();z&&(((R=z.parentElement)==null?void 0:R.firstChild)===z&&((L=(N=z.closest(Ut))==null?void 0:N.querySelector(BE))==null||L.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function F(){var R;return(R=C.current)==null?void 0:R.querySelector(`${uh}[aria-selected="true"]`)}function V(){var R;return Array.from(((R=C.current)==null?void 0:R.querySelectorAll(Il))||[])}function k(R){let N=V()[R];N&&S.setState("value",N.getAttribute(St))}function K(R){var N;let L=F(),z=V(),J=z.findIndex(X=>X===L),O=z[J+R];(N=s.current)!=null&&N.loop&&(O=J+R<0?z[z.length-1]:J+R===z.length?z[0]:z[J+R]),O&&S.setState("value",O.getAttribute(St))}function A(R){let N=F(),L=N?.closest(Ut),z;for(;L&&!z;)L=R>0?ZE(L,Ut):JE(L,Ut),z=L?.querySelector(Il);z?S.setState("value",z.getAttribute(St)):K(R)}let $=()=>k(V().length-1),ee=R=>{R.preventDefault(),R.metaKey?$():R.altKey?A(1):K(1)},T=R=>{R.preventDefault(),R.metaKey?k(0):R.altKey?A(-1):K(-1)};return u.createElement(Qe.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:R=>{var N;(N=b.onKeyDown)==null||N.call(b,R);let L=R.nativeEvent.isComposing||R.keyCode===229;if(!(R.defaultPrevented||L))switch(R.key){case"n":case"j":{m&&R.ctrlKey&&ee(R);break}case"ArrowDown":{ee(R);break}case"p":case"k":{m&&R.ctrlKey&&T(R);break}case"ArrowUp":{T(R);break}case"Home":{R.preventDefault(),k(0);break}case"End":{R.preventDefault(),$();break}case"Enter":{R.preventDefault();let z=F();if(z){let J=new Event(_s);z.dispatchEvent(J)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:tR},c),Pn(e,R=>u.createElement(fh.Provider,{value:S},u.createElement(dh.Provider,{value:P},R))))}),zE=u.forwardRef((e,t)=>{var r,n;let o=ce(),a=u.useRef(null),i=u.useContext(ph),s=yr(),c=vh(e),l=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:i?.forceMount;ut(()=>{if(!l)return s.item(o,i?.id)},[l]);let d=hh(o,a,[e.value,e.children,a],e.keywords),f=xc(),v=Ze(E=>E.value&&E.value===d.current),g=Ze(E=>l||s.filter()===!1?!0:E.search?E.filtered.items.get(o)>0:!0);u.useEffect(()=>{let E=a.current;if(!(!E||e.disabled))return E.addEventListener(_s,y),()=>E.removeEventListener(_s,y)},[g,e.onSelect,e.disabled]);function y(){var E,S;h(),(S=(E=c.current).onSelect)==null||S.call(E,d.current)}function h(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:m,value:b,onSelect:x,forceMount:w,keywords:_,...C}=e;return u.createElement(Qe.div,{ref:fe(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!m,"aria-selected":!!v,"data-disabled":!!m,"data-selected":!!v,onPointerMove:m||s.getDisablePointerSelection()?void 0:h,onClick:m?void 0:y},e.children)}),WE=u.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,i=ce(),s=u.useRef(null),c=u.useRef(null),l=ce(),d=yr(),f=Ze(g=>o||d.filter()===!1?!0:g.search?g.filtered.groups.has(i):!0);ut(()=>d.group(i),[]),hh(i,s,[e.value,e.heading,c]);let v=u.useMemo(()=>({id:i,forceMount:o}),[o]);return u.createElement(Qe.div,{ref:fe(s,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&u.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},r),Pn(e,g=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?l:void 0},u.createElement(ph.Provider,{value:v},g))))}),UE=u.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=u.useRef(null),a=Ze(i=>!i.search);return!r&&!a?null:u.createElement(Qe.div,{ref:fe(o,t),...n,"cmdk-separator":"",role:"separator"})}),HE=u.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=xc(),i=Ze(l=>l.search),s=Ze(l=>l.selectedItemId),c=yr();return u.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),u.createElement(Qe.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:i,onChange:l=>{o||a.setState("search",l.target.value),r?.(l.target.value)}})}),GE=u.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=u.useRef(null),i=u.useRef(null),s=Ze(l=>l.selectedItemId),c=yr();return u.useEffect(()=>{if(i.current&&a.current){let l=i.current,d=a.current,f,v=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let g=l.offsetHeight;d.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return v.observe(l),()=>{cancelAnimationFrame(f),v.unobserve(l)}}},[]),u.createElement(Qe.div,{ref:fe(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:c.listId},Pn(e,l=>u.createElement("div",{ref:fe(i,c.listInnerRef),"cmdk-list-sizer":""},l)))}),KE=u.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:i,...s}=e;return u.createElement(ah,{open:r,onOpenChange:n},u.createElement(ih,{container:i},u.createElement(sh,{"cmdk-overlay":"",className:o}),u.createElement(ch,{"aria-label":e.label,"cmdk-dialog":"",className:a},u.createElement(mh,{ref:t,...s}))))}),YE=u.forwardRef((e,t)=>Ze(r=>r.filtered.count===0)?u.createElement(Qe.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),XE=u.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return u.createElement(Qe.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Pn(e,i=>u.createElement("div",{"aria-hidden":!0},i)))}),vt=Object.assign(mh,{List:GE,Item:zE,Input:HE,Group:WE,Separator:UE,Dialog:KE,Empty:YE,Loading:XE});function ZE(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function JE(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function vh(e){let t=u.useRef(e);return ut(()=>{t.current=e}),t}var ut=typeof window>"u"?u.useEffect:u.useLayoutEffect;function Et(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function Ze(e){let t=xc(),r=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,r,r)}function hh(e,t,r,n=[]){let o=u.useRef(),a=yr();return ut(()=>{var i;let s=(()=>{var l;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(l=d.current.textContent)==null?void 0:l.trim():o.current}})(),c=n.map(l=>l.trim());a.value(e,s,c),(i=t.current)==null||i.setAttribute(St,s),o.current=s}),o}var QE=()=>{let[e,t]=u.useState(),r=Et(()=>new Map);return ut(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function eR(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Pn({asChild:e,children:t},r){return e&&u.isValidElement(t)?u.cloneElement(eR(t),{ref:t.ref},r(t.props.children)):r(t)}var tR={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function gh({...e}){return p.jsx(ah,{"data-slot":"dialog",...e})}function rR({...e}){return p.jsx($E,{"data-slot":"dialog-trigger",...e})}function yh({...e}){return p.jsx(ih,{"data-slot":"dialog-portal",...e})}function nR({...e}){return p.jsx(lh,{"data-slot":"dialog-close",...e})}function bh({className:e,...t}){return p.jsx(sh,{"data-slot":"dialog-overlay",className:W("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function wh({className:e,children:t,showCloseButton:r=!0,...n}){return p.jsxs(yh,{"data-slot":"dialog-portal",children:[p.jsx(bh,{}),p.jsxs(ch,{"data-slot":"dialog-content",className:W("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...n,children:[t,r&&p.jsxs(lh,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx(be.XIcon,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function xh({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-header",className:W("flex flex-col gap-2 text-center sm:text-left",e),...t})}function oR({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-footer",className:W("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function _h({className:e,...t}){return p.jsx(LE,{"data-slot":"dialog-title",className:W("text-lg leading-none font-semibold",e),...t})}function Ch({className:e,...t}){return p.jsx(FE,{"data-slot":"dialog-description",className:W("text-muted-foreground text-sm",e),...t})}function _c({className:e,...t}){return p.jsx(vt,{"data-slot":"command",className:W("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function aR({title:e="Command Palette",description:t="Search for a command to run...",children:r,className:n,showCloseButton:o=!0,...a}){return p.jsxs(gh,{...a,children:[p.jsxs(xh,{className:"sr-only",children:[p.jsx(_h,{children:e}),p.jsx(Ch,{children:t})]}),p.jsx(wh,{className:W("overflow-hidden p-0",n),showCloseButton:o,children:p.jsx(_c,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function Sh({className:e,...t}){return p.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[p.jsx(be.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),p.jsx(vt.Input,{"data-slot":"command-input",className:W("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Eh({className:e,...t}){return p.jsx(vt.List,{"data-slot":"command-list",className:W("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Rh({...e}){return p.jsx(vt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ph({className:e,...t}){return p.jsx(vt.Group,{"data-slot":"command-group",className:W("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function iR({className:e,...t}){return p.jsx(vt.Separator,{"data-slot":"command-separator",className:W("bg-border -mx-1 h-px",e),...t})}function Th({className:e,...t}){return p.jsx(vt.Item,{"data-slot":"command-item",className:W("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function sR({className:e,...t}){return p.jsx("span",{"data-slot":"command-shortcut",className:W("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function cR(e){const t=lR(e),r=u.forwardRef((n,o)=>{const{children:a,...i}=n,s=u.Children.toArray(a),c=s.find(dR);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function lR(e){const t=u.forwardRef((r,n)=>{const{children:o,...a}=r;if(u.isValidElement(o)){const i=pR(o),s=fR(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uR=Symbol("radix.slottable");function dR(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uR}function fR(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function pR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Tn="Popover",[Oh]=Le(Tn,[qt]),br=qt(),[mR,et]=Oh(Tn),Ah=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=br(t),c=u.useRef(null),[l,d]=u.useState(!1),[f,v]=De({prop:n,defaultProp:o??!1,onChange:a,caller:Tn});return p.jsx(wn,{...s,children:p.jsx(mR,{scope:t,contentId:ce(),triggerRef:c,open:f,onOpenChange:v,onOpenToggle:u.useCallback(()=>v(g=>!g),[v]),hasCustomAnchor:l,onCustomAnchorAdd:u.useCallback(()=>d(!0),[]),onCustomAnchorRemove:u.useCallback(()=>d(!1),[]),modal:i,children:r})})};Ah.displayName=Tn;var Mh="PopoverAnchor",Ih=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=et(Mh,r),a=br(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return u.useEffect(()=>(i(),()=>s()),[i,s]),p.jsx(xn,{...a,...n,ref:t})});Ih.displayName=Mh;var Nh="PopoverTrigger",jh=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=et(Nh,r),a=br(r),i=ne(t,o.triggerRef),s=p.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fh(o.open),...n,ref:i,onClick:q(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:p.jsx(xn,{asChild:!0,...a,children:s})});jh.displayName=Nh;var Cc="PopoverPortal",[vR,hR]=Oh(Cc,{forceMount:void 0}),Dh=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=et(Cc,t);return p.jsx(vR,{scope:t,forceMount:r,children:p.jsx(me,{present:r||a.open,children:p.jsx(pr,{asChild:!0,container:o,children:n})})})};Dh.displayName=Cc;var At="PopoverContent",kh=u.forwardRef((e,t)=>{const r=hR(At,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=et(At,e.__scopePopover);return p.jsx(me,{present:n||a.open,children:a.modal?p.jsx(yR,{...o,ref:t}):p.jsx(bR,{...o,ref:t})})});kh.displayName=At;var gR=cR("PopoverContent.RemoveScroll"),yR=u.forwardRef((e,t)=>{const r=et(At,e.__scopePopover),n=u.useRef(null),o=ne(t,n),a=u.useRef(!1);return u.useEffect(()=>{const i=n.current;if(i)return _n(i)},[]),p.jsx(mr,{as:gR,allowPinchZoom:!0,children:p.jsx($h,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),bR=u.forwardRef((e,t)=>{const r=et(At,e.__scopePopover),n=u.useRef(!1),o=u.useRef(!1);return p.jsx($h,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),$h=u.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:d,...f}=e,v=et(At,r),g=br(r);return vn(),p.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx($t,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(cc,{"data-state":Fh(v.open),role:"dialog",id:v.contentId,...g,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Lh="PopoverClose",wR=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=et(Lh,r);return p.jsx(Z.button,{type:"button",...n,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});wR.displayName=Lh;var xR="PopoverArrow",_R=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=br(r);return p.jsx(lc,{...o,...n,ref:t})});_R.displayName=xR;function Fh(e){return e?"open":"closed"}var CR=Ah,SR=Ih,ER=jh,RR=Dh,PR=kh;function qh({...e}){return p.jsx(CR,{"data-slot":"popover",...e})}function Bh({...e}){return p.jsx(ER,{"data-slot":"popover-trigger",...e})}function Vh({className:e,align:t="center",sideOffset:r=4,...n}){return p.jsx(RR,{children:p.jsx(PR,{"data-slot":"popover-content",align:t,sideOffset:r,className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}function TR({...e}){return p.jsx(SR,{"data-slot":"popover-anchor",...e})}const OR=e=>{const[t,r]=I.useState(""),[n,o]=I.useState(!1),a=I.useRef(e.onFilterChange),[i,s]=I.useState(e.value&&e.items?.find(l=>l.value===e.value)?.label||""),c=l=>{r(l)};return I.useEffect(()=>{a.current=e.onFilterChange},[e.onFilterChange]),I.useEffect(()=>{if(!a.current)return;const l=setTimeout(()=>{console.log("Filtering with value:",t),a.current(t)},300);return()=>{clearTimeout(l)}},[t]),I.useEffect(()=>{if(!e.items&&!e.isLoading){s("");return}else if(!e.items)return;const l=e.items.find(d=>d.value===e.value);l&&s(l.label)},[e.value,e.items,e.isLoading]),p.jsxs(qh,{open:n,onOpenChange:o,children:[p.jsx(Bh,{asChild:!0,children:p.jsxs(_p,{variant:"outline",className:"w-full justify-between",children:[!e.value&&p.jsx("div",{className:"text-muted-foreground",children:e.placeholder}),e.value&&p.jsx("div",{className:"truncate",children:i||e.value}),e.isLoading&&p.jsx(Xp,{className:"ml-2 h-4 w-4 shrink-0"}),!e.isLoading&&p.jsx(be.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0"})]})}),p.jsx(Vh,{className:"w-[--radix-popover-trigger-width] p-0",children:p.jsxs(_c,{shouldFilter:!e.onFilterChange,children:[p.jsx(Sh,{value:t,placeholder:e.filterPlaceholder||"Type to filter...",onValueChange:c}),p.jsxs(Eh,{children:[p.jsx(Rh,{className:"p-2",children:e.emptyMessage||"No results found."}),p.jsx(Ph,{children:e.items?.map(l=>p.jsxs(Th,{value:l.value,onSelect:d=>{e.onValueChange?.(d),o(!1)},children:[l.label,p.jsx(be.CheckIcon,{className:W("ml-auto size-4",e.value===l.value&&"opacity-100",e.value!==l.value&&"opacity-0")})]},l.value))})]})]})})]})};function AR({className:e,...t}){return p.jsx("textarea",{"data-slot":"textarea",className:W("border-input placeholder: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 flex field-sizing-content min-h-16 w-full resize-y rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function Nl(e,[t,r]){return Math.min(r,Math.max(t,e))}function MR(e){const t=IR(e),r=u.forwardRef((n,o)=>{const{children:a,...i}=n,s=u.Children.toArray(a),c=s.find(jR);if(c){const l=c.props.children,d=s.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function IR(e){const t=u.forwardRef((r,n)=>{const{children:o,...a}=r;if(u.isValidElement(o)){const i=kR(o),s=DR(a,o.props);return o.type!==u.Fragment&&(s.ref=n?fe(n,i):i),u.cloneElement(o,s)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var NR=Symbol("radix.slottable");function jR(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===NR}function DR(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function kR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $R=[" ","Enter","ArrowUp","ArrowDown"],LR=[" ","Enter"],dt="Select",[On,An,FR]=cr(dt),[Bt]=Le(dt,[FR,qt]),Mn=qt(),[qR,tt]=Bt(dt),[BR,VR]=Bt(dt),zh=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:l,name:d,autoComplete:f,disabled:v,required:g,form:y}=e,h=Mn(t),[m,b]=u.useState(null),[x,w]=u.useState(null),[_,C]=u.useState(!1),E=lr(l),[S,P]=De({prop:n,defaultProp:o??!1,onChange:a,caller:dt}),[M,B]=De({prop:i,defaultProp:s,onChange:c,caller:dt}),j=u.useRef(null),U=m?y||!!m.closest("form"):!0,[D,F]=u.useState(new Set),V=Array.from(D).map(k=>k.props.value).join(";");return p.jsx(wn,{...h,children:p.jsxs(qR,{required:g,scope:t,trigger:m,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:_,onValueNodeHasChildrenChange:C,contentId:ce(),value:M,onValueChange:B,open:S,onOpenChange:P,dir:E,triggerPointerDownPosRef:j,disabled:v,children:[p.jsx(On.Provider,{scope:t,children:p.jsx(BR,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(k=>{F(K=>new Set(K).add(k))},[]),onNativeOptionRemove:u.useCallback(k=>{F(K=>{const A=new Set(K);return A.delete(k),A})},[]),children:r})}),U?p.jsxs(mg,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:f,value:M,onChange:k=>B(k.target.value),disabled:v,form:y,children:[M===void 0?p.jsx("option",{value:""}):null,Array.from(D)]},V):null]})})};zh.displayName=dt;var Wh="SelectTrigger",Uh=u.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Mn(r),i=tt(Wh,r),s=i.disabled||n,c=ne(t,i.onTriggerChange),l=An(r),d=u.useRef("touch"),[f,v,g]=hg(h=>{const m=l().filter(w=>!w.disabled),b=m.find(w=>w.value===i.value),x=gg(m,h,b);x!==void 0&&i.onValueChange(x.value)}),y=h=>{s||(i.onOpenChange(!0),g()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return p.jsx(xn,{asChild:!0,...a,children:p.jsx(Z.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":vg(i.value)?"":void 0,...o,ref:c,onClick:q(o.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&y(h)}),onPointerDown:q(o.onPointerDown,h=>{d.current=h.pointerType;const m=h.target;m.hasPointerCapture(h.pointerId)&&m.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(y(h),h.preventDefault())}),onKeyDown:q(o.onKeyDown,h=>{const m=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&v(h.key),!(m&&h.key===" ")&&$R.includes(h.key)&&(y(),h.preventDefault())})})})});Uh.displayName=Wh;var Hh="SelectValue",Gh=u.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...s}=e,c=tt(Hh,r),{onValueNodeHasChildrenChange:l}=c,d=a!==void 0,f=ne(t,c.onValueNodeChange);return ue(()=>{l(d)},[l,d]),p.jsx(Z.span,{...s,ref:f,style:{pointerEvents:"none"},children:vg(c.value)?p.jsx(p.Fragment,{children:i}):a})});Gh.displayName=Hh;var zR="SelectIcon",Kh=u.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return p.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Kh.displayName=zR;var WR="SelectPortal",Yh=e=>p.jsx(pr,{asChild:!0,...e});Yh.displayName=WR;var ft="SelectContent",Xh=u.forwardRef((e,t)=>{const r=tt(ft,e.__scopeSelect),[n,o]=u.useState();if(ue(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?dn.createPortal(p.jsx(Zh,{scope:e.__scopeSelect,children:p.jsx(On.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(Jh,{...e,ref:t})});Xh.displayName=ft;var Ee=10,[Zh,rt]=Bt(ft),UR="SelectContentImpl",HR=MR("SelectContent.RemoveScroll"),Jh=u.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:d,arrowPadding:f,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:h,avoidCollisions:m,...b}=e,x=tt(ft,r),[w,_]=u.useState(null),[C,E]=u.useState(null),S=ne(t,O=>_(O)),[P,M]=u.useState(null),[B,j]=u.useState(null),U=An(r),[D,F]=u.useState(!1),V=u.useRef(!1);u.useEffect(()=>{if(w)return _n(w)},[w]),vn();const k=u.useCallback(O=>{const[X,...Q]=U().map(se=>se.ref.current),[te]=Q.slice(-1),oe=document.activeElement;for(const se of O)if(se===oe||(se?.scrollIntoView({block:"nearest"}),se===X&&C&&(C.scrollTop=0),se===te&&C&&(C.scrollTop=C.scrollHeight),se?.focus(),document.activeElement!==oe))return},[U,C]),K=u.useCallback(()=>k([P,w]),[k,P,w]);u.useEffect(()=>{D&&K()},[D,K]);const{onOpenChange:A,triggerPointerDownPosRef:$}=x;u.useEffect(()=>{if(w){let O={x:0,y:0};const X=te=>{O={x:Math.abs(Math.round(te.pageX)-($.current?.x??0)),y:Math.abs(Math.round(te.pageY)-($.current?.y??0))}},Q=te=>{O.x<=10&&O.y<=10?te.preventDefault():w.contains(te.target)||A(!1),document.removeEventListener("pointermove",X),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",Q,{capture:!0})}}},[w,A,$]),u.useEffect(()=>{const O=()=>A(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[A]);const[ee,T]=hg(O=>{const X=U().filter(oe=>!oe.disabled),Q=X.find(oe=>oe.ref.current===document.activeElement),te=gg(X,O,Q);te&&setTimeout(()=>te.ref.current.focus())}),R=u.useCallback((O,X,Q)=>{const te=!V.current&&!Q;(x.value!==void 0&&x.value===X||te)&&(M(O),te&&(V.current=!0))},[x.value]),N=u.useCallback(()=>w?.focus(),[w]),L=u.useCallback((O,X,Q)=>{const te=!V.current&&!Q;(x.value!==void 0&&x.value===X||te)&&j(O)},[x.value]),z=n==="popper"?Cs:Qh,J=z===Cs?{side:s,sideOffset:c,align:l,alignOffset:d,arrowPadding:f,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:h,avoidCollisions:m}:{};return p.jsx(Zh,{scope:r,content:w,viewport:C,onViewportChange:E,itemRefCallback:R,selectedItem:P,onItemLeave:N,itemTextRefCallback:L,focusSelectedItem:K,selectedItemText:B,position:n,isPositioned:D,searchRef:ee,children:p.jsx(mr,{as:HR,allowPinchZoom:!0,children:p.jsx(dr,{asChild:!0,trapped:x.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:q(o,O=>{x.trigger?.focus({preventScroll:!0}),O.preventDefault()}),children:p.jsx($t,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(z,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:O=>O.preventDefault(),...b,...J,onPlaced:()=>F(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:q(b.onKeyDown,O=>{const X=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!X&&O.key.length===1&&T(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let te=U().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(O.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const oe=O.target,se=te.indexOf(oe);te=te.slice(se+1)}setTimeout(()=>k(te)),O.preventDefault()}})})})})})})});Jh.displayName=UR;var GR="SelectItemAlignedPosition",Qh=u.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=tt(ft,r),i=rt(ft,r),[s,c]=u.useState(null),[l,d]=u.useState(null),f=ne(t,S=>d(S)),v=An(r),g=u.useRef(!1),y=u.useRef(!0),{viewport:h,selectedItem:m,selectedItemText:b,focusSelectedItem:x}=i,w=u.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&m&&b){const S=a.trigger.getBoundingClientRect(),P=l.getBoundingClientRect(),M=a.valueNode.getBoundingClientRect(),B=b.getBoundingClientRect();if(a.dir!=="rtl"){const oe=B.left-P.left,se=M.left-oe,ve=S.left-se,Y=S.width+ve,ot=Math.max(Y,P.width),He=window.innerWidth-Ee,bt=Nl(se,[Ee,Math.max(Ee,He-ot)]);s.style.minWidth=Y+"px",s.style.left=bt+"px"}else{const oe=P.right-B.right,se=window.innerWidth-M.right-oe,ve=window.innerWidth-S.right-se,Y=S.width+ve,ot=Math.max(Y,P.width),He=window.innerWidth-Ee,bt=Nl(se,[Ee,Math.max(Ee,He-ot)]);s.style.minWidth=Y+"px",s.style.right=bt+"px"}const j=v(),U=window.innerHeight-Ee*2,D=h.scrollHeight,F=window.getComputedStyle(l),V=parseInt(F.borderTopWidth,10),k=parseInt(F.paddingTop,10),K=parseInt(F.borderBottomWidth,10),A=parseInt(F.paddingBottom,10),$=V+k+D+A+K,ee=Math.min(m.offsetHeight*5,$),T=window.getComputedStyle(h),R=parseInt(T.paddingTop,10),N=parseInt(T.paddingBottom,10),L=S.top+S.height/2-Ee,z=U-L,J=m.offsetHeight/2,O=m.offsetTop+J,X=V+k+O,Q=$-X;if(X<=L){const oe=j.length>0&&m===j[j.length-1].ref.current;s.style.bottom="0px";const se=l.clientHeight-h.offsetTop-h.offsetHeight,ve=Math.max(z,J+(oe?N:0)+se+K),Y=X+ve;s.style.height=Y+"px"}else{const oe=j.length>0&&m===j[0].ref.current;s.style.top="0px";const ve=Math.max(L,V+h.offsetTop+(oe?R:0)+J)+Q;s.style.height=ve+"px",h.scrollTop=X-L+h.offsetTop}s.style.margin=`${Ee}px 0`,s.style.minHeight=ee+"px",s.style.maxHeight=U+"px",n?.(),requestAnimationFrame(()=>g.current=!0)}},[v,a.trigger,a.valueNode,s,l,h,m,b,a.dir,n]);ue(()=>w(),[w]);const[_,C]=u.useState();ue(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);const E=u.useCallback(S=>{S&&y.current===!0&&(w(),x?.(),y.current=!1)},[w,x]);return p.jsx(YR,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:E,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:p.jsx(Z.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Qh.displayName=GR;var KR="SelectPopperPosition",Cs=u.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ee,...a}=e,i=Mn(r);return p.jsx(cc,{...i,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cs.displayName=KR;var[YR,Sc]=Bt(ft,{}),Ss="SelectViewport",eg=u.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=rt(Ss,r),i=Sc(Ss,r),s=ne(t,a.onViewportChange),c=u.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),p.jsx(On.Slot,{scope:r,children:p.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:q(o.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:v}=i;if(v?.current&&f){const g=Math.abs(c.current-d.scrollTop);if(g>0){const y=window.innerHeight-Ee*2,h=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),b=Math.max(h,m);if(b<y){const x=b+g,w=Math.min(y,x),_=x-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});eg.displayName=Ss;var tg="SelectGroup",[XR,ZR]=Bt(tg),rg=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ce();return p.jsx(XR,{scope:r,id:o,children:p.jsx(Z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});rg.displayName=tg;var ng="SelectLabel",og=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ZR(ng,r);return p.jsx(Z.div,{id:o.id,...n,ref:t})});og.displayName=ng;var tn="SelectItem",[JR,ag]=Bt(tn),ig=u.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...i}=e,s=tt(tn,r),c=rt(tn,r),l=s.value===n,[d,f]=u.useState(a??""),[v,g]=u.useState(!1),y=ne(t,x=>c.itemRefCallback?.(x,n,o)),h=ce(),m=u.useRef("touch"),b=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(JR,{scope:r,value:n,disabled:o,textId:h,isSelected:l,onItemTextChange:u.useCallback(x=>{f(w=>w||(x?.textContent??"").trim())},[]),children:p.jsx(On.ItemSlot,{scope:r,value:n,disabled:o,textValue:d,children:p.jsx(Z.div,{role:"option","aria-labelledby":h,"data-highlighted":v?"":void 0,"aria-selected":l&&v,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:y,onFocus:q(i.onFocus,()=>g(!0)),onBlur:q(i.onBlur,()=>g(!1)),onClick:q(i.onClick,()=>{m.current!=="mouse"&&b()}),onPointerUp:q(i.onPointerUp,()=>{m.current==="mouse"&&b()}),onPointerDown:q(i.onPointerDown,x=>{m.current=x.pointerType}),onPointerMove:q(i.onPointerMove,x=>{m.current=x.pointerType,o?c.onItemLeave?.():m.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:q(i.onKeyDown,x=>{c.searchRef?.current!==""&&x.key===" "||(LR.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});ig.displayName=tn;var Yt="SelectItemText",sg=u.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,i=tt(Yt,r),s=rt(Yt,r),c=ag(Yt,r),l=VR(Yt,r),[d,f]=u.useState(null),v=ne(t,b=>f(b),c.onItemTextChange,b=>s.itemTextRefCallback?.(b,c.value,c.disabled)),g=d?.textContent,y=u.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:h,onNativeOptionRemove:m}=l;return ue(()=>(h(y),()=>m(y)),[h,m,y]),p.jsxs(p.Fragment,{children:[p.jsx(Z.span,{id:c.textId,...a,ref:v}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?dn.createPortal(a.children,i.valueNode):null]})});sg.displayName=Yt;var cg="SelectItemIndicator",lg=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ag(cg,r).isSelected?p.jsx(Z.span,{"aria-hidden":!0,...n,ref:t}):null});lg.displayName=cg;var Es="SelectScrollUpButton",ug=u.forwardRef((e,t)=>{const r=rt(Es,e.__scopeSelect),n=Sc(Es,e.__scopeSelect),[o,a]=u.useState(!1),i=ne(t,n.onScrollButtonChange);return ue(()=>{if(r.viewport&&r.isPositioned){let s=function(){const l=c.scrollTop>0;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?p.jsx(fg,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});ug.displayName=Es;var Rs="SelectScrollDownButton",dg=u.forwardRef((e,t)=>{const r=rt(Rs,e.__scopeSelect),n=Sc(Rs,e.__scopeSelect),[o,a]=u.useState(!1),i=ne(t,n.onScrollButtonChange);return ue(()=>{if(r.viewport&&r.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<l;a(d)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?p.jsx(fg,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});dg.displayName=Rs;var fg=u.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=rt("SelectScrollButton",r),i=u.useRef(null),s=An(r),c=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),ue(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),p.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:q(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:q(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:q(o.onPointerLeave,()=>{c()})})}),QR="SelectSeparator",pg=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return p.jsx(Z.div,{"aria-hidden":!0,...n,ref:t})});pg.displayName=QR;var Ps="SelectArrow",eP=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Mn(r),a=tt(Ps,r),i=rt(Ps,r);return a.open&&i.position==="popper"?p.jsx(lc,{...o,...n,ref:t}):null});eP.displayName=Ps;var tP="SelectBubbleInput",mg=u.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=u.useRef(null),a=ne(n,o),i=Qp(t);return u.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(f)}},[i,t]),p.jsx(Z.select,{...r,style:{...em,...r.style},ref:a,defaultValue:t})});mg.displayName=tP;function vg(e){return e===""||e===void 0}function hg(e){const t=de(e),r=u.useRef(""),n=u.useRef(0),o=u.useCallback(i=>{const s=r.current+i;t(s),(function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=u.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function gg(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=rP(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function rP(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var nP=zh,oP=Uh,aP=Gh,iP=Kh,sP=Yh,cP=Xh,lP=eg,uP=rg,dP=og,fP=ig,pP=sg,mP=lg,vP=ug,hP=dg,gP=pg;function yP({...e}){return p.jsx(nP,{"data-slot":"select",...e})}function bP({...e}){return p.jsx(uP,{"data-slot":"select-group",...e})}function wP({...e}){return p.jsx(aP,{"data-slot":"select-value",...e})}function xP({className:e,size:t="default",children:r,...n}){return p.jsxs(oP,{"data-slot":"select-trigger","data-size":t,className:W("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,p.jsx(iP,{asChild:!0,children:p.jsx(be.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function _P({className:e,children:t,position:r="item-aligned",align:n="center",...o}){return p.jsx(sP,{children:p.jsxs(cP,{"data-slot":"select-content",className:W("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:n,...o,children:[p.jsx(yg,{}),p.jsx(lP,{className:W("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(bg,{})]})})}function CP({className:e,...t}){return p.jsx(dP,{"data-slot":"select-label",className:W("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function SP({className:e,children:t,...r}){return p.jsxs(fP,{"data-slot":"select-item",className:W("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[p.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(mP,{children:p.jsx(be.CheckIcon,{className:"size-4"})})}),p.jsx(pP,{children:t})]})}function EP({className:e,...t}){return p.jsx(gP,{"data-slot":"select-separator",className:W("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function yg({className:e,...t}){return p.jsx(vP,{"data-slot":"select-scroll-up-button",className:W("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(be.ChevronUpIcon,{className:"size-4"})})}function bg({className:e,...t}){return p.jsx(hP,{"data-slot":"select-scroll-down-button",className:W("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(be.ChevronDownIcon,{className:"size-4"})})}var no,jl;function Ae(){if(jl)return no;jl=1;var e=Array.isArray;return no=e,no}var oo,Dl;function wg(){if(Dl)return oo;Dl=1;var e=typeof _r=="object"&&_r&&_r.Object===Object&&_r;return oo=e,oo}var ao,kl;function qe(){if(kl)return ao;kl=1;var e=wg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ao=r,ao}var io,$l;function wr(){if($l)return io;$l=1;var e=qe(),t=e.Symbol;return io=t,io}var so,Ll;function RP(){if(Ll)return so;Ll=1;var e=wr(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=r.call(i,o),c=i[o];try{i[o]=void 0;var l=!0}catch{}var d=n.call(i);return l&&(s?i[o]=c:delete i[o]),d}return so=a,so}var co,Fl;function PP(){if(Fl)return co;Fl=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return co=r,co}var lo,ql;function ht(){if(ql)return lo;ql=1;var e=wr(),t=RP(),r=PP(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?t(s):r(s)}return lo=i,lo}var uo,Bl;function gt(){if(Bl)return uo;Bl=1;function e(t){return t!=null&&typeof t=="object"}return uo=e,uo}var fo,Vl;function xr(){if(Vl)return fo;Vl=1;var e=ht(),t=gt(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return fo=n,fo}var po,zl;function Ec(){if(zl)return po;zl=1;var e=Ae(),t=xr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||i!=null&&a in Object(i)}return po=o,po}var mo,Wl;function nt(){if(Wl)return mo;Wl=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return mo=e,mo}var vo,Ul;function Rc(){if(Ul)return vo;Ul=1;var e=ht(),t=nt(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var c=e(s);return c==n||c==o||c==r||c==a}return vo=i,vo}var ho,Hl;function TP(){if(Hl)return ho;Hl=1;var e=qe(),t=e["__core-js_shared__"];return ho=t,ho}var go,Gl;function OP(){if(Gl)return go;Gl=1;var e=TP(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return go=r,go}var yo,Kl;function xg(){if(Kl)return yo;Kl=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return yo=r,yo}var bo,Yl;function AP(){if(Yl)return bo;Yl=1;var e=Rc(),t=OP(),r=nt(),n=xg(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,c=i.toString,l=s.hasOwnProperty,d=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(v){if(!r(v)||t(v))return!1;var g=e(v)?d:a;return g.test(n(v))}return bo=f,bo}var wo,Xl;function MP(){if(Xl)return wo;Xl=1;function e(t,r){return t?.[r]}return wo=e,wo}var xo,Zl;function yt(){if(Zl)return xo;Zl=1;var e=AP(),t=MP();function r(n,o){var a=t(n,o);return e(a)?a:void 0}return xo=r,xo}var _o,Jl;function In(){if(Jl)return _o;Jl=1;var e=yt(),t=e(Object,"create");return _o=t,_o}var Co,Ql;function IP(){if(Ql)return Co;Ql=1;var e=In();function t(){this.__data__=e?e(null):{},this.size=0}return Co=t,Co}var So,eu;function NP(){if(eu)return So;eu=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return So=e,So}var Eo,tu;function jP(){if(tu)return Eo;tu=1;var e=In(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return n.call(i,a)?i[a]:void 0}return Eo=o,Eo}var Ro,ru;function DP(){if(ru)return Ro;ru=1;var e=In(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var a=this.__data__;return e?a[o]!==void 0:r.call(a,o)}return Ro=n,Ro}var Po,nu;function kP(){if(nu)return Po;nu=1;var e=In(),t="__lodash_hash_undefined__";function r(n,o){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&o===void 0?t:o,this}return Po=r,Po}var To,ou;function $P(){if(ou)return To;ou=1;var e=IP(),t=NP(),r=jP(),n=DP(),o=kP();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,To=a,To}var Oo,au;function LP(){if(au)return Oo;au=1;function e(){this.__data__=[],this.size=0}return Oo=e,Oo}var Ao,iu;function Pc(){if(iu)return Ao;iu=1;function e(t,r){return t===r||t!==t&&r!==r}return Ao=e,Ao}var Mo,su;function Nn(){if(su)return Mo;su=1;var e=Pc();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Mo=t,Mo}var Io,cu;function FP(){if(cu)return Io;cu=1;var e=Nn(),t=Array.prototype,r=t.splice;function n(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():r.call(a,i,1),--this.size,!0}return Io=n,Io}var No,lu;function qP(){if(lu)return No;lu=1;var e=Nn();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return No=t,No}var jo,uu;function BP(){if(uu)return jo;uu=1;var e=Nn();function t(r){return e(this.__data__,r)>-1}return jo=t,jo}var Do,du;function VP(){if(du)return Do;du=1;var e=Nn();function t(r,n){var o=this.__data__,a=e(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Do=t,Do}var ko,fu;function jn(){if(fu)return ko;fu=1;var e=LP(),t=FP(),r=qP(),n=BP(),o=VP();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,ko=a,ko}var $o,pu;function Tc(){if(pu)return $o;pu=1;var e=yt(),t=qe(),r=e(t,"Map");return $o=r,$o}var Lo,mu;function zP(){if(mu)return Lo;mu=1;var e=$P(),t=jn(),r=Tc();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Lo=n,Lo}var Fo,vu;function WP(){if(vu)return Fo;vu=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Fo=e,Fo}var qo,hu;function Dn(){if(hu)return qo;hu=1;var e=WP();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return qo=t,qo}var Bo,gu;function UP(){if(gu)return Bo;gu=1;var e=Dn();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Bo=t,Bo}var Vo,yu;function HP(){if(yu)return Vo;yu=1;var e=Dn();function t(r){return e(this,r).get(r)}return Vo=t,Vo}var zo,bu;function GP(){if(bu)return zo;bu=1;var e=Dn();function t(r){return e(this,r).has(r)}return zo=t,zo}var Wo,wu;function KP(){if(wu)return Wo;wu=1;var e=Dn();function t(r,n){var o=e(this,r),a=o.size;return o.set(r,n),this.size+=o.size==a?0:1,this}return Wo=t,Wo}var Uo,xu;function Oc(){if(xu)return Uo;xu=1;var e=zP(),t=UP(),r=HP(),n=GP(),o=KP();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,Uo=a,Uo}var Ho,_u;function YP(){if(_u)return Ho;_u=1;var e=Oc(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],c=a.cache;if(c.has(s))return c.get(s);var l=n.apply(this,i);return a.cache=c.set(s,l)||c,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,Ho=r,Ho}var Go,Cu;function XP(){if(Cu)return Go;Cu=1;var e=YP(),t=500;function r(n){var o=e(n,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return Go=r,Go}var Ko,Su;function ZP(){if(Su)return Ko;Su=1;var e=XP(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,c,l){a.push(c?l.replace(r,"$1"):s||i)}),a});return Ko=n,Ko}var Yo,Eu;function _g(){if(Eu)return Yo;Eu=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=Array(o);++n<o;)a[n]=r(t[n],n,t);return a}return Yo=e,Yo}var Xo,Ru;function JP(){if(Ru)return Xo;Ru=1;var e=wr(),t=_g(),r=Ae(),n=xr(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(r(s))return t(s,i)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Xo=i,Xo}var Zo,Pu;function Cg(){if(Pu)return Zo;Pu=1;var e=JP();function t(r){return r==null?"":e(r)}return Zo=t,Zo}var Jo,Tu;function Sg(){if(Tu)return Jo;Tu=1;var e=Ae(),t=Ec(),r=ZP(),n=Cg();function o(a,i){return e(a)?a:t(a,i)?[a]:r(n(a))}return Jo=o,Jo}var Qo,Ou;function kn(){if(Ou)return Qo;Ou=1;var e=xr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qo=t,Qo}var ea,Au;function Ac(){if(Au)return ea;Au=1;var e=Sg(),t=kn();function r(n,o){o=e(o,n);for(var a=0,i=o.length;n!=null&&a<i;)n=n[t(o[a++])];return a&&a==i?n:void 0}return ea=r,ea}var ta,Mu;function Eg(){if(Mu)return ta;Mu=1;var e=Ac();function t(r,n,o){var a=r==null?void 0:e(r,n);return a===void 0?o:a}return ta=t,ta}Eg();var ra,Iu;function QP(){if(Iu)return ra;Iu=1;function e(t){return t==null}return ra=e,ra}var eT=QP();const tT=$e(eT);var na,Nu;function rT(){if(Nu)return na;Nu=1;var e=ht(),t=Ae(),r=gt(),n="[object String]";function o(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return na=o,na}var nT=rT();const Rg=$e(nT);var oT=Rc();const rn=$e(oT);var aT=nt();const Pg=$e(aT);var Nr={exports:{}},ae={};var ju;function iT(){if(ju)return ae;ju=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function h(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case r:case o:case n:case l:case d:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case c:case v:case f:case a:return m;default:return b}}case t:return b}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=v,ae.Memo=f,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=l,ae.SuspenseList=d,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(m){return h(m)===i},ae.isContextProvider=function(m){return h(m)===a},ae.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ae.isForwardRef=function(m){return h(m)===c},ae.isFragment=function(m){return h(m)===r},ae.isLazy=function(m){return h(m)===v},ae.isMemo=function(m){return h(m)===f},ae.isPortal=function(m){return h(m)===t},ae.isProfiler=function(m){return h(m)===o},ae.isStrictMode=function(m){return h(m)===n},ae.isSuspense=function(m){return h(m)===l},ae.isSuspenseList=function(m){return h(m)===d},ae.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===l||m===d||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===c||m.$$typeof===y||m.getModuleId!==void 0)},ae.typeOf=h,ae}var ie={};var Du;function sT(){return Du||(Du=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=!1,h=!1,m=!1,b=!1,x=!1,w;w=Symbol.for("react.module.reference");function _(Y){return!!(typeof Y=="string"||typeof Y=="function"||Y===r||Y===o||x||Y===n||Y===l||Y===d||b||Y===g||y||h||m||typeof Y=="object"&&Y!==null&&(Y.$$typeof===v||Y.$$typeof===f||Y.$$typeof===a||Y.$$typeof===i||Y.$$typeof===c||Y.$$typeof===w||Y.getModuleId!==void 0))}function C(Y){if(typeof Y=="object"&&Y!==null){var ot=Y.$$typeof;switch(ot){case e:var He=Y.type;switch(He){case r:case o:case n:case l:case d:return He;default:var bt=He&&He.$$typeof;switch(bt){case s:case i:case c:case v:case f:case a:return bt;default:return ot}}case t:return ot}}}var E=i,S=a,P=e,M=c,B=r,j=v,U=f,D=t,F=o,V=n,k=l,K=d,A=!1,$=!1;function ee(Y){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(Y){return $||($=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(Y){return C(Y)===i}function N(Y){return C(Y)===a}function L(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function z(Y){return C(Y)===c}function J(Y){return C(Y)===r}function O(Y){return C(Y)===v}function X(Y){return C(Y)===f}function Q(Y){return C(Y)===t}function te(Y){return C(Y)===o}function oe(Y){return C(Y)===n}function se(Y){return C(Y)===l}function ve(Y){return C(Y)===d}ie.ContextConsumer=E,ie.ContextProvider=S,ie.Element=P,ie.ForwardRef=M,ie.Fragment=B,ie.Lazy=j,ie.Memo=U,ie.Portal=D,ie.Profiler=F,ie.StrictMode=V,ie.Suspense=k,ie.SuspenseList=K,ie.isAsyncMode=ee,ie.isConcurrentMode=T,ie.isContextConsumer=R,ie.isContextProvider=N,ie.isElement=L,ie.isForwardRef=z,ie.isFragment=J,ie.isLazy=O,ie.isMemo=X,ie.isPortal=Q,ie.isProfiler=te,ie.isStrictMode=oe,ie.isSuspense=se,ie.isSuspenseList=ve,ie.isValidElementType=_,ie.typeOf=C})()),ie}var ku;function cT(){return ku||(ku=1,process.env.NODE_ENV==="production"?Nr.exports=iT():Nr.exports=sT()),Nr.exports}cT();var oa,$u;function Tg(){if($u)return oa;$u=1;var e=ht(),t=gt(),r="[object Number]";function n(o){return typeof o=="number"||t(o)&&e(o)==r}return oa=n,oa}var aa,Lu;function lT(){if(Lu)return aa;Lu=1;var e=Tg();function t(r){return e(r)&&r!=+r}return aa=t,aa}var uT=lT();const dT=$e(uT);var fT=Tg();const pT=$e(fT);var jr=function(t){return Rg(t)&&t.indexOf("%")===t.length-1},Re=function(t){return pT(t)&&!dT(t)},nn=function(t){return Re(t)||Rg(t)};function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}var mT=["viewBox","children"],vT=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Fu=["points","pathLength"],ia={svg:mT,polygon:Fu,polyline:Fu},Og=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],hT=function(t,r,n){return function(o){return t(r,n,o),null}},gT=function(t,r,n){if(!Pg(t)||Ts(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];Og.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=hT(i,r,n))}),o},yT=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},bT=function(t,r,n,o){var a,i=(a=ia?.[o])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!rn(t)&&(o&&i.includes(r)||vT.includes(r))||Og.includes(r)},Ag=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(I.isValidElement(t)&&(o=t.props),!Pg(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;bT((s=o)===null||s===void 0?void 0:s[i],i,r,n)&&(a[i]=o[i])}),a},wT=["children","width","height","viewBox","className","style","title","desc"];function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(this,arguments)}function xT(e,t){if(e==null)return{};var r=_T(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _T(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CT(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,c=e.desc,l=xT(e,wT),d=o||{width:r,height:n,x:0,y:0},f=ze("recharts-surface",a);return I.createElement("svg",Os({},Ag(l,!0,"svg"),{className:f,width:r,height:n,style:i,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),I.createElement("title",null,s),I.createElement("desc",null,c),t)}var ST=process.env.NODE_ENV!=="production",zr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];if(ST&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(r.replace(/%s/g,function(){return o[i++]}))}},sa,qu;function ET(){if(qu)return sa;qu=1;function e(t,r,n){var o=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+r];return i}return sa=e,sa}var ca,Bu;function RT(){if(Bu)return ca;Bu=1;var e=ET();function t(r,n,o){var a=r.length;return o=o===void 0?a:o,!n&&o>=a?r:e(r,n,o)}return ca=t,ca}var la,Vu;function Mg(){if(Vu)return la;Vu=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function c(l){return s.test(l)}return la=c,la}var ua,zu;function PT(){if(zu)return ua;zu=1;function e(t){return t.split("")}return ua=e,ua}var da,Wu;function TT(){if(Wu)return da;Wu=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",y=l+"?",h="["+a+"]?",m="(?:"+g+"(?:"+[d,f,v].join("|")+")"+h+y+")*",b=h+y+m,x="(?:"+[d+s+"?",s,f,v,i].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function _(C){return C.match(w)||[]}return da=_,da}var fa,Uu;function OT(){if(Uu)return fa;Uu=1;var e=PT(),t=Mg(),r=TT();function n(o){return t(o)?r(o):e(o)}return fa=n,fa}var pa,Hu;function AT(){if(Hu)return pa;Hu=1;var e=RT(),t=Mg(),r=OT(),n=Cg();function o(a){return function(i){i=n(i);var s=t(i)?r(i):void 0,c=s?s[0]:i.charAt(0),l=s?e(s,1).join(""):i.slice(1);return c[a]()+l}}return pa=o,pa}var ma,Gu;function MT(){if(Gu)return ma;Gu=1;var e=AT(),t=e("toUpperCase");return ma=t,ma}var IT=MT();const Ig=$e(IT);function Dr(e){return function(){return e}}const Ng=Math.cos,on=Math.sin,Me=Math.sqrt,an=Math.PI,$n=2*an,As=Math.PI,Ms=2*As,it=1e-6,NT=Ms-it;function jg(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function jT(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return jg;const r=10**t;return function(n){this._+=n[0];for(let o=1,a=n.length;o<a;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class DT{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?jg:jT(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,a,i){this._append`C${+t},${+r},${+n},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,r,n,o,a){if(t=+t,r=+r,n=+n,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,c=n-t,l=o-r,d=i-t,f=s-r,v=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(v>it)if(!(Math.abs(f*c-l*d)>it)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let g=n-i,y=o-s,h=c*c+l*l,m=g*g+y*y,b=Math.sqrt(h),x=Math.sqrt(v),w=a*Math.tan((As-Math.acos((h+v-m)/(2*b*x)))/2),_=w/x,C=w/b;Math.abs(_-1)>it&&this._append`L${t+_*d},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*g>d*y)},${this._x1=t+C*c},${this._y1=r+C*l}`}}arc(t,r,n,o,a,i){if(t=+t,r=+r,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),c=n*Math.sin(o),l=t+s,d=r+c,f=1^i,v=i?o-a:a-o;this._x1===null?this._append`M${l},${d}`:(Math.abs(this._x1-l)>it||Math.abs(this._y1-d)>it)&&this._append`L${l},${d}`,n&&(v<0&&(v=v%Ms+Ms),v>NT?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=l},${this._y1=d}`:v>it&&this._append`A${n},${n},0,${+(v>=As)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function kT(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new DT(t)}const Mc={draw(e,t){const r=Me(t/an);e.moveTo(r,0),e.arc(0,0,r,0,$n)}},$T={draw(e,t){const r=Me(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Dg=Me(1/3),LT=Dg*2,FT={draw(e,t){const r=Me(t/LT),n=r*Dg;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},qT={draw(e,t){const r=Me(t),n=-r/2;e.rect(n,n,r,r)}},BT=.8908130915292852,kg=on(an/10)/on(7*an/10),VT=on($n/10)*kg,zT=-Ng($n/10)*kg,WT={draw(e,t){const r=Me(t*BT),n=VT*r,o=zT*r;e.moveTo(0,-r),e.lineTo(n,o);for(let a=1;a<5;++a){const i=$n*a/5,s=Ng(i),c=on(i);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*o,c*n+s*o)}e.closePath()}},va=Me(3),UT={draw(e,t){const r=-Me(t/(va*3));e.moveTo(0,r*2),e.lineTo(-va*r,-r),e.lineTo(va*r,-r),e.closePath()}},we=-.5,xe=Me(3)/2,Is=1/Me(12),HT=(Is/2+1)*3,GT={draw(e,t){const r=Me(t/HT),n=r/2,o=r*Is,a=n,i=r*Is+r,s=-a,c=i;e.moveTo(n,o),e.lineTo(a,i),e.lineTo(s,c),e.lineTo(we*n-xe*o,xe*n+we*o),e.lineTo(we*a-xe*i,xe*a+we*i),e.lineTo(we*s-xe*c,xe*s+we*c),e.lineTo(we*n+xe*o,we*o-xe*n),e.lineTo(we*a+xe*i,we*i-xe*a),e.lineTo(we*s+xe*c,we*c-xe*s),e.closePath()}};function KT(e,t){let r=null,n=kT(o);e=typeof e=="function"?e:Dr(e||Mc),t=typeof t=="function"?t:Dr(t===void 0?64:+t);function o(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Dr(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Dr(+a),o):t},o.context=function(a){return arguments.length?(r=a??null,o):r},o}function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}var YT=["type","size","sizeType"];function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ns.apply(this,arguments)}function Ku(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ku(Object(r),!0).forEach(function(n){XT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ku(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XT(e,t,r){return t=ZT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZT(e){var t=JT(e,"string");return rr(t)=="symbol"?t:t+""}function JT(e,t){if(rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QT(e,t){if(e==null)return{};var r=eO(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var $g={symbolCircle:Mc,symbolCross:$T,symbolDiamond:FT,symbolSquare:qT,symbolStar:WT,symbolTriangle:UT,symbolWye:GT},tO=Math.PI/180,rO=function(t){var r="symbol".concat(Ig(t));return $g[r]||Mc},nO=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*tO;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},oO=function(t,r){$g["symbol".concat(Ig(t))]=r},Lg=function(t){var r=t.type,n=r===void 0?"circle":r,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,c=QT(t,YT),l=Yu(Yu({},c),{},{type:n,size:a,sizeType:s}),d=function(){var m=rO(n),b=KT().type(m).size(nO(a,s,n));return b()},f=l.className,v=l.cx,g=l.cy,y=Ag(l,!0);return v===+v&&g===+g&&a===+a?I.createElement("path",Ns({},y,{className:ze("recharts-symbols",f),transform:"translate(".concat(v,", ").concat(g,")"),d:d()})):null};Lg.registerSymbol=oO;function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},js.apply(this,arguments)}function Xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xu(Object(r),!0).forEach(function(n){nr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qg(n.key),n)}}function cO(e,t,r){return t&&sO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lO(e,t,r){return t=sn(t),uO(e,Fg()?Reflect.construct(t,r||[],sn(e).constructor):t.apply(e,r))}function uO(e,t){if(t&&(Mt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dO(e)}function dO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fg=function(){return!!e})()}function sn(e){return sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sn(e)}function fO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ds(e,t)}function Ds(e,t){return Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ds(e,t)}function nr(e,t,r){return t=qg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qg(e){var t=pO(e,"string");return Mt(t)=="symbol"?t:t+""}function pO(e,t){if(Mt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _e=32,Ic=(function(e){function t(){return iO(this,t),lO(this,t,arguments)}return fO(t,e),cO(t,[{key:"renderIcon",value:function(n){var o=this.props.inactiveColor,a=_e/2,i=_e/6,s=_e/3,c=n.inactive?o:n.color;if(n.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:_e,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
51
- A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
52
- H`).concat(_e,"M").concat(2*s,",").concat(a,`
53
- A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return I.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(_e/8,"h").concat(_e,"v").concat(_e*3/4,"h").concat(-_e,"z"),className:"recharts-legend-icon"});if(I.isValidElement(n.legendIcon)){var l=aO({},n);return delete l.legendIcon,I.cloneElement(n.legendIcon,l)}return I.createElement(Lg,{fill:c,cx:a,cy:a,size:_e,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,c=o.formatter,l=o.inactiveColor,d={x:0,y:0,width:_e,height:_e},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(g,y){var h=g.formatter||c,m=ze(nr(nr({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",g.inactive));if(g.type==="none")return null;var b=rn(g.value)?null:g.value;zr(!rn(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=g.inactive?l:g.color;return I.createElement("li",js({className:m,style:f,key:"legend-item-".concat(y)},gT(n.props,g,y)),I.createElement(CT,{width:i,height:i,viewBox:d,style:v},n.renderIcon(g)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},h?h(b,g,y):b))})}},{key:"render",value:function(){var n=this.props,o=n.payload,a=n.layout,i=n.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(I.PureComponent);nr(Ic,"displayName","Legend");nr(Ic,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ha,Zu;function mO(){if(Zu)return ha;Zu=1;var e=jn();function t(){this.__data__=new e,this.size=0}return ha=t,ha}var ga,Ju;function vO(){if(Ju)return ga;Ju=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ga=e,ga}var ya,Qu;function hO(){if(Qu)return ya;Qu=1;function e(t){return this.__data__.get(t)}return ya=e,ya}var ba,ed;function gO(){if(ed)return ba;ed=1;function e(t){return this.__data__.has(t)}return ba=e,ba}var wa,td;function yO(){if(td)return wa;td=1;var e=jn(),t=Tc(),r=Oc(),n=200;function o(a,i){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,i]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,i),this.size=s.size,this}return wa=o,wa}var xa,rd;function Bg(){if(rd)return xa;rd=1;var e=jn(),t=mO(),r=vO(),n=hO(),o=gO(),a=yO();function i(s){var c=this.__data__=new e(s);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=o,i.prototype.set=a,xa=i,xa}var _a,nd;function bO(){if(nd)return _a;nd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return _a=t,_a}var Ca,od;function wO(){if(od)return Ca;od=1;function e(t){return this.__data__.has(t)}return Ca=e,Ca}var Sa,ad;function Vg(){if(ad)return Sa;ad=1;var e=Oc(),t=bO(),r=wO();function n(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Sa=n,Sa}var Ea,id;function xO(){if(id)return Ea;id=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return Ea=e,Ea}var Ra,sd;function zg(){if(sd)return Ra;sd=1;function e(t,r){return t.has(r)}return Ra=e,Ra}var Pa,cd;function Wg(){if(cd)return Pa;cd=1;var e=Vg(),t=xO(),r=zg(),n=1,o=2;function a(i,s,c,l,d,f){var v=c&n,g=i.length,y=s.length;if(g!=y&&!(v&&y>g))return!1;var h=f.get(i),m=f.get(s);if(h&&m)return h==s&&m==i;var b=-1,x=!0,w=c&o?new e:void 0;for(f.set(i,s),f.set(s,i);++b<g;){var _=i[b],C=s[b];if(l)var E=v?l(C,_,b,s,i,f):l(_,C,b,i,s,f);if(E!==void 0){if(E)continue;x=!1;break}if(w){if(!t(s,function(S,P){if(!r(w,P)&&(_===S||d(_,S,c,l,f)))return w.push(P)})){x=!1;break}}else if(!(_===C||d(_,C,c,l,f))){x=!1;break}}return f.delete(i),f.delete(s),x}return Pa=a,Pa}var Ta,ld;function _O(){if(ld)return Ta;ld=1;var e=qe(),t=e.Uint8Array;return Ta=t,Ta}var Oa,ud;function CO(){if(ud)return Oa;ud=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,a){n[++r]=[a,o]}),n}return Oa=e,Oa}var Aa,dd;function Nc(){if(dd)return Aa;dd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return Aa=e,Aa}var Ma,fd;function SO(){if(fd)return Ma;fd=1;var e=wr(),t=_O(),r=Pc(),n=Wg(),o=CO(),a=Nc(),i=1,s=2,c="[object Boolean]",l="[object Date]",d="[object Error]",f="[object Map]",v="[object Number]",g="[object RegExp]",y="[object Set]",h="[object String]",m="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,_=w?w.valueOf:void 0;function C(E,S,P,M,B,j,U){switch(P){case x:if(E.byteLength!=S.byteLength||E.byteOffset!=S.byteOffset)return!1;E=E.buffer,S=S.buffer;case b:return!(E.byteLength!=S.byteLength||!j(new t(E),new t(S)));case c:case l:case v:return r(+E,+S);case d:return E.name==S.name&&E.message==S.message;case g:case h:return E==S+"";case f:var D=o;case y:var F=M&i;if(D||(D=a),E.size!=S.size&&!F)return!1;var V=U.get(E);if(V)return V==S;M|=s,U.set(E,S);var k=n(D(E),D(S),M,B,j,U);return U.delete(E),k;case m:if(_)return _.call(E)==_.call(S)}return!1}return Ma=C,Ma}var Ia,pd;function Ug(){if(pd)return Ia;pd=1;function e(t,r){for(var n=-1,o=r.length,a=t.length;++n<o;)t[a+n]=r[n];return t}return Ia=e,Ia}var Na,md;function EO(){if(md)return Na;md=1;var e=Ug(),t=Ae();function r(n,o,a){var i=o(n);return t(n)?i:e(i,a(n))}return Na=r,Na}var ja,vd;function RO(){if(vd)return ja;vd=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=0,i=[];++n<o;){var s=t[n];r(s,n,t)&&(i[a++]=s)}return i}return ja=e,ja}var Da,hd;function PO(){if(hd)return Da;hd=1;function e(){return[]}return Da=e,Da}var ka,gd;function TO(){if(gd)return ka;gd=1;var e=RO(),t=PO(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return n.call(i,s)}))}:t;return ka=a,ka}var $a,yd;function OO(){if(yd)return $a;yd=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return $a=e,$a}var La,bd;function AO(){if(bd)return La;bd=1;var e=ht(),t=gt(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return La=n,La}var Fa,wd;function jc(){if(wd)return Fa;wd=1;var e=AO(),t=gt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(i){return t(i)&&n.call(i,"callee")&&!o.call(i,"callee")};return Fa=a,Fa}var Xt={exports:{}},qa,xd;function MO(){if(xd)return qa;xd=1;function e(){return!1}return qa=e,qa}Xt.exports;var _d;function Hg(){return _d||(_d=1,(function(e,t){var r=qe(),n=MO(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||n;e.exports=l})(Xt,Xt.exports)),Xt.exports}var Ba,Cd;function Dc(){if(Cd)return Ba;Cd=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var a=typeof n;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return Ba=r,Ba}var Va,Sd;function kc(){if(Sd)return Va;Sd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Va=t,Va}var za,Ed;function IO(){if(Ed)return za;Ed=1;var e=ht(),t=kc(),r=gt(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",d="[object Number]",f="[object Object]",v="[object RegExp]",g="[object Set]",y="[object String]",h="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",P="[object Uint8ClampedArray]",M="[object Uint16Array]",B="[object Uint32Array]",j={};j[x]=j[w]=j[_]=j[C]=j[E]=j[S]=j[P]=j[M]=j[B]=!0,j[n]=j[o]=j[m]=j[a]=j[b]=j[i]=j[s]=j[c]=j[l]=j[d]=j[f]=j[v]=j[g]=j[y]=j[h]=!1;function U(D){return r(D)&&t(D.length)&&!!j[e(D)]}return za=U,za}var Wa,Rd;function Gg(){if(Rd)return Wa;Rd=1;function e(t){return function(r){return t(r)}}return Wa=e,Wa}var Zt={exports:{}};Zt.exports;var Pd;function NO(){return Pd||(Pd=1,(function(e,t){var r=wg(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=(function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=s})(Zt,Zt.exports)),Zt.exports}var Ua,Td;function Kg(){if(Td)return Ua;Td=1;var e=IO(),t=Gg(),r=NO(),n=r&&r.isTypedArray,o=n?t(n):e;return Ua=o,Ua}var Ha,Od;function jO(){if(Od)return Ha;Od=1;var e=OO(),t=jc(),r=Ae(),n=Hg(),o=Dc(),a=Kg(),i=Object.prototype,s=i.hasOwnProperty;function c(l,d){var f=r(l),v=!f&&t(l),g=!f&&!v&&n(l),y=!f&&!v&&!g&&a(l),h=f||v||g||y,m=h?e(l.length,String):[],b=m.length;for(var x in l)(d||s.call(l,x))&&!(h&&(x=="length"||g&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,b)))&&m.push(x);return m}return Ha=c,Ha}var Ga,Ad;function DO(){if(Ad)return Ga;Ad=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return Ga=t,Ga}var Ka,Md;function kO(){if(Md)return Ka;Md=1;function e(t,r){return function(n){return t(r(n))}}return Ka=e,Ka}var Ya,Id;function $O(){if(Id)return Ya;Id=1;var e=kO(),t=e(Object.keys,Object);return Ya=t,Ya}var Xa,Nd;function LO(){if(Nd)return Xa;Nd=1;var e=DO(),t=$O(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return Xa=o,Xa}var Za,jd;function Ln(){if(jd)return Za;jd=1;var e=Rc(),t=kc();function r(n){return n!=null&&t(n.length)&&!e(n)}return Za=r,Za}var Ja,Dd;function $c(){if(Dd)return Ja;Dd=1;var e=jO(),t=LO(),r=Ln();function n(o){return r(o)?e(o):t(o)}return Ja=n,Ja}var Qa,kd;function FO(){if(kd)return Qa;kd=1;var e=EO(),t=TO(),r=$c();function n(o){return e(o,r,t)}return Qa=n,Qa}var ei,$d;function qO(){if($d)return ei;$d=1;var e=FO(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(a,i,s,c,l,d){var f=s&t,v=e(a),g=v.length,y=e(i),h=y.length;if(g!=h&&!f)return!1;for(var m=g;m--;){var b=v[m];if(!(f?b in i:n.call(i,b)))return!1}var x=d.get(a),w=d.get(i);if(x&&w)return x==i&&w==a;var _=!0;d.set(a,i),d.set(i,a);for(var C=f;++m<g;){b=v[m];var E=a[b],S=i[b];if(c)var P=f?c(S,E,b,i,a,d):c(E,S,b,a,i,d);if(!(P===void 0?E===S||l(E,S,s,c,d):P)){_=!1;break}C||(C=b=="constructor")}if(_&&!C){var M=a.constructor,B=i.constructor;M!=B&&"constructor"in a&&"constructor"in i&&!(typeof M=="function"&&M instanceof M&&typeof B=="function"&&B instanceof B)&&(_=!1)}return d.delete(a),d.delete(i),_}return ei=o,ei}var ti,Ld;function BO(){if(Ld)return ti;Ld=1;var e=yt(),t=qe(),r=e(t,"DataView");return ti=r,ti}var ri,Fd;function VO(){if(Fd)return ri;Fd=1;var e=yt(),t=qe(),r=e(t,"Promise");return ri=r,ri}var ni,qd;function Yg(){if(qd)return ni;qd=1;var e=yt(),t=qe(),r=e(t,"Set");return ni=r,ni}var oi,Bd;function zO(){if(Bd)return oi;Bd=1;var e=yt(),t=qe(),r=e(t,"WeakMap");return oi=r,oi}var ai,Vd;function WO(){if(Vd)return ai;Vd=1;var e=BO(),t=Tc(),r=VO(),n=Yg(),o=zO(),a=ht(),i=xg(),s="[object Map]",c="[object Object]",l="[object Promise]",d="[object Set]",f="[object WeakMap]",v="[object DataView]",g=i(e),y=i(t),h=i(r),m=i(n),b=i(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=v||t&&x(new t)!=s||r&&x(r.resolve())!=l||n&&x(new n)!=d||o&&x(new o)!=f)&&(x=function(w){var _=a(w),C=_==c?w.constructor:void 0,E=C?i(C):"";if(E)switch(E){case g:return v;case y:return s;case h:return l;case m:return d;case b:return f}return _}),ai=x,ai}var ii,zd;function UO(){if(zd)return ii;zd=1;var e=Bg(),t=Wg(),r=SO(),n=qO(),o=WO(),a=Ae(),i=Hg(),s=Kg(),c=1,l="[object Arguments]",d="[object Array]",f="[object Object]",v=Object.prototype,g=v.hasOwnProperty;function y(h,m,b,x,w,_){var C=a(h),E=a(m),S=C?d:o(h),P=E?d:o(m);S=S==l?f:S,P=P==l?f:P;var M=S==f,B=P==f,j=S==P;if(j&&i(h)){if(!i(m))return!1;C=!0,M=!1}if(j&&!M)return _||(_=new e),C||s(h)?t(h,m,b,x,w,_):r(h,m,S,b,x,w,_);if(!(b&c)){var U=M&&g.call(h,"__wrapped__"),D=B&&g.call(m,"__wrapped__");if(U||D){var F=U?h.value():h,V=D?m.value():m;return _||(_=new e),w(F,V,b,x,_)}}return j?(_||(_=new e),n(h,m,b,x,w,_)):!1}return ii=y,ii}var si,Wd;function Xg(){if(Wd)return si;Wd=1;var e=UO(),t=gt();function r(n,o,a,i,s){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,a,i,r,s)}return si=r,si}var ci,Ud;function HO(){if(Ud)return ci;Ud=1;var e=Bg(),t=Xg(),r=1,n=2;function o(a,i,s,c){var l=s.length,d=l,f=!c;if(a==null)return!d;for(a=Object(a);l--;){var v=s[l];if(f&&v[2]?v[1]!==a[v[0]]:!(v[0]in a))return!1}for(;++l<d;){v=s[l];var g=v[0],y=a[g],h=v[1];if(f&&v[2]){if(y===void 0&&!(g in a))return!1}else{var m=new e;if(c)var b=c(y,h,g,a,i,m);if(!(b===void 0?t(h,y,r|n,c,m):b))return!1}}return!0}return ci=o,ci}var li,Hd;function Zg(){if(Hd)return li;Hd=1;var e=nt();function t(r){return r===r&&!e(r)}return li=t,li}var ui,Gd;function GO(){if(Gd)return ui;Gd=1;var e=Zg(),t=$c();function r(n){for(var o=t(n),a=o.length;a--;){var i=o[a],s=n[i];o[a]=[i,s,e(s)]}return o}return ui=r,ui}var di,Kd;function Jg(){if(Kd)return di;Kd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return di=e,di}var fi,Yd;function KO(){if(Yd)return fi;Yd=1;var e=HO(),t=GO(),r=Jg();function n(o){var a=t(o);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return fi=n,fi}var pi,Xd;function YO(){if(Xd)return pi;Xd=1;function e(t,r){return t!=null&&r in Object(t)}return pi=e,pi}var mi,Zd;function XO(){if(Zd)return mi;Zd=1;var e=Sg(),t=jc(),r=Ae(),n=Dc(),o=kc(),a=kn();function i(s,c,l){c=e(c,s);for(var d=-1,f=c.length,v=!1;++d<f;){var g=a(c[d]);if(!(v=s!=null&&l(s,g)))break;s=s[g]}return v||++d!=f?v:(f=s==null?0:s.length,!!f&&o(f)&&n(g,f)&&(r(s)||t(s)))}return mi=i,mi}var vi,Jd;function ZO(){if(Jd)return vi;Jd=1;var e=YO(),t=XO();function r(n,o){return n!=null&&t(n,o,e)}return vi=r,vi}var hi,Qd;function JO(){if(Qd)return hi;Qd=1;var e=Xg(),t=Eg(),r=ZO(),n=Ec(),o=Zg(),a=Jg(),i=kn(),s=1,c=2;function l(d,f){return n(d)&&o(f)?a(i(d),f):function(v){var g=t(v,d);return g===void 0&&g===f?r(v,d):e(f,g,s|c)}}return hi=l,hi}var gi,ef;function Fn(){if(ef)return gi;ef=1;function e(t){return t}return gi=e,gi}var yi,tf;function QO(){if(tf)return yi;tf=1;function e(t){return function(r){return r?.[t]}}return yi=e,yi}var bi,rf;function e0(){if(rf)return bi;rf=1;var e=Ac();function t(r){return function(n){return e(n,r)}}return bi=t,bi}var wi,nf;function t0(){if(nf)return wi;nf=1;var e=QO(),t=e0(),r=Ec(),n=kn();function o(a){return r(a)?e(n(a)):t(a)}return wi=o,wi}var xi,of;function Qg(){if(of)return xi;of=1;var e=KO(),t=JO(),r=Fn(),n=Ae(),o=t0();function a(i){return typeof i=="function"?i:i==null?r:typeof i=="object"?n(i)?t(i[0],i[1]):e(i):o(i)}return xi=a,xi}var _i,af;function r0(){if(af)return _i;af=1;function e(t,r,n,o){for(var a=t.length,i=n+(o?1:-1);o?i--:++i<a;)if(r(t[i],i,t))return i;return-1}return _i=e,_i}var Ci,sf;function n0(){if(sf)return Ci;sf=1;function e(t){return t!==t}return Ci=e,Ci}var Si,cf;function o0(){if(cf)return Si;cf=1;function e(t,r,n){for(var o=n-1,a=t.length;++o<a;)if(t[o]===r)return o;return-1}return Si=e,Si}var Ei,lf;function a0(){if(lf)return Ei;lf=1;var e=r0(),t=n0(),r=o0();function n(o,a,i){return a===a?r(o,a,i):e(o,t,i)}return Ei=n,Ei}var Ri,uf;function i0(){if(uf)return Ri;uf=1;var e=a0();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return Ri=t,Ri}var Pi,df;function s0(){if(df)return Pi;df=1;function e(t,r,n){for(var o=-1,a=t==null?0:t.length;++o<a;)if(n(r,t[o]))return!0;return!1}return Pi=e,Pi}var Ti,ff;function c0(){if(ff)return Ti;ff=1;function e(){}return Ti=e,Ti}var Oi,pf;function l0(){if(pf)return Oi;pf=1;var e=Yg(),t=c0(),r=Nc(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Oi=o,Oi}var Ai,mf;function u0(){if(mf)return Ai;mf=1;var e=Vg(),t=i0(),r=s0(),n=zg(),o=l0(),a=Nc(),i=200;function s(c,l,d){var f=-1,v=t,g=c.length,y=!0,h=[],m=h;if(d)y=!1,v=r;else if(g>=i){var b=l?null:o(c);if(b)return a(b);y=!1,v=n,m=new e}else m=l?[]:h;e:for(;++f<g;){var x=c[f],w=l?l(x):x;if(x=d||x!==0?x:0,y&&w===w){for(var _=m.length;_--;)if(m[_]===w)continue e;l&&m.push(w),h.push(x)}else v(m,w,d)||(m!==h&&m.push(w),h.push(x))}return h}return Ai=s,Ai}var Mi,vf;function d0(){if(vf)return Mi;vf=1;var e=Qg(),t=u0();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return Mi=r,Mi}var f0=d0();const hf=$e(f0);function ey(e,t,r){return t===!0?hf(e,r):rn(t)?hf(e,t):e}function It(e){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(e)}var p0=["ref"];function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(n){qn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ry(n.key),n)}}function v0(e,t,r){return t&&yf(e.prototype,t),r&&yf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h0(e,t,r){return t=cn(t),g0(e,ty()?Reflect.construct(t,r||[],cn(e).constructor):t.apply(e,r))}function g0(e,t){if(t&&(It(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y0(e)}function y0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ty=function(){return!!e})()}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cn(e)}function b0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ks(e,t)}function ks(e,t){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ks(e,t)}function qn(e,t,r){return t=ry(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ry(e){var t=w0(e,"string");return It(t)=="symbol"?t:t+""}function w0(e,t){if(It(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(It(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function x0(e,t){if(e==null)return{};var r=_0(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _0(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function C0(e){return e.value}function S0(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var r=x0(t,p0);return I.createElement(Ic,r)}var bf=1,Lc=(function(e){function t(){var r;m0(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=h0(this,t,[].concat(o)),qn(r,"lastBoundingBox",{width:-1,height:-1}),r}return b0(t,e),v0(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>bf||Math.abs(o.height-this.lastBoundingBox.height)>bf)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,n&&n(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ve({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,c=o.margin,l=o.chartWidth,d=o.chartHeight,f,v;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(i==="center"&&a==="vertical"){var g=this.getBBoxSnapshot();f={left:((l||0)-g.width)/2}}else f=i==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();v={top:((d||0)-y.height)/2}}else v=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Ve(Ve({},f),v)}},{key:"render",value:function(){var n=this,o=this.props,a=o.content,i=o.width,s=o.height,c=o.wrapperStyle,l=o.payloadUniqBy,d=o.payload,f=Ve(Ve({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return I.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(g){n.wrapperNode=g}},S0(a,Ve(Ve({},this.props),{},{payload:ey(d,l,C0)})))}}],[{key:"getWithHeight",value:function(n,o){var a=Ve(Ve({},this.defaultProps),n.props),i=a.layout;return i==="vertical"&&Re(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||o}:null}}])})(I.PureComponent);qn(Lc,"displayName","Legend");qn(Lc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ii,wf;function E0(){if(wf)return Ii;wf=1;var e=wr(),t=jc(),r=Ae(),n=e?e.isConcatSpreadable:void 0;function o(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ii=o,Ii}var Ni,xf;function R0(){if(xf)return Ni;xf=1;var e=Ug(),t=E0();function r(n,o,a,i,s){var c=-1,l=n.length;for(a||(a=t),s||(s=[]);++c<l;){var d=n[c];o>0&&a(d)?o>1?r(d,o-1,a,i,s):e(s,d):i||(s[s.length]=d)}return s}return Ni=r,Ni}var ji,_f;function P0(){if(_f)return ji;_f=1;function e(t){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),c=s.length;c--;){var l=s[t?c:++a];if(n(i[l],l,i)===!1)break}return r}}return ji=e,ji}var Di,Cf;function T0(){if(Cf)return Di;Cf=1;var e=P0(),t=e();return Di=t,Di}var ki,Sf;function O0(){if(Sf)return ki;Sf=1;var e=T0(),t=$c();function r(n,o){return n&&e(n,o,t)}return ki=r,ki}var $i,Ef;function A0(){if(Ef)return $i;Ef=1;var e=Ln();function t(r,n){return function(o,a){if(o==null)return o;if(!e(o))return r(o,a);for(var i=o.length,s=n?i:-1,c=Object(o);(n?s--:++s<i)&&a(c[s],s,c)!==!1;);return o}}return $i=t,$i}var Li,Rf;function M0(){if(Rf)return Li;Rf=1;var e=O0(),t=A0(),r=t(e);return Li=r,Li}var Fi,Pf;function I0(){if(Pf)return Fi;Pf=1;var e=M0(),t=Ln();function r(n,o){var a=-1,i=t(n)?Array(n.length):[];return e(n,function(s,c,l){i[++a]=o(s,c,l)}),i}return Fi=r,Fi}var qi,Tf;function N0(){if(Tf)return qi;Tf=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return qi=e,qi}var Bi,Of;function j0(){if(Of)return Bi;Of=1;var e=xr();function t(r,n){if(r!==n){var o=r!==void 0,a=r===null,i=r===r,s=e(r),c=n!==void 0,l=n===null,d=n===n,f=e(n);if(!l&&!f&&!s&&r>n||s&&c&&d&&!l&&!f||a&&c&&d||!o&&d||!i)return 1;if(!a&&!s&&!f&&r<n||f&&o&&i&&!a&&!s||l&&o&&i||!c&&i||!d)return-1}return 0}return Bi=t,Bi}var Vi,Af;function D0(){if(Af)return Vi;Af=1;var e=j0();function t(r,n,o){for(var a=-1,i=r.criteria,s=n.criteria,c=i.length,l=o.length;++a<c;){var d=e(i[a],s[a]);if(d){if(a>=l)return d;var f=o[a];return d*(f=="desc"?-1:1)}}return r.index-n.index}return Vi=t,Vi}var zi,Mf;function k0(){if(Mf)return zi;Mf=1;var e=_g(),t=Ac(),r=Qg(),n=I0(),o=N0(),a=Gg(),i=D0(),s=Fn(),c=Ae();function l(d,f,v){f.length?f=e(f,function(h){return c(h)?function(m){return t(m,h.length===1?h[0]:h)}:h}):f=[s];var g=-1;f=e(f,a(r));var y=n(d,function(h,m,b){var x=e(f,function(w){return w(h)});return{criteria:x,index:++g,value:h}});return o(y,function(h,m){return i(h,m,v)})}return zi=l,zi}var Wi,If;function $0(){if(If)return Wi;If=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Wi=e,Wi}var Ui,Nf;function L0(){if(Nf)return Ui;Nf=1;var e=$0(),t=Math.max;function r(n,o,a){return o=t(o===void 0?n.length-1:o,0),function(){for(var i=arguments,s=-1,c=t(i.length-o,0),l=Array(c);++s<c;)l[s]=i[o+s];s=-1;for(var d=Array(o+1);++s<o;)d[s]=i[s];return d[o]=a(l),e(n,this,d)}}return Ui=r,Ui}var Hi,jf;function F0(){if(jf)return Hi;jf=1;function e(t){return function(){return t}}return Hi=e,Hi}var Gi,Df;function q0(){if(Df)return Gi;Df=1;var e=yt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Gi=t,Gi}var Ki,kf;function B0(){if(kf)return Ki;kf=1;var e=F0(),t=q0(),r=Fn(),n=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ki=n,Ki}var Yi,$f;function V0(){if($f)return Yi;$f=1;var e=800,t=16,r=Date.now;function n(o){var a=0,i=0;return function(){var s=r(),c=t-(s-i);if(i=s,c>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Yi=n,Yi}var Xi,Lf;function z0(){if(Lf)return Xi;Lf=1;var e=B0(),t=V0(),r=t(e);return Xi=r,Xi}var Zi,Ff;function W0(){if(Ff)return Zi;Ff=1;var e=Fn(),t=L0(),r=z0();function n(o,a){return r(t(o,a,e),o+"")}return Zi=n,Zi}var Ji,qf;function U0(){if(qf)return Ji;qf=1;var e=Pc(),t=Ln(),r=Dc(),n=nt();function o(a,i,s){if(!n(s))return!1;var c=typeof i;return(c=="number"?t(s)&&r(i,s.length):c=="string"&&i in s)?e(s[i],a):!1}return Ji=o,Ji}var Qi,Bf;function H0(){if(Bf)return Qi;Bf=1;var e=R0(),t=k0(),r=W0(),n=U0(),o=r(function(a,i){if(a==null)return[];var s=i.length;return s>1&&n(a,i[0],i[1])?i=[]:s>2&&n(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return Qi=o,Qi}var G0=H0();const K0=$e(G0);function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(this,arguments)}function Y0(e,t){return Q0(e)||J0(e,t)||Z0(e,t)||X0()}function X0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z0(e,t){if(e){if(typeof e=="string")return Vf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vf(e,t)}}function Vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J0(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,o=d}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function Q0(e){if(Array.isArray(e))return e}function zf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zf(Object(r),!0).forEach(function(n){eA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eA(e,t,r){return t=tA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tA(e){var t=rA(e,"string");return or(t)=="symbol"?t:t+""}function rA(e,t){if(or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nA(e){return Array.isArray(e)&&nn(e[0])&&nn(e[1])?e.join(" ~ "):e}var oA=function(t){var r=t.separator,n=r===void 0?" : ":r,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,c=t.labelStyle,l=c===void 0?{}:c,d=t.payload,f=t.formatter,v=t.itemSorter,g=t.wrapperClassName,y=t.labelClassName,h=t.label,m=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(d&&d.length){var U={padding:0,margin:0},D=(v?K0(d,v):d).map(function(F,V){if(F.type==="none")return null;var k=es({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},s),K=F.formatter||f||nA,A=F.value,$=F.name,ee=A,T=$;if(K&&ee!=null&&T!=null){var R=K(A,$,F,V,d);if(Array.isArray(R)){var N=Y0(R,2);ee=N[0],T=N[1]}else ee=R}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:k},nn(T)?I.createElement("span",{className:"recharts-tooltip-item-name"},T):null,nn(T)?I.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,I.createElement("span",{className:"recharts-tooltip-item-value"},ee),I.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:U},D)}return null},_=es({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),C=es({margin:0},l),E=!tT(h),S=E?h:"",P=ze("recharts-default-tooltip",g),M=ze("recharts-tooltip-label",y);E&&m&&d!==void 0&&d!==null&&(S=m(h,d));var B=x?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",$s({className:P,style:_},B),I.createElement("p",{className:M,style:C},I.isValidElement(S)?S:"".concat(S)),w())};function ar(e){"@babel/helpers - typeof";return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(e)}function kr(e,t,r){return t=aA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aA(e){var t=iA(e,"string");return ar(t)=="symbol"?t:t+""}function iA(e,t){if(ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ht="recharts-tooltip-wrapper",sA={visibility:"hidden"};function cA(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ze(Ht,kr(kr(kr(kr({},"".concat(Ht,"-right"),Re(r)&&t&&Re(t.x)&&r>=t.x),"".concat(Ht,"-left"),Re(r)&&t&&Re(t.x)&&r<t.x),"".concat(Ht,"-bottom"),Re(n)&&t&&Re(t.y)&&n>=t.y),"".concat(Ht,"-top"),Re(n)&&t&&Re(t.y)&&n<t.y))}function Wf(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Re(a[n]))return a[n];var d=r[n]-s-o,f=r[n]+o;if(t[n])return i[n]?d:f;if(i[n]){var v=d,g=c[n];return v<g?Math.max(f,c[n]):Math.max(d,c[n])}var y=f+s,h=c[n]+l;return y>h?Math.max(d,c[n]):Math.max(f,c[n])}function lA(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function uA(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,d,f;return i.height>0&&i.width>0&&r?(d=Wf({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:c,viewBoxDimension:c.width}),f=Wf({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:c,viewBoxDimension:c.height}),l=lA({translateX:d,translateY:f,useTranslate3d:s})):l=sA,{cssProperties:l,cssClasses:cA({translateX:d,translateY:f,coordinate:r})}}function Nt(e){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(e)}function Uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uf(Object(r),!0).forEach(function(n){Fs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oy(n.key),n)}}function pA(e,t,r){return t&&fA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mA(e,t,r){return t=ln(t),vA(e,ny()?Reflect.construct(t,r||[],ln(e).constructor):t.apply(e,r))}function vA(e,t){if(t&&(Nt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hA(e)}function hA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ny(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ny=function(){return!!e})()}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(e)}function gA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ls(e,t)}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ls(e,t)}function Fs(e,t,r){return t=oy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oy(e){var t=yA(e,"string");return Nt(t)=="symbol"?t:t+""}function yA(e,t){if(Nt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gf=1,bA=(function(e){function t(){var r;dA(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=mA(this,t,[].concat(o)),Fs(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Fs(r,"handleKeyDown",function(i){if(i.key==="Escape"){var s,c,l,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&l!==void 0?l:0}})}}),r}return gA(t,e),pA(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Gf||Math.abs(n.height-this.state.lastBoundingBox.height)>Gf)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.children,d=o.coordinate,f=o.hasPayload,v=o.isAnimationActive,g=o.offset,y=o.position,h=o.reverseDirection,m=o.useTranslate3d,b=o.viewBox,x=o.wrapperStyle,w=uA({allowEscapeViewBox:i,coordinate:d,offsetTopLeft:g,position:y,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:b}),_=w.cssClasses,C=w.cssProperties,E=Hf(Hf({transition:v&&a?"transform ".concat(s,"ms ").concat(c):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return I.createElement("div",{tabIndex:-1,className:_,style:E,ref:function(P){n.wrapperNode=P}},l)}}])})(I.PureComponent),wA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},xA={isSsr:wA()};function jt(e){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(e)}function Kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kf(Object(r),!0).forEach(function(n){Fc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iy(n.key),n)}}function SA(e,t,r){return t&&CA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EA(e,t,r){return t=un(t),RA(e,ay()?Reflect.construct(t,r||[],un(e).constructor):t.apply(e,r))}function RA(e,t){if(t&&(jt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PA(e)}function PA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ay(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ay=function(){return!!e})()}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},un(e)}function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qs(e,t)}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},qs(e,t)}function Fc(e,t,r){return t=iy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iy(e){var t=OA(e,"string");return jt(t)=="symbol"?t:t+""}function OA(e,t){if(jt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AA(e){return e.dataKey}function MA(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(oA,t)}var qc=(function(e){function t(){return _A(this,t),EA(this,t,arguments)}return TA(t,e),SA(t,[{key:"render",value:function(){var n=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.content,d=o.coordinate,f=o.filterNull,v=o.isAnimationActive,g=o.offset,y=o.payload,h=o.payloadUniqBy,m=o.position,b=o.reverseDirection,x=o.useTranslate3d,w=o.viewBox,_=o.wrapperStyle,C=y??[];f&&C.length&&(C=ey(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),h,AA));var E=C.length>0;return I.createElement(bA,{allowEscapeViewBox:i,animationDuration:s,animationEasing:c,isAnimationActive:v,active:a,coordinate:d,hasPayload:E,offset:g,position:m,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:_},MA(l,Yf(Yf({},this.props),{},{payload:C})))}}])})(I.PureComponent);Fc(qc,"displayName","Tooltip");Fc(qc,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!xA.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var ts,Xf;function IA(){if(Xf)return ts;Xf=1;var e=qe(),t=function(){return e.Date.now()};return ts=t,ts}var rs,Zf;function NA(){if(Zf)return rs;Zf=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return rs=t,rs}var ns,Jf;function jA(){if(Jf)return ns;Jf=1;var e=NA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return ns=r,ns}var os,Qf;function DA(){if(Qf)return os;Qf=1;var e=jA(),t=nt(),r=xr(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=t(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=a.test(l);return f||i.test(l)?s(l.slice(2),f?2:8):o.test(l)?n:+l}return os=c,os}var as,ep;function kA(){if(ep)return as;ep=1;var e=nt(),t=IA(),r=DA(),n="Expected a function",o=Math.max,a=Math.min;function i(s,c,l){var d,f,v,g,y,h,m=0,b=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(l)&&(b=!!l.leading,x="maxWait"in l,v=x?o(r(l.maxWait)||0,c):v,w="trailing"in l?!!l.trailing:w);function _(D){var F=d,V=f;return d=f=void 0,m=D,g=s.apply(V,F),g}function C(D){return m=D,y=setTimeout(P,c),b?_(D):g}function E(D){var F=D-h,V=D-m,k=c-F;return x?a(k,v-V):k}function S(D){var F=D-h,V=D-m;return h===void 0||F>=c||F<0||x&&V>=v}function P(){var D=t();if(S(D))return M(D);y=setTimeout(P,E(D))}function M(D){return y=void 0,w&&d?_(D):(d=f=void 0,g)}function B(){y!==void 0&&clearTimeout(y),m=0,d=h=f=y=void 0}function j(){return y===void 0?g:M(t())}function U(){var D=t(),F=S(D);if(d=arguments,f=this,h=D,F){if(y===void 0)return C(h);if(x)return clearTimeout(y),y=setTimeout(P,c),_(h)}return y===void 0&&(y=setTimeout(P,c)),g}return U.cancel=B,U.flush=j,U}return as=i,as}var is,tp;function $A(){if(tp)return is;tp=1;var e=kA(),t=nt(),r="Expected a function";function n(o,a,i){var s=!0,c=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(s="leading"in i?!!i.leading:s,c="trailing"in i?!!i.trailing:c),e(o,a,{leading:s,maxWait:a,trailing:c})}return is=n,is}var LA=$A();const FA=$e(LA);function ir(e){"@babel/helpers - typeof";return ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(e)}function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rp(Object(r),!0).forEach(function(n){qA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qA(e,t,r){return t=BA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BA(e){var t=VA(e,"string");return ir(t)=="symbol"?t:t+""}function VA(e,t){if(ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zA(e,t){return GA(e)||HA(e,t)||UA(e,t)||WA()}function WA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UA(e,t){if(e){if(typeof e=="string")return np(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return np(e,t)}}function np(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,o=d}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function GA(e){if(Array.isArray(e))return e}var KA=I.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,o=n===void 0?{width:-1,height:-1}:n,a=e.width,i=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,l=e.minWidth,d=l===void 0?0:l,f=e.minHeight,v=e.maxHeight,g=e.children,y=e.debounce,h=y===void 0?0:y,m=e.id,b=e.className,x=e.onResize,w=e.style,_=w===void 0?{}:w,C=I.useRef(null),E=I.useRef();E.current=x,I.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var S=I.useState({containerWidth:o.width,containerHeight:o.height}),P=zA(S,2),M=P[0],B=P[1],j=I.useCallback(function(D,F){B(function(V){var k=Math.round(D),K=Math.round(F);return V.containerWidth===k&&V.containerHeight===K?V:{containerWidth:k,containerHeight:K}})},[]);I.useEffect(function(){var D=function($){var ee,T=$[0].contentRect,R=T.width,N=T.height;j(R,N),(ee=E.current)===null||ee===void 0||ee.call(E,R,N)};h>0&&(D=FA(D,h,{trailing:!0,leading:!1}));var F=new ResizeObserver(D),V=C.current.getBoundingClientRect(),k=V.width,K=V.height;return j(k,K),F.observe(C.current),function(){F.disconnect()}},[j,h]);var U=I.useMemo(function(){var D=M.containerWidth,F=M.containerHeight;if(D<0||F<0)return null;zr(jr(i)||jr(c),`The width(%s) and height(%s) are both fixed numbers,
56
- maybe you don't need to use a ResponsiveContainer.`,i,c),zr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var V=jr(i)?D:i,k=jr(c)?F:c;r&&r>0&&(V?k=V/r:k&&(V=k*r),v&&k>v&&(k=v)),zr(V>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
57
- please check the style of container, or the props width(%s) and height(%s),
58
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
59
- height and width.`,V,k,i,c,d,f,r);var K=!Array.isArray(g)&&yT(g.type).endsWith("Chart");return I.Children.map(g,function(A){return I.isValidElement(A)?I.cloneElement(A,$r({width:V,height:k},K?{style:$r({height:"100%",width:"100%",maxHeight:k,maxWidth:V},A.props.style)}:{})):A})},[r,g,c,v,f,d,M,i]);return I.createElement("div",{id:m?"".concat(m):void 0,className:ze("recharts-responsive-container",b),style:$r($r({},_),{},{width:i,height:c,minWidth:d,minHeight:f,maxHeight:v}),ref:C},U)});const YA={light:"",dark:".dark"},sy=u.createContext(null);function cy(){const e=u.useContext(sy);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function XA({id:e,className:t,children:r,config:n,...o}){const a=u.useId(),i=`chart-${e||a.replace(/:/g,"")}`;return p.jsx(sy.Provider,{value:{config:n},children:p.jsxs("div",{"data-slot":"chart","data-chart":i,className:W("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...o,children:[p.jsx(ly,{id:i,config:n}),p.jsx(KA,{children:r})]})})}const ly=({id:e,config:t})=>{const r=Object.entries(t).filter(([,n])=>n.theme||n.color);return r.length?p.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(YA).map(([n,o])=>`
60
- ${o} [data-chart=${e}] {
61
- ${r.map(([a,i])=>{const s=i.theme?.[n]||i.color;return s?` --color-${a}: ${s};`:null}).join(`
62
- `)}
63
- }
64
- `).join(`
65
- `)}}):null},ZA=qc;function JA({active:e,payload:t,className:r,indicator:n="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:d,nameKey:f,labelKey:v}){const{config:g}=cy(),y=u.useMemo(()=>{if(o||!t?.length)return null;const[m]=t,b=`${v||m?.dataKey||m?.name||"value"}`,x=Bs(g,m,b),w=!v&&typeof i=="string"?g[i]?.label||i:x?.label;return s?p.jsx("div",{className:W("font-medium",c),children:s(w,t)}):w?p.jsx("div",{className:W("font-medium",c),children:w}):null},[i,s,t,o,c,g,v]);if(!e||!t?.length)return null;const h=t.length===1&&n!=="dot";return p.jsxs("div",{className:W("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[h?null:y,p.jsx("div",{className:"grid gap-1.5",children:t.filter(m=>m.type!=="none").map((m,b)=>{const x=`${f||m.name||m.dataKey||"value"}`,w=Bs(g,m,x),_=d||m.payload.fill||m.color;return p.jsx("div",{className:W("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",n==="dot"&&"items-center"),children:l&&m?.value!==void 0&&m.name?l(m.value,m.name,m,b,m.payload):p.jsxs(p.Fragment,{children:[w?.icon?p.jsx(w.icon,{}):!a&&p.jsx("div",{className:W("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":h&&n==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),p.jsxs("div",{className:W("flex flex-1 justify-between leading-none",h?"items-end":"items-center"),children:[p.jsxs("div",{className:"grid gap-1.5",children:[h?y:null,p.jsx("span",{className:"text-muted-foreground",children:w?.label||m.name})]}),m.value&&p.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:m.value.toLocaleString()})]})]})},m.dataKey)})})]})}const QA=Lc;function eM({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:o}){const{config:a}=cy();return r?.length?p.jsx("div",{className:W("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.filter(i=>i.type!=="none").map(i=>{const s=`${o||i.dataKey||"value"}`,c=Bs(a,i,s);return p.jsxs("div",{className:W("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[c?.icon&&!t?p.jsx(c.icon,{}):p.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:i.color}}),c?.label]},i.value)})}):null}function Bs(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=r;return r in t&&typeof t[r]=="string"?o=t[r]:n&&r in n&&typeof n[r]=="string"&&(o=n[r]),o in e?e[o]:e[r]}exports.Autocomplete=OR;exports.Button=_p;exports.Card=lb;exports.CardAction=pb;exports.CardContent=mb;exports.CardDescription=fb;exports.CardFooter=vb;exports.CardHeader=ub;exports.CardTitle=db;exports.ChartContainer=XA;exports.ChartLegend=QA;exports.ChartLegendContent=eM;exports.ChartStyle=ly;exports.ChartTooltip=ZA;exports.ChartTooltipContent=JA;exports.Command=_c;exports.CommandDialog=aR;exports.CommandEmpty=Rh;exports.CommandGroup=Ph;exports.CommandInput=Sh;exports.CommandItem=Th;exports.CommandList=Eh;exports.CommandSeparator=iR;exports.CommandShortcut=sR;exports.Dialog=gh;exports.DialogClose=nR;exports.DialogContent=wh;exports.DialogDescription=Ch;exports.DialogFooter=oR;exports.DialogHeader=xh;exports.DialogOverlay=bh;exports.DialogPortal=yh;exports.DialogTitle=_h;exports.DialogTrigger=rR;exports.DropdownMenu=JS;exports.DropdownMenuCheckboxItem=oE;exports.DropdownMenuContent=tE;exports.DropdownMenuGroup=rE;exports.DropdownMenuItem=nE;exports.DropdownMenuLabel=sE;exports.DropdownMenuPortal=QS;exports.DropdownMenuRadioGroup=aE;exports.DropdownMenuRadioItem=iE;exports.DropdownMenuSeparator=cE;exports.DropdownMenuShortcut=lE;exports.DropdownMenuSub=uE;exports.DropdownMenuSubContent=fE;exports.DropdownMenuSubTrigger=dE;exports.DropdownMenuTrigger=eE;exports.Form=Nb;exports.FormControl=$b;exports.FormDescription=Lb;exports.FormField=jb;exports.FormItem=Db;exports.FormLabel=kb;exports.FormMessage=Fb;exports.Input=cb;exports.Label=Sp;exports.NavigationMenu=lx;exports.NavigationMenuContent=px;exports.NavigationMenuIndicator=vx;exports.NavigationMenuItem=dx;exports.NavigationMenuLink=mx;exports.NavigationMenuList=ux;exports.NavigationMenuTrigger=fx;exports.NavigationMenuViewport=xm;exports.Popover=qh;exports.PopoverAnchor=TR;exports.PopoverContent=Vh;exports.PopoverTrigger=Bh;exports.Select=yP;exports.SelectContent=_P;exports.SelectGroup=bP;exports.SelectItem=SP;exports.SelectLabel=CP;exports.SelectScrollDownButton=bg;exports.SelectScrollUpButton=yg;exports.SelectSeparator=EP;exports.SelectTrigger=xP;exports.SelectValue=wP;exports.Skeleton=Ow;exports.Spinner=Xp;exports.Tabs=Ew;exports.TabsContent=Tw;exports.TabsList=Rw;exports.TabsTrigger=Pw;exports.Textarea=AR;exports.buttonVariants=xp;exports.navigationMenuTriggerStyle=wm;exports.useFormField=sr;
50
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bv="DialogDescriptionWarning",Gv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tc(Bv).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},nc=zi,Uv=Bi,rc=Ui,oc=Hi,ac=Ki,Hv=Xi,Kv=Zi,sc=Qi,Yv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=Yv.reduce((e,t)=>{const n=Er(`Primitive.${t}`),r=i.forwardRef((o,a)=>{const{asChild:s,...c}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yt='[cmdk-group=""]',tr='[cmdk-group-items=""]',Xv='[cmdk-group-heading=""]',ic='[cmdk-item=""]',Jo=`${ic}:not([aria-disabled="true"])`,hr="cmdk-item-select",ot="data-value",qv=(e,t,n)=>Nv(e,t,n),cc=i.createContext(void 0),Vt=()=>i.useContext(cc),lc=i.createContext(void 0),no=()=>i.useContext(lc),uc=i.createContext(void 0),dc=i.forwardRef((e,t)=>{let n=at(()=>{var S,T;return{search:"",value:(T=(S=e.value)!=null?S:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=at(()=>new Set),o=at(()=>new Map),a=at(()=>new Map),s=at(()=>new Set),c=fc(e),{label:l,children:u,value:f,onValueChange:p,filter:g,shouldFilter:v,loop:x,disablePointerSelection:m=!1,vimBindings:h=!0,...b}=e,C=ae(),w=ae(),y=ae(),E=i.useRef(null),M=ih();Ye(()=>{if(f!==void 0){let S=f.trim();n.current.value=S,_.emit()}},[f]),Ye(()=>{M(6,Z)},[]);let _=i.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>n.current,setState:(S,T,A)=>{var j,K,R,U;if(!Object.is(n.current[S],T)){if(n.current[S]=T,S==="search")Y(),z(),M(1,B);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let J=document.getElementById(y);J?J.focus():(j=document.getElementById(C))==null||j.focus()}if(M(7,()=>{var J;n.current.selectedItemId=(J=G())==null?void 0:J.id,_.emit()}),A||M(5,Z),((K=c.current)==null?void 0:K.value)!==void 0){let J=T??"";(U=(R=c.current).onValueChange)==null||U.call(R,J);return}}_.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),N=i.useMemo(()=>({value:(S,T,A)=>{var j;T!==((j=a.current.get(S))==null?void 0:j.value)&&(a.current.set(S,{value:T,keywords:A}),n.current.filtered.items.set(S,O(T,A)),M(2,()=>{z(),_.emit()}))},item:(S,T)=>(r.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),M(3,()=>{Y(),z(),n.current.value||B(),_.emit()}),()=>{a.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let A=G();M(4,()=>{Y(),A?.getAttribute("id")===S&&B(),_.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>c.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:C,inputId:y,labelId:w,listInnerRef:E}),[]);function O(S,T){var A,j;let K=(j=(A=c.current)==null?void 0:A.filter)!=null?j:qv;return S?K(S,n.current.search,T):0}function z(){if(!n.current.search||c.current.shouldFilter===!1)return;let S=n.current.filtered.items,T=[];n.current.filtered.groups.forEach(j=>{let K=o.current.get(j),R=0;K.forEach(U=>{let J=S.get(U);R=Math.max(J,R)}),T.push([j,R])});let A=E.current;q().sort((j,K)=>{var R,U;let J=j.getAttribute("id"),ee=K.getAttribute("id");return((R=S.get(ee))!=null?R:0)-((U=S.get(J))!=null?U:0)}).forEach(j=>{let K=j.closest(tr);K?K.appendChild(j.parentElement===K?j:j.closest(`${tr} > *`)):A.appendChild(j.parentElement===A?j:j.closest(`${tr} > *`))}),T.sort((j,K)=>K[1]-j[1]).forEach(j=>{var K;let R=(K=E.current)==null?void 0:K.querySelector(`${yt}[${ot}="${encodeURIComponent(j[0])}"]`);R?.parentElement.appendChild(R)})}function B(){let S=q().find(A=>A.getAttribute("aria-disabled")!=="true"),T=S?.getAttribute(ot);_.setState("value",T||void 0)}function Y(){var S,T,A,j;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let R of r.current){let U=(T=(S=a.current.get(R))==null?void 0:S.value)!=null?T:"",J=(j=(A=a.current.get(R))==null?void 0:A.keywords)!=null?j:[],ee=O(U,J);n.current.filtered.items.set(R,ee),ee>0&&K++}for(let[R,U]of o.current)for(let J of U)if(n.current.filtered.items.get(J)>0){n.current.filtered.groups.add(R);break}n.current.filtered.count=K}function Z(){var S,T,A;let j=G();j&&(((S=j.parentElement)==null?void 0:S.firstChild)===j&&((A=(T=j.closest(yt))==null?void 0:T.querySelector(Xv))==null||A.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function G(){var S;return(S=E.current)==null?void 0:S.querySelector(`${ic}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=E.current)==null?void 0:S.querySelectorAll(Jo))||[])}function V(S){let T=q()[S];T&&_.setState("value",T.getAttribute(ot))}function X(S){var T;let A=G(),j=q(),K=j.findIndex(U=>U===A),R=j[K+S];(T=c.current)!=null&&T.loop&&(R=K+S<0?j[j.length-1]:K+S===j.length?j[0]:j[K+S]),R&&_.setState("value",R.getAttribute(ot))}function I(S){let T=G(),A=T?.closest(yt),j;for(;A&&!j;)A=S>0?ah(A,yt):sh(A,yt),j=A?.querySelector(Jo);j?_.setState("value",j.getAttribute(ot)):X(S)}let D=()=>V(q().length-1),ne=S=>{S.preventDefault(),S.metaKey?D():S.altKey?I(1):X(1)},P=S=>{S.preventDefault(),S.metaKey?V(0):S.altKey?I(-1):X(-1)};return i.createElement($e.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:S=>{var T;(T=b.onKeyDown)==null||T.call(b,S);let A=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||A))switch(S.key){case"n":case"j":{h&&S.ctrlKey&&ne(S);break}case"ArrowDown":{ne(S);break}case"p":case"k":{h&&S.ctrlKey&&P(S);break}case"ArrowUp":{P(S);break}case"Home":{S.preventDefault(),V(0);break}case"End":{S.preventDefault(),D();break}case"Enter":{S.preventDefault();let j=G();if(j){let K=new Event(hr);j.dispatchEvent(K)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:lh},l),An(e,S=>i.createElement(lc.Provider,{value:_},i.createElement(cc.Provider,{value:N},S))))}),Zv=i.forwardRef((e,t)=>{var n,r;let o=ae(),a=i.useRef(null),s=i.useContext(uc),c=Vt(),l=fc(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s?.forceMount;Ye(()=>{if(!u)return c.item(o,s?.id)},[u]);let f=pc(o,a,[e.value,e.children,a],e.keywords),p=no(),g=Fe(M=>M.value&&M.value===f.current),v=Fe(M=>u||c.filter()===!1?!0:M.search?M.filtered.items.get(o)>0:!0);i.useEffect(()=>{let M=a.current;if(!(!M||e.disabled))return M.addEventListener(hr,x),()=>M.removeEventListener(hr,x)},[v,e.onSelect,e.disabled]);function x(){var M,_;m(),(_=(M=l.current).onSelect)==null||_.call(M,f.current)}function m(){p.setState("value",f.current,!0)}if(!v)return null;let{disabled:h,value:b,onSelect:C,forceMount:w,keywords:y,...E}=e;return i.createElement($e.div,{ref:le(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!g,"data-disabled":!!h,"data-selected":!!g,onPointerMove:h||c.getDisablePointerSelection()?void 0:m,onClick:h?void 0:x},e.children)}),Jv=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=ae(),c=i.useRef(null),l=i.useRef(null),u=ae(),f=Vt(),p=Fe(v=>o||f.filter()===!1?!0:v.search?v.filtered.groups.has(s):!0);Ye(()=>f.group(s),[]),pc(s,c,[e.value,e.heading,l]);let g=i.useMemo(()=>({id:s,forceMount:o}),[o]);return i.createElement($e.div,{ref:le(c,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),An(e,v=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(uc.Provider,{value:g},v))))}),Qv=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=Fe(s=>!s.search);return!n&&!a?null:i.createElement($e.div,{ref:le(o,t),...r,"cmdk-separator":"",role:"separator"})}),eh=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=no(),s=Fe(u=>u.search),c=Fe(u=>u.selectedItemId),l=Vt();return i.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),i.createElement($e.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),n?.(u.target.value)}})}),th=i.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=i.useRef(null),s=i.useRef(null),c=Fe(u=>u.selectedItemId),l=Vt();return i.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let v=u.offsetHeight;f.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),i.createElement($e.div,{ref:le(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:l.listId},An(e,u=>i.createElement("div",{ref:le(s,l.listInnerRef),"cmdk-list-sizer":""},u)))}),nh=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...c}=e;return i.createElement(nc,{open:n,onOpenChange:r},i.createElement(rc,{container:s},i.createElement(oc,{"cmdk-overlay":"",className:o}),i.createElement(ac,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(dc,{ref:t,...c}))))}),rh=i.forwardRef((e,t)=>Fe(n=>n.filtered.count===0)?i.createElement($e.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),oh=i.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return i.createElement($e.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},An(e,s=>i.createElement("div",{"aria-hidden":!0},s)))}),Qe=Object.assign(dc,{List:th,Item:Zv,Input:eh,Group:Jv,Separator:Qv,Dialog:nh,Empty:rh,Loading:oh});function ah(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function sh(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function fc(e){let t=i.useRef(e);return Ye(()=>{t.current=e}),t}var Ye=typeof window>"u"?i.useEffect:i.useLayoutEffect;function at(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=no(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function pc(e,t,n,r=[]){let o=i.useRef(),a=Vt();return Ye(()=>{var s;let c=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,c,l),(s=t.current)==null||s.setAttribute(ot,c),o.current=c}),o}var ih=()=>{let[e,t]=i.useState(),n=at(()=>new Map);return Ye(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function ch(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function An({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(ch(t),{ref:t.ref},n(t.props.children)):n(t)}var lh={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function mc({...e}){return d.jsx(nc,{"data-slot":"dialog",...e})}function uh({...e}){return d.jsx(Uv,{"data-slot":"dialog-trigger",...e})}function gc({...e}){return d.jsx(rc,{"data-slot":"dialog-portal",...e})}function dh({...e}){return d.jsx(sc,{"data-slot":"dialog-close",...e})}function vc({className:e,...t}){return d.jsx(oc,{"data-slot":"dialog-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function hc({className:e,children:t,showCloseButton:n=!0,...r}){return d.jsxs(gc,{"data-slot":"dialog-portal",children:[d.jsx(vc,{}),d.jsxs(ac,{"data-slot":"dialog-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...r,children:[t,n&&d.jsxs(sc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(ge.XIcon,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function xc({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:$("flex flex-col gap-2 text-center sm:text-left",e),...t})}function fh({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:$("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function bc({className:e,...t}){return d.jsx(Hv,{"data-slot":"dialog-title",className:$("text-lg leading-none font-semibold",e),...t})}function wc({className:e,...t}){return d.jsx(Kv,{"data-slot":"dialog-description",className:$("text-muted-foreground text-sm",e),...t})}function ro({className:e,...t}){return d.jsx(Qe,{"data-slot":"command",className:$("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function ph({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...a}){return d.jsxs(mc,{...a,children:[d.jsxs(xc,{className:"sr-only",children:[d.jsx(bc,{children:e}),d.jsx(wc,{children:t})]}),d.jsx(hc,{className:$("overflow-hidden p-0",r),showCloseButton:o,children:d.jsx(ro,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function yc({className:e,...t}){return d.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[d.jsx(ge.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),d.jsx(Qe.Input,{"data-slot":"command-input",className:$("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Cc({className:e,...t}){return d.jsx(Qe.List,{"data-slot":"command-list",className:$("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Sc({...e}){return d.jsx(Qe.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ec({className:e,...t}){return d.jsx(Qe.Group,{"data-slot":"command-group",className:$("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function mh({className:e,...t}){return d.jsx(Qe.Separator,{"data-slot":"command-separator",className:$("bg-border -mx-1 h-px",e),...t})}function Rc({className:e,...t}){return d.jsx(Qe.Item,{"data-slot":"command-item",className:$("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function gh({className:e,...t}){return d.jsx("span",{"data-slot":"command-shortcut",className:$("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function vh(e){const t=hh(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(bh);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function hh(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=yh(o),c=wh(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xh=Symbol("radix.slottable");function bh(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xh}function wh(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function yh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kn="Popover",[Pc]=Me(kn,[vt]),zt=vt(),[Ch,Ve]=Pc(kn),_c=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,c=zt(t),l=i.useRef(null),[u,f]=i.useState(!1),[p,g]=Pe({prop:r,defaultProp:o??!1,onChange:a,caller:kn});return d.jsx(Rn,{...c,children:d.jsx(Ch,{scope:t,contentId:ae(),triggerRef:l,open:p,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:s,children:n})})};_c.displayName=kn;var Mc="PopoverAnchor",Nc=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ve(Mc,n),a=zt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(s(),()=>c()),[s,c]),d.jsx(Pn,{...a,...r,ref:t})});Nc.displayName=Mc;var Ic="PopoverTrigger",Tc=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ve(Ic,n),a=zt(n),s=te(t,o.triggerRef),c=d.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jc(o.open),...r,ref:s,onClick:k(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:d.jsx(Pn,{asChild:!0,...a,children:c})});Tc.displayName=Ic;var oo="PopoverPortal",[Sh,Eh]=Pc(oo,{forceMount:void 0}),Ac=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Ve(oo,t);return d.jsx(Sh,{scope:t,forceMount:n,children:d.jsx(de,{present:n||a.open,children:d.jsx(Dt,{asChild:!0,container:o,children:r})})})};Ac.displayName=oo;var ut="PopoverContent",kc=i.forwardRef((e,t)=>{const n=Eh(ut,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Ve(ut,e.__scopePopover);return d.jsx(de,{present:r||a.open,children:a.modal?d.jsx(Ph,{...o,ref:t}):d.jsx(_h,{...o,ref:t})})});kc.displayName=ut;var Rh=vh("PopoverContent.RemoveScroll"),Ph=i.forwardRef((e,t)=>{const n=Ve(ut,e.__scopePopover),r=i.useRef(null),o=te(t,r),a=i.useRef(!1);return i.useEffect(()=>{const s=r.current;if(s)return _n(s)},[]),d.jsx(jt,{as:Rh,allowPinchZoom:!0,children:d.jsx(Oc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,s=>{s.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:k(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),_h=i.forwardRef((e,t)=>{const n=Ve(ut,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return d.jsx(Oc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Oc=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...p}=e,g=Ve(ut,n),v=zt(n);return wn(),d.jsx(kt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Br,{"data-state":jc(g.open),role:"dialog",id:g.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Dc="PopoverClose",Mh=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ve(Dc,n);return d.jsx(W.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});Mh.displayName=Dc;var Nh="PopoverArrow",Ih=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=zt(n);return d.jsx(Gr,{...o,...r,ref:t})});Ih.displayName=Nh;function jc(e){return e?"open":"closed"}var Th=_c,Ah=Nc,kh=Tc,Oh=Ac,Dh=kc;function Fc({...e}){return d.jsx(Th,{"data-slot":"popover",...e})}function Lc({...e}){return d.jsx(kh,{"data-slot":"popover-trigger",...e})}function $c({className:e,align:t="center",sideOffset:n=4,...r}){return d.jsx(Oh,{children:d.jsx(Dh,{"data-slot":"popover-content",align:t,sideOffset:n,className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}function jh({...e}){return d.jsx(Ah,{"data-slot":"popover-anchor",...e})}const Fh=e=>{const[t,n]=H.useState(""),[r,o]=H.useState(!1),a=H.useRef(e.onFilterChange),[s,c]=H.useState(e.value&&e.items?.find(u=>u.value===e.value)?.label||""),l=u=>{n(u)};return H.useEffect(()=>{a.current=e.onFilterChange},[e.onFilterChange]),H.useEffect(()=>{if(!a.current)return;const u=setTimeout(()=>{console.log("Filtering with value:",t),a.current(t)},300);return()=>{clearTimeout(u)}},[t]),H.useEffect(()=>{if(!e.items&&!e.isLoading){c("");return}else if(!e.items)return;const u=e.items.find(f=>f.value===e.value);u&&c(u.label)},[e.value,e.items,e.isLoading]),d.jsxs(Fc,{open:r,onOpenChange:o,children:[d.jsx(Lc,{asChild:!0,children:d.jsxs(ba,{variant:"outline",className:"w-full justify-between",children:[!e.value&&d.jsx("div",{className:"text-muted-foreground",children:e.placeholder}),e.value&&d.jsx("div",{className:"truncate",children:s||e.value}),e.isLoading&&d.jsx(Ka,{className:"ml-2 h-4 w-4 shrink-0"}),!e.isLoading&&d.jsx(ge.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0"})]})}),d.jsx($c,{className:"w-[--radix-popover-trigger-width] p-0",children:d.jsxs(ro,{shouldFilter:!e.onFilterChange,children:[d.jsx(yc,{value:t,placeholder:e.filterPlaceholder||"Type to filter...",onValueChange:l}),d.jsxs(Cc,{children:[d.jsx(Sc,{className:"p-2",children:e.emptyMessage||"No results found."}),d.jsx(Ec,{children:e.items?.map(u=>d.jsxs(Rc,{value:u.value,onSelect:f=>{e.onValueChange?.(f),o(!1)},children:[u.label,d.jsx(ge.CheckIcon,{className:$("ml-auto size-4",e.value===u.value&&"opacity-100",e.value!==u.value&&"opacity-0")})]},u.value))})]})]})})]})};function Lh({className:e,...t}){return d.jsx("textarea",{"data-slot":"textarea",className:$("border-input placeholder: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 flex field-sizing-content min-h-16 w-full resize-y rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function Qo(e,[t,n]){return Math.min(n,Math.max(t,e))}function $h(e){const t=Vh(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(Wh);if(l){const u=l.props.children,f=c.map(p=>p===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Vh(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=Gh(o),c=Bh(a,o.props);return o.type!==i.Fragment&&(c.ref=r?le(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zh=Symbol("radix.slottable");function Wh(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zh}function Bh(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Gh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uh=[" ","Enter","ArrowUp","ArrowDown"],Hh=[" ","Enter"],Xe="Select",[On,Dn,Kh]=It(Xe),[ht]=Me(Xe,[Kh,vt]),jn=vt(),[Yh,ze]=ht(Xe),[Xh,qh]=ht(Xe),Vc=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:u,name:f,autoComplete:p,disabled:g,required:v,form:x}=e,m=jn(t),[h,b]=i.useState(null),[C,w]=i.useState(null),[y,E]=i.useState(!1),M=Tt(u),[_,N]=Pe({prop:r,defaultProp:o??!1,onChange:a,caller:Xe}),[O,z]=Pe({prop:s,defaultProp:c,onChange:l,caller:Xe}),B=i.useRef(null),Y=h?x||!!h.closest("form"):!0,[Z,G]=i.useState(new Set),q=Array.from(Z).map(V=>V.props.value).join(";");return d.jsx(Rn,{...m,children:d.jsxs(Yh,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:y,onValueNodeHasChildrenChange:E,contentId:ae(),value:O,onValueChange:z,open:_,onOpenChange:N,dir:M,triggerPointerDownPosRef:B,disabled:g,children:[d.jsx(On.Provider,{scope:t,children:d.jsx(Xh,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(V=>{G(X=>new Set(X).add(V))},[]),onNativeOptionRemove:i.useCallback(V=>{G(X=>{const I=new Set(X);return I.delete(V),I})},[]),children:n})}),Y?d.jsxs(dl,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:O,onChange:V=>z(V.target.value),disabled:g,form:x,children:[O===void 0?d.jsx("option",{value:""}):null,Array.from(Z)]},q):null]})})};Vc.displayName=Xe;var zc="SelectTrigger",Wc=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=jn(n),s=ze(zc,n),c=s.disabled||r,l=te(t,s.onTriggerChange),u=Dn(n),f=i.useRef("touch"),[p,g,v]=pl(m=>{const h=u().filter(w=>!w.disabled),b=h.find(w=>w.value===s.value),C=ml(h,m,b);C!==void 0&&s.onValueChange(C.value)}),x=m=>{c||(s.onOpenChange(!0),v()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return d.jsx(Pn,{asChild:!0,...a,children:d.jsx(W.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":fl(s.value)?"":void 0,...o,ref:l,onClick:k(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&x(m)}),onPointerDown:k(o.onPointerDown,m=>{f.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:k(o.onKeyDown,m=>{const h=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(h&&m.key===" ")&&Uh.includes(m.key)&&(x(),m.preventDefault())})})})});Wc.displayName=zc;var Bc="SelectValue",Gc=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...c}=e,l=ze(Bc,n),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,p=te(t,l.onValueNodeChange);return ie(()=>{u(f)},[u,f]),d.jsx(W.span,{...c,ref:p,style:{pointerEvents:"none"},children:fl(l.value)?d.jsx(d.Fragment,{children:s}):a})});Gc.displayName=Bc;var Zh="SelectIcon",Uc=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(W.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Uc.displayName=Zh;var Jh="SelectPortal",Hc=e=>d.jsx(Dt,{asChild:!0,...e});Hc.displayName=Jh;var qe="SelectContent",Kc=i.forwardRef((e,t)=>{const n=ze(qe,e.__scopeSelect),[r,o]=i.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?vn.createPortal(d.jsx(Yc,{scope:e.__scopeSelect,children:d.jsx(On.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(Xc,{...e,ref:t})});Kc.displayName=qe;var be=10,[Yc,We]=ht(qe),Qh="SelectContentImpl",ex=$h("SelectContent.RemoveScroll"),Xc=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:v,sticky:x,hideWhenDetached:m,avoidCollisions:h,...b}=e,C=ze(qe,n),[w,y]=i.useState(null),[E,M]=i.useState(null),_=te(t,R=>y(R)),[N,O]=i.useState(null),[z,B]=i.useState(null),Y=Dn(n),[Z,G]=i.useState(!1),q=i.useRef(!1);i.useEffect(()=>{if(w)return _n(w)},[w]),wn();const V=i.useCallback(R=>{const[U,...J]=Y().map(oe=>oe.ref.current),[ee]=J.slice(-1),re=document.activeElement;for(const oe of R)if(oe===re||(oe?.scrollIntoView({block:"nearest"}),oe===U&&E&&(E.scrollTop=0),oe===ee&&E&&(E.scrollTop=E.scrollHeight),oe?.focus(),document.activeElement!==re))return},[Y,E]),X=i.useCallback(()=>V([N,w]),[V,N,w]);i.useEffect(()=>{Z&&X()},[Z,X]);const{onOpenChange:I,triggerPointerDownPosRef:D}=C;i.useEffect(()=>{if(w){let R={x:0,y:0};const U=ee=>{R={x:Math.abs(Math.round(ee.pageX)-(D.current?.x??0)),y:Math.abs(Math.round(ee.pageY)-(D.current?.y??0))}},J=ee=>{R.x<=10&&R.y<=10?ee.preventDefault():w.contains(ee.target)||I(!1),document.removeEventListener("pointermove",U),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",J,{capture:!0})}}},[w,I,D]),i.useEffect(()=>{const R=()=>I(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[I]);const[ne,P]=pl(R=>{const U=Y().filter(re=>!re.disabled),J=U.find(re=>re.ref.current===document.activeElement),ee=ml(U,R,J);ee&&setTimeout(()=>ee.ref.current.focus())}),S=i.useCallback((R,U,J)=>{const ee=!q.current&&!J;(C.value!==void 0&&C.value===U||ee)&&(O(R),ee&&(q.current=!0))},[C.value]),T=i.useCallback(()=>w?.focus(),[w]),A=i.useCallback((R,U,J)=>{const ee=!q.current&&!J;(C.value!==void 0&&C.value===U||ee)&&B(R)},[C.value]),j=r==="popper"?xr:qc,K=j===xr?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:v,sticky:x,hideWhenDetached:m,avoidCollisions:h}:{};return d.jsx(Yc,{scope:n,content:w,viewport:E,onViewportChange:M,itemRefCallback:S,selectedItem:N,onItemLeave:T,itemTextRefCallback:A,focusSelectedItem:X,selectedItemText:z,position:r,isPositioned:Z,searchRef:ne,children:d.jsx(jt,{as:ex,allowPinchZoom:!0,children:d.jsx(kt,{asChild:!0,trapped:C.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:k(o,R=>{C.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:d.jsx(j,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:R=>R.preventDefault(),...b,...K,onPlaced:()=>G(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:k(b.onKeyDown,R=>{const U=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!U&&R.key.length===1&&P(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let ee=Y().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(R.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const re=R.target,oe=ee.indexOf(re);ee=ee.slice(oe+1)}setTimeout(()=>V(ee)),R.preventDefault()}})})})})})})});Xc.displayName=Qh;var tx="SelectItemAlignedPosition",qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=ze(qe,n),s=We(qe,n),[c,l]=i.useState(null),[u,f]=i.useState(null),p=te(t,_=>f(_)),g=Dn(n),v=i.useRef(!1),x=i.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:b,focusSelectedItem:C}=s,w=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&m&&h&&b){const _=a.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),O=a.valueNode.getBoundingClientRect(),z=b.getBoundingClientRect();if(a.dir!=="rtl"){const re=z.left-N.left,oe=O.left-re,ve=_.left-oe,Be=_.width+ve,Fn=Math.max(Be,N.width),Ln=window.innerWidth-be,$n=Qo(oe,[be,Math.max(be,Ln-Fn)]);c.style.minWidth=Be+"px",c.style.left=$n+"px"}else{const re=N.right-z.right,oe=window.innerWidth-O.right-re,ve=window.innerWidth-_.right-oe,Be=_.width+ve,Fn=Math.max(Be,N.width),Ln=window.innerWidth-be,$n=Qo(oe,[be,Math.max(be,Ln-Fn)]);c.style.minWidth=Be+"px",c.style.right=$n+"px"}const B=g(),Y=window.innerHeight-be*2,Z=m.scrollHeight,G=window.getComputedStyle(u),q=parseInt(G.borderTopWidth,10),V=parseInt(G.paddingTop,10),X=parseInt(G.borderBottomWidth,10),I=parseInt(G.paddingBottom,10),D=q+V+Z+I+X,ne=Math.min(h.offsetHeight*5,D),P=window.getComputedStyle(m),S=parseInt(P.paddingTop,10),T=parseInt(P.paddingBottom,10),A=_.top+_.height/2-be,j=Y-A,K=h.offsetHeight/2,R=h.offsetTop+K,U=q+V+R,J=D-U;if(U<=A){const re=B.length>0&&h===B[B.length-1].ref.current;c.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,ve=Math.max(j,K+(re?T:0)+oe+X),Be=U+ve;c.style.height=Be+"px"}else{const re=B.length>0&&h===B[0].ref.current;c.style.top="0px";const ve=Math.max(A,q+m.offsetTop+(re?S:0)+K)+J;c.style.height=ve+"px",m.scrollTop=U-A+m.offsetTop}c.style.margin=`${be}px 0`,c.style.minHeight=ne+"px",c.style.maxHeight=Y+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[g,a.trigger,a.valueNode,c,u,m,h,b,a.dir,r]);ie(()=>w(),[w]);const[y,E]=i.useState();ie(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const M=i.useCallback(_=>{_&&x.current===!0&&(w(),C?.(),x.current=!1)},[w,C]);return d.jsx(rx,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:y},children:d.jsx(W.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});qc.displayName=tx;var nx="SelectPopperPosition",xr=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...a}=e,s=jn(n);return d.jsx(Br,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xr.displayName=nx;var[rx,ao]=ht(qe,{}),br="SelectViewport",Zc=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=We(br,n),s=ao(br,n),c=te(t,a.onViewportChange),l=i.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(On.Slot,{scope:n,children:d.jsx(W.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:k(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g?.current&&p){const v=Math.abs(l.current-f.scrollTop);if(v>0){const x=window.innerHeight-be*2,m=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),b=Math.max(m,h);if(b<x){const C=b+v,w=Math.min(x,C),y=C-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=y>0?y:0,p.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});Zc.displayName=br;var Jc="SelectGroup",[ox,ax]=ht(Jc),Qc=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ae();return d.jsx(ox,{scope:n,id:o,children:d.jsx(W.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Qc.displayName=Jc;var el="SelectLabel",tl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ax(el,n);return d.jsx(W.div,{id:o.id,...r,ref:t})});tl.displayName=el;var gn="SelectItem",[sx,nl]=ht(gn),rl=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,c=ze(gn,n),l=We(gn,n),u=c.value===r,[f,p]=i.useState(a??""),[g,v]=i.useState(!1),x=te(t,C=>l.itemRefCallback?.(C,r,o)),m=ae(),h=i.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(sx,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(C=>{p(w=>w||(C?.textContent??"").trim())},[]),children:d.jsx(On.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:d.jsx(W.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:k(s.onFocus,()=>v(!0)),onBlur:k(s.onBlur,()=>v(!1)),onClick:k(s.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:k(s.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:k(s.onPointerDown,C=>{h.current=C.pointerType}),onPointerMove:k(s.onPointerMove,C=>{h.current=C.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:k(s.onPointerLeave,C=>{C.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:k(s.onKeyDown,C=>{l.searchRef?.current!==""&&C.key===" "||(Hh.includes(C.key)&&b(),C.key===" "&&C.preventDefault())})})})})});rl.displayName=gn;var Et="SelectItemText",ol=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=ze(Et,n),c=We(Et,n),l=nl(Et,n),u=qh(Et,n),[f,p]=i.useState(null),g=te(t,b=>p(b),l.onItemTextChange,b=>c.itemTextRefCallback?.(b,l.value,l.disabled)),v=f?.textContent,x=i.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=u;return ie(()=>(m(x),()=>h(x)),[m,h,x]),d.jsxs(d.Fragment,{children:[d.jsx(W.span,{id:l.textId,...a,ref:g}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?vn.createPortal(a.children,s.valueNode):null]})});ol.displayName=Et;var al="SelectItemIndicator",sl=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return nl(al,n).isSelected?d.jsx(W.span,{"aria-hidden":!0,...r,ref:t}):null});sl.displayName=al;var wr="SelectScrollUpButton",il=i.forwardRef((e,t)=>{const n=We(wr,e.__scopeSelect),r=ao(wr,e.__scopeSelect),[o,a]=i.useState(!1),s=te(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?d.jsx(ll,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});il.displayName=wr;var yr="SelectScrollDownButton",cl=i.forwardRef((e,t)=>{const n=We(yr,e.__scopeSelect),r=ao(yr,e.__scopeSelect),[o,a]=i.useState(!1),s=te(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;a(f)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?d.jsx(ll,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});cl.displayName=yr;var ll=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=We("SelectScrollButton",n),s=i.useRef(null),c=Dn(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),ie(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),d.jsx(W.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:k(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:k(o.onPointerMove,()=>{a.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:k(o.onPointerLeave,()=>{l()})})}),ix="SelectSeparator",ul=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(W.div,{"aria-hidden":!0,...r,ref:t})});ul.displayName=ix;var Cr="SelectArrow",cx=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=jn(n),a=ze(Cr,n),s=We(Cr,n);return a.open&&s.position==="popper"?d.jsx(Gr,{...o,...r,ref:t}):null});cx.displayName=Cr;var lx="SelectBubbleInput",dl=i.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=i.useRef(null),a=te(r,o),s=qa(t);return i.useEffect(()=>{const c=o.current;if(!c)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(p)}},[s,t]),d.jsx(W.select,{...n,style:{...Za,...n.style},ref:a,defaultValue:t})});dl.displayName=lx;function fl(e){return e===""||e===void 0}function pl(e){const t=ce(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(s=>{const c=n.current+s;t(c),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ml(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=ux(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function ux(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var dx=Vc,fx=Wc,px=Gc,mx=Uc,gx=Hc,vx=Kc,hx=Zc,xx=Qc,bx=tl,wx=rl,yx=ol,Cx=sl,Sx=il,Ex=cl,Rx=ul;function Px({...e}){return d.jsx(dx,{"data-slot":"select",...e})}function _x({...e}){return d.jsx(xx,{"data-slot":"select-group",...e})}function Mx({...e}){return d.jsx(px,{"data-slot":"select-value",...e})}function Nx({className:e,size:t="default",children:n,...r}){return d.jsxs(fx,{"data-slot":"select-trigger","data-size":t,className:$("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,d.jsx(mx,{asChild:!0,children:d.jsx(ge.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function Ix({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return d.jsx(gx,{children:d.jsxs(vx,{"data-slot":"select-content",className:$("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:[d.jsx(gl,{}),d.jsx(hx,{className:$("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(vl,{})]})})}function Tx({className:e,...t}){return d.jsx(bx,{"data-slot":"select-label",className:$("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Ax({className:e,children:t,...n}){return d.jsxs(wx,{"data-slot":"select-item",className:$("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[d.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(Cx,{children:d.jsx(ge.CheckIcon,{className:"size-4"})})}),d.jsx(yx,{children:t})]})}function kx({className:e,...t}){return d.jsx(Rx,{"data-slot":"select-separator",className:$("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function gl({className:e,...t}){return d.jsx(Sx,{"data-slot":"select-scroll-up-button",className:$("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(ge.ChevronUpIcon,{className:"size-4"})})}function vl({className:e,...t}){return d.jsx(Ex,{"data-slot":"select-scroll-down-button",className:$("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(ge.ChevronDownIcon,{className:"size-4"})})}exports.Autocomplete=Fh;exports.Button=ba;exports.Card=vu;exports.CardAction=wu;exports.CardContent=yu;exports.CardDescription=bu;exports.CardFooter=Cu;exports.CardHeader=hu;exports.CardTitle=xu;exports.Command=ro;exports.CommandDialog=ph;exports.CommandEmpty=Sc;exports.CommandGroup=Ec;exports.CommandInput=yc;exports.CommandItem=Rc;exports.CommandList=Cc;exports.CommandSeparator=mh;exports.CommandShortcut=gh;exports.Dialog=mc;exports.DialogClose=dh;exports.DialogContent=hc;exports.DialogDescription=wc;exports.DialogFooter=fh;exports.DialogHeader=xc;exports.DialogOverlay=vc;exports.DialogPortal=gc;exports.DialogTitle=bc;exports.DialogTrigger=uh;exports.DropdownMenu=sv;exports.DropdownMenuCheckboxItem=fv;exports.DropdownMenuContent=lv;exports.DropdownMenuGroup=uv;exports.DropdownMenuItem=dv;exports.DropdownMenuLabel=gv;exports.DropdownMenuPortal=iv;exports.DropdownMenuRadioGroup=pv;exports.DropdownMenuRadioItem=mv;exports.DropdownMenuSeparator=vv;exports.DropdownMenuShortcut=hv;exports.DropdownMenuSub=xv;exports.DropdownMenuSubContent=wv;exports.DropdownMenuSubTrigger=bv;exports.DropdownMenuTrigger=cv;exports.Form=Vu;exports.FormControl=Gu;exports.FormDescription=Uu;exports.FormField=zu;exports.FormItem=Wu;exports.FormLabel=Bu;exports.FormMessage=Hu;exports.Input=gu;exports.Label=ya;exports.NavigationMenu=hf;exports.NavigationMenuContent=yf;exports.NavigationMenuIndicator=Sf;exports.NavigationMenuItem=bf;exports.NavigationMenuLink=Cf;exports.NavigationMenuList=xf;exports.NavigationMenuTrigger=wf;exports.NavigationMenuViewport=xs;exports.Popover=Fc;exports.PopoverAnchor=jh;exports.PopoverContent=$c;exports.PopoverTrigger=Lc;exports.Select=Px;exports.SelectContent=Ix;exports.SelectGroup=_x;exports.SelectItem=Ax;exports.SelectLabel=Tx;exports.SelectScrollDownButton=vl;exports.SelectScrollUpButton=gl;exports.SelectSeparator=kx;exports.SelectTrigger=Nx;exports.SelectValue=Mx;exports.Skeleton=jd;exports.Spinner=Ka;exports.Tabs=Ad;exports.TabsContent=Dd;exports.TabsList=kd;exports.TabsTrigger=Od;exports.Textarea=Lh;exports.buttonVariants=xa;exports.navigationMenuTriggerStyle=hs;exports.useFormField=Nt;
66
51
  //# sourceMappingURL=index.cjs.js.map