ui-arreya-components 0.0.12 → 0.0.13

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/ui.umd.js ADDED
@@ -0,0 +1,237 @@
1
+ (function(T,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],E):(T=typeof globalThis<"u"?globalThis:T||self,E(T.ui={},T.React,T.ReactDOM))})(this,function(T,E,qo){"use strict";function Zp(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 d=Zp(E),Dr=Zp(qo);var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vo={exports:{}},kr={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Jp;function $N(){if(Jp)return kr;Jp=1;var e=E,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var p,u={},m=null,b=null;c!==void 0&&(m=""+c),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(b=l.ref);for(p in l)r.call(l,p)&&!a.hasOwnProperty(p)&&(u[p]=l[p]);if(s&&s.defaultProps)for(p in l=s.defaultProps,l)u[p]===void 0&&(u[p]=l[p]);return{$$typeof:t,type:s,key:m,ref:b,props:u,_owner:o.current}}return kr.Fragment=n,kr.jsx=i,kr.jsxs=i,kr}var $r={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Qp;function LN(){return Qp||(Qp=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function v(N){if(N===null||typeof N!="object")return null;var X=g&&N[g]||N[h];return typeof X=="function"?X:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(N){{for(var X=arguments.length,le=new Array(X>1?X-1:0),ge=1;ge<X;ge++)le[ge-1]=arguments[ge];x("error",N,le)}}function x(N,X,le){{var ge=y.ReactDebugCurrentFrame,Oe=ge.getStackAddendum();Oe!==""&&(X+="%s",le=le.concat([Oe]));var ke=le.map(function(Re){return String(Re)});ke.unshift("Warning: "+X),Function.prototype.apply.call(console[N],console,ke)}}var S=!1,_=!1,P=!1,C=!1,M=!1,R;R=Symbol.for("react.module.reference");function $(N){return!!(typeof N=="string"||typeof N=="function"||N===r||N===a||M||N===o||N===c||N===p||C||N===b||S||_||P||typeof N=="object"&&N!==null&&(N.$$typeof===m||N.$$typeof===u||N.$$typeof===i||N.$$typeof===s||N.$$typeof===l||N.$$typeof===R||N.getModuleId!==void 0))}function D(N,X,le){var ge=N.displayName;if(ge)return ge;var Oe=X.displayName||X.name||"";return Oe!==""?le+"("+Oe+")":le}function F(N){return N.displayName||"Context"}function A(N){if(N==null)return null;if(typeof N.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof N=="function")return N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case p:return"SuspenseList"}if(typeof N=="object")switch(N.$$typeof){case s:var X=N;return F(X)+".Consumer";case i:var le=N;return F(le._context)+".Provider";case l:return D(N,N.render,"ForwardRef");case u:var ge=N.displayName||null;return ge!==null?ge:A(N.type)||"Memo";case m:{var Oe=N,ke=Oe._payload,Re=Oe._init;try{return A(Re(ke))}catch{return null}}}return null}var k=Object.assign,L=0,I,U,V,q,ae,J,ne;function z(){}z.__reactDisabledLog=!0;function W(){{if(L===0){I=console.log,U=console.info,V=console.warn,q=console.error,ae=console.group,J=console.groupCollapsed,ne=console.groupEnd;var N={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}L++}}function ee(){{if(L--,L===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},N,{value:I}),info:k({},N,{value:U}),warn:k({},N,{value:V}),error:k({},N,{value:q}),group:k({},N,{value:ae}),groupCollapsed:k({},N,{value:J}),groupEnd:k({},N,{value:ne})})}L<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=y.ReactCurrentDispatcher,H;function K(N,X,le){{if(H===void 0)try{throw Error()}catch(Oe){var ge=Oe.stack.trim().match(/\n( *(at )?)/);H=ge&&ge[1]||""}return`
18
+ `+H+N}}var re=!1,Q;{var oe=typeof WeakMap=="function"?WeakMap:Map;Q=new oe}function G(N,X){if(!N||re)return"";{var le=Q.get(N);if(le!==void 0)return le}var ge;re=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=Y.current,Y.current=null,W();try{if(X){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(wt){ge=wt}Reflect.construct(N,[],Re)}else{try{Re.call()}catch(wt){ge=wt}N.call(Re.prototype)}}else{try{throw Error()}catch(wt){ge=wt}N()}}catch(wt){if(wt&&ge&&typeof wt.stack=="string"){for(var Pe=wt.stack.split(`
19
+ `),mt=ge.stack.split(`
20
+ `),We=Pe.length-1,Ze=mt.length-1;We>=1&&Ze>=0&&Pe[We]!==mt[Ze];)Ze--;for(;We>=1&&Ze>=0;We--,Ze--)if(Pe[We]!==mt[Ze]){if(We!==1||Ze!==1)do if(We--,Ze--,Ze<0||Pe[We]!==mt[Ze]){var At=`
21
+ `+Pe[We].replace(" at new "," at ");return N.displayName&&At.includes("<anonymous>")&&(At=At.replace("<anonymous>",N.displayName)),typeof N=="function"&&Q.set(N,At),At}while(We>=1&&Ze>=0);break}}}finally{re=!1,Y.current=ke,ee(),Error.prepareStackTrace=Oe}var jr=N?N.displayName||N.name:"",Kn=jr?K(jr):"";return typeof N=="function"&&Q.set(N,Kn),Kn}function ie(N,X,le){return G(N,!1)}function j(N){var X=N.prototype;return!!(X&&X.isReactComponent)}function te(N,X,le){if(N==null)return"";if(typeof N=="function")return G(N,j(N));if(typeof N=="string")return K(N);switch(N){case c:return K("Suspense");case p:return K("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case l:return ie(N.render);case u:return te(N.type,X,le);case m:{var ge=N,Oe=ge._payload,ke=ge._init;try{return te(ke(Oe),X,le)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,he={},ve=y.ReactDebugCurrentFrame;function pe(N){if(N){var X=N._owner,le=te(N.type,N._source,X?X.type:null);ve.setExtraStackFrame(le)}else ve.setExtraStackFrame(null)}function Te(N,X,le,ge,Oe){{var ke=Function.call.bind(me);for(var Re in N)if(ke(N,Re)){var Pe=void 0;try{if(typeof N[Re]!="function"){var mt=Error((ge||"React class")+": "+le+" type `"+Re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[Re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw mt.name="Invariant Violation",mt}Pe=N[Re](X,Re,ge,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){Pe=We}Pe&&!(Pe instanceof Error)&&(pe(Oe),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ge||"React class",le,Re,typeof Pe),pe(null)),Pe instanceof Error&&!(Pe.message in he)&&(he[Pe.message]=!0,pe(Oe),w("Failed %s type: %s",le,Pe.message),pe(null))}}}var He=Array.isArray;function Se(N){return He(N)}function Ie(N){{var X=typeof Symbol=="function"&&Symbol.toStringTag,le=X&&N[Symbol.toStringTag]||N.constructor.name||"Object";return le}}function ot(N){try{return Qe(N),!1}catch{return!0}}function Qe(N){return""+N}function Ye(N){if(ot(N))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ie(N)),Qe(N)}var at=y.ReactCurrentOwner,yt={key:!0,ref:!0,__self:!0,__source:!0},pt,Ue;function Nt(N){if(me.call(N,"ref")){var X=Object.getOwnPropertyDescriptor(N,"ref").get;if(X&&X.isReactWarning)return!1}return N.ref!==void 0}function Xe(N){if(me.call(N,"key")){var X=Object.getOwnPropertyDescriptor(N,"key").get;if(X&&X.isReactWarning)return!1}return N.key!==void 0}function et(N,X){typeof N.ref=="string"&&at.current}function Ht(N,X){{var le=function(){pt||(pt=!0,w("%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://reactjs.org/link/special-props)",X))};le.isReactWarning=!0,Object.defineProperty(N,"key",{get:le,configurable:!0})}}function tn(N,X){{var le=function(){Ue||(Ue=!0,w("%s: `ref` 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://reactjs.org/link/special-props)",X))};le.isReactWarning=!0,Object.defineProperty(N,"ref",{get:le,configurable:!0})}}var Tn=function(N,X,le,ge,Oe,ke,Re){var Pe={$$typeof:t,type:N,key:X,ref:le,props:Re,_owner:ke};return Pe._store={},Object.defineProperty(Pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.defineProperty(Pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.freeze&&(Object.freeze(Pe.props),Object.freeze(Pe)),Pe};function Wn(N,X,le,ge,Oe){{var ke,Re={},Pe=null,mt=null;le!==void 0&&(Ye(le),Pe=""+le),Xe(X)&&(Ye(X.key),Pe=""+X.key),Nt(X)&&(mt=X.ref,et(X,Oe));for(ke in X)me.call(X,ke)&&!yt.hasOwnProperty(ke)&&(Re[ke]=X[ke]);if(N&&N.defaultProps){var We=N.defaultProps;for(ke in We)Re[ke]===void 0&&(Re[ke]=We[ke])}if(Pe||mt){var Ze=typeof N=="function"?N.displayName||N.name||"Unknown":N;Pe&&Ht(Re,Ze),mt&&tn(Re,Ze)}return Tn(N,Pe,mt,Oe,ge,at.current,Re)}}var Vt=y.ReactCurrentOwner,de=y.ReactDebugCurrentFrame;function we(N){if(N){var X=N._owner,le=te(N.type,N._source,X?X.type:null);de.setExtraStackFrame(le)}else de.setExtraStackFrame(null)}var Ee;Ee=!1;function be(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function se(){{if(Vt.current){var N=A(Vt.current.type);if(N)return`
22
+
23
+ Check the render method of \``+N+"`."}return""}}function Ce(N){return""}var xe={};function Fe(N){{var X=se();if(!X){var le=typeof N=="string"?N:N.displayName||N.name;le&&(X=`
24
+
25
+ Check the top-level render call using <`+le+">.")}return X}}function tt(N,X){{if(!N._store||N._store.validated||N.key!=null)return;N._store.validated=!0;var le=Fe(X);if(xe[le])return;xe[le]=!0;var ge="";N&&N._owner&&N._owner!==Vt.current&&(ge=" It was passed a child from "+A(N._owner.type)+"."),we(N),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,ge),we(null)}}function je(N,X){{if(typeof N!="object")return;if(Se(N))for(var le=0;le<N.length;le++){var ge=N[le];be(ge)&&tt(ge,X)}else if(be(N))N._store&&(N._store.validated=!0);else if(N){var Oe=v(N);if(typeof Oe=="function"&&Oe!==N.entries)for(var ke=Oe.call(N),Re;!(Re=ke.next()).done;)be(Re.value)&&tt(Re.value,X)}}}function Ve(N){{var X=N.type;if(X==null||typeof X=="string")return;var le;if(typeof X=="function")le=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===l||X.$$typeof===u))le=X.propTypes;else return;if(le){var ge=A(X);Te(le,N.props,"prop",ge,N)}else if(X.PropTypes!==void 0&&!Ee){Ee=!0;var Oe=A(X);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function it(N){{for(var X=Object.keys(N.props),le=0;le<X.length;le++){var ge=X[le];if(ge!=="children"&&ge!=="key"){we(N),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ge),we(null);break}}N.ref!==null&&(we(N),w("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var nt={};function st(N,X,le,ge,Oe,ke){{var Re=$(N);if(!Re){var Pe="";(N===void 0||typeof N=="object"&&N!==null&&Object.keys(N).length===0)&&(Pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=Ce();mt?Pe+=mt:Pe+=se();var We;N===null?We="null":Se(N)?We="array":N!==void 0&&N.$$typeof===t?(We="<"+(A(N.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):We=typeof N,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,Pe)}var Ze=Wn(N,X,le,Oe,ke);if(Ze==null)return Ze;if(Re){var At=X.children;if(At!==void 0)if(ge)if(Se(At)){for(var jr=0;jr<At.length;jr++)je(At[jr],N);Object.freeze&&Object.freeze(At)}else w("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 je(At,N)}if(me.call(X,"key")){var Kn=A(N),wt=Object.keys(X).filter(function(jV){return jV!=="key"}),Xp=wt.length>0?"{key: someKey, "+wt.join(": ..., ")+": ...}":"{key: someKey}";if(!nt[Kn+Xp]){var IV=wt.length>0?"{"+wt.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Xp,Kn,IV,Kn),nt[Kn+Xp]=!0}}return N===r?it(Ze):Ve(Ze),Ze}}function Vi(N,X,le){return st(N,X,le,!0)}function mn(N,X,le){return st(N,X,le,!1)}var kN=mn,OV=Vi;$r.Fragment=r,$r.jsx=kN,$r.jsxs=OV}()),$r}var em;function FN(){return em||(em=1,process.env.NODE_ENV==="production"?Vo.exports=$N():Vo.exports=LN()),Vo.exports}var f=FN();function BN(e,t){const n=d.createContext(t),r=a=>{const{children:i,...s}=a,l=d.useMemo(()=>s,Object.values(s));return f.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(a){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function De(e,t=[]){let n=[];function r(a,i){const s=d.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:m,children:b,...g}=u,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||s,v=d.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:v,children:b})};c.displayName=a+"Provider";function p(u,m){var h;const b=((h=m==null?void 0:m[e])==null?void 0:h[l])||s,g=d.useContext(b);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=n.map(i=>d.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,zN(o,...t)]}function zN(...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 i=r.reduce((s,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...s,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function tm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lr(...e){return t=>{let n=!1;const r=e.map(o=>{const a=tm(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():tm(e[o],null)}}}}function fe(...e){return d.useCallback(Lr(...e),e)}var lt=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),a=o.find(qN);if(a){const i=a.props.children,s=o.map(l=>l===a?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:l);return f.jsx(Gi,{...r,ref:t,children:d.isValidElement(i)?d.cloneElement(i,void 0,s):null})}return f.jsx(Gi,{...r,ref:t,children:n})});lt.displayName="Slot";var Gi=d.forwardRef((e,t)=>{const{children:n,...r}=e;if(d.isValidElement(n)){const o=VN(n),a=HN(r,n.props);return n.type!==d.Fragment&&(a.ref=t?Lr(t,o):o),d.cloneElement(n,a)}return d.Children.count(n)>1?d.Children.only(null):null});Gi.displayName="SlotClone";var Ui=({children:e})=>f.jsx(f.Fragment,{children:e});function qN(e){return d.isValidElement(e)&&e.type===Ui}function HN(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]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function VN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function nn(e){const t=e+"CollectionProvider",[n,r]=De(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:g,children:h}=b,v=E.useRef(null),y=E.useRef(new Map).current;return f.jsx(o,{scope:g,itemMap:y,collectionRef:v,children:h})};i.displayName=t;const s=e+"CollectionSlot",l=E.forwardRef((b,g)=>{const{scope:h,children:v}=b,y=a(s,h),w=fe(g,y.collectionRef);return f.jsx(lt,{ref:w,children:v})});l.displayName=s;const c=e+"CollectionItemSlot",p="data-radix-collection-item",u=E.forwardRef((b,g)=>{const{scope:h,children:v,...y}=b,w=E.useRef(null),x=fe(g,w),S=a(c,h);return E.useEffect(()=>(S.itemMap.set(w,{ref:w,...y}),()=>void S.itemMap.delete(w))),f.jsx(lt,{[p]:"",ref:x,children:v})});u.displayName=c;function m(b){const g=a(e+"CollectionConsumer",b);return E.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((S,_)=>y.indexOf(S.ref.current)-y.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:u},m,r]}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ne(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function $e({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=GN({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Ne(n),l=d.useCallback(c=>{if(a){const u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function GN({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),a=Ne(t);return d.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var UN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=UN.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?lt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fr(e,t){e&&Dr.flushSync(()=>e.dispatchEvent(t))}var Be=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function WN(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=KN(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=fe(r.ref,YN(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function KN(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),a=d.useRef("none"),i=e?"mounted":"unmounted",[s,l]=WN(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Go(r.current);a.current=s==="mounted"?c:"none"},[s]),Be(()=>{const c=r.current,p=o.current;if(p!==e){const m=a.current,b=Go(c);e?l("MOUNT"):b==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(p&&m!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Be(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=b=>{const h=Go(r.current).includes(b.animationName);if(b.target===t&&h&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=b=>{b.target===t&&(a.current=Go(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Go(e){return(e==null?void 0:e.animationName)||"none"}function YN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XN=d.useId||(()=>{}),ZN=0;function Ge(e){const[t,n]=d.useState(XN());return Be(()=>{n(r=>r??String(ZN++))},[e]),t?`radix-${t}`:""}var Wi="Collapsible",[JN,nm]=De(Wi),[QN,Ki]=JN(Wi),rm=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l=!1,c]=$e({prop:r,defaultProp:o,onChange:i});return f.jsx(QN,{scope:n,disabled:a,contentId:Ge(),open:l,onOpenToggle:d.useCallback(()=>c(p=>!p),[c]),children:f.jsx(Z.div,{"data-state":Ji(l),"data-disabled":a?"":void 0,...s,ref:t})})});rm.displayName=Wi;var om="CollapsibleTrigger",Yi=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ki(om,n);return f.jsx(Z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ji(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});Yi.displayName=om;var Xi="CollapsibleContent",Zi=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ki(Xi,e.__scopeCollapsible);return f.jsx(Le,{present:n||o.open,children:({present:a})=>f.jsx(e1,{...r,ref:t,present:a})})});Zi.displayName=Xi;var e1=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Ki(Xi,n),[s,l]=d.useState(r),c=d.useRef(null),p=fe(t,c),u=d.useRef(0),m=u.current,b=d.useRef(0),g=b.current,h=i.open||s,v=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),Be(()=>{const w=c.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();u.current=x.height,b.current=x.width,v.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[i.open,r]),f.jsx(Z.div,{"data-state":Ji(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:h&&o})});function Ji(e){return e?"open":"closed"}var am=rm,t1=Yi,n1=Zi,r1=d.createContext(void 0);function Mt(e){const t=d.useContext(r1);return e||t||"ltr"}var rn="Accordion",o1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Qi,a1,i1]=nn(rn),[Uo,DV]=De(rn,[i1,nm]),es=nm(),im=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return f.jsx(Qi.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?f.jsx(u1,{...a,ref:t}):f.jsx(c1,{...o,ref:t})})});im.displayName=rn;var[sm,s1]=Uo(rn),[lm,l1]=Uo(rn,{collapsible:!1}),c1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=$e({prop:n,defaultProp:r,onChange:o});return f.jsx(sm,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:E.useCallback(()=>a&&l(""),[a,l]),children:f.jsx(lm,{scope:e.__scopeAccordion,collapsible:a,children:f.jsx(cm,{...i,ref:t})})})}),u1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:n,defaultProp:r,onChange:o}),l=E.useCallback(p=>s((u=[])=>[...u,p]),[s]),c=E.useCallback(p=>s((u=[])=>u.filter(m=>m!==p)),[s]);return f.jsx(sm,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:f.jsx(lm,{scope:e.__scopeAccordion,collapsible:!0,children:f.jsx(cm,{...a,ref:t})})})}),[d1,Wo]=Uo(rn),cm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=E.useRef(null),l=fe(s,t),c=a1(n),u=Mt(o)==="ltr",m=B(e.onKeyDown,b=>{var M;if(!o1.includes(b.key))return;const g=b.target,h=c().filter(R=>{var $;return!(($=R.ref.current)!=null&&$.disabled)}),v=h.findIndex(R=>R.ref.current===g),y=h.length;if(v===-1)return;b.preventDefault();let w=v;const x=0,S=y-1,_=()=>{w=v+1,w>S&&(w=x)},P=()=>{w=v-1,w<x&&(w=S)};switch(b.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(u?_():P());break;case"ArrowDown":a==="vertical"&&_();break;case"ArrowLeft":a==="horizontal"&&(u?P():_());break;case"ArrowUp":a==="vertical"&&P();break}const C=w%y;(M=h[C].ref.current)==null||M.focus()});return f.jsx(d1,{scope:n,disabled:r,direction:o,orientation:a,children:f.jsx(Qi.Slot,{scope:n,children:f.jsx(Z.div,{...i,"data-orientation":a,ref:l,onKeyDown:r?void 0:m})})})}),Ko="AccordionItem",[f1,ts]=Uo(Ko),um=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Wo(Ko,n),i=s1(Ko,n),s=es(n),l=Ge(),c=r&&i.value.includes(r)||!1,p=a.disabled||e.disabled;return f.jsx(f1,{scope:n,open:c,disabled:p,triggerId:l,children:f.jsx(am,{"data-orientation":a.orientation,"data-state":gm(c),...s,...o,ref:t,disabled:p,open:c,onOpenChange:u=>{u?i.onItemOpen(r):i.onItemClose(r)}})})});um.displayName=Ko;var dm="AccordionHeader",fm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Wo(rn,n),a=ts(dm,n);return f.jsx(Z.h3,{"data-orientation":o.orientation,"data-state":gm(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});fm.displayName=dm;var ns="AccordionTrigger",pm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Wo(rn,n),a=ts(ns,n),i=l1(ns,n),s=es(n);return f.jsx(Qi.ItemSlot,{scope:n,children:f.jsx(t1,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});pm.displayName=ns;var mm="AccordionContent",hm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Wo(rn,n),a=ts(mm,n),i=es(n);return f.jsx(n1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});hm.displayName=mm;function gm(e){return e?"open":"closed"}var p1=im,m1=um,h1=fm,vm=pm,bm=hm;/**
31
+ * @license lucide-react v0.482.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */const g1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ym=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
36
+ * @license lucide-react v0.482.0 - ISC
37
+ *
38
+ * This source code is licensed under the ISC license.
39
+ * See the LICENSE file in the root directory of this source tree.
40
+ */var v1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
41
+ * @license lucide-react v0.482.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const b1=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>E.createElement("svg",{ref:l,...v1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ym("lucide",o),...s},[...i.map(([c,p])=>E.createElement(c,p)),...Array.isArray(a)?a:[a]]));/**
46
+ * @license lucide-react v0.482.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const ct=(e,t)=>{const n=E.forwardRef(({className:r,...o},a)=>E.createElement(b1,{ref:a,iconNode:t,className:ym(`lucide-${g1(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
51
+ * @license lucide-react v0.482.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const y1=ct("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
56
+ * @license lucide-react v0.482.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const w1=ct("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
61
+ * @license lucide-react v0.482.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const x1=ct("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
66
+ * @license lucide-react v0.482.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const S1=ct("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
71
+ * @license lucide-react v0.482.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Br=ct("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
76
+ * @license lucide-react v0.482.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const Yo=ct("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
81
+ * @license lucide-react v0.482.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const C1=ct("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
86
+ * @license lucide-react v0.482.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Rn=ct("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
91
+ * @license lucide-react v0.482.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const _1=ct("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
96
+ * @license lucide-react v0.482.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Xo=ct("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
101
+ * @license lucide-react v0.482.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const rs=ct("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
106
+ * @license lucide-react v0.482.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const E1=ct("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
111
+ * @license lucide-react v0.482.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const P1=ct("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
116
+ * @license lucide-react v0.482.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const T1=ct("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
121
+ * @license lucide-react v0.482.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const R1=ct("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
126
+ * @license lucide-react v0.482.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const os=ct("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function wm(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=wm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function on(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=wm(e))&&(r&&(r+=" "),r+=t);return r}const as="-",N1=e=>{const t=M1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(as);return s[0]===""&&s.length!==1&&s.shift(),xm(s,t)||A1(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&r[i]?[...l,...r[i]]:l}}},xm=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?xm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(as);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Sm=/^\[(.+)\]$/,A1=e=>{if(Sm.test(e)){const t=Sm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},M1=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)is(n[o],r,o,t);return r},is=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Cm(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(O1(o)){is(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{is(i,Cm(t,a),n,r)})})},Cm=(e,t)=>{let n=e;return t.split(as).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},O1=e=>e.isThemeGetter,I1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},ss="!",ls=":",j1=ls.length,D1=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,l=0,c;for(let g=0;g<o.length;g++){let h=o[g];if(i===0&&s===0){if(h===ls){a.push(o.slice(l,g)),l=g+j1;continue}if(h==="/"){c=g;continue}}h==="["?i++:h==="]"?i--:h==="("?s++:h===")"&&s--}const p=a.length===0?o:o.substring(l),u=k1(p),m=u!==p,b=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:b}};if(t){const o=t+ls,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},k1=e=>e.endsWith(ss)?e.substring(0,e.length-1):e.startsWith(ss)?e.substring(1):e,$1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},L1=e=>({cache:I1(e.cacheSize),parseClassName:D1(e),sortModifiers:$1(e),...N1(e)}),F1=/\s+/,B1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(F1);let l="";for(let c=s.length-1;c>=0;c-=1){const p=s[c],{isExternal:u,modifiers:m,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let v=!!h,y=r(v?g.substring(0,h):g);if(!y){if(!v){l=p+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=p+(l.length>0?" "+l:l);continue}v=!1}const w=a(m).join(":"),x=b?w+ss:w,S=x+y;if(i.includes(S))continue;i.push(S);const _=o(y,v);for(let P=0;P<_.length;++P){const C=_[P];i.push(x+C)}l=p+(l.length>0?" "+l:l)}return l};function z1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_m(t))&&(r&&(r+=" "),r+=n);return r}const _m=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_m(e[r]))&&(n&&(n+=" "),n+=t);return n};function q1(e,...t){let n,r,o,a=i;function i(l){const c=t.reduce((p,u)=>u(p),e());return n=L1(c),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const c=r(l);if(c)return c;const p=B1(l,n);return o(l,p),p}return function(){return a(z1.apply(null,arguments))}}const rt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Em=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,H1=/^\d+\/\d+$/,V1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G1=/\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$/,U1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,W1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yn=e=>H1.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Nn=e=>!!e&&Number.isInteger(Number(e)),Tm=e=>e.endsWith("%")&&_e(e.slice(0,-1)),hn=e=>V1.test(e),Y1=()=>!0,X1=e=>G1.test(e)&&!U1.test(e),cs=()=>!1,Z1=e=>W1.test(e),J1=e=>K1.test(e),Q1=e=>!ce(e)&&!ue(e),eA=e=>Xn(e,Am,cs),ce=e=>Em.test(e),An=e=>Xn(e,Mm,X1),us=e=>Xn(e,dA,_e),tA=e=>Xn(e,Rm,cs),nA=e=>Xn(e,Nm,J1),rA=e=>Xn(e,cs,Z1),ue=e=>Pm.test(e),Zo=e=>Zn(e,Mm),oA=e=>Zn(e,fA),aA=e=>Zn(e,Rm),iA=e=>Zn(e,Am),sA=e=>Zn(e,Nm),lA=e=>Zn(e,pA,!0),Xn=(e,t,n)=>{const r=Em.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Zn=(e,t,n=!1)=>{const r=Pm.exec(e);return r?r[1]?t(r[1]):n:!1},Rm=e=>e==="position",cA=new Set(["image","url"]),Nm=e=>cA.has(e),uA=new Set(["length","size","percentage"]),Am=e=>uA.has(e),Mm=e=>e==="length",dA=e=>e==="number",fA=e=>e==="family-name",pA=e=>e==="shadow",mA=q1(()=>{const e=rt("color"),t=rt("font"),n=rt("text"),r=rt("font-weight"),o=rt("tracking"),a=rt("leading"),i=rt("breakpoint"),s=rt("container"),l=rt("spacing"),c=rt("radius"),p=rt("shadow"),u=rt("inset-shadow"),m=rt("drop-shadow"),b=rt("blur"),g=rt("perspective"),h=rt("aspect"),v=rt("ease"),y=rt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],P=()=>[ue,ce,l],C=()=>[Yn,"full","auto",...P()],M=()=>[Nn,"none","subgrid",ue,ce],R=()=>["auto",{span:["full",Nn,ue,ce]},ue,ce],$=()=>[Nn,"auto",ue,ce],D=()=>["auto","min","max","fr",ue,ce],F=()=>["start","end","center","between","around","evenly","stretch","baseline"],A=()=>["start","end","center","stretch"],k=()=>["auto",...P()],L=()=>[Yn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],I=()=>[e,ue,ce],U=()=>[Tm,An],V=()=>["","none","full",c,ue,ce],q=()=>["",_e,Zo,An],ae=()=>["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"],ne=()=>["","none",b,ue,ce],z=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue,ce],W=()=>["none",_e,ue,ce],ee=()=>["none",_e,ue,ce],Y=()=>[_e,ue,ce],H=()=>[Yn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hn],breakpoint:[hn],color:[Y1],container:[hn],"drop-shadow":[hn],ease:["in","out","in-out"],font:[Q1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hn],shadow:[hn],spacing:["px",_e],text:[hn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yn,ce,ue,h]}],container:["container"],columns:[{columns:[_e,ce,ue,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:[...x(),ce,ue]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[Nn,"auto",ue,ce]}],basis:[{basis:[Yn,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Yn,"auto","initial","none",ce]}],grow:[{grow:["",_e,ue,ce]}],shrink:[{shrink:["",_e,ue,ce]}],order:[{order:[Nn,"first","last","none",ue,ce]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"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":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...A(),"baseline"]}],"align-self":[{self:["auto",...A(),"baseline"]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],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:L()}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen",...L()]}],"min-h":[{"min-h":["screen","none",...L()]}],"max-h":[{"max-h":["screen",...L()]}],"font-size":[{text:["base",n,Zo,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ue,us]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tm,ce]}],"font-family":[{font:[oA,ce,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,ue,ce]}],"line-clamp":[{"line-clamp":[_e,"none",ue,us]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",ue,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ce]}],"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:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ue,An]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[_e,"auto",ue,ce]}],"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",ue,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),aA,tA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",iA,eA]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nn,ue,ce],radial:["",ue,ce],conic:[Nn,ue,ce]},sA,nA]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"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:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ue,ce]}],"outline-w":[{outline:["",_e,Zo,An]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",p,lA,rA]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",ue,ce,u]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[_e,An]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":I()}],opacity:[{opacity:[_e,ue,ce]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none",ue,ce]}],blur:[{blur:ne()}],brightness:[{brightness:[_e,ue,ce]}],contrast:[{contrast:[_e,ue,ce]}],"drop-shadow":[{"drop-shadow":["","none",m,ue,ce]}],grayscale:[{grayscale:["",_e,ue,ce]}],"hue-rotate":[{"hue-rotate":[_e,ue,ce]}],invert:[{invert:["",_e,ue,ce]}],saturate:[{saturate:[_e,ue,ce]}],sepia:[{sepia:["",_e,ue,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ce]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ue,ce]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ue,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ue,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ue,ce]}],"backdrop-invert":[{"backdrop-invert":["",_e,ue,ce]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ue,ce]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ue,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ue,ce]}],"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",ue,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ue,ce]}],ease:[{ease:["linear","initial",v,ue,ce]}],delay:[{delay:[_e,ue,ce]}],animate:[{animate:["none",y,ue,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ue,ce]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[ue,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"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",ue,ce]}],"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",ue,ce]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[_e,Zo,An,us]}],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-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-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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function O(...e){return mA(on(e))}const hA=p1,Om=d.forwardRef(({className:e,...t},n)=>f.jsx(m1,{ref:n,className:O("border-b",e),...t}));Om.displayName="AccordionItem";const Im=d.forwardRef(({className:e,children:t,...n},r)=>f.jsx(h1,{className:"flex",children:f.jsxs(vm,{ref:r,className:O("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,f.jsx(Yo,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Im.displayName=vm.displayName;const jm=d.forwardRef(({className:e,children:t,...n},r)=>f.jsx(bm,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:f.jsx("div",{className:O("pb-4 pt-0",e),children:t})}));jm.displayName=bm.displayName;function gA(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);d.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 vA="DismissableLayer",ds="dismissableLayer.update",bA="dismissableLayer.pointerDownOutside",yA="dismissableLayer.focusOutside",Dm,km=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),an=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,c=d.useContext(km),[p,u]=d.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=d.useState({}),g=fe(t,C=>u(C)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),w=p?h.indexOf(p):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,_=xA(C=>{const M=C.target,R=[...c.branches].some($=>$.contains(M));!S||R||(o==null||o(C),i==null||i(C),C.defaultPrevented||s==null||s())},m),P=SA(C=>{const M=C.target;[...c.branches].some($=>$.contains(M))||(a==null||a(C),i==null||i(C),C.defaultPrevented||s==null||s())},m);return gA(C=>{w===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),d.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Dm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),Lm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Dm)}},[p,m,n,c]),d.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),Lm())},[p,c]),d.useEffect(()=>{const C=()=>b({});return document.addEventListener(ds,C),()=>document.removeEventListener(ds,C)},[]),f.jsx(Z.div,{...l,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)})});an.displayName=vA;var wA="DismissableLayerBranch",$m=d.forwardRef((e,t)=>{const n=d.useContext(km),r=d.useRef(null),o=fe(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),f.jsx(Z.div,{...e,ref:o})});$m.displayName=wA;function xA(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){Fm(bA,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SA(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&Fm(yA,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 Lm(){const e=new CustomEvent(ds);document.dispatchEvent(e)}function Fm(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?Fr(o,a):o.dispatchEvent(a)}var CA=an,_A=$m,fs="focusScope.autoFocusOnMount",ps="focusScope.autoFocusOnUnmount",Bm={bubbles:!1,cancelable:!0},EA="FocusScope",zr=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=d.useState(null),c=Ne(o),p=Ne(a),u=d.useRef(null),m=fe(t,h=>l(h)),b=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let h=function(x){if(b.paused||!s)return;const S=x.target;s.contains(S)?u.current=S:gn(u.current,{select:!0})},v=function(x){if(b.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||gn(u.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&gn(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,b.paused]),d.useEffect(()=>{if(s){Hm.add(b);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(fs,Bm);s.addEventListener(fs,c),s.dispatchEvent(y),y.defaultPrevented||(PA(MA(zm(s)),{select:!0}),document.activeElement===h&&gn(s))}return()=>{s.removeEventListener(fs,c),setTimeout(()=>{const y=new CustomEvent(ps,Bm);s.addEventListener(ps,p),s.dispatchEvent(y),y.defaultPrevented||gn(h??document.body,{select:!0}),s.removeEventListener(ps,p),Hm.remove(b)},0)}}},[s,c,p,b]);const g=d.useCallback(h=>{if(!n&&!r||b.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const w=h.currentTarget,[x,S]=TA(w);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&gn(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&gn(S,{select:!0})):y===w&&h.preventDefault()}},[n,r,b.paused]);return f.jsx(Z.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})});zr.displayName=EA;function PA(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function TA(e){const t=zm(e),n=qm(t,e),r=qm(t.reverse(),e);return[n,r]}function zm(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 qm(e,t){for(const n of e)if(!RA(n,{upTo:t}))return n}function RA(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 NA(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&NA(e)&&t&&e.select()}}var Hm=AA();function AA(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vm(e,t),e.unshift(t)},remove(t){var n;e=Vm(e,t),(n=e[0])==null||n.resume()}}}function Vm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function MA(e){return e.filter(t=>t.tagName!=="A")}var OA="Portal",Mn=d.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=d.useState(!1);Be(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?qo.createPortal(f.jsx(Z.div,{...r,ref:t}),i):null});Mn.displayName=OA;var ms=0;function Jo(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gm()),document.body.insertAdjacentElement("beforeend",e[1]??Gm()),ms++,()=>{ms===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ms--}},[])}function Gm(){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 Ut=function(){return Ut=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},Ut.apply(this,arguments)};function Um(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 IA(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Qo="right-scroll-bar-position",ea="width-before-scroll-bar",jA="with-scroll-bars-hidden",DA="--removed-body-scroll-bar-size";function hs(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kA(e,t){var n=E.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 $A=typeof window<"u"?d.useLayoutEffect:d.useEffect,Wm=new WeakMap;function LA(e,t){var n=kA(null,function(r){return e.forEach(function(o){return hs(o,r)})});return $A(function(){var r=Wm.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||hs(s,null)}),a.forEach(function(s){o.has(s)||hs(s,i)})}Wm.set(n,e)},[e]),n}function FA(e){return e}function BA(e,t){t===void 0&&(t=FA);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 i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var p=i;i=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){i.push(p),c()},filter:function(p){return i=i.filter(p),n}}}};return o}function zA(e){e===void 0&&(e={});var t=BA(null);return t.options=Ut({async:!0,ssr:!1},e),t}var Km=function(e){var t=e.sideCar,n=Um(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 d.createElement(r,Ut({},n))};Km.isSideCarExport=!0;function qA(e,t){return e.useMedium(t),Km}var Ym=zA(),gs=function(){},ta=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:gs,onWheelCapture:gs,onTouchMoveCapture:gs}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,m=e.sideCar,b=e.noIsolation,g=e.inert,h=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,x=Um(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,_=LA([n,t]),P=Ut(Ut({},x),o);return d.createElement(d.Fragment,null,p&&d.createElement(S,{sideCar:Ym,removeScrollBar:c,shards:u,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?d.cloneElement(d.Children.only(s),Ut(Ut({},P),{ref:_})):d.createElement(y,Ut({},P,{className:l,ref:_}),s))});ta.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ta.classNames={fullWidth:ea,zeroRight:Qo};var HA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=HA();return t&&e.setAttribute("nonce",t),e}function GA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=VA())&&(GA(t,n),UA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},KA=function(){var e=WA();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xm=function(){var e=KA(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},YA={left:0,top:0,right:0,gap:0},vs=function(e){return parseInt(e||"",10)||0},XA=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[vs(n),vs(r),vs(o)]},ZA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return YA;var t=XA(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])}},JA=Xm(),Jn="data-scroll-locked",QA=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
131
+ .`.concat(jA,` {
132
+ overflow: hidden `).concat(r,`;
133
+ padding-right: `).concat(s,"px ").concat(r,`;
134
+ }
135
+ body[`).concat(Jn,`] {
136
+ overflow: hidden `).concat(r,`;
137
+ overscroll-behavior: contain;
138
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
139
+ padding-left: `.concat(o,`px;
140
+ padding-top: `).concat(a,`px;
141
+ padding-right: `).concat(i,`px;
142
+ margin-left:0;
143
+ margin-top:0;
144
+ margin-right: `).concat(s,"px ").concat(r,`;
145
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
146
+ }
147
+
148
+ .`).concat(Qo,` {
149
+ right: `).concat(s,"px ").concat(r,`;
150
+ }
151
+
152
+ .`).concat(ea,` {
153
+ margin-right: `).concat(s,"px ").concat(r,`;
154
+ }
155
+
156
+ .`).concat(Qo," .").concat(Qo,` {
157
+ right: 0 `).concat(r,`;
158
+ }
159
+
160
+ .`).concat(ea," .").concat(ea,` {
161
+ margin-right: 0 `).concat(r,`;
162
+ }
163
+
164
+ body[`).concat(Jn,`] {
165
+ `).concat(DA,": ").concat(s,`px;
166
+ }
167
+ `)},Zm=function(){var e=parseInt(document.body.getAttribute(Jn)||"0",10);return isFinite(e)?e:0},eM=function(){d.useEffect(function(){return document.body.setAttribute(Jn,(Zm()+1).toString()),function(){var e=Zm()-1;e<=0?document.body.removeAttribute(Jn):document.body.setAttribute(Jn,e.toString())}},[])},tM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;eM();var a=d.useMemo(function(){return ZA(o)},[o]);return d.createElement(JA,{styles:QA(a,!t,o,n?"":"!important")})},bs=!1;if(typeof window<"u")try{var na=Object.defineProperty({},"passive",{get:function(){return bs=!0,!0}});window.addEventListener("test",na,na),window.removeEventListener("test",na,na)}catch{bs=!1}var Qn=bs?{passive:!1}:!1,nM=function(e){return e.tagName==="TEXTAREA"},Jm=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")},rM=function(e){return Jm(e,"overflowY")},oM=function(e){return Jm(e,"overflowX")},Qm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=eh(e,r);if(o){var a=th(e,r),i=a[1],s=a[2];if(i>s)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]},iM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},eh=function(e,t){return e==="v"?rM(t):oM(t)},th=function(e,t){return e==="v"?aM(t):iM(t)},sM=function(e,t){return e==="h"&&t==="rtl"?-1:1},lM=function(e,t,n,r,o){var a=sM(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,p=i>0,u=0,m=0;do{var b=th(e,s),g=b[0],h=b[1],v=b[2],y=h-v-a*g;(g||y)&&eh(e,s)&&(u+=y,m+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&Math.abs(u)<1||!p&&Math.abs(m)<1)&&(c=!0),c},ra=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nh=function(e){return[e.deltaX,e.deltaY]},rh=function(e){return e&&"current"in e?e.current:e},cM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uM=function(e){return`
168
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
169
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
170
+ `)},dM=0,er=[];function fM(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(dM++)[0],a=d.useState(Xm)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=IA([e.lockRef.current],(e.shards||[]).map(rh),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=ra(h),w=n.current,x="deltaX"in h?h.deltaX:w[0]-y[0],S="deltaY"in h?h.deltaY:w[1]-y[1],_,P=h.target,C=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&P.type==="range")return!1;var M=Qm(C,P);if(!M)return!0;if(M?_=C:(_=C==="v"?"h":"v",M=Qm(C,P)),!M)return!1;if(!r.current&&"changedTouches"in h&&(x||S)&&(r.current=_),!_)return!0;var R=r.current||_;return lM(R,v,h,R==="h"?x:S)},[]),l=d.useCallback(function(h){var v=h;if(!(!er.length||er[er.length-1]!==a)){var y="deltaY"in v?nh(v):ra(v),w=t.current.filter(function(_){return _.name===v.type&&(_.target===v.target||v.target===_.shadowParent)&&cM(_.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(rh).filter(Boolean).filter(function(_){return _.contains(v.target)}),S=x.length>0?s(v,x[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),c=d.useCallback(function(h,v,y,w){var x={name:h,delta:v,target:y,should:w,shadowParent:pM(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),p=d.useCallback(function(h){n.current=ra(h),r.current=void 0},[]),u=d.useCallback(function(h){c(h.type,nh(h),h.target,s(h,e.lockRef.current))},[]),m=d.useCallback(function(h){c(h.type,ra(h),h.target,s(h,e.lockRef.current))},[]);d.useEffect(function(){return er.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Qn),document.addEventListener("touchmove",l,Qn),document.addEventListener("touchstart",p,Qn),function(){er=er.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Qn),document.removeEventListener("touchmove",l,Qn),document.removeEventListener("touchstart",p,Qn)}},[]);var b=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(a,{styles:uM(o)}):null,b?d.createElement(tM,{gapMode:e.gapMode}):null)}function pM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mM=qA(Ym,fM);var qr=d.forwardRef(function(e,t){return d.createElement(ta,Ut({},e,{ref:t,sideCar:mM}))});qr.classNames=ta.classNames;var hM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tr=new WeakMap,oa=new WeakMap,aa={},ys=0,oh=function(e){return e&&(e.host||oh(e.parentNode))},gM=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=oh(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})},vM=function(e,t,n,r){var o=gM(t,Array.isArray(e)?e:[e]);aa[n]||(aa[n]=new WeakMap);var a=aa[n],i=[],s=new Set,l=new Set(o),c=function(u){!u||s.has(u)||(s.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(m){if(s.has(m))p(m);else try{var b=m.getAttribute(r),g=b!==null&&b!=="false",h=(tr.get(m)||0)+1,v=(a.get(m)||0)+1;tr.set(m,h),a.set(m,v),i.push(m),h===1&&g&&oa.set(m,!0),v===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),s.clear(),ys++,function(){i.forEach(function(u){var m=tr.get(u)-1,b=a.get(u)-1;tr.set(u,m),a.set(u,b),m||(oa.has(u)||u.removeAttribute(r),oa.delete(u)),b||u.removeAttribute(n)}),ys--,ys||(tr=new WeakMap,tr=new WeakMap,oa=new WeakMap,aa={})}},ia=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=hM(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),vM(r,o,n,"aria-hidden")):function(){return null}},ws="Dialog",[ah,ih]=De(ws),[bM,Ot]=ah(ws),sh=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=d.useRef(null),l=d.useRef(null),[c=!1,p]=$e({prop:r,defaultProp:o,onChange:a});return f.jsx(bM,{scope:t,triggerRef:s,contentRef:l,contentId:Ge(),titleId:Ge(),descriptionId:Ge(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:i,children:n})};sh.displayName=ws;var lh="DialogTrigger",ch=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ot(lh,n),a=fe(t,o.triggerRef);return f.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cs(o.open),...r,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});ch.displayName=lh;var xs="DialogPortal",[yM,uh]=ah(xs,{forceMount:void 0}),dh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ot(xs,t);return f.jsx(yM,{scope:t,forceMount:n,children:d.Children.map(r,i=>f.jsx(Le,{present:n||a.open,children:f.jsx(Mn,{asChild:!0,container:o,children:i})}))})};dh.displayName=xs;var sa="DialogOverlay",fh=d.forwardRef((e,t)=>{const n=uh(sa,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ot(sa,e.__scopeDialog);return a.modal?f.jsx(Le,{present:r||a.open,children:f.jsx(wM,{...o,ref:t})}):null});fh.displayName=sa;var wM=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ot(sa,n);return f.jsx(qr,{as:lt,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(Z.div,{"data-state":Cs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),On="DialogContent",ph=d.forwardRef((e,t)=>{const n=uh(On,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ot(On,e.__scopeDialog);return f.jsx(Le,{present:r||a.open,children:a.modal?f.jsx(xM,{...o,ref:t}):f.jsx(SM,{...o,ref:t})})});ph.displayName=On;var xM=d.forwardRef((e,t)=>{const n=Ot(On,e.__scopeDialog),r=d.useRef(null),o=fe(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),f.jsx(mh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),SM=d.forwardRef((e,t)=>{const n=Ot(On,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return f.jsx(mh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),mh=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ot(On,n),l=d.useRef(null),c=fe(t,l);return Jo(),f.jsxs(f.Fragment,{children:[f.jsx(zr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(an,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Cs(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(_M,{titleId:s.titleId}),f.jsx(PM,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Ss="DialogTitle",hh=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ot(Ss,n);return f.jsx(Z.h2,{id:o.titleId,...r,ref:t})});hh.displayName=Ss;var gh="DialogDescription",vh=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ot(gh,n);return f.jsx(Z.p,{id:o.descriptionId,...r,ref:t})});vh.displayName=gh;var bh="DialogClose",yh=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ot(bh,n);return f.jsx(Z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});yh.displayName=bh;function Cs(e){return e?"open":"closed"}var wh="DialogTitleWarning",[CM,xh]=BN(wh,{contentName:On,titleName:Ss,docsSlug:"dialog"}),_M=({titleId:e})=>{const t=xh(wh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
171
+
172
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
173
+
174
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},EM="DialogDescriptionWarning",PM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xh(EM).contentName}}.`;return d.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},la=sh,ca=ch,ua=dh,nr=fh,rr=ph,or=hh,ar=vh,In=yh,Sh="AlertDialog",[TM,QV]=De(Sh,[ih]),sn=ih(),Ch=e=>{const{__scopeAlertDialog:t,...n}=e,r=sn(t);return f.jsx(la,{...r,...n,modal:!0})};Ch.displayName=Sh;var RM="AlertDialogTrigger",_h=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sn(n);return f.jsx(ca,{...o,...r,ref:t})});_h.displayName=RM;var NM="AlertDialogPortal",Eh=e=>{const{__scopeAlertDialog:t,...n}=e,r=sn(t);return f.jsx(ua,{...r,...n})};Eh.displayName=NM;var AM="AlertDialogOverlay",Ph=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sn(n);return f.jsx(nr,{...o,...r,ref:t})});Ph.displayName=AM;var ir="AlertDialogContent",[MM,OM]=TM(ir),Th=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=sn(n),i=d.useRef(null),s=fe(t,i),l=d.useRef(null);return f.jsx(CM,{contentName:ir,titleName:Rh,docsSlug:"alert-dialog",children:f.jsx(MM,{scope:n,cancelRef:l,children:f.jsxs(rr,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:B(o.onOpenAutoFocus,c=>{var p;c.preventDefault(),(p=l.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[f.jsx(Ui,{children:r}),f.jsx(jM,{contentRef:i})]})})})});Th.displayName=ir;var Rh="AlertDialogTitle",Nh=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sn(n);return f.jsx(or,{...o,...r,ref:t})});Nh.displayName=Rh;var Ah="AlertDialogDescription",Mh=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sn(n);return f.jsx(ar,{...o,...r,ref:t})});Mh.displayName=Ah;var IM="AlertDialogAction",Oh=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sn(n);return f.jsx(In,{...o,...r,ref:t})});Oh.displayName=IM;var Ih="AlertDialogCancel",jh=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=OM(Ih,n),a=sn(n),i=fe(t,o);return f.jsx(In,{...a,...r,ref:i})});jh.displayName=Ih;var jM=({contentRef:e})=>{const t=`\`${ir}\` requires a description for the component to be accessible for screen reader users.
175
+
176
+ You can add a description to the \`${ir}\` by passing a \`${Ah}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
177
+
178
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ir}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
179
+
180
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},DM=Ch,kM=_h,$M=Eh,Dh=Ph,kh=Th,$h=Oh,Lh=jh,Fh=Nh,Bh=Mh;const zh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qh=on,ln=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return qh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(c=>{const p=n==null?void 0:n[c],u=a==null?void 0:a[c];if(p===null)return null;const m=zh(p)||zh(u);return o[c][m]}),s=n&&Object.entries(n).reduce((c,p)=>{let[u,m]=p;return m===void 0||(c[u]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:m,...b}=p;return Object.entries(b).every(g=>{let[h,v]=g;return Array.isArray(v)?v.includes({...a,...s}[h]):{...a,...s}[h]===v})?[...c,u,m]:c},[]);return qh(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Hr=ln("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),cn=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?lt:"button";return f.jsx(i,{className:O(Hr({variant:t,size:n,className:e})),ref:a,...o})});cn.displayName="Button";const LM=DM,FM=kM,Hh=$M,_s=d.forwardRef(({className:e,...t},n)=>f.jsx(Dh,{className:O("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));_s.displayName=Dh.displayName;const Vh=d.forwardRef(({className:e,...t},n)=>f.jsxs(Hh,{children:[f.jsx(_s,{}),f.jsx(kh,{ref:n,className:O("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Vh.displayName=kh.displayName;const Gh=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gh.displayName="AlertDialogHeader";const Uh=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Uh.displayName="AlertDialogFooter";const Wh=d.forwardRef(({className:e,...t},n)=>f.jsx(Fh,{ref:n,className:O("text-lg font-semibold",e),...t}));Wh.displayName=Fh.displayName;const Kh=d.forwardRef(({className:e,...t},n)=>f.jsx(Bh,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));Kh.displayName=Bh.displayName;const Yh=d.forwardRef(({className:e,...t},n)=>f.jsx($h,{ref:n,className:O(Hr(),e),...t}));Yh.displayName=$h.displayName;const Xh=d.forwardRef(({className:e,...t},n)=>f.jsx(Lh,{ref:n,className:O(Hr({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Xh.displayName=Lh.displayName;const BM=ln("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Zh=d.forwardRef(({className:e,variant:t,...n},r)=>f.jsx("div",{ref:r,role:"alert",className:O(BM({variant:t}),e),...n}));Zh.displayName="Alert";const Jh=d.forwardRef(({className:e,...t},n)=>f.jsx("h5",{ref:n,className:O("mb-1 font-medium leading-none tracking-tight",e),...t}));Jh.displayName="AlertTitle";const Qh=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("text-sm [&_p]:leading-relaxed",e),...t}));Qh.displayName="AlertDescription";var zM="AspectRatio",eg=d.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return f.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:f.jsx(Z.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});eg.displayName=zM;var qM=eg;const HM=qM;var Es="Avatar",[VM,e3]=De(Es),[GM,tg]=VM(Es),ng=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return f.jsx(GM,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:f.jsx(Z.span,{...r,ref:t})})});ng.displayName=Es;var rg="AvatarImage",og=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=tg(rg,n),s=UM(r,a.referrerPolicy),l=Ne(c=>{o(c),i.onImageLoadingStatusChange(c)});return Be(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?f.jsx(Z.img,{...a,ref:t,src:r}):null});og.displayName=rg;var ag="AvatarFallback",ig=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=tg(ag,n),[i,s]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?f.jsx(Z.span,{...o,ref:t}):null});ig.displayName=ag;function UM(e,t){const[n,r]=d.useState("idle");return Be(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var sg=ng,lg=og,cg=ig;const ug=d.forwardRef(({className:e,...t},n)=>f.jsx(sg,{ref:n,className:O("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ug.displayName=sg.displayName;const dg=d.forwardRef(({className:e,...t},n)=>f.jsx(lg,{ref:n,className:O("aspect-square h-full w-full",e),...t}));dg.displayName=lg.displayName;const fg=d.forwardRef(({className:e,...t},n)=>f.jsx(cg,{ref:n,className:O("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));fg.displayName=cg.displayName;const pg=ln("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function WM({className:e,variant:t,...n}){return f.jsx("div",{className:O(pg({variant:t}),e),...n})}const Ps=d.forwardRef(({...e},t)=>f.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ps.displayName="Breadcrumb";const Ts=d.forwardRef(({className:e,...t},n)=>f.jsx("ol",{ref:n,className:O("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ts.displayName="BreadcrumbList";const da=d.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,className:O("inline-flex items-center gap-1.5",e),...t}));da.displayName="BreadcrumbItem";const fa=d.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?lt:"a";return f.jsx(o,{ref:r,className:O("transition-colors hover:text-foreground",t),...n})});fa.displayName="BreadcrumbLink";const Rs=d.forwardRef(({className:e,...t},n)=>f.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:O("font-normal text-foreground",e),...t}));Rs.displayName="BreadcrumbPage";const pa=({children:e,className:t,...n})=>f.jsx("li",{role:"presentation","aria-hidden":"true",className:O("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??f.jsx(Rn,{})});pa.displayName="BreadcrumbSeparator";const mg=({className:e,...t})=>f.jsxs("span",{role:"presentation","aria-hidden":"true",className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[f.jsx(rs,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"More"})]});mg.displayName="BreadcrumbElipssis";const ma=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ma.displayName="Card";const ha=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("flex flex-col space-y-1.5 p-6",e),...t}));ha.displayName="CardHeader";const ga=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("font-semibold leading-none tracking-tight",e),...t}));ga.displayName="CardTitle";const va=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("text-sm text-muted-foreground",e),...t}));va.displayName="CardDescription";const ba=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("p-6 pt-0",e),...t}));ba.displayName="CardContent";const Ns=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("flex items-center p-6 pt-0",e),...t}));Ns.displayName="CardFooter";function KM(e){return Object.prototype.toString.call(e)==="[object Object]"}function hg(e){return KM(e)||Array.isArray(e)}function YM(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function As(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!hg(s)||!hg(l)?s===l:As(s,l)})}function gg(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function XM(e,t){if(e.length!==t.length)return!1;const n=gg(e),r=gg(t);return n.every((o,a)=>{const i=r[a];return As(o,i)})}function Ms(e){return typeof e=="number"}function Os(e){return typeof e=="string"}function ya(e){return typeof e=="boolean"}function vg(e){return Object.prototype.toString.call(e)==="[object Object]"}function ze(e){return Math.abs(e)}function Is(e){return Math.sign(e)}function Vr(e,t){return ze(e-t)}function ZM(e,t){if(e===0||t===0||ze(e)<=ze(t))return 0;const n=Vr(ze(e),ze(t));return ze(n/e)}function JM(e){return Math.round(e*100)/100}function Gr(e){return Wr(e).map(Number)}function It(e){return e[Ur(e)]}function Ur(e){return Math.max(0,e.length-1)}function js(e,t){return t===Ur(e)}function bg(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Wr(e){return Object.keys(e)}function yg(e,t){return[e,t].reduce((n,r)=>(Wr(r).forEach(o=>{const a=n[o],i=r[o],s=vg(a)&&vg(i);n[o]=s?yg(a,i):i}),n),{})}function Ds(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function QM(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,c){return Os(e)?n[e](l):e(t,l,c)}return{measure:i}}function Kr(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const c=o;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function eO(e,t,n,r){const o=Kr(),a=1e3/60;let i=null,s=0,l=0;function c(){o.add(e,"visibilitychange",()=>{e.hidden&&g()})}function p(){b(),o.clear()}function u(v){if(!l)return;i||(i=v,n(),n());const y=v-i;for(i=v,s+=y;s>=a;)n(),s-=a;const w=s/a;r(w),l&&(l=t.requestAnimationFrame(u))}function m(){l||(l=t.requestAnimationFrame(u))}function b(){t.cancelAnimationFrame(l),i=null,s=0,l=0}function g(){i=null,s=0}return{init:c,destroy:p,start:m,stop:b,update:n,render:r}}function tO(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",i=!r&&n?-1:1,s=p(),l=u();function c(g){const{height:h,width:v}=g;return r?h:v}function p(){return r?"top":n?"right":"left"}function u(){return r?"bottom":n?"left":"right"}function m(g){return g*i}return{scroll:o,cross:a,startEdge:s,endEdge:l,measureSize:c,direction:m}}function jn(e=0,t=0){const n=ze(e-t);function r(c){return c<e}function o(c){return c>t}function a(c){return r(c)||o(c)}function i(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function wg(e,t,n){const{constrain:r}=jn(0,e),o=e+1;let a=i(t);function i(m){return n?ze((o+m)%o):r(m)}function s(){return a}function l(m){return a=i(m),u}function c(m){return p().set(s()+m)}function p(){return wg(e,s(),n)}const u={get:s,set:l,add:c,clone:p};return u}function nO(e,t,n,r,o,a,i,s,l,c,p,u,m,b,g,h,v,y,w){const{cross:x,direction:S}=e,_=["INPUT","SELECT","TEXTAREA"],P={passive:!1},C=Kr(),M=Kr(),R=jn(50,225).constrain(b.measure(20)),$={mouse:300,touch:400},D={mouse:500,touch:600},F=g?43:25;let A=!1,k=0,L=0,I=!1,U=!1,V=!1,q=!1;function ae(G){if(!w)return;function ie(te){(ya(w)||w(G,te))&&Y(te)}const j=t;C.add(j,"dragstart",te=>te.preventDefault(),P).add(j,"touchmove",()=>{},P).add(j,"touchend",()=>{}).add(j,"touchstart",ie).add(j,"mousedown",ie).add(j,"touchcancel",K).add(j,"contextmenu",K).add(j,"click",re,!0)}function J(){C.clear(),M.clear()}function ne(){const G=q?n:t;M.add(G,"touchmove",H,P).add(G,"touchend",K).add(G,"mousemove",H,P).add(G,"mouseup",K)}function z(G){const ie=G.nodeName||"";return _.includes(ie)}function W(){return(g?D:$)[q?"mouse":"touch"]}function ee(G,ie){const j=u.add(Is(G)*-1),te=p.byDistance(G,!g).distance;return g||ze(G)<R?te:v&&ie?te*.5:p.byIndex(j.get(),0).distance}function Y(G){const ie=Ds(G,r);q=ie,V=g&&ie&&!G.buttons&&A,A=Vr(o.get(),i.get())>=2,!(ie&&G.button!==0)&&(z(G.target)||(I=!0,a.pointerDown(G),c.useFriction(0).useDuration(0),o.set(i),ne(),k=a.readPoint(G),L=a.readPoint(G,x),m.emit("pointerDown")))}function H(G){if(!Ds(G,r)&&G.touches.length>=2)return K(G);const j=a.readPoint(G),te=a.readPoint(G,x),me=Vr(j,k),he=Vr(te,L);if(!U&&!q&&(!G.cancelable||(U=me>he,!U)))return K(G);const ve=a.pointerMove(G);me>h&&(V=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(S(ve)),G.preventDefault()}function K(G){const j=p.byDistance(0,!1).index!==u.get(),te=a.pointerUp(G)*W(),me=ee(S(te),j),he=ZM(te,me),ve=F-10*he,pe=y+he/50;U=!1,I=!1,M.clear(),c.useDuration(ve).useFriction(pe),l.distance(me,!g),q=!1,m.emit("pointerUp")}function re(G){V&&(G.stopPropagation(),G.preventDefault(),V=!1)}function Q(){return I}return{init:ae,destroy:J,pointerDown:Q}}function rO(e,t){let r,o;function a(u){return u.timeStamp}function i(u,m){const g=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Ds(u,t)?u:u.touches[0])[g]}function s(u){return r=u,o=u,i(u)}function l(u){const m=i(u)-i(o),b=a(u)-a(r)>170;return o=u,b&&(r=u),m}function c(u){if(!r||!o)return 0;const m=i(o)-i(r),b=a(u)-a(r),g=a(u)-a(o)>170,h=m/b;return b&&!g&&ze(h)>.1?h:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:i}}function oO(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function aO(e){function t(r){return e*(r/100)}return{measure:t}}function iO(e,t,n,r,o,a,i){const s=[e].concat(r);let l,c,p=[],u=!1;function m(v){return o.measureSize(i.measure(v))}function b(v){if(!a)return;c=m(e),p=r.map(m);function y(w){for(const x of w){if(u)return;const S=x.target===e,_=r.indexOf(x.target),P=S?c:p[_],C=m(S?e:r[_]);if(ze(C-P)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(w=>{(ya(a)||a(v,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function g(){u=!0,l&&l.disconnect()}return{init:b,destroy:g}}function sO(e,t,n,r,o,a){let i=0,s=0,l=o,c=a,p=e.get(),u=0;function m(){const P=r.get()-e.get(),C=!l;let M=0;return C?(i=0,n.set(r),e.set(r),M=P):(n.set(e),i+=P/l,i*=c,p+=i,e.add(i),M=p-u),s=Is(M),u=p,_}function b(){const P=r.get()-t.get();return ze(P)<.001}function g(){return l}function h(){return s}function v(){return i}function y(){return x(o)}function w(){return S(a)}function x(P){return l=P,_}function S(P){return c=P,_}const _={direction:h,duration:g,velocity:v,seek:m,settled:b,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:x};return _}function lO(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=jn(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(b){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",h=ze(e[g]-t.get()),v=n.get()-t.get(),y=s.constrain(h/i);n.subtract(v*y),!b&&ze(v)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function u(b){l=!b}return{shouldConstrain:c,constrain:p,toggleActive:u}}function cO(e,t,n,r,o){const a=jn(-t+e,0),i=u(),s=p(),l=m();function c(g,h){return Vr(g,h)<=1}function p(){const g=i[0],h=It(i),v=i.lastIndexOf(g),y=i.indexOf(h)+1;return jn(v,y)}function u(){return n.map((g,h)=>{const{min:v,max:y}=a,w=a.constrain(g),x=!h,S=js(n,h);return x?y:S||c(v,w)?v:c(y,w)?y:w}).map(g=>parseFloat(g.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return i;const{min:g,max:h}=s;return i.slice(g,h)}return{snapsContained:l,scrollContainLimit:s}}function uO(e,t,n){const r=t[0],o=n?r-e:It(t);return{limit:jn(o,r)}}function dO(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=jn(a,i);function c(m){return m===1?l(n.get()):m===-1?s(n.get()):!1}function p(m){if(!c(m))return;const b=e*(m*-1);r.forEach(g=>g.add(b))}return{loop:p}}function fO(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function pO(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=u().map(t.measure),c=m(),p=b();function u(){return s(r).map(h=>It(h)[i]-h[0][a]).map(ze)}function m(){return r.map(h=>n[a]-h[a]).map(h=>-ze(h))}function b(){return s(c).map(h=>h[0]).map((h,v)=>h+l[v])}return{snaps:c,snapsAligned:p}}function mO(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:l}=r,c=p();function p(){const m=i(a),b=!e||t==="keepSnaps";return n.length===1?[a]:b?m:m.slice(s,l).map((g,h,v)=>{const y=!h,w=js(v,h);if(y){const x=It(v[0])+1;return bg(x)}if(w){const x=Ur(a)-It(v)[0]+1;return bg(x,It(v)[0])}return g})}return{slideRegistry:c}}function hO(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(g){return g.concat().sort((h,v)=>ze(h)-ze(v))[0]}function c(g){const h=e?i(g):s(g),v=t.map((w,x)=>({diff:p(w-h,0),index:x})).sort((w,x)=>ze(w.diff)-ze(x.diff)),{index:y}=v[0];return{index:y,distance:h}}function p(g,h){const v=[g,g+n,g-n];if(!e)return g;if(!h)return l(v);const y=v.filter(w=>Is(w)===h);return y.length?l(y):It(v)-n}function u(g,h){const v=t[g]-o.get(),y=p(v,h);return{index:g,distance:y}}function m(g,h){const v=o.get()+g,{index:y,distance:w}=c(v),x=!e&&a(v);if(!h||x)return{index:y,distance:g};const S=t[y]-w,_=g+p(S,0);return{index:y,distance:_}}return{byDistance:m,byIndex:u,shortcut:p}}function gO(e,t,n,r,o,a,i){function s(u){const m=u.distance,b=u.index!==t.get();a.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(u.index),i.emit("select"))}function l(u,m){const b=o.byDistance(u,m);s(b)}function c(u,m){const b=t.clone().set(u),g=o.byIndex(b.get(),m);s(g)}return{distance:l,index:c}}function vO(e,t,n,r,o,a,i,s){const l={passive:!0,capture:!0};let c=0;function p(b){if(!s)return;function g(h){if(new Date().getTime()-c>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(x=>x.includes(h));Ms(w)&&(o.useDuration(0),r.index(w,0),i.emit("slideFocus"))}a.add(document,"keydown",u,!1),t.forEach((h,v)=>{a.add(h,"focus",y=>{(ya(s)||s(b,y))&&g(v)},l)})}function u(b){b.code==="Tab"&&(c=new Date().getTime())}return{init:p}}function Yr(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return Ms(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function xg(e,t){const n=e.scroll==="x"?i:s,r=t.style;let o=null,a=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function s(m){return`translate3d(0px,${m}px,0px)`}function l(m){if(a)return;const b=JM(e.direction(m));b!==o&&(r.transform=n(b),o=b)}function c(m){a=!m}function p(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:l,toggleActive:c}}function bO(e,t,n,r,o,a,i,s,l){const p=Gr(o),u=Gr(o).reverse(),m=y().concat(w());function b(C,M){return C.reduce((R,$)=>R-o[$],M)}function g(C,M){return C.reduce((R,$)=>b(R,M)>0?R.concat([$]):R,[])}function h(C){return a.map((M,R)=>({start:M-r[R]+.5+C,end:M+t-.5+C}))}function v(C,M,R){const $=h(M);return C.map(D=>{const F=R?0:-n,A=R?n:0,k=R?"end":"start",L=$[D][k];return{index:D,loopPoint:L,slideLocation:Yr(-1),translate:xg(e,l[D]),target:()=>s.get()>L?F:A}})}function y(){const C=i[0],M=g(u,C);return v(M,n,!1)}function w(){const C=t-i[0]-1,M=g(p,C);return v(M,-n,!0)}function x(){return m.every(({index:C})=>{const M=p.filter(R=>R!==C);return b(M,t)<=.1})}function S(){m.forEach(C=>{const{target:M,translate:R,slideLocation:$}=C,D=M();D!==$.get()&&(R.to(D),$.set(D))})}function _(){m.forEach(C=>C.translate.clear())}return{canLoop:x,clear:_,loop:S,loopPoints:m}}function yO(e,t,n){let r,o=!1;function a(l){if(!n)return;function c(p){for(const u of p)if(u.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(p=>{o||(ya(n)||n(l,p))&&c(p)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function wO(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function c(){s=new IntersectionObserver(g=>{l||(g.forEach(h=>{const v=t.indexOf(h.target);o[v]=h}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>s.observe(g))}function p(){s&&s.disconnect(),l=!0}function u(g){return Wr(o).reduce((h,v)=>{const y=parseInt(v),{isIntersecting:w}=o[y];return(g&&w||!g&&!w)&&h.push(y),h},[])}function m(g=!0){if(g&&a)return a;if(!g&&i)return i;const h=u(g);return g&&(a=h),g||(i=h),h}return{init:c,destroy:p,get:m}}function xO(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,c=n[0]&&o,p=g(),u=h(),m=n.map(i),b=v();function g(){if(!c)return 0;const w=n[0];return ze(t[s]-w[s])}function h(){if(!c)return 0;const w=a.getComputedStyle(It(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function v(){return n.map((w,x,S)=>{const _=!x,P=js(S,x);return _?m[x]+p:P?m[x]+u:S[x+1][s]-w[s]}).map(ze)}return{slideSizes:m,slideSizesWithGaps:b,startGap:p,endGap:u}}function SO(e,t,n,r,o,a,i,s,l){const{startEdge:c,endEdge:p,direction:u}=e,m=Ms(n);function b(y,w){return Gr(y).filter(x=>x%w===0).map(x=>y.slice(x,x+w))}function g(y){return y.length?Gr(y).reduce((w,x,S)=>{const _=It(w)||0,P=_===0,C=x===Ur(y),M=o[c]-a[_][c],R=o[c]-a[x][p],$=!r&&P?u(i):0,D=!r&&C?u(s):0,F=ze(R-D-(M+$));return S&&F>t+l&&w.push(x),C&&w.push(y.length),w},[]).map((w,x,S)=>{const _=Math.max(S[x-1]||0);return y.slice(_,w)}):[]}function h(y){return m?b(y,n):g(y)}return{groupSlides:h}}function CO(e,t,n,r,o,a,i){const{align:s,axis:l,direction:c,startIndex:p,loop:u,duration:m,dragFree:b,dragThreshold:g,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:w,watchResize:x,watchSlides:S,watchDrag:_,watchFocus:P}=a,C=2,M=oO(),R=M.measure(t),$=n.map(M.measure),D=tO(l,c),F=D.measureSize(R),A=aO(F),k=QM(s,F),L=!u&&!!w,I=u||!!w,{slideSizes:U,slideSizesWithGaps:V,startGap:q,endGap:ae}=xO(D,R,$,n,I,o),J=SO(D,F,v,u,R,$,q,ae,C),{snaps:ne,snapsAligned:z}=pO(D,k,R,$,J),W=-It(ne)+It(V),{snapsContained:ee,scrollContainLimit:Y}=cO(F,W,z,w,C),H=L?ee:z,{limit:K}=uO(W,H,u),re=wg(Ur(H),p,u),Q=re.clone(),oe=Gr(n),G=({dragHandler:Ue,scrollBody:Nt,scrollBounds:Xe,options:{loop:et}})=>{et||Xe.constrain(Ue.pointerDown()),Nt.seek()},ie=({scrollBody:Ue,translate:Nt,location:Xe,offsetLocation:et,previousLocation:Ht,scrollLooper:tn,slideLooper:Tn,dragHandler:Wn,animation:Vt,eventHandler:de,scrollBounds:we,options:{loop:Ee}},be)=>{const se=Ue.settled(),Ce=!we.shouldConstrain(),xe=Ee?se:se&&Ce;xe&&!Wn.pointerDown()&&(Vt.stop(),de.emit("settle")),xe||de.emit("scroll");const Fe=Xe.get()*be+Ht.get()*(1-be);et.set(Fe),Ee&&(tn.loop(Ue.direction()),Tn.loop()),Nt.to(et.get())},j=eO(r,o,()=>G(pt),Ue=>ie(pt,Ue)),te=.68,me=H[re.get()],he=Yr(me),ve=Yr(me),pe=Yr(me),Te=Yr(me),He=sO(he,pe,ve,Te,m,te),Se=hO(u,H,W,K,Te),Ie=gO(j,re,Q,He,Se,Te,i),ot=fO(K),Qe=Kr(),Ye=wO(t,n,i,h),{slideRegistry:at}=mO(L,w,H,Y,J,oe),yt=vO(e,n,at,Ie,He,Qe,i,P),pt={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:R,slideRects:$,animation:j,axis:D,dragHandler:nO(D,e,r,o,Te,rO(D,o),he,j,Ie,He,Se,re,i,A,b,g,y,te,_),eventStore:Qe,percentOfView:A,index:re,indexPrevious:Q,limit:K,location:he,offsetLocation:pe,previousLocation:ve,options:a,resizeHandler:iO(t,i,o,n,D,x,M),scrollBody:He,scrollBounds:lO(K,pe,Te,He,A),scrollLooper:dO(W,K,pe,[he,pe,ve,Te]),scrollProgress:ot,scrollSnapList:H.map(ot.get),scrollSnaps:H,scrollTarget:Se,scrollTo:Ie,slideLooper:bO(D,F,W,U,V,ne,H,pe,n),slideFocus:yt,slidesHandler:yO(t,i,S),slidesInView:Ye,slideIndexes:oe,slideRegistry:at,slidesToScroll:J,target:Te,translate:xg(D,t)};return pt}function _O(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function o(c){return r(c).forEach(p=>p(t,c)),l}function a(c,p){return e[c]=r(c).concat([p]),l}function i(c,p){return e[c]=r(c).filter(u=>u!==p),l}function s(){e={}}const l={init:n,emit:o,off:i,on:a,clear:s};return l}const EO={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function PO(e){function t(a,i){return yg(a,i||{})}function n(a){const i=a.breakpoints||{},s=Wr(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(i=>Wr(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function TO(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function wa(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=PO(o),i=TO(a),s=Kr(),l=_O(),{mergeOptions:c,optionsAtMedia:p,optionsMediaQueries:u}=a,{on:m,off:b,emit:g}=l,h=D;let v=!1,y,w=c(EO,wa.globalOptions),x=c(w),S=[],_,P,C;function M(){const{container:oe,slides:G}=x;P=(Os(oe)?e.querySelector(oe):oe)||e.children[0];const j=Os(G)?P.querySelectorAll(G):G;C=[].slice.call(j||P.children)}function R(oe){const G=CO(e,P,C,r,o,oe,l);if(oe.loop&&!G.slideLooper.canLoop()){const ie=Object.assign({},oe,{loop:!1});return R(ie)}return G}function $(oe,G){v||(w=c(w,oe),x=p(w),S=G||S,M(),y=R(x),u([w,...S.map(({options:ie})=>ie)]).forEach(ie=>s.add(ie,"change",D)),x.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(Q),y.eventHandler.init(Q),y.resizeHandler.init(Q),y.slidesHandler.init(Q),y.options.loop&&y.slideLooper.loop(),P.offsetParent&&C.length&&y.dragHandler.init(Q),_=i.init(Q,S)))}function D(oe,G){const ie=J();F(),$(c({startIndex:ie},oe),G),l.emit("reInit")}function F(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function A(){v||(v=!0,s.clear(),F(),l.emit("destroy"),l.clear())}function k(oe,G,ie){!x.active||v||(y.scrollBody.useBaseFriction().useDuration(G===!0?0:x.duration),y.scrollTo.index(oe,ie||0))}function L(oe){const G=y.index.add(1).get();k(G,oe,-1)}function I(oe){const G=y.index.add(-1).get();k(G,oe,1)}function U(){return y.index.add(1).get()!==J()}function V(){return y.index.add(-1).get()!==J()}function q(){return y.scrollSnapList}function ae(){return y.scrollProgress.get(y.location.get())}function J(){return y.index.get()}function ne(){return y.indexPrevious.get()}function z(){return y.slidesInView.get()}function W(){return y.slidesInView.get(!1)}function ee(){return _}function Y(){return y}function H(){return e}function K(){return P}function re(){return C}const Q={canScrollNext:U,canScrollPrev:V,containerNode:K,internalEngine:Y,destroy:A,off:b,on:m,emit:g,plugins:ee,previousScrollSnap:ne,reInit:h,rootNode:H,scrollNext:L,scrollPrev:I,scrollProgress:ae,scrollSnapList:q,scrollTo:k,selectedScrollSnap:J,slideNodes:re,slidesInView:z,slidesNotInView:W};return $(t,n),setTimeout(()=>l.emit("init"),0),Q}wa.globalOptions=void 0;function ks(e={},t=[]){const n=E.useRef(e),r=E.useRef(t),[o,a]=E.useState(),[i,s]=E.useState(),l=E.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return E.useEffect(()=>{As(n.current,e)||(n.current=e,l())},[e,l]),E.useEffect(()=>{XM(r.current,t)||(r.current=t,l())},[t,l]),E.useEffect(()=>{if(YM()&&i){wa.globalOptions=ks.globalOptions;const c=wa(i,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[i,a]),[s,o]}ks.globalOptions=void 0;const Sg=d.createContext(null);function xa(){const e=d.useContext(Sg);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Cg=d.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},s)=>{const[l,c]=ks({...t,axis:e==="horizontal"?"x":"y"},r),[p,u]=d.useState(!1),[m,b]=d.useState(!1),g=d.useCallback(w=>{w&&(u(w.canScrollPrev()),b(w.canScrollNext()))},[]),h=d.useCallback(()=>{c==null||c.scrollPrev()},[c]),v=d.useCallback(()=>{c==null||c.scrollNext()},[c]),y=d.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),h()):w.key==="ArrowRight"&&(w.preventDefault(),v())},[h,v]);return d.useEffect(()=>{!c||!n||n(c)},[c,n]),d.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c==null||c.off("select",g)}},[c,g]),f.jsx(Sg.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,canScrollPrev:p,canScrollNext:m},children:f.jsx("div",{ref:s,onKeyDownCapture:y,className:O("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})});Cg.displayName="Carousel";const _g=d.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=xa();return f.jsx("div",{ref:r,className:"overflow-hidden",children:f.jsx("div",{ref:n,className:O("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});_g.displayName="CarouselContent";const Eg=d.forwardRef(({className:e,...t},n)=>{const{orientation:r}=xa();return f.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:O("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Eg.displayName="CarouselItem";const Pg=d.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollPrev:i,canScrollPrev:s}=xa();return f.jsxs(cn,{ref:o,variant:t,size:n,className:O("absolute h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...r,children:[f.jsx(w1,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Pg.displayName="CarouselPrevious";const Tg=d.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollNext:i,canScrollNext:s}=xa();return f.jsxs(cn,{ref:o,variant:t,size:n,className:O("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...r,children:[f.jsx(x1,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Next slide"})]})});Tg.displayName="CarouselNext";var $s,Rg;function jt(){if(Rg)return $s;Rg=1;var e=Array.isArray;return $s=e,$s}var Ls,Ng;function Ag(){if(Ng)return Ls;Ng=1;var e=typeof Ho=="object"&&Ho&&Ho.Object===Object&&Ho;return Ls=e,Ls}var Fs,Mg;function Wt(){if(Mg)return Fs;Mg=1;var e=Ag(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Fs=n,Fs}var Bs,Og;function Xr(){if(Og)return Bs;Og=1;var e=Wt(),t=e.Symbol;return Bs=t,Bs}var zs,Ig;function RO(){if(Ig)return zs;Ig=1;var e=Xr(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=n.call(i,o),l=i[o];try{i[o]=void 0;var c=!0}catch{}var p=r.call(i);return c&&(s?i[o]=l:delete i[o]),p}return zs=a,zs}var qs,jg;function NO(){if(jg)return qs;jg=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return qs=n,qs}var Hs,Dg;function Dn(){if(Dg)return Hs;Dg=1;var e=Xr(),t=RO(),n=NO(),r="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:r:a&&a in Object(s)?t(s):n(s)}return Hs=i,Hs}var Vs,kg;function kn(){if(kg)return Vs;kg=1;function e(t){return t!=null&&typeof t=="object"}return Vs=e,Vs}var Gs,$g;function Zr(){if($g)return Gs;$g=1;var e=Dn(),t=kn(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return Gs=r,Gs}var Us,Lg;function Ws(){if(Lg)return Us;Lg=1;var e=jt(),t=Zr(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\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:r.test(a)||!n.test(a)||i!=null&&a in Object(i)}return Us=o,Us}var Ks,Fg;function vn(){if(Fg)return Ks;Fg=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Ks=e,Ks}var Ys,Bg;function Xs(){if(Bg)return Ys;Bg=1;var e=Dn(),t=vn(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var l=e(s);return l==r||l==o||l==n||l==a}return Ys=i,Ys}var Zs,zg;function AO(){if(zg)return Zs;zg=1;var e=Wt(),t=e["__core-js_shared__"];return Zs=t,Zs}var Js,qg;function MO(){if(qg)return Js;qg=1;var e=AO(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Js=n,Js}var Qs,Hg;function Vg(){if(Hg)return Qs;Hg=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Qs=n,Qs}var el,Gg;function OO(){if(Gg)return el;Gg=1;var e=Xs(),t=MO(),n=vn(),r=Vg(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,p=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function u(m){if(!n(m)||t(m))return!1;var b=e(m)?p:a;return b.test(r(m))}return el=u,el}var tl,Ug;function IO(){if(Ug)return tl;Ug=1;function e(t,n){return t==null?void 0:t[n]}return tl=e,tl}var nl,Wg;function $n(){if(Wg)return nl;Wg=1;var e=OO(),t=IO();function n(r,o){var a=t(r,o);return e(a)?a:void 0}return nl=n,nl}var rl,Kg;function Sa(){if(Kg)return rl;Kg=1;var e=$n(),t=e(Object,"create");return rl=t,rl}var ol,Yg;function jO(){if(Yg)return ol;Yg=1;var e=Sa();function t(){this.__data__=e?e(null):{},this.size=0}return ol=t,ol}var al,Xg;function DO(){if(Xg)return al;Xg=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return al=e,al}var il,Zg;function kO(){if(Zg)return il;Zg=1;var e=Sa(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return r.call(i,a)?i[a]:void 0}return il=o,il}var sl,Jg;function $O(){if(Jg)return sl;Jg=1;var e=Sa(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var a=this.__data__;return e?a[o]!==void 0:n.call(a,o)}return sl=r,sl}var ll,Qg;function LO(){if(Qg)return ll;Qg=1;var e=Sa(),t="__lodash_hash_undefined__";function n(r,o){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&o===void 0?t:o,this}return ll=n,ll}var cl,ev;function FO(){if(ev)return cl;ev=1;var e=jO(),t=DO(),n=kO(),r=$O(),o=LO();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,cl=a,cl}var ul,tv;function BO(){if(tv)return ul;tv=1;function e(){this.__data__=[],this.size=0}return ul=e,ul}var dl,nv;function fl(){if(nv)return dl;nv=1;function e(t,n){return t===n||t!==t&&n!==n}return dl=e,dl}var pl,rv;function Ca(){if(rv)return pl;rv=1;var e=fl();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return pl=t,pl}var ml,ov;function zO(){if(ov)return ml;ov=1;var e=Ca(),t=Array.prototype,n=t.splice;function r(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():n.call(a,i,1),--this.size,!0}return ml=r,ml}var hl,av;function qO(){if(av)return hl;av=1;var e=Ca();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return hl=t,hl}var gl,iv;function HO(){if(iv)return gl;iv=1;var e=Ca();function t(n){return e(this.__data__,n)>-1}return gl=t,gl}var vl,sv;function VO(){if(sv)return vl;sv=1;var e=Ca();function t(n,r){var o=this.__data__,a=e(o,n);return a<0?(++this.size,o.push([n,r])):o[a][1]=r,this}return vl=t,vl}var bl,lv;function _a(){if(lv)return bl;lv=1;var e=BO(),t=zO(),n=qO(),r=HO(),o=VO();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,bl=a,bl}var yl,cv;function wl(){if(cv)return yl;cv=1;var e=$n(),t=Wt(),n=e(t,"Map");return yl=n,yl}var xl,uv;function GO(){if(uv)return xl;uv=1;var e=FO(),t=_a(),n=wl();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return xl=r,xl}var Sl,dv;function UO(){if(dv)return Sl;dv=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Sl=e,Sl}var Cl,fv;function Ea(){if(fv)return Cl;fv=1;var e=UO();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Cl=t,Cl}var _l,pv;function WO(){if(pv)return _l;pv=1;var e=Ea();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return _l=t,_l}var El,mv;function KO(){if(mv)return El;mv=1;var e=Ea();function t(n){return e(this,n).get(n)}return El=t,El}var Pl,hv;function YO(){if(hv)return Pl;hv=1;var e=Ea();function t(n){return e(this,n).has(n)}return Pl=t,Pl}var Tl,gv;function XO(){if(gv)return Tl;gv=1;var e=Ea();function t(n,r){var o=e(this,n),a=o.size;return o.set(n,r),this.size+=o.size==a?0:1,this}return Tl=t,Tl}var Rl,vv;function Nl(){if(vv)return Rl;vv=1;var e=GO(),t=WO(),n=KO(),r=YO(),o=XO();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Rl=a,Rl}var Al,bv;function ZO(){if(bv)return Al;bv=1;var e=Nl(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],l=a.cache;if(l.has(s))return l.get(s);var c=r.apply(this,i);return a.cache=l.set(s,c)||l,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,Al=n,Al}var Ml,yv;function JO(){if(yv)return Ml;yv=1;var e=ZO(),t=500;function n(r){var o=e(r,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return Ml=n,Ml}var Ol,wv;function QO(){if(wv)return Ol;wv=1;var e=JO(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,l,c){a.push(l?c.replace(n,"$1"):s||i)}),a});return Ol=r,Ol}var Il,xv;function Sv(){if(xv)return Il;xv=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return Il=e,Il}var jl,Cv;function eI(){if(Cv)return jl;Cv=1;var e=Xr(),t=Sv(),n=jt(),r=Zr(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(n(s))return t(s,i)+"";if(r(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return jl=i,jl}var Dl,_v;function Ev(){if(_v)return Dl;_v=1;var e=eI();function t(n){return n==null?"":e(n)}return Dl=t,Dl}var kl,Pv;function Tv(){if(Pv)return kl;Pv=1;var e=jt(),t=Ws(),n=QO(),r=Ev();function o(a,i){return e(a)?a:t(a,i)?[a]:n(r(a))}return kl=o,kl}var $l,Rv;function Pa(){if(Rv)return $l;Rv=1;var e=Zr();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return $l=t,$l}var Ll,Nv;function Fl(){if(Nv)return Ll;Nv=1;var e=Tv(),t=Pa();function n(r,o){o=e(o,r);for(var a=0,i=o.length;r!=null&&a<i;)r=r[t(o[a++])];return a&&a==i?r:void 0}return Ll=n,Ll}var Bl,Av;function Mv(){if(Av)return Bl;Av=1;var e=Fl();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return Bl=t,Bl}Mv();var zl,Ov;function tI(){if(Ov)return zl;Ov=1;function e(t){return t==null}return zl=e,zl}var nI=tI();const rI=Gt(nI);var ql,Iv;function oI(){if(Iv)return ql;Iv=1;var e=Dn(),t=jt(),n=kn(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return ql=o,ql}var aI=oI();const jv=Gt(aI);var iI=Xs();const Ta=Gt(iI);var sI=vn();const Dv=Gt(sI);var Ra={exports:{}},Ae={};/**
181
+ * @license React
182
+ * react-is.production.min.js
183
+ *
184
+ * Copyright (c) Facebook, Inc. and its affiliates.
185
+ *
186
+ * This source code is licensed under the MIT license found in the
187
+ * LICENSE file in the root directory of this source tree.
188
+ */var kv;function lI(){if(kv)return Ae;kv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case o:case r:case c:case p:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case l:case m:case u:case a:return v;default:return y}}case t:return y}}}return Ae.ContextConsumer=i,Ae.ContextProvider=a,Ae.Element=e,Ae.ForwardRef=l,Ae.Fragment=n,Ae.Lazy=m,Ae.Memo=u,Ae.Portal=t,Ae.Profiler=o,Ae.StrictMode=r,Ae.Suspense=c,Ae.SuspenseList=p,Ae.isAsyncMode=function(){return!1},Ae.isConcurrentMode=function(){return!1},Ae.isContextConsumer=function(v){return h(v)===i},Ae.isContextProvider=function(v){return h(v)===a},Ae.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ae.isForwardRef=function(v){return h(v)===l},Ae.isFragment=function(v){return h(v)===n},Ae.isLazy=function(v){return h(v)===m},Ae.isMemo=function(v){return h(v)===u},Ae.isPortal=function(v){return h(v)===t},Ae.isProfiler=function(v){return h(v)===o},Ae.isStrictMode=function(v){return h(v)===r},Ae.isSuspense=function(v){return h(v)===c},Ae.isSuspenseList=function(v){return h(v)===p},Ae.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===c||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===u||v.$$typeof===a||v.$$typeof===i||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},Ae.typeOf=h,Ae}var Me={};/**
189
+ * @license React
190
+ * react-is.development.js
191
+ *
192
+ * Copyright (c) Facebook, Inc. and its affiliates.
193
+ *
194
+ * This source code is licensed under the MIT license found in the
195
+ * LICENSE file in the root directory of this source tree.
196
+ */var $v;function cI(){return $v||($v=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=!1,h=!1,v=!1,y=!1,w=!1,x;x=Symbol.for("react.module.reference");function S(j){return!!(typeof j=="string"||typeof j=="function"||j===n||j===o||w||j===r||j===c||j===p||y||j===b||g||h||v||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===u||j.$$typeof===a||j.$$typeof===i||j.$$typeof===l||j.$$typeof===x||j.getModuleId!==void 0))}function _(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:var me=j.type;switch(me){case n:case o:case r:case c:case p:return me;default:var he=me&&me.$$typeof;switch(he){case s:case i:case l:case m:case u:case a:return he;default:return te}}case t:return te}}}var P=i,C=a,M=e,R=l,$=n,D=m,F=u,A=t,k=o,L=r,I=c,U=p,V=!1,q=!1;function ae(j){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(j){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(j){return _(j)===i}function z(j){return _(j)===a}function W(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ee(j){return _(j)===l}function Y(j){return _(j)===n}function H(j){return _(j)===m}function K(j){return _(j)===u}function re(j){return _(j)===t}function Q(j){return _(j)===o}function oe(j){return _(j)===r}function G(j){return _(j)===c}function ie(j){return _(j)===p}Me.ContextConsumer=P,Me.ContextProvider=C,Me.Element=M,Me.ForwardRef=R,Me.Fragment=$,Me.Lazy=D,Me.Memo=F,Me.Portal=A,Me.Profiler=k,Me.StrictMode=L,Me.Suspense=I,Me.SuspenseList=U,Me.isAsyncMode=ae,Me.isConcurrentMode=J,Me.isContextConsumer=ne,Me.isContextProvider=z,Me.isElement=W,Me.isForwardRef=ee,Me.isFragment=Y,Me.isLazy=H,Me.isMemo=K,Me.isPortal=re,Me.isProfiler=Q,Me.isStrictMode=oe,Me.isSuspense=G,Me.isSuspenseList=ie,Me.isValidElementType=S,Me.typeOf=_}()),Me}var Lv;function uI(){return Lv||(Lv=1,process.env.NODE_ENV==="production"?Ra.exports=lI():Ra.exports=cI()),Ra.exports}uI();var Hl,Fv;function Bv(){if(Fv)return Hl;Fv=1;var e=Dn(),t=kn(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return Hl=r,Hl}var Vl,zv;function dI(){if(zv)return Vl;zv=1;var e=Bv();function t(n){return e(n)&&n!=+n}return Vl=t,Vl}var fI=dI();const pI=Gt(fI);var mI=Bv();const hI=Gt(mI);var Na=function(t){return jv(t)&&t.indexOf("%")===t.length-1},Dt=function(t){return hI(t)&&!pI(t)},Aa=function(t){return Dt(t)||jv(t)};function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}var gI=["viewBox","children"],vI=["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"],qv=["points","pathLength"],Ul={svg:gI,polygon:qv,polyline:qv},Hv=["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"],bI=function(t,n,r){return function(o){return t(n,r,o),null}},yI=function(t,n,r){if(!Dv(t)||Gl(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];Hv.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=bI(i,n,r))}),o},wI=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},xI=function(t,n,r,o){var a,i=(a=Ul==null?void 0:Ul[o])!==null&&a!==void 0?a:[];return!Ta(t)&&(o&&i.includes(n)||vI.includes(n))||Hv.includes(n)},Vv=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(E.isValidElement(t)&&(o=t.props),!Dv(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;xI((s=o)===null||s===void 0?void 0:s[i],i,n,r)&&(a[i]=o[i])}),a},SI=["children","width","height","viewBox","className","style","title","desc"];function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wl.apply(this,arguments)}function CI(e,t){if(e==null)return{};var n=_I(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _I(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function EI(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,l=e.desc,c=CI(e,SI),p=o||{width:n,height:r,x:0,y:0},u=on("recharts-surface",a);return E.createElement("svg",Wl({},Vv(c,!0,"svg"),{className:u,width:n,height:r,style:i,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),E.createElement("title",null,s),E.createElement("desc",null,l),t)}var PI=process.env.NODE_ENV!=="production",Ma=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(PI&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===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(n.replace(/%s/g,function(){return o[i++]}))}},Kl,Gv;function TI(){if(Gv)return Kl;Gv=1;function e(t,n,r){var o=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+n];return i}return Kl=e,Kl}var Yl,Uv;function RI(){if(Uv)return Yl;Uv=1;var e=TI();function t(n,r,o){var a=n.length;return o=o===void 0?a:o,!r&&o>=a?n:e(n,r,o)}return Yl=t,Yl}var Xl,Wv;function Kv(){if(Wv)return Xl;Wv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function l(c){return s.test(c)}return Xl=l,Xl}var Zl,Yv;function NI(){if(Yv)return Zl;Yv=1;function e(t){return t.split("")}return Zl=e,Zl}var Jl,Xv;function AI(){if(Xv)return Jl;Xv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",p="[^"+e+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",g=c+"?",h="["+a+"]?",v="(?:"+b+"(?:"+[p,u,m].join("|")+")"+h+g+")*",y=h+g+v,w="(?:"+[p+s+"?",s,u,m,i].join("|")+")",x=RegExp(l+"(?="+l+")|"+w+y,"g");function S(_){return _.match(x)||[]}return Jl=S,Jl}var Ql,Zv;function MI(){if(Zv)return Ql;Zv=1;var e=NI(),t=Kv(),n=AI();function r(o){return t(o)?n(o):e(o)}return Ql=r,Ql}var ec,Jv;function OI(){if(Jv)return ec;Jv=1;var e=RI(),t=Kv(),n=MI(),r=Ev();function o(a){return function(i){i=r(i);var s=t(i)?n(i):void 0,l=s?s[0]:i.charAt(0),c=s?e(s,1).join(""):i.slice(1);return l[a]()+c}}return ec=o,ec}var tc,Qv;function II(){if(Qv)return tc;Qv=1;var e=OI(),t=e("toUpperCase");return tc=t,tc}var jI=II();const eb=Gt(jI);function Oa(e){return function(){return e}}const tb=Math.cos,Ia=Math.sin,kt=Math.sqrt,ja=Math.PI,Da=2*ja,nc=Math.PI,rc=2*nc,Ln=1e-6,DI=rc-Ln;function nb(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function kI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nb;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class $I{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?nb:kI(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,l=r-t,c=o-n,p=i-t,u=s-n,m=p*p+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>Ln)if(!(Math.abs(u*l-c*p)>Ln)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-i,g=o-s,h=l*l+c*c,v=b*b+g*g,y=Math.sqrt(h),w=Math.sqrt(m),x=a*Math.tan((nc-Math.acos((h+m-v)/(2*y*w)))/2),S=x/w,_=x/y;Math.abs(S-1)>Ln&&this._append`L${t+S*p},${n+S*u}`,this._append`A${a},${a},0,0,${+(u*b>p*g)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,p=n+l,u=1^i,m=i?o-a:a-o;this._x1===null?this._append`M${c},${p}`:(Math.abs(this._x1-c)>Ln||Math.abs(this._y1-p)>Ln)&&this._append`L${c},${p}`,r&&(m<0&&(m=m%rc+rc),m>DI?this._append`A${r},${r},0,1,${u},${t-s},${n-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=p}`:m>Ln&&this._append`A${r},${r},0,${+(m>=nc)},${u},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function LI(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new $I(t)}const oc={draw(e,t){const n=kt(t/ja);e.moveTo(n,0),e.arc(0,0,n,0,Da)}},FI={draw(e,t){const n=kt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},rb=kt(1/3),BI=rb*2,zI={draw(e,t){const n=kt(t/BI),r=n*rb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qI={draw(e,t){const n=kt(t),r=-n/2;e.rect(r,r,n,n)}},HI=.8908130915292852,ob=Ia(ja/10)/Ia(7*ja/10),VI=Ia(Da/10)*ob,GI=-tb(Da/10)*ob,UI={draw(e,t){const n=kt(t*HI),r=VI*n,o=GI*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const i=Da*a/5,s=tb(i),l=Ia(i);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},ac=kt(3),WI={draw(e,t){const n=-kt(t/(ac*3));e.moveTo(0,n*2),e.lineTo(-ac*n,-n),e.lineTo(ac*n,-n),e.closePath()}},_t=-.5,Et=kt(3)/2,ic=1/kt(12),KI=(ic/2+1)*3,YI={draw(e,t){const n=kt(t/KI),r=n/2,o=n*ic,a=r,i=n*ic+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(_t*r-Et*o,Et*r+_t*o),e.lineTo(_t*a-Et*i,Et*a+_t*i),e.lineTo(_t*s-Et*l,Et*s+_t*l),e.lineTo(_t*r+Et*o,_t*o-Et*r),e.lineTo(_t*a+Et*i,_t*i-Et*a),e.lineTo(_t*s+Et*l,_t*l-Et*s),e.closePath()}};function XI(e,t){let n=null,r=LI(o);e=typeof e=="function"?e:Oa(e||oc),t=typeof t=="function"?t:Oa(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Oa(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Oa(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function Jr(e){"@babel/helpers - typeof";return Jr=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},Jr(e)}var ZI=["type","size","sizeType"];function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(this,arguments)}function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ib(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(n),!0).forEach(function(r){JI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JI(e,t,n){return t=QI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QI(e){var t=ej(e,"string");return Jr(t)=="symbol"?t:t+""}function ej(e,t){if(Jr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tj(e,t){if(e==null)return{};var n=nj(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nj(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var sb={symbolCircle:oc,symbolCross:FI,symbolDiamond:zI,symbolSquare:qI,symbolStar:UI,symbolTriangle:WI,symbolWye:YI},rj=Math.PI/180,oj=function(t){var n="symbol".concat(eb(t));return sb[n]||oc},aj=function(t,n,r){if(n==="area")return t;switch(r){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*rj;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}},ij=function(t,n){sb["symbol".concat(eb(t))]=n},lb=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,l=tj(t,ZI),c=ib(ib({},l),{},{type:r,size:a,sizeType:s}),p=function(){var v=oj(r),y=XI().type(v).size(aj(a,s,r));return y()},u=c.className,m=c.cx,b=c.cy,g=Vv(c,!0);return m===+m&&b===+b&&a===+a?E.createElement("path",sc({},g,{className:on("recharts-symbols",u),transform:"translate(".concat(m,", ").concat(b,")"),d:p()})):null};lb.registerSymbol=ij;function sr(e){"@babel/helpers - typeof";return sr=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},sr(e)}function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lc.apply(this,arguments)}function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(n),!0).forEach(function(r){Qr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,db(r.key),r)}}function uj(e,t,n){return t&&cj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dj(e,t,n){return t=ka(t),fj(e,ub()?Reflect.construct(t,n||[],ka(e).constructor):t.apply(e,n))}function fj(e,t){if(t&&(sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pj(e)}function pj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ub(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ub=function(){return!!e})()}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ka(e)}function mj(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&&cc(e,t)}function cc(e,t){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cc(e,t)}function Qr(e,t,n){return t=db(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function db(e){var t=hj(e,"string");return sr(t)=="symbol"?t:t+""}function hj(e,t){if(sr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $t=32,uc=function(e){function t(){return lj(this,t),dj(this,t,arguments)}return mj(t,e),uj(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=$t/2,i=$t/6,s=$t/3,l=r.inactive?o:r.color;if(r.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:$t,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
197
+ A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
198
+ H`).concat($t,"M").concat(2*s,",").concat(a,`
199
+ A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return E.createElement("path",{stroke:"none",fill:l,d:"M0,".concat($t/8,"h").concat($t,"v").concat($t*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(E.isValidElement(r.legendIcon)){var c=sj({},r);return delete c.legendIcon,E.cloneElement(r.legendIcon,c)}return E.createElement(lb,{fill:l,cx:a,cy:a,size:$t,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,p={x:0,y:0,width:$t,height:$t},u={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(b,g){var h=b.formatter||l,v=on(Qr(Qr({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",b.inactive));if(b.type==="none")return null;var y=Ta(b.value)?null:b.value;Ma(!Ta(b.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 w=b.inactive?c:b.color;return E.createElement("li",lc({className:v,style:u,key:"legend-item-".concat(g)},yI(r.props,b,g)),E.createElement(EI,{width:i,height:i,viewBox:p,style:m},r.renderIcon(b)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},h?h(y,b,g):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(E.PureComponent);Qr(uc,"displayName","Legend"),Qr(uc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dc,fb;function gj(){if(fb)return dc;fb=1;var e=_a();function t(){this.__data__=new e,this.size=0}return dc=t,dc}var fc,pb;function vj(){if(pb)return fc;pb=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return fc=e,fc}var pc,mb;function bj(){if(mb)return pc;mb=1;function e(t){return this.__data__.get(t)}return pc=e,pc}var mc,hb;function yj(){if(hb)return mc;hb=1;function e(t){return this.__data__.has(t)}return mc=e,mc}var hc,gb;function wj(){if(gb)return hc;gb=1;var e=_a(),t=wl(),n=Nl(),r=200;function o(a,i){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([a,i]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(a,i),this.size=s.size,this}return hc=o,hc}var gc,vb;function bb(){if(vb)return gc;vb=1;var e=_a(),t=gj(),n=vj(),r=bj(),o=yj(),a=wj();function i(s){var l=this.__data__=new e(s);this.size=l.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=o,i.prototype.set=a,gc=i,gc}var vc,yb;function xj(){if(yb)return vc;yb=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return vc=t,vc}var bc,wb;function Sj(){if(wb)return bc;wb=1;function e(t){return this.__data__.has(t)}return bc=e,bc}var yc,xb;function Sb(){if(xb)return yc;xb=1;var e=Nl(),t=xj(),n=Sj();function r(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,yc=r,yc}var wc,Cb;function Cj(){if(Cb)return wc;Cb=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return wc=e,wc}var xc,_b;function Eb(){if(_b)return xc;_b=1;function e(t,n){return t.has(n)}return xc=e,xc}var Sc,Pb;function Tb(){if(Pb)return Sc;Pb=1;var e=Sb(),t=Cj(),n=Eb(),r=1,o=2;function a(i,s,l,c,p,u){var m=l&r,b=i.length,g=s.length;if(b!=g&&!(m&&g>b))return!1;var h=u.get(i),v=u.get(s);if(h&&v)return h==s&&v==i;var y=-1,w=!0,x=l&o?new e:void 0;for(u.set(i,s),u.set(s,i);++y<b;){var S=i[y],_=s[y];if(c)var P=m?c(_,S,y,s,i,u):c(S,_,y,i,s,u);if(P!==void 0){if(P)continue;w=!1;break}if(x){if(!t(s,function(C,M){if(!n(x,M)&&(S===C||p(S,C,l,c,u)))return x.push(M)})){w=!1;break}}else if(!(S===_||p(S,_,l,c,u))){w=!1;break}}return u.delete(i),u.delete(s),w}return Sc=a,Sc}var Cc,Rb;function _j(){if(Rb)return Cc;Rb=1;var e=Wt(),t=e.Uint8Array;return Cc=t,Cc}var _c,Nb;function Ej(){if(Nb)return _c;Nb=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return _c=e,_c}var Ec,Ab;function Pc(){if(Ab)return Ec;Ab=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Ec=e,Ec}var Tc,Mb;function Pj(){if(Mb)return Tc;Mb=1;var e=Xr(),t=_j(),n=fl(),r=Tb(),o=Ej(),a=Pc(),i=1,s=2,l="[object Boolean]",c="[object Date]",p="[object Error]",u="[object Map]",m="[object Number]",b="[object RegExp]",g="[object Set]",h="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",x=e?e.prototype:void 0,S=x?x.valueOf:void 0;function _(P,C,M,R,$,D,F){switch(M){case w:if(P.byteLength!=C.byteLength||P.byteOffset!=C.byteOffset)return!1;P=P.buffer,C=C.buffer;case y:return!(P.byteLength!=C.byteLength||!D(new t(P),new t(C)));case l:case c:case m:return n(+P,+C);case p:return P.name==C.name&&P.message==C.message;case b:case h:return P==C+"";case u:var A=o;case g:var k=R&i;if(A||(A=a),P.size!=C.size&&!k)return!1;var L=F.get(P);if(L)return L==C;R|=s,F.set(P,C);var I=r(A(P),A(C),R,$,D,F);return F.delete(P),I;case v:if(S)return S.call(P)==S.call(C)}return!1}return Tc=_,Tc}var Rc,Ob;function Ib(){if(Ob)return Rc;Ob=1;function e(t,n){for(var r=-1,o=n.length,a=t.length;++r<o;)t[a+r]=n[r];return t}return Rc=e,Rc}var Nc,jb;function Tj(){if(jb)return Nc;jb=1;var e=Ib(),t=jt();function n(r,o,a){var i=o(r);return t(r)?i:e(i,a(r))}return Nc=n,Nc}var Ac,Db;function Rj(){if(Db)return Ac;Db=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=0,i=[];++r<o;){var s=t[r];n(s,r,t)&&(i[a++]=s)}return i}return Ac=e,Ac}var Mc,kb;function Nj(){if(kb)return Mc;kb=1;function e(){return[]}return Mc=e,Mc}var Oc,$b;function Aj(){if($b)return Oc;$b=1;var e=Rj(),t=Nj(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return r.call(i,s)}))}:t;return Oc=a,Oc}var Ic,Lb;function Mj(){if(Lb)return Ic;Lb=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return Ic=e,Ic}var jc,Fb;function Oj(){if(Fb)return jc;Fb=1;var e=Dn(),t=kn(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return jc=r,jc}var Dc,Bb;function kc(){if(Bb)return Dc;Bb=1;var e=Oj(),t=kn(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(i){return t(i)&&r.call(i,"callee")&&!o.call(i,"callee")};return Dc=a,Dc}var eo={exports:{}},$c,zb;function Ij(){if(zb)return $c;zb=1;function e(){return!1}return $c=e,$c}eo.exports;var qb;function Hb(){return qb||(qb=1,function(e,t){var n=Wt(),r=Ij(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c}(eo,eo.exports)),eo.exports}var Lc,Vb;function Fc(){if(Vb)return Lc;Vb=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var a=typeof r;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return Lc=n,Lc}var Bc,Gb;function zc(){if(Gb)return Bc;Gb=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Bc=t,Bc}var qc,Ub;function jj(){if(Ub)return qc;Ub=1;var e=Dn(),t=zc(),n=kn(),r="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",p="[object Number]",u="[object Object]",m="[object RegExp]",b="[object Set]",g="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",P="[object Int32Array]",C="[object Uint8Array]",M="[object Uint8ClampedArray]",R="[object Uint16Array]",$="[object Uint32Array]",D={};D[w]=D[x]=D[S]=D[_]=D[P]=D[C]=D[M]=D[R]=D[$]=!0,D[r]=D[o]=D[v]=D[a]=D[y]=D[i]=D[s]=D[l]=D[c]=D[p]=D[u]=D[m]=D[b]=D[g]=D[h]=!1;function F(A){return n(A)&&t(A.length)&&!!D[e(A)]}return qc=F,qc}var Hc,Wb;function Kb(){if(Wb)return Hc;Wb=1;function e(t){return function(n){return t(n)}}return Hc=e,Hc}var to={exports:{}};to.exports;var Yb;function Dj(){return Yb||(Yb=1,function(e,t){var n=Ag(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(to,to.exports)),to.exports}var Vc,Xb;function Zb(){if(Xb)return Vc;Xb=1;var e=jj(),t=Kb(),n=Dj(),r=n&&n.isTypedArray,o=r?t(r):e;return Vc=o,Vc}var Gc,Jb;function kj(){if(Jb)return Gc;Jb=1;var e=Mj(),t=kc(),n=jt(),r=Hb(),o=Fc(),a=Zb(),i=Object.prototype,s=i.hasOwnProperty;function l(c,p){var u=n(c),m=!u&&t(c),b=!u&&!m&&r(c),g=!u&&!m&&!b&&a(c),h=u||m||b||g,v=h?e(c.length,String):[],y=v.length;for(var w in c)(p||s.call(c,w))&&!(h&&(w=="length"||b&&(w=="offset"||w=="parent")||g&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||o(w,y)))&&v.push(w);return v}return Gc=l,Gc}var Uc,Qb;function $j(){if(Qb)return Uc;Qb=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Uc=t,Uc}var Wc,ey;function Lj(){if(ey)return Wc;ey=1;function e(t,n){return function(r){return t(n(r))}}return Wc=e,Wc}var Kc,ty;function Fj(){if(ty)return Kc;ty=1;var e=Lj(),t=e(Object.keys,Object);return Kc=t,Kc}var Yc,ny;function Bj(){if(ny)return Yc;ny=1;var e=$j(),t=Fj(),n=Object.prototype,r=n.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&i.push(s);return i}return Yc=o,Yc}var Xc,ry;function $a(){if(ry)return Xc;ry=1;var e=Xs(),t=zc();function n(r){return r!=null&&t(r.length)&&!e(r)}return Xc=n,Xc}var Zc,oy;function Jc(){if(oy)return Zc;oy=1;var e=kj(),t=Bj(),n=$a();function r(o){return n(o)?e(o):t(o)}return Zc=r,Zc}var Qc,ay;function zj(){if(ay)return Qc;ay=1;var e=Tj(),t=Aj(),n=Jc();function r(o){return e(o,n,t)}return Qc=r,Qc}var eu,iy;function qj(){if(iy)return eu;iy=1;var e=zj(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,i,s,l,c,p){var u=s&t,m=e(a),b=m.length,g=e(i),h=g.length;if(b!=h&&!u)return!1;for(var v=b;v--;){var y=m[v];if(!(u?y in i:r.call(i,y)))return!1}var w=p.get(a),x=p.get(i);if(w&&x)return w==i&&x==a;var S=!0;p.set(a,i),p.set(i,a);for(var _=u;++v<b;){y=m[v];var P=a[y],C=i[y];if(l)var M=u?l(C,P,y,i,a,p):l(P,C,y,a,i,p);if(!(M===void 0?P===C||c(P,C,s,l,p):M)){S=!1;break}_||(_=y=="constructor")}if(S&&!_){var R=a.constructor,$=i.constructor;R!=$&&"constructor"in a&&"constructor"in i&&!(typeof R=="function"&&R instanceof R&&typeof $=="function"&&$ instanceof $)&&(S=!1)}return p.delete(a),p.delete(i),S}return eu=o,eu}var tu,sy;function Hj(){if(sy)return tu;sy=1;var e=$n(),t=Wt(),n=e(t,"DataView");return tu=n,tu}var nu,ly;function Vj(){if(ly)return nu;ly=1;var e=$n(),t=Wt(),n=e(t,"Promise");return nu=n,nu}var ru,cy;function uy(){if(cy)return ru;cy=1;var e=$n(),t=Wt(),n=e(t,"Set");return ru=n,ru}var ou,dy;function Gj(){if(dy)return ou;dy=1;var e=$n(),t=Wt(),n=e(t,"WeakMap");return ou=n,ou}var au,fy;function Uj(){if(fy)return au;fy=1;var e=Hj(),t=wl(),n=Vj(),r=uy(),o=Gj(),a=Dn(),i=Vg(),s="[object Map]",l="[object Object]",c="[object Promise]",p="[object Set]",u="[object WeakMap]",m="[object DataView]",b=i(e),g=i(t),h=i(n),v=i(r),y=i(o),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=m||t&&w(new t)!=s||n&&w(n.resolve())!=c||r&&w(new r)!=p||o&&w(new o)!=u)&&(w=function(x){var S=a(x),_=S==l?x.constructor:void 0,P=_?i(_):"";if(P)switch(P){case b:return m;case g:return s;case h:return c;case v:return p;case y:return u}return S}),au=w,au}var iu,py;function Wj(){if(py)return iu;py=1;var e=bb(),t=Tb(),n=Pj(),r=qj(),o=Uj(),a=jt(),i=Hb(),s=Zb(),l=1,c="[object Arguments]",p="[object Array]",u="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function g(h,v,y,w,x,S){var _=a(h),P=a(v),C=_?p:o(h),M=P?p:o(v);C=C==c?u:C,M=M==c?u:M;var R=C==u,$=M==u,D=C==M;if(D&&i(h)){if(!i(v))return!1;_=!0,R=!1}if(D&&!R)return S||(S=new e),_||s(h)?t(h,v,y,w,x,S):n(h,v,C,y,w,x,S);if(!(y&l)){var F=R&&b.call(h,"__wrapped__"),A=$&&b.call(v,"__wrapped__");if(F||A){var k=F?h.value():h,L=A?v.value():v;return S||(S=new e),x(k,L,y,w,S)}}return D?(S||(S=new e),r(h,v,y,w,x,S)):!1}return iu=g,iu}var su,my;function hy(){if(my)return su;my=1;var e=Wj(),t=kn();function n(r,o,a,i,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,i,n,s)}return su=n,su}var lu,gy;function Kj(){if(gy)return lu;gy=1;var e=bb(),t=hy(),n=1,r=2;function o(a,i,s,l){var c=s.length,p=c,u=!l;if(a==null)return!p;for(a=Object(a);c--;){var m=s[c];if(u&&m[2]?m[1]!==a[m[0]]:!(m[0]in a))return!1}for(;++c<p;){m=s[c];var b=m[0],g=a[b],h=m[1];if(u&&m[2]){if(g===void 0&&!(b in a))return!1}else{var v=new e;if(l)var y=l(g,h,b,a,i,v);if(!(y===void 0?t(h,g,n|r,l,v):y))return!1}}return!0}return lu=o,lu}var cu,vy;function by(){if(vy)return cu;vy=1;var e=vn();function t(n){return n===n&&!e(n)}return cu=t,cu}var uu,yy;function Yj(){if(yy)return uu;yy=1;var e=by(),t=Jc();function n(r){for(var o=t(r),a=o.length;a--;){var i=o[a],s=r[i];o[a]=[i,s,e(s)]}return o}return uu=n,uu}var du,wy;function xy(){if(wy)return du;wy=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return du=e,du}var fu,Sy;function Xj(){if(Sy)return fu;Sy=1;var e=Kj(),t=Yj(),n=xy();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return fu=r,fu}var pu,Cy;function Zj(){if(Cy)return pu;Cy=1;function e(t,n){return t!=null&&n in Object(t)}return pu=e,pu}var mu,_y;function Jj(){if(_y)return mu;_y=1;var e=Tv(),t=kc(),n=jt(),r=Fc(),o=zc(),a=Pa();function i(s,l,c){l=e(l,s);for(var p=-1,u=l.length,m=!1;++p<u;){var b=a(l[p]);if(!(m=s!=null&&c(s,b)))break;s=s[b]}return m||++p!=u?m:(u=s==null?0:s.length,!!u&&o(u)&&r(b,u)&&(n(s)||t(s)))}return mu=i,mu}var hu,Ey;function Qj(){if(Ey)return hu;Ey=1;var e=Zj(),t=Jj();function n(r,o){return r!=null&&t(r,o,e)}return hu=n,hu}var gu,Py;function eD(){if(Py)return gu;Py=1;var e=hy(),t=Mv(),n=Qj(),r=Ws(),o=by(),a=xy(),i=Pa(),s=1,l=2;function c(p,u){return r(p)&&o(u)?a(i(p),u):function(m){var b=t(m,p);return b===void 0&&b===u?n(m,p):e(u,b,s|l)}}return gu=c,gu}var vu,Ty;function La(){if(Ty)return vu;Ty=1;function e(t){return t}return vu=e,vu}var bu,Ry;function tD(){if(Ry)return bu;Ry=1;function e(t){return function(n){return n==null?void 0:n[t]}}return bu=e,bu}var yu,Ny;function nD(){if(Ny)return yu;Ny=1;var e=Fl();function t(n){return function(r){return e(r,n)}}return yu=t,yu}var wu,Ay;function rD(){if(Ay)return wu;Ay=1;var e=tD(),t=nD(),n=Ws(),r=Pa();function o(a){return n(a)?e(r(a)):t(a)}return wu=o,wu}var xu,My;function Oy(){if(My)return xu;My=1;var e=Xj(),t=eD(),n=La(),r=jt(),o=rD();function a(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):o(i)}return xu=a,xu}var Su,Iy;function oD(){if(Iy)return Su;Iy=1;function e(t,n,r,o){for(var a=t.length,i=r+(o?1:-1);o?i--:++i<a;)if(n(t[i],i,t))return i;return-1}return Su=e,Su}var Cu,jy;function aD(){if(jy)return Cu;jy=1;function e(t){return t!==t}return Cu=e,Cu}var _u,Dy;function iD(){if(Dy)return _u;Dy=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return _u=e,_u}var Eu,ky;function sD(){if(ky)return Eu;ky=1;var e=oD(),t=aD(),n=iD();function r(o,a,i){return a===a?n(o,a,i):e(o,t,i)}return Eu=r,Eu}var Pu,$y;function lD(){if($y)return Pu;$y=1;var e=sD();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Pu=t,Pu}var Tu,Ly;function cD(){if(Ly)return Tu;Ly=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return Tu=e,Tu}var Ru,Fy;function uD(){if(Fy)return Ru;Fy=1;function e(){}return Ru=e,Ru}var Nu,By;function dD(){if(By)return Nu;By=1;var e=uy(),t=uD(),n=Pc(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return Nu=o,Nu}var Au,zy;function fD(){if(zy)return Au;zy=1;var e=Sb(),t=lD(),n=cD(),r=Eb(),o=dD(),a=Pc(),i=200;function s(l,c,p){var u=-1,m=t,b=l.length,g=!0,h=[],v=h;if(p)g=!1,m=n;else if(b>=i){var y=c?null:o(l);if(y)return a(y);g=!1,m=r,v=new e}else v=c?[]:h;e:for(;++u<b;){var w=l[u],x=c?c(w):w;if(w=p||w!==0?w:0,g&&x===x){for(var S=v.length;S--;)if(v[S]===x)continue e;c&&v.push(x),h.push(w)}else m(v,x,p)||(v!==h&&v.push(x),h.push(w))}return h}return Au=s,Au}var Mu,qy;function pD(){if(qy)return Mu;qy=1;var e=Oy(),t=fD();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return Mu=n,Mu}var mD=pD();const Hy=Gt(mD);function Vy(e,t,n){return t===!0?Hy(e,n):Ta(t)?Hy(e,t):e}function lr(e){"@babel/helpers - typeof";return lr=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},lr(e)}var hD=["ref"];function Gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gy(Object(n),!0).forEach(function(r){Ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ky(r.key),r)}}function vD(e,t,n){return t&&Uy(e.prototype,t),n&&Uy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bD(e,t,n){return t=Fa(t),yD(e,Wy()?Reflect.construct(t,n||[],Fa(e).constructor):t.apply(e,n))}function yD(e,t){if(t&&(lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wD(e)}function wD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wy=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fa(e)}function xD(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&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ou(e,t)}function Ba(e,t,n){return t=Ky(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e){var t=SD(e,"string");return lr(t)=="symbol"?t:t+""}function SD(e,t){if(lr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function CD(e,t){if(e==null)return{};var n=_D(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _D(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ED(e){return e.value}function PD(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var n=CD(t,hD);return E.createElement(uc,n)}var Yy=1,Iu=function(e){function t(){var n;gD(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=bD(this,t,[].concat(o)),Ba(n,"lastBoundingBox",{width:-1,height:-1}),n}return xD(t,e),vD(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>Yy||Math.abs(o.height-this.lastBoundingBox.height)>Yy)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?un({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,p=o.chartHeight,u,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(i==="center"&&a==="vertical"){var b=this.getBBoxSnapshot();u={left:((c||0)-b.width)/2}}else u=i==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();m={top:((p||0)-g.height)/2}}else m=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return un(un({},u),m)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,i=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,p=o.payload,u=un(un({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return E.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(b){r.wrapperNode=b}},PD(a,un(un({},this.props),{},{payload:Vy(p,c,ED)})))}}],[{key:"getWithHeight",value:function(r,o){var a=un(un({},this.defaultProps),r.props),i=a.layout;return i==="vertical"&&Dt(r.props.height)?{height:r.props.height}:i==="horizontal"?{width:r.props.width||o}:null}}])}(E.PureComponent);Ba(Iu,"displayName","Legend"),Ba(Iu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ju,Xy;function TD(){if(Xy)return ju;Xy=1;var e=Xr(),t=kc(),n=jt(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return ju=o,ju}var Du,Zy;function RD(){if(Zy)return Du;Zy=1;var e=Ib(),t=TD();function n(r,o,a,i,s){var l=-1,c=r.length;for(a||(a=t),s||(s=[]);++l<c;){var p=r[l];o>0&&a(p)?o>1?n(p,o-1,a,i,s):e(s,p):i||(s[s.length]=p)}return s}return Du=n,Du}var ku,Jy;function ND(){if(Jy)return ku;Jy=1;function e(t){return function(n,r,o){for(var a=-1,i=Object(n),s=o(n),l=s.length;l--;){var c=s[t?l:++a];if(r(i[c],c,i)===!1)break}return n}}return ku=e,ku}var $u,Qy;function AD(){if(Qy)return $u;Qy=1;var e=ND(),t=e();return $u=t,$u}var Lu,ew;function MD(){if(ew)return Lu;ew=1;var e=AD(),t=Jc();function n(r,o){return r&&e(r,o,t)}return Lu=n,Lu}var Fu,tw;function OD(){if(tw)return Fu;tw=1;var e=$a();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var i=o.length,s=r?i:-1,l=Object(o);(r?s--:++s<i)&&a(l[s],s,l)!==!1;);return o}}return Fu=t,Fu}var Bu,nw;function ID(){if(nw)return Bu;nw=1;var e=MD(),t=OD(),n=t(e);return Bu=n,Bu}var zu,rw;function jD(){if(rw)return zu;rw=1;var e=ID(),t=$a();function n(r,o){var a=-1,i=t(r)?Array(r.length):[];return e(r,function(s,l,c){i[++a]=o(s,l,c)}),i}return zu=n,zu}var qu,ow;function DD(){if(ow)return qu;ow=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return qu=e,qu}var Hu,aw;function kD(){if(aw)return Hu;aw=1;var e=Zr();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,i=n===n,s=e(n),l=r!==void 0,c=r===null,p=r===r,u=e(r);if(!c&&!u&&!s&&n>r||s&&l&&p&&!c&&!u||a&&l&&p||!o&&p||!i)return 1;if(!a&&!s&&!u&&n<r||u&&o&&i&&!a&&!s||c&&o&&i||!l&&i||!p)return-1}return 0}return Hu=t,Hu}var Vu,iw;function $D(){if(iw)return Vu;iw=1;var e=kD();function t(n,r,o){for(var a=-1,i=n.criteria,s=r.criteria,l=i.length,c=o.length;++a<l;){var p=e(i[a],s[a]);if(p){if(a>=c)return p;var u=o[a];return p*(u=="desc"?-1:1)}}return n.index-r.index}return Vu=t,Vu}var Gu,sw;function LD(){if(sw)return Gu;sw=1;var e=Sv(),t=Fl(),n=Oy(),r=jD(),o=DD(),a=Kb(),i=$D(),s=La(),l=jt();function c(p,u,m){u.length?u=e(u,function(h){return l(h)?function(v){return t(v,h.length===1?h[0]:h)}:h}):u=[s];var b=-1;u=e(u,a(n));var g=r(p,function(h,v,y){var w=e(u,function(x){return x(h)});return{criteria:w,index:++b,value:h}});return o(g,function(h,v){return i(h,v,m)})}return Gu=c,Gu}var Uu,lw;function FD(){if(lw)return Uu;lw=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Uu=e,Uu}var Wu,cw;function BD(){if(cw)return Wu;cw=1;var e=FD(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var i=arguments,s=-1,l=t(i.length-o,0),c=Array(l);++s<l;)c[s]=i[o+s];s=-1;for(var p=Array(o+1);++s<o;)p[s]=i[s];return p[o]=a(c),e(r,this,p)}}return Wu=n,Wu}var Ku,uw;function zD(){if(uw)return Ku;uw=1;function e(t){return function(){return t}}return Ku=e,Ku}var Yu,dw;function qD(){if(dw)return Yu;dw=1;var e=$n(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return Yu=t,Yu}var Xu,fw;function HD(){if(fw)return Xu;fw=1;var e=zD(),t=qD(),n=La(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return Xu=r,Xu}var Zu,pw;function VD(){if(pw)return Zu;pw=1;var e=800,t=16,n=Date.now;function r(o){var a=0,i=0;return function(){var s=n(),l=t-(s-i);if(i=s,l>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Zu=r,Zu}var Ju,mw;function GD(){if(mw)return Ju;mw=1;var e=HD(),t=VD(),n=t(e);return Ju=n,Ju}var Qu,hw;function UD(){if(hw)return Qu;hw=1;var e=La(),t=BD(),n=GD();function r(o,a){return n(t(o,a,e),o+"")}return Qu=r,Qu}var ed,gw;function WD(){if(gw)return ed;gw=1;var e=fl(),t=$a(),n=Fc(),r=vn();function o(a,i,s){if(!r(s))return!1;var l=typeof i;return(l=="number"?t(s)&&n(i,s.length):l=="string"&&i in s)?e(s[i],a):!1}return ed=o,ed}var td,vw;function KD(){if(vw)return td;vw=1;var e=RD(),t=LD(),n=UD(),r=WD(),o=n(function(a,i){if(a==null)return[];var s=i.length;return s>1&&r(a,i[0],i[1])?i=[]:s>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return td=o,td}var YD=KD();const XD=Gt(YD);function no(e){"@babel/helpers - typeof";return no=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},no(e)}function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nd.apply(this,arguments)}function ZD(e,t){return tk(e)||ek(e,t)||QD(e,t)||JD()}function JD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
200
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QD(e,t){if(e){if(typeof e=="string")return bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bw(e,t)}}function bw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ek(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(p){c=!0,o=p}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function tk(e){if(Array.isArray(e))return e}function yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yw(Object(n),!0).forEach(function(r){nk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nk(e,t,n){return t=rk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rk(e){var t=ok(e,"string");return no(t)=="symbol"?t:t+""}function ok(e,t){if(no(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(no(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ak(e){return Array.isArray(e)&&Aa(e[0])&&Aa(e[1])?e.join(" ~ "):e}var ik=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,c=l===void 0?{}:l,p=t.payload,u=t.formatter,m=t.itemSorter,b=t.wrapperClassName,g=t.labelClassName,h=t.label,v=t.labelFormatter,y=t.accessibilityLayer,w=y===void 0?!1:y,x=function(){if(p&&p.length){var F={padding:0,margin:0},A=(m?XD(p,m):p).map(function(k,L){if(k.type==="none")return null;var I=rd({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},s),U=k.formatter||u||ak,V=k.value,q=k.name,ae=V,J=q;if(U&&ae!=null&&J!=null){var ne=U(V,q,k,L,p);if(Array.isArray(ne)){var z=ZD(ne,2);ae=z[0],J=z[1]}else ae=ne}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:I},Aa(J)?E.createElement("span",{className:"recharts-tooltip-item-name"},J):null,Aa(J)?E.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,E.createElement("span",{className:"recharts-tooltip-item-value"},ae),E.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:F},A)}return null},S=rd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=rd({margin:0},c),P=!rI(h),C=P?h:"",M=on("recharts-default-tooltip",b),R=on("recharts-tooltip-label",g);P&&v&&p!==void 0&&p!==null&&(C=v(h,p));var $=w?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",nd({className:M,style:S},$),E.createElement("p",{className:R,style:_},E.isValidElement(C)?C:"".concat(C)),x())};function ro(e){"@babel/helpers - typeof";return ro=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},ro(e)}function za(e,t,n){return t=sk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sk(e){var t=lk(e,"string");return ro(t)=="symbol"?t:t+""}function lk(e,t){if(ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oo="recharts-tooltip-wrapper",ck={visibility:"hidden"};function uk(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return on(oo,za(za(za(za({},"".concat(oo,"-right"),Dt(n)&&t&&Dt(t.x)&&n>=t.x),"".concat(oo,"-left"),Dt(n)&&t&&Dt(t.x)&&n<t.x),"".concat(oo,"-bottom"),Dt(r)&&t&&Dt(t.y)&&r>=t.y),"".concat(oo,"-top"),Dt(r)&&t&&Dt(t.y)&&r<t.y))}function ww(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&Dt(a[r]))return a[r];var p=n[r]-s-o,u=n[r]+o;if(t[r])return i[r]?p:u;if(i[r]){var m=p,b=l[r];return m<b?Math.max(u,l[r]):Math.max(p,l[r])}var g=u+s,h=l[r]+c;return g>h?Math.max(p,l[r]):Math.max(u,l[r])}function dk(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function fk(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,p,u;return i.height>0&&i.width>0&&n?(p=ww({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:l,viewBoxDimension:l.width}),u=ww({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:l,viewBoxDimension:l.height}),c=dk({translateX:p,translateY:u,useTranslate3d:s})):c=ck,{cssProperties:c,cssClasses:uk({translateX:p,translateY:u,coordinate:n})}}function cr(e){"@babel/helpers - typeof";return cr=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},cr(e)}function xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(n),!0).forEach(function(r){ad(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_w(r.key),r)}}function hk(e,t,n){return t&&mk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gk(e,t,n){return t=qa(t),vk(e,Cw()?Reflect.construct(t,n||[],qa(e).constructor):t.apply(e,n))}function vk(e,t){if(t&&(cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bk(e)}function bk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cw=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qa(e)}function yk(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&&od(e,t)}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},od(e,t)}function ad(e,t,n){return t=_w(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _w(e){var t=wk(e,"string");return cr(t)=="symbol"?t:t+""}function wk(e,t){if(cr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ew=1,xk=function(e){function t(){var n;pk(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=gk(this,t,[].concat(o)),ad(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ad(n,"handleKeyDown",function(i){if(i.key==="Escape"){var s,l,c,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&c!==void 0?c:0}})}}),n}return yk(t,e),hk(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Ew||Math.abs(r.height-this.state.lastBoundingBox.height)>Ew)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,p=o.coordinate,u=o.hasPayload,m=o.isAnimationActive,b=o.offset,g=o.position,h=o.reverseDirection,v=o.useTranslate3d,y=o.viewBox,w=o.wrapperStyle,x=fk({allowEscapeViewBox:i,coordinate:p,offsetTopLeft:b,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),S=x.cssClasses,_=x.cssProperties,P=Sw(Sw({transition:m&&a?"transform ".concat(s,"ms ").concat(l):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&u?"visible":"hidden",position:"absolute",top:0,left:0},w);return E.createElement("div",{tabIndex:-1,className:S,style:P,ref:function(M){r.wrapperNode=M}},c)}}])}(E.PureComponent),Sk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ck={isSsr:Sk()};function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}function Pw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(n),!0).forEach(function(r){sd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ek(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nw(r.key),r)}}function Pk(e,t,n){return t&&Ek(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tk(e,t,n){return t=Ha(t),Rk(e,Rw()?Reflect.construct(t,n||[],Ha(e).constructor):t.apply(e,n))}function Rk(e,t){if(t&&(ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nk(e)}function Nk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rw=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ha(e)}function Ak(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&&id(e,t)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},id(e,t)}function sd(e,t,n){return t=Nw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nw(e){var t=Mk(e,"string");return ur(t)=="symbol"?t:t+""}function Mk(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ok(e){return e.dataKey}function Ik(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(ik,t)}var ld=function(e){function t(){return _k(this,t),Tk(this,t,arguments)}return Ak(t,e),Pk(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.content,p=o.coordinate,u=o.filterNull,m=o.isAnimationActive,b=o.offset,g=o.payload,h=o.payloadUniqBy,v=o.position,y=o.reverseDirection,w=o.useTranslate3d,x=o.viewBox,S=o.wrapperStyle,_=g??[];u&&_.length&&(_=Vy(g.filter(function(C){return C.value!=null&&(C.hide!==!0||r.props.includeHidden)}),h,Ok));var P=_.length>0;return E.createElement(xk,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:m,active:a,coordinate:p,hasPayload:P,offset:b,position:v,reverseDirection:y,useTranslate3d:w,viewBox:x,wrapperStyle:S},Ik(c,Tw(Tw({},this.props),{},{payload:_})))}}])}(E.PureComponent);sd(ld,"displayName","Tooltip"),sd(ld,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ck.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 cd,Aw;function jk(){if(Aw)return cd;Aw=1;var e=Wt(),t=function(){return e.Date.now()};return cd=t,cd}var ud,Mw;function Dk(){if(Mw)return ud;Mw=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return ud=t,ud}var dd,Ow;function kk(){if(Ow)return dd;Ow=1;var e=Dk(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return dd=n,dd}var fd,Iw;function $k(){if(Iw)return fd;Iw=1;var e=kk(),t=vn(),n=Zr(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=t(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=e(c);var u=a.test(c);return u||i.test(c)?s(c.slice(2),u?2:8):o.test(c)?r:+c}return fd=l,fd}var pd,jw;function Lk(){if(jw)return pd;jw=1;var e=vn(),t=jk(),n=$k(),r="Expected a function",o=Math.max,a=Math.min;function i(s,l,c){var p,u,m,b,g,h,v=0,y=!1,w=!1,x=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(y=!!c.leading,w="maxWait"in c,m=w?o(n(c.maxWait)||0,l):m,x="trailing"in c?!!c.trailing:x);function S(A){var k=p,L=u;return p=u=void 0,v=A,b=s.apply(L,k),b}function _(A){return v=A,g=setTimeout(M,l),y?S(A):b}function P(A){var k=A-h,L=A-v,I=l-k;return w?a(I,m-L):I}function C(A){var k=A-h,L=A-v;return h===void 0||k>=l||k<0||w&&L>=m}function M(){var A=t();if(C(A))return R(A);g=setTimeout(M,P(A))}function R(A){return g=void 0,x&&p?S(A):(p=u=void 0,b)}function $(){g!==void 0&&clearTimeout(g),v=0,p=h=u=g=void 0}function D(){return g===void 0?b:R(t())}function F(){var A=t(),k=C(A);if(p=arguments,u=this,h=A,k){if(g===void 0)return _(h);if(w)return clearTimeout(g),g=setTimeout(M,l),S(h)}return g===void 0&&(g=setTimeout(M,l)),b}return F.cancel=$,F.flush=D,F}return pd=i,pd}var md,Dw;function Fk(){if(Dw)return md;Dw=1;var e=Lk(),t=vn(),n="Expected a function";function r(o,a,i){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),e(o,a,{leading:s,maxWait:a,trailing:l})}return md=r,md}var Bk=Fk();const zk=Gt(Bk);function ao(e){"@babel/helpers - typeof";return ao=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},ao(e)}function kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(n),!0).forEach(function(r){qk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qk(e,t,n){return t=Hk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hk(e){var t=Vk(e,"string");return ao(t)=="symbol"?t:t+""}function Vk(e,t){if(ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gk(e,t){return Yk(e)||Kk(e,t)||Wk(e,t)||Uk()}function Uk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
201
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wk(e,t){if(e){if(typeof e=="string")return $w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $w(e,t)}}function $w(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(p){c=!0,o=p}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Yk(e){if(Array.isArray(e))return e}var Xk=E.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,i=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,p=c===void 0?0:c,u=e.minHeight,m=e.maxHeight,b=e.children,g=e.debounce,h=g===void 0?0:g,v=e.id,y=e.className,w=e.onResize,x=e.style,S=x===void 0?{}:x,_=E.useRef(null),P=E.useRef();P.current=w,E.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var C=E.useState({containerWidth:o.width,containerHeight:o.height}),M=Gk(C,2),R=M[0],$=M[1],D=E.useCallback(function(A,k){$(function(L){var I=Math.round(A),U=Math.round(k);return L.containerWidth===I&&L.containerHeight===U?L:{containerWidth:I,containerHeight:U}})},[]);E.useEffect(function(){var A=function(q){var ae,J=q[0].contentRect,ne=J.width,z=J.height;D(ne,z),(ae=P.current)===null||ae===void 0||ae.call(P,ne,z)};h>0&&(A=zk(A,h,{trailing:!0,leading:!1}));var k=new ResizeObserver(A),L=_.current.getBoundingClientRect(),I=L.width,U=L.height;return D(I,U),k.observe(_.current),function(){k.disconnect()}},[D,h]);var F=E.useMemo(function(){var A=R.containerWidth,k=R.containerHeight;if(A<0||k<0)return null;Ma(Na(i)||Na(l),`The width(%s) and height(%s) are both fixed numbers,
202
+ maybe you don't need to use a ResponsiveContainer.`,i,l),Ma(!n||n>0,"The aspect(%s) must be greater than zero.",n);var L=Na(i)?A:i,I=Na(l)?k:l;n&&n>0&&(L?I=L/n:I&&(L=I*n),m&&I>m&&(I=m)),Ma(L>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
203
+ please check the style of container, or the props width(%s) and height(%s),
204
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
205
+ height and width.`,L,I,i,l,p,u,n);var U=!Array.isArray(b)&&wI(b.type).endsWith("Chart");return E.Children.map(b,function(V){return E.isValidElement(V)?E.cloneElement(V,Va({width:L,height:I},U?{style:Va({height:"100%",width:"100%",maxHeight:I,maxWidth:L},V.props.style)}:{})):V})},[n,b,l,m,u,p,R,i]);return E.createElement("div",{id:v?"".concat(v):void 0,className:on("recharts-responsive-container",y),style:Va(Va({},S),{},{width:i,height:l,minWidth:p,minHeight:u,maxHeight:m}),ref:_},F)});const Zk={light:"",dark:".dark"},Lw=d.createContext(null);function Fw(){const e=d.useContext(Lw);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const hd=d.forwardRef(({id:e,className:t,children:n,config:r,...o},a)=>{const i=d.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return f.jsx(Lw.Provider,{value:{config:r},children:f.jsxs("div",{"data-chart":s,ref:a,className:O("flex aspect-video justify-center text-xs [&_.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-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.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 [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[f.jsx(Bw,{id:s,config:r}),f.jsx(Xk,{children:n})]})})});hd.displayName="Chart";const Bw=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?f.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Zk).map(([r,o])=>`
206
+ ${o} [data-chart=${e}] {
207
+ ${n.map(([a,i])=>{var l;const s=((l=i.theme)==null?void 0:l[r])||i.color;return s?` --color-${a}: ${s};`:null}).join(`
208
+ `)}
209
+ }
210
+ `).join(`
211
+ `)}}):null},Jk=ld,zw=d.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:l,formatter:c,color:p,nameKey:u,labelKey:m},b)=>{const{config:g}=Fw(),h=d.useMemo(()=>{var _;if(o||!(t!=null&&t.length))return null;const[y]=t,w=`${m||(y==null?void 0:y.dataKey)||(y==null?void 0:y.name)||"value"}`,x=gd(g,y,w),S=!m&&typeof i=="string"?((_=g[i])==null?void 0:_.label)||i:x==null?void 0:x.label;return s?f.jsx("div",{className:O("font-medium",l),children:s(S,t)}):S?f.jsx("div",{className:O("font-medium",l),children:S}):null},[i,s,t,o,l,g,m]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&r!=="dot";return f.jsxs("div",{ref:b,className:O("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[v?null:h,f.jsx("div",{className:"grid gap-1.5",children:t.map((y,w)=>{const x=`${u||y.name||y.dataKey||"value"}`,S=gd(g,y,x),_=p||y.payload.fill||y.color;return f.jsx("div",{className:O("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:c&&(y==null?void 0:y.value)!==void 0&&y.name?c(y.value,y.name,y,w,y.payload):f.jsxs(f.Fragment,{children:[S!=null&&S.icon?f.jsx(S.icon,{}):!a&&f.jsx("div",{className:O("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":v&&r==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),f.jsxs("div",{className:O("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[f.jsxs("div",{className:"grid gap-1.5",children:[v?h:null,f.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||y.name})]}),y.value&&f.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});zw.displayName="ChartTooltip";const Qk=Iu,qw=d.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},a)=>{const{config:i}=Fw();return n!=null&&n.length?f.jsx("div",{ref:a,className:O("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(s=>{const l=`${o||s.dataKey||"value"}`,c=gd(i,s,l);return f.jsxs("div",{className:O("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c!=null&&c.icon&&!t?f.jsx(c.icon,{}):f.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),c==null?void 0:c.label]},s.value)})}):null});qw.displayName="ChartLegend";function gd(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function dr(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function io(e){const[t,n]=d.useState(void 0);return Be(()=>{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 i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var vd="Checkbox",[e$,t3]=De(vd),[t$,n$]=e$(vd),Hw=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,form:p,...u}=e,[m,b]=d.useState(null),g=fe(t,S=>b(S)),h=d.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,w]=$e({prop:o,defaultProp:a,onChange:c}),x=d.useRef(y);return d.useEffect(()=>{const S=m==null?void 0:m.form;if(S){const _=()=>w(x.current);return S.addEventListener("reset",_),()=>S.removeEventListener("reset",_)}},[m,w]),f.jsxs(t$,{scope:n,state:y,disabled:s,children:[f.jsx(Z.button,{type:"button",role:"checkbox","aria-checked":bn(y)?"mixed":y,"aria-required":i,"data-state":Uw(y),"data-disabled":s?"":void 0,disabled:s,value:l,...u,ref:g,onKeyDown:B(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:B(e.onClick,S=>{w(_=>bn(_)?!0:!_),v&&(h.current=S.isPropagationStopped(),h.current||S.stopPropagation())})}),v&&f.jsx(r$,{control:m,bubbles:!h.current,name:r,value:l,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"},defaultChecked:bn(a)?!1:a})]})});Hw.displayName=vd;var Vw="CheckboxIndicator",Gw=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=n$(Vw,n);return f.jsx(Le,{present:r||bn(a.state)||a.state===!0,children:f.jsx(Z.span,{"data-state":Uw(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Gw.displayName=Vw;var r$=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,i=d.useRef(null),s=dr(n),l=io(t);d.useEffect(()=>{const p=i.current,u=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==n&&b){const g=new Event("click",{bubbles:r});p.indeterminate=bn(n),b.call(p,bn(n)?!1:n),p.dispatchEvent(g)}},[s,n,r]);const c=d.useRef(bn(n)?!1:n);return f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??c.current,...a,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function bn(e){return e==="indeterminate"}function Uw(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}var Ww=Hw,o$=Gw;const Kw=d.forwardRef(({className:e,...t},n)=>f.jsx(Ww,{ref:n,className:O("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:f.jsx(o$,{className:O("flex items-center justify-center text-current"),children:f.jsx(Br,{className:"h-4 w-4"})})}));Kw.displayName=Ww.displayName;const a$=am,i$=Yi,s$=Zi,l$=["top","right","bottom","left"],yn=Math.min,xt=Math.max,Ga=Math.round,Ua=Math.floor,Kt=e=>({x:e,y:e}),c$={left:"right",right:"left",bottom:"top",top:"bottom"},u$={start:"end",end:"start"};function bd(e,t,n){return xt(e,yn(t,n))}function dn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function yd(e){return e==="x"?"y":"x"}function wd(e){return e==="y"?"height":"width"}function wn(e){return["top","bottom"].includes(fn(e))?"y":"x"}function xd(e){return yd(wn(e))}function d$(e,t,n){n===void 0&&(n=!1);const r=fr(e),o=xd(e),a=wd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Wa(i)),[i,Wa(i)]}function f$(e){const t=Wa(e);return[Sd(e),t,Sd(t)]}function Sd(e){return e.replace(/start|end/g,t=>u$[t])}function p$(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function m$(e,t,n,r){const o=fr(e);let a=p$(fn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Sd)))),a}function Wa(e){return e.replace(/left|right|bottom|top/g,t=>c$[t])}function h$(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yw(e){return typeof e!="number"?h$(e):{top:e,right:e,bottom:e,left:e}}function Ka(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 Xw(e,t,n){let{reference:r,floating:o}=e;const a=wn(t),i=xd(t),s=wd(i),l=fn(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let b;switch(l){case"top":b={x:p,y:r.y-o.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-o.width,y:u};break;default:b={x:r.x,y:r.y}}switch(fr(t)){case"start":b[i]-=m*(n&&c?-1:1);break;case"end":b[i]+=m*(n&&c?-1:1);break}return b}const g$=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=Xw(c,r,l),m=r,b={},g=0;for(let h=0;h<s.length;h++){const{name:v,fn:y}=s[h],{x:w,y:x,data:S,reset:_}=await y({x:p,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:b,rects:c,platform:i,elements:{reference:e,floating:t}});p=w??p,u=x??u,b={...b,[v]:{...b[v],...S}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(c=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:p,y:u}=Xw(c,m,l)),h=-1)}return{x:p,y:u,placement:m,strategy:o,middlewareData:b}};async function so(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:m=!1,padding:b=0}=dn(t,e),g=Yw(b),v=s[m?u==="floating"?"reference":"floating":u],y=Ka(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),w=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Ka(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-_.top+g.top)/S.y,bottom:(_.bottom-y.bottom+g.bottom)/S.y,left:(y.left-_.left+g.left)/S.x,right:(_.right-y.right+g.right)/S.x}}const v$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:p=0}=dn(e,t)||{};if(c==null)return{};const u=Yw(p),m={x:n,y:r},b=xd(o),g=wd(b),h=await i.getDimensions(c),v=b==="y",y=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[b]-m[b]-a.floating[g],_=m[b]-a.reference[b],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let C=P?P[x]:0;(!C||!await(i.isElement==null?void 0:i.isElement(P)))&&(C=s.floating[x]||a.floating[g]);const M=S/2-_/2,R=C/2-h[g]/2-1,$=yn(u[y],R),D=yn(u[w],R),F=$,A=C-h[g]-D,k=C/2-h[g]/2+M,L=bd(F,k,A),I=!l.arrow&&fr(o)!=null&&k!==L&&a.reference[g]/2-(k<F?$:D)-h[g]/2<0,U=I?k<F?k-F:k-A:0;return{[b]:m[b]+U,data:{[b]:L,centerOffset:k-L-U,...I&&{alignmentOffset:U}},reset:I}}}),b$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=dn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=fn(o),w=wn(s),x=fn(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=m||(x||!h?[Wa(s)]:f$(s)),P=g!=="none";!m&&P&&_.push(...m$(s,h,g,S));const C=[s,..._],M=await so(t,v),R=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&R.push(M[y]),u){const k=d$(o,i,S);R.push(M[k[0]],M[k[1]])}if($=[...$,{placement:o,overflows:R}],!R.every(k=>k<=0)){var D,F;const k=(((D=a.flip)==null?void 0:D.index)||0)+1,L=C[k];if(L)return{data:{index:k,overflows:$},reset:{placement:L}};let I=(F=$.filter(U=>U.overflows[0]<=0).sort((U,V)=>U.overflows[1]-V.overflows[1])[0])==null?void 0:F.placement;if(!I)switch(b){case"bestFit":{var A;const U=(A=$.filter(V=>{if(P){const q=wn(V.placement);return q===w||q==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(q=>q>0).reduce((q,ae)=>q+ae,0)]).sort((V,q)=>V[1]-q[1])[0])==null?void 0:A[0];U&&(I=U);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Zw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jw(e){return l$.some(t=>e[t]>=0)}const y$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=dn(e,t);switch(r){case"referenceHidden":{const a=await so(t,{...o,elementContext:"reference"}),i=Zw(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Jw(i)}}}case"escaped":{const a=await so(t,{...o,altBoundary:!0}),i=Zw(a,n.floating);return{data:{escapedOffsets:i,escaped:Jw(i)}}}default:return{}}}}};async function w$(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=fn(n),s=fr(n),l=wn(n)==="y",c=["left","top"].includes(i)?-1:1,p=a&&l?-1:1,u=dn(t,e);let{mainAxis:m,crossAxis:b,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof g=="number"&&(b=s==="end"?g*-1:g),l?{x:b*p,y:m*c}:{x:m*c,y:b*p}}const x$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await w$(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},S$=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:i=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...l}=dn(e,t),c={x:n,y:r},p=await so(t,l),u=wn(fn(o)),m=yd(u);let b=c[m],g=c[u];if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=b+p[v],x=b-p[y];b=bd(w,b,x)}if(i){const v=u==="y"?"top":"left",y=u==="y"?"bottom":"right",w=g+p[v],x=g-p[y];g=bd(w,g,x)}const h=s.fn({...t,[m]:b,[u]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[u]:i}}}}}},C$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=dn(e,t),p={x:n,y:r},u=wn(o),m=yd(u);let b=p[m],g=p[u];const h=dn(s,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=m==="y"?"height":"width",S=a.reference[m]-a.floating[x]+v.mainAxis,_=a.reference[m]+a.reference[x]-v.mainAxis;b<S?b=S:b>_&&(b=_)}if(c){var y,w;const x=m==="y"?"width":"height",S=["top","left"].includes(fn(o)),_=a.reference[u]-a.floating[x]+(S&&((y=i.offset)==null?void 0:y[u])||0)+(S?0:v.crossAxis),P=a.reference[u]+a.reference[x]+(S?0:((w=i.offset)==null?void 0:w[u])||0)-(S?v.crossAxis:0);g<_?g=_:g>P&&(g=P)}return{[m]:b,[u]:g}}}},_$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=dn(e,t),p=await so(t,c),u=fn(o),m=fr(o),b=wn(o)==="y",{width:g,height:h}=a.floating;let v,y;u==="top"||u==="bottom"?(v=u,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,v=m==="end"?"top":"bottom");const w=h-p.top-p.bottom,x=g-p.left-p.right,S=yn(h-p[v],w),_=yn(g-p[y],x),P=!t.middlewareData.shift;let C=S,M=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),P&&!m){const $=xt(p.left,0),D=xt(p.right,0),F=xt(p.top,0),A=xt(p.bottom,0);b?M=g-2*($!==0||D!==0?$+D:xt(p.left,p.right)):C=h-2*(F!==0||A!==0?F+A:xt(p.top,p.bottom))}await l({...t,availableWidth:M,availableHeight:C});const R=await i.getDimensions(s.floating);return g!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function Ya(){return typeof window<"u"}function pr(e){return Qw(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yt(e){var t;return(t=(Qw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qw(e){return Ya()?e instanceof Node||e instanceof St(e).Node:!1}function Lt(e){return Ya()?e instanceof Element||e instanceof St(e).Element:!1}function Xt(e){return Ya()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function ex(e){return!Ya()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function lo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function E$(e){return["table","td","th"].includes(pr(e))}function Xa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Cd(e){const t=_d(),n=Lt(e)?Ft(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function P$(e){let t=xn(e);for(;Xt(t)&&!mr(t);){if(Cd(t))return t;if(Xa(t))return null;t=xn(t)}return null}function _d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(pr(e))}function Ft(e){return St(e).getComputedStyle(e)}function Za(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xn(e){if(pr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ex(e)&&e.host||Yt(e);return ex(t)?t.host:t}function tx(e){const t=xn(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&lo(t)?t:tx(t)}function co(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=tx(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=St(o);if(a){const s=Ed(i);return t.concat(i,i.visualViewport||[],lo(o)?o:[],s&&n?co(s):[])}return t.concat(o,co(o,[],n))}function Ed(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nx(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Ga(n)!==a||Ga(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Pd(e){return Lt(e)?e:e.contextElement}function hr(e){const t=Pd(e);if(!Xt(t))return Kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=nx(t);let i=(a?Ga(n.width):n.width)/r,s=(a?Ga(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const T$=Kt(0);function rx(e){const t=St(e);return!_d()||!t.visualViewport?T$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function R$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==St(e)?!1:t}function Fn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Pd(e);let i=Kt(1);t&&(r?Lt(r)&&(i=hr(r)):i=hr(e));const s=R$(a,n,r)?rx(a):Kt(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,p=o.width/i.x,u=o.height/i.y;if(a){const m=St(a),b=r&&Lt(r)?St(r):r;let g=m,h=Ed(g);for(;h&&r&&b!==g;){const v=hr(h),y=h.getBoundingClientRect(),w=Ft(h),x=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,p*=v.x,u*=v.y,l+=x,c+=S,g=St(h),h=Ed(g)}}return Ka({width:p,height:u,x:l,y:c})}function Td(e,t){const n=Za(e).scrollLeft;return t?t.left+n:Fn(Yt(e)).left+n}function ox(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Td(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function N$(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Yt(r),s=t?Xa(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=Kt(1);const p=Kt(0),u=Xt(r);if((u||!u&&!a)&&((pr(r)!=="body"||lo(i))&&(l=Za(r)),Xt(r))){const b=Fn(r);c=hr(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}const m=i&&!u&&!a?ox(i,l,!0):Kt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+m.x,y:n.y*c.y-l.scrollTop*c.y+p.y+m.y}}function A$(e){return Array.from(e.getClientRects())}function M$(e){const t=Yt(e),n=Za(e),r=e.ownerDocument.body,o=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Td(e);const s=-n.scrollTop;return Ft(r).direction==="rtl"&&(i+=xt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function O$(e,t){const n=St(e),r=Yt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const c=_d();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function I$(e,t){const n=Fn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Xt(e)?hr(e):Kt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function ax(e,t,n){let r;if(t==="viewport")r=O$(e,n);else if(t==="document")r=M$(Yt(e));else if(Lt(t))r=I$(t,n);else{const o=rx(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ka(r)}function ix(e,t){const n=xn(e);return n===t||!Lt(n)||mr(n)?!1:Ft(n).position==="fixed"||ix(n,t)}function j$(e,t){const n=t.get(e);if(n)return n;let r=co(e,[],!1).filter(s=>Lt(s)&&pr(s)!=="body"),o=null;const a=Ft(e).position==="fixed";let i=a?xn(e):e;for(;Lt(i)&&!mr(i);){const s=Ft(i),l=Cd(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lo(i)&&!l&&ix(e,i))?r=r.filter(p=>p!==i):o=s,i=xn(i)}return t.set(e,r),r}function D$(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Xa(t)?[]:j$(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,p)=>{const u=ax(t,p,o);return c.top=xt(u.top,c.top),c.right=yn(u.right,c.right),c.bottom=yn(u.bottom,c.bottom),c.left=xt(u.left,c.left),c},ax(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function k$(e){const{width:t,height:n}=nx(e);return{width:t,height:n}}function $$(e,t,n){const r=Xt(t),o=Yt(t),a=n==="fixed",i=Fn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Kt(0);if(r||!r&&!a)if((pr(t)!=="body"||lo(o))&&(s=Za(t)),r){const m=Fn(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&(l.x=Td(o));const c=o&&!r&&!a?ox(o,s):Kt(0),p=i.left+s.scrollLeft-l.x-c.x,u=i.top+s.scrollTop-l.y-c.y;return{x:p,y:u,width:i.width,height:i.height}}function Rd(e){return Ft(e).position==="static"}function sx(e,t){if(!Xt(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Yt(e)===n&&(n=n.ownerDocument.body),n}function lx(e,t){const n=St(e);if(Xa(e))return n;if(!Xt(e)){let o=xn(e);for(;o&&!mr(o);){if(Lt(o)&&!Rd(o))return o;o=xn(o)}return n}let r=sx(e,t);for(;r&&E$(r)&&Rd(r);)r=sx(r,t);return r&&mr(r)&&Rd(r)&&!Cd(r)?n:r||P$(e)||n}const L$=async function(e){const t=this.getOffsetParent||lx,n=this.getDimensions,r=await n(e.floating);return{reference:$$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function F$(e){return Ft(e).direction==="rtl"}const B$={convertOffsetParentRelativeRectToViewportRelativeRect:N$,getDocumentElement:Yt,getClippingRect:D$,getOffsetParent:lx,getElementRects:L$,getClientRects:A$,getDimensions:k$,getScale:hr,isElement:Lt,isRTL:F$};function cx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function z$(e,t){let n=null,r;const o=Yt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:m,height:b}=c;if(s||t(),!m||!b)return;const g=Ua(u),h=Ua(o.clientWidth-(p+m)),v=Ua(o.clientHeight-(u+b)),y=Ua(p),x={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:xt(0,yn(1,l))||1};let S=!0;function _(P){const C=P[0].intersectionRatio;if(C!==l){if(!S)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!cx(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return i(!0),a}function q$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Pd(e),p=o||a?[...c?co(c):[],...co(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&s?z$(c,n):null;let m=-1,b=null;i&&(b=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=b)==null||x.observe(t)})),n()}),c&&!l&&b.observe(c),b.observe(t));let g,h=l?Fn(e):null;l&&v();function v(){const y=Fn(e);h&&!cx(h,y)&&n(),h=y,g=requestAnimationFrame(v)}return n(),()=>{var y;p.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u==null||u(),(y=b)==null||y.disconnect(),b=null,l&&cancelAnimationFrame(g)}}const H$=x$,V$=S$,G$=b$,U$=_$,W$=y$,ux=v$,K$=C$,Y$=(e,t,n)=>{const r=new Map,o={platform:B$,...n},a={...o.platform,_c:r};return g$(e,t,{...o,platform:a})};var Ja=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Qa(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(!Qa(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)&&!Qa(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function dx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fx(e,t){const n=dx(e);return Math.round(t*n)/n}function Nd(e){const t=d.useRef(e);return Ja(()=>{t.current=e}),t}function X$(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[p,u]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,b]=d.useState(r);Qa(m,r)||b(r);const[g,h]=d.useState(null),[v,y]=d.useState(null),w=d.useCallback(V=>{V!==P.current&&(P.current=V,h(V))},[]),x=d.useCallback(V=>{V!==C.current&&(C.current=V,y(V))},[]),S=a||g,_=i||v,P=d.useRef(null),C=d.useRef(null),M=d.useRef(p),R=l!=null,$=Nd(l),D=Nd(o),F=Nd(c),A=d.useCallback(()=>{if(!P.current||!C.current)return;const V={placement:t,strategy:n,middleware:m};D.current&&(V.platform=D.current),Y$(P.current,C.current,V).then(q=>{const ae={...q,isPositioned:F.current!==!1};k.current&&!Qa(M.current,ae)&&(M.current=ae,Dr.flushSync(()=>{u(ae)}))})},[m,t,n,D,F]);Ja(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(V=>({...V,isPositioned:!1})))},[c]);const k=d.useRef(!1);Ja(()=>(k.current=!0,()=>{k.current=!1}),[]),Ja(()=>{if(S&&(P.current=S),_&&(C.current=_),S&&_){if($.current)return $.current(S,_,A);A()}},[S,_,A,$,R]);const L=d.useMemo(()=>({reference:P,floating:C,setReference:w,setFloating:x}),[w,x]),I=d.useMemo(()=>({reference:S,floating:_}),[S,_]),U=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!I.floating)return V;const q=fx(I.floating,p.x),ae=fx(I.floating,p.y);return s?{...V,transform:"translate("+q+"px, "+ae+"px)",...dx(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:ae}},[n,s,I.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:A,refs:L,elements:I,floatingStyles:U}),[p,A,L,I,U])}const Z$=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?ux({element:r.current,padding:o}).fn(n):{}:r?ux({element:r,padding:o}).fn(n):{}}}},J$=(e,t)=>({...H$(e),options:[e,t]}),Q$=(e,t)=>({...V$(e),options:[e,t]}),eL=(e,t)=>({...K$(e),options:[e,t]}),tL=(e,t)=>({...G$(e),options:[e,t]}),nL=(e,t)=>({...U$(e),options:[e,t]}),rL=(e,t)=>({...W$(e),options:[e,t]}),oL=(e,t)=>({...Z$(e),options:[e,t]});var aL="Arrow",px=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return f.jsx(Z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});px.displayName=aL;var iL=px,Ad="Popper",[mx,Zt]=De(Ad),[sL,hx]=mx(Ad),gx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return f.jsx(sL,{scope:t,anchor:r,onAnchorChange:o,children:n})};gx.displayName=Ad;var vx="PopperAnchor",bx=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=hx(vx,n),i=d.useRef(null),s=fe(t,i);return d.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:f.jsx(Z.div,{...o,ref:s})});bx.displayName=vx;var Md="PopperContent",[lL,cL]=mx(Md),yx=d.forwardRef((e,t)=>{var H,K,re,Q,oe,G;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:g,...h}=e,v=hx(Md,n),[y,w]=d.useState(null),x=fe(t,ie=>w(ie)),[S,_]=d.useState(null),P=io(S),C=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,R=r+(a!=="center"?"-"+a:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},D=Array.isArray(c)?c:[c],F=D.length>0,A={padding:$,boundary:D.filter(dL),altBoundary:F},{refs:k,floatingStyles:L,placement:I,isPositioned:U,middlewareData:V}=X$({strategy:"fixed",placement:R,whileElementsMounted:(...ie)=>q$(...ie,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[J$({mainAxis:o+M,alignmentAxis:i}),l&&Q$({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?eL():void 0,...A}),l&&tL({...A}),nL({...A,apply:({elements:ie,rects:j,availableWidth:te,availableHeight:me})=>{const{width:he,height:ve}=j.reference,pe=ie.floating.style;pe.setProperty("--radix-popper-available-width",`${te}px`),pe.setProperty("--radix-popper-available-height",`${me}px`),pe.setProperty("--radix-popper-anchor-width",`${he}px`),pe.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),S&&oL({element:S,padding:s}),fL({arrowWidth:C,arrowHeight:M}),m&&rL({strategy:"referenceHidden",...A})]}),[q,ae]=Sx(I),J=Ne(g);Be(()=>{U&&(J==null||J())},[U,J]);const ne=(H=V.arrow)==null?void 0:H.x,z=(K=V.arrow)==null?void 0:K.y,W=((re=V.arrow)==null?void 0:re.centerOffset)!==0,[ee,Y]=d.useState();return Be(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),f.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:U?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(Q=V.transformOrigin)==null?void 0:Q.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((G=V.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(lL,{scope:n,placedSide:q,onArrowChange:_,arrowX:ne,arrowY:z,shouldHideArrow:W,children:f.jsx(Z.div,{"data-side":q,"data-align":ae,...h,ref:x,style:{...h.style,animation:U?void 0:"none"}})})})});yx.displayName=Md;var wx="PopperArrow",uL={top:"bottom",right:"left",bottom:"top",left:"right"},xx=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=cL(wx,r),i=uL[a.placedSide];return f.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:f.jsx(iL,{...o,ref:n,style:{...o.style,display:"block"}})})});xx.displayName=wx;function dL(e){return e!==null}var fL=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,p]=Sx(n),u={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,b=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=i?u:`${m}px`,h=`${-l}px`):c==="top"?(g=i?u:`${m}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=i?u:`${b}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=i?u:`${b}px`),{data:{x:g,y:h}}}});function Sx(e){const[t,n="center"]=e.split("-");return[t,n]}var gr=gx,vr=bx,uo=yx,fo=xx,Od="rovingFocusGroup.onEntryFocus",pL={bubbles:!1,cancelable:!0},ei="RovingFocusGroup",[Id,Cx,mL]=nn(ei),[hL,Jt]=De(ei,[mL]),[gL,vL]=hL(ei),_x=d.forwardRef((e,t)=>f.jsx(Id.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(Id.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(bL,{...e,ref:t})})}));_x.displayName=ei;var bL=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,m=d.useRef(null),b=fe(t,m),g=Mt(a),[h=null,v]=$e({prop:i,defaultProp:s,onChange:l}),[y,w]=d.useState(!1),x=Ne(c),S=Cx(n),_=d.useRef(!1),[P,C]=d.useState(0);return d.useEffect(()=>{const M=m.current;if(M)return M.addEventListener(Od,x),()=>M.removeEventListener(Od,x)},[x]),f.jsx(gL,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(M=>v(M),[v]),onItemShiftTab:d.useCallback(()=>w(!0),[]),onFocusableItemAdd:d.useCallback(()=>C(M=>M+1),[]),onFocusableItemRemove:d.useCallback(()=>C(M=>M-1),[]),children:f.jsx(Z.div,{tabIndex:y||P===0?-1:0,"data-orientation":r,...u,ref:b,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{_.current=!0}),onFocus:B(e.onFocus,M=>{const R=!_.current;if(M.target===M.currentTarget&&R&&!y){const $=new CustomEvent(Od,pL);if(M.currentTarget.dispatchEvent($),!$.defaultPrevented){const D=S().filter(I=>I.focusable),F=D.find(I=>I.active),A=D.find(I=>I.id===h),L=[F,A,...D].filter(Boolean).map(I=>I.ref.current);Tx(L,p)}}_.current=!1}),onBlur:B(e.onBlur,()=>w(!1))})})}),Ex="RovingFocusGroupItem",Px=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Ge(),l=a||s,c=vL(Ex,n),p=c.currentTabStopId===l,u=Cx(n),{onFocusableItemAdd:m,onFocusableItemRemove:b}=c;return d.useEffect(()=>{if(r)return m(),()=>b()},[r,m,b]),f.jsx(Id.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:f.jsx(Z.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,g=>{r?c.onItemFocus(l):g.preventDefault()}),onFocus:B(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:B(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=xL(g,c.orientation,c.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=u().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=c.loop?SL(y,w+1):y.slice(w+1)}setTimeout(()=>Tx(y))}})})})});Px.displayName=Ex;var yL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wL(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xL(e,t,n){const r=wL(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return yL[r]}function Tx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function SL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var po=_x,mo=Px,jd=["Enter"," "],CL=["ArrowDown","PageUp","Home"],Rx=["ArrowUp","PageDown","End"],_L=[...CL,...Rx],EL={ltr:[...jd,"ArrowRight"],rtl:[...jd,"ArrowLeft"]},PL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ho="Menu",[go,TL,RL]=nn(ho),[Bn,vo]=De(ho,[RL,Zt,Jt]),bo=Zt(),Nx=Jt(),[Ax,Sn]=Bn(ho),[NL,yo]=Bn(ho),Mx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=bo(t),[l,c]=d.useState(null),p=d.useRef(!1),u=Ne(a),m=Mt(o);return d.useEffect(()=>{const b=()=>{p.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>p.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),f.jsx(gr,{...s,children:f.jsx(Ax,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:f.jsx(NL,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:m,modal:i,children:r})})})};Mx.displayName=ho;var AL="MenuAnchor",Dd=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=bo(n);return f.jsx(vr,{...o,...r,ref:t})});Dd.displayName=AL;var kd="MenuPortal",[ML,Ox]=Bn(kd,{forceMount:void 0}),Ix=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Sn(kd,t);return f.jsx(ML,{scope:t,forceMount:n,children:f.jsx(Le,{present:n||a.open,children:f.jsx(Mn,{asChild:!0,container:o,children:r})})})};Ix.displayName=kd;var Pt="MenuContent",[OL,$d]=Bn(Pt),jx=d.forwardRef((e,t)=>{const n=Ox(Pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Sn(Pt,e.__scopeMenu),i=yo(Pt,e.__scopeMenu);return f.jsx(go.Provider,{scope:e.__scopeMenu,children:f.jsx(Le,{present:r||a.open,children:f.jsx(go.Slot,{scope:e.__scopeMenu,children:i.modal?f.jsx(IL,{...o,ref:t}):f.jsx(jL,{...o,ref:t})})})})}),IL=d.forwardRef((e,t)=>{const n=Sn(Pt,e.__scopeMenu),r=d.useRef(null),o=fe(t,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),f.jsx(Ld,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),jL=d.forwardRef((e,t)=>{const n=Sn(Pt,e.__scopeMenu);return f.jsx(Ld,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ld=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:m,onDismiss:b,disableOutsideScroll:g,...h}=e,v=Sn(Pt,n),y=yo(Pt,n),w=bo(n),x=Nx(n),S=TL(n),[_,P]=d.useState(null),C=d.useRef(null),M=fe(t,C,v.onContentChange),R=d.useRef(0),$=d.useRef(""),D=d.useRef(0),F=d.useRef(null),A=d.useRef("right"),k=d.useRef(0),L=g?qr:d.Fragment,I=g?{as:lt,allowPinchZoom:!0}:void 0,U=q=>{var H,K;const ae=$.current+q,J=S().filter(re=>!re.disabled),ne=document.activeElement,z=(H=J.find(re=>re.ref.current===ne))==null?void 0:H.textValue,W=J.map(re=>re.textValue),ee=UL(W,ae,z),Y=(K=J.find(re=>re.textValue===ee))==null?void 0:K.ref.current;(function re(Q){$.current=Q,window.clearTimeout(R.current),Q!==""&&(R.current=window.setTimeout(()=>re(""),1e3))})(ae),Y&&setTimeout(()=>Y.focus())};d.useEffect(()=>()=>window.clearTimeout(R.current),[]),Jo();const V=d.useCallback(q=>{var J,ne;return A.current===((J=F.current)==null?void 0:J.side)&&KL(q,(ne=F.current)==null?void 0:ne.area)},[]);return f.jsx(OL,{scope:n,searchRef:$,onItemEnter:d.useCallback(q=>{V(q)&&q.preventDefault()},[V]),onItemLeave:d.useCallback(q=>{var ae;V(q)||((ae=C.current)==null||ae.focus(),P(null))},[V]),onTriggerLeave:d.useCallback(q=>{V(q)&&q.preventDefault()},[V]),pointerGraceTimerRef:D,onPointerGraceIntentChange:d.useCallback(q=>{F.current=q},[]),children:f.jsx(L,{...I,children:f.jsx(zr,{asChild:!0,trapped:o,onMountAutoFocus:B(a,q=>{var ae;q.preventDefault(),(ae=C.current)==null||ae.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:f.jsx(an,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:m,onDismiss:b,children:f.jsx(po,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:P,onEntryFocus:B(l,q=>{y.isUsingKeyboardRef.current||q.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(uo,{role:"menu","aria-orientation":"vertical","data-state":Jx(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:M,style:{outline:"none",...h.style},onKeyDown:B(h.onKeyDown,q=>{const J=q.target.closest("[data-radix-menu-content]")===q.currentTarget,ne=q.ctrlKey||q.altKey||q.metaKey,z=q.key.length===1;J&&(q.key==="Tab"&&q.preventDefault(),!ne&&z&&U(q.key));const W=C.current;if(q.target!==W||!_L.includes(q.key))return;q.preventDefault();const Y=S().filter(H=>!H.disabled).map(H=>H.ref.current);Rx.includes(q.key)&&Y.reverse(),VL(Y)}),onBlur:B(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(R.current),$.current="")}),onPointerMove:B(e.onPointerMove,xo(q=>{const ae=q.target,J=k.current!==q.clientX;if(q.currentTarget.contains(ae)&&J){const ne=q.clientX>k.current?"right":"left";A.current=ne,k.current=q.clientX}}))})})})})})})});jx.displayName=Pt;var DL="MenuGroup",Fd=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.jsx(Z.div,{role:"group",...r,ref:t})});Fd.displayName=DL;var kL="MenuLabel",Dx=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.jsx(Z.div,{...r,ref:t})});Dx.displayName=kL;var ti="MenuItem",kx="menu.itemSelect",ni=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),i=yo(ti,e.__scopeMenu),s=$d(ti,e.__scopeMenu),l=fe(t,a),c=d.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const m=new CustomEvent(kx,{bubbles:!0,cancelable:!0});u.addEventListener(kx,b=>r==null?void 0:r(b),{once:!0}),Fr(u,m),m.defaultPrevented?c.current=!1:i.onClose()}};return f.jsx($x,{...o,ref:l,disabled:n,onClick:B(e.onClick,p),onPointerDown:u=>{var m;(m=e.onPointerDown)==null||m.call(e,u),c.current=!0},onPointerUp:B(e.onPointerUp,u=>{var m;c.current||(m=u.currentTarget)==null||m.click()}),onKeyDown:B(e.onKeyDown,u=>{const m=s.searchRef.current!=="";n||m&&u.key===" "||jd.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});ni.displayName=ti;var $x=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=$d(ti,n),s=Nx(n),l=d.useRef(null),c=fe(t,l),[p,u]=d.useState(!1),[m,b]=d.useState("");return d.useEffect(()=>{const g=l.current;g&&b((g.textContent??"").trim())},[a.children]),f.jsx(go.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:f.jsx(mo,{asChild:!0,...s,focusable:!r,children:f.jsx(Z.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:B(e.onPointerMove,xo(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,xo(g=>i.onItemLeave(g))),onFocus:B(e.onFocus,()=>u(!0)),onBlur:B(e.onBlur,()=>u(!1))})})})}),$L="MenuCheckboxItem",Lx=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return f.jsx(Hx,{scope:e.__scopeMenu,checked:n,children:f.jsx(ni,{role:"menuitemcheckbox","aria-checked":ri(n)?"mixed":n,...o,ref:t,"data-state":qd(n),onSelect:B(o.onSelect,()=>r==null?void 0:r(ri(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Lx.displayName=$L;var Fx="MenuRadioGroup",[LL,FL]=Bn(Fx,{value:void 0,onValueChange:()=>{}}),Bx=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Ne(r);return f.jsx(LL,{scope:e.__scopeMenu,value:n,onValueChange:a,children:f.jsx(Fd,{...o,ref:t})})});Bx.displayName=Fx;var zx="MenuRadioItem",qx=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=FL(zx,e.__scopeMenu),a=n===o.value;return f.jsx(Hx,{scope:e.__scopeMenu,checked:a,children:f.jsx(ni,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":qd(a),onSelect:B(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});qx.displayName=zx;var Bd="MenuItemIndicator",[Hx,BL]=Bn(Bd,{checked:!1}),Vx=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=BL(Bd,n);return f.jsx(Le,{present:r||ri(a.checked)||a.checked===!0,children:f.jsx(Z.span,{...o,ref:t,"data-state":qd(a.checked)})})});Vx.displayName=Bd;var zL="MenuSeparator",Gx=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Gx.displayName=zL;var qL="MenuArrow",Ux=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=bo(n);return f.jsx(fo,{...o,...r,ref:t})});Ux.displayName=qL;var zd="MenuSub",[HL,Wx]=Bn(zd),Kx=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Sn(zd,t),i=bo(t),[s,l]=d.useState(null),[c,p]=d.useState(null),u=Ne(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),f.jsx(gr,{...i,children:f.jsx(Ax,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:f.jsx(HL,{scope:t,contentId:Ge(),triggerId:Ge(),trigger:s,onTriggerChange:l,children:n})})})};Kx.displayName=zd;var wo="MenuSubTrigger",Yx=d.forwardRef((e,t)=>{const n=Sn(wo,e.__scopeMenu),r=yo(wo,e.__scopeMenu),o=Wx(wo,e.__scopeMenu),a=$d(wo,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=s.current;return()=>{window.clearTimeout(u),l(null)}},[s,l]),f.jsx(Dd,{asChild:!0,...c,children:f.jsx($x,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Jx(n.open),...e,ref:Lr(t,o.onTriggerChange),onClick:u=>{var m;(m=e.onClick)==null||m.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,xo(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:B(e.onPointerLeave,xo(u=>{var b,g;p();const m=(b=n.content)==null?void 0:b.getBoundingClientRect();if(m){const h=(g=n.content)==null?void 0:g.dataset.side,v=h==="right",y=v?-5:5,w=m[v?"left":"right"],x=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+y,y:u.clientY},{x:w,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:w,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,u=>{var b;const m=a.searchRef.current!=="";e.disabled||m&&u.key===" "||EL[r.dir].includes(u.key)&&(n.onOpenChange(!0),(b=n.content)==null||b.focus(),u.preventDefault())})})})});Yx.displayName=wo;var Xx="MenuSubContent",Zx=d.forwardRef((e,t)=>{const n=Ox(Pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Sn(Pt,e.__scopeMenu),i=yo(Pt,e.__scopeMenu),s=Wx(Xx,e.__scopeMenu),l=d.useRef(null),c=fe(t,l);return f.jsx(go.Provider,{scope:e.__scopeMenu,children:f.jsx(Le,{present:r||a.open,children:f.jsx(go.Slot,{scope:e.__scopeMenu,children:f.jsx(Ld,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var u;i.isUsingKeyboardRef.current&&((u=l.current)==null||u.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:B(e.onFocusOutside,p=>{p.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:B(e.onKeyDown,p=>{var b;const u=p.currentTarget.contains(p.target),m=PL[i.dir].includes(p.key);u&&m&&(a.onOpenChange(!1),(b=s.trigger)==null||b.focus(),p.preventDefault())})})})})})});Zx.displayName=Xx;function Jx(e){return e?"open":"closed"}function ri(e){return e==="indeterminate"}function qd(e){return ri(e)?"indeterminate":e?"checked":"unchecked"}function VL(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function GL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function UL(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=GL(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function WL(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,p=t[i].y;l>r!=p>r&&n<(c-s)*(r-l)/(p-l)+s&&(o=!o)}return o}function KL(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return WL(n,t)}function xo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Hd=Mx,Vd=Dd,Gd=Ix,Ud=jx,Wd=Fd,Kd=Dx,Yd=ni,Xd=Lx,Zd=Bx,Jd=qx,Qd=Vx,ef=Gx,tf=Ux,nf=Kx,rf=Yx,of=Zx,af="ContextMenu",[YL,n3]=De(af,[vo]),ut=vo(),[XL,Qx]=YL(af),e0=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[i,s]=d.useState(!1),l=ut(t),c=Ne(r),p=d.useCallback(u=>{s(u),c(u)},[c]);return f.jsx(XL,{scope:t,open:i,onOpenChange:p,modal:a,children:f.jsx(Hd,{...l,dir:o,open:i,onOpenChange:p,modal:a,children:n})})};e0.displayName=af;var t0="ContextMenuTrigger",n0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=Qx(t0,n),i=ut(n),s=d.useRef({x:0,y:0}),l=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=d.useRef(0),p=d.useCallback(()=>window.clearTimeout(c.current),[]),u=m=>{s.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return d.useEffect(()=>p,[p]),d.useEffect(()=>void(r&&p()),[r,p]),f.jsxs(f.Fragment,{children:[f.jsx(Vd,{...i,virtualRef:l}),f.jsx(Z.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:B(e.onContextMenu,m=>{p(),u(m),m.preventDefault()}),onPointerDown:r?e.onPointerDown:B(e.onPointerDown,oi(m=>{p(),c.current=window.setTimeout(()=>u(m),700)})),onPointerMove:r?e.onPointerMove:B(e.onPointerMove,oi(p)),onPointerCancel:r?e.onPointerCancel:B(e.onPointerCancel,oi(p)),onPointerUp:r?e.onPointerUp:B(e.onPointerUp,oi(p))})]})});n0.displayName=t0;var ZL="ContextMenuPortal",r0=e=>{const{__scopeContextMenu:t,...n}=e,r=ut(t);return f.jsx(Gd,{...r,...n})};r0.displayName=ZL;var o0="ContextMenuContent",a0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=Qx(o0,n),a=ut(n),i=d.useRef(!1);return f.jsx(Ud,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)==null||l.call(e,s),!s.defaultPrevented&&i.current&&s.preventDefault(),i.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)==null||l.call(e,s),!s.defaultPrevented&&!o.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});a0.displayName=o0;var JL="ContextMenuGroup",i0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Wd,{...o,...r,ref:t})});i0.displayName=JL;var QL="ContextMenuLabel",s0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Kd,{...o,...r,ref:t})});s0.displayName=QL;var e2="ContextMenuItem",l0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Yd,{...o,...r,ref:t})});l0.displayName=e2;var t2="ContextMenuCheckboxItem",c0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Xd,{...o,...r,ref:t})});c0.displayName=t2;var n2="ContextMenuRadioGroup",u0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Zd,{...o,...r,ref:t})});u0.displayName=n2;var r2="ContextMenuRadioItem",d0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Jd,{...o,...r,ref:t})});d0.displayName=r2;var o2="ContextMenuItemIndicator",f0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(Qd,{...o,...r,ref:t})});f0.displayName=o2;var a2="ContextMenuSeparator",p0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(ef,{...o,...r,ref:t})});p0.displayName=a2;var i2="ContextMenuArrow",s2=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(tf,{...o,...r,ref:t})});s2.displayName=i2;var l2="ContextMenuSub",m0=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=ut(t),[s,l]=$e({prop:o,defaultProp:a,onChange:r});return f.jsx(nf,{...i,open:s,onOpenChange:l,children:n})};m0.displayName=l2;var c2="ContextMenuSubTrigger",h0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(rf,{...o,...r,ref:t})});h0.displayName=c2;var u2="ContextMenuSubContent",g0=d.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return f.jsx(of,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});g0.displayName=u2;function oi(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var d2=e0,f2=n0,v0=r0,b0=a0,p2=i0,y0=s0,w0=l0,x0=c0,m2=u0,S0=d0,C0=f0,_0=p0,h2=m0,E0=h0,P0=g0;const g2=d2,v2=f2,b2=p2,y2=v0,w2=h2,x2=m2,T0=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>f.jsxs(E0,{ref:o,className:O("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,f.jsx(Rn,{className:"ml-auto h-4 w-4"})]}));T0.displayName=E0.displayName;const R0=d.forwardRef(({className:e,...t},n)=>f.jsx(P0,{ref:n,className:O("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));R0.displayName=P0.displayName;const N0=d.forwardRef(({className:e,...t},n)=>f.jsx(v0,{children:f.jsx(b0,{ref:n,className:O("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));N0.displayName=b0.displayName;const A0=d.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(w0,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));A0.displayName=w0.displayName;const M0=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>f.jsxs(x0,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(C0,{children:f.jsx(Br,{className:"h-4 w-4"})})}),t]}));M0.displayName=x0.displayName;const O0=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(S0,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(C0,{children:f.jsx(Xo,{className:"h-4 w-4 fill-current"})})}),t]}));O0.displayName=S0.displayName;const I0=d.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(y0,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));I0.displayName=y0.displayName;const j0=d.forwardRef(({className:e,...t},n)=>f.jsx(_0,{ref:n,className:O("-mx-1 my-1 h-px bg-border",e),...t}));j0.displayName=_0.displayName;const D0=({className:e,...t})=>f.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});D0.displayName="ContextMenuShortcut";const S2=la,C2=ca,k0=ua,_2=In,sf=d.forwardRef(({className:e,...t},n)=>f.jsx(nr,{ref:n,className:O("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));sf.displayName=nr.displayName;const $0=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(k0,{children:[f.jsx(sf,{}),f.jsxs(rr,{ref:r,className:O("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(In,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(os,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$0.displayName=rr.displayName;const L0=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});L0.displayName="DialogHeader";const F0=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});F0.displayName="DialogFooter";const B0=d.forwardRef(({className:e,...t},n)=>f.jsx(or,{ref:n,className:O("text-lg font-semibold leading-none tracking-tight",e),...t}));B0.displayName=or.displayName;const z0=d.forwardRef(({className:e,...t},n)=>f.jsx(ar,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));z0.displayName=ar.displayName;function E2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const q0=E.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),So=()=>{const e=E.useContext(q0);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};E2(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
212
+ [data-state=closed]
213
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function P2(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function T2(){return lf(/^Mac/)}function R2(){return lf(/^iPhone/)}function H0(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function N2(){return lf(/^iPad/)||T2()&&navigator.maxTouchPoints>1}function V0(){return R2()||N2()}function lf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const A2=24,M2=typeof window<"u"?E.useLayoutEffect:E.useEffect;function G0(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const cf=typeof document<"u"&&window.visualViewport;function U0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function W0(e){for(U0(e)&&(e=e.parentElement);e&&!U0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const O2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ai=0,uf;function I2(e={}){let{isDisabled:t}=e;M2(()=>{if(!t)return ai++,ai===1&&V0()&&(uf=j2()),()=>{ai--,ai===0&&(uf==null||uf())}},[t])}function j2(){let e,t=0,n=u=>{e=W0(u.target),!(e===document.documentElement&&e===document.body)&&(t=u.changedTouches[0].pageY)},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}let m=u.changedTouches[0].pageY,b=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((b<=0&&m>t||b>=g&&m<t)&&u.preventDefault(),t=m)},o=u=>{let m=u.target;df(m)&&m!==document.activeElement&&(u.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=u=>{let m=u.target;df(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",cf&&(cf.height<window.innerHeight?requestAnimationFrame(()=>{K0(m)}):cf.addEventListener("resize",()=>K0(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=G0(D2(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=G0(Co(document,"touchstart",n,{passive:!1,capture:!0}),Co(document,"touchmove",r,{passive:!1,capture:!0}),Co(document,"touchend",o,{passive:!1,capture:!0}),Co(document,"focus",a,!0),Co(window,"scroll",i));return()=>{c(),p(),window.scrollTo(s,l)}}function D2(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Co(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function K0(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=W0(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+A2;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function df(e){return e instanceof HTMLInputElement&&!O2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function k2(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function $2(...e){return t=>e.forEach(n=>k2(n,t))}function Y0(...e){return d.useCallback($2(...e),e)}const X0=new WeakMap;function Je(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&X0.set(e,r)}function L2(e,t){if(!e||!(e instanceof HTMLElement))return;let n=X0.get(e);n&&(e.style[t]=n[t])}const Ke=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function ii(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Ke(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ke(t)?5:4]):null)}function F2(e){return 8*(Math.log(e+1)-2)}function ff(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function B2(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const qe={DURATION:.5,EASE:[.32,.72,0,1]},Z0=.4,z2=.25,q2=100,J0=8,si=16,pf=26,mf="vaul-dragging";function Q0(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function H2({defaultProp:e,onChange:t}){const n=E.useState(e),[r]=n,o=E.useRef(r),a=Q0(t);return E.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function eS({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=H2({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Q0(n),l=E.useCallback(c=>{if(a){const u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function V2({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:l,snapToSequentialPoint:c}){const[p,u]=eS({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[m,b]=E.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);E.useEffect(()=>{function C(){b({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const g=E.useMemo(()=>p===(n==null?void 0:n[n.length-1])||null,[n,p]),h=E.useMemo(()=>{var C;return(C=n==null?void 0:n.findIndex(M=>M===p))!=null?C:null},[n,p]),v=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===p||!n,y=E.useMemo(()=>{const C=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var M;return(M=n==null?void 0:n.map(R=>{const $=typeof R=="string";let D=0;if($&&(D=parseInt(R,10)),Ke(s)){const A=$?D:m?R*C.height:0;return m?s==="bottom"?C.height-A:-C.height+A:A}const F=$?D:m?R*C.width:0;return m?s==="right"?C.width-F:-C.width+F:F}))!=null?M:[]},[n,m,l]),w=E.useMemo(()=>h!==null?y==null?void 0:y[h]:null,[y,h]),x=E.useCallback(C=>{var M;const R=(M=y==null?void 0:y.findIndex($=>$===C))!=null?M:null;i(R),Je(r.current,{transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,transform:Ke(s)?`translate3d(0, ${C}px, 0)`:`translate3d(${C}px, 0, 0)`}),y&&R!==y.length-1&&a!==void 0&&R!==a&&R<a?Je(o.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,opacity:"0"}):Je(o.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,opacity:"1"}),u(n==null?void 0:n[Math.max(R,0)])},[r.current,n,y,a,o,u]);E.useEffect(()=>{if(p||e){var C;const M=(C=n==null?void 0:n.findIndex(R=>R===e||R===p))!=null?C:-1;y&&M!==-1&&typeof y[M]=="number"&&x(y[M])}},[p,e,n,y,x]);function S({draggedDistance:C,closeDrawer:M,velocity:R,dismissible:$}){if(a===void 0)return;const D=s==="bottom"||s==="right"?(w??0)-C:(w??0)+C,F=h===a-1,A=h===0,k=C>0;if(F&&Je(o.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`}),!c&&R>2&&!k){$?M():x(y[0]);return}if(!c&&R>2&&k&&y&&n){x(y[n.length-1]);return}const L=y==null?void 0:y.reduce((U,V)=>typeof U!="number"||typeof V!="number"?U:Math.abs(V-D)<Math.abs(U-D)?V:U),I=Ke(s)?window.innerHeight:window.innerWidth;if(R>Z0&&Math.abs(C)<I*.4){const U=k?1:-1;if(U>0&&g&&n){x(y[n.length-1]);return}if(A&&U<0&&$&&M(),h===null)return;x(y[h+U]);return}x(L)}function _({draggedDistance:C}){if(w===null)return;const M=s==="bottom"||s==="right"?w-C:w+C;(s==="bottom"||s==="right")&&M<y[y.length-1]||(s==="top"||s==="left")&&M>y[y.length-1]||Je(r.current,{transform:Ke(s)?`translate3d(0, ${M}px, 0)`:`translate3d(${M}px, 0, 0)`})}function P(C,M){if(!n||typeof h!="number"||!y||a===void 0)return null;const R=h===a-1;if(h>=a&&M)return 0;if(R&&!M)return 1;if(!v&&!R)return null;const D=R?h+1:h-1,F=R?y[D]-y[D-1]:y[D+1]-y[D],A=C/Math.abs(F);return R?1-A:A}return{isLastSnapPoint:g,activeSnapPoint:p,shouldFade:v,getPercentageDragged:P,setActiveSnapPoint:u,activeSnapPointIndex:h,onRelease:S,onDrag:_,snapPointsOffset:y}}const G2=()=>()=>{};function U2(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=So(),a=E.useRef(null),i=E.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-pf)/window.innerWidth}E.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;B2(r&&!o?ff(document.body,{background:"black"}):G2,ff(l,{transformOrigin:Ke(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${qe.DURATION}s`,transitionTimingFunction:`cubic-bezier(${qe.EASE.join(",")})`}));const c=ff(l,{borderRadius:`${J0}px`,overflow:"hidden",...Ke(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{c(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},qe.DURATION*1e3)}}},[t,n,i])}let _o=null;function W2({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=E.useState(()=>typeof window<"u"?window.location.href:""),l=E.useRef(0),c=E.useCallback(()=>{if(H0()&&_o===null&&e&&!a){_o={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:u,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-u}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const b=m-window.innerHeight;b&&l.current>=m&&(document.body.style.top=`${-(l.current+b)}px`)}),300)}},[e]),p=E.useCallback(()=>{if(H0()&&_o!==null&&!a){const u=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,_o),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(m,u)}),_o=null}},[i]);return E.useEffect(()=>{function u(){l.current=window.scrollY}return u(),window.addEventListener("scroll",u),()=>{window.removeEventListener("scroll",u)}},[]),E.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||p()}},[t,p]),E.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,i,t,n,c,p]),{restorePositionSetting:p}}function K2({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=z2,scrollLockTimeout:c=q2,dismissible:p=!0,handleOnly:u=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:b,setActiveSnapPoint:g,fixed:h,modal:v=!0,onClose:y,nested:w,noBodyStyles:x=!1,direction:S="bottom",defaultOpen:_=!1,disablePreventScroll:P=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:M=!1,repositionInputs:R=!0,onAnimationEnd:$,container:D,autoFocus:F=!1}){var A,k;const[L=!1,I]=eS({defaultProp:_,prop:e,onChange:de=>{t==null||t(de),!de&&!w&&at(),setTimeout(()=>{$==null||$(de)},qe.DURATION*1e3),de&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),de||(document.body.style.pointerEvents="auto")}}),[U,V]=E.useState(!1),[q,ae]=E.useState(!1),[J,ne]=E.useState(!1),z=E.useRef(null),W=E.useRef(null),ee=E.useRef(null),Y=E.useRef(null),H=E.useRef(null),K=E.useRef(!1),re=E.useRef(null),Q=E.useRef(0),oe=E.useRef(!1),G=E.useRef(!_),ie=E.useRef(0),j=E.useRef(null),te=E.useRef(((A=j.current)==null?void 0:A.getBoundingClientRect().height)||0),me=E.useRef(((k=j.current)==null?void 0:k.getBoundingClientRect().width)||0),he=E.useRef(0),ve=E.useCallback(de=>{a&&de===Ie.length-1&&(W.current=new Date)},[]),{activeSnapPoint:pe,activeSnapPointIndex:Te,setActiveSnapPoint:He,onRelease:Se,snapPointsOffset:Ie,onDrag:ot,shouldFade:Qe,getPercentageDragged:Ye}=V2({snapPoints:a,activeSnapPointProp:b,setActiveSnapPointProp:g,drawerRef:j,fadeFromIndex:m,overlayRef:z,onSnapPointChange:ve,direction:S,container:D,snapToSequentialPoint:C});I2({isDisabled:!L||q||!v||J||!U||!R||!P});const{restorePositionSetting:at}=W2({isOpen:L,modal:v,nested:w??!1,hasBeenOpened:U,preventScrollRestoration:M,noBodyStyles:x});function yt(){return(window.innerWidth-pf)/window.innerWidth}function pt(de){var we,Ee;!p&&!a||j.current&&!j.current.contains(de.target)||(te.current=((we=j.current)==null?void 0:we.getBoundingClientRect().height)||0,me.current=((Ee=j.current)==null?void 0:Ee.getBoundingClientRect().width)||0,ae(!0),ee.current=new Date,V0()&&window.addEventListener("touchend",()=>K.current=!1,{once:!0}),de.target.setPointerCapture(de.pointerId),Q.current=Ke(S)?de.pageY:de.pageX)}function Ue(de,we){var Ee;let be=de;const se=(Ee=window.getSelection())==null?void 0:Ee.toString(),Ce=j.current?ii(j.current,S):null,xe=new Date;if(be.tagName==="SELECT"||be.hasAttribute("data-vaul-no-drag")||be.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(W.current&&xe.getTime()-W.current.getTime()<500)return!1;if(Ce!==null&&(S==="bottom"?Ce>0:Ce<0))return!0;if(se&&se.length>0)return!1;if(H.current&&xe.getTime()-H.current.getTime()<c&&Ce===0||we)return H.current=xe,!1;for(;be;){if(be.scrollHeight>be.clientHeight){if(be.scrollTop!==0)return H.current=new Date,!1;if(be.getAttribute("role")==="dialog")return!0}be=be.parentNode}return!0}function Nt(de){if(j.current&&q){const we=S==="bottom"||S==="right"?1:-1,Ee=(Q.current-(Ke(S)?de.pageY:de.pageX))*we,be=Ee>0,se=a&&!p&&!be;if(se&&Te===0)return;const Ce=Math.abs(Ee),xe=document.querySelector("[data-vaul-drawer-wrapper]"),Fe=S==="bottom"||S==="top"?te.current:me.current;let tt=Ce/Fe;const je=Ye(Ce,be);if(je!==null&&(tt=je),se&&tt>=1||!K.current&&!Ue(de.target,be))return;if(j.current.classList.add(mf),K.current=!0,Je(j.current,{transition:"none"}),Je(z.current,{transition:"none"}),a&&ot({draggedDistance:Ee}),be&&!a){const it=F2(Ee),nt=Math.min(it*-1,0)*we;Je(j.current,{transform:Ke(S)?`translate3d(0, ${nt}px, 0)`:`translate3d(${nt}px, 0, 0)`});return}const Ve=1-tt;if((Qe||m&&Te===m-1)&&(r==null||r(de,tt),Je(z.current,{opacity:`${Ve}`,transition:"none"},!0)),xe&&z.current&&i){const it=Math.min(yt()+tt*(1-yt()),1),nt=8-tt*8,st=Math.max(0,14-tt*14);Je(xe,{borderRadius:`${nt}px`,transform:Ke(S)?`scale(${it}) translate3d(0, ${st}px, 0)`:`scale(${it}) translate3d(${st}px, 0, 0)`,transition:"none"},!0)}if(!a){const it=Ce*we;Je(j.current,{transform:Ke(S)?`translate3d(0, ${it}px, 0)`:`translate3d(${it}px, 0, 0)`})}}}E.useEffect(()=>{window.requestAnimationFrame(()=>{G.current=!0})},[]),E.useEffect(()=>{var de;function we(){if(!j.current||!R)return;const Ee=document.activeElement;if(df(Ee)||oe.current){var be;const se=((be=window.visualViewport)==null?void 0:be.height)||0,Ce=window.innerHeight;let xe=Ce-se;const Fe=j.current.getBoundingClientRect().height||0,tt=Fe>Ce*.8;he.current||(he.current=Fe);const je=j.current.getBoundingClientRect().top;if(Math.abs(ie.current-xe)>60&&(oe.current=!oe.current),a&&a.length>0&&Ie&&Te){const Ve=Ie[Te]||0;xe+=Ve}if(ie.current=xe,Fe>se||oe.current){const Ve=j.current.getBoundingClientRect().height;let it=Ve;Ve>se&&(it=se-(tt?je:pf)),h?j.current.style.height=`${Ve-Math.max(xe,0)}px`:j.current.style.height=`${Math.max(it,se-je)}px`}else P2()||(j.current.style.height=`${he.current}px`);a&&a.length>0&&!oe.current?j.current.style.bottom="0px":j.current.style.bottom=`${Math.max(xe,0)}px`}}return(de=window.visualViewport)==null||de.addEventListener("resize",we),()=>{var Ee;return(Ee=window.visualViewport)==null?void 0:Ee.removeEventListener("resize",we)}},[Te,a,Ie]);function Xe(de){Ht(),y==null||y(),de||I(!1),setTimeout(()=>{a&&He(a[0])},qe.DURATION*1e3)}function et(){if(!j.current)return;const de=document.querySelector("[data-vaul-drawer-wrapper]"),we=ii(j.current,S);Je(j.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`}),Je(z.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,opacity:"1"}),i&&we&&we>0&&L&&Je(de,{borderRadius:`${J0}px`,overflow:"hidden",...Ke(S)?{transform:`scale(${yt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${qe.DURATION}s`,transitionTimingFunction:`cubic-bezier(${qe.EASE.join(",")})`},!0)}function Ht(){!q||!j.current||(j.current.classList.remove(mf),K.current=!1,ae(!1),Y.current=new Date)}function tn(de){if(!q||!j.current)return;j.current.classList.remove(mf),K.current=!1,ae(!1),Y.current=new Date;const we=ii(j.current,S);if(!de||!Ue(de.target,!1)||!we||Number.isNaN(we)||ee.current===null)return;const Ee=Y.current.getTime()-ee.current.getTime(),be=Q.current-(Ke(S)?de.pageY:de.pageX),se=Math.abs(be)/Ee;if(se>.05&&(ne(!0),setTimeout(()=>{ne(!1)},200)),a){Se({draggedDistance:be*(S==="bottom"||S==="right"?1:-1),closeDrawer:Xe,velocity:se,dismissible:p}),o==null||o(de,!0);return}if(S==="bottom"||S==="right"?be>0:be<0){et(),o==null||o(de,!0);return}if(se>Z0){Xe(),o==null||o(de,!1);return}var Ce;const xe=Math.min((Ce=j.current.getBoundingClientRect().height)!=null?Ce:0,window.innerHeight);var Fe;const tt=Math.min((Fe=j.current.getBoundingClientRect().width)!=null?Fe:0,window.innerWidth),je=S==="left"||S==="right";if(Math.abs(we)>=(je?tt:xe)*l){Xe(),o==null||o(de,!1);return}o==null||o(de,!0),et()}E.useEffect(()=>(L&&(Je(document.documentElement,{scrollBehavior:"auto"}),W.current=new Date),()=>{L2(document.documentElement,"scrollBehavior")}),[L]);function Tn(de){const we=de?(window.innerWidth-si)/window.innerWidth:1,Ee=de?-16:0;re.current&&window.clearTimeout(re.current),Je(j.current,{transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,transform:Ke(S)?`scale(${we}) translate3d(0, ${Ee}px, 0)`:`scale(${we}) translate3d(${Ee}px, 0, 0)`}),!de&&j.current&&(re.current=setTimeout(()=>{const be=ii(j.current,S);Je(j.current,{transition:"none",transform:Ke(S)?`translate3d(0, ${be}px, 0)`:`translate3d(${be}px, 0, 0)`})},500))}function Wn(de,we){if(we<0)return;const Ee=(window.innerWidth-si)/window.innerWidth,be=Ee+we*(1-Ee),se=-16+we*si;Je(j.current,{transform:Ke(S)?`scale(${be}) translate3d(0, ${se}px, 0)`:`scale(${be}) translate3d(${se}px, 0, 0)`,transition:"none"})}function Vt(de,we){const Ee=Ke(S)?window.innerHeight:window.innerWidth,be=we?(Ee-si)/Ee:1,se=we?-16:0;we&&Je(j.current,{transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,transform:Ke(S)?`scale(${be}) translate3d(0, ${se}px, 0)`:`scale(${be}) translate3d(${se}px, 0, 0)`})}return E.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),E.createElement(la,{defaultOpen:_,onOpenChange:de=>{!p&&!de||(de?V(!0):Xe(!0),I(de))},open:L},E.createElement(q0.Provider,{value:{activeSnapPoint:pe,snapPoints:a,setActiveSnapPoint:He,drawerRef:j,overlayRef:z,onOpenChange:t,onPress:pt,onRelease:tn,onDrag:Nt,dismissible:p,shouldAnimate:G,handleOnly:u,isOpen:L,isDragging:q,shouldFade:Qe,closeDrawer:Xe,onNestedDrag:Wn,onNestedOpenChange:Tn,onNestedRelease:Vt,keyboardIsOpen:oe,modal:v,snapPointsOffset:Ie,activeSnapPointIndex:Te,direction:S,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:x,container:D,autoFocus:F}},n))}const tS=E.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:l}=So(),c=Y0(t,n),p=r&&r.length>0;if(!s)return null;const u=E.useCallback(m=>o(m),[o]);return E.createElement(nr,{onMouseUp:u,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&p?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":l!=null&&l.current?"true":"false",...e})});tS.displayName="Drawer.Overlay";const nS=E.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:l,keyboardIsOpen:c,snapPointsOffset:p,activeSnapPointIndex:u,modal:m,isOpen:b,direction:g,snapPoints:h,container:v,handleOnly:y,shouldAnimate:w,autoFocus:x}=So(),[S,_]=E.useState(!1),P=Y0(o,a),C=E.useRef(null),M=E.useRef(null),R=E.useRef(!1),$=h&&h.length>0;U2();const D=(A,k,L=0)=>{if(R.current)return!0;const I=Math.abs(A.y),U=Math.abs(A.x),V=U>I,q=["bottom","right"].includes(k)?1:-1;if(k==="left"||k==="right"){if(!(A.x*q<0)&&U>=0&&U<=L)return V}else if(!(A.y*q<0)&&I>=0&&I<=L)return!V;return R.current=!0,!0};E.useEffect(()=>{$&&window.requestAnimationFrame(()=>{_(!0)})},[]);function F(A){C.current=null,R.current=!1,s(A)}return E.createElement(rr,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":b&&$?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":w!=null&&w.current?"true":"false",...r,ref:P,style:p&&p.length>0?{"--snap-point-height":`${p[u??0]}px`,...t}:t,onPointerDown:A=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,A),C.current={x:A.pageX,y:A.pageY},i(A))},onOpenAutoFocus:A=>{n==null||n(A),x||A.preventDefault()},onPointerDownOutside:A=>{if(e==null||e(A),!m||A.defaultPrevented){A.preventDefault();return}c.current&&(c.current=!1)},onFocusOutside:A=>{if(!m){A.preventDefault();return}},onPointerMove:A=>{if(M.current=A,y||(r.onPointerMove==null||r.onPointerMove.call(r,A),!C.current))return;const k=A.pageY-C.current.y,L=A.pageX-C.current.x,I=A.pointerType==="touch"?10:2;D({x:L,y:k},g,I)?l(A):(Math.abs(L)>I||Math.abs(k)>I)&&(C.current=null)},onPointerUp:A=>{r.onPointerUp==null||r.onPointerUp.call(r,A),C.current=null,R.current=!1,s(A)},onPointerOut:A=>{r.onPointerOut==null||r.onPointerOut.call(r,A),F(M.current)},onContextMenu:A=>{r.onContextMenu==null||r.onContextMenu.call(r,A),M.current&&F(M.current)}})});nS.displayName="Drawer.Content";const Y2=250,X2=120,Z2=E.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:c,handleOnly:p,isOpen:u,onPress:m,onDrag:b}=So(),g=E.useRef(null),h=E.useRef(!1);function v(){if(h.current){x();return}window.setTimeout(()=>{y()},X2)}function y(){if(a||e||h.current){x();return}if(x(),!i||i.length===0){c||o();return}if(s===i[i.length-1]&&c){o();return}const _=i.findIndex(C=>C===s);if(_===-1)return;const P=i[_+1];l(P)}function w(){g.current=window.setTimeout(()=>{h.current=!0},Y2)}function x(){g.current&&window.clearTimeout(g.current),h.current=!1}return E.createElement("div",{onClick:v,onPointerCancel:x,onPointerDown:S=>{p&&m(S),w()},onPointerMove:S=>{p&&b(S)},ref:r,"data-vaul-drawer-visible":u?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},E.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Z2.displayName="Drawer.Handle";function J2(e){const t=So(),{container:n=t.container,...r}=e;return E.createElement(ua,{container:n,...r})}const Bt={Root:K2,Content:nS,Overlay:tS,Trigger:ca,Portal:J2,Close:In,Title:or,Description:ar},rS=({shouldScaleBackground:e=!0,...t})=>f.jsx(Bt.Root,{shouldScaleBackground:e,...t});rS.displayName="Drawer";const Q2=Bt.Trigger,oS=Bt.Portal,eF=Bt.Close,hf=d.forwardRef(({className:e,...t},n)=>f.jsx(Bt.Overlay,{ref:n,className:O("fixed inset-0 z-50 bg-black/80",e),...t}));hf.displayName=Bt.Overlay.displayName;const aS=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(oS,{children:[f.jsx(hf,{}),f.jsxs(Bt.Content,{ref:r,className:O("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[f.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));aS.displayName="DrawerContent";const iS=({className:e,...t})=>f.jsx("div",{className:O("grid gap-1.5 p-4 text-center sm:text-left",e),...t});iS.displayName="DrawerHeader";const sS=({className:e,...t})=>f.jsx("div",{className:O("mt-auto flex flex-col gap-2 p-4",e),...t});sS.displayName="DrawerFooter";const lS=d.forwardRef(({className:e,...t},n)=>f.jsx(Bt.Title,{ref:n,className:O("text-lg font-semibold leading-none tracking-tight",e),...t}));lS.displayName=Bt.Title.displayName;const cS=d.forwardRef(({className:e,...t},n)=>f.jsx(Bt.Description,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));cS.displayName=Bt.Description.displayName;var gf="DropdownMenu",[tF,r3]=De(gf,[vo]),dt=vo(),[nF,uS]=tF(gf),dS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=dt(t),c=d.useRef(null),[p=!1,u]=$e({prop:o,defaultProp:a,onChange:i});return f.jsx(nF,{scope:t,triggerId:Ge(),triggerRef:c,contentId:Ge(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(m=>!m),[u]),modal:s,children:f.jsx(Hd,{...l,open:p,onOpenChange:u,dir:r,modal:s,children:n})})};dS.displayName=gf;var fS="DropdownMenuTrigger",pS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=uS(fS,n),i=dt(n);return f.jsx(Vd,{asChild:!0,...i,children:f.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":r?"":void 0,disabled:r,...o,ref:Lr(t,a.triggerRef),onPointerDown:B(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:B(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});pS.displayName=fS;var rF="DropdownMenuPortal",mS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=dt(t);return f.jsx(Gd,{...r,...n})};mS.displayName=rF;var hS="DropdownMenuContent",gS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=uS(hS,n),a=dt(n),i=d.useRef(!1);return f.jsx(Ud,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:B(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(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)"}})});gS.displayName=hS;var oF="DropdownMenuGroup",vS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Wd,{...o,...r,ref:t})});vS.displayName=oF;var aF="DropdownMenuLabel",bS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Kd,{...o,...r,ref:t})});bS.displayName=aF;var iF="DropdownMenuItem",yS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Yd,{...o,...r,ref:t})});yS.displayName=iF;var sF="DropdownMenuCheckboxItem",wS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Xd,{...o,...r,ref:t})});wS.displayName=sF;var lF="DropdownMenuRadioGroup",xS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Zd,{...o,...r,ref:t})});xS.displayName=lF;var cF="DropdownMenuRadioItem",SS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Jd,{...o,...r,ref:t})});SS.displayName=cF;var uF="DropdownMenuItemIndicator",CS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(Qd,{...o,...r,ref:t})});CS.displayName=uF;var dF="DropdownMenuSeparator",_S=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(ef,{...o,...r,ref:t})});_S.displayName=dF;var fF="DropdownMenuArrow",pF=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(tf,{...o,...r,ref:t})});pF.displayName=fF;var mF=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=dt(t),[s=!1,l]=$e({prop:r,defaultProp:a,onChange:o});return f.jsx(nf,{...i,open:s,onOpenChange:l,children:n})},hF="DropdownMenuSubTrigger",ES=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(rf,{...o,...r,ref:t})});ES.displayName=hF;var gF="DropdownMenuSubContent",PS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return f.jsx(of,{...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)"}})});PS.displayName=gF;var vF=dS,bF=pS,TS=mS,RS=gS,yF=vS,NS=bS,AS=yS,MS=wS,wF=xS,OS=SS,IS=CS,jS=_S,xF=mF,DS=ES,kS=PS;const $S=vF,LS=bF,SF=yF,CF=TS,_F=xF,EF=wF,FS=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>f.jsxs(DS,{ref:o,className:O("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,f.jsx(Rn,{className:"ml-auto"})]}));FS.displayName=DS.displayName;const BS=d.forwardRef(({className:e,...t},n)=>f.jsx(kS,{ref:n,className:O("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));BS.displayName=kS.displayName;const vf=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(TS,{children:f.jsx(RS,{ref:r,sideOffset:t,className:O("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));vf.displayName=RS.displayName;const bf=d.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(AS,{ref:r,className:O("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));bf.displayName=AS.displayName;const zS=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>f.jsxs(MS,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(IS,{children:f.jsx(Br,{className:"h-4 w-4"})})}),t]}));zS.displayName=MS.displayName;const qS=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(OS,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(IS,{children:f.jsx(Xo,{className:"h-2 w-2 fill-current"})})}),t]}));qS.displayName=OS.displayName;const HS=d.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(NS,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));HS.displayName=NS.displayName;const VS=d.forwardRef(({className:e,...t},n)=>f.jsx(jS,{ref:n,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));VS.displayName=jS.displayName;const GS=({className:e,...t})=>f.jsx("span",{className:O("ml-auto text-xs tracking-widest opacity-60",e),...t});GS.displayName="DropdownMenuShortcut";var PF=e=>e.type==="checkbox",TF=e=>e instanceof Date,US=e=>e==null;const RF=e=>typeof e=="object";var br=e=>!US(e)&&!Array.isArray(e)&&RF(e)&&!TF(e),NF=e=>br(e)&&e.target?PF(e.target)?e.target.checked:e.target.value:e,AF=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,MF=(e,t)=>e.has(AF(t)),OF=e=>{const t=e.constructor&&e.constructor.prototype;return br(t)&&t.hasOwnProperty("isPrototypeOf")},IF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yf(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(IF&&(e instanceof Blob||r))&&(n||br(e)))if(t=n?[]:{},!n&&!OF(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=yf(e[o]));else return e;return t}var WS=e=>Array.isArray(e)?e.filter(Boolean):[],wf=e=>e===void 0,ht=(e,t,n)=>{if(!t||!br(e))return n;const r=WS(t.split(/[,[\].]+?/)).reduce((o,a)=>US(o)?o:o[a],e);return wf(r)||r===e?wf(e[t])?n:e[t]:r},KS=e=>typeof e=="boolean",jF=e=>/^\w*$/.test(e),DF=e=>WS(e.replace(/["|']|\]/g,"").split(/\.|\[/)),YS=(e,t,n)=>{let r=-1;const o=jF(t)?[t]:DF(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let l=n;if(r!==i){const c=e[s];l=br(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}return e};const XS={BLUR:"blur",CHANGE:"change"},ZS={all:"all"},JS=E.createContext(null),li=()=>E.useContext(JS),kF=e=>{const{children:t,...n}=e;return E.createElement(JS.Provider,{value:n},t)};var $F=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==ZS.all&&(t._proxyFormState[i]=!r||ZS.all),n&&(n[i]=!0),e[i]}});return o},LF=e=>br(e)&&!Object.keys(e).length,FF=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return LF(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===!0)},BF=e=>Array.isArray(e)?e:[e],QS=(e,t,n)=>!e||!t||e===t||BF(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function eC(e){const t=E.useRef(e);t.current=e,E.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function zF(e){const t=li(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=E.useState(n._formState),l=E.useRef(!0),c=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=E.useRef(o);return p.current=o,eC({disabled:r,next:u=>l.current&&QS(p.current,u.name,a)&&FF(u,c.current,n._updateFormState)&&s({...n._formState,...u}),subject:n._subjects.state}),E.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),E.useMemo(()=>$F(i,n,c.current,!1),[i,n])}var qF=e=>typeof e=="string",HF=(e,t,n,r,o)=>qF(e)?ht(n,e,o):Array.isArray(e)?e.map(a=>ht(n,a)):n;function VF(e){const t=li(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i}=e||{},s=E.useRef(r);s.current=r,eC({disabled:a,subject:n._subjects.values,next:p=>{QS(s.current,p.name,i)&&c(yf(HF(s.current,n._names,p.values||n._formValues,!1,o)))}});const[l,c]=E.useState(n._getWatch(r,o));return E.useEffect(()=>n._removeUnmounted()),l}function GF(e){const t=li(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a}=e,i=MF(o._names.array,n),s=VF({control:o,name:n,defaultValue:ht(o._formValues,n,ht(o._defaultValues,n,e.defaultValue)),exact:!0}),l=zF({control:o,name:n,exact:!0}),c=E.useRef(o.register(n,{...e.rules,value:s,...KS(e.disabled)?{disabled:e.disabled}:{}})),p=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ht(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ht(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ht(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ht(l.validatingFields,n)},error:{enumerable:!0,get:()=>ht(l.errors,n)}}),[l,n]),u=E.useMemo(()=>({name:n,value:s,...KS(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:m=>c.current.onChange({target:{value:NF(m),name:n},type:XS.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:ht(o._formValues,n),name:n},type:XS.BLUR}),ref:m=>{const b=ht(o._fields,n);b&&m&&(b._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:g=>m.setCustomValidity(g),reportValidity:()=>m.reportValidity()})}}),[n,o._formValues,r,l.disabled,s,o._fields]);return E.useEffect(()=>{const m=o._options.shouldUnregister||a,b=(g,h)=>{const v=ht(o._fields,g);v&&v._f&&(v._f.mount=h)};if(b(n,!0),m){const g=yf(ht(o._options.defaultValues,n));YS(o._defaultValues,n,g),wf(ht(o._formValues,n))&&YS(o._formValues,n,g)}return!i&&o.register(n),()=>{(i?m&&!o._state.action:m)?o.unregister(n):b(n,!1)}},[n,o,i,a]),E.useEffect(()=>{o._updateDisabledField({disabled:r,fields:o._fields,name:n})},[r,n,o]),E.useMemo(()=>({field:u,formState:l,fieldState:p}),[u,l,p])}const UF=e=>e.render(GF(e));var WF="Label",tC=d.forwardRef((e,t)=>f.jsx(Z.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));tC.displayName=WF;var nC=tC;const KF=ln("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Eo=d.forwardRef(({className:e,...t},n)=>f.jsx(nC,{ref:n,className:O(KF(),e),...t}));Eo.displayName=nC.displayName;const YF=kF,rC=d.createContext({}),XF=({...e})=>f.jsx(rC.Provider,{value:{name:e.name},children:f.jsx(UF,{...e})}),Po=()=>{const e=d.useContext(rC),t=d.useContext(oC),{getFieldState:n,formState:r}=li(),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}},oC=d.createContext({}),aC=d.forwardRef(({className:e,...t},n)=>{const r=d.useId();return f.jsx(oC.Provider,{value:{id:r},children:f.jsx("div",{ref:n,className:O("space-y-2",e),...t})})});aC.displayName="FormItem";const iC=d.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=Po();return f.jsx(Eo,{ref:n,className:O(r&&"text-destructive",e),htmlFor:o,...t})});iC.displayName="FormLabel";const sC=d.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=Po();return f.jsx(lt,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});sC.displayName="FormControl";const lC=d.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Po();return f.jsx("p",{ref:n,id:r,className:O("text-[0.8rem] text-muted-foreground",e),...t})});lC.displayName="FormDescription";const cC=d.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=Po(),i=o?String((o==null?void 0:o.message)??""):t;return i?f.jsx("p",{ref:r,id:a,className:O("text-[0.8rem] font-medium text-destructive",e),...n,children:i}):null});cC.displayName="FormMessage";var xf,Sf="HoverCard",[uC,o3]=De(Sf,[Zt]),ci=Zt(),[ZF,Cf]=uC(Sf),dC=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=ci(t),c=d.useRef(0),p=d.useRef(0),u=d.useRef(!1),m=d.useRef(!1),[b=!1,g]=$e({prop:r,defaultProp:o,onChange:a}),h=d.useCallback(()=>{clearTimeout(p.current),c.current=window.setTimeout(()=>g(!0),i)},[i,g]),v=d.useCallback(()=>{clearTimeout(c.current),!u.current&&!m.current&&(p.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=d.useCallback(()=>g(!1),[g]);return d.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(p.current)},[]),f.jsx(ZF,{scope:t,open:b,onOpenChange:g,onOpen:h,onClose:v,onDismiss:y,hasSelectionRef:u,isPointerDownOnContentRef:m,children:f.jsx(gr,{...l,children:n})})};dC.displayName=Sf;var fC="HoverCardTrigger",pC=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Cf(fC,n),a=ci(n);return f.jsx(vr,{asChild:!0,...a,children:f.jsx(Z.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:B(e.onPointerEnter,di(o.onOpen)),onPointerLeave:B(e.onPointerLeave,di(o.onClose)),onFocus:B(e.onFocus,o.onOpen),onBlur:B(e.onBlur,o.onClose),onTouchStart:B(e.onTouchStart,i=>i.preventDefault())})})});pC.displayName=fC;var JF="HoverCardPortal",[a3,QF]=uC(JF,{forceMount:void 0}),ui="HoverCardContent",mC=d.forwardRef((e,t)=>{const n=QF(ui,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=Cf(ui,e.__scopeHoverCard);return f.jsx(Le,{present:r||a.open,children:f.jsx(eB,{"data-state":a.open?"open":"closed",...o,onPointerEnter:B(e.onPointerEnter,di(a.onOpen)),onPointerLeave:B(e.onPointerLeave,di(a.onClose)),ref:t})})});mC.displayName=ui;var eB=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=Cf(ui,n),c=ci(n),p=d.useRef(null),u=fe(t,p),[m,b]=d.useState(!1);return d.useEffect(()=>{if(m){const g=document.body;return xf=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=xf,g.style.webkitUserSelect=xf}}},[m]),d.useEffect(()=>{if(p.current){const g=()=>{b(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),d.useEffect(()=>{p.current&&rB(p.current).forEach(h=>h.setAttribute("tabindex","-1"))}),f.jsx(an,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:B(a,g=>{g.preventDefault()}),onDismiss:l.onDismiss,children:f.jsx(uo,{...c,...s,onPointerDown:B(s.onPointerDown,g=>{g.currentTarget.contains(g.target)&&b(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:u,style:{...s.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),tB="HoverCardArrow",nB=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ci(n);return f.jsx(fo,{...o,...r,ref:t})});nB.displayName=tB;function di(e){return t=>t.pointerType==="touch"?void 0:e()}function rB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var oB=dC,aB=pC,hC=mC;const iB=oB,sB=aB,gC=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>f.jsx(hC,{ref:o,align:t,sideOffset:n,className:O("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-hover-card-content-transform-origin]",e),...r}));gC.displayName=hC.displayName;var lB=Object.defineProperty,cB=Object.defineProperties,uB=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,vC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,yC=(e,t,n)=>t in e?lB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dB=(e,t)=>{for(var n in t||(t={}))vC.call(t,n)&&yC(e,n,t[n]);if(fi)for(var n of fi(t))bC.call(t,n)&&yC(e,n,t[n]);return e},fB=(e,t)=>cB(e,uB(t)),pB=(e,t)=>{var n={};for(var r in e)vC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fi)for(var r of fi(e))t.indexOf(r)<0&&bC.call(e,r)&&(n[r]=e[r]);return n};function mB(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function hB(e){let t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current}var gB=18,wC=40,vB=`${wC}px`,bB=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function yB({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=d.useState(!1),[i,s]=d.useState(!1),[l,c]=d.useState(!1),p=d.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&i,[o,i,n]),u=d.useCallback(()=>{let m=e.current,b=t.current;if(!m||!b||l||n==="none")return;let g=m,h=g.getBoundingClientRect().left+g.offsetWidth,v=g.getBoundingClientRect().top+g.offsetHeight/2,y=h-gB,w=v;document.querySelectorAll(bB).length===0&&document.elementFromPoint(y,w)===m||(a(!0),c(!0))},[e,t,l,n]);return d.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function b(){let h=window.innerWidth-m.getBoundingClientRect().right;s(h>=wC)}b();let g=setInterval(b,1e3);return()=>{clearInterval(g)}},[e,n]),d.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let b=setTimeout(u,0),g=setTimeout(u,2e3),h=setTimeout(u,5e3),v=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(b),clearTimeout(g),clearTimeout(h),clearTimeout(v)}},[t,r,n,u]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:vB}}var xC=d.createContext({}),SC=d.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:l,inputMode:c="numeric",onComplete:p,pushPasswordManagerStrategy:u="increase-width",pasteTransformer:m,containerClassName:b,noScriptCSSFallback:g=wB,render:h,children:v}=n,y=pB(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,S,_,P;let[C,M]=d.useState(typeof y.defaultValue=="string"?y.defaultValue:""),R=r??C,$=hB(R),D=d.useCallback(j=>{o==null||o(j),M(j)},[o]),F=d.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),A=d.useRef(null),k=d.useRef(null),L=d.useRef({value:R,onChange:D,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),I=d.useRef({prev:[(S=A.current)==null?void 0:S.selectionStart,(_=A.current)==null?void 0:_.selectionEnd,(P=A.current)==null?void 0:P.selectionDirection]});d.useImperativeHandle(t,()=>A.current,[]),d.useEffect(()=>{let j=A.current,te=k.current;if(!j||!te)return;L.current.value!==j.value&&L.current.onChange(j.value),I.current.prev=[j.selectionStart,j.selectionEnd,j.selectionDirection];function me(){if(document.activeElement!==j){ne(null),W(null);return}let pe=j.selectionStart,Te=j.selectionEnd,He=j.selectionDirection,Se=j.maxLength,Ie=j.value,ot=I.current.prev,Qe=-1,Ye=-1,at;if(Ie.length!==0&&pe!==null&&Te!==null){let Nt=pe===Te,Xe=pe===Ie.length&&Ie.length<Se;if(Nt&&!Xe){let et=pe;if(et===0)Qe=0,Ye=1,at="forward";else if(et===Se)Qe=et-1,Ye=et,at="backward";else if(Se>1&&Ie.length>1){let Ht=0;if(ot[0]!==null&&ot[1]!==null){at=et<ot[1]?"backward":"forward";let tn=ot[0]===ot[1]&&ot[0]<Se;at==="backward"&&!tn&&(Ht=-1)}Qe=Ht+et,Ye=Ht+et+1}}Qe!==-1&&Ye!==-1&&Qe!==Ye&&A.current.setSelectionRange(Qe,Ye,at)}let yt=Qe!==-1?Qe:pe,pt=Ye!==-1?Ye:Te,Ue=at??He;ne(yt),W(pt),I.current.prev=[yt,pt,Ue]}if(document.addEventListener("selectionchange",me,{capture:!0}),me(),document.activeElement===j&&ae(!0),!document.getElementById("input-otp-style")){let pe=document.createElement("style");if(pe.id="input-otp-style",document.head.appendChild(pe),pe.sheet){let Te="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";To(pe.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),To(pe.sheet,`[data-input-otp]:autofill { ${Te} }`),To(pe.sheet,`[data-input-otp]:-webkit-autofill { ${Te} }`),To(pe.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),To(pe.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let he=()=>{te&&te.style.setProperty("--root-height",`${j.clientHeight}px`)};he();let ve=new ResizeObserver(he);return ve.observe(j),()=>{document.removeEventListener("selectionchange",me,{capture:!0}),ve.disconnect()}},[]);let[U,V]=d.useState(!1),[q,ae]=d.useState(!1),[J,ne]=d.useState(null),[z,W]=d.useState(null);d.useEffect(()=>{mB(()=>{var j,te,me,he;(j=A.current)==null||j.dispatchEvent(new Event("input"));let ve=(te=A.current)==null?void 0:te.selectionStart,pe=(me=A.current)==null?void 0:me.selectionEnd,Te=(he=A.current)==null?void 0:he.selectionDirection;ve!==null&&pe!==null&&(ne(ve),W(pe),I.current.prev=[ve,pe,Te])})},[R,q]),d.useEffect(()=>{$!==void 0&&R!==$&&$.length<a&&R.length===a&&(p==null||p(R))},[a,p,$,R]);let ee=yB({containerRef:k,inputRef:A,pushPasswordManagerStrategy:u,isFocused:q}),Y=d.useCallback(j=>{let te=j.currentTarget.value.slice(0,a);if(te.length>0&&F&&!F.test(te)){j.preventDefault();return}typeof $=="string"&&te.length<$.length&&document.dispatchEvent(new Event("selectionchange")),D(te)},[a,D,$,F]),H=d.useCallback(()=>{var j;if(A.current){let te=Math.min(A.current.value.length,a-1),me=A.current.value.length;(j=A.current)==null||j.setSelectionRange(te,me),ne(te),W(me)}ae(!0)},[a]),K=d.useCallback(j=>{var te,me;let he=A.current;if(!m&&(!L.current.isIOS||!j.clipboardData||!he))return;let ve=j.clipboardData.getData("text/plain"),pe=m?m(ve):ve;j.preventDefault();let Te=(te=A.current)==null?void 0:te.selectionStart,He=(me=A.current)==null?void 0:me.selectionEnd,Se=(Te!==He?R.slice(0,Te)+pe+R.slice(He):R.slice(0,Te)+pe+R.slice(Te)).slice(0,a);if(Se.length>0&&F&&!F.test(Se))return;he.value=Se,D(Se);let Ie=Math.min(Se.length,a-1),ot=Se.length;he.setSelectionRange(Ie,ot),ne(Ie),W(ot)},[a,D,F,R]),re=d.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),Q=d.useMemo(()=>({position:"absolute",inset:0,width:ee.willPushPWMBadge?`calc(100% + ${ee.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ee.willPushPWMBadge?`inset(0 ${ee.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ee.PWM_BADGE_SPACE_WIDTH,ee.willPushPWMBadge,i]),oe=d.useMemo(()=>d.createElement("input",fB(dB({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":R.length===0||void 0,"data-input-otp-mss":J,"data-input-otp-mse":z,inputMode:c,pattern:F==null?void 0:F.source,"aria-placeholder":l,style:Q,maxLength:a,value:R,ref:A,onPaste:j=>{var te;K(j),(te=y.onPaste)==null||te.call(y,j)},onChange:Y,onMouseOver:j=>{var te;V(!0),(te=y.onMouseOver)==null||te.call(y,j)},onMouseLeave:j=>{var te;V(!1),(te=y.onMouseLeave)==null||te.call(y,j)},onFocus:j=>{var te;H(),(te=y.onFocus)==null||te.call(y,j)},onBlur:j=>{var te;ae(!1),(te=y.onBlur)==null||te.call(y,j)}})),[Y,H,K,c,Q,a,z,J,y,F==null?void 0:F.source,R]),G=d.useMemo(()=>({slots:Array.from({length:a}).map((j,te)=>{var me;let he=q&&J!==null&&z!==null&&(J===z&&te===J||te>=J&&te<z),ve=R[te]!==void 0?R[te]:null,pe=R[0]!==void 0?null:(me=l==null?void 0:l[te])!=null?me:null;return{char:ve,placeholderChar:pe,isActive:he,hasFakeCaret:he&&ve===null}}),isFocused:q,isHovering:!y.disabled&&U}),[q,U,a,z,J,y.disabled,R]),ie=d.useMemo(()=>h?h(G):d.createElement(xC.Provider,{value:G},v),[v,G,h]);return d.createElement(d.Fragment,null,g!==null&&d.createElement("noscript",null,d.createElement("style",null,g)),d.createElement("div",{ref:k,"data-input-otp-container":!0,style:re,className:b},ie,d.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},oe)))});SC.displayName="Input";function To(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var wB=`
214
+ [data-input-otp] {
215
+ --nojs-bg: white !important;
216
+ --nojs-fg: black !important;
217
+
218
+ background-color: var(--nojs-bg) !important;
219
+ color: var(--nojs-fg) !important;
220
+ caret-color: var(--nojs-fg) !important;
221
+ letter-spacing: .25em !important;
222
+ text-align: center !important;
223
+ border: 1px solid var(--nojs-fg) !important;
224
+ border-radius: 4px !important;
225
+ width: 100% !important;
226
+ }
227
+ @media (prefers-color-scheme: dark) {
228
+ [data-input-otp] {
229
+ --nojs-bg: black !important;
230
+ --nojs-fg: white !important;
231
+ }
232
+ }`;const CC=d.forwardRef(({className:e,containerClassName:t,...n},r)=>f.jsx(SC,{ref:r,containerClassName:O("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:O("disabled:cursor-not-allowed",e),...n}));CC.displayName="InputOTP";const _C=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:O("flex items-center",e),...t}));_C.displayName="InputOTPGroup";const EC=d.forwardRef(({index:e,className:t,...n},r)=>{const o=d.useContext(xC),{char:a,hasFakeCaret:i,isActive:s}=o.slots[e];return f.jsxs("div",{ref:r,className:O("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...n,children:[a,i&&f.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:f.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});EC.displayName="InputOTPSlot";const PC=d.forwardRef(({...e},t)=>f.jsx("div",{ref:t,role:"separator",...e,children:f.jsx(T1,{})}));PC.displayName="InputOTPSeparator";const Ro=d.forwardRef(({className:e,type:t,...n},r)=>f.jsx("input",{type:t,className:O("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Ro.displayName="Input";var pi="Menubar",[_f,xB,SB]=nn(pi),[TC,i3]=De(pi,[SB,Jt]),ft=vo(),RC=Jt(),[CB,Ef]=TC(pi),NC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:i=!0,dir:s,...l}=e,c=Mt(s),p=RC(n),[u="",m]=$e({prop:r,onChange:o,defaultProp:a}),[b,g]=d.useState(null);return f.jsx(CB,{scope:n,value:u,onMenuOpen:d.useCallback(h=>{m(h),g(h)},[m]),onMenuClose:d.useCallback(()=>m(""),[m]),onMenuToggle:d.useCallback(h=>{m(v=>v?"":h),g(h)},[m]),dir:c,loop:i,children:f.jsx(_f.Provider,{scope:n,children:f.jsx(_f.Slot,{scope:n,children:f.jsx(po,{asChild:!0,...p,orientation:"horizontal",loop:i,dir:c,currentTabStopId:b,onCurrentTabStopIdChange:g,children:f.jsx(Z.div,{role:"menubar",...l,ref:t})})})})})});NC.displayName=pi;var Pf="MenubarMenu",[_B,AC]=TC(Pf),MC=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Ge(),a=n||o||"LEGACY_REACT_AUTO_VALUE",i=Ef(Pf,t),s=ft(t),l=d.useRef(null),c=d.useRef(!1),p=i.value===a;return d.useEffect(()=>{p||(c.current=!1)},[p]),f.jsx(_B,{scope:t,value:a,triggerId:Ge(),triggerRef:l,contentId:Ge(),wasKeyboardTriggerOpenRef:c,children:f.jsx(Hd,{...s,open:p,onOpenChange:u=>{u||i.onMenuClose()},modal:!1,dir:i.dir,...r})})};MC.displayName=Pf;var Tf="MenubarTrigger",OC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=RC(n),i=ft(n),s=Ef(Tf,n),l=AC(Tf,n),c=d.useRef(null),p=fe(t,c,l.triggerRef),[u,m]=d.useState(!1),b=s.value===l.value;return f.jsx(_f.ItemSlot,{scope:n,value:l.value,disabled:r,children:f.jsx(mo,{asChild:!0,...a,focusable:!r,tabStopId:l.value,children:f.jsx(Vd,{asChild:!0,...i,children:f.jsx(Z.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":b?l.contentId:void 0,"data-highlighted":u?"":void 0,"data-state":b?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:p,onPointerDown:B(e.onPointerDown,g=>{!r&&g.button===0&&g.ctrlKey===!1&&(s.onMenuOpen(l.value),b||g.preventDefault())}),onPointerEnter:B(e.onPointerEnter,()=>{var h;!!s.value&&!b&&(s.onMenuOpen(l.value),(h=c.current)==null||h.focus())}),onKeyDown:B(e.onKeyDown,g=>{r||(["Enter"," "].includes(g.key)&&s.onMenuToggle(l.value),g.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(g.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:B(e.onFocus,()=>m(!0)),onBlur:B(e.onBlur,()=>m(!1))})})})})});OC.displayName=Tf;var EB="MenubarPortal",IC=e=>{const{__scopeMenubar:t,...n}=e,r=ft(t);return f.jsx(Gd,{...r,...n})};IC.displayName=EB;var Rf="MenubarContent",jC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=ft(n),i=Ef(Rf,n),s=AC(Rf,n),l=xB(n),c=d.useRef(!1);return f.jsx(Ud,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:r,onCloseAutoFocus:B(e.onCloseAutoFocus,p=>{var m;!!!i.value&&!c.current&&((m=s.triggerRef.current)==null||m.focus()),c.current=!1,p.preventDefault()}),onFocusOutside:B(e.onFocusOutside,p=>{const u=p.target;l().some(b=>{var g;return(g=b.ref.current)==null?void 0:g.contains(u)})&&p.preventDefault()}),onInteractOutside:B(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:B(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const u=p.target,m=u.hasAttribute("data-radix-menubar-subtrigger"),b=u.closest("[data-radix-menubar-content]")!==p.currentTarget,h=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!h&&m||b&&h)return;let w=l().filter(_=>!_.disabled).map(_=>_.value);h&&w.reverse();const x=w.indexOf(s.value);w=i.loop?FB(w,x+1):w.slice(x+1);const[S]=w;S&&i.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});jC.displayName=Rf;var PB="MenubarGroup",DC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Wd,{...o,...r,ref:t})});DC.displayName=PB;var TB="MenubarLabel",kC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Kd,{...o,...r,ref:t})});kC.displayName=TB;var RB="MenubarItem",$C=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Yd,{...o,...r,ref:t})});$C.displayName=RB;var NB="MenubarCheckboxItem",LC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Xd,{...o,...r,ref:t})});LC.displayName=NB;var AB="MenubarRadioGroup",FC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Zd,{...o,...r,ref:t})});FC.displayName=AB;var MB="MenubarRadioItem",BC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Jd,{...o,...r,ref:t})});BC.displayName=MB;var OB="MenubarItemIndicator",zC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(Qd,{...o,...r,ref:t})});zC.displayName=OB;var IB="MenubarSeparator",qC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(ef,{...o,...r,ref:t})});qC.displayName=IB;var jB="MenubarArrow",DB=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(tf,{...o,...r,ref:t})});DB.displayName=jB;var kB="MenubarSub",HC=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=ft(t),[s=!1,l]=$e({prop:r,defaultProp:a,onChange:o});return f.jsx(nf,{...i,open:s,onOpenChange:l,children:n})};HC.displayName=kB;var $B="MenubarSubTrigger",VC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(rf,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});VC.displayName=$B;var LB="MenubarSubContent",GC=d.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return f.jsx(of,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});GC.displayName=LB;function FB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var UC=NC,BB=MC,WC=OC,KC=IC,YC=jC,zB=DC,XC=kC,ZC=$C,JC=LC,qB=FC,QC=BC,e_=zC,t_=qC,HB=HC,n_=VC,r_=GC;function VB({...e}){return f.jsx(BB,{...e})}function GB({...e}){return f.jsx(zB,{...e})}function UB({...e}){return f.jsx(KC,{...e})}function WB({...e}){return f.jsx(qB,{...e})}function KB({...e}){return f.jsx(HB,{"data-slot":"menubar-sub",...e})}const o_=d.forwardRef(({className:e,...t},n)=>f.jsx(UC,{ref:n,className:O("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));o_.displayName=UC.displayName;const a_=d.forwardRef(({className:e,...t},n)=>f.jsx(WC,{ref:n,className:O("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));a_.displayName=WC.displayName;const i_=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>f.jsxs(n_,{ref:o,className:O("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,f.jsx(Rn,{className:"ml-auto h-4 w-4"})]}));i_.displayName=n_.displayName;const s_=d.forwardRef(({className:e,...t},n)=>f.jsx(r_,{ref:n,className:O("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-menubar-content-transform-origin]",e),...t}));s_.displayName=r_.displayName;const l_=d.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},a)=>f.jsx(KC,{children:f.jsx(YC,{ref:a,align:t,alignOffset:n,sideOffset:r,className:O("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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 origin-[--radix-menubar-content-transform-origin]",e),...o})}));l_.displayName=YC.displayName;const c_=d.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(ZC,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));c_.displayName=ZC.displayName;const u_=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>f.jsxs(JC,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(e_,{children:f.jsx(Br,{className:"h-4 w-4"})})}),t]}));u_.displayName=JC.displayName;const d_=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(QC,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(e_,{children:f.jsx(Xo,{className:"h-4 w-4 fill-current"})})}),t]}));d_.displayName=QC.displayName;const f_=d.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(XC,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));f_.displayName=XC.displayName;const p_=d.forwardRef(({className:e,...t},n)=>f.jsx(t_,{ref:n,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));p_.displayName=t_.displayName;const m_=({className:e,...t})=>f.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});m_.displayname="MenubarShortcut";var YB="VisuallyHidden",No=d.forwardRef((e,t)=>f.jsx(Z.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));No.displayName=YB;var h_=No,yr="NavigationMenu",[Nf,g_,XB]=nn(yr),[Af,ZB,JB]=nn(yr),[Mf,s3]=De(yr,[XB,JB]),[QB,Tt]=Mf(yr),[ez,tz]=Mf(yr),v_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...p}=e,[u,m]=d.useState(null),b=fe(t,R=>m(R)),g=Mt(c),h=d.useRef(0),v=d.useRef(0),y=d.useRef(0),[w,x]=d.useState(!0),[S="",_]=$e({prop:r,onChange:R=>{const $=R!=="",D=s>0;$?(window.clearTimeout(y.current),D&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),s)),o==null||o(R)},defaultProp:a}),P=d.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>_(""),150)},[_]),C=d.useCallback(R=>{window.clearTimeout(v.current),_(R)},[_]),M=d.useCallback(R=>{S===R?window.clearTimeout(v.current):h.current=window.setTimeout(()=>{window.clearTimeout(v.current),_(R)},i)},[S,_,i]);return d.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(v.current),window.clearTimeout(y.current)},[]),f.jsx(y_,{scope:n,isRootMenu:!0,value:S,dir:g,orientation:l,rootNavigationMenu:u,onTriggerEnter:R=>{window.clearTimeout(h.current),w?M(R):C(R)},onTriggerLeave:()=>{window.clearTimeout(h.current),P()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:P,onItemSelect:R=>{_($=>$===R?"":R)},onItemDismiss:()=>_(""),children:f.jsx(Z.nav,{"aria-label":"Main","data-orientation":l,dir:g,...p,ref:b})})});v_.displayName=yr;var b_="NavigationMenuSub",nz=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=Tt(b_,n),[c="",p]=$e({prop:r,onChange:o,defaultProp:a});return f.jsx(y_,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:u=>p(u),onItemSelect:u=>p(u),onItemDismiss:()=>p(""),children:f.jsx(Z.div,{"data-orientation":i,...s,ref:t})})});nz.displayName=b_;var y_=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:p,onTriggerLeave:u,onContentEnter:m,onContentLeave:b}=e,[g,h]=d.useState(null),[v,y]=d.useState(new Map),[w,x]=d.useState(null);return f.jsx(QB,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:dr(s),baseId:Ge(),dir:o,orientation:a,viewport:g,onViewportChange:h,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:Ne(p),onTriggerLeave:Ne(u),onContentEnter:Ne(m),onContentLeave:Ne(b),onItemSelect:Ne(l),onItemDismiss:Ne(c),onViewportContentChange:d.useCallback((S,_)=>{y(P=>(P.set(S,_),new Map(P)))},[]),onViewportContentRemove:d.useCallback(S=>{y(_=>_.has(S)?(_.delete(S),new Map(_)):_)},[]),children:f.jsx(Nf.Provider,{scope:t,children:f.jsx(ez,{scope:t,items:v,children:i})})})},w_="NavigationMenuList",x_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Tt(w_,n),a=f.jsx(Z.ul,{"data-orientation":o.orientation,...r,ref:t});return f.jsx(Z.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:f.jsx(Nf.Slot,{scope:n,children:o.isRootMenu?f.jsx(O_,{asChild:!0,children:a}):a})})});x_.displayName=w_;var S_="NavigationMenuItem",[rz,C_]=Mf(S_),__=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=Ge(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),l=d.useRef(null),c=d.useRef(null),p=d.useRef(()=>{}),u=d.useRef(!1),m=d.useCallback((g="start")=>{if(s.current){p.current();const h=Df(s.current);h.length&&kf(g==="start"?h:h.reverse())}},[]),b=d.useCallback(()=>{if(s.current){const g=Df(s.current);g.length&&(p.current=uz(g))}},[]);return f.jsx(rz,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:b,onContentFocusOutside:b,children:f.jsx(Z.li,{...o,ref:t})})});__.displayName=S_;var Of="NavigationMenuTrigger",E_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Tt(Of,e.__scopeNavigationMenu),i=C_(Of,e.__scopeNavigationMenu),s=d.useRef(null),l=fe(s,i.triggerRef,t),c=D_(a.baseId,i.value),p=k_(a.baseId,i.value),u=d.useRef(!1),m=d.useRef(!1),b=i.value===a.value;return f.jsxs(f.Fragment,{children:[f.jsx(Nf.ItemSlot,{scope:n,value:i.value,children:f.jsx(j_,{asChild:!0,children:f.jsx(Z.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Lf(b),"aria-expanded":b,"aria-controls":p,...o,ref:l,onPointerEnter:B(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:B(e.onPointerMove,hi(()=>{r||m.current||i.wasEscapeCloseRef.current||u.current||(a.onTriggerEnter(i.value),u.current=!0)})),onPointerLeave:B(e.onPointerLeave,hi(()=>{r||(a.onTriggerLeave(),u.current=!1)})),onClick:B(e.onClick,()=>{a.onItemSelect(i.value),m.current=b}),onKeyDown:B(e.onKeyDown,g=>{const v={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];b&&g.key===v&&(i.onEntryKeyDown(),g.preventDefault())})})})}),b&&f.jsxs(f.Fragment,{children:[f.jsx(h_,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const h=i.contentRef.current,v=g.relatedTarget,y=v===s.current,w=h==null?void 0:h.contains(v);(y||!w)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&f.jsx("span",{"aria-owns":p})]})]})});E_.displayName=Of;var oz="NavigationMenuLink",P_="navigationMenu.linkSelect",T_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return f.jsx(j_,{asChild:!0,children:f.jsx(Z.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:B(e.onClick,i=>{const s=i.target,l=new CustomEvent(P_,{bubbles:!0,cancelable:!0});if(s.addEventListener(P_,c=>o==null?void 0:o(c),{once:!0}),Fr(s,l),!l.defaultPrevented&&!i.metaKey){const c=new CustomEvent(mi,{bubbles:!0,cancelable:!0});Fr(s,c)}},{checkForDefaultPrevented:!1})})})});T_.displayName=oz;var If="NavigationMenuIndicator",R_=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tt(If,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?qo.createPortal(f.jsx(Le,{present:n||a,children:f.jsx(az,{...r,ref:t})}),o.indicatorTrack):null});R_.displayName=If;var az=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Tt(If,n),a=g_(n),[i,s]=d.useState(null),[l,c]=d.useState(null),p=o.orientation==="horizontal",u=!!o.value;d.useEffect(()=>{var h;const g=(h=a().find(v=>v.value===o.value))==null?void 0:h.ref.current;g&&s(g)},[a,o.value]);const m=()=>{i&&c({size:p?i.offsetWidth:i.offsetHeight,offset:p?i.offsetLeft:i.offsetTop})};return $f(i,m),$f(o.indicatorTrack,m),l?f.jsx(Z.div,{"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...p?{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}),wr="NavigationMenuContent",N_=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tt(wr,e.__scopeNavigationMenu),a=C_(wr,e.__scopeNavigationMenu),i=fe(a.contentRef,t),s=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?f.jsx(iz,{forceMount:n,...l,ref:i}):f.jsx(Le,{present:n||s,children:f.jsx(A_,{"data-state":Lf(s),...l,ref:i,onPointerEnter:B(e.onPointerEnter,o.onContentEnter),onPointerLeave:B(e.onPointerLeave,hi(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});N_.displayName=wr;var iz=d.forwardRef((e,t)=>{const n=Tt(wr,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Be(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Be(()=>()=>o(e.value),[e.value,o]),null}),mi="navigationMenu.rootContentDismiss",A_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...c}=e,p=Tt(wr,n),u=d.useRef(null),m=fe(u,t),b=D_(p.baseId,r),g=k_(p.baseId,r),h=g_(n),v=d.useRef(null),{onItemDismiss:y}=p;d.useEffect(()=>{const x=u.current;if(p.isRootMenu&&x){const S=()=>{var _;y(),s(),x.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return x.addEventListener(mi,S),()=>x.removeEventListener(mi,S)}},[p.isRootMenu,e.value,o,y,s]);const w=d.useMemo(()=>{const S=h().map($=>$.value);p.dir==="rtl"&&S.reverse();const _=S.indexOf(p.value),P=S.indexOf(p.previousValue),C=r===p.value,M=P===S.indexOf(r);if(!C&&!M)return v.current;const R=(()=>{if(_!==P){if(C&&P!==-1)return _>P?"from-end":"from-start";if(M&&_!==-1)return _>P?"to-start":"to-end"}return null})();return v.current=R,R},[p.previousValue,p.value,p.dir,h,r]);return f.jsx(O_,{asChild:!0,children:f.jsx(an,{id:g,"aria-labelledby":b,"data-motion":w,"data-orientation":p.orientation,...c,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(mi,{bubbles:!0,cancelable:!0});(S=u.current)==null||S.dispatchEvent(x)},onFocusOutside:B(e.onFocusOutside,x=>{var _;l();const S=x.target;(_=p.rootNavigationMenu)!=null&&_.contains(S)&&x.preventDefault()}),onPointerDownOutside:B(e.onPointerDownOutside,x=>{var C;const S=x.target,_=h().some(M=>{var R;return(R=M.ref.current)==null?void 0:R.contains(S)}),P=p.isRootMenu&&((C=p.viewport)==null?void 0:C.contains(S));(_||P||!p.isRootMenu)&&x.preventDefault()}),onKeyDown:B(e.onKeyDown,x=>{var P;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const C=Df(x.currentTarget),M=document.activeElement,R=C.findIndex(F=>F===M),D=x.shiftKey?C.slice(0,R).reverse():C.slice(R+1,C.length);kf(D)?x.preventDefault():(P=a.current)==null||P.focus()}}),onEscapeKeyDown:B(e.onEscapeKeyDown,x=>{i.current=!0})})})}),jf="NavigationMenuViewport",M_=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Tt(jf,e.__scopeNavigationMenu).value;return f.jsx(Le,{present:n||a,children:f.jsx(sz,{...r,ref:t})})});M_.displayName=jf;var sz=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Tt(jf,n),i=fe(t,a.onViewportChange),s=tz(wr,e.__scopeNavigationMenu),[l,c]=d.useState(null),[p,u]=d.useState(null),m=l?(l==null?void 0:l.width)+"px":void 0,b=l?(l==null?void 0:l.height)+"px":void 0,g=!!a.value,h=g?a.value:a.previousValue;return $f(p,()=>{p&&c({width:p.offsetWidth,height:p.offsetHeight})}),f.jsx(Z.div,{"data-state":Lf(g),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":b,...o.style},onPointerEnter:B(e.onPointerEnter,a.onContentEnter),onPointerLeave:B(e.onPointerLeave,hi(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:w,forceMount:x,...S}])=>{const _=h===y;return f.jsx(Le,{present:x||_,children:f.jsx(A_,{...S,ref:Lr(w,P=>{_&&P&&u(P)})})},y)})})}),lz="FocusGroup",O_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Tt(lz,n);return f.jsx(Af.Provider,{scope:n,children:f.jsx(Af.Slot,{scope:n,children:f.jsx(Z.div,{dir:o.dir,...r,ref:t})})})}),I_=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],cz="FocusGroupItem",j_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ZB(n),a=Tt(cz,n);return f.jsx(Af.ItemSlot,{scope:n,children:f.jsx(Z.button,{...r,ref:t,onKeyDown:B(e.onKeyDown,i=>{if(["Home","End",...I_].includes(i.key)){let l=o().map(u=>u.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),I_.includes(i.key)){const u=l.indexOf(i.currentTarget);l=l.slice(u+1)}setTimeout(()=>kf(l)),i.preventDefault()}})})})});function Df(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 kf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function uz(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 $f(e,t){const n=Ne(t);Be(()=>{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 Lf(e){return e?"open":"closed"}function D_(e,t){return`${e}-trigger-${t}`}function k_(e,t){return`${e}-content-${t}`}function hi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $_=v_,L_=x_,dz=__,F_=E_,fz=T_,B_=R_,z_=N_,q_=M_;const H_=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs($_,{ref:r,className:O("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,f.jsx(Ff,{})]}));H_.displayName=$_.displayName;const V_=d.forwardRef(({className:e,...t},n)=>f.jsx(L_,{ref:n,className:O("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));V_.displayName=L_.displayName;const pz=dz,G_=ln("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),U_=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(F_,{ref:r,className:O(G_(),"group",e),...n,children:[t," ",f.jsx(Yo,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));U_.displayName=F_.displayName;const W_=d.forwardRef(({className:e,...t},n)=>f.jsx(z_,{ref:n,className:O("left-0 top-0 w-full 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 md:absolute md:w-auto ",e),...t}));W_.displayName=z_.displayName;const mz=fz,Ff=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:O("absolute left-0 top-full flex justify-center"),children:f.jsx(q_,{className:O("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Ff.displayName=q_.displayName;const K_=d.forwardRef(({className:e,...t},n)=>f.jsx(B_,{ref:n,className:O("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));K_.displayName=B_.displayName;const Y_=({className:e,...t})=>f.jsx("nav",{role:"navigation","aria-label":"pagination",className:O("mx-auto flex w-full justify-center",e),...t});Y_.displayName="Pagination";const X_=d.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,className:O("flex flex-row items-center gap-1",e),...t}));X_.displayName="PaginationContent";const Z_=d.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,className:O("",e),...t}));Z_.displayName="PaginationItem";const gi=({className:e,isActive:t,size:n="icon",...r})=>f.jsx("a",{"aria-current":t?"page":void 0,className:O(Hr({variant:t?"outline":"ghost",size:n}),e),...r});gi.displayName="PaginationLink";const J_=({className:e,...t})=>f.jsxs(gi,{"aria-label":"Go to previous page",size:"default",className:O("gap-1 pl-2.5",e),...t,children:[f.jsx(C1,{className:"h-4 w-4"}),f.jsx("span",{children:"Previous"})]});J_.displayName="PaginationPrevious";const Q_=({className:e,...t})=>f.jsxs(gi,{"aria-label":"Go to next page",size:"default",className:O("gap-1 pr-2.5",e),...t,children:[f.jsx("span",{children:"Next"}),f.jsx(Rn,{className:"h-4 w-4"})]});Q_.displayName="PaginationNext";const eE=({className:e,...t})=>f.jsxs("span",{"aria-hidden":!0,className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[f.jsx(rs,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"More pages"})]});eE.displayName="PaginationEllipsis";var Bf="Popover",[tE,l3]=De(Bf,[Zt]),Ao=Zt(),[hz,Cn]=tE(Bf),nE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Ao(t),l=d.useRef(null),[c,p]=d.useState(!1),[u=!1,m]=$e({prop:r,defaultProp:o,onChange:a});return f.jsx(gr,{...s,children:f.jsx(hz,{scope:t,contentId:Ge(),triggerRef:l,open:u,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:c,onCustomAnchorAdd:d.useCallback(()=>p(!0),[]),onCustomAnchorRemove:d.useCallback(()=>p(!1),[]),modal:i,children:n})})};nE.displayName=Bf;var rE="PopoverAnchor",oE=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Cn(rE,n),a=Ao(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return d.useEffect(()=>(i(),()=>s()),[i,s]),f.jsx(vr,{...a,...r,ref:t})});oE.displayName=rE;var aE="PopoverTrigger",iE=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Cn(aE,n),a=Ao(n),i=fe(t,o.triggerRef),s=f.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":dE(o.open),...r,ref:i,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:f.jsx(vr,{asChild:!0,...a,children:s})});iE.displayName=aE;var zf="PopoverPortal",[gz,vz]=tE(zf,{forceMount:void 0}),sE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Cn(zf,t);return f.jsx(gz,{scope:t,forceMount:n,children:f.jsx(Le,{present:n||a.open,children:f.jsx(Mn,{asChild:!0,container:o,children:r})})})};sE.displayName=zf;var xr="PopoverContent",lE=d.forwardRef((e,t)=>{const n=vz(xr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Cn(xr,e.__scopePopover);return f.jsx(Le,{present:r||a.open,children:a.modal?f.jsx(bz,{...o,ref:t}):f.jsx(yz,{...o,ref:t})})});lE.displayName=xr;var bz=d.forwardRef((e,t)=>{const n=Cn(xr,e.__scopePopover),r=d.useRef(null),o=fe(t,r),a=d.useRef(!1);return d.useEffect(()=>{const i=r.current;if(i)return ia(i)},[]),f.jsx(qr,{as:lt,allowPinchZoom:!0,children:f.jsx(cE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),yz=d.forwardRef((e,t)=>{const n=Cn(xr,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return f.jsx(cE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),cE=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:p,...u}=e,m=Cn(xr,n),b=Ao(n);return Jo(),f.jsx(zr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(an,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:f.jsx(uo,{"data-state":dE(m.open),role:"dialog",id:m.contentId,...b,...u,ref:t,style:{...u.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)"}})})})}),uE="PopoverClose",wz=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Cn(uE,n);return f.jsx(Z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});wz.displayName=uE;var xz="PopoverArrow",Sz=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ao(n);return f.jsx(fo,{...o,...r,ref:t})});Sz.displayName=xz;function dE(e){return e?"open":"closed"}var Cz=nE,_z=oE,Ez=iE,Pz=sE,fE=lE;const Tz=Cz,Rz=Ez,Nz=_z,pE=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>f.jsx(Pz,{children:f.jsx(fE,{ref:o,align:t,sideOffset:n,className:O("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-popover-content-transform-origin]",e),...r})}));pE.displayName=fE.displayName;var qf="Progress",Hf=100,[Az,c3]=De(qf),[Mz,Oz]=Az(qf),mE=d.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=Iz,...i}=e;(o||o===0)&&!bE(o)&&console.error(jz(`${o}`,"Progress"));const s=bE(o)?o:Hf;r!==null&&!yE(r,s)&&console.error(Dz(`${r}`,"Progress"));const l=yE(r,s)?r:null,c=vi(l)?a(l,s):void 0;return f.jsx(Mz,{scope:n,value:l,max:s,children:f.jsx(Z.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":vi(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":vE(l,s),"data-value":l??void 0,"data-max":s,...i,ref:t})})});mE.displayName=qf;var hE="ProgressIndicator",gE=d.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=Oz(hE,n);return f.jsx(Z.div,{"data-state":vE(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});gE.displayName=hE;function Iz(e,t){return`${Math.round(e/t*100)}%`}function vE(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vi(e){return typeof e=="number"}function bE(e){return vi(e)&&!isNaN(e)&&e>0}function yE(e,t){return vi(e)&&!isNaN(e)&&e<=t&&e>=0}function jz(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hf}\`.`}function Dz(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
233
+ - a positive number
234
+ - less than the value passed to \`max\` (or ${Hf} if no \`max\` prop is set)
235
+ - \`null\` or \`undefined\` if the progress is indeterminate.
236
+
237
+ Defaulting to \`null\`.`}var wE=mE,kz=gE;const xE=d.forwardRef(({className:e,value:t,...n},r)=>f.jsx(wE,{ref:r,className:O("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:f.jsx(kz,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));xE.displayName=wE.displayName;var Vf="Radio",[$z,SE]=De(Vf),[Lz,Fz]=$z(Vf),CE=d.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:l,form:c,...p}=e,[u,m]=d.useState(null),b=fe(t,v=>m(v)),g=d.useRef(!1),h=u?c||!!u.closest("form"):!0;return f.jsxs(Lz,{scope:n,checked:o,disabled:i,children:[f.jsx(Z.button,{type:"button",role:"radio","aria-checked":o,"data-state":PE(o),"data-disabled":i?"":void 0,disabled:i,value:s,...p,ref:b,onClick:B(e.onClick,v=>{o||l==null||l(),h&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),h&&f.jsx(Bz,{control:u,bubbles:!g.current,name:r,value:s,checked:o,required:a,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});CE.displayName=Vf;var _E="RadioIndicator",EE=d.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Fz(_E,n);return f.jsx(Le,{present:r||a.checked,children:f.jsx(Z.span,{"data-state":PE(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});EE.displayName=_E;var Bz=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=d.useRef(null),i=dr(n),s=io(t);return d.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&u){const m=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(m)}},[i,n,r]),f.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function PE(e){return e?"checked":"unchecked"}var zz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Gf="RadioGroup",[qz,u3]=De(Gf,[Jt,SE]),TE=Jt(),RE=SE(),[Hz,Vz]=qz(Gf),NE=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:l,dir:c,loop:p=!0,onValueChange:u,...m}=e,b=TE(n),g=Mt(c),[h,v]=$e({prop:a,defaultProp:o,onChange:u});return f.jsx(Hz,{scope:n,name:r,required:i,disabled:s,value:h,onValueChange:v,children:f.jsx(po,{asChild:!0,...b,orientation:l,dir:g,loop:p,children:f.jsx(Z.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...m,ref:t})})})});NE.displayName=Gf;var AE="RadioGroupItem",ME=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Vz(AE,n),i=a.disabled||r,s=TE(n),l=RE(n),c=d.useRef(null),p=fe(t,c),u=a.value===o.value,m=d.useRef(!1);return d.useEffect(()=>{const b=h=>{zz.includes(h.key)&&(m.current=!0)},g=()=>m.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",g)}},[]),f.jsx(mo,{asChild:!0,...s,focusable:!i,active:u,children:f.jsx(CE,{disabled:i,required:a.required,checked:u,...l,...o,name:a.name,ref:p,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:B(o.onFocus,()=>{var b;m.current&&((b=c.current)==null||b.click())})})})});ME.displayName=AE;var Gz="RadioGroupIndicator",OE=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=RE(n);return f.jsx(EE,{...o,...r,ref:t})});OE.displayName=Gz;var IE=NE,jE=ME,Uz=OE;const DE=d.forwardRef(({className:e,...t},n)=>f.jsx(IE,{className:O("grid gap-2",e),...t,ref:n}));DE.displayName=IE.displayName;const kE=d.forwardRef(({className:e,...t},n)=>f.jsx(jE,{ref:n,className:O("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:f.jsx(Uz,{className:"flex items-center justify-center",children:f.jsx(Xo,{className:"h-3.5 w-3.5 fill-primary"})})}));kE.displayName=jE.displayName;const{createElement:Sr,createContext:Wz,forwardRef:$E,useCallback:gt,useContext:LE,useEffect:zn,useImperativeHandle:FE,useLayoutEffect:Kz,useMemo:Yz,useRef:vt,useState:Cr}=d,BE=d[`useId${Math.random()}`.slice(0,5)],Xz=Kz,bi=Wz(null);bi.displayName="PanelGroupContext";const qn=Xz,Zz=typeof BE=="function"?BE:()=>null;let Jz=0;function Uf(e=null){const t=Zz(),n=vt(e||t||null);return n.current===null&&(n.current=""+Jz++),e??n.current}function zE({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:a,id:i,maxSize:s,minSize:l,onCollapse:c,onExpand:p,onResize:u,order:m,style:b,tagName:g="div",...h}){const v=LE(bi);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:w,getPanelSize:x,getPanelStyle:S,groupId:_,isPanelCollapsed:P,reevaluatePanelConstraints:C,registerPanel:M,resizePanel:R,unregisterPanel:$}=v,D=Uf(i),F=vt({callbacks:{onCollapse:c,onExpand:p,onResize:u},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l},id:D,idIsFromProps:i!==void 0,order:m});vt({didLogMissingDefaultSizeWarning:!1}),qn(()=>{const{callbacks:k,constraints:L}=F.current,I={...L};F.current.id=D,F.current.idIsFromProps=i!==void 0,F.current.order=m,k.onCollapse=c,k.onExpand=p,k.onResize=u,L.collapsedSize=n,L.collapsible=r,L.defaultSize=o,L.maxSize=s,L.minSize=l,(I.collapsedSize!==L.collapsedSize||I.collapsible!==L.collapsible||I.maxSize!==L.maxSize||I.minSize!==L.minSize)&&C(F.current,I)}),qn(()=>{const k=F.current;return M(k),()=>{$(k)}},[m,D,M,$]),FE(a,()=>({collapse:()=>{y(F.current)},expand:k=>{w(F.current,k)},getId(){return D},getSize(){return x(F.current)},isCollapsed(){return P(F.current)},isExpanded(){return!P(F.current)},resize:k=>{R(F.current,k)}}),[y,w,x,P,D,R]);const A=S(F.current,o);return Sr(g,{...h,children:e,className:t,id:i,style:{...A,...b},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":_,"data-panel-id":D,"data-panel-size":parseFloat(""+A.flexGrow).toFixed(1)})}const qE=$E((e,t)=>Sr(zE,{...e,forwardedRef:t}));zE.displayName="Panel",qE.displayName="forwardRef(Panel)";let Wf=null,Hn=null;function Qz(e,t){if(t){const n=(t&XE)!==0,r=(t&ZE)!==0,o=(t&JE)!==0,a=(t&QE)!==0;if(n)return o?"se-resize":a?"ne-resize":"e-resize";if(r)return o?"sw-resize":a?"nw-resize":"w-resize";if(o)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function e5(){Hn!==null&&(document.head.removeChild(Hn),Wf=null,Hn=null)}function Kf(e,t){const n=Qz(e,t);Wf!==n&&(Wf=n,Hn===null&&(Hn=document.createElement("style"),document.head.appendChild(Hn)),Hn.innerHTML=`*{cursor: ${n}!important;}`)}function HE(e){return e.type==="keydown"}function VE(e){return e.type.startsWith("pointer")}function GE(e){return e.type.startsWith("mouse")}function yi(e){if(VE(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(GE(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function t5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function n5(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function r5(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:KE(e),b:KE(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ye(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:WE(UE(n.a)),b:WE(UE(n.b))};if(o.a===o.b){const a=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(o.a-o.b)}const o5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function a5(e){var t;const n=getComputedStyle((t=YE(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function i5(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||a5(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||o5.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function UE(e){let t=e.length;for(;t--;){const n=e[t];if(ye(n,"Missing node"),i5(n))return n}return null}function WE(e){return e&&Number(getComputedStyle(e).zIndex)||0}function KE(e){const t=[];for(;e;)t.push(e),e=YE(e);return t}function YE(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const XE=1,ZE=2,JE=4,QE=8,s5=t5()==="coarse";let zt=[],_r=!1,_n=new Map,wi=new Map;const Mo=new Set;function l5(e,t,n,r,o){var a;const{ownerDocument:i}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=(a=_n.get(i))!==null&&a!==void 0?a:0;return _n.set(i,l+1),Mo.add(s),xi(),function(){var p;wi.delete(e),Mo.delete(s);const u=(p=_n.get(i))!==null&&p!==void 0?p:1;if(_n.set(i,u-1),xi(),u===1&&_n.delete(i),zt.includes(s)){const m=zt.indexOf(s);m>=0&&zt.splice(m,1),Zf(),o("up",!0,null)}}}function eP(e){const{target:t}=e,{x:n,y:r}=yi(e);_r=!0,Yf({target:t,x:n,y:r}),xi(),zt.length>0&&(Si("down",e),e.preventDefault(),e.stopPropagation())}function Oo(e){const{x:t,y:n}=yi(e);if(_r&&e.buttons===0&&(_r=!1,Si("up",e)),!_r){const{target:r}=e;Yf({target:r,x:t,y:n})}Si("move",e),Zf(),zt.length>0&&e.preventDefault()}function Er(e){const{target:t}=e,{x:n,y:r}=yi(e);wi.clear(),_r=!1,zt.length>0&&e.preventDefault(),Si("up",e),Yf({target:t,x:n,y:r}),Zf(),xi()}function Yf({target:e,x:t,y:n}){zt.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Mo.forEach(o=>{const{element:a,hitAreaMargins:i}=o,s=a.getBoundingClientRect(),{bottom:l,left:c,right:p,top:u}=s,m=s5?i.coarse:i.fine;if(t>=c-m&&t<=p+m&&n>=u-m&&n<=l+m){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&r5(r,a)>0){let g=r,h=!1;for(;g&&!g.contains(a);){if(n5(g.getBoundingClientRect(),s)){h=!0;break}g=g.parentElement}if(h)return}zt.push(o)}})}function Xf(e,t){wi.set(e,t)}function Zf(){let e=!1,t=!1;zt.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;wi.forEach(r=>{n|=r}),e&&t?Kf("intersection",n):e?Kf("horizontal",n):t?Kf("vertical",n):e5()}function xi(){_n.forEach((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",Er),n.removeEventListener("pointerdown",eP),n.removeEventListener("pointerleave",Oo),n.removeEventListener("pointermove",Oo)}),window.removeEventListener("pointerup",Er),window.removeEventListener("pointercancel",Er),Mo.size>0&&(_r?(zt.length>0&&_n.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",Er),n.addEventListener("pointerleave",Oo),n.addEventListener("pointermove",Oo))}),window.addEventListener("pointerup",Er),window.addEventListener("pointercancel",Er)):_n.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",eP,{capture:!0}),n.addEventListener("pointermove",Oo))}))}function Si(e,t){Mo.forEach(n=>{const{setResizeHandlerState:r}=n,o=zt.includes(n);r(e,o,t)})}function c5(){const[e,t]=Cr(0);return gt(()=>t(n=>n+1),[])}function ye(e,t){if(!e)throw console.error(t),Error(t)}const Jf=10;function Vn(e,t,n=Jf){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function pn(e,t,n=Jf){return Vn(e,t,n)===0}function Ct(e,t,n){return Vn(e,t,n)===0}function u5(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=t[r];if(!Ct(o,a,n))return!1}return!0}function Pr({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ye(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:i=100,minSize:s=0}=r;if(Vn(n,s)<0)if(a){const l=(o+s)/2;Vn(n,l)<0?n=o:n=s}else n=s;return n=Math.min(i,n),n=parseFloat(n.toFixed(Jf)),n}function Io({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:a}){if(Ct(e,0))return t;const i=[...t],[s,l]=r;ye(s!=null,"Invalid first pivot index"),ye(l!=null,"Invalid second pivot index");let c=0;if(a==="keyboard"){{const u=e<0?l:s,m=n[u];ye(m,`Panel constraints not found for index ${u}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[u];if(ye(v!=null,`Previous layout not found for panel index ${u}`),Ct(v,b)){const y=h-v;Vn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const u=e<0?s:l,m=n[u];ye(m,`No panel constraints found for index ${u}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[u];if(ye(v!=null,`Previous layout not found for panel index ${u}`),Ct(v,h)){const y=v-b;Vn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const u=e<0?1:-1;let m=e<0?l:s,b=0;for(;;){const h=t[m];ye(h!=null,`Previous layout not found for panel index ${m}`);const y=Pr({panelConstraints:n,panelIndex:m,size:100})-h;if(b+=y,m+=u,m<0||m>=n.length)break}const g=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-g:g}{let m=e<0?s:l;for(;m>=0&&m<n.length;){const b=Math.abs(e)-Math.abs(c),g=t[m];ye(g!=null,`Previous layout not found for panel index ${m}`);const h=g-b,v=Pr({panelConstraints:n,panelIndex:m,size:h});if(!Ct(g,v)&&(c+=g-v,i[m]=v,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(u5(o,i))return o;{const u=e<0?l:s,m=t[u];ye(m!=null,`Previous layout not found for panel index ${u}`);const b=m+c,g=Pr({panelConstraints:n,panelIndex:u,size:b});if(i[u]=g,!Ct(g,b)){let h=b-g,y=e<0?l:s;for(;y>=0&&y<n.length;){const w=i[y];ye(w!=null,`Previous layout not found for panel index ${y}`);const x=w+h,S=Pr({panelConstraints:n,panelIndex:y,size:x});if(Ct(w,S)||(h-=S-w,i[y]=S),Ct(h,0))break;e>0?y--:y++}}}const p=i.reduce((u,m)=>m+u,0);return Ct(p,100)?i:o}function d5({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,a=0,i=0;const s=n[0];ye(s!=null,"No pivot index found"),t.forEach((u,m)=>{const{constraints:b}=u,{maxSize:g=100,minSize:h=0}=b;m===s?(r=h,o=g):(a+=h,i+=g)});const l=Math.min(o,100-a),c=Math.max(r,100-i),p=e[s];return{valueMax:l,valueMin:c,valueNow:p}}function jo(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function tP(e,t,n=document){const o=jo(e,n).findIndex(a=>a.getAttribute("data-panel-resize-handle-id")===t);return o??null}function nP(e,t,n){const r=tP(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function rP(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function Ci(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function f5(e,t,n,r=document){var o,a,i,s;const l=Ci(t,r),c=jo(e,r),p=l?c.indexOf(l):-1,u=(o=(a=n[p])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(i=(s=n[p+1])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null;return[u,m]}function p5({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:i}){vt({didWarnAboutMissingResizeHandle:!1}),qn(()=>{if(!a)return;const s=jo(n,a);for(let l=0;l<o.length-1;l++){const{valueMax:c,valueMin:p,valueNow:u}=d5({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=s[l];if(m!=null){const b=o[l];ye(b,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",b.id),m.setAttribute("aria-valuemax",""+Math.round(c)),m.setAttribute("aria-valuemin",""+Math.round(p)),m.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{s.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,a]),zn(()=>{if(!a)return;const s=t.current;ye(s,"Eager values not found");const{panelDataArray:l}=s,c=rP(n,a);ye(c!=null,`No group found for id "${n}"`);const p=jo(n,a);ye(p,`No resize handles found for group id "${n}"`);const u=p.map(m=>{const b=m.getAttribute("data-panel-resize-handle-id");ye(b,"Resize handle element has no handle id attribute");const[g,h]=f5(n,b,l,a);if(g==null||h==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const w=l.findIndex(x=>x.id===g);if(w>=0){const x=l[w];ye(x,`No panel data found for index ${w}`);const S=r[w],{collapsedSize:_=0,collapsible:P,minSize:C=0}=x.constraints;if(S!=null&&P){const M=Io({delta:Ct(S,_)?C-_:_-S,initialLayout:r,panelConstraints:l.map(R=>R.constraints),pivotIndices:nP(n,b,a),prevLayout:r,trigger:"keyboard"});r!==M&&i(M)}}break}}};return m.addEventListener("keydown",v),()=>{m.removeEventListener("keydown",v)}});return()=>{u.forEach(m=>m())}},[a,e,t,n,r,o,i])}function oP(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function aP(e,t){const n=e==="horizontal",{x:r,y:o}=yi(t);return n?r:o}function m5(e,t,n,r,o){const a=n==="horizontal",i=Ci(t,o);ye(i,`No resize handle element found for id "${t}"`);const s=i.getAttribute("data-panel-group-id");ye(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=aP(n,e),p=rP(s,o);ye(p,`No group element found for id "${s}"`);const u=p.getBoundingClientRect(),m=a?u.width:u.height;return(c-l)/m*100}function h5(e,t,n,r,o,a){if(HE(e)){const i=n==="horizontal";let s=0;e.shiftKey?s=100:o!=null?s=o:s=10;let l=0;switch(e.key){case"ArrowDown":l=i?0:s;break;case"ArrowLeft":l=i?-s:0;break;case"ArrowRight":l=i?s:0;break;case"ArrowUp":l=i?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:m5(e,t,n,r,a)}function g5({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const i=n[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;s!=null&&(r++,t[a]=s,o-=s)}for(let a=0;a<e.length;a++){const i=n[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;if(s!=null)continue;const l=e.length-r,c=o/l;r++,t[a]=c,o-=c}return t}function Tr(e,t,n){t.forEach((r,o)=>{const a=e[o];ye(a,`Panel data not found for index ${o}`);const{callbacks:i,constraints:s,id:l}=a,{collapsedSize:c=0,collapsible:p}=s,u=n[l];if(u==null||r!==u){n[l]=r;const{onCollapse:m,onExpand:b,onResize:g}=i;g&&g(r,u),p&&(m||b)&&(b&&(u==null||pn(u,c))&&!pn(r,c)&&b(),m&&(u==null||!pn(u,c))&&pn(r,c)&&m())}})}function _i(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function v5({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:a=3}){const i=n[o];let s;return i==null?s=e!=null?e.toPrecision(a):"1":r.length===1?s="1":s=i.toPrecision(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function b5(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function iP(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function sP(e){return`react-resizable-panels:${e}`}function lP(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:a}=t;return o?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function cP(e,t){try{const n=sP(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function y5(e,t,n){var r,o;const a=(r=cP(e,n))!==null&&r!==void 0?r:{},i=lP(t);return(o=a[i])!==null&&o!==void 0?o:null}function w5(e,t,n,r,o){var a;const i=sP(e),s=lP(t),l=(a=cP(e,o))!==null&&a!==void 0?a:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(i,JSON.stringify(l))}catch(c){console.error(c)}}function uP({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,i)=>a+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!Ct(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const i=n[a];ye(i!=null,`No layout data found for index ${a}`);const s=100/r*i;n[a]=s}let o=0;for(let a=0;a<t.length;a++){const i=n[a];ye(i!=null,`No layout data found for index ${a}`);const s=Pr({panelConstraints:t,panelIndex:a,size:i});i!=s&&(o+=i-s,n[a]=s)}if(!Ct(o,0))for(let a=0;a<t.length;a++){const i=n[a];ye(i!=null,`No layout data found for index ${a}`);const s=i+o,l=Pr({panelConstraints:t,panelIndex:a,size:s});if(i!==l&&(o-=l-i,n[a]=l,Ct(o,0)))break}return n}const x5=100,Do={getItem:e=>(iP(Do),Do.getItem(e)),setItem:(e,t)=>{iP(Do),Do.setItem(e,t)}},dP={};function fP({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:a=null,onLayout:i=null,keyboardResizeBy:s=null,storage:l=Do,style:c,tagName:p="div",...u}){const m=Uf(a),b=vt(null),[g,h]=Cr(null),[v,y]=Cr([]),w=c5(),x=vt({}),S=vt(new Map),_=vt(0),P=vt({autoSaveId:e,direction:r,dragState:g,id:m,keyboardResizeBy:s,onLayout:i,storage:l}),C=vt({layout:v,panelDataArray:[],panelDataArrayChanged:!1});vt({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),FE(o,()=>({getId:()=>P.current.id,getLayout:()=>{const{layout:z}=C.current;return z},setLayout:z=>{const{onLayout:W}=P.current,{layout:ee,panelDataArray:Y}=C.current,H=uP({layout:z,panelConstraints:Y.map(K=>K.constraints)});oP(ee,H)||(y(H),C.current.layout=H,W&&W(H),Tr(Y,H,x.current))}}),[]),qn(()=>{P.current.autoSaveId=e,P.current.direction=r,P.current.dragState=g,P.current.id=m,P.current.onLayout=i,P.current.storage=l}),p5({committedValuesRef:P,eagerValuesRef:C,groupId:m,layout:v,panelDataArray:C.current.panelDataArray,setLayout:y,panelGroupElement:b.current}),zn(()=>{const{panelDataArray:z}=C.current;if(e){if(v.length===0||v.length!==z.length)return;let W=dP[e];W==null&&(W=b5(w5,x5),dP[e]=W);const ee=[...z],Y=new Map(S.current);W(e,ee,Y,v,l)}},[e,v,l]),zn(()=>{});const M=gt(z=>{const{onLayout:W}=P.current,{layout:ee,panelDataArray:Y}=C.current;if(z.constraints.collapsible){const H=Y.map(oe=>oe.constraints),{collapsedSize:K=0,panelSize:re,pivotIndices:Q}=Gn(Y,z,ee);if(ye(re!=null,`Panel size not found for panel "${z.id}"`),!pn(re,K)){S.current.set(z.id,re);const G=Rr(Y,z)===Y.length-1?re-K:K-re,ie=Io({delta:G,initialLayout:ee,panelConstraints:H,pivotIndices:Q,prevLayout:ee,trigger:"imperative-api"});_i(ee,ie)||(y(ie),C.current.layout=ie,W&&W(ie),Tr(Y,ie,x.current))}}},[]),R=gt((z,W)=>{const{onLayout:ee}=P.current,{layout:Y,panelDataArray:H}=C.current;if(z.constraints.collapsible){const K=H.map(j=>j.constraints),{collapsedSize:re=0,panelSize:Q=0,minSize:oe=0,pivotIndices:G}=Gn(H,z,Y),ie=W??oe;if(pn(Q,re)){const j=S.current.get(z.id),te=j!=null&&j>=ie?j:ie,he=Rr(H,z)===H.length-1?Q-te:te-Q,ve=Io({delta:he,initialLayout:Y,panelConstraints:K,pivotIndices:G,prevLayout:Y,trigger:"imperative-api"});_i(Y,ve)||(y(ve),C.current.layout=ve,ee&&ee(ve),Tr(H,ve,x.current))}}},[]),$=gt(z=>{const{layout:W,panelDataArray:ee}=C.current,{panelSize:Y}=Gn(ee,z,W);return ye(Y!=null,`Panel size not found for panel "${z.id}"`),Y},[]),D=gt((z,W)=>{const{panelDataArray:ee}=C.current,Y=Rr(ee,z);return v5({defaultSize:W,dragState:g,layout:v,panelData:ee,panelIndex:Y})},[g,v]),F=gt(z=>{const{layout:W,panelDataArray:ee}=C.current,{collapsedSize:Y=0,collapsible:H,panelSize:K}=Gn(ee,z,W);return ye(K!=null,`Panel size not found for panel "${z.id}"`),H===!0&&pn(K,Y)},[]),A=gt(z=>{const{layout:W,panelDataArray:ee}=C.current,{collapsedSize:Y=0,collapsible:H,panelSize:K}=Gn(ee,z,W);return ye(K!=null,`Panel size not found for panel "${z.id}"`),!H||Vn(K,Y)>0},[]),k=gt(z=>{const{panelDataArray:W}=C.current;W.push(z),W.sort((ee,Y)=>{const H=ee.order,K=Y.order;return H==null&&K==null?0:H==null?-1:K==null?1:H-K}),C.current.panelDataArrayChanged=!0,w()},[w]);qn(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:W,storage:ee}=P.current,{layout:Y,panelDataArray:H}=C.current;let K=null;if(z){const Q=y5(z,H,ee);Q&&(S.current=new Map(Object.entries(Q.expandToSizes)),K=Q.layout)}K==null&&(K=g5({panelDataArray:H}));const re=uP({layout:K,panelConstraints:H.map(Q=>Q.constraints)});oP(Y,re)||(y(re),C.current.layout=re,W&&W(re),Tr(H,re,x.current))}}),qn(()=>{const z=C.current;return()=>{z.layout=[]}},[]);const L=gt(z=>{let W=!1;const ee=b.current;return ee&&window.getComputedStyle(ee,null).getPropertyValue("direction")==="rtl"&&(W=!0),function(H){H.preventDefault();const K=b.current;if(!K)return()=>null;const{direction:re,dragState:Q,id:oe,keyboardResizeBy:G,onLayout:ie}=P.current,{layout:j,panelDataArray:te}=C.current,{initialLayout:me}=Q??{},he=nP(oe,z,K);let ve=h5(H,z,re,Q,G,K);const pe=re==="horizontal";pe&&W&&(ve=-ve);const Te=te.map(Ie=>Ie.constraints),He=Io({delta:ve,initialLayout:me??j,panelConstraints:Te,pivotIndices:he,prevLayout:j,trigger:HE(H)?"keyboard":"mouse-or-touch"}),Se=!_i(j,He);(VE(H)||GE(H))&&_.current!=ve&&(_.current=ve,!Se&&ve!==0?pe?Xf(z,ve<0?XE:ZE):Xf(z,ve<0?JE:QE):Xf(z,0)),Se&&(y(He),C.current.layout=He,ie&&ie(He),Tr(te,He,x.current))}},[]),I=gt((z,W)=>{const{onLayout:ee}=P.current,{layout:Y,panelDataArray:H}=C.current,K=H.map(j=>j.constraints),{panelSize:re,pivotIndices:Q}=Gn(H,z,Y);ye(re!=null,`Panel size not found for panel "${z.id}"`);const G=Rr(H,z)===H.length-1?re-W:W-re,ie=Io({delta:G,initialLayout:Y,panelConstraints:K,pivotIndices:Q,prevLayout:Y,trigger:"imperative-api"});_i(Y,ie)||(y(ie),C.current.layout=ie,ee&&ee(ie),Tr(H,ie,x.current))},[]),U=gt((z,W)=>{const{layout:ee,panelDataArray:Y}=C.current,{collapsedSize:H=0,collapsible:K}=W,{collapsedSize:re=0,collapsible:Q,maxSize:oe=100,minSize:G=0}=z.constraints,{panelSize:ie}=Gn(Y,z,ee);ie!=null&&(K&&Q&&pn(ie,H)?pn(H,re)||I(z,re):ie<G?I(z,G):ie>oe&&I(z,oe))},[I]),V=gt((z,W)=>{const{direction:ee}=P.current,{layout:Y}=C.current;if(!b.current)return;const H=Ci(z,b.current);ye(H,`Drag handle element not found for id "${z}"`);const K=aP(ee,W);h({dragHandleId:z,dragHandleRect:H.getBoundingClientRect(),initialCursorPosition:K,initialLayout:Y})},[]),q=gt(()=>{h(null)},[]),ae=gt(z=>{const{panelDataArray:W}=C.current,ee=Rr(W,z);ee>=0&&(W.splice(ee,1),delete x.current[z.id],C.current.panelDataArrayChanged=!0,w())},[w]),J=Yz(()=>({collapsePanel:M,direction:r,dragState:g,expandPanel:R,getPanelSize:$,getPanelStyle:D,groupId:m,isPanelCollapsed:F,isPanelExpanded:A,reevaluatePanelConstraints:U,registerPanel:k,registerResizeHandle:L,resizePanel:I,startDragging:V,stopDragging:q,unregisterPanel:ae,panelGroupElement:b.current}),[M,g,r,R,$,D,m,F,A,U,k,L,I,V,q,ae]),ne={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Sr(bi.Provider,{value:J},Sr(p,{...u,children:t,className:n,id:a,ref:b,style:{...ne,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":m}))}const pP=$E((e,t)=>Sr(fP,{...e,forwardedRef:t}));fP.displayName="PanelGroup",pP.displayName="forwardRef(PanelGroup)";function Rr(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Gn(e,t,n){const r=Rr(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:a}}function S5({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){zn(()=>{if(e||n==null||r==null)return;const o=Ci(t,r);if(o==null)return;const a=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const s=o.getAttribute("data-panel-group-id");ye(s,`No group element found for id "${s}"`);const l=jo(s,r),c=tP(s,t,r);ye(c!==null,`No resize element found for id "${t}"`);const p=i.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[p].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,t,n])}function mP({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:a,onDragging:i,onFocus:s,style:l={},tabIndex:c=0,tagName:p="div",...u}){var m,b;const g=vt(null),h=vt({onDragging:i});zn(()=>{h.current.onDragging=i});const v=LE(bi);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:w,registerResizeHandle:x,startDragging:S,stopDragging:_,panelGroupElement:P}=v,C=Uf(o),[M,R]=Cr("inactive"),[$,D]=Cr(!1),[F,A]=Cr(null),k=vt({state:M});qn(()=>{k.current.state=M}),zn(()=>{if(n)A(null);else{const V=x(C);A(()=>V)}},[n,C,x]);const L=(m=r==null?void 0:r.coarse)!==null&&m!==void 0?m:15,I=(b=r==null?void 0:r.fine)!==null&&b!==void 0?b:5;return zn(()=>{if(n||F==null)return;const V=g.current;return ye(V,"Element ref not attached"),l5(C,V,y,{coarse:L,fine:I},(ae,J,ne)=>{if(J)switch(ae){case"down":{R("drag"),ye(ne,'Expected event to be defined for "down" action'),S(C,ne);const{onDragging:z}=h.current;z&&z(!0);break}case"move":{const{state:z}=k.current;z!=="drag"&&R("hover"),ye(ne,'Expected event to be defined for "move" action'),F(ne);break}case"up":{R("hover"),_();const{onDragging:z}=h.current;z&&z(!1);break}}else R("inactive")})},[L,y,n,I,x,C,F,S,_]),S5({disabled:n,handleId:C,resizeHandler:F,panelGroupElement:P}),Sr(p,{...u,children:e,className:t,id:o,onBlur:()=>{D(!1),a==null||a()},onFocus:()=>{D(!0),s==null||s()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...l},tabIndex:c,"data-panel-group-direction":y,"data-panel-group-id":w,"data-resize-handle":"","data-resize-handle-active":M==="drag"?"pointer":$?"keyboard":void 0,"data-resize-handle-state":M,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":C})}mP.displayName="PanelResizeHandle";const C5=({className:e,...t})=>f.jsx(pP,{className:O("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),_5=qE,E5=({withHandle:e,className:t,...n})=>f.jsx(mP,{className:O("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&f.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:f.jsx(E1,{className:"h-2.5 w-2.5"})})});function ko(e,[t,n]){return Math.min(n,Math.max(t,e))}function P5(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Qf="ScrollArea",[hP,d3]=De(Qf),[T5,Rt]=hP(Qf),gP=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=d.useState(null),[c,p]=d.useState(null),[u,m]=d.useState(null),[b,g]=d.useState(null),[h,v]=d.useState(null),[y,w]=d.useState(0),[x,S]=d.useState(0),[_,P]=d.useState(!1),[C,M]=d.useState(!1),R=fe(t,D=>l(D)),$=Mt(o);return f.jsx(T5,{scope:n,type:r,dir:$,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:p,content:u,onContentChange:m,scrollbarX:b,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:P,scrollbarY:h,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:M,onCornerWidthChange:w,onCornerHeightChange:S,children:f.jsx(Z.div,{dir:$,...i,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});gP.displayName=Qf;var vP="ScrollAreaViewport",bP=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=Rt(vP,n),s=d.useRef(null),l=fe(t,s,i.onViewportChange);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),f.jsx(Z.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:f.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});bP.displayName=vP;var Qt="ScrollAreaScrollbar",ep=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rt(Qt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return d.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?f.jsx(R5,{...r,ref:t,forceMount:n}):o.type==="scroll"?f.jsx(N5,{...r,ref:t,forceMount:n}):o.type==="auto"?f.jsx(yP,{...r,ref:t,forceMount:n}):o.type==="always"?f.jsx(tp,{...r,ref:t}):null});ep.displayName=Qt;var R5=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rt(Qt,e.__scopeScrollArea),[a,i]=d.useState(!1);return d.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),i(!0)},p=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),f.jsx(Le,{present:n||a,children:f.jsx(yP,{"data-state":a?"visible":"hidden",...r,ref:t})})}),N5=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rt(Qt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Ri(()=>l("SCROLL_END"),100),[s,l]=P5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,o.scrollHideDelay,l]),d.useEffect(()=>{const c=o.viewport,p=a?"scrollLeft":"scrollTop";if(c){let u=c[p];const m=()=>{const b=c[p];u!==b&&(l("SCROLL"),i()),u=b};return c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[o.viewport,a,l,i]),f.jsx(Le,{present:n||s!=="hidden",children:f.jsx(tp,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:B(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:B(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),yP=d.forwardRef((e,t)=>{const n=Rt(Qt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=d.useState(!1),s=e.orientation==="horizontal",l=Ri(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?c:p)}},10);return Nr(n.viewport,l),Nr(n.content,l),f.jsx(Le,{present:r||a,children:f.jsx(tp,{"data-state":a?"visible":"hidden",...o,ref:t})})}),tp=d.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Rt(Qt,e.__scopeScrollArea),a=d.useRef(null),i=d.useRef(0),[s,l]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=_P(s.viewport,s.content),p={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function u(m,b){return D5(m,i.current,s,b)}return n==="horizontal"?f.jsx(A5,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,b=EP(m,s,o.dir);a.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=u(m,o.dir))}}):n==="vertical"?f.jsx(M5,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,b=EP(m,s);a.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=u(m))}}):null}),A5=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Rt(Qt,e.__scopeScrollArea),[i,s]=d.useState(),l=d.useRef(null),c=fe(t,l,a.onScrollbarXChange);return d.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),f.jsx(xP,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ti(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,u)=>{if(a.viewport){const m=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),TP(m,u)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Pi(i.paddingLeft),paddingEnd:Pi(i.paddingRight)}})}})}),M5=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Rt(Qt,e.__scopeScrollArea),[i,s]=d.useState(),l=d.useRef(null),c=fe(t,l,a.onScrollbarYChange);return d.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),f.jsx(xP,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ti(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,u)=>{if(a.viewport){const m=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),TP(m,u)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Pi(i.paddingTop),paddingEnd:Pi(i.paddingBottom)}})}})}),[O5,wP]=hP(Qt),xP=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:p,onResize:u,...m}=e,b=Rt(Qt,n),[g,h]=d.useState(null),v=fe(t,R=>h(R)),y=d.useRef(null),w=d.useRef(""),x=b.viewport,S=r.content-r.viewport,_=Ne(p),P=Ne(l),C=Ri(u,10);function M(R){if(y.current){const $=R.clientX-y.current.left,D=R.clientY-y.current.top;c({x:$,y:D})}}return d.useEffect(()=>{const R=$=>{const D=$.target;(g==null?void 0:g.contains(D))&&_($,S)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[x,g,S,_]),d.useEffect(P,[r,P]),Nr(g,C),Nr(b.content,C),f.jsx(O5,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:Ne(a),onThumbPointerUp:Ne(i),onThumbPositionChange:P,onThumbPointerDown:Ne(s),children:f.jsx(Z.div,{...m,ref:v,style:{position:"absolute",...m.style},onPointerDown:B(e.onPointerDown,R=>{R.button===0&&(R.target.setPointerCapture(R.pointerId),y.current=g.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),M(R))}),onPointerMove:B(e.onPointerMove,M),onPointerUp:B(e.onPointerUp,R=>{const $=R.target;$.hasPointerCapture(R.pointerId)&&$.releasePointerCapture(R.pointerId),document.body.style.webkitUserSelect=w.current,b.viewport&&(b.viewport.style.scrollBehavior=""),y.current=null})})})}),Ei="ScrollAreaThumb",SP=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wP(Ei,e.__scopeScrollArea);return f.jsx(Le,{present:n||o.hasThumb,children:f.jsx(I5,{ref:t,...r})})}),I5=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=Rt(Ei,n),i=wP(Ei,n),{onThumbPositionChange:s}=i,l=fe(t,u=>i.onThumbChange(u)),c=d.useRef(void 0),p=Ri(()=>{c.current&&(c.current(),c.current=void 0)},100);return d.useEffect(()=>{const u=a.viewport;if(u){const m=()=>{if(p(),!c.current){const b=k5(u,s);c.current=b,s()}};return s(),u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[a.viewport,p,s]),f.jsx(Z.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:B(e.onPointerDownCapture,u=>{const b=u.target.getBoundingClientRect(),g=u.clientX-b.left,h=u.clientY-b.top;i.onThumbPointerDown({x:g,y:h})}),onPointerUp:B(e.onPointerUp,i.onThumbPointerUp)})});SP.displayName=Ei;var np="ScrollAreaCorner",CP=d.forwardRef((e,t)=>{const n=Rt(np,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?f.jsx(j5,{...e,ref:t}):null});CP.displayName=np;var j5=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Rt(np,n),[a,i]=d.useState(0),[s,l]=d.useState(0),c=!!(a&&s);return Nr(o.scrollbarX,()=>{var u;const p=((u=o.scrollbarX)==null?void 0:u.offsetHeight)||0;o.onCornerHeightChange(p),l(p)}),Nr(o.scrollbarY,()=>{var u;const p=((u=o.scrollbarY)==null?void 0:u.offsetWidth)||0;o.onCornerWidthChange(p),i(p)}),c?f.jsx(Z.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Pi(e){return e?parseInt(e,10):0}function _P(e,t){const n=e/t;return isNaN(n)?0:n}function Ti(e){const t=_P(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function D5(e,t,n,r="ltr"){const o=Ti(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,p=n.content-n.viewport,u=r==="ltr"?[0,p]:[p*-1,0];return PP([l,c],u)(e)}function EP(e,t,n="ltr"){const r=Ti(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,i]:[i*-1,0],c=ko(e,l);return PP([0,i],[0,s])(c)}function PP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function TP(e,t){return e>0&&e<t}var k5=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Ri(e,t){const n=Ne(e),r=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),d.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Nr(e,t){const n=Ne(t);Be(()=>{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])}var RP=gP,$5=bP,L5=CP;const NP=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(RP,{ref:r,className:O("relative overflow-hidden",e),...n,children:[f.jsx($5,{className:"h-full w-full rounded-[inherit]",children:t}),f.jsx(rp,{}),f.jsx(L5,{})]}));NP.displayName=RP.displayName;const rp=d.forwardRef(({className:e,orientation:t="vertical",...n},r)=>f.jsx(ep,{ref:r,orientation:t,className:O("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:f.jsx(SP,{className:"relative flex-1 rounded-full bg-border"})}));rp.displayName=ep.displayName;var F5=[" ","Enter","ArrowUp","ArrowDown"],B5=[" ","Enter"],$o="Select",[Ni,Ai,z5]=nn($o),[Ar,f3]=De($o,[z5,Zt]),Mi=Zt(),[q5,En]=Ar($o),[H5,V5]=Ar($o),AP=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:p,autoComplete:u,disabled:m,required:b,form:g}=e,h=Mi(t),[v,y]=d.useState(null),[w,x]=d.useState(null),[S,_]=d.useState(!1),P=Mt(c),[C=!1,M]=$e({prop:r,defaultProp:o,onChange:a}),[R,$]=$e({prop:i,defaultProp:s,onChange:l}),D=d.useRef(null),F=v?g||!!v.closest("form"):!0,[A,k]=d.useState(new Set),L=Array.from(A).map(I=>I.props.value).join(";");return f.jsx(gr,{...h,children:f.jsxs(q5,{required:b,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:Ge(),value:R,onValueChange:$,open:C,onOpenChange:M,dir:P,triggerPointerDownPosRef:D,disabled:m,children:[f.jsx(Ni.Provider,{scope:t,children:f.jsx(H5,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(I=>{k(U=>new Set(U).add(I))},[]),onNativeOptionRemove:d.useCallback(I=>{k(U=>{const V=new Set(U);return V.delete(I),V})},[]),children:n})}),F?f.jsxs(nT,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:u,value:R,onChange:I=>$(I.target.value),disabled:m,form:g,children:[R===void 0?f.jsx("option",{value:""}):null,Array.from(A)]},L):null]})})};AP.displayName=$o;var MP="SelectTrigger",OP=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Mi(n),i=En(MP,n),s=i.disabled||r,l=fe(t,i.onTriggerChange),c=Ai(n),p=d.useRef("touch"),[u,m,b]=rT(h=>{const v=c().filter(x=>!x.disabled),y=v.find(x=>x.value===i.value),w=oT(v,h,y);w!==void 0&&i.onValueChange(w.value)}),g=h=>{s||(i.onOpenChange(!0),b()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return f.jsx(vr,{asChild:!0,...a,children:f.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":tT(i.value)?"":void 0,...o,ref:l,onClick:B(o.onClick,h=>{h.currentTarget.focus(),p.current!=="mouse"&&g(h)}),onPointerDown:B(o.onPointerDown,h=>{p.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:B(o.onKeyDown,h=>{const v=u.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(v&&h.key===" ")&&F5.includes(h.key)&&(g(),h.preventDefault())})})})});OP.displayName=MP;var IP="SelectValue",jP=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=En(IP,n),{onValueNodeHasChildrenChange:c}=l,p=a!==void 0,u=fe(t,l.onValueNodeChange);return Be(()=>{c(p)},[c,p]),f.jsx(Z.span,{...s,ref:u,style:{pointerEvents:"none"},children:tT(l.value)?f.jsx(f.Fragment,{children:i}):a})});jP.displayName=IP;var G5="SelectIcon",DP=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return f.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});DP.displayName=G5;var U5="SelectPortal",kP=e=>f.jsx(Mn,{asChild:!0,...e});kP.displayName=U5;var Un="SelectContent",$P=d.forwardRef((e,t)=>{const n=En(Un,e.__scopeSelect),[r,o]=d.useState();if(Be(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Dr.createPortal(f.jsx(LP,{scope:e.__scopeSelect,children:f.jsx(Ni.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),a):null}return f.jsx(FP,{...e,ref:t})});$P.displayName=Un;var qt=10,[LP,Pn]=Ar(Un),W5="SelectContentImpl",FP=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:p,arrowPadding:u,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v,...y}=e,w=En(Un,n),[x,S]=d.useState(null),[_,P]=d.useState(null),C=fe(t,H=>S(H)),[M,R]=d.useState(null),[$,D]=d.useState(null),F=Ai(n),[A,k]=d.useState(!1),L=d.useRef(!1);d.useEffect(()=>{if(x)return ia(x)},[x]),Jo();const I=d.useCallback(H=>{const[K,...re]=F().map(G=>G.ref.current),[Q]=re.slice(-1),oe=document.activeElement;for(const G of H)if(G===oe||(G==null||G.scrollIntoView({block:"nearest"}),G===K&&_&&(_.scrollTop=0),G===Q&&_&&(_.scrollTop=_.scrollHeight),G==null||G.focus(),document.activeElement!==oe))return},[F,_]),U=d.useCallback(()=>I([M,x]),[I,M,x]);d.useEffect(()=>{A&&U()},[A,U]);const{onOpenChange:V,triggerPointerDownPosRef:q}=w;d.useEffect(()=>{if(x){let H={x:0,y:0};const K=Q=>{var oe,G;H={x:Math.abs(Math.round(Q.pageX)-(((oe=q.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((G=q.current)==null?void 0:G.y)??0))}},re=Q=>{H.x<=10&&H.y<=10?Q.preventDefault():x.contains(Q.target)||V(!1),document.removeEventListener("pointermove",K),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",re,{capture:!0})}}},[x,V,q]),d.useEffect(()=>{const H=()=>V(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[V]);const[ae,J]=rT(H=>{const K=F().filter(oe=>!oe.disabled),re=K.find(oe=>oe.ref.current===document.activeElement),Q=oT(K,H,re);Q&&setTimeout(()=>Q.ref.current.focus())}),ne=d.useCallback((H,K,re)=>{const Q=!L.current&&!re;(w.value!==void 0&&w.value===K||Q)&&(R(H),Q&&(L.current=!0))},[w.value]),z=d.useCallback(()=>x==null?void 0:x.focus(),[x]),W=d.useCallback((H,K,re)=>{const Q=!L.current&&!re;(w.value!==void 0&&w.value===K||Q)&&D(H)},[w.value]),ee=r==="popper"?op:BP,Y=ee===op?{side:s,sideOffset:l,align:c,alignOffset:p,arrowPadding:u,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v}:{};return f.jsx(LP,{scope:n,content:x,viewport:_,onViewportChange:P,itemRefCallback:ne,selectedItem:M,onItemLeave:z,itemTextRefCallback:W,focusSelectedItem:U,selectedItemText:$,position:r,isPositioned:A,searchRef:ae,children:f.jsx(qr,{as:lt,allowPinchZoom:!0,children:f.jsx(zr,{asChild:!0,trapped:w.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:B(o,H=>{var K;(K=w.trigger)==null||K.focus({preventScroll:!0}),H.preventDefault()}),children:f.jsx(an,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:f.jsx(ee,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:H=>H.preventDefault(),...y,...Y,onPlaced:()=>k(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,H=>{const K=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!K&&H.key.length===1&&J(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let Q=F().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(H.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const oe=H.target,G=Q.indexOf(oe);Q=Q.slice(G+1)}setTimeout(()=>I(Q)),H.preventDefault()}})})})})})})});FP.displayName=W5;var K5="SelectItemAlignedPosition",BP=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=En(Un,n),i=Pn(Un,n),[s,l]=d.useState(null),[c,p]=d.useState(null),u=fe(t,C=>p(C)),m=Ai(n),b=d.useRef(!1),g=d.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=i,x=d.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&h&&v&&y){const C=a.trigger.getBoundingClientRect(),M=c.getBoundingClientRect(),R=a.valueNode.getBoundingClientRect(),$=y.getBoundingClientRect();if(a.dir!=="rtl"){const oe=$.left-M.left,G=R.left-oe,ie=C.left-G,j=C.width+ie,te=Math.max(j,M.width),me=window.innerWidth-qt,he=ko(G,[qt,Math.max(qt,me-te)]);s.style.minWidth=j+"px",s.style.left=he+"px"}else{const oe=M.right-$.right,G=window.innerWidth-R.right-oe,ie=window.innerWidth-C.right-G,j=C.width+ie,te=Math.max(j,M.width),me=window.innerWidth-qt,he=ko(G,[qt,Math.max(qt,me-te)]);s.style.minWidth=j+"px",s.style.right=he+"px"}const D=m(),F=window.innerHeight-qt*2,A=h.scrollHeight,k=window.getComputedStyle(c),L=parseInt(k.borderTopWidth,10),I=parseInt(k.paddingTop,10),U=parseInt(k.borderBottomWidth,10),V=parseInt(k.paddingBottom,10),q=L+I+A+V+U,ae=Math.min(v.offsetHeight*5,q),J=window.getComputedStyle(h),ne=parseInt(J.paddingTop,10),z=parseInt(J.paddingBottom,10),W=C.top+C.height/2-qt,ee=F-W,Y=v.offsetHeight/2,H=v.offsetTop+Y,K=L+I+H,re=q-K;if(K<=W){const oe=D.length>0&&v===D[D.length-1].ref.current;s.style.bottom="0px";const G=c.clientHeight-h.offsetTop-h.offsetHeight,ie=Math.max(ee,Y+(oe?z:0)+G+U),j=K+ie;s.style.height=j+"px"}else{const oe=D.length>0&&v===D[0].ref.current;s.style.top="0px";const ie=Math.max(W,L+h.offsetTop+(oe?ne:0)+Y)+re;s.style.height=ie+"px",h.scrollTop=K-W+h.offsetTop}s.style.margin=`${qt}px 0`,s.style.minHeight=ae+"px",s.style.maxHeight=F+"px",r==null||r(),requestAnimationFrame(()=>b.current=!0)}},[m,a.trigger,a.valueNode,s,c,h,v,y,a.dir,r]);Be(()=>x(),[x]);const[S,_]=d.useState();Be(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const P=d.useCallback(C=>{C&&g.current===!0&&(x(),w==null||w(),g.current=!1)},[x,w]);return f.jsx(X5,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:b,onScrollButtonChange:P,children:f.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:f.jsx(Z.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});BP.displayName=K5;var Y5="SelectPopperPosition",op=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=qt,...a}=e,i=Mi(n);return f.jsx(uo,{...i,...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)"}})});op.displayName=Y5;var[X5,ap]=Ar(Un,{}),ip="SelectViewport",zP=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Pn(ip,n),i=ap(ip,n),s=fe(t,a.onViewportChange),l=d.useRef(0);return f.jsxs(f.Fragment,{children:[f.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}),f.jsx(Ni.Slot,{scope:n,children:f.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,c=>{const p=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&u){const b=Math.abs(l.current-p.scrollTop);if(b>0){const g=window.innerHeight-qt*2,h=parseFloat(u.style.minHeight),v=parseFloat(u.style.height),y=Math.max(h,v);if(y<g){const w=y+b,x=Math.min(g,w),S=w-x;u.style.height=x+"px",u.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,u.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});zP.displayName=ip;var qP="SelectGroup",[Z5,J5]=Ar(qP),HP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ge();return f.jsx(Z5,{scope:n,id:o,children:f.jsx(Z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});HP.displayName=qP;var VP="SelectLabel",GP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=J5(VP,n);return f.jsx(Z.div,{id:o.id,...r,ref:t})});GP.displayName=VP;var Oi="SelectItem",[Q5,UP]=Ar(Oi),WP=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=En(Oi,n),l=Pn(Oi,n),c=s.value===r,[p,u]=d.useState(a??""),[m,b]=d.useState(!1),g=fe(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),h=Ge(),v=d.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.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 f.jsx(Q5,{scope:n,value:r,disabled:o,textId:h,isSelected:c,onItemTextChange:d.useCallback(w=>{u(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:f.jsx(Ni.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:f.jsx(Z.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:B(i.onFocus,()=>b(!0)),onBlur:B(i.onBlur,()=>b(!1)),onClick:B(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:B(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:B(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:B(i.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(i.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:B(i.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(B5.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});WP.displayName=Oi;var Lo="SelectItemText",KP=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=En(Lo,n),s=Pn(Lo,n),l=UP(Lo,n),c=V5(Lo,n),[p,u]=d.useState(null),m=fe(t,y=>u(y),l.onItemTextChange,y=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,y,l.value,l.disabled)}),b=p==null?void 0:p.textContent,g=d.useMemo(()=>f.jsx("option",{value:l.value,disabled:l.disabled,children:b},l.value),[l.disabled,l.value,b]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=c;return Be(()=>(h(g),()=>v(g)),[h,v,g]),f.jsxs(f.Fragment,{children:[f.jsx(Z.span,{id:l.textId,...a,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Dr.createPortal(a.children,i.valueNode):null]})});KP.displayName=Lo;var YP="SelectItemIndicator",XP=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return UP(YP,n).isSelected?f.jsx(Z.span,{"aria-hidden":!0,...r,ref:t}):null});XP.displayName=YP;var sp="SelectScrollUpButton",ZP=d.forwardRef((e,t)=>{const n=Pn(sp,e.__scopeSelect),r=ap(sp,e.__scopeSelect),[o,a]=d.useState(!1),i=fe(t,r.onScrollButtonChange);return Be(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?f.jsx(QP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});ZP.displayName=sp;var lp="SelectScrollDownButton",JP=d.forwardRef((e,t)=>{const n=Pn(lp,e.__scopeSelect),r=ap(lp,e.__scopeSelect),[o,a]=d.useState(!1),i=fe(t,r.onScrollButtonChange);return Be(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)<c;a(p)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?f.jsx(QP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});JP.displayName=lp;var QP=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Pn("SelectScrollButton",n),i=d.useRef(null),s=Ai(n),l=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),Be(()=>{var p;const c=s().find(u=>u.ref.current===document.activeElement);(p=c==null?void 0:c.ref.current)==null||p.scrollIntoView({block:"nearest"})},[s]),f.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:B(o.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:B(o.onPointerLeave,()=>{l()})})}),eq="SelectSeparator",eT=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return f.jsx(Z.div,{"aria-hidden":!0,...r,ref:t})});eT.displayName=eq;var cp="SelectArrow",tq=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Mi(n),a=En(cp,n),i=Pn(cp,n);return a.open&&i.position==="popper"?f.jsx(fo,{...o,...r,ref:t}):null});tq.displayName=cp;function tT(e){return e===""||e===void 0}var nT=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=d.useRef(null),a=fe(t,o),i=dr(n);return d.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&p){const u=new Event("change",{bubbles:!0});p.call(s,n),s.dispatchEvent(u)}},[i,n]),f.jsx(No,{asChild:!0,children:f.jsx("select",{...r,ref:a,defaultValue:n})})});nT.displayName="BubbleSelect";function rT(e){const t=Ne(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const s=n.current+i;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function oT(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=nq(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function nq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rq=AP,aT=OP,oq=jP,aq=DP,iq=kP,iT=$P,sq=zP,lq=HP,sT=GP,lT=WP,cq=KP,uq=XP,cT=ZP,uT=JP,dT=eT;const dq=rq,fq=lq,pq=oq,fT=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(aT,{ref:r,className:O("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,f.jsx(aq,{asChild:!0,children:f.jsx(Yo,{className:"h-4 w-4 opacity-50"})})]}));fT.displayName=aT.displayName;const up=d.forwardRef(({className:e,...t},n)=>f.jsx(cT,{ref:n,className:O("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(_1,{className:"h-4 w-4"})}));up.displayName=cT.displayName;const dp=d.forwardRef(({className:e,...t},n)=>f.jsx(uT,{ref:n,className:O("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(Yo,{className:"h-4 w-4"})}));dp.displayName=uT.displayName;const pT=d.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>f.jsx(iq,{children:f.jsxs(iT,{ref:o,className:O("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[f.jsx(up,{}),f.jsx(sq,{className:O("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),f.jsx(dp,{})]})}));pT.displayName=iT.displayName;const mT=d.forwardRef(({className:e,...t},n)=>f.jsx(sT,{ref:n,className:O("px-2 py-1.5 text-sm font-semibold",e),...t}));mT.displayName=sT.displayName;const hT=d.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(lT,{ref:r,className:O("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(uq,{children:f.jsx(Br,{className:"h-4 w-4"})})}),f.jsx(cq,{children:t})]}));hT.displayName=lT.displayName;const gT=d.forwardRef(({className:e,...t},n)=>f.jsx(dT,{ref:n,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));gT.displayName=dT.displayName;var mq="Separator",vT="horizontal",hq=["horizontal","vertical"],bT=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=vT,...o}=e,a=gq(r)?r:vT,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return f.jsx(Z.div,{"data-orientation":a,...s,...o,ref:t})});bT.displayName=mq;function gq(e){return hq.includes(e)}var yT=bT;const fp=d.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>f.jsx(yT,{ref:o,decorative:n,orientation:t,className:O("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));fp.displayName=yT.displayName;const wT=la,vq=ca,bq=In,xT=ua,pp=d.forwardRef(({className:e,...t},n)=>f.jsx(nr,{className:O("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));pp.displayName=nr.displayName;const yq=ln("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),mp=d.forwardRef(({side:e="right",className:t,children:n,...r},o)=>f.jsxs(xT,{children:[f.jsx(pp,{}),f.jsxs(rr,{ref:o,className:O(yq({side:e}),t),...r,children:[f.jsxs(In,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[f.jsx(os,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));mp.displayName=rr.displayName;const hp=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col space-y-2 text-center sm:text-left",e),...t});hp.displayName="SheetHeader";const ST=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ST.displayName="SheetFooter";const gp=d.forwardRef(({className:e,...t},n)=>f.jsx(or,{ref:n,className:O("text-lg font-semibold text-foreground",e),...t}));gp.displayName=or.displayName;const vp=d.forwardRef(({className:e,...t},n)=>f.jsx(ar,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));vp.displayName=ar.displayName;const bp=768;function wq(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${bp-1}px)`),r=()=>{t(window.innerWidth<bp)};return n.addEventListener("change",r),t(window.innerWidth<bp),()=>n.removeEventListener("change",r)},[]),!!e}function yp({className:e,...t}){return f.jsx("div",{className:O("animate-pulse rounded-md bg-primary/10",e),...t})}var[Ii,p3]=De("Tooltip",[Zt]),ji=Zt(),CT="TooltipProvider",xq=700,wp="tooltip.open",[Sq,xp]=Ii(CT),_T=e=>{const{__scopeTooltip:t,delayDuration:n=xq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=d.useState(!0),l=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const p=c.current;return()=>window.clearTimeout(p)},[]),f.jsx(Sq,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:d.useCallback(p=>{l.current=p},[]),disableHoverableContent:o,children:a})};_T.displayName=CT;var Di="Tooltip",[Cq,Fo]=Ii(Di),ET=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=xp(Di,e.__scopeTooltip),c=ji(t),[p,u]=d.useState(null),m=Ge(),b=d.useRef(0),g=i??l.disableHoverableContent,h=s??l.delayDuration,v=d.useRef(!1),[y=!1,w]=$e({prop:r,defaultProp:o,onChange:C=>{C?(l.onOpen(),document.dispatchEvent(new CustomEvent(wp))):l.onClose(),a==null||a(C)}}),x=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=d.useCallback(()=>{window.clearTimeout(b.current),b.current=0,v.current=!1,w(!0)},[w]),_=d.useCallback(()=>{window.clearTimeout(b.current),b.current=0,w(!1)},[w]),P=d.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{v.current=!0,w(!0),b.current=0},h)},[h,w]);return d.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),f.jsx(gr,{...c,children:f.jsx(Cq,{scope:t,contentId:m,open:y,stateAttribute:x,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayed?P():S()},[l.isOpenDelayed,P,S]),onTriggerLeave:d.useCallback(()=>{g?_():(window.clearTimeout(b.current),b.current=0)},[_,g]),onOpen:S,onClose:_,disableHoverableContent:g,children:n})})};ET.displayName=Di;var Sp="TooltipTrigger",PT=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Fo(Sp,n),a=xp(Sp,n),i=ji(n),s=d.useRef(null),l=fe(t,s,o.onTriggerChange),c=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),f.jsx(vr,{asChild:!0,...i,children:f.jsx(Z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:B(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:B(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:B(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});PT.displayName=Sp;var Cp="TooltipPortal",[_q,Eq]=Ii(Cp,{forceMount:void 0}),TT=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Fo(Cp,t);return f.jsx(_q,{scope:t,forceMount:n,children:f.jsx(Le,{present:n||a.open,children:f.jsx(Mn,{asChild:!0,container:o,children:r})})})};TT.displayName=Cp;var Mr="TooltipContent",RT=d.forwardRef((e,t)=>{const n=Eq(Mr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Fo(Mr,e.__scopeTooltip);return f.jsx(Le,{present:r||i.open,children:i.disableHoverableContent?f.jsx(NT,{side:o,...a,ref:t}):f.jsx(Pq,{side:o,...a,ref:t})})}),Pq=d.forwardRef((e,t)=>{const n=Fo(Mr,e.__scopeTooltip),r=xp(Mr,e.__scopeTooltip),o=d.useRef(null),a=fe(t,o),[i,s]=d.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,m=d.useCallback(()=>{s(null),u(!1)},[u]),b=d.useCallback((g,h)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},w=Aq(y,v.getBoundingClientRect()),x=Mq(y,w),S=Oq(h.getBoundingClientRect()),_=jq([...x,...S]);s(_),u(!0)},[u]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(l&&p){const g=v=>b(v,p),h=v=>b(v,l);return l.addEventListener("pointerleave",g),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",g),p.removeEventListener("pointerleave",h)}}},[l,p,b,m]),d.useEffect(()=>{if(i){const g=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},w=(l==null?void 0:l.contains(v))||(p==null?void 0:p.contains(v)),x=!Iq(y,i);w?m():x&&(m(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,p,i,c,m]),f.jsx(NT,{...e,ref:a})}),[Tq,Rq]=Ii(Di,{isInside:!1}),NT=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=Fo(Mr,n),c=ji(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(wp,p),()=>document.removeEventListener(wp,p)),[p]),d.useEffect(()=>{if(l.trigger){const u=m=>{const b=m.target;b!=null&&b.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),f.jsx(an,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:f.jsxs(uo,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(Ui,{children:r}),f.jsx(Tq,{scope:n,isInside:!0,children:f.jsx(h_,{id:l.contentId,role:"tooltip",children:o||r})})]})})});RT.displayName=Mr;var AT="TooltipArrow",Nq=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ji(n);return Rq(AT,n).isInside?null:f.jsx(fo,{...o,...r,ref:t})});Nq.displayName=AT;function Aq(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Mq(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Oq(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Iq(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,p=t[i].y;l>r!=p>r&&n<(c-s)*(r-l)/(p-l)+s&&(o=!o)}return o}function jq(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Dq(t)}function Dq(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var kq=_T,$q=ET,Lq=PT,Fq=TT,MT=RT;const OT=kq,IT=$q,jT=Lq,_p=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(Fq,{children:f.jsx(MT,{ref:r,sideOffset:t,className:O("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));_p.displayName=MT.displayName;const Bq="sidebar_state",zq=60*60*24*7,qq="16rem",Hq="18rem",Vq="3rem",Gq="b",DT=d.createContext(null);function Bo(){const e=d.useContext(DT);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const kT=d.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i},s)=>{const l=wq(),[c,p]=d.useState(!1),[u,m]=d.useState(e),b=t??u,g=d.useCallback(w=>{const x=typeof w=="function"?w(b):w;n?n(x):m(x),document.cookie=`${Bq}=${x}; path=/; max-age=${zq}`},[n,b]),h=d.useCallback(()=>l?p(w=>!w):g(w=>!w),[l,g,p]);d.useEffect(()=>{const w=x=>{x.key===Gq&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),h())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[h]);const v=b?"expanded":"collapsed",y=d.useMemo(()=>({state:v,open:b,setOpen:g,isMobile:l,openMobile:c,setOpenMobile:p,toggleSidebar:h}),[v,b,g,l,c,p,h]);return f.jsx(DT.Provider,{value:y,children:f.jsx(OT,{delayDuration:0,children:f.jsx("div",{style:{"--sidebar-width":qq,"--sidebar-width-icon":Vq,...o},className:O("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:a})})})});kT.displayName="SidebarProvider";const $T=d.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},i)=>{const{isMobile:s,state:l,openMobile:c,setOpenMobile:p}=Bo();return n==="none"?f.jsx("div",{className:O("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...a,children:o}):s?f.jsx(wT,{open:c,onOpenChange:p,...a,children:f.jsxs(mp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Hq},side:e,children:[f.jsxs(hp,{className:"sr-only",children:[f.jsx(gp,{children:"Sidebar"}),f.jsx(vp,{children:"Displays the mobile sidebar."})]}),f.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):f.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[f.jsx("div",{className:O("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),f.jsx("div",{className:O("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:f.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});$T.displayName="Sidebar";const LT=d.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Bo();return f.jsxs(cn,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:O("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[f.jsx(R1,{}),f.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});LT.displayName="SidebarTrigger";const FT=d.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Bo();return f.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:O("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});FT.displayName="SidebarRail";const BT=d.forwardRef(({className:e,...t},n)=>f.jsx("main",{ref:n,className:O("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));BT.displayName="SidebarInset";const zT=d.forwardRef(({className:e,...t},n)=>f.jsx(Ro,{ref:n,"data-sidebar":"input",className:O("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));zT.displayName="SidebarInput";const qT=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"header",className:O("flex flex-col gap-2 p-2",e),...t}));qT.displayName="SidebarHeader";const HT=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"footer",className:O("flex flex-col gap-2 p-2",e),...t}));HT.displayName="SidebarFooter";const VT=d.forwardRef(({className:e,...t},n)=>f.jsx(fp,{ref:n,"data-sidebar":"separator",className:O("mx-2 w-auto bg-sidebar-border",e),...t}));VT.displayName="SidebarSeparator";const GT=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"content",className:O("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));GT.displayName="SidebarContent";const UT=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"group",className:O("relative flex w-full min-w-0 flex-col p-2",e),...t}));UT.displayName="SidebarGroup";const WT=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?lt:"div";return f.jsx(o,{ref:r,"data-sidebar":"group-label",className:O("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});WT.displayName="SidebarGroupLabel";const KT=d.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?lt:"button";return f.jsx(o,{ref:r,"data-sidebar":"group-action",className:O("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});KT.displayName="SidebarGroupAction";const YT=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"group-content",className:O("w-full text-sm",e),...t}));YT.displayName="SidebarGroupContent";const XT=d.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,"data-sidebar":"menu",className:O("flex w-full min-w-0 flex-col gap-1",e),...t}));XT.displayName="SidebarMenu";const ZT=d.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,"data-sidebar":"menu-item",className:O("group/menu-item relative",e),...t}));ZT.displayName="SidebarMenuItem";const Uq=ln("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),JT=d.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i},s)=>{const l=e?lt:"button",{isMobile:c,state:p}=Bo(),u=f.jsx(l,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:O(Uq({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),f.jsxs(IT,{children:[f.jsx(jT,{asChild:!0,children:u}),f.jsx(_p,{side:"right",align:"center",hidden:p!=="collapsed"||c,...o})]})):u});JT.displayName="SidebarMenuButton";const QT=d.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?lt:"button";return f.jsx(a,{ref:o,"data-sidebar":"menu-action",className:O("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});QT.displayName="SidebarMenuAction";const eR=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:O("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));eR.displayName="SidebarMenuBadge";const tR=d.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return f.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:O("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&f.jsx(yp,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),f.jsx(yp,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});tR.displayName="SidebarMenuSkeleton";const nR=d.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:O("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));nR.displayName="SidebarMenuSub";const rR=d.forwardRef(({...e},t)=>f.jsx("li",{ref:t,...e}));rR.displayName="SidebarMenuSubItem";const oR=d.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const i=e?lt:"a";return f.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:O("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});oR.displayName="SidebarMenuSubButton";var aR=["PageUp","PageDown"],iR=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sR={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Or="Slider",[Ep,Wq,Kq]=nn(Or),[lR,m3]=De(Or,[Kq]),[Yq,ki]=lR(Or),cR=d.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:p,onValueChange:u=()=>{},onValueCommit:m=()=>{},inverted:b=!1,form:g,...h}=e,v=d.useRef(new Set),y=d.useRef(0),x=i==="horizontal"?Xq:Zq,[S=[],_]=$e({prop:p,defaultProp:c,onChange:D=>{var A;(A=[...v.current][y.current])==null||A.focus(),u(D)}}),P=d.useRef(S);function C(D){const F=nH(S,D);$(D,F)}function M(D){$(D,y.current)}function R(){const D=P.current[y.current];S[y.current]!==D&&m(S)}function $(D,F,{commit:A}={commit:!1}){const k=iH(a),L=sH(Math.round((D-r)/a)*a+r,k),I=ko(L,[r,o]);_((U=[])=>{const V=eH(U,I,F);if(aH(V,l*a)){y.current=V.indexOf(I);const q=String(V)!==String(U);return q&&A&&m(V),q?V:U}else return U})}return f.jsx(Yq,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:S,orientation:i,form:g,children:f.jsx(Ep.Provider,{scope:e.__scopeSlider,children:f.jsx(Ep.Slot,{scope:e.__scopeSlider,children:f.jsx(x,{"aria-disabled":s,"data-disabled":s?"":void 0,...h,ref:t,onPointerDown:B(h.onPointerDown,()=>{s||(P.current=S)}),min:r,max:o,inverted:b,onSlideStart:s?void 0:C,onSlideMove:s?void 0:M,onSlideEnd:s?void 0:R,onHomeKeyDown:()=>!s&&$(r,0,{commit:!0}),onEndKeyDown:()=>!s&&$(o,S.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:F})=>{if(!s){const L=aR.includes(D.key)||D.shiftKey&&iR.includes(D.key)?10:1,I=y.current,U=S[I],V=a*L*F;$(U+V,I,{commit:!0})}}})})})})});cR.displayName=Or;var[uR,dR]=lR(Or,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Xq=d.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...p}=e,[u,m]=d.useState(null),b=fe(t,x=>m(x)),g=d.useRef(void 0),h=Mt(o),v=h==="ltr",y=v&&!a||!v&&a;function w(x){const S=g.current||u.getBoundingClientRect(),_=[0,S.width],C=Rp(_,y?[n,r]:[r,n]);return g.current=S,C(x-S.left)}return f.jsx(uR,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:f.jsx(fR,{dir:h,"data-orientation":"horizontal",...p,ref:b,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);i==null||i(S)},onSlideMove:x=>{const S=w(x.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:x=>{const _=sR[y?"from-left":"from-right"].includes(x.key);c==null||c({event:x,direction:_?-1:1})}})})}),Zq=d.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...c}=e,p=d.useRef(null),u=fe(t,p),m=d.useRef(void 0),b=!o;function g(h){const v=m.current||p.current.getBoundingClientRect(),y=[0,v.height],x=Rp(y,b?[r,n]:[n,r]);return m.current=v,x(h-v.top)}return f.jsx(uR,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:f.jsx(fR,{"data-orientation":"vertical",...c,ref:u,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=g(h.clientY);a==null||a(v)},onSlideMove:h=>{const v=g(h.clientY);i==null||i(v)},onSlideEnd:()=>{m.current=void 0,s==null||s()},onStepKeyDown:h=>{const y=sR[b?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:y?-1:1})}})})}),fR=d.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...c}=e,p=ki(Or,n);return f.jsx(Z.span,{...c,ref:t,onKeyDown:B(e.onKeyDown,u=>{u.key==="Home"?(i(u),u.preventDefault()):u.key==="End"?(s(u),u.preventDefault()):aR.concat(iR).includes(u.key)&&(l(u),u.preventDefault())}),onPointerDown:B(e.onPointerDown,u=>{const m=u.target;m.setPointerCapture(u.pointerId),u.preventDefault(),p.thumbs.has(m)?m.focus():r(u)}),onPointerMove:B(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:B(e.onPointerUp,u=>{const m=u.target;m.hasPointerCapture(u.pointerId)&&(m.releasePointerCapture(u.pointerId),a(u))})})}),pR="SliderTrack",mR=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=ki(pR,n);return f.jsx(Z.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});mR.displayName=pR;var Pp="SliderRange",hR=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=ki(Pp,n),a=dR(Pp,n),i=d.useRef(null),s=fe(t,i),l=o.values.length,c=o.values.map(m=>vR(m,o.min,o.max)),p=l>1?Math.min(...c):0,u=100-Math.max(...c);return f.jsx(Z.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:u+"%"}})});hR.displayName=Pp;var Tp="SliderThumb",gR=d.forwardRef((e,t)=>{const n=Wq(e.__scopeSlider),[r,o]=d.useState(null),a=fe(t,s=>o(s)),i=d.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return f.jsx(Jq,{...e,ref:a,index:i})}),Jq=d.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=ki(Tp,n),s=dR(Tp,n),[l,c]=d.useState(null),p=fe(t,w=>c(w)),u=l?i.form||!!l.closest("form"):!0,m=io(l),b=i.values[r],g=b===void 0?0:vR(b,i.min,i.max),h=tH(r,i.values.length),v=m==null?void 0:m[s.size],y=v?rH(v,g,s.direction):0;return d.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${y}px)`},children:[f.jsx(Ep.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(Z.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":i.min,"aria-valuenow":b,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:p,style:b===void 0?{display:"none"}:e.style,onFocus:B(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),u&&f.jsx(Qq,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:b},r)]})});gR.displayName=Tp;var Qq=e=>{const{value:t,...n}=e,r=d.useRef(null),o=dr(t);return d.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(c)}},[o,t]),f.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function eH(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function vR(e,t,n){const a=100/(n-t)*(e-t);return ko(a,[0,100])}function tH(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function nH(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function rH(e,t,n){const r=e/2,a=Rp([0,50],[0,r]);return(r-a(t)*n)*n}function oH(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function aH(e,t){if(t>0){const n=oH(e);return Math.min(...n)>=t}return!0}function Rp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function iH(e){return(String(e).split(".")[1]||"").length}function sH(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var bR=cR,lH=mR,cH=hR,uH=gR;const yR=d.forwardRef(({className:e,...t},n)=>f.jsxs(bR,{ref:n,className:O("relative flex w-full touch-none select-none items-center",e),...t,children:[f.jsx(lH,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:f.jsx(cH,{className:"absolute h-full bg-primary"})}),f.jsx(uH,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));yR.displayName=bR.displayName;var dH=(e,t,n,r,o,a,i,s)=>{let l=document.documentElement,c=["light","dark"];function p(b){(Array.isArray(e)?e:[e]).forEach(g=>{let h=g==="class",v=h&&a?o.map(y=>a[y]||y):o;h?(l.classList.remove(...v),l.classList.add(a&&a[b]?a[b]:b)):l.setAttribute(g,b)}),u(b)}function u(b){s&&c.includes(b)&&(l.style.colorScheme=b)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)p(r);else try{let b=localStorage.getItem(t)||n,g=i&&b==="system"?m():b;p(g)}catch{}},fH=d.createContext(void 0),pH={setTheme:e=>{},themes:[]},mH=()=>{var e;return(e=d.useContext(fH))!=null?e:pH};d.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:i,themes:s,nonce:l,scriptProps:c})=>{let p=JSON.stringify([n,t,a,e,s,i,r,o]).slice(1,-1);return d.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${dH.toString()})(${p})`}})});function hH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const gH=e=>{switch(e){case"success":return yH;case"info":return xH;case"warning":return wH;case"error":return SH;default:return null}},vH=Array(12).fill(0),bH=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},vH.map((n,r)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),yH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),wH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),xH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),SH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),CH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_H=()=>{const[e,t]=E.useState(document.hidden);return E.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Np=1;class EH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Np++,i=this.toasts.find(l=>l.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:a}),a},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0}))),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,i;const s=o.then(async c=>{if(i=["resolve",c],E.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(TH(c)&&!c.ok){a=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,b=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:m,...b})}else if(c instanceof Error){a=!1;const u=typeof n.error=="function"?await n.error(c):n.error,m=typeof n.description=="function"?await n.description(c):n.description,b=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:m,...b})}else if(n.success!==void 0){a=!1;const u=typeof n.success=="function"?await n.success(c):n.success,m=typeof n.description=="function"?await n.description(c):n.description,b=typeof u=="object"?u:{message:u};this.create({id:r,type:"success",description:m,...b})}}).catch(async c=>{if(i=["reject",c],n.error!==void 0){a=!1;const p=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,m=typeof p=="object"?p:{message:p};this.create({id:r,type:"error",description:u,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,p)=>s.then(()=>i[0]==="reject"?p(i[1]):c(i[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Np++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bt=new EH,PH=(e,t)=>{const n=(t==null?void 0:t.id)||Np++;return bt.addToast({title:e,...t,id:n}),n},TH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",RH=PH,NH=()=>bt.toasts,AH=()=>bt.getActiveToasts();Object.assign(RH,{success:bt.success,info:bt.info,warning:bt.warning,error:bt.error,custom:bt.custom,message:bt.message,promise:bt.promise,dismiss:bt.dismiss,loading:bt.loading},{getHistory:NH,getToasts:AH}),hH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function $i(e){return e.label!==void 0}const MH=3,OH="24px",IH="16px",wR=4e3,jH=356,DH=14,kH=45,$H=200;function en(...e){return e.filter(Boolean).join(" ")}function LH(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const FH=e=>{var t,n,r,o,a,i,s,l,c;const{invert:p,toast:u,unstyled:m,interacting:b,setHeights:g,visibleToasts:h,heights:v,index:y,toasts:w,expanded:x,removeToast:S,defaultRichColors:_,closeButton:P,style:C,cancelButtonStyle:M,actionButtonStyle:R,className:$="",descriptionClassName:D="",duration:F,position:A,gap:k,expandByDefault:L,classNames:I,icons:U,closeButtonAriaLabel:V="Close toast"}=e,[q,ae]=E.useState(null),[J,ne]=E.useState(null),[z,W]=E.useState(!1),[ee,Y]=E.useState(!1),[H,K]=E.useState(!1),[re,Q]=E.useState(!1),[oe,G]=E.useState(!1),[ie,j]=E.useState(0),[te,me]=E.useState(0),he=E.useRef(u.duration||F||wR),ve=E.useRef(null),pe=E.useRef(null),Te=y===0,He=y+1<=h,Se=u.type,Ie=u.dismissible!==!1,ot=u.className||"",Qe=u.descriptionClassName||"",Ye=E.useMemo(()=>v.findIndex(se=>se.toastId===u.id)||0,[v,u.id]),at=E.useMemo(()=>{var se;return(se=u.closeButton)!=null?se:P},[u.closeButton,P]),yt=E.useMemo(()=>u.duration||F||wR,[u.duration,F]),pt=E.useRef(0),Ue=E.useRef(0),Nt=E.useRef(0),Xe=E.useRef(null),[et,Ht]=A.split("-"),tn=E.useMemo(()=>v.reduce((se,Ce,xe)=>xe>=Ye?se:se+Ce.height,0),[v,Ye]),Tn=_H(),Wn=u.invert||p,Vt=Se==="loading";Ue.current=E.useMemo(()=>Ye*k+tn,[Ye,tn]),E.useEffect(()=>{he.current=yt},[yt]),E.useEffect(()=>{W(!0)},[]),E.useEffect(()=>{const se=pe.current;if(se){const Ce=se.getBoundingClientRect().height;return me(Ce),g(xe=>[{toastId:u.id,height:Ce,position:u.position},...xe]),()=>g(xe=>xe.filter(Fe=>Fe.toastId!==u.id))}},[g,u.id]),E.useLayoutEffect(()=>{if(!z)return;const se=pe.current,Ce=se.style.height;se.style.height="auto";const xe=se.getBoundingClientRect().height;se.style.height=Ce,me(xe),g(Fe=>Fe.find(je=>je.toastId===u.id)?Fe.map(je=>je.toastId===u.id?{...je,height:xe}:je):[{toastId:u.id,height:xe,position:u.position},...Fe])},[z,u.title,u.description,g,u.id]);const de=E.useCallback(()=>{Y(!0),j(Ue.current),g(se=>se.filter(Ce=>Ce.toastId!==u.id)),setTimeout(()=>{S(u)},$H)},[u,S,g,Ue]);E.useEffect(()=>{if(u.promise&&Se==="loading"||u.duration===1/0||u.type==="loading")return;let se;return x||b||Tn?(()=>{if(Nt.current<pt.current){const Fe=new Date().getTime()-pt.current;he.current=he.current-Fe}Nt.current=new Date().getTime()})():(()=>{he.current!==1/0&&(pt.current=new Date().getTime(),se=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),de()},he.current))})(),()=>clearTimeout(se)},[x,b,u,Se,Tn,de]),E.useEffect(()=>{u.delete&&de()},[de,u.delete]);function we(){var se;if(U!=null&&U.loading){var Ce;return E.createElement("div",{className:en(I==null?void 0:I.loader,u==null||(Ce=u.classNames)==null?void 0:Ce.loader,"sonner-loader"),"data-visible":Se==="loading"},U.loading)}return E.createElement(bH,{className:en(I==null?void 0:I.loader,u==null||(se=u.classNames)==null?void 0:se.loader),visible:Se==="loading"})}var Ee,be;return E.createElement("li",{tabIndex:0,ref:pe,className:en($,ot,I==null?void 0:I.toast,u==null||(t=u.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[Se],u==null||(n=u.classNames)==null?void 0:n[Se]),"data-sonner-toast":"","data-rich-colors":(Ee=u.richColors)!=null?Ee:_,"data-styled":!(u.jsx||u.unstyled||m),"data-mounted":z,"data-promise":!!u.promise,"data-swiped":oe,"data-removed":ee,"data-visible":He,"data-y-position":et,"data-x-position":Ht,"data-index":y,"data-front":Te,"data-swiping":H,"data-dismissible":Ie,"data-type":Se,"data-invert":Wn,"data-swipe-out":re,"data-swipe-direction":J,"data-expanded":!!(x||L&&z),style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${ee?ie:Ue.current}px`,"--initial-height":L?"auto":`${te}px`,...C,...u.style},onDragEnd:()=>{K(!1),ae(null),Xe.current=null},onPointerDown:se=>{Vt||!Ie||(ve.current=new Date,j(Ue.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(K(!0),Xe.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,Ce,xe;if(re||!Ie)return;Xe.current=null;const Fe=Number(((se=pe.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tt=Number(((Ce=pe.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((xe=ve.current)==null?void 0:xe.getTime()),Ve=q==="x"?Fe:tt,it=Math.abs(Ve)/je;if(Math.abs(Ve)>=kH||it>.11){j(Ue.current),u.onDismiss==null||u.onDismiss.call(u,u),ne(q==="x"?Fe>0?"right":"left":tt>0?"down":"up"),de(),Q(!0);return}else{var nt,st;(nt=pe.current)==null||nt.style.setProperty("--swipe-amount-x","0px"),(st=pe.current)==null||st.style.setProperty("--swipe-amount-y","0px")}G(!1),K(!1),ae(null)},onPointerMove:se=>{var Ce,xe,Fe;if(!Xe.current||!Ie||((Ce=window.getSelection())==null?void 0:Ce.toString().length)>0)return;const je=se.clientY-Xe.current.y,Ve=se.clientX-Xe.current.x;var it;const nt=(it=e.swipeDirections)!=null?it:LH(A);!q&&(Math.abs(Ve)>1||Math.abs(je)>1)&&ae(Math.abs(Ve)>Math.abs(je)?"x":"y");let st={x:0,y:0};const Vi=mn=>1/(1.5+Math.abs(mn)/20);if(q==="y"){if(nt.includes("top")||nt.includes("bottom"))if(nt.includes("top")&&je<0||nt.includes("bottom")&&je>0)st.y=je;else{const mn=je*Vi(je);st.y=Math.abs(mn)<Math.abs(je)?mn:je}}else if(q==="x"&&(nt.includes("left")||nt.includes("right")))if(nt.includes("left")&&Ve<0||nt.includes("right")&&Ve>0)st.x=Ve;else{const mn=Ve*Vi(Ve);st.x=Math.abs(mn)<Math.abs(Ve)?mn:Ve}(Math.abs(st.x)>0||Math.abs(st.y)>0)&&G(!0),(xe=pe.current)==null||xe.style.setProperty("--swipe-amount-x",`${st.x}px`),(Fe=pe.current)==null||Fe.style.setProperty("--swipe-amount-y",`${st.y}px`)}},at&&!u.jsx&&Se!=="loading"?E.createElement("button",{"aria-label":V,"data-disabled":Vt,"data-close-button":!0,onClick:Vt||!Ie?()=>{}:()=>{de(),u.onDismiss==null||u.onDismiss.call(u,u)},className:en(I==null?void 0:I.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(be=U==null?void 0:U.close)!=null?be:CH):null,Se||u.icon||u.promise?E.createElement("div",{"data-icon":"",className:en(I==null?void 0:I.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||we():null,u.type!=="loading"?u.icon||(U==null?void 0:U[Se])||gH(Se):null):null,E.createElement("div",{"data-content":"",className:en(I==null?void 0:I.content,u==null||(a=u.classNames)==null?void 0:a.content)},E.createElement("div",{"data-title":"",className:en(I==null?void 0:I.title,u==null||(i=u.classNames)==null?void 0:i.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?E.createElement("div",{"data-description":"",className:en(D,Qe,I==null?void 0:I.description,u==null||(s=u.classNames)==null?void 0:s.description)},typeof u.description=="function"?u.description():u.description):null),E.isValidElement(u.cancel)?u.cancel:u.cancel&&$i(u.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||M,onClick:se=>{$i(u.cancel)&&Ie&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,se),de())},className:en(I==null?void 0:I.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,E.isValidElement(u.action)?u.action:u.action&&$i(u.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||R,onClick:se=>{$i(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,se),!se.defaultPrevented&&de())},className:en(I==null?void 0:I.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function xR(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function BH(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,i=a?"--mobile-offset":"--offset",s=a?IH:OH;function l(c){["top","right","bottom","left"].forEach(p=>{n[`${i}-${p}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=s:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}const zH=E.forwardRef(function(t,n){const{invert:r,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:c,mobileOffset:p,theme:u="light",richColors:m,duration:b,style:g,visibleToasts:h=MH,toastOptions:v,dir:y=xR(),gap:w=DH,icons:x,containerAriaLabel:S="Notifications"}=t,[_,P]=E.useState([]),C=E.useMemo(()=>Array.from(new Set([o].concat(_.filter(J=>J.position).map(J=>J.position)))),[_,o]),[M,R]=E.useState([]),[$,D]=E.useState(!1),[F,A]=E.useState(!1),[k,L]=E.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=E.useRef(null),U=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=E.useRef(null),q=E.useRef(!1),ae=E.useCallback(J=>{P(ne=>{var z;return(z=ne.find(W=>W.id===J.id))!=null&&z.delete||bt.dismiss(J.id),ne.filter(({id:W})=>W!==J.id)})},[]);return E.useEffect(()=>bt.subscribe(J=>{if(J.dismiss){const ne=_.map(z=>z.id===J.id?{...z,delete:!0}:z);requestAnimationFrame(()=>{P(ne)});return}setTimeout(()=>{qo.flushSync(()=>{P(ne=>{const z=ne.findIndex(W=>W.id===J.id);return z!==-1?[...ne.slice(0,z),{...ne[z],...J},...ne.slice(z+1)]:[J,...ne]})})})}),[_]),E.useEffect(()=>{if(u!=="system"){L(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const J=window.matchMedia("(prefers-color-scheme: dark)");try{J.addEventListener("change",({matches:ne})=>{L(ne?"dark":"light")})}catch{J.addListener(({matches:z})=>{try{L(z?"dark":"light")}catch(W){console.error(W)}})}},[u]),E.useEffect(()=>{_.length<=1&&D(!1)},[_]),E.useEffect(()=>{const J=ne=>{var z;if(a.every(Y=>ne[Y]||ne.code===Y)){var ee;D(!0),(ee=I.current)==null||ee.focus()}ne.code==="Escape"&&(document.activeElement===I.current||(z=I.current)!=null&&z.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[a]),E.useEffect(()=>{if(I.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,q.current=!1)}},[I.current]),E.createElement("section",{ref:n,"aria-label":`${S} ${U}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((J,ne)=>{var z;const[W,ee]=J.split("-");return _.length?E.createElement("ol",{key:J,dir:y==="auto"?xR():y,tabIndex:-1,ref:I,className:l,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":W,"data-lifted":$&&_.length>1&&!i,"data-x-position":ee,style:{"--front-toast-height":`${((z=M[0])==null?void 0:z.height)||0}px`,"--width":`${jH}px`,"--gap":`${w}px`,...g,...BH(c,p)},onBlur:Y=>{q.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(q.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||q.current||(q.current=!0,V.current=Y.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{F||D(!1)},onDragEnd:()=>D(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},_.filter(Y=>!Y.position&&ne===0||Y.position===J).map((Y,H)=>{var K,re;return E.createElement(FH,{key:Y.id,icons:x,index:H,toast:Y,defaultRichColors:m,duration:(K=v==null?void 0:v.duration)!=null?K:b,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:h,closeButton:(re=v==null?void 0:v.closeButton)!=null?re:s,interacting:F,position:J,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:ae,toasts:_.filter(Q=>Q.position==Y.position),heights:M.filter(Q=>Q.position==Y.position),setHeights:R,expandByDefault:i,gap:w,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),qH=({...e})=>{const{theme:t="system"}=mH();return f.jsx(zH,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var Ap="Switch",[HH,h3]=De(Ap),[VH,GH]=HH(Ap),SR=d.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,form:p,...u}=e,[m,b]=d.useState(null),g=fe(t,x=>b(x)),h=d.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,w]=$e({prop:o,defaultProp:a,onChange:c});return f.jsxs(VH,{scope:n,checked:y,disabled:s,children:[f.jsx(Z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":ER(y),"data-disabled":s?"":void 0,disabled:s,value:l,...u,ref:g,onClick:B(e.onClick,x=>{w(S=>!S),v&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),v&&f.jsx(UH,{control:m,bubbles:!h.current,name:r,value:l,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"}})]})});SR.displayName=Ap;var CR="SwitchThumb",_R=d.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=GH(CR,n);return f.jsx(Z.span,{"data-state":ER(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});_R.displayName=CR;var UH=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=d.useRef(null),i=dr(n),s=io(t);return d.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&u){const m=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(m)}},[i,n,r]),f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ER(e){return e?"checked":"unchecked"}var PR=SR,WH=_R;const TR=d.forwardRef(({className:e,...t},n)=>f.jsx(PR,{className:O("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:f.jsx(WH,{className:O("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));TR.displayName=PR.displayName;const RR=d.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:"relative w-full overflow-auto",children:f.jsx("table",{ref:n,className:O("w-full caption-bottom text-sm",e),...t})}));RR.displayName="Table";const NR=d.forwardRef(({className:e,...t},n)=>f.jsx("thead",{ref:n,className:O("[&_tr]:border-b",e),...t}));NR.displayName="TableHeader";const AR=d.forwardRef(({className:e,...t},n)=>f.jsx("tbody",{ref:n,className:O("[&_tr:last-child]:border-0",e),...t}));AR.displayName="TableBody";const MR=d.forwardRef(({className:e,...t},n)=>f.jsx("tfoot",{ref:n,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));MR.displayName="TableFooter";const OR=d.forwardRef(({className:e,...t},n)=>f.jsx("tr",{ref:n,className:O("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));OR.displayName="TableRow";const IR=d.forwardRef(({className:e,...t},n)=>f.jsx("th",{ref:n,className:O("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));IR.displayName="TableHead";const jR=d.forwardRef(({className:e,...t},n)=>f.jsx("td",{ref:n,className:O("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));jR.displayName="TableCell";const DR=d.forwardRef(({className:e,...t},n)=>f.jsx("caption",{ref:n,className:O("mt-4 text-sm text-muted-foreground",e),...t}));DR.displayName="TableCaption";var Mp="Tabs",[KH,g3]=De(Mp,[Jt]),kR=Jt(),[YH,Op]=KH(Mp),$R=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,p=Mt(s),[u,m]=$e({prop:r,onChange:o,defaultProp:a});return f.jsx(YH,{scope:n,baseId:Ge(),value:u,onValueChange:m,orientation:i,dir:p,activationMode:l,children:f.jsx(Z.div,{dir:p,"data-orientation":i,...c,ref:t})})});$R.displayName=Mp;var LR="TabsList",FR=d.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Op(LR,n),i=kR(n);return f.jsx(po,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:f.jsx(Z.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});FR.displayName=LR;var BR="TabsTrigger",zR=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Op(BR,n),s=kR(n),l=VR(i.baseId,r),c=GR(i.baseId,r),p=r===i.value;return f.jsx(mo,{asChild:!0,...s,focusable:!o,active:p,children:f.jsx(Z.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":c,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:B(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?i.onValueChange(r):u.preventDefault()}),onKeyDown:B(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&i.onValueChange(r)}),onFocus:B(e.onFocus,()=>{const u=i.activationMode!=="manual";!p&&!o&&u&&i.onValueChange(r)})})})});zR.displayName=BR;var qR="TabsContent",HR=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=Op(qR,n),l=VR(s.baseId,r),c=GR(s.baseId,r),p=r===s.value,u=d.useRef(p);return d.useEffect(()=>{const m=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(m)},[]),f.jsx(Le,{present:o||p,children:({present:m})=>f.jsx(Z.div,{"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:m&&a})})});HR.displayName=qR;function VR(e,t){return`${e}-trigger-${t}`}function GR(e,t){return`${e}-content-${t}`}var XH=$R,UR=FR,WR=zR,KR=HR;const ZH=XH,YR=d.forwardRef(({className:e,...t},n)=>f.jsx(UR,{ref:n,className:O("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));YR.displayName=UR.displayName;const XR=d.forwardRef(({className:e,...t},n)=>f.jsx(WR,{ref:n,className:O("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));XR.displayName=WR.displayName;const ZR=d.forwardRef(({className:e,...t},n)=>f.jsx(KR,{ref:n,className:O("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ZR.displayName=KR.displayName;const JR=d.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:O("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));JR.displayName="Textarea";var Ip="ToastProvider",[jp,JH,QH]=nn("Toast"),[QR,v3]=De("Toast",[QH]),[eV,Li]=QR(Ip),eN=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,l]=d.useState(null),[c,p]=d.useState(0),u=d.useRef(!1),m=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ip}\`. Expected non-empty \`string\`.`),f.jsx(jp.Provider,{scope:t,children:f.jsx(eV,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:d.useCallback(()=>p(b=>b+1),[]),onToastRemove:d.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:m,children:i})})};eN.displayName=Ip;var tN="ToastViewport",tV=["F8"],Dp="toast.viewportPause",kp="toast.viewportResume",nN=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tV,label:o="Notifications ({hotkey})",...a}=e,i=Li(tN,n),s=JH(n),l=d.useRef(null),c=d.useRef(null),p=d.useRef(null),u=d.useRef(null),m=fe(t,u,i.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;d.useEffect(()=>{const v=y=>{var x;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((x=u.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),d.useEffect(()=>{const v=l.current,y=u.current;if(g&&v&&y){const w=()=>{if(!i.isClosePausedRef.current){const P=new CustomEvent(Dp);y.dispatchEvent(P),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const P=new CustomEvent(kp);y.dispatchEvent(P),i.isClosePausedRef.current=!1}},S=P=>{!v.contains(P.relatedTarget)&&x()},_=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",w),v.addEventListener("focusout",S),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",_),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",_),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[g,i.isClosePausedRef]);const h=d.useCallback(({tabbingDirection:v})=>{const w=s().map(x=>{const S=x.ref.current,_=[S,...mV(S)];return v==="forwards"?_:_.reverse()});return(v==="forwards"?w.reverse():w).flat()},[s]);return d.useEffect(()=>{const v=u.current;if(v){const y=w=>{var _,P,C;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const M=document.activeElement,R=w.shiftKey;if(w.target===v&&R){(_=c.current)==null||_.focus();return}const F=h({tabbingDirection:R?"backwards":"forwards"}),A=F.findIndex(k=>k===M);Fp(F.slice(A+1))?w.preventDefault():R?(P=c.current)==null||P.focus():(C=p.current)==null||C.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[s,h]),f.jsxs(_A,{ref:l,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&f.jsx($p,{ref:c,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"forwards"});Fp(v)}}),f.jsx(jp.Slot,{scope:n,children:f.jsx(Z.ol,{tabIndex:-1,...a,ref:m})}),g&&f.jsx($p,{ref:p,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"backwards"});Fp(v)}})]})});nN.displayName=tN;var rN="ToastFocusProxy",$p=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Li(rN,n);return f.jsx(No,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const s=i.relatedTarget;!((c=a.viewport)!=null&&c.contains(s))&&r()}})});$p.displayName=rN;var Fi="Toast",nV="toast.swipeStart",rV="toast.swipeMove",oV="toast.swipeCancel",aV="toast.swipeEnd",oN=d.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,l]=$e({prop:r,defaultProp:o,onChange:a});return f.jsx(Le,{present:n||s,children:f.jsx(lV,{open:s,...i,ref:t,onClose:()=>l(!1),onPause:Ne(e.onPause),onResume:Ne(e.onResume),onSwipeStart:B(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:B(e.onSwipeMove,c=>{const{x:p,y:u}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${u}px`)}),onSwipeCancel:B(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:B(e.onSwipeEnd,c=>{const{x:p,y:u}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${u}px`),l(!1)})})})});oN.displayName=Fi;var[iV,sV]=QR(Fi,{onClose(){}}),lV=d.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:p,onSwipeMove:u,onSwipeCancel:m,onSwipeEnd:b,...g}=e,h=Li(Fi,n),[v,y]=d.useState(null),w=fe(t,k=>y(k)),x=d.useRef(null),S=d.useRef(null),_=o||h.duration,P=d.useRef(0),C=d.useRef(_),M=d.useRef(0),{onToastAdd:R,onToastRemove:$}=h,D=Ne(()=>{var L;(v==null?void 0:v.contains(document.activeElement))&&((L=h.viewport)==null||L.focus()),i()}),F=d.useCallback(k=>{!k||k===1/0||(window.clearTimeout(M.current),P.current=new Date().getTime(),M.current=window.setTimeout(D,k))},[D]);d.useEffect(()=>{const k=h.viewport;if(k){const L=()=>{F(C.current),c==null||c()},I=()=>{const U=new Date().getTime()-P.current;C.current=C.current-U,window.clearTimeout(M.current),l==null||l()};return k.addEventListener(Dp,I),k.addEventListener(kp,L),()=>{k.removeEventListener(Dp,I),k.removeEventListener(kp,L)}}},[h.viewport,_,l,c,F]),d.useEffect(()=>{a&&!h.isClosePausedRef.current&&F(_)},[a,_,h.isClosePausedRef,F]),d.useEffect(()=>(R(),()=>$()),[R,$]);const A=d.useMemo(()=>v?dN(v):null,[v]);return h.viewport?f.jsxs(f.Fragment,{children:[A&&f.jsx(cV,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:A}),f.jsx(iV,{scope:n,onClose:D,children:Dr.createPortal(f.jsx(jp.ItemSlot,{scope:n,children:f.jsx(CA,{asChild:!0,onEscapeKeyDown:B(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||D(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(Z.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:B(e.onKeyDown,k=>{k.key==="Escape"&&(s==null||s(k.nativeEvent),k.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:B(e.onPointerDown,k=>{k.button===0&&(x.current={x:k.clientX,y:k.clientY})}),onPointerMove:B(e.onPointerMove,k=>{if(!x.current)return;const L=k.clientX-x.current.x,I=k.clientY-x.current.y,U=!!S.current,V=["left","right"].includes(h.swipeDirection),q=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,ae=V?q(0,L):0,J=V?0:q(0,I),ne=k.pointerType==="touch"?10:2,z={x:ae,y:J},W={originalEvent:k,delta:z};U?(S.current=z,Bi(rV,u,W,{discrete:!1})):fN(z,h.swipeDirection,ne)?(S.current=z,Bi(nV,p,W,{discrete:!1}),k.target.setPointerCapture(k.pointerId)):(Math.abs(L)>ne||Math.abs(I)>ne)&&(x.current=null)}),onPointerUp:B(e.onPointerUp,k=>{const L=S.current,I=k.target;if(I.hasPointerCapture(k.pointerId)&&I.releasePointerCapture(k.pointerId),S.current=null,x.current=null,L){const U=k.currentTarget,V={originalEvent:k,delta:L};fN(L,h.swipeDirection,h.swipeThreshold)?Bi(aV,b,V,{discrete:!0}):Bi(oV,m,V,{discrete:!0}),U.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),cV=e=>{const{__scopeToast:t,children:n,...r}=e,o=Li(Fi,t),[a,i]=d.useState(!1),[s,l]=d.useState(!1);return fV(()=>i(!0)),d.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:f.jsx(Mn,{asChild:!0,children:f.jsx(No,{...r,children:a&&f.jsxs(f.Fragment,{children:[o.label," ",n]})})})},uV="ToastTitle",aN=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(Z.div,{...r,ref:t})});aN.displayName=uV;var dV="ToastDescription",iN=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(Z.div,{...r,ref:t})});iN.displayName=dV;var sN="ToastAction",lN=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(uN,{altText:n,asChild:!0,children:f.jsx(Lp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sN}\`. Expected non-empty \`string\`.`),null)});lN.displayName=sN;var cN="ToastClose",Lp=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=sV(cN,n);return f.jsx(uN,{asChild:!0,children:f.jsx(Z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,o.onClose)})})});Lp.displayName=cN;var uN=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return f.jsx(Z.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function dN(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),pV(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...dN(r))}}),t}function Bi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fr(o,a):o.dispatchEvent(a)}var fN=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function fV(e=()=>{}){const t=Ne(e);Be(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function pV(e){return e.nodeType===e.ELEMENT_NODE}function mV(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 Fp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var hV=eN,pN=nN,mN=oN,hN=aN,gN=iN,vN=lN,bN=Lp;const yN=hV,Bp=d.forwardRef(({className:e,...t},n)=>f.jsx(pN,{ref:n,className:O("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Bp.displayName=pN.displayName;const gV=ln("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),zp=d.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(mN,{ref:r,className:O(gV({variant:t}),e),...n}));zp.displayName=mN.displayName;const wN=d.forwardRef(({className:e,...t},n)=>f.jsx(vN,{ref:n,className:O("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));wN.displayName=vN.displayName;const qp=d.forwardRef(({className:e,...t},n)=>f.jsx(bN,{ref:n,className:O("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(os,{className:"h-4 w-4"})}));qp.displayName=bN.displayName;const Hp=d.forwardRef(({className:e,...t},n)=>f.jsx(hN,{ref:n,className:O("text-sm font-semibold [&+div]:text-xs",e),...t}));Hp.displayName=hN.displayName;const Vp=d.forwardRef(({className:e,...t},n)=>f.jsx(gN,{ref:n,className:O("text-sm opacity-90",e),...t}));Vp.displayName=gN.displayName;const vV=1,bV=1e6;let Gp=0;function yV(){return Gp=(Gp+1)%Number.MAX_SAFE_INTEGER,Gp.toString()}const Up=new Map,xN=e=>{if(Up.has(e))return;const t=setTimeout(()=>{Up.delete(e),zo({type:"REMOVE_TOAST",toastId:e})},bV);Up.set(e,t)},wV=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,vV)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?xN(n):e.toasts.forEach(r=>{xN(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},zi=[];let qi={toasts:[]};function zo(e){qi=wV(qi,e),zi.forEach(t=>{t(qi)})}function xV({...e}){const t=yV(),n=o=>zo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>zo({type:"DISMISS_TOAST",toastId:t});return zo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function SV(){const[e,t]=d.useState(qi);return d.useEffect(()=>(zi.push(t),()=>{const n=zi.indexOf(t);n>-1&&zi.splice(n,1)}),[e]),{...e,toast:xV,dismiss:n=>zo({type:"DISMISS_TOAST",toastId:n})}}function CV(){const{toasts:e}=SV();return f.jsxs(yN,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return f.jsxs(zp,{...a,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(Hp,{children:n}),r&&f.jsx(Vp,{children:r})]}),o,f.jsx(qp,{})]},t)}),f.jsx(Bp,{})]})}var _V="Toggle",Wp=d.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=$e({prop:n,onChange:o,defaultProp:r});return f.jsx(Z.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||s(!i)})})});Wp.displayName=_V;var SN=Wp,Ir="ToggleGroup",[CN,b3]=De(Ir,[Jt]),_N=Jt(),Kp=E.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return f.jsx(EV,{...o,ref:t})}if(n==="multiple"){const o=r;return f.jsx(PV,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Ir}\``)});Kp.displayName=Ir;var[EN,PN]=CN(Ir),EV=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=$e({prop:n,defaultProp:r,onChange:o});return f.jsx(EN,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:E.useCallback(()=>s(""),[s]),children:f.jsx(TN,{...a,ref:t})})}),PV=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:n,defaultProp:r,onChange:o}),l=E.useCallback(p=>s((u=[])=>[...u,p]),[s]),c=E.useCallback(p=>s((u=[])=>u.filter(m=>m!==p)),[s]);return f.jsx(EN,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c,children:f.jsx(TN,{...a,ref:t})})});Kp.displayName=Ir;var[TV,RV]=CN(Ir),TN=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=_N(n),p=Mt(i),u={role:"group",dir:p,...l};return f.jsx(TV,{scope:n,rovingFocus:o,disabled:r,children:o?f.jsx(po,{asChild:!0,...c,orientation:a,dir:p,loop:s,children:f.jsx(Z.div,{...u,ref:t})}):f.jsx(Z.div,{...u,ref:t})})}),Hi="ToggleGroupItem",RN=E.forwardRef((e,t)=>{const n=PN(Hi,e.__scopeToggleGroup),r=RV(Hi,e.__scopeToggleGroup),o=_N(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=E.useRef(null);return r.rovingFocus?f.jsx(mo,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:f.jsx(NN,{...s,ref:t})}):f.jsx(NN,{...s,ref:t})});RN.displayName=Hi;var NN=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=PN(Hi,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return f.jsx(Wp,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}})}),AN=Kp,MN=RN;const Yp=ln("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ON=d.forwardRef(({className:e,variant:t,size:n,...r},o)=>f.jsx(SN,{ref:o,className:O(Yp({variant:t,size:n,className:e})),...r}));ON.displayName=SN.displayName;const IN=d.createContext({size:"default",variant:"default"}),jN=d.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>f.jsx(AN,{ref:a,className:O("flex items-center justify-center gap-1",e),...o,children:f.jsx(IN.Provider,{value:{variant:t,size:n},children:r})}));jN.displayName=AN.displayName;const DN=d.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const i=d.useContext(IN);return f.jsx(MN,{ref:a,className:O(Yp({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});DN.displayName=MN.displayName;function NV({title:e,description:t,chart:n,value:r,previousValue:o,change:a,changeType:i,changeLabel:s,className:l,footerContent:c,menuItems:p,chartConfig:u,isLoading:m=!1}){const b=()=>i==="increase"?f.jsx(S1,{className:"h-4 w-4 text-emerald-500"}):i==="decrease"?f.jsx(y1,{className:"h-4 w-4 text-red-500"}):null,g=()=>i==="increase"?"text-emerald-500":i==="decrease"?"text-red-500":"text-muted-foreground";return f.jsxs(ma,{className:O("overflow-hidden",l),children:[f.jsxs(ha,{className:"flex flex-row items-center justify-between pb-2",children:[f.jsxs("div",{children:[f.jsx(ga,{className:"text-base font-medium",children:e}),t&&f.jsx(va,{children:t})]}),p&&p.length>0&&f.jsxs($S,{children:[f.jsx(LS,{asChild:!0,children:f.jsxs(cn,{variant:"ghost",className:"h-8 w-8 p-0",children:[f.jsx("span",{className:"sr-only",children:"Open menu"}),f.jsx(rs,{className:"h-4 w-4"})]})}),f.jsx(vf,{align:"end",children:p.map((h,v)=>f.jsx(bf,{onClick:h.onClick,children:h.label},v))})]})]}),f.jsxs(ba,{className:"pb-2",children:[r&&f.jsx("div",{className:"flex items-center justify-between",children:f.jsxs("div",{className:"space-y-1",children:[f.jsx("p",{className:"text-2xl font-bold",children:r}),(a!==void 0||o)&&f.jsxs("div",{className:"flex items-center text-xs",children:[b(),f.jsxs("span",{className:O("ml-1",g()),children:[a!==void 0&&`${Math.abs(a)}%`,o&&!a&&`from ${o}`]}),s&&f.jsx("span",{className:"ml-1 text-muted-foreground",children:s})]})]})}),f.jsx("div",{className:O("mt-4",r?"h-[180px]":"h-[240px]"),children:m?f.jsx("div",{className:"flex h-full items-center justify-center",children:f.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}):u&&n?f.jsx(hd,{config:u,children:n}):n})]}),c&&f.jsx(Ns,{children:c})]})}function AV({title:e,breadcrumbItems:t=[],showHomeLink:n=!0,className:r="",children:o}){return f.jsx("header",{className:`border-b pb-4 ${r}`,children:f.jsxs("div",{className:"container mx-auto p-4",children:[(t.length>0||n)&&f.jsx(Ps,{className:"mb-2",children:f.jsxs(Ts,{children:[n&&f.jsxs(f.Fragment,{children:[f.jsx(da,{children:f.jsxs(fa,{href:"/",className:"flex items-center",children:[f.jsx(P1,{className:"h-3.5 w-3.5 mr-1"}),"Home"]})}),t.length>0&&f.jsx(pa,{children:f.jsx(Rn,{className:"h-3.5 w-3.5"})})]}),t.map((a,i)=>f.jsxs(E.Fragment,{children:[f.jsx(da,{children:a.isCurrentPage?f.jsx(Rs,{children:a.label}):f.jsx(fa,{href:a.href||"#",children:a.label})}),i<t.length-1&&f.jsx(pa,{children:f.jsx(Rn,{className:"h-3.5 w-3.5"})})]},i))]})}),e&&f.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:e}),o]})})}function MV({className:e,...t}){return f.jsxs("div",{className:O("flex flex-col gap-6",e),...t,children:[f.jsxs(ma,{children:[f.jsxs(ha,{className:"text-center",children:[f.jsx(ga,{className:"text-xl",children:"Welcome back"}),f.jsx(va,{children:"Login with your Apple or Google account"})]}),f.jsx(ba,{children:f.jsx("form",{children:f.jsxs("div",{className:"grid gap-6",children:[f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs(cn,{variant:"outline",className:"w-full",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),"Login with Apple"]}),f.jsxs(cn,{variant:"outline",className:"w-full",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",fill:"currentColor"})}),"Login with Google"]})]}),f.jsx("div",{className:"relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border",children:f.jsx("span",{className:"relative z-10 bg-background px-2 text-muted-foreground",children:"Or continue with"})}),f.jsxs("div",{className:"grid gap-6",children:[f.jsxs("div",{className:"grid gap-2",children:[f.jsx(Eo,{htmlFor:"email",children:"Email"}),f.jsx(Ro,{id:"email",type:"email",placeholder:"m@example.com",required:!0})]}),f.jsxs("div",{className:"grid gap-2",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(Eo,{htmlFor:"password",children:"Password"}),f.jsx("a",{href:"#",className:"ml-auto text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),f.jsx(Ro,{id:"password",type:"password",required:!0})]}),f.jsx(cn,{type:"submit",className:"w-full",children:"Login"})]}),f.jsxs("div",{className:"text-center text-sm",children:["Don't have an account?"," ",f.jsx("a",{href:"#",className:"underline underline-offset-4",children:"Sign up"})]})]})})})]}),f.jsxs("div",{className:"text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-primary ",children:["By clicking continue, you agree to our ",f.jsx("a",{href:"#",children:"Terms of Service"})," ","and ",f.jsx("a",{href:"#",children:"Privacy Policy"}),"."]})]})}T.Accordion=hA,T.AccordionContent=jm,T.AccordionItem=Om,T.AccordionTrigger=Im,T.Alert=Zh,T.AlertDescription=Qh,T.AlertDialog=LM,T.AlertDialogAction=Yh,T.AlertDialogCancel=Xh,T.AlertDialogContent=Vh,T.AlertDialogDescription=Kh,T.AlertDialogFooter=Uh,T.AlertDialogHeader=Gh,T.AlertDialogOverlay=_s,T.AlertDialogPortal=Hh,T.AlertDialogTitle=Wh,T.AlertDialogTrigger=FM,T.AlertTitle=Jh,T.AspectRatio=HM,T.Avatar=ug,T.AvatarFallback=fg,T.AvatarImage=dg,T.Badge=WM,T.Breadcrumb=Ps,T.BreadcrumbEllipsis=mg,T.BreadcrumbItem=da,T.BreadcrumbLink=fa,T.BreadcrumbList=Ts,T.BreadcrumbPage=Rs,T.BreadcrumbSeparator=pa,T.Button=cn,T.Card=ma,T.CardContent=ba,T.CardDescription=va,T.CardFooter=Ns,T.CardHeader=ha,T.CardTitle=ga,T.Carousel=Cg,T.CarouselContent=_g,T.CarouselItem=Eg,T.CarouselNext=Tg,T.CarouselPrevious=Pg,T.ChartContainer=hd,T.ChartLegend=Qk,T.ChartLegendContent=qw,T.ChartStyle=Bw,T.ChartTooltip=Jk,T.ChartTooltipContent=zw,T.Checkbox=Kw,T.Collapsible=a$,T.CollapsibleContent=s$,T.CollapsibleTrigger=i$,T.ContextMenu=g2,T.ContextMenuCheckboxItem=M0,T.ContextMenuContent=N0,T.ContextMenuGroup=b2,T.ContextMenuItem=A0,T.ContextMenuLabel=I0,T.ContextMenuPortal=y2,T.ContextMenuRadioGroup=x2,T.ContextMenuRadioItem=O0,T.ContextMenuSeparator=j0,T.ContextMenuShortcut=D0,T.ContextMenuSub=w2,T.ContextMenuSubContent=R0,T.ContextMenuSubTrigger=T0,T.ContextMenuTrigger=v2,T.Dialog=S2,T.DialogClose=_2,T.DialogContent=$0,T.DialogDescription=z0,T.DialogFooter=F0,T.DialogHeader=L0,T.DialogOverlay=sf,T.DialogPortal=k0,T.DialogTitle=B0,T.DialogTrigger=C2,T.Drawer=rS,T.DrawerClose=eF,T.DrawerContent=aS,T.DrawerDescription=cS,T.DrawerFooter=sS,T.DrawerHeader=iS,T.DrawerOverlay=hf,T.DrawerPortal=oS,T.DrawerTitle=lS,T.DrawerTrigger=Q2,T.DropdownMenu=$S,T.DropdownMenuCheckboxItem=zS,T.DropdownMenuContent=vf,T.DropdownMenuGroup=SF,T.DropdownMenuItem=bf,T.DropdownMenuLabel=HS,T.DropdownMenuPortal=CF,T.DropdownMenuRadioGroup=EF,T.DropdownMenuRadioItem=qS,T.DropdownMenuSeparator=VS,T.DropdownMenuShortcut=GS,T.DropdownMenuSub=_F,T.DropdownMenuSubContent=BS,T.DropdownMenuSubTrigger=FS,T.DropdownMenuTrigger=LS,T.Form=YF,T.FormControl=sC,T.FormDescription=lC,T.FormField=XF,T.FormItem=aC,T.FormLabel=iC,T.FormMessage=cC,T.GraphCard=NV,T.Header=AV,T.HoverCard=iB,T.HoverCardContent=gC,T.HoverCardTrigger=sB,T.Input=Ro,T.InputOTP=CC,T.InputOTPGroup=_C,T.InputOTPSeparator=PC,T.InputOTPSlot=EC,T.Label=Eo,T.LoginForm=MV,T.Menubar=o_,T.MenubarCheckboxItem=u_,T.MenubarContent=l_,T.MenubarGroup=GB,T.MenubarItem=c_,T.MenubarLabel=f_,T.MenubarMenu=VB,T.MenubarPortal=UB,T.MenubarRadioGroup=WB,T.MenubarRadioItem=d_,T.MenubarSeparator=p_,T.MenubarShortcut=m_,T.MenubarSub=KB,T.MenubarSubContent=s_,T.MenubarSubTrigger=i_,T.MenubarTrigger=a_,T.NavigationMenu=H_,T.NavigationMenuContent=W_,T.NavigationMenuIndicator=K_,T.NavigationMenuItem=pz,T.NavigationMenuLink=mz,T.NavigationMenuList=V_,T.NavigationMenuTrigger=U_,T.NavigationMenuViewport=Ff,T.Pagination=Y_,T.PaginationContent=X_,T.PaginationEllipsis=eE,T.PaginationItem=Z_,T.PaginationLink=gi,T.PaginationNext=Q_,T.PaginationPrevious=J_,T.Popover=Tz,T.PopoverAnchor=Nz,T.PopoverContent=pE,T.PopoverTrigger=Rz,T.Progress=xE,T.RadioGroup=DE,T.RadioGroupItem=kE,T.ResizableHandle=E5,T.ResizablePanel=_5,T.ResizablePanelGroup=C5,T.ScrollArea=NP,T.ScrollBar=rp,T.Select=dq,T.SelectContent=pT,T.SelectGroup=fq,T.SelectItem=hT,T.SelectLabel=mT,T.SelectScrollDownButton=dp,T.SelectScrollUpButton=up,T.SelectSeparator=gT,T.SelectTrigger=fT,T.SelectValue=pq,T.Separator=fp,T.Sheet=wT,T.SheetClose=bq,T.SheetContent=mp,T.SheetDescription=vp,T.SheetFooter=ST,T.SheetHeader=hp,T.SheetOverlay=pp,T.SheetPortal=xT,T.SheetTitle=gp,T.SheetTrigger=vq,T.Sidebar=$T,T.SidebarContent=GT,T.SidebarFooter=HT,T.SidebarGroup=UT,T.SidebarGroupAction=KT,T.SidebarGroupContent=YT,T.SidebarGroupLabel=WT,T.SidebarHeader=qT,T.SidebarInput=zT,T.SidebarInset=BT,T.SidebarMenu=XT,T.SidebarMenuAction=QT,T.SidebarMenuBadge=eR,T.SidebarMenuButton=JT,T.SidebarMenuItem=ZT,T.SidebarMenuSkeleton=tR,T.SidebarMenuSub=nR,T.SidebarMenuSubButton=oR,T.SidebarMenuSubItem=rR,T.SidebarProvider=kT,T.SidebarRail=FT,T.SidebarSeparator=VT,T.SidebarTrigger=LT,T.Skeleton=yp,T.Slider=yR,T.SonnerToaster=qH,T.Switch=TR,T.Table=RR,T.TableBody=AR,T.TableCaption=DR,T.TableCell=jR,T.TableFooter=MR,T.TableHead=IR,T.TableHeader=NR,T.TableRow=OR,T.Tabs=ZH,T.TabsContent=ZR,T.TabsList=YR,T.TabsTrigger=XR,T.Textarea=JR,T.Toast=zp,T.ToastAction=wN,T.ToastClose=qp,T.ToastDescription=Vp,T.ToastProvider=yN,T.ToastTitle=Hp,T.ToastViewport=Bp,T.Toaster=CV,T.Toggle=ON,T.ToggleGroup=jN,T.ToggleGroupItem=DN,T.Tooltip=IT,T.TooltipContent=_p,T.TooltipProvider=OT,T.TooltipTrigger=jT,T.badgeVariants=pg,T.buttonVariants=Hr,T.navigationMenuTriggerStyle=G_,T.toggleVariants=Yp,T.useFormField=Po,T.useSidebar=Bo,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});