ui-arreya-components 0.0.6 → 0.0.8
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/styles.css +1 -1
- package/dist/ui.cjs.js +29 -24
- package/dist/ui.es.js +1361 -1324
- package/dist/ui.umd.js +31 -26
- package/package.json +1 -1
- package/src/components/feature/header.stories.tsx +129 -0
- package/src/components/feature/header.tsx +77 -0
- package/src/index.css +59 -0
- package/src/index.ts +6 -0
package/dist/ui.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("react"),Wn=require("react-dom");function Vn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Vn(se),Hn=Vn(Wn);var yt={exports:{}},st={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var dn;function Si(){if(dn)return st;dn=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=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,c,d){var f,p={},v=null,h=null;d!==void 0&&(v=""+d),c.key!==void 0&&(v=""+c.key),c.ref!==void 0&&(h=c.ref);for(f in c)n.call(c,f)&&!a.hasOwnProperty(f)&&(p[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:s,key:v,ref:h,props:p,_owner:o.current}}return st.Fragment=r,st.jsx=i,st.jsxs=i,st}var lt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),ee=
|
|
17
|
+
*/var fn;function Ci(){return fn||(fn=1,process.env.NODE_ENV!=="production"&&function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=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"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,g="@@iterator";function y(u){if(u===null||typeof u!="object")return null;var E=b&&u[b]||u[g];return typeof E=="function"?E:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(u){{for(var E=arguments.length,A=new Array(E>1?E-1:0),j=1;j<E;j++)A[j-1]=arguments[j];C("error",u,A)}}function C(u,E,A){{var j=x.ReactDebugCurrentFrame,W=j.getStackAddendum();W!==""&&(E+="%s",A=A.concat([W]));var H=A.map(function($){return String($)});H.unshift("Warning: "+E),Function.prototype.apply.call(console[u],console,H)}}var R=!1,P=!1,S=!1,N=!1,B=!1,G;G=Symbol.for("react.module.reference");function V(u){return!!(typeof u=="string"||typeof u=="function"||u===n||u===a||B||u===o||u===d||u===f||N||u===h||R||P||S||typeof u=="object"&&u!==null&&(u.$$typeof===v||u.$$typeof===p||u.$$typeof===i||u.$$typeof===s||u.$$typeof===c||u.$$typeof===G||u.getModuleId!==void 0))}function q(u,E,A){var j=u.displayName;if(j)return j;var W=E.displayName||E.name||"";return W!==""?A+"("+W+")":A}function K(u){return u.displayName||"Context"}function F(u){if(u==null)return null;if(typeof u.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var E=u;return K(E)+".Consumer";case i:var A=u;return K(A._context)+".Provider";case c:return q(u,u.render,"ForwardRef");case p:var j=u.displayName||null;return j!==null?j:F(u.type)||"Memo";case v:{var W=u,H=W._payload,$=W._init;try{return F($(H))}catch{return null}}}return null}var D=Object.assign,U=0,k,Y,_,z,Z,pe,_e;function ke(){}ke.__reactDisabledLog=!0;function Se(){{if(U===0){k=console.log,Y=console.info,_=console.warn,z=console.error,Z=console.group,pe=console.groupCollapsed,_e=console.groupEnd;var u={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}U++}}function Ce(){{if(U--,U===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},u,{value:k}),info:D({},u,{value:Y}),warn:D({},u,{value:_}),error:D({},u,{value:z}),group:D({},u,{value:Z}),groupCollapsed:D({},u,{value:pe}),groupEnd:D({},u,{value:_e})})}U<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=x.ReactCurrentDispatcher,le;function je(u,E,A){{if(le===void 0)try{throw Error()}catch(W){var j=W.stack.trim().match(/\n( *(at )?)/);le=j&&j[1]||""}return`
|
|
18
|
+
`+le+u}}var Ve=!1,Me;{var gt=typeof WeakMap=="function"?WeakMap:Map;Me=new gt}function it(u,E){if(!u||Ve)return"";{var A=Me.get(u);if(A!==void 0)return A}var j;Ve=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var H;H=ye.current,ye.current=null,Se();try{if(E){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(re){j=re}Reflect.construct(u,[],$)}else{try{$.call()}catch(re){j=re}u.call($.prototype)}}else{try{throw Error()}catch(re){j=re}u()}}catch(re){if(re&&j&&typeof re.stack=="string"){for(var I=re.stack.split(`
|
|
19
|
+
`),ee=j.stack.split(`
|
|
20
20
|
`),X=I.length-1,J=ee.length-1;X>=1&&J>=0&&I[X]!==ee[J];)J--;for(;X>=1&&J>=0;X--,J--)if(I[X]!==ee[J]){if(X!==1||J!==1)do if(X--,J--,J<0||I[X]!==ee[J]){var ie=`
|
|
21
|
-
`+I[X].replace(" at new "," at ");return u.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",u.displayName)),typeof u=="function"&&Me.set(u,ie),ie}while(X>=1&&J>=0);break}}}finally{Ve=!1,ye.current=H,Ce(),Error.prepareStackTrace=W}var Ue=u?u.displayName||u.name:"",Le=Ue?
|
|
21
|
+
`+I[X].replace(" at new "," at ");return u.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",u.displayName)),typeof u=="function"&&Me.set(u,ie),ie}while(X>=1&&J>=0);break}}}finally{Ve=!1,ye.current=H,Ce(),Error.prepareStackTrace=W}var Ue=u?u.displayName||u.name:"",Le=Ue?je(Ue):"";return typeof u=="function"&&Me.set(u,Le),Le}function De(u,E,A){return it(u,!1)}function ht(u){var E=u.prototype;return!!(E&&E.isReactComponent)}function He(u,E,A){if(u==null)return"";if(typeof u=="function")return it(u,ht(u));if(typeof u=="string")return je(u);switch(u){case d:return je("Suspense");case f:return je("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return De(u.render);case p:return He(u.type,E,A);case v:{var j=u,W=j._payload,H=j._init;try{return He(H(W),E,A)}catch{}}}return""}var Ie=Object.prototype.hasOwnProperty,vt={},bt=x.ReactDebugCurrentFrame;function xe(u){if(u){var E=u._owner,A=He(u.type,u._source,E?E.type:null);bt.setExtraStackFrame(A)}else bt.setExtraStackFrame(null)}function ti(u,E,A,j,W){{var H=Function.call.bind(Ie);for(var $ in u)if(H(u,$)){var I=void 0;try{if(typeof u[$]!="function"){var ee=Error((j||"React class")+": "+A+" type `"+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[$]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}I=u[$](E,$,j,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){I=X}I&&!(I instanceof Error)&&(xe(W),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).",j||"React class",A,$,typeof I),xe(null)),I instanceof Error&&!(I.message in vt)&&(vt[I.message]=!0,xe(W),w("Failed %s type: %s",A,I.message),xe(null))}}}var ri=Array.isArray;function qt(u){return ri(u)}function ni(u){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&u[Symbol.toStringTag]||u.constructor.name||"Object";return A}}function oi(u){try{return Zr(u),!1}catch{return!0}}function Zr(u){return""+u}function Qr(u){if(oi(u))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ni(u)),Zr(u)}var en=x.ReactCurrentOwner,ai={key:!0,ref:!0,__self:!0,__source:!0},tn,rn;function ii(u){if(Ie.call(u,"ref")){var E=Object.getOwnPropertyDescriptor(u,"ref").get;if(E&&E.isReactWarning)return!1}return u.ref!==void 0}function si(u){if(Ie.call(u,"key")){var E=Object.getOwnPropertyDescriptor(u,"key").get;if(E&&E.isReactWarning)return!1}return u.key!==void 0}function li(u,E){typeof u.ref=="string"&&en.current}function ci(u,E){{var A=function(){tn||(tn=!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)",E))};A.isReactWarning=!0,Object.defineProperty(u,"key",{get:A,configurable:!0})}}function ui(u,E){{var A=function(){rn||(rn=!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)",E))};A.isReactWarning=!0,Object.defineProperty(u,"ref",{get:A,configurable:!0})}}var di=function(u,E,A,j,W,H,$){var I={$$typeof:t,type:u,key:E,ref:A,props:$,_owner:H};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function fi(u,E,A,j,W){{var H,$={},I=null,ee=null;A!==void 0&&(Qr(A),I=""+A),si(E)&&(Qr(E.key),I=""+E.key),ii(E)&&(ee=E.ref,li(E,W));for(H in E)Ie.call(E,H)&&!ai.hasOwnProperty(H)&&($[H]=E[H]);if(u&&u.defaultProps){var X=u.defaultProps;for(H in X)$[H]===void 0&&($[H]=X[H])}if(I||ee){var J=typeof u=="function"?u.displayName||u.name||"Unknown":u;I&&ci($,J),ee&&ui($,J)}return di(u,I,ee,W,j,en.current,$)}}var Jt=x.ReactCurrentOwner,nn=x.ReactDebugCurrentFrame;function Ge(u){if(u){var E=u._owner,A=He(u.type,u._source,E?E.type:null);nn.setExtraStackFrame(A)}else nn.setExtraStackFrame(null)}var Zt;Zt=!1;function Qt(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function on(){{if(Jt.current){var u=F(Jt.current.type);if(u)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+u+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+u+"`."}return""}}function pi(u){return""}var an={};function mi(u){{var E=on();if(!E){var A=typeof u=="string"?u:u.displayName||u.name;A&&(E=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+A+">.")}return E}}function
|
|
25
|
+
Check the top-level render call using <`+A+">.")}return E}}function sn(u,E){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var A=mi(E);if(an[A])return;an[A]=!0;var j="";u&&u._owner&&u._owner!==Jt.current&&(j=" It was passed a child from "+F(u._owner.type)+"."),Ge(u),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,j),Ge(null)}}function ln(u,E){{if(typeof u!="object")return;if(qt(u))for(var A=0;A<u.length;A++){var j=u[A];Qt(j)&&sn(j,E)}else if(Qt(u))u._store&&(u._store.validated=!0);else if(u){var W=y(u);if(typeof W=="function"&&W!==u.entries)for(var H=W.call(u),$;!($=H.next()).done;)Qt($.value)&&sn($.value,E)}}}function gi(u){{var E=u.type;if(E==null||typeof E=="string")return;var A;if(typeof E=="function")A=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===p))A=E.propTypes;else return;if(A){var j=F(E);ti(A,u.props,"prop",j,u)}else if(E.PropTypes!==void 0&&!Zt){Zt=!0;var W=F(E);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function hi(u){{for(var E=Object.keys(u.props),A=0;A<E.length;A++){var j=E[A];if(j!=="children"&&j!=="key"){Ge(u),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),Ge(null);break}}u.ref!==null&&(Ge(u),w("Invalid attribute `ref` supplied to `React.Fragment`."),Ge(null))}}var cn={};function un(u,E,A,j,W,H){{var $=V(u);if(!$){var I="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(I+=" 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 ee=pi();ee?I+=ee:I+=on();var X;u===null?X="null":qt(u)?X="array":u!==void 0&&u.$$typeof===t?(X="<"+(F(u.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):X=typeof u,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",X,I)}var J=fi(u,E,A,W,H);if(J==null)return J;if($){var ie=E.children;if(ie!==void 0)if(j)if(qt(ie)){for(var Ue=0;Ue<ie.length;Ue++)ln(ie[Ue],u);Object.freeze&&Object.freeze(ie)}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 ln(ie,u)}if(Ie.call(E,"key")){var Le=F(u),re=Object.keys(E).filter(function(Ei){return Ei!=="key"}),er=re.length>0?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}";if(!cn[Le+er]){var wi=re.length>0?"{"+re.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Jt,Le,xi,Le),en[Le+Jt]=!0}}return u===n?gi(J):mi(J),J}}function hi(u,E,A){return tn(u,E,A,!0)}function vi(u,E,A){return tn(u,E,A,!1)}var bi=vi,yi=hi;lt.Fragment=n,lt.jsx=bi,lt.jsxs=yi}()),lt}var on;function Ci(){return on||(on=1,process.env.NODE_ENV==="production"?bt.exports=Ei():bt.exports=Si()),bt.exports}var h=Ci();function an(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ln(...e){return t=>{let r=!1;const n=e.map(o=>{const a=an(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():an(e[o],null)}}}}function de(...e){return l.useCallback(Ln(...e),e)}var ve=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),a=o.find(Ri);if(a){const i=a.props.children,s=o.map(c=>c===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return h.jsx(cr,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return h.jsx(cr,{...n,ref:t,children:r})});ve.displayName="Slot";var cr=l.forwardRef((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const o=Ai(r),a=Pi(n,r.props);return r.type!==l.Fragment&&(a.ref=t?Ln(t,o):o),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});cr.displayName="SlotClone";var Fn=({children:e})=>h.jsx(h.Fragment,{children:e});function Ri(e){return l.isValidElement(e)&&e.type===Fn}function Pi(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{a(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ai(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Bn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bn(e))&&(n&&(n+=" "),n+=t);return n}const sn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ln=$n,xr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ln(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const v=sn(f)||sn(p);return o[d][v]}),s=r&&Object.entries(r).reduce((d,f)=>{let[p,v]=f;return v===void 0||(d[p]=v),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:v,...g}=f;return Object.entries(g).every(b=>{let[m,y]=b;return Array.isArray(y)?y.includes({...a,...s}[m]):{...a,...s}[m]===y})?[...d,p,v]:d},[]);return ln(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},wr="-",Ti=e=>{const t=Ni(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(wr);return s[0]===""&&s.length!==1&&s.shift(),zn(s,t)||Oi(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},zn=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?zn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(wr);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},cn=/^\[(.+)\]$/,Oi=e=>{if(cn.test(e)){const t=cn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ni=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)ur(r[o],n,o,t);return n},ur=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:un(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(_i(o)){ur(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{ur(i,un(t,a),r,n)})})},un=(e,t)=>{let r=e;return t.split(wr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},_i=e=>e.isThemeGetter,ki=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},dr="!",fr=":",Di=fr.length,Mi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,d;for(let b=0;b<o.length;b++){let m=o[b];if(i===0&&s===0){if(m===fr){a.push(o.slice(c,b)),c=b+Di;continue}if(m==="/"){d=b;continue}}m==="["?i++:m==="]"?i--:m==="("?s++:m===")"&&s--}const f=a.length===0?o:o.substring(c),p=ji(f),v=p!==f,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+fr,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ji=e=>e.endsWith(dr)?e.substring(0,e.length-1):e.startsWith(dr)?e.substring(1):e,Ii=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Li=e=>({cache:ki(e.cacheSize),parseClassName:Mi(e),sortModifiers:Ii(e),...Ti(e)}),Fi=/\s+/,Bi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Fi);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:p,modifiers:v,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!m,x=n(y?b.substring(0,m):b);if(!x){if(!y){c=f+(c.length>0?" "+c:c);continue}if(x=n(b),!x){c=f+(c.length>0?" "+c:c);continue}y=!1}const w=a(v).join(":"),C=g?w+dr:w,R=C+x;if(i.includes(R))continue;i.push(R);const P=o(x,y);for(let S=0;S<P.length;++S){const T=P[S];i.push(C+T)}c=f+(c.length>0?" "+c:c)}return c};function $i(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Wn(t))&&(n&&(n+=" "),n+=r);return n}const Wn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Wn(e[n]))&&(r&&(r+=" "),r+=t);return r};function zi(e,...t){let r,n,o,a=i;function i(c){const d=t.reduce((f,p)=>p(f),e());return r=Li(d),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const d=n(c);if(d)return d;const f=Bi(c,r);return o(c,f),f}return function(){return a($i.apply(null,arguments))}}const Q=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Vn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wi=/^\d+\/\d+$/,Vi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hi=/\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$/,Gi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>Wi.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),dn=e=>e.endsWith("%")&&L(e.slice(0,-1)),Re=e=>Vi.test(e),Ki=()=>!0,Xi=e=>Hi.test(e)&&!Gi.test(e),Er=()=>!1,qi=e=>Ui.test(e),Ji=e=>Yi.test(e),Zi=e=>!O(e)&&!N(e),Qi=e=>tt(e,Yn,Er),O=e=>Vn.test(e),Be=e=>tt(e,Kn,Xi),Zt=e=>tt(e,us,L),es=e=>tt(e,Gn,Er),ts=e=>tt(e,Un,Ji),rs=e=>tt(e,Er,qi),N=e=>Hn.test(e),yt=e=>rt(e,Kn),ns=e=>rt(e,ds),os=e=>rt(e,Gn),as=e=>rt(e,Yn),is=e=>rt(e,Un),ss=e=>rt(e,fs,!0),tt=(e,t,r)=>{const n=Vn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},rt=(e,t,r=!1)=>{const n=Hn.exec(e);return n?n[1]?t(n[1]):r:!1},Gn=e=>e==="position",ls=new Set(["image","url"]),Un=e=>ls.has(e),cs=new Set(["length","size","percentage"]),Yn=e=>cs.has(e),Kn=e=>e==="length",us=e=>e==="number",ds=e=>e==="family-name",fs=e=>e==="shadow",ps=()=>{const e=Q("color"),t=Q("font"),r=Q("text"),n=Q("font-weight"),o=Q("tracking"),a=Q("leading"),i=Q("breakpoint"),s=Q("container"),c=Q("spacing"),d=Q("radius"),f=Q("shadow"),p=Q("inset-shadow"),v=Q("drop-shadow"),g=Q("blur"),b=Q("perspective"),m=Q("aspect"),y=Q("ease"),x=Q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[N,O,c],T=()=>[Ye,"full","auto",...S()],z=()=>[Fe,"none","subgrid",N,O],G=()=>["auto",{span:["full",Fe,N,O]},N,O],V=()=>[Fe,"auto",N,O],q=()=>["auto","min","max","fr",N,O],K=()=>["start","end","center","between","around","evenly","stretch","baseline"],F=()=>["start","end","center","stretch"],j=()=>["auto",...S()],U=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],k=()=>[e,N,O],Y=()=>[dn,Be],_=()=>["","none","full",d,N,O],$=()=>["",L,yt,Be],Z=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>["","none",g,N,O],ke=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N,O],Se=()=>["none",L,N,O],Ce=()=>["none",L,N,O],ye=()=>[L,N,O],se=()=>[Ye,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[Ki],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[Zi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",L],text:[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,O,N,m]}],container:["container"],columns:[{columns:[L,O,N,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...C(),O,N]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",N,O]}],basis:[{basis:[Ye,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,Ye,"auto","initial","none",O]}],grow:[{grow:["",L,N,O]}],shrink:[{shrink:["",L,N,O]}],order:[{order:[Fe,"first","last","none",N,O]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...F(),"baseline"]}],"align-self":[{self:["auto",...F(),"baseline"]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[s,"screen",...U()]}],"min-w":[{"min-w":[s,"screen","none",...U()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",r,yt,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,N,Zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dn,O]}],"font-family":[{font:[ns,O,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,N,O]}],"line-clamp":[{"line-clamp":[L,"none",N,Zt]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",N,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",N,Be]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[L,"auto",N,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,O]}],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",N,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...C(),os,es]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",as,Qi]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,N,O],radial:["",N,O],conic:[Fe,N,O]},is,ts]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,N,O]}],"outline-w":[{outline:["",L,yt,Be]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,ss,rs]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",N,O,p]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[L,Be]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":k()}],opacity:[{opacity:[L,N,O]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none",N,O]}],blur:[{blur:_e()}],brightness:[{brightness:[L,N,O]}],contrast:[{contrast:[L,N,O]}],"drop-shadow":[{"drop-shadow":["","none",v,N,O]}],grayscale:[{grayscale:["",L,N,O]}],"hue-rotate":[{"hue-rotate":[L,N,O]}],invert:[{invert:["",L,N,O]}],saturate:[{saturate:[L,N,O]}],sepia:[{sepia:["",L,N,O]}],"backdrop-filter":[{"backdrop-filter":["","none",N,O]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[L,N,O]}],"backdrop-contrast":[{"backdrop-contrast":[L,N,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,N,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,N,O]}],"backdrop-invert":[{"backdrop-invert":["",L,N,O]}],"backdrop-opacity":[{"backdrop-opacity":[L,N,O]}],"backdrop-saturate":[{"backdrop-saturate":[L,N,O]}],"backdrop-sepia":[{"backdrop-sepia":["",L,N,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",N,O]}],ease:[{ease:["linear","initial",y,N,O]}],delay:[{delay:[L,N,O]}],animate:[{animate:["none",x,N,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,N,O]}],"perspective-origin":[{"perspective-origin":ke()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[N,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:ke()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",N,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",N,O]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[L,yt,Be,Zt]}],stroke:[{stroke:["none",...k()]}],"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","*","**"]}},ms=zi(ps);function M(...e){return ms($n(e))}const gs=xr("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"}}),Sr=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?ve:"button";return h.jsx(i,{className:M(gs({variant:t,size:r,className:e})),ref:a,...o})});Sr.displayName="Button";function ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function hs(e,t){const r=l.createContext(t),n=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return h.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=l.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Cr(e,t=[]){let r=[];function n(a,i){const s=l.createContext(i),c=r.length;r=[...r,i];const d=p=>{var x;const{scope:v,children:g,...b}=p,m=((x=v==null?void 0:v[e])==null?void 0:x[c])||s,y=l.useMemo(()=>b,Object.values(b));return h.jsx(m.Provider,{value:y,children:g})};d.displayName=a+"Provider";function f(p,v){var m;const g=((m=v==null?void 0:v[e])==null?void 0:m[c])||s,b=l.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,vs(o,...t)]}function vs(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var $e=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},bs=l.useId||(()=>{}),ys=0;function Pt(e){const[t,r]=l.useState(bs());return $e(()=>{r(n=>n??String(ys++))},[e]),e||(t?`radix-${t}`:"")}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Xn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=xs({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=Ae(r),c=l.useCallback(d=>{if(a){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[a,e,o,s]);return[i,c]}function xs({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),a=Ae(t);return l.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}var ws=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],te=ws.reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:a,...i}=n,s=a?ve:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Es(e,t){e&&In.flushSync(()=>e.dispatchEvent(t))}function Ss(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Cs="DismissableLayer",pr="dismissableLayer.update",Rs="dismissableLayer.pointerDownOutside",Ps="dismissableLayer.focusOutside",fn,qn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,d=l.useContext(qn),[f,p]=l.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=de(t,T=>p(T)),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(y),w=f?m.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=x,P=Os(T=>{const z=T.target,G=[...d.branches].some(V=>V.contains(z));!R||G||(o==null||o(T),i==null||i(T),T.defaultPrevented||s==null||s())},v),S=Ns(T=>{const z=T.target;[...d.branches].some(V=>V.contains(z))||(a==null||a(T),i==null||i(T),T.defaultPrevented||s==null||s())},v);return Ss(T=>{w===d.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},v),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(fn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=fn)}},[f,v,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pn())},[f,d]),l.useEffect(()=>{const T=()=>g({});return document.addEventListener(pr,T),()=>document.removeEventListener(pr,T)},[]),h.jsx(te.div,{...c,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,P.onPointerDownCapture)})});Rr.displayName=Cs;var As="DismissableLayerBranch",Ts=l.forwardRef((e,t)=>{const r=l.useContext(qn),n=l.useRef(null),o=de(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),h.jsx(te.div,{...e,ref:o})});Ts.displayName=As;function Os(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){Jn(Rs,r,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Ns(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Jn(Ps,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pn(){const e=new CustomEvent(pr);document.dispatchEvent(e)}function Jn(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Es(o,a):o.dispatchEvent(a)}var Qt="focusScope.autoFocusOnMount",er="focusScope.autoFocusOnUnmount",mn={bubbles:!1,cancelable:!0},_s="FocusScope",Zn=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),d=Ae(o),f=Ae(a),p=l.useRef(null),v=de(t,m=>c(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(C){if(g.paused||!s)return;const R=C.target;s.contains(R)?p.current=R:Pe(p.current,{select:!0})},y=function(C){if(g.paused||!s)return;const R=C.relatedTarget;R!==null&&(s.contains(R)||Pe(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&Pe(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const w=new MutationObserver(x);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),w.disconnect()}}},[n,s,g.paused]),l.useEffect(()=>{if(s){hn.add(g);const m=document.activeElement;if(!s.contains(m)){const x=new CustomEvent(Qt,mn);s.addEventListener(Qt,d),s.dispatchEvent(x),x.defaultPrevented||(ks(Ls(Qn(s)),{select:!0}),document.activeElement===m&&Pe(s))}return()=>{s.removeEventListener(Qt,d),setTimeout(()=>{const x=new CustomEvent(er,mn);s.addEventListener(er,f),s.dispatchEvent(x),x.defaultPrevented||Pe(m??document.body,{select:!0}),s.removeEventListener(er,f),hn.remove(g)},0)}}},[s,d,f,g]);const b=l.useCallback(m=>{if(!r&&!n||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(y&&x){const w=m.currentTarget,[C,R]=Ds(w);C&&R?!m.shiftKey&&x===R?(m.preventDefault(),r&&Pe(C,{select:!0})):m.shiftKey&&x===C&&(m.preventDefault(),r&&Pe(R,{select:!0})):x===w&&m.preventDefault()}},[r,n,g.paused]);return h.jsx(te.div,{tabIndex:-1,...i,ref:v,onKeyDown:b})});Zn.displayName=_s;function ks(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pe(n,{select:t}),document.activeElement!==r)return}function Ds(e){const t=Qn(e),r=gn(t,e),n=gn(t.reverse(),e);return[r,n]}function Qn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function gn(e,t){for(const r of e)if(!Ms(r,{upTo:t}))return r}function Ms(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 js(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&js(e)&&t&&e.select()}}var hn=Is();function Is(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=vn(e,t),e.unshift(t)},remove(t){var r;e=vn(e,t),(r=e[0])==null||r.resume()}}}function vn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Ls(e){return e.filter(t=>t.tagName!=="A")}var Fs="Portal",Pr=l.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=l.useState(!1);$e(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Mn.createPortal(h.jsx(te.div,{...n,ref:t}),i):null});Pr.displayName=Fs;function Bs(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var nt=e=>{const{present:t,children:r}=e,n=$s(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=de(n.ref,zs(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};nt.displayName="Presence";function $s(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Bs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=xt(n.current);a.current=s==="mounted"?d:"none"},[s]),$e(()=>{const d=n.current,f=o.current;if(f!==e){const v=a.current,g=xt(d);e?c("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),$e(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const m=xt(n.current).includes(g.animationName);if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},v=g=>{g.target===t&&(a.current=xt(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function xt(e){return(e==null?void 0:e.animationName)||"none"}function zs(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var tr=0;function Ws(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bn()),document.body.insertAdjacentElement("beforeend",e[1]??bn()),tr++,()=>{tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),tr--}},[])}function bn(){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 me=function(){return me=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},me.apply(this,arguments)};function eo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Vs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var At="right-scroll-bar-position",Tt="width-before-scroll-bar",Hs="with-scroll-bars-hidden",Gs="--removed-body-scroll-bar-size";function rr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Us(e,t){var r=le.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Ys=typeof window<"u"?l.useLayoutEffect:l.useEffect,yn=new WeakMap;function Ks(e,t){var r=Us(null,function(n){return e.forEach(function(o){return rr(o,n)})});return Ys(function(){var n=yn.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||rr(s,null)}),a.forEach(function(s){o.has(s)||rr(s,i)})}yn.set(r,e)},[e]),r}function Xs(e){return e}function qs(e,t){t===void 0&&(t=Xs);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var f=i;i=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),r}}}};return o}function Js(e){e===void 0&&(e={});var t=qs(null);return t.options=me({async:!0,ssr:!1},e),t}var to=function(e){var t=e.sideCar,r=eo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,me({},r))};to.isSideCarExport=!0;function Zs(e,t){return e.useMedium(t),to}var ro=Js(),nr=function(){},jt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:nr,onWheelCapture:nr,onTouchMoveCapture:nr}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,m=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=eo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=Ks([r,t]),S=me(me({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:ro,removeScrollBar:d,shards:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:w}),i?l.cloneElement(l.Children.only(s),me(me({},S),{ref:P})):l.createElement(x,me({},S,{className:c,ref:P}),s))});jt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jt.classNames={fullWidth:Tt,zeroRight:At};var Qs=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function el(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qs();return t&&e.setAttribute("nonce",t),e}function tl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nl=function(){var e=0,t=null;return{add:function(r){e==0&&(t=el())&&(tl(t,r),rl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ol=function(){var e=nl();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},no=function(){var e=ol(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},al={left:0,top:0,right:0,gap:0},or=function(e){return parseInt(e||"",10)||0},il=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[or(r),or(n),or(o)]},sl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return al;var t=il(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ll=no(),Je="data-scroll-locked",cl=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
31
|
-
.`.concat(
|
|
30
|
+
<%s key={someKey} {...props} />`,er,Le,wi,Le),cn[Le+er]=!0}}return u===n?hi(J):gi(J),J}}function vi(u,E,A){return un(u,E,A,!0)}function bi(u,E,A){return un(u,E,A,!1)}var yi=bi,xi=vi;lt.Fragment=n,lt.jsx=yi,lt.jsxs=xi}()),lt}var pn;function Ri(){return pn||(pn=1,process.env.NODE_ENV==="production"?yt.exports=Si():yt.exports=Ci()),yt.exports}var m=Ri();function mn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gn(...e){return t=>{let r=!1;const n=e.map(o=>{const a=mn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():mn(e[o],null)}}}}function de(...e){return l.useCallback(Gn(...e),e)}var ve=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),a=o.find(Pi);if(a){const i=a.props.children,s=o.map(c=>c===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return m.jsx(fr,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return m.jsx(fr,{...n,ref:t,children:r})});ve.displayName="Slot";var fr=l.forwardRef((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const o=Ni(r),a=Ai(n,r.props);return r.type!==l.Fragment&&(a.ref=t?Gn(t,o):o),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});fr.displayName="SlotClone";var Un=({children:e})=>m.jsx(m.Fragment,{children:e});function Pi(e){return l.isValidElement(e)&&e.type===Un}function Ai(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{a(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ni(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Yn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Yn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Kn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Yn(e))&&(n&&(n+=" "),n+=t);return n}const gn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,hn=Kn,Cr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return hn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const v=gn(f)||gn(p);return o[d][v]}),s=r&&Object.entries(r).reduce((d,f)=>{let[p,v]=f;return v===void 0||(d[p]=v),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:v,...h}=f;return Object.entries(h).every(b=>{let[g,y]=b;return Array.isArray(y)?y.includes({...a,...s}[g]):{...a,...s}[g]===y})?[...d,p,v]:d},[]);return hn(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},Rr="-",Ti=e=>{const t=_i(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Rr);return s[0]===""&&s.length!==1&&s.shift(),Xn(s,t)||Oi(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},Xn=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Xn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Rr);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},vn=/^\[(.+)\]$/,Oi=e=>{if(vn.test(e)){const t=vn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_i=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)pr(r[o],n,o,t);return n},pr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:bn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(ki(o)){pr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{pr(i,bn(t,a),r,n)})})},bn=(e,t)=>{let r=e;return t.split(Rr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ki=e=>e.isThemeGetter,ji=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},mr="!",gr=":",Mi=gr.length,Di=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,d;for(let b=0;b<o.length;b++){let g=o[b];if(i===0&&s===0){if(g===gr){a.push(o.slice(c,b)),c=b+Mi;continue}if(g==="/"){d=b;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const f=a.length===0?o:o.substring(c),p=Ii(f),v=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+gr,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Ii=e=>e.endsWith(mr)?e.substring(0,e.length-1):e.startsWith(mr)?e.substring(1):e,Li=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Fi=e=>({cache:ji(e.cacheSize),parseClassName:Di(e),sortModifiers:Li(e),...Ti(e)}),$i=/\s+/,zi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split($i);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:p,modifiers:v,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!g,x=n(y?b.substring(0,g):b);if(!x){if(!y){c=f+(c.length>0?" "+c:c);continue}if(x=n(b),!x){c=f+(c.length>0?" "+c:c);continue}y=!1}const w=a(v).join(":"),C=h?w+mr:w,R=C+x;if(i.includes(R))continue;i.push(R);const P=o(x,y);for(let S=0;S<P.length;++S){const N=P[S];i.push(C+N)}c=f+(c.length>0?" "+c:c)}return c};function Bi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=qn(t))&&(n&&(n+=" "),n+=r);return n}const qn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=qn(e[n]))&&(r&&(r+=" "),r+=t);return r};function Wi(e,...t){let r,n,o,a=i;function i(c){const d=t.reduce((f,p)=>p(f),e());return r=Fi(d),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const d=n(c);if(d)return d;const f=zi(c,r);return o(c,f),f}return function(){return a(Bi.apply(null,arguments))}}const Q=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Jn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vi=/^\d+\/\d+$/,Hi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gi=/\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$/,Ui=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ki=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>Vi.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),yn=e=>e.endsWith("%")&&L(e.slice(0,-1)),Re=e=>Hi.test(e),Xi=()=>!0,qi=e=>Gi.test(e)&&!Ui.test(e),Pr=()=>!1,Ji=e=>Yi.test(e),Zi=e=>Ki.test(e),Qi=e=>!T(e)&&!O(e),es=e=>tt(e,to,Pr),T=e=>Jn.test(e),$e=e=>tt(e,ro,qi),tr=e=>tt(e,ds,L),ts=e=>tt(e,Qn,Pr),rs=e=>tt(e,eo,Zi),ns=e=>tt(e,Pr,Ji),O=e=>Zn.test(e),xt=e=>rt(e,ro),os=e=>rt(e,fs),as=e=>rt(e,Qn),is=e=>rt(e,to),ss=e=>rt(e,eo),ls=e=>rt(e,ps,!0),tt=(e,t,r)=>{const n=Jn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},rt=(e,t,r=!1)=>{const n=Zn.exec(e);return n?n[1]?t(n[1]):r:!1},Qn=e=>e==="position",cs=new Set(["image","url"]),eo=e=>cs.has(e),us=new Set(["length","size","percentage"]),to=e=>us.has(e),ro=e=>e==="length",ds=e=>e==="number",fs=e=>e==="family-name",ps=e=>e==="shadow",ms=()=>{const e=Q("color"),t=Q("font"),r=Q("text"),n=Q("font-weight"),o=Q("tracking"),a=Q("leading"),i=Q("breakpoint"),s=Q("container"),c=Q("spacing"),d=Q("radius"),f=Q("shadow"),p=Q("inset-shadow"),v=Q("drop-shadow"),h=Q("blur"),b=Q("perspective"),g=Q("aspect"),y=Q("ease"),x=Q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[O,T,c],N=()=>[Ye,"full","auto",...S()],B=()=>[Fe,"none","subgrid",O,T],G=()=>["auto",{span:["full",Fe,O,T]},O,T],V=()=>[Fe,"auto",O,T],q=()=>["auto","min","max","fr",O,T],K=()=>["start","end","center","between","around","evenly","stretch","baseline"],F=()=>["start","end","center","stretch"],D=()=>["auto",...S()],U=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],k=()=>[e,O,T],Y=()=>[yn,$e],_=()=>["","none","full",d,O,T],z=()=>["",L,xt,$e],Z=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>["","none",h,O,T],ke=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O,T],Se=()=>["none",L,O,T],Ce=()=>["none",L,O,T],ye=()=>[L,O,T],le=()=>[Ye,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[Xi],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[Qi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",L],text:[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,T,O,g]}],container:["container"],columns:[{columns:[L,T,O,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...C(),T,O]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",O,T]}],basis:[{basis:[Ye,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,Ye,"auto","initial","none",T]}],grow:[{grow:["",L,O,T]}],shrink:[{shrink:["",L,O,T]}],order:[{order:[Fe,"first","last","none",O,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...F(),"baseline"]}],"align-self":[{self:["auto",...F(),"baseline"]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[s,"screen",...U()]}],"min-w":[{"min-w":[s,"screen","none",...U()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",r,xt,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,tr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yn,T]}],"font-family":[{font:[os,T,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,O,T]}],"line-clamp":[{"line-clamp":[L,"none",O,tr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",O,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",O,$e]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[L,"auto",O,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,T]}],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",O,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...C(),as,ts]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",is,es]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,O,T],radial:["",O,T],conic:[Fe,O,T]},ss,rs]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,O,T]}],"outline-w":[{outline:["",L,xt,$e]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,ls,ns]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",O,T,p]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[L,$e]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":k()}],opacity:[{opacity:[L,O,T]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none",O,T]}],blur:[{blur:_e()}],brightness:[{brightness:[L,O,T]}],contrast:[{contrast:[L,O,T]}],"drop-shadow":[{"drop-shadow":["","none",v,O,T]}],grayscale:[{grayscale:["",L,O,T]}],"hue-rotate":[{"hue-rotate":[L,O,T]}],invert:[{invert:["",L,O,T]}],saturate:[{saturate:[L,O,T]}],sepia:[{sepia:["",L,O,T]}],"backdrop-filter":[{"backdrop-filter":["","none",O,T]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[L,O,T]}],"backdrop-contrast":[{"backdrop-contrast":[L,O,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,O,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,O,T]}],"backdrop-invert":[{"backdrop-invert":["",L,O,T]}],"backdrop-opacity":[{"backdrop-opacity":[L,O,T]}],"backdrop-saturate":[{"backdrop-saturate":[L,O,T]}],"backdrop-sepia":[{"backdrop-sepia":["",L,O,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",O,T]}],ease:[{ease:["linear","initial",y,O,T]}],delay:[{delay:[L,O,T]}],animate:[{animate:["none",x,O,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,O,T]}],"perspective-origin":[{"perspective-origin":ke()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[O,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:ke()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",O,T]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",O,T]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[L,xt,$e,tr]}],stroke:[{stroke:["none",...k()]}],"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","*","**"]}},gs=Wi(ms);function M(...e){return gs(Kn(e))}const hs=Cr("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"}}),Ar=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?ve:"button";return m.jsx(i,{className:M(hs({variant:t,size:r,className:e})),ref:a,...o})});Ar.displayName="Button";function ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function vs(e,t){const r=l.createContext(t),n=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return m.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=l.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Nr(e,t=[]){let r=[];function n(a,i){const s=l.createContext(i),c=r.length;r=[...r,i];const d=p=>{var x;const{scope:v,children:h,...b}=p,g=((x=v==null?void 0:v[e])==null?void 0:x[c])||s,y=l.useMemo(()=>b,Object.values(b));return m.jsx(g.Provider,{value:y,children:h})};d.displayName=a+"Provider";function f(p,v){var g;const h=((g=v==null?void 0:v[e])==null?void 0:g[c])||s,b=l.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,bs(o,...t)]}function bs(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var ze=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},ys=l.useId||(()=>{}),xs=0;function At(e){const[t,r]=l.useState(ys());return ze(()=>{r(n=>n??String(xs++))},[e]),e||(t?`radix-${t}`:"")}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function no({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=ws({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=Ae(r),c=l.useCallback(d=>{if(a){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[a,e,o,s]);return[i,c]}function ws({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),a=Ae(t);return l.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}var Es=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],te=Es.reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:a,...i}=n,s=a?ve:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(s,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ss(e,t){e&&Hn.flushSync(()=>e.dispatchEvent(t))}function Cs(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Rs="DismissableLayer",hr="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",As="dismissableLayer.focusOutside",xn,oo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,d=l.useContext(oo),[f,p]=l.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),b=de(t,N=>p(N)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=x,P=Os(N=>{const B=N.target,G=[...d.branches].some(V=>V.contains(B));!R||G||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},v),S=_s(N=>{const B=N.target;[...d.branches].some(V=>V.contains(B))||(a==null||a(N),i==null||i(N),N.defaultPrevented||s==null||s())},v);return Cs(N=>{w===d.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},v),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(xn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),wn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=xn)}},[f,v,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),wn())},[f,d]),l.useEffect(()=>{const N=()=>h({});return document.addEventListener(hr,N),()=>document.removeEventListener(hr,N)},[]),m.jsx(te.div,{...c,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,P.onPointerDownCapture)})});Tr.displayName=Rs;var Ns="DismissableLayerBranch",Ts=l.forwardRef((e,t)=>{const r=l.useContext(oo),n=l.useRef(null),o=de(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),m.jsx(te.div,{...e,ref:o})});Ts.displayName=Ns;function Os(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){ao(Ps,r,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function _s(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&ao(As,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function wn(){const e=new CustomEvent(hr);document.dispatchEvent(e)}function ao(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ss(o,a):o.dispatchEvent(a)}var rr="focusScope.autoFocusOnMount",nr="focusScope.autoFocusOnUnmount",En={bubbles:!1,cancelable:!0},ks="FocusScope",io=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),d=Ae(o),f=Ae(a),p=l.useRef(null),v=de(t,g=>c(g)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(C){if(h.paused||!s)return;const R=C.target;s.contains(R)?p.current=R:Pe(p.current,{select:!0})},y=function(C){if(h.paused||!s)return;const R=C.relatedTarget;R!==null&&(s.contains(R)||Pe(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&Pe(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const w=new MutationObserver(x);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),w.disconnect()}}},[n,s,h.paused]),l.useEffect(()=>{if(s){Cn.add(h);const g=document.activeElement;if(!s.contains(g)){const x=new CustomEvent(rr,En);s.addEventListener(rr,d),s.dispatchEvent(x),x.defaultPrevented||(js(Fs(so(s)),{select:!0}),document.activeElement===g&&Pe(s))}return()=>{s.removeEventListener(rr,d),setTimeout(()=>{const x=new CustomEvent(nr,En);s.addEventListener(nr,f),s.dispatchEvent(x),x.defaultPrevented||Pe(g??document.body,{select:!0}),s.removeEventListener(nr,f),Cn.remove(h)},0)}}},[s,d,f,h]);const b=l.useCallback(g=>{if(!r&&!n||h.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(y&&x){const w=g.currentTarget,[C,R]=Ms(w);C&&R?!g.shiftKey&&x===R?(g.preventDefault(),r&&Pe(C,{select:!0})):g.shiftKey&&x===C&&(g.preventDefault(),r&&Pe(R,{select:!0})):x===w&&g.preventDefault()}},[r,n,h.paused]);return m.jsx(te.div,{tabIndex:-1,...i,ref:v,onKeyDown:b})});io.displayName=ks;function js(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pe(n,{select:t}),document.activeElement!==r)return}function Ms(e){const t=so(e),r=Sn(t,e),n=Sn(t.reverse(),e);return[r,n]}function so(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Sn(e,t){for(const r of e)if(!Ds(r,{upTo:t}))return r}function Ds(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 Is(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Is(e)&&t&&e.select()}}var Cn=Ls();function Ls(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rn(e,t),e.unshift(t)},remove(t){var r;e=Rn(e,t),(r=e[0])==null||r.resume()}}}function Rn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Fs(e){return e.filter(t=>t.tagName!=="A")}var $s="Portal",Or=l.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=l.useState(!1);ze(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Wn.createPortal(m.jsx(te.div,{...n,ref:t}),i):null});Or.displayName=$s;function zs(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var nt=e=>{const{present:t,children:r}=e,n=Bs(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=de(n.ref,Ws(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};nt.displayName="Presence";function Bs(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=zs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=wt(n.current);a.current=s==="mounted"?d:"none"},[s]),ze(()=>{const d=n.current,f=o.current;if(f!==e){const v=a.current,h=wt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ze(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const g=wt(n.current).includes(h.animationName);if(h.target===t&&g&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},v=h=>{h.target===t&&(a.current=wt(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function wt(e){return(e==null?void 0:e.animationName)||"none"}function Ws(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var or=0;function Vs(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pn()),document.body.insertAdjacentElement("beforeend",e[1]??Pn()),or++,()=>{or===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),or--}},[])}function Pn(){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 me=function(){return me=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},me.apply(this,arguments)};function lo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Hs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Nt="right-scroll-bar-position",Tt="width-before-scroll-bar",Gs="with-scroll-bars-hidden",Us="--removed-body-scroll-bar-size";function ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ys(e,t){var r=se.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Ks=typeof window<"u"?l.useLayoutEffect:l.useEffect,An=new WeakMap;function Xs(e,t){var r=Ys(null,function(n){return e.forEach(function(o){return ar(o,n)})});return Ks(function(){var n=An.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||ar(s,null)}),a.forEach(function(s){o.has(s)||ar(s,i)})}An.set(r,e)},[e]),r}function qs(e){return e}function Js(e,t){t===void 0&&(t=qs);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var f=i;i=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),r}}}};return o}function Zs(e){e===void 0&&(e={});var t=Js(null);return t.options=me({async:!0,ssr:!1},e),t}var co=function(e){var t=e.sideCar,r=lo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,me({},r))};co.isSideCarExport=!0;function Qs(e,t){return e.useMedium(t),co}var uo=Zs(),ir=function(){},$t=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:ir,onWheelCapture:ir,onTouchMoveCapture:ir}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,v=e.sideCar,h=e.noIsolation,b=e.inert,g=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=lo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=Xs([r,t]),S=me(me({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:uo,removeScrollBar:d,shards:p,noIsolation:h,inert:b,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),i?l.cloneElement(l.Children.only(s),me(me({},S),{ref:P})):l.createElement(x,me({},S,{className:c,ref:P}),s))});$t.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$t.classNames={fullWidth:Tt,zeroRight:Nt};var el=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=el();return t&&e.setAttribute("nonce",t),e}function rl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ol=function(){var e=0,t=null;return{add:function(r){e==0&&(t=tl())&&(rl(t,r),nl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},al=function(){var e=ol();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fo=function(){var e=al(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},il={left:0,top:0,right:0,gap:0},sr=function(e){return parseInt(e||"",10)||0},sl=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[sr(r),sr(n),sr(o)]},ll=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return il;var t=sl(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cl=fo(),Je="data-scroll-locked",ul=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
31
|
+
.`.concat(Gs,` {
|
|
32
32
|
overflow: hidden `).concat(n,`;
|
|
33
33
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
34
34
|
}
|
|
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
45
45
|
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(Nt,` {
|
|
49
49
|
right: `).concat(s,"px ").concat(n,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
margin-right: `).concat(s,"px ").concat(n,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.`).concat(
|
|
56
|
+
.`).concat(Nt," .").concat(Nt,` {
|
|
57
57
|
right: 0 `).concat(n,`;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -62,53 +62,58 @@ React keys must be passed directly to JSX without using spread:
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
body[`).concat(Je,`] {
|
|
65
|
-
`).concat(
|
|
65
|
+
`).concat(Us,": ").concat(s,`px;
|
|
66
66
|
}
|
|
67
|
-
`)},
|
|
67
|
+
`)},Nn=function(){var e=parseInt(document.body.getAttribute(Je)||"0",10);return isFinite(e)?e:0},dl=function(){l.useEffect(function(){return document.body.setAttribute(Je,(Nn()+1).toString()),function(){var e=Nn()-1;e<=0?document.body.removeAttribute(Je):document.body.setAttribute(Je,e.toString())}},[])},fl=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;dl();var a=l.useMemo(function(){return ll(o)},[o]);return l.createElement(cl,{styles:ul(a,!t,o,r?"":"!important")})},vr=!1;if(typeof window<"u")try{var Et=Object.defineProperty({},"passive",{get:function(){return vr=!0,!0}});window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch{vr=!1}var Ke=vr?{passive:!1}:!1,pl=function(e){return e.tagName==="TEXTAREA"},po=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!pl(e)&&r[t]==="visible")},ml=function(e){return po(e,"overflowY")},gl=function(e){return po(e,"overflowX")},Tn=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=mo(e,n);if(o){var a=go(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hl=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},vl=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},mo=function(e,t){return e==="v"?ml(t):gl(t)},go=function(e,t){return e==="v"?hl(t):vl(t)},bl=function(e,t){return e==="h"&&t==="rtl"?-1:1},yl=function(e,t,r,n,o){var a=bl(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),d=!1,f=i>0,p=0,v=0;do{var h=go(e,s),b=h[0],g=h[1],y=h[2],x=g-y-a*b;(b||x)&&mo(e,s)&&(p+=x,v+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(p)<1||!f&&Math.abs(v)<1)&&(d=!0),d},St=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},On=function(e){return[e.deltaX,e.deltaY]},_n=function(e){return e&&"current"in e?e.current:e},xl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wl=function(e){return`
|
|
68
68
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
69
69
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
70
|
-
`)},
|
|
70
|
+
`)},El=0,Xe=[];function Sl(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(El++)[0],a=l.useState(fo)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Hs([e.lockRef.current],(e.shards||[]).map(_n),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var x=St(g),w=r.current,C="deltaX"in g?g.deltaX:w[0]-x[0],R="deltaY"in g?g.deltaY:w[1]-x[1],P,S=g.target,N=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in g&&N==="h"&&S.type==="range")return!1;var B=Tn(N,S);if(!B)return!0;if(B?P=N:(P=N==="v"?"h":"v",B=Tn(N,S)),!B)return!1;if(!n.current&&"changedTouches"in g&&(C||R)&&(n.current=P),!P)return!0;var G=n.current||P;return yl(G,y,g,G==="h"?C:R)},[]),c=l.useCallback(function(g){var y=g;if(!(!Xe.length||Xe[Xe.length-1]!==a)){var x="deltaY"in y?On(y):St(y),w=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&xl(P.delta,x)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var C=(i.current.shards||[]).map(_n).filter(Boolean).filter(function(P){return P.contains(y.target)}),R=C.length>0?s(y,C[0]):!i.current.noIsolation;R&&y.cancelable&&y.preventDefault()}}},[]),d=l.useCallback(function(g,y,x,w){var C={name:g,delta:y,target:x,should:w,shadowParent:Cl(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(R){return R!==C})},1)},[]),f=l.useCallback(function(g){r.current=St(g),n.current=void 0},[]),p=l.useCallback(function(g){d(g.type,On(g),g.target,s(g,e.lockRef.current))},[]),v=l.useCallback(function(g){d(g.type,St(g),g.target,s(g,e.lockRef.current))},[]);l.useEffect(function(){return Xe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",c,Ke),document.addEventListener("touchmove",c,Ke),document.addEventListener("touchstart",f,Ke),function(){Xe=Xe.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,Ke),document.removeEventListener("touchmove",c,Ke),document.removeEventListener("touchstart",f,Ke)}},[]);var h=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(a,{styles:wl(o)}):null,h?l.createElement(fl,{gapMode:e.gapMode}):null)}function Cl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Rl=Qs(uo,Sl);var ho=l.forwardRef(function(e,t){return l.createElement($t,me({},e,{ref:t,sideCar:Rl}))});ho.classNames=$t.classNames;var Pl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qe=new WeakMap,Ct=new WeakMap,Rt={},lr=0,vo=function(e){return e&&(e.host||vo(e.parentNode))},Al=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=vo(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Nl=function(e,t,r,n){var o=Al(t,Array.isArray(e)?e:[e]);Rt[r]||(Rt[r]=new WeakMap);var a=Rt[r],i=[],s=new Set,c=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))f(v);else try{var h=v.getAttribute(n),b=h!==null&&h!=="false",g=(qe.get(v)||0)+1,y=(a.get(v)||0)+1;qe.set(v,g),a.set(v,y),i.push(v),g===1&&b&&Ct.set(v,!0),y===1&&v.setAttribute(r,"true"),b||v.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",v,x)}})};return f(t),s.clear(),lr++,function(){i.forEach(function(p){var v=qe.get(p)-1,h=a.get(p)-1;qe.set(p,v),a.set(p,h),v||(Ct.has(p)||p.removeAttribute(n),Ct.delete(p)),h||p.removeAttribute(r)}),lr--,lr||(qe=new WeakMap,qe=new WeakMap,Ct=new WeakMap,Rt={})}},Tl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Pl(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Nl(n,o,r,"aria-hidden")):function(){return null}},_r="Dialog",[bo,Ku]=Nr(_r),[Ol,fe]=bo(_r),yo=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=l.useRef(null),c=l.useRef(null),[d=!1,f]=no({prop:n,defaultProp:o,onChange:a});return m.jsx(Ol,{scope:t,triggerRef:s,contentRef:c,contentId:At(),titleId:At(),descriptionId:At(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:i,children:r})};yo.displayName=_r;var xo="DialogTrigger",wo=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=fe(xo,r),a=de(t,o.triggerRef);return m.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mr(o.open),...n,ref:a,onClick:ne(e.onClick,o.onOpenToggle)})});wo.displayName=xo;var kr="DialogPortal",[_l,Eo]=bo(kr,{forceMount:void 0}),So=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=fe(kr,t);return m.jsx(_l,{scope:t,forceMount:r,children:l.Children.map(n,i=>m.jsx(nt,{present:r||a.open,children:m.jsx(Or,{asChild:!0,container:o,children:i})}))})};So.displayName=kr;var _t="DialogOverlay",Co=l.forwardRef((e,t)=>{const r=Eo(_t,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=fe(_t,e.__scopeDialog);return a.modal?m.jsx(nt,{present:n||a.open,children:m.jsx(kl,{...o,ref:t})}):null});Co.displayName=_t;var kl=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=fe(_t,r);return m.jsx(ho,{as:ve,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(te.div,{"data-state":Mr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Be="DialogContent",Ro=l.forwardRef((e,t)=>{const r=Eo(Be,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=fe(Be,e.__scopeDialog);return m.jsx(nt,{present:n||a.open,children:a.modal?m.jsx(jl,{...o,ref:t}):m.jsx(Ml,{...o,ref:t})})});Ro.displayName=Be;var jl=l.forwardRef((e,t)=>{const r=fe(Be,e.__scopeDialog),n=l.useRef(null),o=de(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Tl(a)},[]),m.jsx(Po,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,a=>a.preventDefault())})}),Ml=l.forwardRef((e,t)=>{const r=fe(Be,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(Po,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Po=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=fe(Be,r),c=l.useRef(null),d=de(t,c);return Vs(),m.jsxs(m.Fragment,{children:[m.jsx(io,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Tr,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mr(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Dl,{titleId:s.titleId}),m.jsx(Ll,{contentRef:c,descriptionId:s.descriptionId})]})]})}),jr="DialogTitle",Ao=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=fe(jr,r);return m.jsx(te.h2,{id:o.titleId,...n,ref:t})});Ao.displayName=jr;var No="DialogDescription",To=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=fe(No,r);return m.jsx(te.p,{id:o.descriptionId,...n,ref:t})});To.displayName=No;var Oo="DialogClose",_o=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=fe(Oo,r);return m.jsx(te.button,{type:"button",...n,ref:t,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});_o.displayName=Oo;function Mr(e){return e?"open":"closed"}var ko="DialogTitleWarning",[Xu,jo]=vs(ko,{contentName:Be,titleName:jr,docsSlug:"dialog"}),Dl=({titleId:e})=>{const t=jo(ko),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
71
71
|
|
|
72
72
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
73
73
|
|
|
74
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},
|
|
74
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Il="DialogDescriptionWarning",Ll=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jo(Il).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Mo=yo,Fl=wo,Do=So,zt=Co,Bt=Ro,Wt=Ao,Vt=To,Dr=_o;/**
|
|
75
75
|
* @license lucide-react v0.482.0 - ISC
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the ISC license.
|
|
78
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const
|
|
79
|
+
*/const $l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Io=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
80
80
|
* @license lucide-react v0.482.0 - ISC
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/var
|
|
84
|
+
*/var zl={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"};/**
|
|
85
85
|
* @license lucide-react v0.482.0 - ISC
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the ISC license.
|
|
88
88
|
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const
|
|
89
|
+
*/const Bl=se.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>se.createElement("svg",{ref:c,...zl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Io("lucide",o),...s},[...i.map(([d,f])=>se.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
90
90
|
* @license lucide-react v0.482.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const
|
|
94
|
+
*/const dt=(e,t)=>{const r=se.forwardRef(({className:n,...o},a)=>se.createElement(Bl,{ref:a,iconNode:t,className:Io(`lucide-${$l(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
|
95
95
|
* @license lucide-react v0.482.0 - ISC
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const
|
|
99
|
+
*/const Wl=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],br=dt("ChevronRight",Wl);/**
|
|
100
100
|
* @license lucide-react v0.482.0 - ISC
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the ISC license.
|
|
103
103
|
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const Vl=[["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"}]],Hl
|
|
104
|
+
*/const Vl=[["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"}]],Hl=dt("Ellipsis",Vl);/**
|
|
105
105
|
* @license lucide-react v0.482.0 - ISC
|
|
106
106
|
*
|
|
107
107
|
* This source code is licensed under the ISC license.
|
|
108
108
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const Gl=[["
|
|
109
|
+
*/const Gl=[["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"}]],Ul=dt("House",Gl);/**
|
|
110
110
|
* @license lucide-react v0.482.0 - ISC
|
|
111
111
|
*
|
|
112
112
|
* This source code is licensed under the ISC license.
|
|
113
113
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const Yl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oo=$t("X",Yl),Kl=Po,Xl=Ll,No=Ao,ql=_r,kr=l.forwardRef(({className:e,...t},r)=>h.jsx(It,{ref:r,className:M("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}));kr.displayName=It.displayName;const _o=l.forwardRef(({className:e,children:t,...r},n)=>h.jsxs(No,{children:[h.jsx(kr,{}),h.jsxs(Lt,{ref:n,className:M("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),...r,children:[t,h.jsxs(_r,{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:[h.jsx(Oo,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_o.displayName=Lt.displayName;const ko=({className:e,...t})=>h.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ko.displayName="DialogHeader";const Do=({className:e,...t})=>h.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Do.displayName="DialogFooter";const Mo=l.forwardRef(({className:e,...t},r)=>h.jsx(Ft,{ref:r,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));Mo.displayName=Ft.displayName;const jo=l.forwardRef(({className:e,...t},r)=>h.jsx(Bt,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));jo.displayName=Bt.displayName;const ir=768;function Jl(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const r=window.matchMedia(`(max-width: ${ir-1}px)`),n=()=>{t(window.innerWidth<ir)};return r.addEventListener("change",n),t(window.innerWidth<ir),()=>r.removeEventListener("change",n)},[]),!!e}const Io=l.forwardRef(({className:e,type:t,...r},n)=>h.jsx("input",{type:t,className:M("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:n,...r}));Io.displayName="Input";var Zl="Separator",Cn="horizontal",Ql=["horizontal","vertical"],Lo=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Cn,...o}=e,a=ec(n)?n:Cn,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return h.jsx(te.div,{"data-orientation":a,...s,...o,ref:t})});Lo.displayName=Zl;function ec(e){return Ql.includes(e)}var Fo=Lo;const Bo=l.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>h.jsx(Fo,{ref:o,decorative:r,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Bo.displayName=Fo.displayName;const tc=Po,rc=Ao,$o=l.forwardRef(({className:e,...t},r)=>h.jsx(It,{className:M("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:r}));$o.displayName=It.displayName;const nc=xr("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"}}),zo=l.forwardRef(({side:e="right",className:t,children:r,...n},o)=>h.jsxs(rc,{children:[h.jsx($o,{}),h.jsxs(Lt,{ref:o,className:M(nc({side:e}),t),...n,children:[h.jsxs(_r,{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:[h.jsx(Oo,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));zo.displayName=Lt.displayName;const Wo=({className:e,...t})=>h.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Wo.displayName="SheetHeader";const Vo=l.forwardRef(({className:e,...t},r)=>h.jsx(Ft,{ref:r,className:M("text-lg font-semibold text-foreground",e),...t}));Vo.displayName=Ft.displayName;const Ho=l.forwardRef(({className:e,...t},r)=>h.jsx(Bt,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Ho.displayName=Bt.displayName;function Rn({className:e,...t}){return h.jsx("div",{className:M("animate-pulse rounded-md bg-primary/10",e),...t})}const oc=["top","right","bottom","left"],Te=Math.min,oe=Math.max,_t=Math.round,Rt=Math.floor,ge=e=>({x:e,y:e}),ac={left:"right",right:"left",bottom:"top",top:"bottom"},ic={start:"end",end:"start"};function gr(e,t,r){return oe(e,Te(t,r))}function we(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Dr(e){return e==="x"?"y":"x"}function Mr(e){return e==="y"?"height":"width"}function Oe(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function jr(e){return Dr(Oe(e))}function sc(e,t,r){r===void 0&&(r=!1);const n=ot(e),o=jr(e),a=Mr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=kt(i)),[i,kt(i)]}function lc(e){const t=kt(e);return[hr(e),t,hr(t)]}function hr(e){return e.replace(/start|end/g,t=>ic[t])}function cc(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function uc(e,t,r,n){const o=ot(e);let a=cc(Ee(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(hr)))),a}function kt(e){return e.replace(/left|right|bottom|top/g,t=>ac[t])}function dc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Go(e){return typeof e!="number"?dc(e):{top:e,right:e,bottom:e,left:e}}function Dt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Pn(e,t,r){let{reference:n,floating:o}=e;const a=Oe(t),i=jr(t),s=Mr(i),c=Ee(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(ot(t)){case"start":g[i]-=v*(r&&d?-1:1);break;case"end":g[i]+=v*(r&&d?-1:1);break}return g}const fc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Pn(d,n,c),v=n,g={},b=0;for(let m=0;m<s.length;m++){const{name:y,fn:x}=s[m],{x:w,y:C,data:R,reset:P}=await x({x:f,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:g,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=C??p,g={...g,[y]:{...g[y],...R}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=Pn(d,v,c)),m=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:g}};async function ct(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:g=0}=we(t,e),b=Go(g),y=s[v?p==="floating"?"reference":"floating":p],x=Dt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),R=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},P=Dt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:c}):w);return{top:(x.top-P.top+b.top)/R.y,bottom:(P.bottom-x.bottom+b.bottom)/R.y,left:(x.left-P.left+b.left)/R.x,right:(P.right-x.right+b.right)/R.x}}const pc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const p=Go(f),v={x:r,y:n},g=jr(o),b=Mr(g),m=await i.getDimensions(d),y=g==="y",x=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[g]-v[g]-a.floating[b],P=v[g]-a.reference[g],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let T=S?S[C]:0;(!T||!await(i.isElement==null?void 0:i.isElement(S)))&&(T=s.floating[C]||a.floating[b]);const z=R/2-P/2,G=T/2-m[b]/2-1,V=Te(p[x],G),q=Te(p[w],G),K=V,F=T-m[b]-q,j=T/2-m[b]/2+z,U=gr(K,j,F),k=!c.arrow&&ot(o)!=null&&j!==U&&a.reference[b]/2-(j<K?V:q)-m[b]/2<0,Y=k?j<K?j-K:j-F:0;return{[g]:v[g]+Y,data:{[g]:U,centerOffset:j-U-Y,...k&&{alignmentOffset:Y}},reset:k}}}),mc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...y}=we(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Ee(o),w=Oe(s),C=Ee(s)===s,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=v||(C||!m?[kt(s)]:lc(s)),S=b!=="none";!v&&S&&P.push(...uc(s,m,b,R));const T=[s,...P],z=await ct(t,y),G=[];let V=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&G.push(z[x]),p){const j=sc(o,i,R);G.push(z[j[0]],z[j[1]])}if(V=[...V,{placement:o,overflows:G}],!G.every(j=>j<=0)){var q,K;const j=(((q=a.flip)==null?void 0:q.index)||0)+1,U=T[j];if(U)return{data:{index:j,overflows:V},reset:{placement:U}};let k=(K=V.filter(Y=>Y.overflows[0]<=0).sort((Y,_)=>Y.overflows[1]-_.overflows[1])[0])==null?void 0:K.placement;if(!k)switch(g){case"bestFit":{var F;const Y=(F=V.filter(_=>{if(S){const $=Oe(_.placement);return $===w||$==="y"}return!0}).map(_=>[_.placement,_.overflows.filter($=>$>0).reduce(($,Z)=>$+Z,0)]).sort((_,$)=>_[1]-$[1])[0])==null?void 0:F[0];Y&&(k=Y);break}case"initialPlacement":k=s;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function An(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tn(e){return oc.some(t=>e[t]>=0)}const gc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=we(e,t);switch(n){case"referenceHidden":{const a=await ct(t,{...o,elementContext:"reference"}),i=An(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Tn(i)}}}case"escaped":{const a=await ct(t,{...o,altBoundary:!0}),i=An(a,r.floating);return{data:{escapedOffsets:i,escaped:Tn(i)}}}default:return{}}}}};async function hc(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Ee(r),s=ot(r),c=Oe(r)==="y",d=["left","top"].includes(i)?-1:1,f=a&&c?-1:1,p=we(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*f,y:v*d}:{x:v*d,y:g*f}}const vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await hc(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},bc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=we(e,t),d={x:r,y:n},f=await ct(t,c),p=Oe(Ee(o)),v=Dr(p);let g=d[v],b=d[p];if(a){const y=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+f[y],C=g-f[x];g=gr(w,g,C)}if(i){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=b+f[y],C=b-f[x];b=gr(w,b,C)}const m=s.fn({...t,[v]:g,[p]:b});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[v]:a,[p]:i}}}}}},yc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=we(e,t),f={x:r,y:n},p=Oe(o),v=Dr(p);let g=f[v],b=f[p];const m=we(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const C=v==="y"?"height":"width",R=a.reference[v]-a.floating[C]+y.mainAxis,P=a.reference[v]+a.reference[C]-y.mainAxis;g<R?g=R:g>P&&(g=P)}if(d){var x,w;const C=v==="y"?"width":"height",R=["top","left"].includes(Ee(o)),P=a.reference[p]-a.floating[C]+(R&&((x=i.offset)==null?void 0:x[p])||0)+(R?0:y.crossAxis),S=a.reference[p]+a.reference[C]+(R?0:((w=i.offset)==null?void 0:w[p])||0)-(R?y.crossAxis:0);b<P?b=P:b>S&&(b=S)}return{[v]:g,[p]:b}}}},xc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...d}=we(e,t),f=await ct(t,d),p=Ee(o),v=ot(o),g=Oe(o)==="y",{width:b,height:m}=a.floating;let y,x;p==="top"||p==="bottom"?(y=p,x=v===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=p,y=v==="end"?"top":"bottom");const w=m-f.top-f.bottom,C=b-f.left-f.right,R=Te(m-f[y],w),P=Te(b-f[x],C),S=!t.middlewareData.shift;let T=R,z=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=w),S&&!v){const V=oe(f.left,0),q=oe(f.right,0),K=oe(f.top,0),F=oe(f.bottom,0);g?z=b-2*(V!==0||q!==0?V+q:oe(f.left,f.right)):T=m-2*(K!==0||F!==0?K+F:oe(f.top,f.bottom))}await c({...t,availableWidth:z,availableHeight:T});const G=await i.getDimensions(s.floating);return b!==G.width||m!==G.height?{reset:{rects:!0}}:{}}}};function zt(){return typeof window<"u"}function at(e){return Uo(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Uo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Uo(e){return zt()?e instanceof Node||e instanceof ae(e).Node:!1}function ce(e){return zt()?e instanceof Element||e instanceof ae(e).Element:!1}function he(e){return zt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function On(e){return!zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function dt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function wc(e){return["table","td","th"].includes(at(e))}function Wt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ir(e){const t=Lr(),r=ce(e)?ue(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ec(e){let t=Ne(e);for(;he(t)&&!Qe(t);){if(Ir(t))return t;if(Wt(t))return null;t=Ne(t)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qe(e){return["html","body","#document"].includes(at(e))}function ue(e){return ae(e).getComputedStyle(e)}function Vt(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||On(e)&&e.host||be(e);return On(t)?t.host:t}function Yo(e){const t=Ne(e);return Qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&dt(t)?t:Yo(t)}function ut(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Yo(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ae(o);if(a){const s=vr(i);return t.concat(i,i.visualViewport||[],dt(o)?o:[],s&&r?ut(s):[])}return t.concat(o,ut(o,[],r))}function vr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ko(e){const t=ue(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=he(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=_t(r)!==a||_t(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Fr(e){return ce(e)?e:e.contextElement}function Ze(e){const t=Fr(e);if(!he(t))return ge(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ko(t);let i=(a?_t(r.width):r.width)/n,s=(a?_t(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Sc=ge(0);function Xo(e){const t=ae(e);return!Lr()||!t.visualViewport?Sc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ae(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Fr(e);let i=ge(1);t&&(n?ce(n)&&(i=Ze(n)):i=Ze(e));const s=Cc(a,r,n)?Xo(a):ge(0);let c=(o.left+s.x)/i.x,d=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const v=ae(a),g=n&&ce(n)?ae(n):n;let b=v,m=vr(b);for(;m&&n&&g!==b;){const y=Ze(m),x=m.getBoundingClientRect(),w=ue(m),C=x.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,R=x.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=C,d+=R,b=ae(m),m=vr(b)}}return Dt({width:f,height:p,x:c,y:d})}function Br(e,t){const r=Vt(e).scrollLeft;return t?t.left+r:We(be(e)).left+r}function qo(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Br(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function Rc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=be(n),s=t?Wt(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},d=ge(1);const f=ge(0),p=he(n);if((p||!p&&!a)&&((at(n)!=="body"||dt(i))&&(c=Vt(n)),he(n))){const g=We(n);d=Ze(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const v=i&&!p&&!a?qo(i,c,!0):ge(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+v.x,y:r.y*d.y-c.scrollTop*d.y+f.y+v.y}}function Pc(e){return Array.from(e.getClientRects())}function Ac(e){const t=be(e),r=Vt(e),n=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=oe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Br(e);const s=-r.scrollTop;return ue(n).direction==="rtl"&&(i+=oe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Tc(e,t){const r=ae(e),n=be(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=Lr();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function Oc(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=he(e)?Ze(e):ge(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:i,height:s,x:c,y:d}}function Nn(e,t,r){let n;if(t==="viewport")n=Tc(e,r);else if(t==="document")n=Ac(be(e));else if(ce(t))n=Oc(t,r);else{const o=Xo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Dt(n)}function Jo(e,t){const r=Ne(e);return r===t||!ce(r)||Qe(r)?!1:ue(r).position==="fixed"||Jo(r,t)}function Nc(e,t){const r=t.get(e);if(r)return r;let n=ut(e,[],!1).filter(s=>ce(s)&&at(s)!=="body"),o=null;const a=ue(e).position==="fixed";let i=a?Ne(e):e;for(;ce(i)&&!Qe(i);){const s=ue(i),c=Ir(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||dt(i)&&!c&&Jo(e,i))?n=n.filter(f=>f!==i):o=s,i=Ne(i)}return t.set(e,n),n}function _c(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Wt(t)?[]:Nc(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((d,f)=>{const p=Nn(t,f,o);return d.top=oe(p.top,d.top),d.right=Te(p.right,d.right),d.bottom=Te(p.bottom,d.bottom),d.left=oe(p.left,d.left),d},Nn(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kc(e){const{width:t,height:r}=Ko(e);return{width:t,height:r}}function Dc(e,t,r){const n=he(t),o=be(t),a=r==="fixed",i=We(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=ge(0);if(n||!n&&!a)if((at(t)!=="body"||dt(o))&&(s=Vt(t)),n){const v=We(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=Br(o));const d=o&&!n&&!a?qo(o,s):ge(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function sr(e){return ue(e).position==="static"}function _n(e,t){if(!he(e)||ue(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return be(e)===r&&(r=r.ownerDocument.body),r}function Zo(e,t){const r=ae(e);if(Wt(e))return r;if(!he(e)){let o=Ne(e);for(;o&&!Qe(o);){if(ce(o)&&!sr(o))return o;o=Ne(o)}return r}let n=_n(e,t);for(;n&&wc(n)&&sr(n);)n=_n(n,t);return n&&Qe(n)&&sr(n)&&!Ir(n)?r:n||Ec(e)||r}const Mc=async function(e){const t=this.getOffsetParent||Zo,r=this.getDimensions,n=await r(e.floating);return{reference:Dc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jc(e){return ue(e).direction==="rtl"}const Ic={convertOffsetParentRelativeRectToViewportRelativeRect:Rc,getDocumentElement:be,getClippingRect:_c,getOffsetParent:Zo,getElementRects:Mc,getClientRects:Pc,getDimensions:kc,getScale:Ze,isElement:ce,isRTL:jc};function Qo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lc(e,t){let r=null,n;const o=be(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:v,height:g}=d;if(s||t(),!v||!g)return;const b=Rt(p),m=Rt(o.clientWidth-(f+v)),y=Rt(o.clientHeight-(p+g)),x=Rt(f),C={rootMargin:-b+"px "+-m+"px "+-y+"px "+-x+"px",threshold:oe(0,Te(1,c))||1};let R=!0;function P(S){const T=S[0].intersectionRatio;if(T!==c){if(!R)return i();T?i(!1,T):n=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!Qo(d,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,C)}r.observe(e)}return i(!0),a}function Fc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Fr(e),f=o||a?[...d?ut(d):[],...ut(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&s?Lc(d,r):null;let v=-1,g=null;i&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),r()}),d&&!c&&g.observe(d),g.observe(t));let b,m=c?We(e):null;c&&y();function y(){const x=We(e);m&&!Qo(m,x)&&r(),m=x,b=requestAnimationFrame(y)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p==null||p(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Bc=vc,$c=bc,zc=mc,Wc=xc,Vc=gc,kn=pc,Hc=yc,Gc=(e,t,r)=>{const n=new Map,o={platform:Ic,...r},a={...o.platform,_c:n};return fc(e,t,{...o,platform:a})};var Ot=typeof document<"u"?le.useLayoutEffect:le.useEffect;function Mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Mt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Mt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ea(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dn(e,t){const r=ea(e);return Math.round(t*r)/r}function lr(e){const t=l.useRef(e);return Ot(()=>{t.current=e}),t}function Uc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=l.useState(n);Mt(v,n)||g(n);const[b,m]=l.useState(null),[y,x]=l.useState(null),w=l.useCallback(_=>{_!==S.current&&(S.current=_,m(_))},[]),C=l.useCallback(_=>{_!==T.current&&(T.current=_,x(_))},[]),R=a||b,P=i||y,S=l.useRef(null),T=l.useRef(null),z=l.useRef(f),G=c!=null,V=lr(c),q=lr(o),K=lr(d),F=l.useCallback(()=>{if(!S.current||!T.current)return;const _={placement:t,strategy:r,middleware:v};q.current&&(_.platform=q.current),Gc(S.current,T.current,_).then($=>{const Z={...$,isPositioned:K.current!==!1};j.current&&!Mt(z.current,Z)&&(z.current=Z,In.flushSync(()=>{p(Z)}))})},[v,t,r,q,K]);Ot(()=>{d===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const j=l.useRef(!1);Ot(()=>(j.current=!0,()=>{j.current=!1}),[]),Ot(()=>{if(R&&(S.current=R),P&&(T.current=P),R&&P){if(V.current)return V.current(R,P,F);F()}},[R,P,F,V,G]);const U=l.useMemo(()=>({reference:S,floating:T,setReference:w,setFloating:C}),[w,C]),k=l.useMemo(()=>({reference:R,floating:P}),[R,P]),Y=l.useMemo(()=>{const _={position:r,left:0,top:0};if(!k.floating)return _;const $=Dn(k.floating,f.x),Z=Dn(k.floating,f.y);return s?{..._,transform:"translate("+$+"px, "+Z+"px)",...ea(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:Z}},[r,s,k.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:F,refs:U,elements:k,floatingStyles:Y}),[f,F,U,k,Y])}const Yc=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?kn({element:n.current,padding:o}).fn(r):{}:n?kn({element:n,padding:o}).fn(r):{}}}},Kc=(e,t)=>({...Bc(e),options:[e,t]}),Xc=(e,t)=>({...$c(e),options:[e,t]}),qc=(e,t)=>({...Hc(e),options:[e,t]}),Jc=(e,t)=>({...zc(e),options:[e,t]}),Zc=(e,t)=>({...Wc(e),options:[e,t]}),Qc=(e,t)=>({...Vc(e),options:[e,t]}),eu=(e,t)=>({...Yc(e),options:[e,t]});var tu="Arrow",ta=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return h.jsx(te.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});ta.displayName=tu;var ru=ta;function nu(e){const[t,r]=l.useState(void 0);return $e(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,s=d.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var $r="Popper",[ra,na]=Cr($r),[ou,oa]=ra($r),aa=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return h.jsx(ou,{scope:t,anchor:n,onAnchorChange:o,children:r})};aa.displayName=$r;var ia="PopperAnchor",sa=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=oa(ia,r),i=l.useRef(null),s=de(t,i);return l.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:h.jsx(te.div,{...o,ref:s})});sa.displayName=ia;var zr="PopperContent",[au,iu]=ra(zr),la=l.forwardRef((e,t)=>{var se,De,Ve,Me,mt,it;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:b,...m}=e,y=oa(zr,r),[x,w]=l.useState(null),C=de(t,je=>w(je)),[R,P]=l.useState(null),S=nu(R),T=(S==null?void 0:S.width)??0,z=(S==null?void 0:S.height)??0,G=n+(a!=="center"?"-"+a:""),V=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},q=Array.isArray(d)?d:[d],K=q.length>0,F={padding:V,boundary:q.filter(lu),altBoundary:K},{refs:j,floatingStyles:U,placement:k,isPositioned:Y,middlewareData:_}=Uc({strategy:"fixed",placement:G,whileElementsMounted:(...je)=>Fc(...je,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Kc({mainAxis:o+z,alignmentAxis:i}),c&&Xc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?qc():void 0,...F}),c&&Jc({...F}),Zc({...F,apply:({elements:je,rects:gt,availableWidth:He,availableHeight:Ie})=>{const{width:ht,height:vt}=gt.reference,xe=je.floating.style;xe.setProperty("--radix-popper-available-width",`${He}px`),xe.setProperty("--radix-popper-available-height",`${Ie}px`),xe.setProperty("--radix-popper-anchor-width",`${ht}px`),xe.setProperty("--radix-popper-anchor-height",`${vt}px`)}}),R&&eu({element:R,padding:s}),cu({arrowWidth:T,arrowHeight:z}),v&&Qc({strategy:"referenceHidden",...F})]}),[$,Z]=da(k),pe=Ae(b);$e(()=>{Y&&(pe==null||pe())},[Y,pe]);const _e=(se=_.arrow)==null?void 0:se.x,ke=(De=_.arrow)==null?void 0:De.y,Se=((Ve=_.arrow)==null?void 0:Ve.centerOffset)!==0,[Ce,ye]=l.useState();return $e(()=>{x&&ye(window.getComputedStyle(x).zIndex)},[x]),h.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(Me=_.transformOrigin)==null?void 0:Me.x,(mt=_.transformOrigin)==null?void 0:mt.y].join(" "),...((it=_.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(au,{scope:r,placedSide:$,onArrowChange:P,arrowX:_e,arrowY:ke,shouldHideArrow:Se,children:h.jsx(te.div,{"data-side":$,"data-align":Z,...m,ref:C,style:{...m.style,animation:Y?void 0:"none"}})})})});la.displayName=zr;var ca="PopperArrow",su={top:"bottom",right:"left",bottom:"top",left:"right"},ua=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=iu(ca,n),i=su[a.placedSide];return h.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:h.jsx(ru,{...o,ref:r,style:{...o.style,display:"block"}})})});ua.displayName=ca;function lu(e){return e!==null}var cu=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:r,rects:n,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=da(r),p={start:"0%",center:"50%",end:"100%"}[f],v=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let b="",m="";return d==="bottom"?(b=i?p:`${v}px`,m=`${-c}px`):d==="top"?(b=i?p:`${v}px`,m=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,m=i?p:`${g}px`):d==="left"&&(b=`${n.floating.width+c}px`,m=i?p:`${g}px`),{data:{x:b,y:m}}}});function da(e){const[t,r="center"]=e.split("-");return[t,r]}var uu=aa,du=sa,fu=la,pu=ua,mu="VisuallyHidden",fa=l.forwardRef((e,t)=>h.jsx(te.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}}));fa.displayName=mu;var gu=fa,[Ht,Yu]=Cr("Tooltip",[na]),Gt=na(),pa="TooltipProvider",hu=700,br="tooltip.open",[vu,Wr]=Ht(pa),ma=e=>{const{__scopeTooltip:t,delayDuration:r=hu,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),h.jsx(vu,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:a})};ma.displayName=pa;var Ut="Tooltip",[bu,ft]=Ht(Ut),ga=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Wr(Ut,e.__scopeTooltip),d=Gt(t),[f,p]=l.useState(null),v=Pt(),g=l.useRef(0),b=i??c.disableHoverableContent,m=s??c.delayDuration,y=l.useRef(!1),[x=!1,w]=Xn({prop:n,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(br))):c.onClose(),a==null||a(T)}}),C=l.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),R=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,w(!0)},[w]),P=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,w(!0),g.current=0},m)},[m,w]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),h.jsx(uu,{...d,children:h.jsx(bu,{scope:t,contentId:v,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?S():R()},[c.isOpenDelayed,S,R]),onTriggerLeave:l.useCallback(()=>{b?P():(window.clearTimeout(g.current),g.current=0)},[P,b]),onOpen:R,onClose:P,disableHoverableContent:b,children:r})})};ga.displayName=Ut;var yr="TooltipTrigger",ha=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ft(yr,r),a=Wr(yr,r),i=Gt(r),s=l.useRef(null),c=de(t,s,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.jsx(du,{asChild:!0,...i,children:h.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:ne(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ne(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});ha.displayName=yr;var Vr="TooltipPortal",[yu,xu]=Ht(Vr,{forceMount:void 0}),va=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=ft(Vr,t);return h.jsx(yu,{scope:t,forceMount:r,children:h.jsx(nt,{present:r||a.open,children:h.jsx(Pr,{asChild:!0,container:o,children:n})})})};va.displayName=Vr;var et="TooltipContent",ba=l.forwardRef((e,t)=>{const r=xu(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=ft(et,e.__scopeTooltip);return h.jsx(nt,{present:n||i.open,children:i.disableHoverableContent?h.jsx(ya,{side:o,...a,ref:t}):h.jsx(wu,{side:o,...a,ref:t})})}),wu=l.forwardRef((e,t)=>{const r=ft(et,e.__scopeTooltip),n=Wr(et,e.__scopeTooltip),o=l.useRef(null),a=de(t,o),[i,s]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,v=l.useCallback(()=>{s(null),p(!1)},[p]),g=l.useCallback((b,m)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},w=Ru(x,y.getBoundingClientRect()),C=Pu(x,w),R=Au(m.getBoundingClientRect()),P=Ou([...C,...R]);s(P),p(!0)},[p]);return l.useEffect(()=>()=>v(),[v]),l.useEffect(()=>{if(c&&f){const b=y=>g(y,f),m=y=>g(y,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",m)}}},[c,f,g,v]),l.useEffect(()=>{if(i){const b=m=>{const y=m.target,x={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),C=!Tu(x,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,d,v]),h.jsx(ya,{...e,ref:a})}),[Eu,Su]=Ht(Ut,{isInside:!1}),ya=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=ft(et,r),d=Gt(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(br,f),()=>document.removeEventListener(br,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=v=>{const g=v.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),h.jsx(Rr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:h.jsxs(fu,{"data-state":c.stateAttribute,...d,...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:[h.jsx(Fn,{children:n}),h.jsx(Eu,{scope:r,isInside:!0,children:h.jsx(gu,{id:c.contentId,role:"tooltip",children:o||n})})]})})});ba.displayName=et;var xa="TooltipArrow",Cu=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Gt(r);return Su(xa,r).isInside?null:h.jsx(pu,{...o,...n,ref:t})});Cu.displayName=xa;function Ru(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Pu(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Au(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Tu(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,d=t[i].x,f=t[i].y;c>n!=f>n&&r<(d-s)*(n-c)/(f-c)+s&&(o=!o)}return o}function Ou(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Nu(t)}function Nu(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var _u=ma,ku=ga,Du=ha,Mu=va,wa=ba;const ju=_u,Iu=ku,Lu=Du,Ea=l.forwardRef(({className:e,sideOffset:t=4,...r},n)=>h.jsx(Mu,{children:h.jsx(wa,{ref:n,sideOffset:t,className:M("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),...r})}));Ea.displayName=wa.displayName;const Fu="sidebar_state",Bu=60*60*24*7,$u="16rem",zu="18rem",Wu="3rem",Vu="b",Sa=l.createContext(null);function pt(){const e=l.useContext(Sa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Ca=l.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i},s)=>{const c=Jl(),[d,f]=l.useState(!1),[p,v]=l.useState(e),g=t??p,b=l.useCallback(w=>{const C=typeof w=="function"?w(g):w;r?r(C):v(C),document.cookie=`${Fu}=${C}; path=/; max-age=${Bu}`},[r,g]),m=l.useCallback(()=>c?f(w=>!w):b(w=>!w),[c,b,f]);l.useEffect(()=>{const w=C=>{C.key===Vu&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),m())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[m]);const y=g?"expanded":"collapsed",x=l.useMemo(()=>({state:y,open:g,setOpen:b,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:m}),[y,g,b,c,d,f,m]);return h.jsx(Sa.Provider,{value:x,children:h.jsx(ju,{delayDuration:0,children:h.jsx("div",{style:{"--sidebar-width":$u,"--sidebar-width-icon":Wu,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:s,...i,children:a})})})});Ca.displayName="SidebarProvider";const Ra=l.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:d,setOpenMobile:f}=pt();return r==="none"?h.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...a,children:o}):s?h.jsx(tc,{open:d,onOpenChange:f,...a,children:h.jsxs(zo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":zu},side:e,children:[h.jsxs(Wo,{className:"sr-only",children:[h.jsx(Vo,{children:"Sidebar"}),h.jsx(Ho,{children:"Displays the mobile sidebar."})]}),h.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):h.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[h.jsx("div",{className:M("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]")}),h.jsx("div",{className:M("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",n),...a,children:h.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})})]})});Ra.displayName="Sidebar";const Pa=l.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=pt();return h.jsxs(Sr,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...r,children:[h.jsx(Ul,{}),h.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Pa.displayName="SidebarTrigger";const Aa=l.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=pt();return h.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:M("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})});Aa.displayName="SidebarRail";const Ta=l.forwardRef(({className:e,...t},r)=>h.jsx("main",{ref:r,className:M("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}));Ta.displayName="SidebarInset";const Oa=l.forwardRef(({className:e,...t},r)=>h.jsx(Io,{ref:r,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Oa.displayName="SidebarInput";const Na=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));Na.displayName="SidebarHeader";const _a=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));_a.displayName="SidebarFooter";const ka=l.forwardRef(({className:e,...t},r)=>h.jsx(Bo,{ref:r,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));ka.displayName="SidebarSeparator";const Da=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Da.displayName="SidebarContent";const Ma=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ma.displayName="SidebarGroup";const ja=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ve:"div";return h.jsx(o,{ref:n,"data-sidebar":"group-label",className:M("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),...r})});ja.displayName="SidebarGroupLabel";const Ia=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ve:"button";return h.jsx(o,{ref:n,"data-sidebar":"group-action",className:M("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),...r})});Ia.displayName="SidebarGroupAction";const La=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));La.displayName="SidebarGroupContent";const Fa=l.forwardRef(({className:e,...t},r)=>h.jsx("ul",{ref:r,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));Fa.displayName="SidebarMenu";const Ba=l.forwardRef(({className:e,...t},r)=>h.jsx("li",{ref:r,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));Ba.displayName="SidebarMenuItem";const Hu=xr("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"}}),$a=l.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i},s)=>{const c=e?ve:"button",{isMobile:d,state:f}=pt(),p=h.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:M(Hu({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),h.jsxs(Iu,{children:[h.jsx(Lu,{asChild:!0,children:p}),h.jsx(Ea,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):p});$a.displayName="SidebarMenuButton";const za=l.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?ve:"button";return h.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("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",r&&"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),...n})});za.displayName="SidebarMenuAction";const Wa=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:M("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}));Wa.displayName="SidebarMenuBadge";const Va=l.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return h.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&h.jsx(Rn,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),h.jsx(Rn,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Va.displayName="SidebarMenuSkeleton";const Ha=l.forwardRef(({className:e,...t},r)=>h.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:M("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}));Ha.displayName="SidebarMenuSub";const Ga=l.forwardRef(({...e},t)=>h.jsx("li",{ref:t,...e}));Ga.displayName="SidebarMenuSubItem";const Ua=l.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const i=e?ve:"a";return h.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:M("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",n),...o})});Ua.displayName="SidebarMenuSubButton";const Ya=l.forwardRef(({...e},t)=>h.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ya.displayName="Breadcrumb";const Ka=l.forwardRef(({className:e,...t},r)=>h.jsx("ol",{ref:r,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ka.displayName="BreadcrumbList";const Xa=l.forwardRef(({className:e,...t},r)=>h.jsx("li",{ref:r,className:M("inline-flex items-center gap-1.5",e),...t}));Xa.displayName="BreadcrumbItem";const qa=l.forwardRef(({asChild:e,className:t,...r},n)=>{const o=e?ve:"a";return h.jsx(o,{ref:n,className:M("transition-colors hover:text-foreground",t),...r})});qa.displayName="BreadcrumbLink";const Ja=l.forwardRef(({className:e,...t},r)=>h.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Ja.displayName="BreadcrumbPage";const Za=({children:e,className:t,...r})=>h.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...r,children:e??h.jsx(Wl,{})});Za.displayName="BreadcrumbSeparator";const Qa=({className:e,...t})=>h.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[h.jsx(Hl,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"More"})]});Qa.displayName="BreadcrumbElipssis";exports.Breadcrumb=Ya;exports.BreadcrumbEllipsis=Qa;exports.BreadcrumbItem=Xa;exports.BreadcrumbLink=qa;exports.BreadcrumbList=Ka;exports.BreadcrumbPage=Ja;exports.BreadcrumbSeparator=Za;exports.Button=Sr;exports.Dialog=Kl;exports.DialogClose=ql;exports.DialogContent=_o;exports.DialogDescription=jo;exports.DialogFooter=Do;exports.DialogHeader=ko;exports.DialogOverlay=kr;exports.DialogPortal=No;exports.DialogTitle=Mo;exports.DialogTrigger=Xl;exports.Sidebar=Ra;exports.SidebarContent=Da;exports.SidebarFooter=_a;exports.SidebarGroup=Ma;exports.SidebarGroupAction=Ia;exports.SidebarGroupContent=La;exports.SidebarGroupLabel=ja;exports.SidebarHeader=Na;exports.SidebarInput=Oa;exports.SidebarInset=Ta;exports.SidebarMenu=Fa;exports.SidebarMenuAction=za;exports.SidebarMenuBadge=Wa;exports.SidebarMenuButton=$a;exports.SidebarMenuItem=Ba;exports.SidebarMenuSkeleton=Va;exports.SidebarMenuSub=Ha;exports.SidebarMenuSubButton=Ua;exports.SidebarMenuSubItem=Ga;exports.SidebarProvider=Ca;exports.SidebarRail=Aa;exports.SidebarSeparator=ka;exports.SidebarTrigger=Pa;exports.useSidebar=pt;
|
|
114
|
+
*/const Yl=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Kl=dt("PanelLeft",Yl);/**
|
|
115
|
+
* @license lucide-react v0.482.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Xl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lo=dt("X",Xl),ql=Mo,Jl=Fl,Fo=Do,Zl=Dr,Ir=l.forwardRef(({className:e,...t},r)=>m.jsx(zt,{ref:r,className:M("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}));Ir.displayName=zt.displayName;const $o=l.forwardRef(({className:e,children:t,...r},n)=>m.jsxs(Fo,{children:[m.jsx(Ir,{}),m.jsxs(Bt,{ref:n,className:M("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),...r,children:[t,m.jsxs(Dr,{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:[m.jsx(Lo,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$o.displayName=Bt.displayName;const zo=({className:e,...t})=>m.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});zo.displayName="DialogHeader";const Bo=({className:e,...t})=>m.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bo.displayName="DialogFooter";const Wo=l.forwardRef(({className:e,...t},r)=>m.jsx(Wt,{ref:r,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));Wo.displayName=Wt.displayName;const Vo=l.forwardRef(({className:e,...t},r)=>m.jsx(Vt,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Vo.displayName=Vt.displayName;const cr=768;function Ql(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const r=window.matchMedia(`(max-width: ${cr-1}px)`),n=()=>{t(window.innerWidth<cr)};return r.addEventListener("change",n),t(window.innerWidth<cr),()=>r.removeEventListener("change",n)},[]),!!e}const Lr=l.forwardRef(({className:e,type:t,...r},n)=>m.jsx("input",{type:t,className:M("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:n,...r}));Lr.displayName="Input";var ec="Separator",kn="horizontal",tc=["horizontal","vertical"],Ho=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=kn,...o}=e,a=rc(n)?n:kn,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(te.div,{"data-orientation":a,...s,...o,ref:t})});Ho.displayName=ec;function rc(e){return tc.includes(e)}var Go=Ho;const Uo=l.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>m.jsx(Go,{ref:o,decorative:r,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Uo.displayName=Go.displayName;const nc=Mo,oc=Do,Yo=l.forwardRef(({className:e,...t},r)=>m.jsx(zt,{className:M("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:r}));Yo.displayName=zt.displayName;const ac=Cr("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"}}),Ko=l.forwardRef(({side:e="right",className:t,children:r,...n},o)=>m.jsxs(oc,{children:[m.jsx(Yo,{}),m.jsxs(Bt,{ref:o,className:M(ac({side:e}),t),...n,children:[m.jsxs(Dr,{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:[m.jsx(Lo,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Ko.displayName=Bt.displayName;const Xo=({className:e,...t})=>m.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Xo.displayName="SheetHeader";const qo=l.forwardRef(({className:e,...t},r)=>m.jsx(Wt,{ref:r,className:M("text-lg font-semibold text-foreground",e),...t}));qo.displayName=Wt.displayName;const Jo=l.forwardRef(({className:e,...t},r)=>m.jsx(Vt,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Jo.displayName=Vt.displayName;function jn({className:e,...t}){return m.jsx("div",{className:M("animate-pulse rounded-md bg-primary/10",e),...t})}const ic=["top","right","bottom","left"],Ne=Math.min,oe=Math.max,kt=Math.round,Pt=Math.floor,ge=e=>({x:e,y:e}),sc={left:"right",right:"left",bottom:"top",top:"bottom"},lc={start:"end",end:"start"};function yr(e,t,r){return oe(e,Ne(t,r))}function we(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Fr(e){return e==="x"?"y":"x"}function $r(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function zr(e){return Fr(Te(e))}function cc(e,t,r){r===void 0&&(r=!1);const n=ot(e),o=zr(e),a=$r(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=jt(i)),[i,jt(i)]}function uc(e){const t=jt(e);return[xr(e),t,xr(t)]}function xr(e){return e.replace(/start|end/g,t=>lc[t])}function dc(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function fc(e,t,r,n){const o=ot(e);let a=dc(Ee(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(xr)))),a}function jt(e){return e.replace(/left|right|bottom|top/g,t=>sc[t])}function pc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zo(e){return typeof e!="number"?pc(e):{top:e,right:e,bottom:e,left:e}}function Mt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Mn(e,t,r){let{reference:n,floating:o}=e;const a=Te(t),i=zr(t),s=$r(i),c=Ee(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(ot(t)){case"start":h[i]-=v*(r&&d?-1:1);break;case"end":h[i]+=v*(r&&d?-1:1);break}return h}const mc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Mn(d,n,c),v=n,h={},b=0;for(let g=0;g<s.length;g++){const{name:y,fn:x}=s[g],{x:w,y:C,data:R,reset:P}=await x({x:f,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=C??p,h={...h,[y]:{...h[y],...R}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=Mn(d,v,c)),g=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:h}};async function ct(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=we(t,e),b=Zo(h),y=s[v?p==="floating"?"reference":"floating":p],x=Mt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),R=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},P=Mt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:c}):w);return{top:(x.top-P.top+b.top)/R.y,bottom:(P.bottom-x.bottom+b.bottom)/R.y,left:(x.left-P.left+b.left)/R.x,right:(P.right-x.right+b.right)/R.x}}const gc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const p=Zo(f),v={x:r,y:n},h=zr(o),b=$r(h),g=await i.getDimensions(d),y=h==="y",x=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[h]-v[h]-a.floating[b],P=v[h]-a.reference[h],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let N=S?S[C]:0;(!N||!await(i.isElement==null?void 0:i.isElement(S)))&&(N=s.floating[C]||a.floating[b]);const B=R/2-P/2,G=N/2-g[b]/2-1,V=Ne(p[x],G),q=Ne(p[w],G),K=V,F=N-g[b]-q,D=N/2-g[b]/2+B,U=yr(K,D,F),k=!c.arrow&&ot(o)!=null&&D!==U&&a.reference[b]/2-(D<K?V:q)-g[b]/2<0,Y=k?D<K?D-K:D-F:0;return{[h]:v[h]+Y,data:{[h]:U,centerOffset:D-U-Y,...k&&{alignmentOffset:Y}},reset:k}}}),hc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...y}=we(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Ee(o),w=Te(s),C=Ee(s)===s,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=v||(C||!g?[jt(s)]:uc(s)),S=b!=="none";!v&&S&&P.push(...fc(s,g,b,R));const N=[s,...P],B=await ct(t,y),G=[];let V=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&G.push(B[x]),p){const D=cc(o,i,R);G.push(B[D[0]],B[D[1]])}if(V=[...V,{placement:o,overflows:G}],!G.every(D=>D<=0)){var q,K;const D=(((q=a.flip)==null?void 0:q.index)||0)+1,U=N[D];if(U)return{data:{index:D,overflows:V},reset:{placement:U}};let k=(K=V.filter(Y=>Y.overflows[0]<=0).sort((Y,_)=>Y.overflows[1]-_.overflows[1])[0])==null?void 0:K.placement;if(!k)switch(h){case"bestFit":{var F;const Y=(F=V.filter(_=>{if(S){const z=Te(_.placement);return z===w||z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(z=>z>0).reduce((z,Z)=>z+Z,0)]).sort((_,z)=>_[1]-z[1])[0])==null?void 0:F[0];Y&&(k=Y);break}case"initialPlacement":k=s;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Dn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function In(e){return ic.some(t=>e[t]>=0)}const vc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=we(e,t);switch(n){case"referenceHidden":{const a=await ct(t,{...o,elementContext:"reference"}),i=Dn(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:In(i)}}}case"escaped":{const a=await ct(t,{...o,altBoundary:!0}),i=Dn(a,r.floating);return{data:{escapedOffsets:i,escaped:In(i)}}}default:return{}}}}};async function bc(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Ee(r),s=ot(r),c=Te(r)==="y",d=["left","top"].includes(i)?-1:1,f=a&&c?-1:1,p=we(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(h=s==="end"?b*-1:b),c?{x:h*f,y:v*d}:{x:v*d,y:h*f}}const yc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await bc(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},xc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=we(e,t),d={x:r,y:n},f=await ct(t,c),p=Te(Ee(o)),v=Fr(p);let h=d[v],b=d[p];if(a){const y=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=h+f[y],C=h-f[x];h=yr(w,h,C)}if(i){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=b+f[y],C=b-f[x];b=yr(w,b,C)}const g=s.fn({...t,[v]:h,[p]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[v]:a,[p]:i}}}}}},wc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=we(e,t),f={x:r,y:n},p=Te(o),v=Fr(p);let h=f[v],b=f[p];const g=we(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=v==="y"?"height":"width",R=a.reference[v]-a.floating[C]+y.mainAxis,P=a.reference[v]+a.reference[C]-y.mainAxis;h<R?h=R:h>P&&(h=P)}if(d){var x,w;const C=v==="y"?"width":"height",R=["top","left"].includes(Ee(o)),P=a.reference[p]-a.floating[C]+(R&&((x=i.offset)==null?void 0:x[p])||0)+(R?0:y.crossAxis),S=a.reference[p]+a.reference[C]+(R?0:((w=i.offset)==null?void 0:w[p])||0)-(R?y.crossAxis:0);b<P?b=P:b>S&&(b=S)}return{[v]:h,[p]:b}}}},Ec=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...d}=we(e,t),f=await ct(t,d),p=Ee(o),v=ot(o),h=Te(o)==="y",{width:b,height:g}=a.floating;let y,x;p==="top"||p==="bottom"?(y=p,x=v===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=p,y=v==="end"?"top":"bottom");const w=g-f.top-f.bottom,C=b-f.left-f.right,R=Ne(g-f[y],w),P=Ne(b-f[x],C),S=!t.middlewareData.shift;let N=R,B=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=w),S&&!v){const V=oe(f.left,0),q=oe(f.right,0),K=oe(f.top,0),F=oe(f.bottom,0);h?B=b-2*(V!==0||q!==0?V+q:oe(f.left,f.right)):N=g-2*(K!==0||F!==0?K+F:oe(f.top,f.bottom))}await c({...t,availableWidth:B,availableHeight:N});const G=await i.getDimensions(s.floating);return b!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Ht(){return typeof window<"u"}function at(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return Ht()?e instanceof Node||e instanceof ae(e).Node:!1}function ce(e){return Ht()?e instanceof Element||e instanceof ae(e).Element:!1}function he(e){return Ht()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function Ln(e){return!Ht()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function ft(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Sc(e){return["table","td","th"].includes(at(e))}function Gt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Br(e){const t=Wr(),r=ce(e)?ue(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Cc(e){let t=Oe(e);for(;he(t)&&!Qe(t);){if(Br(t))return t;if(Gt(t))return null;t=Oe(t)}return null}function Wr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qe(e){return["html","body","#document"].includes(at(e))}function ue(e){return ae(e).getComputedStyle(e)}function Ut(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ln(e)&&e.host||be(e);return Ln(t)?t.host:t}function ea(e){const t=Oe(e);return Qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&ft(t)?t:ea(t)}function ut(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ea(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ae(o);if(a){const s=wr(i);return t.concat(i,i.visualViewport||[],ft(o)?o:[],s&&r?ut(s):[])}return t.concat(o,ut(o,[],r))}function wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ta(e){const t=ue(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=he(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=kt(r)!==a||kt(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Vr(e){return ce(e)?e:e.contextElement}function Ze(e){const t=Vr(e);if(!he(t))return ge(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ta(t);let i=(a?kt(r.width):r.width)/n,s=(a?kt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Rc=ge(0);function ra(e){const t=ae(e);return!Wr()||!t.visualViewport?Rc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ae(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Vr(e);let i=ge(1);t&&(n?ce(n)&&(i=Ze(n)):i=Ze(e));const s=Pc(a,r,n)?ra(a):ge(0);let c=(o.left+s.x)/i.x,d=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const v=ae(a),h=n&&ce(n)?ae(n):n;let b=v,g=wr(b);for(;g&&n&&h!==b;){const y=Ze(g),x=g.getBoundingClientRect(),w=ue(g),C=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,R=x.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=C,d+=R,b=ae(g),g=wr(b)}}return Mt({width:f,height:p,x:c,y:d})}function Hr(e,t){const r=Ut(e).scrollLeft;return t?t.left+r:We(be(e)).left+r}function na(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Hr(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function Ac(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=be(n),s=t?Gt(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},d=ge(1);const f=ge(0),p=he(n);if((p||!p&&!a)&&((at(n)!=="body"||ft(i))&&(c=Ut(n)),he(n))){const h=We(n);d=Ze(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const v=i&&!p&&!a?na(i,c,!0):ge(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+v.x,y:r.y*d.y-c.scrollTop*d.y+f.y+v.y}}function Nc(e){return Array.from(e.getClientRects())}function Tc(e){const t=be(e),r=Ut(e),n=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=oe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Hr(e);const s=-r.scrollTop;return ue(n).direction==="rtl"&&(i+=oe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Oc(e,t){const r=ae(e),n=be(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=Wr();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function _c(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=he(e)?Ze(e):ge(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:i,height:s,x:c,y:d}}function Fn(e,t,r){let n;if(t==="viewport")n=Oc(e,r);else if(t==="document")n=Tc(be(e));else if(ce(t))n=_c(t,r);else{const o=ra(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mt(n)}function oa(e,t){const r=Oe(e);return r===t||!ce(r)||Qe(r)?!1:ue(r).position==="fixed"||oa(r,t)}function kc(e,t){const r=t.get(e);if(r)return r;let n=ut(e,[],!1).filter(s=>ce(s)&&at(s)!=="body"),o=null;const a=ue(e).position==="fixed";let i=a?Oe(e):e;for(;ce(i)&&!Qe(i);){const s=ue(i),c=Br(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ft(i)&&!c&&oa(e,i))?n=n.filter(f=>f!==i):o=s,i=Oe(i)}return t.set(e,n),n}function jc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Gt(t)?[]:kc(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((d,f)=>{const p=Fn(t,f,o);return d.top=oe(p.top,d.top),d.right=Ne(p.right,d.right),d.bottom=Ne(p.bottom,d.bottom),d.left=oe(p.left,d.left),d},Fn(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mc(e){const{width:t,height:r}=ta(e);return{width:t,height:r}}function Dc(e,t,r){const n=he(t),o=be(t),a=r==="fixed",i=We(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=ge(0);if(n||!n&&!a)if((at(t)!=="body"||ft(o))&&(s=Ut(t)),n){const v=We(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=Hr(o));const d=o&&!n&&!a?na(o,s):ge(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function ur(e){return ue(e).position==="static"}function $n(e,t){if(!he(e)||ue(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return be(e)===r&&(r=r.ownerDocument.body),r}function aa(e,t){const r=ae(e);if(Gt(e))return r;if(!he(e)){let o=Oe(e);for(;o&&!Qe(o);){if(ce(o)&&!ur(o))return o;o=Oe(o)}return r}let n=$n(e,t);for(;n&&Sc(n)&&ur(n);)n=$n(n,t);return n&&Qe(n)&&ur(n)&&!Br(n)?r:n||Cc(e)||r}const Ic=async function(e){const t=this.getOffsetParent||aa,r=this.getDimensions,n=await r(e.floating);return{reference:Dc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lc(e){return ue(e).direction==="rtl"}const Fc={convertOffsetParentRelativeRectToViewportRelativeRect:Ac,getDocumentElement:be,getClippingRect:jc,getOffsetParent:aa,getElementRects:Ic,getClientRects:Nc,getDimensions:Mc,getScale:Ze,isElement:ce,isRTL:Lc};function ia(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $c(e,t){let r=null,n;const o=be(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:v,height:h}=d;if(s||t(),!v||!h)return;const b=Pt(p),g=Pt(o.clientWidth-(f+v)),y=Pt(o.clientHeight-(p+h)),x=Pt(f),C={rootMargin:-b+"px "+-g+"px "+-y+"px "+-x+"px",threshold:oe(0,Ne(1,c))||1};let R=!0;function P(S){const N=S[0].intersectionRatio;if(N!==c){if(!R)return i();N?i(!1,N):n=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!ia(d,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,C)}r.observe(e)}return i(!0),a}function zc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Vr(e),f=o||a?[...d?ut(d):[],...ut(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&s?$c(d,r):null;let v=-1,h=null;i&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let b,g=c?We(e):null;c&&y();function y(){const x=We(e);g&&!ia(g,x)&&r(),g=x,b=requestAnimationFrame(y)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(b)}}const Bc=yc,Wc=xc,Vc=hc,Hc=Ec,Gc=vc,zn=gc,Uc=wc,Yc=(e,t,r)=>{const n=new Map,o={platform:Fc,...r},a={...o.platform,_c:n};return mc(e,t,{...o,platform:a})};var Ot=typeof document<"u"?se.useLayoutEffect:se.useEffect;function Dt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Dt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Dt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function sa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bn(e,t){const r=sa(e);return Math.round(t*r)/r}function dr(e){const t=l.useRef(e);return Ot(()=>{t.current=e}),t}function Kc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=l.useState(n);Dt(v,n)||h(n);const[b,g]=l.useState(null),[y,x]=l.useState(null),w=l.useCallback(_=>{_!==S.current&&(S.current=_,g(_))},[]),C=l.useCallback(_=>{_!==N.current&&(N.current=_,x(_))},[]),R=a||b,P=i||y,S=l.useRef(null),N=l.useRef(null),B=l.useRef(f),G=c!=null,V=dr(c),q=dr(o),K=dr(d),F=l.useCallback(()=>{if(!S.current||!N.current)return;const _={placement:t,strategy:r,middleware:v};q.current&&(_.platform=q.current),Yc(S.current,N.current,_).then(z=>{const Z={...z,isPositioned:K.current!==!1};D.current&&!Dt(B.current,Z)&&(B.current=Z,Hn.flushSync(()=>{p(Z)}))})},[v,t,r,q,K]);Ot(()=>{d===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const D=l.useRef(!1);Ot(()=>(D.current=!0,()=>{D.current=!1}),[]),Ot(()=>{if(R&&(S.current=R),P&&(N.current=P),R&&P){if(V.current)return V.current(R,P,F);F()}},[R,P,F,V,G]);const U=l.useMemo(()=>({reference:S,floating:N,setReference:w,setFloating:C}),[w,C]),k=l.useMemo(()=>({reference:R,floating:P}),[R,P]),Y=l.useMemo(()=>{const _={position:r,left:0,top:0};if(!k.floating)return _;const z=Bn(k.floating,f.x),Z=Bn(k.floating,f.y);return s?{..._,transform:"translate("+z+"px, "+Z+"px)",...sa(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:Z}},[r,s,k.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:F,refs:U,elements:k,floatingStyles:Y}),[f,F,U,k,Y])}const Xc=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?zn({element:n.current,padding:o}).fn(r):{}:n?zn({element:n,padding:o}).fn(r):{}}}},qc=(e,t)=>({...Bc(e),options:[e,t]}),Jc=(e,t)=>({...Wc(e),options:[e,t]}),Zc=(e,t)=>({...Uc(e),options:[e,t]}),Qc=(e,t)=>({...Vc(e),options:[e,t]}),eu=(e,t)=>({...Hc(e),options:[e,t]}),tu=(e,t)=>({...Gc(e),options:[e,t]}),ru=(e,t)=>({...Xc(e),options:[e,t]});var nu="Arrow",la=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return m.jsx(te.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});la.displayName=nu;var ou=la;function au(e){const[t,r]=l.useState(void 0);return ze(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,s=d.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Gr="Popper",[ca,ua]=Nr(Gr),[iu,da]=ca(Gr),fa=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return m.jsx(iu,{scope:t,anchor:n,onAnchorChange:o,children:r})};fa.displayName=Gr;var pa="PopperAnchor",ma=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=da(pa,r),i=l.useRef(null),s=de(t,i);return l.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:m.jsx(te.div,{...o,ref:s})});ma.displayName=pa;var Ur="PopperContent",[su,lu]=ca(Ur),ga=l.forwardRef((e,t)=>{var le,je,Ve,Me,gt,it;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,y=da(Ur,r),[x,w]=l.useState(null),C=de(t,De=>w(De)),[R,P]=l.useState(null),S=au(R),N=(S==null?void 0:S.width)??0,B=(S==null?void 0:S.height)??0,G=n+(a!=="center"?"-"+a:""),V=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},q=Array.isArray(d)?d:[d],K=q.length>0,F={padding:V,boundary:q.filter(uu),altBoundary:K},{refs:D,floatingStyles:U,placement:k,isPositioned:Y,middlewareData:_}=Kc({strategy:"fixed",placement:G,whileElementsMounted:(...De)=>zc(...De,{animationFrame:h==="always"}),elements:{reference:y.anchor},middleware:[qc({mainAxis:o+B,alignmentAxis:i}),c&&Jc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Zc():void 0,...F}),c&&Qc({...F}),eu({...F,apply:({elements:De,rects:ht,availableWidth:He,availableHeight:Ie})=>{const{width:vt,height:bt}=ht.reference,xe=De.floating.style;xe.setProperty("--radix-popper-available-width",`${He}px`),xe.setProperty("--radix-popper-available-height",`${Ie}px`),xe.setProperty("--radix-popper-anchor-width",`${vt}px`),xe.setProperty("--radix-popper-anchor-height",`${bt}px`)}}),R&&ru({element:R,padding:s}),du({arrowWidth:N,arrowHeight:B}),v&&tu({strategy:"referenceHidden",...F})]}),[z,Z]=ba(k),pe=Ae(b);ze(()=>{Y&&(pe==null||pe())},[Y,pe]);const _e=(le=_.arrow)==null?void 0:le.x,ke=(je=_.arrow)==null?void 0:je.y,Se=((Ve=_.arrow)==null?void 0:Ve.centerOffset)!==0,[Ce,ye]=l.useState();return ze(()=>{x&&ye(window.getComputedStyle(x).zIndex)},[x]),m.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(Me=_.transformOrigin)==null?void 0:Me.x,(gt=_.transformOrigin)==null?void 0:gt.y].join(" "),...((it=_.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(su,{scope:r,placedSide:z,onArrowChange:P,arrowX:_e,arrowY:ke,shouldHideArrow:Se,children:m.jsx(te.div,{"data-side":z,"data-align":Z,...g,ref:C,style:{...g.style,animation:Y?void 0:"none"}})})})});ga.displayName=Ur;var ha="PopperArrow",cu={top:"bottom",right:"left",bottom:"top",left:"right"},va=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=lu(ha,n),i=cu[a.placedSide];return m.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:m.jsx(ou,{...o,ref:r,style:{...o.style,display:"block"}})})});va.displayName=ha;function uu(e){return e!==null}var du=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:r,rects:n,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=ba(r),p={start:"0%",center:"50%",end:"100%"}[f],v=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let b="",g="";return d==="bottom"?(b=i?p:`${v}px`,g=`${-c}px`):d==="top"?(b=i?p:`${v}px`,g=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,g=i?p:`${h}px`):d==="left"&&(b=`${n.floating.width+c}px`,g=i?p:`${h}px`),{data:{x:b,y:g}}}});function ba(e){const[t,r="center"]=e.split("-");return[t,r]}var fu=fa,pu=ma,mu=ga,gu=va,hu="VisuallyHidden",ya=l.forwardRef((e,t)=>m.jsx(te.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}}));ya.displayName=hu;var vu=ya,[Yt,qu]=Nr("Tooltip",[ua]),Kt=ua(),xa="TooltipProvider",bu=700,Er="tooltip.open",[yu,Yr]=Yt(xa),wa=e=>{const{__scopeTooltip:t,delayDuration:r=bu,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),m.jsx(yu,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:a})};wa.displayName=xa;var Xt="Tooltip",[xu,pt]=Yt(Xt),Ea=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Yr(Xt,e.__scopeTooltip),d=Kt(t),[f,p]=l.useState(null),v=At(),h=l.useRef(0),b=i??c.disableHoverableContent,g=s??c.delayDuration,y=l.useRef(!1),[x=!1,w]=no({prop:n,defaultProp:o,onChange:N=>{N?(c.onOpen(),document.dispatchEvent(new CustomEvent(Er))):c.onClose(),a==null||a(N)}}),C=l.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),R=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),P=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),S=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},g)},[g,w]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),m.jsx(fu,{...d,children:m.jsx(xu,{scope:t,contentId:v,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?S():R()},[c.isOpenDelayed,S,R]),onTriggerLeave:l.useCallback(()=>{b?P():(window.clearTimeout(h.current),h.current=0)},[P,b]),onOpen:R,onClose:P,disableHoverableContent:b,children:r})})};Ea.displayName=Xt;var Sr="TooltipTrigger",Sa=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=pt(Sr,r),a=Yr(Sr,r),i=Kt(r),s=l.useRef(null),c=de(t,s,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),m.jsx(pu,{asChild:!0,...i,children:m.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:ne(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ne(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});Sa.displayName=Sr;var Kr="TooltipPortal",[wu,Eu]=Yt(Kr,{forceMount:void 0}),Ca=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=pt(Kr,t);return m.jsx(wu,{scope:t,forceMount:r,children:m.jsx(nt,{present:r||a.open,children:m.jsx(Or,{asChild:!0,container:o,children:n})})})};Ca.displayName=Kr;var et="TooltipContent",Ra=l.forwardRef((e,t)=>{const r=Eu(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=pt(et,e.__scopeTooltip);return m.jsx(nt,{present:n||i.open,children:i.disableHoverableContent?m.jsx(Pa,{side:o,...a,ref:t}):m.jsx(Su,{side:o,...a,ref:t})})}),Su=l.forwardRef((e,t)=>{const r=pt(et,e.__scopeTooltip),n=Yr(et,e.__scopeTooltip),o=l.useRef(null),a=de(t,o),[i,s]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,v=l.useCallback(()=>{s(null),p(!1)},[p]),h=l.useCallback((b,g)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},w=Au(x,y.getBoundingClientRect()),C=Nu(x,w),R=Tu(g.getBoundingClientRect()),P=_u([...C,...R]);s(P),p(!0)},[p]);return l.useEffect(()=>()=>v(),[v]),l.useEffect(()=>{if(c&&f){const b=y=>h(y,f),g=y=>h(y,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",g)}}},[c,f,h,v]),l.useEffect(()=>{if(i){const b=g=>{const y=g.target,x={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),C=!Ou(x,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,d,v]),m.jsx(Pa,{...e,ref:a})}),[Cu,Ru]=Yt(Xt,{isInside:!1}),Pa=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=pt(et,r),d=Kt(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Er,f),()=>document.removeEventListener(Er,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=v=>{const h=v.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),m.jsx(Tr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:m.jsxs(mu,{"data-state":c.stateAttribute,...d,...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:[m.jsx(Un,{children:n}),m.jsx(Cu,{scope:r,isInside:!0,children:m.jsx(vu,{id:c.contentId,role:"tooltip",children:o||n})})]})})});Ra.displayName=et;var Aa="TooltipArrow",Pu=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Kt(r);return Ru(Aa,r).isInside?null:m.jsx(gu,{...o,...n,ref:t})});Pu.displayName=Aa;function Au(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Nu(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Tu(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Ou(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,d=t[i].x,f=t[i].y;c>n!=f>n&&r<(d-s)*(n-c)/(f-c)+s&&(o=!o)}return o}function _u(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ku(t)}function ku(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ju=wa,Mu=Ea,Du=Sa,Iu=Ca,Na=Ra;const Lu=ju,Fu=Mu,$u=Du,Ta=l.forwardRef(({className:e,sideOffset:t=4,...r},n)=>m.jsx(Iu,{children:m.jsx(Na,{ref:n,sideOffset:t,className:M("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),...r})}));Ta.displayName=Na.displayName;const zu="sidebar_state",Bu=60*60*24*7,Wu="16rem",Vu="18rem",Hu="3rem",Gu="b",Oa=l.createContext(null);function mt(){const e=l.useContext(Oa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const _a=l.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i},s)=>{const c=Ql(),[d,f]=l.useState(!1),[p,v]=l.useState(e),h=t??p,b=l.useCallback(w=>{const C=typeof w=="function"?w(h):w;r?r(C):v(C),document.cookie=`${zu}=${C}; path=/; max-age=${Bu}`},[r,h]),g=l.useCallback(()=>c?f(w=>!w):b(w=>!w),[c,b,f]);l.useEffect(()=>{const w=C=>{C.key===Gu&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),g())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[g]);const y=h?"expanded":"collapsed",x=l.useMemo(()=>({state:y,open:h,setOpen:b,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:g}),[y,h,b,c,d,f,g]);return m.jsx(Oa.Provider,{value:x,children:m.jsx(Lu,{delayDuration:0,children:m.jsx("div",{style:{"--sidebar-width":Wu,"--sidebar-width-icon":Hu,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:s,...i,children:a})})})});_a.displayName="SidebarProvider";const ka=l.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:d,setOpenMobile:f}=mt();return r==="none"?m.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...a,children:o}):s?m.jsx(nc,{open:d,onOpenChange:f,...a,children:m.jsxs(Ko,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Vu},side:e,children:[m.jsxs(Xo,{className:"sr-only",children:[m.jsx(qo,{children:"Sidebar"}),m.jsx(Jo,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[m.jsx("div",{className:M("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]")}),m.jsx("div",{className:M("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",n),...a,children:m.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})})]})});ka.displayName="Sidebar";const ja=l.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=mt();return m.jsxs(Ar,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...r,children:[m.jsx(Kl,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ja.displayName="SidebarTrigger";const Ma=l.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=mt();return m.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:M("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})});Ma.displayName="SidebarRail";const Da=l.forwardRef(({className:e,...t},r)=>m.jsx("main",{ref:r,className:M("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}));Da.displayName="SidebarInset";const Ia=l.forwardRef(({className:e,...t},r)=>m.jsx(Lr,{ref:r,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Ia.displayName="SidebarInput";const La=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));La.displayName="SidebarHeader";const Fa=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));Fa.displayName="SidebarFooter";const $a=l.forwardRef(({className:e,...t},r)=>m.jsx(Uo,{ref:r,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));$a.displayName="SidebarSeparator";const za=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));za.displayName="SidebarContent";const Ba=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ba.displayName="SidebarGroup";const Wa=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ve:"div";return m.jsx(o,{ref:n,"data-sidebar":"group-label",className:M("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),...r})});Wa.displayName="SidebarGroupLabel";const Va=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ve:"button";return m.jsx(o,{ref:n,"data-sidebar":"group-action",className:M("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),...r})});Va.displayName="SidebarGroupAction";const Ha=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));Ha.displayName="SidebarGroupContent";const Ga=l.forwardRef(({className:e,...t},r)=>m.jsx("ul",{ref:r,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));Ga.displayName="SidebarMenu";const Ua=l.forwardRef(({className:e,...t},r)=>m.jsx("li",{ref:r,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));Ua.displayName="SidebarMenuItem";const Uu=Cr("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"}}),Ya=l.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i},s)=>{const c=e?ve:"button",{isMobile:d,state:f}=mt(),p=m.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:M(Uu({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Fu,{children:[m.jsx($u,{asChild:!0,children:p}),m.jsx(Ta,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):p});Ya.displayName="SidebarMenuButton";const Ka=l.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?ve:"button";return m.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("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",r&&"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),...n})});Ka.displayName="SidebarMenuAction";const Xa=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:M("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}));Xa.displayName="SidebarMenuBadge";const qa=l.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&m.jsx(jn,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(jn,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});qa.displayName="SidebarMenuSkeleton";const Ja=l.forwardRef(({className:e,...t},r)=>m.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:M("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}));Ja.displayName="SidebarMenuSub";const Za=l.forwardRef(({...e},t)=>m.jsx("li",{ref:t,...e}));Za.displayName="SidebarMenuSubItem";const Qa=l.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const i=e?ve:"a";return m.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:M("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",n),...o})});Qa.displayName="SidebarMenuSubButton";const Xr=l.forwardRef(({...e},t)=>m.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Xr.displayName="Breadcrumb";const qr=l.forwardRef(({className:e,...t},r)=>m.jsx("ol",{ref:r,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));qr.displayName="BreadcrumbList";const It=l.forwardRef(({className:e,...t},r)=>m.jsx("li",{ref:r,className:M("inline-flex items-center gap-1.5",e),...t}));It.displayName="BreadcrumbItem";const Lt=l.forwardRef(({asChild:e,className:t,...r},n)=>{const o=e?ve:"a";return m.jsx(o,{ref:n,className:M("transition-colors hover:text-foreground",t),...r})});Lt.displayName="BreadcrumbLink";const Jr=l.forwardRef(({className:e,...t},r)=>m.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Jr.displayName="BreadcrumbPage";const Ft=({children:e,className:t,...r})=>m.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...r,children:e??m.jsx(br,{})});Ft.displayName="BreadcrumbSeparator";const ei=({className:e,...t})=>m.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[m.jsx(Hl,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"More"})]});ei.displayName="BreadcrumbElipssis";function Yu({title:e,breadcrumbItems:t=[],showHomeLink:r=!0,className:n="",children:o}){return m.jsx("header",{className:`border-b pb-4 ${n}`,children:m.jsxs("div",{className:"container mx-auto p-4",children:[(t.length>0||r)&&m.jsx(Xr,{className:"mb-2",children:m.jsxs(qr,{children:[r&&m.jsxs(m.Fragment,{children:[m.jsx(It,{children:m.jsxs(Lt,{href:"/",className:"flex items-center",children:[m.jsx(Ul,{className:"h-3.5 w-3.5 mr-1"}),"Home"]})}),t.length>0&&m.jsx(Ft,{children:m.jsx(br,{className:"h-3.5 w-3.5"})})]}),t.map((a,i)=>m.jsxs(se.Fragment,{children:[m.jsx(It,{children:a.isCurrentPage?m.jsx(Jr,{children:a.label}):m.jsx(Lt,{href:a.href||"#",children:a.label})}),i<t.length-1&&m.jsx(Ft,{children:m.jsx(br,{className:"h-3.5 w-3.5"})})]},i))]})}),e&&m.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:e}),o]})})}exports.Breadcrumb=Xr;exports.BreadcrumbEllipsis=ei;exports.BreadcrumbItem=It;exports.BreadcrumbLink=Lt;exports.BreadcrumbList=qr;exports.BreadcrumbPage=Jr;exports.BreadcrumbSeparator=Ft;exports.Button=Ar;exports.Dialog=ql;exports.DialogClose=Zl;exports.DialogContent=$o;exports.DialogDescription=Vo;exports.DialogFooter=Bo;exports.DialogHeader=zo;exports.DialogOverlay=Ir;exports.DialogPortal=Fo;exports.DialogTitle=Wo;exports.DialogTrigger=Jl;exports.Header=Yu;exports.Input=Lr;exports.Sidebar=ka;exports.SidebarContent=za;exports.SidebarFooter=Fa;exports.SidebarGroup=Ba;exports.SidebarGroupAction=Va;exports.SidebarGroupContent=Ha;exports.SidebarGroupLabel=Wa;exports.SidebarHeader=La;exports.SidebarInput=Ia;exports.SidebarInset=Da;exports.SidebarMenu=Ga;exports.SidebarMenuAction=Ka;exports.SidebarMenuBadge=Xa;exports.SidebarMenuButton=Ya;exports.SidebarMenuItem=Ua;exports.SidebarMenuSkeleton=qa;exports.SidebarMenuSub=Ja;exports.SidebarMenuSubButton=Qa;exports.SidebarMenuSubItem=Za;exports.SidebarProvider=_a;exports.SidebarRail=Ma;exports.SidebarSeparator=$a;exports.SidebarTrigger=ja;exports.useSidebar=mt;
|