ui-arreya-components 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.umd.js CHANGED
@@ -1,31 +1,104 @@
1
- (function(J,ne){typeof exports=="object"&&typeof module<"u"?ne(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],ne):(J=typeof globalThis<"u"?globalThis:J||self,ne(J.ui={},J.React))})(this,function(J,ne){"use strict";function cr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const j=cr(ne);var ye={exports:{}},pe={};/**
1
+ (function(q,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(q=typeof globalThis<"u"?globalThis:q||self,te(q.ui={},q.React,q.ReactDOM))})(this,function(q,te,Gn){"use strict";function Un(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=Un(te),Yn=Un(Gn);var mt={exports:{}},st={};/**
2
2
  * @license React
3
- * react-jsx-runtime.production.js
3
+ * react-jsx-runtime.production.min.js
4
4
  *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
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 Ne;function dr(){if(Ne)return pe;Ne=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(o,s,a){var c=null;if(a!==void 0&&(c=""+a),s.key!==void 0&&(c=""+s.key),"key"in s){a={};for(var b in s)b!=="key"&&(a[b]=s[b])}else a=s;return s=a.ref,{$$typeof:e,type:o,key:c,ref:s!==void 0?s:null,props:a}}return pe.Fragment=n,pe.jsx=t,pe.jsxs=t,pe}var be={};/**
9
+ */var Kn;function Ai(){if(Kn)return st;Kn=1;var e=te,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,d){var f,p={},h=null,g=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)r.call(c,f)&&!i.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:h,ref:g,props:p,_owner:o.current}}return st.Fragment=n,st.jsx=a,st.jsxs=a,st}var lt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Pe;function ur(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){function e(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===R?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case f:return"Fragment";case F:return"Portal";case me:return"Profiler";case N:return"StrictMode";case D:return"Suspense";case I:return"SuspenseList"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case Q:return(r.displayName||"Context")+".Provider";case he:return(r._context.displayName||"Context")+".Consumer";case le:var d=r.render;return r=r.displayName,r||(r=d.displayName||d.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case P:return d=r.displayName||null,d!==null?d:e(r.type)||"Memo";case M:d=r._payload,r=r._init;try{return e(r(d))}catch{}}return null}function n(r){return""+r}function t(r){try{n(r);var d=!1}catch{d=!0}if(d){d=console;var u=d.error,h=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return u.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",h),n(r)}}function o(){}function s(){if($===0){re=console.log,ue=console.info,te=console.warn,er=console.error,rr=console.group,tr=console.groupCollapsed,or=console.groupEnd;var r={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}$++}function a(){if($--,$===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},r,{value:re}),info:W({},r,{value:ue}),warn:W({},r,{value:te}),error:W({},r,{value:er}),group:W({},r,{value:rr}),groupCollapsed:W({},r,{value:tr}),groupEnd:W({},r,{value:or})})}0>$&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function c(r){if(_e===void 0)try{throw Error()}catch(u){var d=u.stack.trim().match(/\n( *(at )?)/);_e=d&&d[1]||"",nr=-1<u.stack.indexOf(`
18
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
19
- `+_e+r+nr}function b(r,d){if(!r||ze)return"";var u=Oe.get(r);if(u!==void 0)return u;ze=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var h=null;h=E.H,E.H=null,s();try{var T={DetermineComponentFrameRoot:function(){try{if(d){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(U){var Ee=U}Reflect.construct(r,[],q)}else{try{q.call()}catch(U){Ee=U}r.call(q.prototype)}}else{try{throw Error()}catch(U){Ee=U}(q=r())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(U){if(U&&Ee&&typeof U.stack=="string")return[U.stack,Ee.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=T.DetermineComponentFrameRoot(),L=g[0],fe=g[1];if(L&&fe){var _=L.split(`
20
- `),oe=fe.split(`
21
- `);for(g=w=0;w<_.length&&!_[w].includes("DetermineComponentFrameRoot");)w++;for(;g<oe.length&&!oe[g].includes("DetermineComponentFrameRoot");)g++;if(w===_.length||g===oe.length)for(w=_.length-1,g=oe.length-1;1<=w&&0<=g&&_[w]!==oe[g];)g--;for(;1<=w&&0<=g;w--,g--)if(_[w]!==oe[g]){if(w!==1||g!==1)do if(w--,g--,0>g||_[w]!==oe[g]){var ve=`
22
- `+_[w].replace(" at new "," at ");return r.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",r.displayName)),typeof r=="function"&&Oe.set(r,ve),ve}while(1<=w&&0<=g);break}}}finally{ze=!1,E.H=h,a(),Error.prepareStackTrace=u}return _=(_=r?r.displayName||r.name:"")?c(_):"",typeof r=="function"&&Oe.set(r,_),_}function p(r){if(r==null)return"";if(typeof r=="function"){var d=r.prototype;return b(r,!(!d||!d.isReactComponent))}if(typeof r=="string")return c(r);switch(r){case D:return c("Suspense");case I:return c("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case le:return r=b(r.render,!1),r;case P:return p(r.type);case M:d=r._payload,r=r._init;try{return p(r(d))}catch{}}return""}function v(){var r=E.A;return r===null?null:r.getOwner()}function x(r){if(ee.call(r,"key")){var d=Object.getOwnPropertyDescriptor(r,"key").get;if(d&&d.isReactWarning)return!1}return r.key!==void 0}function A(r,d){function u(){sr||(sr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",d))}u.isReactWarning=!0,Object.defineProperty(r,"key",{get:u,configurable:!0})}function z(){var r=e(this.type);return ar[r]||(ar[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function Y(r,d,u,h,T,w){return u=w.ref,r={$$typeof:G,type:r,key:d,props:w,_owner:T},(u!==void 0?u:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:z}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function C(r,d,u,h,T,w){if(typeof r=="string"||typeof r=="function"||r===f||r===me||r===N||r===D||r===I||r===y||typeof r=="object"&&r!==null&&(r.$$typeof===M||r.$$typeof===P||r.$$typeof===Q||r.$$typeof===he||r.$$typeof===le||r.$$typeof===we||r.getModuleId!==void 0)){var g=d.children;if(g!==void 0)if(h)if(de(g)){for(h=0;h<g.length;h++)S(g[h],r);Object.freeze&&Object.freeze(g)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else S(g,r)}else g="",(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),r===null?h="null":de(r)?h="array":r!==void 0&&r.$$typeof===G?(h="<"+(e(r.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):h=typeof r,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,g);if(ee.call(d,"key")){g=e(r);var L=Object.keys(d).filter(function(_){return _!=="key"});h=0<L.length?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}",ir[g+h]||(L=0<L.length?"{"+L.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Xn;function Ti(){return Xn||(Xn=1,process.env.NODE_ENV!=="production"&&function(){var e=te,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=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"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function y(u){if(u===null||typeof u!="object")return null;var E=b&&u[b]||u[m];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),D=1;D<E;D++)A[D-1]=arguments[D];S("error",u,A)}}function S(u,E,A){{var D=x.ReactDebugCurrentFrame,B=D.getStackAddendum();B!==""&&(E+="%s",A=A.concat([B]));var H=A.map(function($){return String($)});H.unshift("Warning: "+E),Function.prototype.apply.call(console[u],console,H)}}var R=!1,P=!1,C=!1,T=!1,W=!1,G;G=Symbol.for("react.module.reference");function V(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===i||W||u===o||u===d||u===f||T||u===g||R||P||C||typeof u=="object"&&u!==null&&(u.$$typeof===h||u.$$typeof===p||u.$$typeof===a||u.$$typeof===s||u.$$typeof===c||u.$$typeof===G||u.getModuleId!==void 0))}function J(u,E,A){var D=u.displayName;if(D)return D;var B=E.displayName||E.name||"";return B!==""?A+"("+B+")":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 r:return"Fragment";case n:return"Portal";case i: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 a:var A=u;return K(A._context)+".Provider";case c:return J(u,u.render,"ForwardRef");case p:var D=u.displayName||null;return D!==null?D:F(u.type)||"Memo";case h:{var B=u,H=B._payload,$=B._init;try{return F($(H))}catch{return null}}}return null}var j=Object.assign,U=0,k,Y,_,z,ee,be,Le;function Fe(){}Fe.__reactDisabledLog=!0;function Ne(){{if(U===0){k=console.log,Y=console.info,_=console.warn,z=console.error,ee=console.group,be=console.groupCollapsed,Le=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}U++}}function _e(){{if(U--,U===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},u,{value:k}),info:j({},u,{value:Y}),warn:j({},u,{value:_}),error:j({},u,{value:z}),group:j({},u,{value:ee}),groupCollapsed:j({},u,{value:be}),groupEnd:j({},u,{value:Le})})}U<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=x.ReactCurrentDispatcher,pe;function $e(u,E,A){{if(pe===void 0)try{throw Error()}catch(B){var D=B.stack.trim().match(/\n( *(at )?)/);pe=D&&D[1]||""}return`
18
+ `+pe+u}}var rt=!1,ze;{var Vt=typeof WeakMap=="function"?WeakMap:Map;ze=new Vt}function pt(u,E){if(!u||rt)return"";{var A=ze.get(u);if(A!==void 0)return A}var D;rt=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var H;H=Ee.current,Ee.current=null,Ne();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(ie){D=ie}Reflect.construct(u,[],$)}else{try{$.call()}catch(ie){D=ie}u.call($.prototype)}}else{try{throw Error()}catch(ie){D=ie}u()}}catch(ie){if(ie&&D&&typeof ie.stack=="string"){for(var L=ie.stack.split(`
19
+ `),re=D.stack.split(`
20
+ `),X=L.length-1,Z=re.length-1;X>=1&&Z>=0&&L[X]!==re[Z];)Z--;for(;X>=1&&Z>=0;X--,Z--)if(L[X]!==re[Z]){if(X!==1||Z!==1)do if(X--,Z--,Z<0||L[X]!==re[Z]){var le=`
21
+ `+L[X].replace(" at new "," at ");return u.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",u.displayName)),typeof u=="function"&&ze.set(u,le),le}while(X>=1&&Z>=0);break}}}finally{rt=!1,Ee.current=H,_e(),Error.prepareStackTrace=B}var at=u?u.displayName||u.name:"",Ve=at?$e(at):"";return typeof u=="function"&&ze.set(u,Ve),Ve}function We(u,E,A){return pt(u,!1)}function Ht(u){var E=u.prototype;return!!(E&&E.isReactComponent)}function ot(u,E,A){if(u==null)return"";if(typeof u=="function")return pt(u,Ht(u));if(typeof u=="string")return $e(u);switch(u){case d:return $e("Suspense");case f:return $e("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return We(u.render);case p:return ot(u.type,E,A);case h:{var D=u,B=D._payload,H=D._init;try{return ot(H(B),E,A)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,Gt={},Ut=x.ReactDebugCurrentFrame;function Ce(u){if(u){var E=u._owner,A=ot(u.type,u._source,E?E.type:null);Ut.setExtraStackFrame(A)}else Ut.setExtraStackFrame(null)}function uu(u,E,A,D,B){{var H=Function.call.bind(Be);for(var $ in u)if(H(u,$)){var L=void 0;try{if(typeof u[$]!="function"){var re=Error((D||"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 re.name="Invariant Violation",re}L=u[$](E,$,D,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){L=X}L&&!(L instanceof Error)&&(Ce(B),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).",D||"React class",A,$,typeof L),Ce(null)),L instanceof Error&&!(L.message in Gt)&&(Gt[L.message]=!0,Ce(B),w("Failed %s type: %s",A,L.message),Ce(null))}}}var du=Array.isArray;function zn(u){return du(u)}function fu(u){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&u[Symbol.toStringTag]||u.constructor.name||"Object";return A}}function pu(u){try{return gi(u),!1}catch{return!0}}function gi(u){return""+u}function hi(u){if(pu(u))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fu(u)),gi(u)}var vi=x.ReactCurrentOwner,mu={key:!0,ref:!0,__self:!0,__source:!0},bi,yi;function gu(u){if(Be.call(u,"ref")){var E=Object.getOwnPropertyDescriptor(u,"ref").get;if(E&&E.isReactWarning)return!1}return u.ref!==void 0}function hu(u){if(Be.call(u,"key")){var E=Object.getOwnPropertyDescriptor(u,"key").get;if(E&&E.isReactWarning)return!1}return u.key!==void 0}function vu(u,E){typeof u.ref=="string"&&vi.current}function bu(u,E){{var A=function(){bi||(bi=!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 yu(u,E){{var A=function(){yi||(yi=!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 xu=function(u,E,A,D,B,H,$){var L={$$typeof:t,type:u,key:E,ref:A,props:$,_owner:H};return L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L,"_self",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.defineProperty(L,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L};function wu(u,E,A,D,B){{var H,$={},L=null,re=null;A!==void 0&&(hi(A),L=""+A),hu(E)&&(hi(E.key),L=""+E.key),gu(E)&&(re=E.ref,vu(E,B));for(H in E)Be.call(E,H)&&!mu.hasOwnProperty(H)&&($[H]=E[H]);if(u&&u.defaultProps){var X=u.defaultProps;for(H in X)$[H]===void 0&&($[H]=X[H])}if(L||re){var Z=typeof u=="function"?u.displayName||u.name||"Unknown":u;L&&bu($,Z),re&&yu($,Z)}return xu(u,L,re,B,D,vi.current,$)}}var Wn=x.ReactCurrentOwner,xi=x.ReactDebugCurrentFrame;function it(u){if(u){var E=u._owner,A=ot(u.type,u._source,E?E.type:null);xi.setExtraStackFrame(A)}else xi.setExtraStackFrame(null)}var Bn;Bn=!1;function Vn(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function wi(){{if(Wn.current){var u=F(Wn.current.type);if(u)return`
22
+
23
+ Check the render method of \``+u+"`."}return""}}function Eu(u){return""}var Ei={};function Cu(u){{var E=wi();if(!E){var A=typeof u=="string"?u:u.displayName||u.name;A&&(E=`
24
+
25
+ Check the top-level render call using <`+A+">.")}return E}}function Ci(u,E){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var A=Cu(E);if(Ei[A])return;Ei[A]=!0;var D="";u&&u._owner&&u._owner!==Wn.current&&(D=" It was passed a child from "+F(u._owner.type)+"."),it(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,D),it(null)}}function Si(u,E){{if(typeof u!="object")return;if(zn(u))for(var A=0;A<u.length;A++){var D=u[A];Vn(D)&&Ci(D,E)}else if(Vn(u))u._store&&(u._store.validated=!0);else if(u){var B=y(u);if(typeof B=="function"&&B!==u.entries)for(var H=B.call(u),$;!($=H.next()).done;)Vn($.value)&&Ci($.value,E)}}}function Su(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 D=F(E);uu(A,u.props,"prop",D,u)}else if(E.PropTypes!==void 0&&!Bn){Bn=!0;var B=F(E);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"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 Ru(u){{for(var E=Object.keys(u.props),A=0;A<E.length;A++){var D=E[A];if(D!=="children"&&D!=="key"){it(u),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),it(null);break}}u.ref!==null&&(it(u),w("Invalid attribute `ref` supplied to `React.Fragment`."),it(null))}}var Ri={};function Pi(u,E,A,D,B,H){{var $=V(u);if(!$){var L="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(L+=" 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 re=Eu();re?L+=re:L+=wi();var X;u===null?X="null":zn(u)?X="array":u!==void 0&&u.$$typeof===t?(X="<"+(F(u.type)||"Unknown")+" />",L=" 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,L)}var Z=wu(u,E,A,B,H);if(Z==null)return Z;if($){var le=E.children;if(le!==void 0)if(D)if(zn(le)){for(var at=0;at<le.length;at++)Si(le[at],u);Object.freeze&&Object.freeze(le)}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 Si(le,u)}if(Be.call(E,"key")){var Ve=F(u),ie=Object.keys(E).filter(function(_u){return _u!=="key"}),Hn=ie.length>0?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}";if(!Ri[Ve+Hn]){var Nu=ie.length>0?"{"+ie.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
23
26
  let props = %s;
24
27
  <%s {...props} />
25
28
  React keys must be passed directly to JSX without using spread:
26
29
  let props = %s;
27
- <%s key={someKey} {...props} />`,h,g,L,g),ir[g+h]=!0)}if(g=null,u!==void 0&&(t(u),g=""+u),x(d)&&(t(d.key),g=""+d.key),"key"in d){u={};for(var fe in d)fe!=="key"&&(u[fe]=d[fe])}else u=d;return g&&A(u,typeof r=="function"?r.displayName||r.name||"Unknown":r),Y(r,g,w,T,v(),u)}function S(r,d){if(typeof r=="object"&&r&&r.$$typeof!==it){if(de(r))for(var u=0;u<r.length;u++){var h=r[u];O(h)&&V(h,d)}else if(O(r))r._store&&(r._store.validated=1);else if(r===null||typeof r!="object"?u=null:(u=ce&&r[ce]||r["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function"&&u!==r.entries&&(u=u.call(r),u!==r))for(;!(r=u.next()).done;)O(r.value)&&V(r.value,d)}}function O(r){return typeof r=="object"&&r!==null&&r.$$typeof===G}function V(r,d){if(r._store&&!r._store.validated&&r.key==null&&(r._store.validated=1,d=Z(d),!lr[d])){lr[d]=!0;var u="";r&&r._owner!=null&&r._owner!==v()&&(u=null,typeof r._owner.tag=="number"?u=e(r._owner.type):typeof r._owner.name=="string"&&(u=r._owner.name),u=" It was passed a child from "+u+".");var h=E.getCurrentStack;E.getCurrentStack=function(){var T=p(r.type);return h&&(T+=h()||""),T},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,u),E.getCurrentStack=h}}function Z(r){var d="",u=v();return u&&(u=e(u.type))&&(d=`
30
+ <%s key={someKey} {...props} />`,Hn,Ve,Nu,Ve),Ri[Ve+Hn]=!0}}return u===r?Ru(Z):Su(Z),Z}}function Pu(u,E,A){return Pi(u,E,A,!0)}function Au(u,E,A){return Pi(u,E,A,!1)}var Tu=Au,Ou=Pu;lt.Fragment=r,lt.jsx=Tu,lt.jsxs=Ou}()),lt}var qn;function Oi(){return qn||(qn=1,process.env.NODE_ENV==="production"?mt.exports=Ai():mt.exports=Ti()),mt.exports}var v=Oi();function Jn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Jn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Jn(e[o],null)}}}}function ce(...e){return l.useCallback(Zn(...e),e)}var ye=l.forwardRef((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),i=o.find(Ni);if(i){const a=i.props.children,s=o.map(c=>c===i?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:c);return v.jsx(Yt,{...r,ref:t,children:l.isValidElement(a)?l.cloneElement(a,void 0,s):null})}return v.jsx(Yt,{...r,ref:t,children:n})});ye.displayName="Slot";var Yt=l.forwardRef((e,t)=>{const{children:n,...r}=e;if(l.isValidElement(n)){const o=ki(n),i=_i(r,n.props);return n.type!==l.Fragment&&(i.ref=t?Zn(t,o):o),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});Yt.displayName="SlotClone";var Qn=({children:e})=>v.jsx(v.Fragment,{children:e});function Ni(e){return l.isValidElement(e)&&e.type===Qn}function _i(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ki(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function er(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=er(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=er(e))&&(r&&(r+=" "),r+=t);return r}const nr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rr=tr,Kt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],p=i==null?void 0:i[d];if(f===null)return null;const h=nr(f)||nr(p);return o[d][h]}),s=n&&Object.entries(n).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(b=>{let[m,y]=b;return Array.isArray(y)?y.includes({...i,...s}[m]):{...i,...s}[m]===y})?[...d,p,h]:d},[]);return rr(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},Xt="-",Di=e=>{const t=ji(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(Xt);return s[0]===""&&s.length!==1&&s.shift(),or(s,t)||Mi(a)},getConflictingClassGroupIds:(a,s)=>{const c=n[a]||[];return s&&r[a]?[...c,...r[a]]:c}}},or=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?or(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Xt);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},ir=/^\[(.+)\]$/,Mi=e=>{if(ir.test(e)){const t=ir.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ji=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)qt(n[o],r,o,t);return r},qt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ar(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Ii(o)){qt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{qt(a,ar(t,i),n,r)})})},ar=(e,t)=>{let n=e;return t.split(Xt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ii=e=>e.isThemeGetter,Li=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}},Jt="!",Zt=":",Fi=Zt.length,$i=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,s=0,c=0,d;for(let b=0;b<o.length;b++){let m=o[b];if(a===0&&s===0){if(m===Zt){i.push(o.slice(c,b)),c=b+Fi;continue}if(m==="/"){d=b;continue}}m==="["?a++:m==="]"?a--:m==="("?s++:m===")"&&s--}const f=i.length===0?o:o.substring(c),p=zi(f),h=p!==f,g=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+Zt,i=r;r=a=>a.startsWith(o)?i(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},zi=e=>e.endsWith(Jt)?e.substring(0,e.length-1):e.startsWith(Jt)?e.substring(1):e,Wi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...i.sort(),a),i=[]):i.push(a)}),o.push(...i.sort()),o}},Bi=e=>({cache:Li(e.cacheSize),parseClassName:$i(e),sortModifiers:Wi(e),...Di(e)}),Vi=/\s+/,Hi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(Vi);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:p,modifiers:h,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:m}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!m,x=r(y?b.substring(0,m):b);if(!x){if(!y){c=f+(c.length>0?" "+c:c);continue}if(x=r(b),!x){c=f+(c.length>0?" "+c:c);continue}y=!1}const w=i(h).join(":"),S=g?w+Jt:w,R=S+x;if(a.includes(R))continue;a.push(R);const P=o(x,y);for(let C=0;C<P.length;++C){const T=P[C];a.push(S+T)}c=f+(c.length>0?" "+c:c)}return c};function Gi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=sr(t))&&(r&&(r+=" "),r+=n);return r}const sr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=sr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ui(e,...t){let n,r,o,i=a;function a(c){const d=t.reduce((f,p)=>p(f),e());return n=Bi(d),r=n.cache.get,o=n.cache.set,i=s,s(c)}function s(c){const d=r(c);if(d)return d;const f=Hi(c,n);return o(c,f),f}return function(){return i(Gi.apply(null,arguments))}}const Q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},lr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yi=/^\d+\/\d+$/,Ki=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xi=/\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$/,qi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ji=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>Yi.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),ur=e=>e.endsWith("%")&&I(e.slice(0,-1)),Se=e=>Ki.test(e),Qi=()=>!0,ea=e=>Xi.test(e)&&!qi.test(e),Qt=()=>!1,ta=e=>Ji.test(e),na=e=>Zi.test(e),ra=e=>!O(e)&&!N(e),oa=e=>Ge(e,pr,Qt),O=e=>lr.test(e),De=e=>Ge(e,mr,ea),en=e=>Ge(e,ga,I),ia=e=>Ge(e,dr,Qt),aa=e=>Ge(e,fr,na),sa=e=>Ge(e,Qt,ta),N=e=>cr.test(e),gt=e=>Ue(e,mr),la=e=>Ue(e,ha),ca=e=>Ue(e,dr),ua=e=>Ue(e,pr),da=e=>Ue(e,fr),fa=e=>Ue(e,va,!0),Ge=(e,t,n)=>{const r=lr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ue=(e,t,n=!1)=>{const r=cr.exec(e);return r?r[1]?t(r[1]):n:!1},dr=e=>e==="position",pa=new Set(["image","url"]),fr=e=>pa.has(e),ma=new Set(["length","size","percentage"]),pr=e=>ma.has(e),mr=e=>e==="length",ga=e=>e==="number",ha=e=>e==="family-name",va=e=>e==="shadow",ba=Ui(()=>{const e=Q("color"),t=Q("font"),n=Q("text"),r=Q("font-weight"),o=Q("tracking"),i=Q("leading"),a=Q("breakpoint"),s=Q("container"),c=Q("spacing"),d=Q("radius"),f=Q("shadow"),p=Q("inset-shadow"),h=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"],S=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],C=()=>[N,O,c],T=()=>[He,"full","auto",...C()],W=()=>[ke,"none","subgrid",N,O],G=()=>["auto",{span:["full",ke,N,O]},N,O],V=()=>[ke,"auto",N,O],J=()=>["auto","min","max","fr",N,O],K=()=>["start","end","center","between","around","evenly","stretch","baseline"],F=()=>["start","end","center","stretch"],j=()=>["auto",...C()],U=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],k=()=>[e,N,O],Y=()=>[ur,De],_=()=>["","none","full",d,N,O],z=()=>["",I,gt,De],ee=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["","none",g,N,O],Fe=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N,O],Ne=()=>["none",I,N,O],_e=()=>["none",I,N,O],Ee=()=>[I,N,O],pe=()=>[He,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[Qi],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[ra],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",I],text:[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,O,N,m]}],container:["container"],columns:[{columns:[I,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:[...S(),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:[ke,"auto",N,O]}],basis:[{basis:[He,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,He,"auto","initial","none",O]}],grow:[{grow:["",I,N,O]}],shrink:[{shrink:["",I,N,O]}],order:[{order:[ke,"first","last","none",N,O]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":W()}],"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":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"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:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],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":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"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:[a]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",n,gt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N,en]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ur,O]}],"font-family":[{font:[la,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":[I,"none",N,en]}],leading:[{leading:[i,...C()]}],"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:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",N,De]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[I,"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:C()}],"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:[...S(),ca,ia]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",ua,oa]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ke,N,O],radial:["",N,O],conic:[ke,N,O]},da,aa]}],"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:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"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:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,N,O]}],"outline-w":[{outline:["",I,gt,De]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,fa,sa]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",N,O,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":[I,De]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":k()}],opacity:[{opacity:[I,N,O]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none",N,O]}],blur:[{blur:Le()}],brightness:[{brightness:[I,N,O]}],contrast:[{contrast:[I,N,O]}],"drop-shadow":[{"drop-shadow":["","none",h,N,O]}],grayscale:[{grayscale:["",I,N,O]}],"hue-rotate":[{"hue-rotate":[I,N,O]}],invert:[{invert:["",I,N,O]}],saturate:[{saturate:[I,N,O]}],sepia:[{sepia:["",I,N,O]}],"backdrop-filter":[{"backdrop-filter":["","none",N,O]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[I,N,O]}],"backdrop-contrast":[{"backdrop-contrast":[I,N,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,N,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,N,O]}],"backdrop-invert":[{"backdrop-invert":["",I,N,O]}],"backdrop-opacity":[{"backdrop-opacity":[I,N,O]}],"backdrop-saturate":[{"backdrop-saturate":[I,N,O]}],"backdrop-sepia":[{"backdrop-sepia":["",I,N,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"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:[I,"initial",N,O]}],ease:[{ease:["linear","initial",y,N,O]}],delay:[{delay:[I,N,O]}],animate:[{animate:["none",x,N,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,N,O]}],"perspective-origin":[{"perspective-origin":Fe()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[N,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:Fe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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:[I,gt,De,en]}],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","*","**"]}});function M(...e){return ba(tr(e))}const ya=Kt("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"}}),tn=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const a=r?ye:"button";return v.jsx(a,{className:M(ya({variant:t,size:n,className:e})),ref:i,...o})});tn.displayName="Button";/**
31
+ * @license lucide-react v0.482.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */const xa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
36
+ * @license lucide-react v0.482.0 - ISC
37
+ *
38
+ * This source code is licensed under the ISC license.
39
+ * See the LICENSE file in the root directory of this source tree.
40
+ */var wa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
41
+ * @license lucide-react v0.482.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Ea=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},c)=>te.createElement("svg",{ref:c,...wa,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gr("lucide",o),...s},[...a.map(([d,f])=>te.createElement(d,f)),...Array.isArray(i)?i:[i]]));/**
46
+ * @license lucide-react v0.482.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const hr=(e,t)=>{const n=te.forwardRef(({className:r,...o},i)=>te.createElement(Ea,{ref:i,iconNode:t,className:gr(`lucide-${xa(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
51
+ * @license lucide-react v0.482.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Ca=hr("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
56
+ * @license lucide-react v0.482.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const vr=hr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nn=768;function Sa(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const n=window.matchMedia(`(max-width: ${nn-1}px)`),r=()=>{t(window.innerWidth<nn)};return n.addEventListener("change",r),t(window.innerWidth<nn),()=>n.removeEventListener("change",r)},[]),!!e}const br=l.forwardRef(({className:e,type:t,...n},r)=>v.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:r,...n}));br.displayName="Input";var Ra=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ne=Ra.reduce((e,t)=>{const n=l.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?ye:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Pa(e,t){e&&Yn.flushSync(()=>e.dispatchEvent(t))}var Aa="Separator",yr="horizontal",Ta=["horizontal","vertical"],xr=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=yr,...o}=e,i=Oa(r)?r:yr,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return v.jsx(ne.div,{"data-orientation":i,...s,...o,ref:t})});xr.displayName=Aa;function Oa(e){return Ta.includes(e)}var wr=xr;const Er=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>v.jsx(wr,{ref:o,decorative:n,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Er.displayName=wr.displayName;function oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Na(e,t){const n=l.createContext(t),r=i=>{const{children:a,...s}=i,c=l.useMemo(()=>s,Object.values(s));return v.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(i){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function rn(e,t=[]){let n=[];function r(i,a){const s=l.createContext(a),c=n.length;n=[...n,a];const d=p=>{var x;const{scope:h,children:g,...b}=p,m=((x=h==null?void 0:h[e])==null?void 0:x[c])||s,y=l.useMemo(()=>b,Object.values(b));return v.jsx(m.Provider,{value:y,children:g})};d.displayName=i+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[c])||s,b=l.useContext(g);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[d,f]}const o=()=>{const i=n.map(a=>l.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,_a(o,...t)]}function _a(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:c,scopeName:d})=>{const p=c(i)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Me=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},ka=l.useId||(()=>{}),Da=0;function ht(e){const[t,n]=l.useState(ka());return Me(()=>{n(r=>r??String(Da++))},[e]),e||(t?`radix-${t}`:"")}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Cr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ma({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Re(n),c=l.useCallback(d=>{if(i){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[i,e,o,s]);return[a,c]}function Ma({defaultProp:e,onChange:t}){const n=l.useState(e),[r]=n,o=l.useRef(r),i=Re(t);return l.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function ja(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ia="DismissableLayer",on="dismissableLayer.update",La="dismissableLayer.pointerDownOutside",Fa="dismissableLayer.focusOutside",Sr,Rr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),an=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,d=l.useContext(Rr),[f,p]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ce(t,T=>p(T)),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(y),w=f?m.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=x,P=Wa(T=>{const W=T.target,G=[...d.branches].some(V=>V.contains(W));!R||G||(o==null||o(T),a==null||a(T),T.defaultPrevented||s==null||s())},h),C=Ba(T=>{const W=T.target;[...d.branches].some(V=>V.contains(W))||(i==null||i(T),a==null||a(T),T.defaultPrevented||s==null||s())},h);return ja(T=>{w===d.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},h),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Sr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Pr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Sr)}},[f,h,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Pr())},[f,d]),l.useEffect(()=>{const T=()=>g({});return document.addEventListener(on,T),()=>document.removeEventListener(on,T)},[]),v.jsx(ne.div,{...c,ref:b,style:{pointerEvents:S?R?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,P.onPointerDownCapture)})});an.displayName=Ia;var $a="DismissableLayerBranch",za=l.forwardRef((e,t)=>{const n=l.useContext(Rr),r=l.useRef(null),o=ce(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ne.div,{...e,ref:o})});za.displayName=$a;function Wa(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){Ar(La,n,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);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ba(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ar(Fa,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pr(){const e=new CustomEvent(on);document.dispatchEvent(e)}function Ar(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Pa(o,i):o.dispatchEvent(i)}var sn="focusScope.autoFocusOnMount",ln="focusScope.autoFocusOnUnmount",Tr={bubbles:!1,cancelable:!0},Va="FocusScope",Or=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),d=Re(o),f=Re(i),p=l.useRef(null),h=ce(t,m=>c(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(S){if(g.paused||!s)return;const R=S.target;s.contains(R)?p.current=R:Pe(p.current,{select:!0})},y=function(S){if(g.paused||!s)return;const R=S.relatedTarget;R!==null&&(s.contains(R)||Pe(p.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const P of S)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()}}},[r,s,g.paused]),l.useEffect(()=>{if(s){kr.add(g);const m=document.activeElement;if(!s.contains(m)){const x=new CustomEvent(sn,Tr);s.addEventListener(sn,d),s.dispatchEvent(x),x.defaultPrevented||(Ha(Xa(Nr(s)),{select:!0}),document.activeElement===m&&Pe(s))}return()=>{s.removeEventListener(sn,d),setTimeout(()=>{const x=new CustomEvent(ln,Tr);s.addEventListener(ln,f),s.dispatchEvent(x),x.defaultPrevented||Pe(m??document.body,{select:!0}),s.removeEventListener(ln,f),kr.remove(g)},0)}}},[s,d,f,g]);const b=l.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(y&&x){const w=m.currentTarget,[S,R]=Ga(w);S&&R?!m.shiftKey&&x===R?(m.preventDefault(),n&&Pe(S,{select:!0})):m.shiftKey&&x===S&&(m.preventDefault(),n&&Pe(R,{select:!0})):x===w&&m.preventDefault()}},[n,r,g.paused]);return v.jsx(ne.div,{tabIndex:-1,...a,ref:h,onKeyDown:b})});Or.displayName=Va;function Ha(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pe(r,{select:t}),document.activeElement!==n)return}function Ga(e){const t=Nr(e),n=_r(t,e),r=_r(t.reverse(),e);return[n,r]}function Nr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _r(e,t){for(const n of e)if(!Ua(n,{upTo:t}))return n}function Ua(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 Ya(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ya(e)&&t&&e.select()}}var kr=Ka();function Ka(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dr(e,t),e.unshift(t)},remove(t){var n;e=Dr(e,t),(n=e[0])==null||n.resume()}}}function Dr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Xa(e){return e.filter(t=>t.tagName!=="A")}var qa="Portal",cn=l.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=l.useState(!1);Me(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?Gn.createPortal(v.jsx(ne.div,{...r,ref:t}),a):null});cn.displayName=qa;function Ja(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ye=e=>{const{present:t,children:n}=e,r=Za(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),i=ce(r.ref,Qa(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:i}):null};Ye.displayName="Presence";function Za(e){const[t,n]=l.useState(),r=l.useRef({}),o=l.useRef(e),i=l.useRef("none"),a=e?"mounted":"unmounted",[s,c]=Ja(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=vt(r.current);i.current=s==="mounted"?d:"none"},[s]),Me(()=>{const d=r.current,f=o.current;if(f!==e){const h=i.current,g=vt(d);e?c("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Me(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const m=vt(r.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)})}},h=g=>{g.target===t&&(i.current=vt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function vt(e){return(e==null?void 0:e.animationName)||"none"}function Qa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var un=0;function es(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mr()),document.body.insertAdjacentElement("beforeend",e[1]??Mr()),un++,()=>{un===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),un--}},[])}function Mr(){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 n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},me.apply(this,arguments)};function jr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ts(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var bt="right-scroll-bar-position",yt="width-before-scroll-bar",ns="with-scroll-bars-hidden",rs="--removed-body-scroll-bar-size";function dn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function os(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var is=typeof window<"u"?l.useLayoutEffect:l.useEffect,Ir=new WeakMap;function as(e,t){var n=os(null,function(r){return e.forEach(function(o){return dn(o,r)})});return is(function(){var r=Ir.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||dn(s,null)}),i.forEach(function(s){o.has(s)||dn(s,a)})}Ir.set(n,e)},[e]),n}function ss(e){return e}function ls(e,t){t===void 0&&(t=ss);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function cs(e){e===void 0&&(e={});var t=ls(null);return t.options=me({async:!0,ssr:!1},e),t}var Lr=function(e){var t=e.sideCar,n=jr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,me({},n))};Lr.isSideCarExport=!0;function us(e,t){return e.useMedium(t),Lr}var Fr=cs(),fn=function(){},xt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:fn,onWheelCapture:fn,onTouchMoveCapture:fn}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,m=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,S=jr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,P=as([n,t]),C=me(me({},S),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:Fr,removeScrollBar:d,shards:p,noIsolation:g,inert:b,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(s),me(me({},C),{ref:P})):l.createElement(x,me({},C,{className:c,ref:P}),s))});xt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},xt.classNames={fullWidth:yt,zeroRight:bt};var ds=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ds();return t&&e.setAttribute("nonce",t),e}function ps(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ms(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gs=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fs())&&(ps(t,n),ms(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hs=function(){var e=gs();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$r=function(){var e=hs(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},vs={left:0,top:0,right:0,gap:0},pn=function(e){return parseInt(e||"",10)||0},bs=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[pn(n),pn(r),pn(o)]},ys=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vs;var t=bs(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xs=$r(),Ke="data-scroll-locked",ws=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
61
+ .`.concat(ns,` {
62
+ overflow: hidden `).concat(r,`;
63
+ padding-right: `).concat(s,"px ").concat(r,`;
64
+ }
65
+ body[`).concat(Ke,`] {
66
+ overflow: hidden `).concat(r,`;
67
+ overscroll-behavior: contain;
68
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
69
+ padding-left: `.concat(o,`px;
70
+ padding-top: `).concat(i,`px;
71
+ padding-right: `).concat(a,`px;
72
+ margin-left:0;
73
+ margin-top:0;
74
+ margin-right: `).concat(s,"px ").concat(r,`;
75
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
76
+ }
77
+
78
+ .`).concat(bt,` {
79
+ right: `).concat(s,"px ").concat(r,`;
80
+ }
81
+
82
+ .`).concat(yt,` {
83
+ margin-right: `).concat(s,"px ").concat(r,`;
84
+ }
85
+
86
+ .`).concat(bt," .").concat(bt,` {
87
+ right: 0 `).concat(r,`;
88
+ }
89
+
90
+ .`).concat(yt," .").concat(yt,` {
91
+ margin-right: 0 `).concat(r,`;
92
+ }
93
+
94
+ body[`).concat(Ke,`] {
95
+ `).concat(rs,": ").concat(s,`px;
96
+ }
97
+ `)},zr=function(){var e=parseInt(document.body.getAttribute(Ke)||"0",10);return isFinite(e)?e:0},Es=function(){l.useEffect(function(){return document.body.setAttribute(Ke,(zr()+1).toString()),function(){var e=zr()-1;e<=0?document.body.removeAttribute(Ke):document.body.setAttribute(Ke,e.toString())}},[])},Cs=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Es();var i=l.useMemo(function(){return ys(o)},[o]);return l.createElement(xs,{styles:ws(i,!t,o,n?"":"!important")})},mn=!1;if(typeof window<"u")try{var wt=Object.defineProperty({},"passive",{get:function(){return mn=!0,!0}});window.addEventListener("test",wt,wt),window.removeEventListener("test",wt,wt)}catch{mn=!1}var Xe=mn?{passive:!1}:!1,Ss=function(e){return e.tagName==="TEXTAREA"},Wr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ss(e)&&n[t]==="visible")},Rs=function(e){return Wr(e,"overflowY")},Ps=function(e){return Wr(e,"overflowX")},Br=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Vr(e,r);if(o){var i=Hr(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},As=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ts=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vr=function(e,t){return e==="v"?Rs(t):Ps(t)},Hr=function(e,t){return e==="v"?As(t):Ts(t)},Os=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ns=function(e,t,n,r,o){var i=Os(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,f=a>0,p=0,h=0;do{var g=Hr(e,s),b=g[0],m=g[1],y=g[2],x=m-y-i*b;(b||x)&&Vr(e,s)&&(p+=x,h+=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(h)<1)&&(d=!0),d},Et=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gr=function(e){return[e.deltaX,e.deltaY]},Ur=function(e){return e&&"current"in e?e.current:e},_s=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ks=function(e){return`
98
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
99
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
100
+ `)},Ds=0,qe=[];function Ms(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Ds++)[0],i=l.useState($r)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ts([e.lockRef.current],(e.shards||[]).map(Ur),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var x=Et(m),w=n.current,S="deltaX"in m?m.deltaX:w[0]-x[0],R="deltaY"in m?m.deltaY:w[1]-x[1],P,C=m.target,T=Math.abs(S)>Math.abs(R)?"h":"v";if("touches"in m&&T==="h"&&C.type==="range")return!1;var W=Br(T,C);if(!W)return!0;if(W?P=T:(P=T==="v"?"h":"v",W=Br(T,C)),!W)return!1;if(!r.current&&"changedTouches"in m&&(S||R)&&(r.current=P),!P)return!0;var G=r.current||P;return Ns(G,y,m,G==="h"?S:R)},[]),c=l.useCallback(function(m){var y=m;if(!(!qe.length||qe[qe.length-1]!==i)){var x="deltaY"in y?Gr(y):Et(y),w=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&_s(P.delta,x)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var S=(a.current.shards||[]).map(Ur).filter(Boolean).filter(function(P){return P.contains(y.target)}),R=S.length>0?s(y,S[0]):!a.current.noIsolation;R&&y.cancelable&&y.preventDefault()}}},[]),d=l.useCallback(function(m,y,x,w){var S={name:m,delta:y,target:x,should:w,shadowParent:js(x)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(R){return R!==S})},1)},[]),f=l.useCallback(function(m){n.current=Et(m),r.current=void 0},[]),p=l.useCallback(function(m){d(m.type,Gr(m),m.target,s(m,e.lockRef.current))},[]),h=l.useCallback(function(m){d(m.type,Et(m),m.target,s(m,e.lockRef.current))},[]);l.useEffect(function(){return qe.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",f,Xe),function(){qe=qe.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",f,Xe)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(i,{styles:ks(o)}):null,g?l.createElement(Cs,{gapMode:e.gapMode}):null)}function js(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Is=us(Fr,Ms);var Yr=l.forwardRef(function(e,t){return l.createElement(xt,me({},e,{ref:t,sideCar:Is}))});Yr.classNames=xt.classNames;var Ls=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Je=new WeakMap,Ct=new WeakMap,St={},gn=0,Kr=function(e){return e&&(e.host||Kr(e.parentNode))},Fs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Kr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$s=function(e,t,n,r){var o=Fs(t,Array.isArray(e)?e:[e]);St[n]||(St[n]=new WeakMap);var i=St[n],a=[],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(h){if(s.has(h))f(h);else try{var g=h.getAttribute(r),b=g!==null&&g!=="false",m=(Je.get(h)||0)+1,y=(i.get(h)||0)+1;Je.set(h,m),i.set(h,y),a.push(h),m===1&&b&&Ct.set(h,!0),y===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return f(t),s.clear(),gn++,function(){a.forEach(function(p){var h=Je.get(p)-1,g=i.get(p)-1;Je.set(p,h),i.set(p,g),h||(Ct.has(p)||p.removeAttribute(r),Ct.delete(p)),g||p.removeAttribute(n)}),gn--,gn||(Je=new WeakMap,Je=new WeakMap,Ct=new WeakMap,St={})}},zs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ls(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),$s(r,o,n,"aria-hidden")):function(){return null}},hn="Dialog",[Xr,ju]=rn(hn),[Ws,ue]=Xr(hn),qr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[d=!1,f]=Cr({prop:r,defaultProp:o,onChange:i});return v.jsx(Ws,{scope:t,triggerRef:s,contentRef:c,contentId:ht(),titleId:ht(),descriptionId:ht(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a,children:n})};qr.displayName=hn;var Jr="DialogTrigger",Zr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Jr,n),i=ce(t,o.triggerRef);return v.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yn(o.open),...r,ref:i,onClick:oe(e.onClick,o.onOpenToggle)})});Zr.displayName=Jr;var vn="DialogPortal",[Bs,Qr]=Xr(vn,{forceMount:void 0}),eo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ue(vn,t);return v.jsx(Bs,{scope:t,forceMount:n,children:l.Children.map(r,a=>v.jsx(Ye,{present:n||i.open,children:v.jsx(cn,{asChild:!0,container:o,children:a})}))})};eo.displayName=vn;var Rt="DialogOverlay",to=l.forwardRef((e,t)=>{const n=Qr(Rt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ue(Rt,e.__scopeDialog);return i.modal?v.jsx(Ye,{present:r||i.open,children:v.jsx(Vs,{...o,ref:t})}):null});to.displayName=Rt;var Vs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Rt,n);return v.jsx(Yr,{as:ye,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(ne.div,{"data-state":yn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),je="DialogContent",no=l.forwardRef((e,t)=>{const n=Qr(je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ue(je,e.__scopeDialog);return v.jsx(Ye,{present:r||i.open,children:i.modal?v.jsx(Hs,{...o,ref:t}):v.jsx(Gs,{...o,ref:t})})});no.displayName=je;var Hs=l.forwardRef((e,t)=>{const n=ue(je,e.__scopeDialog),r=l.useRef(null),o=ce(t,n.contentRef,r);return l.useEffect(()=>{const i=r.current;if(i)return zs(i)},[]),v.jsx(ro,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:oe(e.onFocusOutside,i=>i.preventDefault())})}),Gs=l.forwardRef((e,t)=>{const n=ue(je,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return v.jsx(ro,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((d=n.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),ro=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=ue(je,n),c=l.useRef(null),d=ce(t,c);return es(),v.jsxs(v.Fragment,{children:[v.jsx(Or,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:v.jsx(an,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":yn(s.open),...a,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(Us,{titleId:s.titleId}),v.jsx(Ks,{contentRef:c,descriptionId:s.descriptionId})]})]})}),bn="DialogTitle",oo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(bn,n);return v.jsx(ne.h2,{id:o.titleId,...r,ref:t})});oo.displayName=bn;var io="DialogDescription",ao=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(io,n);return v.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});ao.displayName=io;var so="DialogClose",lo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(so,n);return v.jsx(ne.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});lo.displayName=so;function yn(e){return e?"open":"closed"}var co="DialogTitleWarning",[Iu,uo]=Na(co,{contentName:je,titleName:bn,docsSlug:"dialog"}),Us=({titleId:e})=>{const t=uo(co),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
28
101
 
29
- Check the render method of \``+u+"`."),d||(r=e(r))&&(d=`
102
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
30
103
 
31
- Check the top-level render call using <`+r+">."),d}var K=ne,G=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),he=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),ce=Symbol.iterator,R=Symbol.for("react.client.reference"),E=K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,W=Object.assign,we=Symbol.for("react.client.reference"),de=Array.isArray,$=0,re,ue,te,er,rr,tr,or;o.__reactDisabledLog=!0;var _e,nr,ze=!1,Oe=new(typeof WeakMap=="function"?WeakMap:Map),it=Symbol.for("react.client.reference"),sr,ar={},ir={},lr={};be.Fragment=f,be.jsx=function(r,d,u,h,T){return C(r,d,u,!1,h,T)},be.jsxs=function(r,d,u,h,T){return C(r,d,u,!0,h,T)}}()),be}var Me;function fr(){return Me||(Me=1,process.env.NODE_ENV==="production"?ye.exports=dr():ye.exports=ur()),ye.exports}var ge=fr();function Ve(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function pr(...e){return n=>{let t=!1;const o=e.map(s=>{const a=Ve(s,n);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let s=0;s<o.length;s++){const a=o[s];typeof a=="function"?a():Ve(e[s],null)}}}}var Ge=j.forwardRef((e,n)=>{const{children:t,...o}=e,s=j.Children.toArray(t),a=s.find(gr);if(a){const c=a.props.children,b=s.map(p=>p===a?j.Children.count(c)>1?j.Children.only(null):j.isValidElement(c)?c.props.children:null:p);return ge.jsx(ke,{...o,ref:n,children:j.isValidElement(c)?j.cloneElement(c,void 0,b):null})}return ge.jsx(ke,{...o,ref:n,children:t})});Ge.displayName="Slot";var ke=j.forwardRef((e,n)=>{const{children:t,...o}=e;if(j.isValidElement(t)){const s=hr(t),a=mr(o,t.props);return t.type!==j.Fragment&&(a.ref=n?pr(n,s):s),j.cloneElement(t,a)}return j.Children.count(t)>1?j.Children.only(null):null});ke.displayName="SlotClone";var br=({children:e})=>ge.jsx(ge.Fragment,{children:e});function gr(e){return j.isValidElement(e)&&e.type===br}function mr(e,n){const t={...n};for(const o in n){const s=e[o],a=n[o];/^on[A-Z]/.test(o)?s&&a?t[o]=(...b)=>{a(...b),s(...b)}:s&&(t[o]=s):o==="style"?t[o]={...s,...a}:o==="className"&&(t[o]=[s,a].filter(Boolean).join(" "))}return{...e,...t}}function hr(e){var o,s;let n=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Ie(e){var n,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(t=Ie(e[n]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function We(){for(var e,n,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(n=Ie(e))&&(o&&(o+=" "),o+=n);return o}const $e=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ye=We,vr=(e,n)=>t=>{var o;if((n==null?void 0:n.variants)==null)return Ye(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:s,defaultVariants:a}=n,c=Object.keys(s).map(v=>{const x=t==null?void 0:t[v],A=a==null?void 0:a[v];if(x===null)return null;const z=$e(x)||$e(A);return s[v][z]}),b=t&&Object.entries(t).reduce((v,x)=>{let[A,z]=x;return z===void 0||(v[A]=z),v},{}),p=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((v,x)=>{let{class:A,className:z,...Y}=x;return Object.entries(Y).every(C=>{let[S,O]=C;return Array.isArray(O)?O.includes({...a,...b}[S]):{...a,...b}[S]===O})?[...v,A,z]:v},[]);return Ye(e,c,p,t==null?void 0:t.class,t==null?void 0:t.className)},Ce="-",yr=e=>{const n=wr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const b=c.split(Ce);return b[0]===""&&b.length!==1&&b.shift(),Le(b,n)||xr(c)},getConflictingClassGroupIds:(c,b)=>{const p=t[c]||[];return b&&o[c]?[...p,...o[c]]:p}}},Le=(e,n)=>{var c;if(e.length===0)return n.classGroupId;const t=e[0],o=n.nextPart.get(t),s=o?Le(e.slice(1),o):void 0;if(s)return s;if(n.validators.length===0)return;const a=e.join(Ce);return(c=n.validators.find(({validator:b})=>b(a)))==null?void 0:c.classGroupId},Ue=/^\[(.+)\]$/,xr=e=>{if(Ue.test(e)){const n=Ue.exec(e)[1],t=n==null?void 0:n.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},wr=e=>{const{theme:n,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const s in t)Se(t[s],o,s,n);return o},Se=(e,n,t,o)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?n:Be(n,s);a.classGroupId=t;return}if(typeof s=="function"){if(Er(s)){Se(s(o),n,t,o);return}n.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([a,c])=>{Se(c,Be(n,a),t,o)})})},Be=(e,n)=>{let t=e;return n.split(Ce).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Er=e=>e.isThemeGetter,kr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,o=new Map;const s=(a,c)=>{t.set(a,c),n++,n>e&&(n=0,o=t,t=new Map)};return{get(a){let c=t.get(a);if(c!==void 0)return c;if((c=o.get(a))!==void 0)return s(a,c),c},set(a,c){t.has(a)?t.set(a,c):s(a,c)}}},Re="!",Ae=":",Cr=Ae.length,Sr=e=>{const{prefix:n,experimentalParseClassName:t}=e;let o=s=>{const a=[];let c=0,b=0,p=0,v;for(let C=0;C<s.length;C++){let S=s[C];if(c===0&&b===0){if(S===Ae){a.push(s.slice(p,C)),p=C+Cr;continue}if(S==="/"){v=C;continue}}S==="["?c++:S==="]"?c--:S==="("?b++:S===")"&&b--}const x=a.length===0?s:s.substring(p),A=Rr(x),z=A!==x,Y=v&&v>p?v-p:void 0;return{modifiers:a,hasImportantModifier:z,baseClassName:A,maybePostfixModifierPosition:Y}};if(n){const s=n+Ae,a=o;o=c=>c.startsWith(s)?a(c.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(t){const s=o;o=a=>t({className:a,parseClassName:s})}return o},Rr=e=>e.endsWith(Re)?e.substring(0,e.length-1):e.startsWith(Re)?e.substring(1):e,Ar=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const s=[];let a=[];return o.forEach(c=>{c[0]==="["||n[c]?(s.push(...a.sort(),c),a=[]):a.push(c)}),s.push(...a.sort()),s}},Tr=e=>({cache:kr(e.cacheSize),parseClassName:Sr(e),sortModifiers:Ar(e),...yr(e)}),jr=/\s+/,_r=(e,n)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:a}=n,c=[],b=e.trim().split(jr);let p="";for(let v=b.length-1;v>=0;v-=1){const x=b[v],{isExternal:A,modifiers:z,hasImportantModifier:Y,baseClassName:C,maybePostfixModifierPosition:S}=t(x);if(A){p=x+(p.length>0?" "+p:p);continue}let O=!!S,V=o(O?C.substring(0,S):C);if(!V){if(!O){p=x+(p.length>0?" "+p:p);continue}if(V=o(C),!V){p=x+(p.length>0?" "+p:p);continue}O=!1}const Z=a(z).join(":"),K=Y?Z+Re:Z,G=K+V;if(c.includes(G))continue;c.push(G);const F=s(V,O);for(let f=0;f<F.length;++f){const N=F[f];c.push(K+N)}p=x+(p.length>0?" "+p:p)}return p};function zr(){let e=0,n,t,o="";for(;e<arguments.length;)(n=arguments[e++])&&(t=Fe(n))&&(o&&(o+=" "),o+=t);return o}const Fe=e=>{if(typeof e=="string")return e;let n,t="";for(let o=0;o<e.length;o++)e[o]&&(n=Fe(e[o]))&&(t&&(t+=" "),t+=n);return t};function Or(e,...n){let t,o,s,a=c;function c(p){const v=n.reduce((x,A)=>A(x),e());return t=Tr(v),o=t.cache.get,s=t.cache.set,a=b,b(p)}function b(p){const v=o(p);if(v)return v;const x=_r(p,t);return s(p,x),x}return function(){return a(zr.apply(null,arguments))}}const k=e=>{const n=t=>t[e]||[];return n.isThemeGetter=!0,n},qe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Je=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nr=/^\d+\/\d+$/,Pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mr=/\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$/,Vr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Gr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ir=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>Nr.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith("%")&&m(e.slice(0,-1)),B=e=>Pr.test(e),Wr=()=>!0,$r=e=>Mr.test(e)&&!Vr.test(e),Te=()=>!1,Yr=e=>Gr.test(e),Lr=e=>Ir.test(e),Ur=e=>!i(e)&&!l(e),Br=e=>ae(e,Ke,Te),i=e=>qe.test(e),X=e=>ae(e,Qe,$r),je=e=>ae(e,rt,m),Fr=e=>ae(e,Xe,Te),qr=e=>ae(e,Ze,Lr),Jr=e=>ae(e,Te,Yr),l=e=>Je.test(e),xe=e=>ie(e,Qe),Hr=e=>ie(e,tt),Xr=e=>ie(e,Xe),Zr=e=>ie(e,Ke),Kr=e=>ie(e,Ze),Qr=e=>ie(e,ot,!0),ae=(e,n,t)=>{const o=qe.exec(e);return o?o[1]?n(o[1]):t(o[2]):!1},ie=(e,n,t=!1)=>{const o=Je.exec(e);return o?o[1]?n(o[1]):t:!1},Xe=e=>e==="position",Dr=new Set(["image","url"]),Ze=e=>Dr.has(e),et=new Set(["length","size","percentage"]),Ke=e=>et.has(e),Qe=e=>e==="length",rt=e=>e==="number",tt=e=>e==="family-name",ot=e=>e==="shadow",nt=Or(()=>{const e=k("color"),n=k("font"),t=k("text"),o=k("font-weight"),s=k("tracking"),a=k("leading"),c=k("breakpoint"),b=k("container"),p=k("spacing"),v=k("radius"),x=k("shadow"),A=k("inset-shadow"),z=k("drop-shadow"),Y=k("blur"),C=k("perspective"),S=k("aspect"),O=k("ease"),V=k("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],f=()=>[l,i,p],N=()=>[se,"full","auto",...f()],me=()=>[H,"none","subgrid",l,i],he=()=>["auto",{span:["full",H,l,i]},l,i],Q=()=>[H,"auto",l,i],le=()=>["auto","min","max","fr",l,i],D=()=>["start","end","center","between","around","evenly","stretch","baseline"],I=()=>["start","end","center","stretch"],P=()=>["auto",...f()],M=()=>[se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],y=()=>[e,l,i],ce=()=>[He,X],R=()=>["","none","full",v,l,i],E=()=>["",m,xe,X],ee=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>["","none",Y,l,i],de=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l,i],$=()=>["none",m,l,i],re=()=>["none",m,l,i],ue=()=>[m,l,i],te=()=>[se,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[B],breakpoint:[B],color:[Wr],container:[B],"drop-shadow":[B],ease:["in","out","in-out"],font:[Ur],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[B],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[B],shadow:[B],spacing:["px",m],text:[B],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",se,i,l,S]}],container:["container"],columns:[{columns:[m,i,l,b]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),i,l]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],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:[H,"auto",l,i]}],basis:[{basis:[se,"full","auto",b,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,se,"auto","initial","none",i]}],grow:[{grow:["",m,l,i]}],shrink:[{shrink:["",m,l,i]}],order:[{order:[H,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...I(),"baseline"]}],"align-self":[{self:["auto",...I(),"baseline"]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[b,"screen",...M()]}],"min-w":[{"min-w":[b,"screen","none",...M()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[c]},...M()]}],h:[{h:["screen",...M()]}],"min-h":[{"min-h":["screen","none",...M()]}],"max-h":[{"max-h":["screen",...M()]}],"font-size":[{text:["base",t,xe,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,l,je]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",He,i]}],"font-family":[{font:[Hr,i,n]}],"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:[s,l,i]}],"line-clamp":[{"line-clamp":[m,"none",l,je]}],leading:[{leading:[a,...f()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",l,X]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[m,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],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",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),Xr,Fr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Zr,Br]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},H,l,i],radial:["",l,i],conic:[H,l,i]},Kr,qr]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,l,i]}],"outline-w":[{outline:["",m,xe,X]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",x,Qr,Jr]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",l,i,A]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[m,X]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":y()}],opacity:[{opacity:[m,l,i]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",l,i]}],blur:[{blur:we()}],brightness:[{brightness:[m,l,i]}],contrast:[{contrast:[m,l,i]}],"drop-shadow":[{"drop-shadow":["","none",z,l,i]}],grayscale:[{grayscale:["",m,l,i]}],"hue-rotate":[{"hue-rotate":[m,l,i]}],invert:[{invert:["",m,l,i]}],saturate:[{saturate:[m,l,i]}],sepia:[{sepia:["",m,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[m,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[m,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,l,i]}],"backdrop-invert":[{"backdrop-invert":["",m,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[m,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[m,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",m,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",l,i]}],ease:[{ease:["linear","initial",O,l,i]}],delay:[{delay:[m,l,i]}],animate:[{animate:["none",V,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,l,i]}],"perspective-origin":[{"perspective-origin":de()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:de()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[m,xe,X,je]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function st(...e){return nt(We(e))}const at=vr("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"}}),De=j.forwardRef(({className:e,variant:n,size:t,asChild:o=!1,...s},a)=>{const c=o?Ge:"button";return ge.jsx(c,{className:st(at({variant:n,size:t,className:e})),ref:a,...s})});De.displayName="Button",J.Button=De,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
104
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ys="DialogDescriptionWarning",Ks=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uo(Ys).contentName}}.`;return l.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},fo=qr,Xs=Zr,po=eo,Pt=to,At=no,Tt=oo,Ot=ao,xn=lo;const qs=fo,Js=po,mo=l.forwardRef(({className:e,...t},n)=>v.jsx(Pt,{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:n}));mo.displayName=Pt.displayName;const Zs=Kt("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"}}),go=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>v.jsxs(Js,{children:[v.jsx(mo,{}),v.jsxs(At,{ref:o,className:M(Zs({side:e}),t),...r,children:[v.jsxs(xn,{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:[v.jsx(vr,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));go.displayName=At.displayName;const ho=({className:e,...t})=>v.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});ho.displayName="SheetHeader";const vo=l.forwardRef(({className:e,...t},n)=>v.jsx(Tt,{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));vo.displayName=Tt.displayName;const bo=l.forwardRef(({className:e,...t},n)=>v.jsx(Ot,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));bo.displayName=Ot.displayName;function yo({className:e,...t}){return v.jsx("div",{className:M("animate-pulse rounded-md bg-primary/10",e),...t})}const Qs=["top","right","bottom","left"],Ae=Math.min,ae=Math.max,Nt=Math.round,_t=Math.floor,ge=e=>({x:e,y:e}),el={left:"right",right:"left",bottom:"top",top:"bottom"},tl={start:"end",end:"start"};function wn(e,t,n){return ae(e,Ae(t,n))}function xe(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function En(e){return e==="x"?"y":"x"}function Cn(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(we(e))?"y":"x"}function Sn(e){return En(Te(e))}function nl(e,t,n){n===void 0&&(n=!1);const r=Ze(e),o=Sn(e),i=Cn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=kt(a)),[a,kt(a)]}function rl(e){const t=kt(e);return[Rn(e),t,Rn(t)]}function Rn(e){return e.replace(/start|end/g,t=>tl[t])}function ol(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function il(e,t,n,r){const o=Ze(e);let i=ol(we(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Rn)))),i}function kt(e){return e.replace(/left|right|bottom|top/g,t=>el[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function xo(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function Dt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function wo(e,t,n){let{reference:r,floating:o}=e;const i=Te(t),a=Sn(t),s=Cn(a),c=we(t),d=i==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Ze(t)){case"start":g[a]-=h*(n&&d?-1:1);break;case"end":g[a]+=h*(n&&d?-1:1);break}return g}const sl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=wo(d,r,c),h=r,g={},b=0;for(let m=0;m<s.length;m++){const{name:y,fn:x}=s[m],{x:w,y:S,data:R,reset:P}=await x({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=w??f,p=S??p,g={...g,[y]:{...g[y],...R}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(h=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=wo(d,h,c)),m=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}};async function ct(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=xe(t,e),b=xo(g),y=s[h?p==="floating"?"reference":"floating":p],x=Dt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),R=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},P=Dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:S,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 ll=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=xe(e,t)||{};if(d==null)return{};const p=xo(f),h={x:n,y:r},g=Sn(o),b=Cn(g),m=await a.getDimensions(d),y=g==="y",x=y?"top":"left",w=y?"bottom":"right",S=y?"clientHeight":"clientWidth",R=i.reference[b]+i.reference[g]-h[g]-i.floating[b],P=h[g]-i.reference[g],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=C?C[S]:0;(!T||!await(a.isElement==null?void 0:a.isElement(C)))&&(T=s.floating[S]||i.floating[b]);const W=R/2-P/2,G=T/2-m[b]/2-1,V=Ae(p[x],G),J=Ae(p[w],G),K=V,F=T-m[b]-J,j=T/2-m[b]/2+W,U=wn(K,j,F),k=!c.arrow&&Ze(o)!=null&&j!==U&&i.reference[b]/2-(j<K?V:J)-m[b]/2<0,Y=k?j<K?j-K:j-F:0;return{[g]:h[g]+Y,data:{[g]:U,centerOffset:j-U-Y,...k&&{alignmentOffset:Y}},reset:k}}}),cl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...y}=xe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=we(o),w=Te(s),S=we(s)===s,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=h||(S||!m?[kt(s)]:rl(s)),C=b!=="none";!h&&C&&P.push(...il(s,m,b,R));const T=[s,...P],W=await ct(t,y),G=[];let V=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&G.push(W[x]),p){const j=nl(o,a,R);G.push(W[j[0]],W[j[1]])}if(V=[...V,{placement:o,overflows:G}],!G.every(j=>j<=0)){var J,K;const j=(((J=i.flip)==null?void 0:J.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(C){const z=Te(_.placement);return z===w||z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(z=>z>0).reduce((z,ee)=>z+ee,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 Eo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Co(e){return Qs.some(t=>e[t]>=0)}const ul=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xe(e,t);switch(r){case"referenceHidden":{const i=await ct(t,{...o,elementContext:"reference"}),a=Eo(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Co(a)}}}case"escaped":{const i=await ct(t,{...o,altBoundary:!0}),a=Eo(i,n.floating);return{data:{escapedOffsets:a,escaped:Co(a)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=we(n),s=Ze(n),c=Te(n)==="y",d=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,p=xe(t,e);let{mainAxis:h,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:h*d}:{x:h*d,y:g*f}}const fl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await dl(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},pl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=xe(e,t),d={x:n,y:r},f=await ct(t,c),p=Te(we(o)),h=En(p);let g=d[h],b=d[p];if(i){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=g+f[y],S=g-f[x];g=wn(w,g,S)}if(a){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=b+f[y],S=b-f[x];b=wn(w,b,S)}const m=s.fn({...t,[h]:g,[p]:b});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[p]:a}}}}}},ml=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=xe(e,t),f={x:n,y:r},p=Te(o),h=En(p);let g=f[h],b=f[p];const m=xe(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const S=h==="y"?"height":"width",R=i.reference[h]-i.floating[S]+y.mainAxis,P=i.reference[h]+i.reference[S]-y.mainAxis;g<R?g=R:g>P&&(g=P)}if(d){var x,w;const S=h==="y"?"width":"height",R=["top","left"].includes(we(o)),P=i.reference[p]-i.floating[S]+(R&&((x=a.offset)==null?void 0:x[p])||0)+(R?0:y.crossAxis),C=i.reference[p]+i.reference[S]+(R?0:((w=a.offset)==null?void 0:w[p])||0)-(R?y.crossAxis:0);b<P?b=P:b>C&&(b=C)}return{[h]:g,[p]:b}}}},gl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...d}=xe(e,t),f=await ct(t,d),p=we(o),h=Ze(o),g=Te(o)==="y",{width:b,height:m}=i.floating;let y,x;p==="top"||p==="bottom"?(y=p,x=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(x=p,y=h==="end"?"top":"bottom");const w=m-f.top-f.bottom,S=b-f.left-f.right,R=Ae(m-f[y],w),P=Ae(b-f[x],S),C=!t.middlewareData.shift;let T=R,W=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=w),C&&!h){const V=ae(f.left,0),J=ae(f.right,0),K=ae(f.top,0),F=ae(f.bottom,0);g?W=b-2*(V!==0||J!==0?V+J:ae(f.left,f.right)):T=m-2*(K!==0||F!==0?K+F:ae(f.top,f.bottom))}await c({...t,availableWidth:W,availableHeight:T});const G=await a.getDimensions(s.floating);return b!==G.width||m!==G.height?{reset:{rects:!0}}:{}}}};function Mt(){return typeof window<"u"}function Qe(e){return So(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(So(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function So(e){return Mt()?e instanceof Node||e instanceof se(e).Node:!1}function de(e){return Mt()?e instanceof Element||e instanceof se(e).Element:!1}function ve(e){return Mt()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Ro(e){return!Mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function hl(e){return["table","td","th"].includes(Qe(e))}function jt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pn(e){const t=An(),n=de(e)?fe(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vl(e){let t=Oe(e);for(;ve(t)&&!et(t);){if(Pn(t))return t;if(jt(t))return null;t=Oe(t)}return null}function An(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(e){return["html","body","#document"].includes(Qe(e))}function fe(e){return se(e).getComputedStyle(e)}function It(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ro(e)&&e.host||he(e);return Ro(t)?t.host:t}function Po(e){const t=Oe(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:ve(t)&&ut(t)?t:Po(t)}function dt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Po(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=se(o);if(i){const s=Tn(a);return t.concat(a,a.visualViewport||[],ut(o)?o:[],s&&n?dt(s):[])}return t.concat(o,dt(o,[],n))}function Tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ao(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ve(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Nt(n)!==i||Nt(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function On(e){return de(e)?e:e.contextElement}function tt(e){const t=On(e);if(!ve(t))return ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ao(t);let a=(i?Nt(n.width):n.width)/r,s=(i?Nt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const bl=ge(0);function To(e){const t=se(e);return!An()||!t.visualViewport?bl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=On(e);let a=ge(1);t&&(r?de(r)&&(a=tt(r)):a=tt(e));const s=yl(i,n,r)?To(i):ge(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(i){const h=se(i),g=r&&de(r)?se(r):r;let b=h,m=Tn(b);for(;m&&r&&g!==b;){const y=tt(m),x=m.getBoundingClientRect(),w=fe(m),S=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+=S,d+=R,b=se(m),m=Tn(b)}}return Dt({width:f,height:p,x:c,y:d})}function Nn(e,t){const n=It(e).scrollLeft;return t?t.left+n:Ie(he(e)).left+n}function Oo(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Nn(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=he(r),s=t?jt(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=ge(1);const f=ge(0),p=ve(r);if((p||!p&&!i)&&((Qe(r)!=="body"||ut(a))&&(c=It(r)),ve(r))){const g=Ie(r);d=tt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!p&&!i?Oo(a,c,!0):ge(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function wl(e){return Array.from(e.getClientRects())}function El(e){const t=he(e),n=It(e),r=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Nn(e);const s=-n.scrollTop;return fe(r).direction==="rtl"&&(a+=ae(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Cl(e,t){const n=se(e),r=he(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const d=An();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Sl(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ve(e)?tt(e):ge(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,d=r*i.y;return{width:a,height:s,x:c,y:d}}function No(e,t,n){let r;if(t==="viewport")r=Cl(e,n);else if(t==="document")r=El(he(e));else if(de(t))r=Sl(t,n);else{const o=To(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Dt(r)}function _o(e,t){const n=Oe(e);return n===t||!de(n)||et(n)?!1:fe(n).position==="fixed"||_o(n,t)}function Rl(e,t){const n=t.get(e);if(n)return n;let r=dt(e,[],!1).filter(s=>de(s)&&Qe(s)!=="body"),o=null;const i=fe(e).position==="fixed";let a=i?Oe(e):e;for(;de(a)&&!et(a);){const s=fe(a),c=Pn(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ut(a)&&!c&&_o(e,a))?r=r.filter(f=>f!==a):o=s,a=Oe(a)}return t.set(e,r),r}function Pl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?jt(t)?[]:Rl(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((d,f)=>{const p=No(t,f,o);return d.top=ae(p.top,d.top),d.right=Ae(p.right,d.right),d.bottom=Ae(p.bottom,d.bottom),d.left=ae(p.left,d.left),d},No(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Al(e){const{width:t,height:n}=Ao(e);return{width:t,height:n}}function Tl(e,t,n){const r=ve(t),o=he(t),i=n==="fixed",a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ge(0);if(r||!r&&!i)if((Qe(t)!=="body"||ut(o))&&(s=It(t)),r){const h=Ie(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=Nn(o));const d=o&&!r&&!i?Oo(o,s):ge(0),f=a.left+s.scrollLeft-c.x-d.x,p=a.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:a.width,height:a.height}}function _n(e){return fe(e).position==="static"}function ko(e,t){if(!ve(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return he(e)===n&&(n=n.ownerDocument.body),n}function Do(e,t){const n=se(e);if(jt(e))return n;if(!ve(e)){let o=Oe(e);for(;o&&!et(o);){if(de(o)&&!_n(o))return o;o=Oe(o)}return n}let r=ko(e,t);for(;r&&hl(r)&&_n(r);)r=ko(r,t);return r&&et(r)&&_n(r)&&!Pn(r)?n:r||vl(e)||n}const Ol=async function(e){const t=this.getOffsetParent||Do,n=this.getDimensions,r=await n(e.floating);return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Nl(e){return fe(e).direction==="rtl"}const _l={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:he,getClippingRect:Pl,getOffsetParent:Do,getElementRects:Ol,getClientRects:wl,getDimensions:Al,getScale:tt,isElement:de,isRTL:Nl};function Mo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kl(e,t){let n=null,r;const o=he(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=d;if(s||t(),!h||!g)return;const b=_t(p),m=_t(o.clientWidth-(f+h)),y=_t(o.clientHeight-(p+g)),x=_t(f),S={rootMargin:-b+"px "+-m+"px "+-y+"px "+-x+"px",threshold:ae(0,Ae(1,c))||1};let R=!0;function P(C){const T=C[0].intersectionRatio;if(T!==c){if(!R)return a();T?a(!1,T):r=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!Mo(d,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(P,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,S)}n.observe(e)}return a(!0),i}function Dl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=On(e),f=o||i?[...d?dt(d):[],...dt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const p=d&&s?kl(d,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let b,m=c?Ie(e):null;c&&y();function y(){const x=Ie(e);m&&!Mo(m,x)&&n(),m=x,b=requestAnimationFrame(y)}return n(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p==null||p(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Ml=fl,jl=pl,Il=cl,Ll=gl,Fl=ul,jo=ll,$l=ml,zl=(e,t,n)=>{const r=new Map,o={platform:_l,...n},i={...o.platform,_c:r};return sl(e,t,{...o,platform:i})};var Lt=typeof document<"u"?te.useLayoutEffect:te.useEffect;function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ft(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Io(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lo(e,t){const n=Io(e);return Math.round(t*n)/n}function kn(e){const t=l.useRef(e);return Lt(()=>{t.current=e}),t}function Wl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);Ft(h,r)||g(r);const[b,m]=l.useState(null),[y,x]=l.useState(null),w=l.useCallback(_=>{_!==C.current&&(C.current=_,m(_))},[]),S=l.useCallback(_=>{_!==T.current&&(T.current=_,x(_))},[]),R=i||b,P=a||y,C=l.useRef(null),T=l.useRef(null),W=l.useRef(f),G=c!=null,V=kn(c),J=kn(o),K=kn(d),F=l.useCallback(()=>{if(!C.current||!T.current)return;const _={placement:t,strategy:n,middleware:h};J.current&&(_.platform=J.current),zl(C.current,T.current,_).then(z=>{const ee={...z,isPositioned:K.current!==!1};j.current&&!Ft(W.current,ee)&&(W.current=ee,Yn.flushSync(()=>{p(ee)}))})},[h,t,n,J,K]);Lt(()=>{d===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const j=l.useRef(!1);Lt(()=>(j.current=!0,()=>{j.current=!1}),[]),Lt(()=>{if(R&&(C.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:C,floating:T,setReference:w,setFloating:S}),[w,S]),k=l.useMemo(()=>({reference:R,floating:P}),[R,P]),Y=l.useMemo(()=>{const _={position:n,left:0,top:0};if(!k.floating)return _;const z=Lo(k.floating,f.x),ee=Lo(k.floating,f.y);return s?{..._,transform:"translate("+z+"px, "+ee+"px)",...Io(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:ee}},[n,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 Bl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jo({element:r.current,padding:o}).fn(n):{}:r?jo({element:r,padding:o}).fn(n):{}}}},Vl=(e,t)=>({...Ml(e),options:[e,t]}),Hl=(e,t)=>({...jl(e),options:[e,t]}),Gl=(e,t)=>({...$l(e),options:[e,t]}),Ul=(e,t)=>({...Il(e),options:[e,t]}),Yl=(e,t)=>({...Ll(e),options:[e,t]}),Kl=(e,t)=>({...Fl(e),options:[e,t]}),Xl=(e,t)=>({...Bl(e),options:[e,t]});var ql="Arrow",Fo=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return v.jsx(ne.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fo.displayName=ql;var Jl=Fo;function Zl(e){const[t,n]=l.useState(void 0);return Me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,s=d.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Dn="Popper",[$o,zo]=rn(Dn),[Ql,Wo]=$o(Dn),Bo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return v.jsx(Ql,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bo.displayName=Dn;var Vo="PopperAnchor",Ho=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Wo(Vo,n),a=l.useRef(null),s=ce(t,a);return l.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:v.jsx(ne.div,{...o,ref:s})});Ho.displayName=Vo;var Mn="PopperContent",[ec,tc]=$o(Mn),Go=l.forwardRef((e,t)=>{var pe,$e,rt,ze,Vt,pt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...m}=e,y=Wo(Mn,n),[x,w]=l.useState(null),S=ce(t,We=>w(We)),[R,P]=l.useState(null),C=Zl(R),T=(C==null?void 0:C.width)??0,W=(C==null?void 0:C.height)??0,G=r+(i!=="center"?"-"+i:""),V=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},J=Array.isArray(d)?d:[d],K=J.length>0,F={padding:V,boundary:J.filter(rc),altBoundary:K},{refs:j,floatingStyles:U,placement:k,isPositioned:Y,middlewareData:_}=Wl({strategy:"fixed",placement:G,whileElementsMounted:(...We)=>Dl(...We,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Vl({mainAxis:o+W,alignmentAxis:a}),c&&Hl({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Gl():void 0,...F}),c&&Ul({...F}),Yl({...F,apply:({elements:We,rects:Ht,availableWidth:ot,availableHeight:Be})=>{const{width:Gt,height:Ut}=Ht.reference,Ce=We.floating.style;Ce.setProperty("--radix-popper-available-width",`${ot}px`),Ce.setProperty("--radix-popper-available-height",`${Be}px`),Ce.setProperty("--radix-popper-anchor-width",`${Gt}px`),Ce.setProperty("--radix-popper-anchor-height",`${Ut}px`)}}),R&&Xl({element:R,padding:s}),oc({arrowWidth:T,arrowHeight:W}),h&&Kl({strategy:"referenceHidden",...F})]}),[z,ee]=Ko(k),be=Re(b);Me(()=>{Y&&(be==null||be())},[Y,be]);const Le=(pe=_.arrow)==null?void 0:pe.x,Fe=($e=_.arrow)==null?void 0:$e.y,Ne=((rt=_.arrow)==null?void 0:rt.centerOffset)!==0,[_e,Ee]=l.useState();return Me(()=>{x&&Ee(window.getComputedStyle(x).zIndex)},[x]),v.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(ze=_.transformOrigin)==null?void 0:ze.x,(Vt=_.transformOrigin)==null?void 0:Vt.y].join(" "),...((pt=_.hide)==null?void 0:pt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(ec,{scope:n,placedSide:z,onArrowChange:P,arrowX:Le,arrowY:Fe,shouldHideArrow:Ne,children:v.jsx(ne.div,{"data-side":z,"data-align":ee,...m,ref:S,style:{...m.style,animation:Y?void 0:"none"}})})})});Go.displayName=Mn;var Uo="PopperArrow",nc={top:"bottom",right:"left",bottom:"top",left:"right"},Yo=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=tc(Uo,r),a=nc[i.placedSide];return v.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:v.jsx(Jl,{...o,ref:n,style:{...o.style,display:"block"}})})});Yo.displayName=Uo;function rc(e){return e!==null}var oc=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:n,rects:r,middlewareData:o}=t,a=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[d,f]=Ko(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((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=a?p:`${h}px`,m=`${-c}px`):d==="top"?(b=a?p:`${h}px`,m=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,m=a?p:`${g}px`):d==="left"&&(b=`${r.floating.width+c}px`,m=a?p:`${g}px`),{data:{x:b,y:m}}}});function Ko(e){const[t,n="center"]=e.split("-");return[t,n]}var ic=Bo,ac=Ho,sc=Go,lc=Yo,cc="VisuallyHidden",Xo=l.forwardRef((e,t)=>v.jsx(ne.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}}));Xo.displayName=cc;var uc=Xo,[$t,Lu]=rn("Tooltip",[zo]),zt=zo(),qo="TooltipProvider",dc=700,jn="tooltip.open",[fc,In]=$t(qo),Jo=e=>{const{__scopeTooltip:t,delayDuration:n=dc,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),v.jsx(fc,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:i})};Jo.displayName=qo;var Wt="Tooltip",[pc,ft]=$t(Wt),Zo=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,c=In(Wt,e.__scopeTooltip),d=zt(t),[f,p]=l.useState(null),h=ht(),g=l.useRef(0),b=a??c.disableHoverableContent,m=s??c.delayDuration,y=l.useRef(!1),[x=!1,w]=Cr({prop:r,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(jn))):c.onClose(),i==null||i(T)}}),S=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]),C=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)},[]),v.jsx(ic,{...d,children:v.jsx(pc,{scope:t,contentId:h,open:x,stateAttribute:S,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?C():R()},[c.isOpenDelayed,C,R]),onTriggerLeave:l.useCallback(()=>{b?P():(window.clearTimeout(g.current),g.current=0)},[P,b]),onOpen:R,onClose:P,disableHoverableContent:b,children:n})})};Zo.displayName=Wt;var Ln="TooltipTrigger",Qo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ft(Ln,n),i=In(Ln,n),a=zt(n),s=l.useRef(null),c=ce(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]),v.jsx(ac,{asChild:!0,...a,children:v.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:oe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:oe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:oe(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:oe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:oe(e.onBlur,o.onClose),onClick:oe(e.onClick,o.onClose)})})});Qo.displayName=Ln;var Fn="TooltipPortal",[mc,gc]=$t(Fn,{forceMount:void 0}),ei=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=ft(Fn,t);return v.jsx(mc,{scope:t,forceMount:n,children:v.jsx(Ye,{present:n||i.open,children:v.jsx(cn,{asChild:!0,container:o,children:r})})})};ei.displayName=Fn;var nt="TooltipContent",ti=l.forwardRef((e,t)=>{const n=gc(nt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=ft(nt,e.__scopeTooltip);return v.jsx(Ye,{present:r||a.open,children:a.disableHoverableContent?v.jsx(ni,{side:o,...i,ref:t}):v.jsx(hc,{side:o,...i,ref:t})})}),hc=l.forwardRef((e,t)=>{const n=ft(nt,e.__scopeTooltip),r=In(nt,e.__scopeTooltip),o=l.useRef(null),i=ce(t,o),[a,s]=l.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{s(null),p(!1)},[p]),g=l.useCallback((b,m)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},w=xc(x,y.getBoundingClientRect()),S=wc(x,w),R=Ec(m.getBoundingClientRect()),P=Sc([...S,...R]);s(P),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),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,h]),l.useEffect(()=>{if(a){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)),S=!Cc(x,a);w?h():S&&(h(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,a,d,h]),v.jsx(ni,{...e,ref:i})}),[vc,bc]=$t(Wt,{isInside:!1}),ni=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,c=ft(nt,n),d=zt(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(jn,f),()=>document.removeEventListener(jn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),v.jsx(an,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:v.jsxs(sc,{"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:[v.jsx(Qn,{children:r}),v.jsx(vc,{scope:n,isInside:!0,children:v.jsx(uc,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ti.displayName=nt;var ri="TooltipArrow",yc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=zt(n);return bc(ri,n).isInside?null:v.jsx(lc,{...o,...r,ref:t})});yc.displayName=ri;function xc(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function wc(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Ec(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Cc(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,c=t[i].y,d=t[a].x,f=t[a].y;c>r!=f>r&&n<(d-s)*(r-c)/(f-c)+s&&(o=!o)}return o}function Sc(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Rc(t)}function Rc(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Pc=Jo,Ac=Zo,Tc=Qo,Oc=ei,oi=ti;const Nc=Pc,_c=Ac,kc=Tc,ii=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(Oc,{children:v.jsx(oi,{ref:r,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),...n})}));ii.displayName=oi.displayName;const Dc="sidebar_state",Mc=60*60*24*7,jc="16rem",Ic="18rem",Lc="3rem",Fc="b",ai=l.createContext(null);function Bt(){const e=l.useContext(ai);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const si=l.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},s)=>{const c=Sa(),[d,f]=l.useState(!1),[p,h]=l.useState(e),g=t??p,b=l.useCallback(w=>{const S=typeof w=="function"?w(g):w;n?n(S):h(S),document.cookie=`${Dc}=${S}; path=/; max-age=${Mc}`},[n,g]),m=l.useCallback(()=>c?f(w=>!w):b(w=>!w),[c,b,f]);l.useEffect(()=>{const w=S=>{S.key===Fc&&(S.metaKey||S.ctrlKey)&&(S.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 v.jsx(ai.Provider,{value:x,children:v.jsx(Nc,{delayDuration:0,children:v.jsx("div",{style:{"--sidebar-width":jc,"--sidebar-width-icon":Lc,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...a,children:i})})})});si.displayName="SidebarProvider";const $c=l.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:s,state:c,openMobile:d,setOpenMobile:f}=Bt();return n==="none"?v.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):s?v.jsx(qs,{open:d,onOpenChange:f,...i,children:v.jsxs(go,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ic},side:e,children:[v.jsxs(ho,{className:"sr-only",children:[v.jsx(vo,{children:"Sidebar"}),v.jsx(bo,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):v.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,children:[v.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]")}),v.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",r),...i,children:v.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})})]})});$c.displayName="Sidebar";const li=l.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Bt();return v.jsxs(tn,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:i=>{t==null||t(i),o()},...n,children:[v.jsx(Ca,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});li.displayName="SidebarTrigger";const zc=l.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Bt();return v.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,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})});zc.displayName="SidebarRail";const Wc=l.forwardRef(({className:e,...t},n)=>v.jsx("main",{ref:n,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}));Wc.displayName="SidebarInset";const Bc=l.forwardRef(({className:e,...t},n)=>v.jsx(br,{ref:n,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Bc.displayName="SidebarInput";const Vc=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));Vc.displayName="SidebarHeader";const Hc=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));Hc.displayName="SidebarFooter";const Gc=l.forwardRef(({className:e,...t},n)=>v.jsx(Er,{ref:n,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));Gc.displayName="SidebarSeparator";const Uc=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"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}));Uc.displayName="SidebarContent";const Yc=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));Yc.displayName="SidebarGroup";const Kc=l.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?ye:"div";return v.jsx(o,{ref:r,"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),...n})});Kc.displayName="SidebarGroupLabel";const Xc=l.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?ye:"button";return v.jsx(o,{ref:r,"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),...n})});Xc.displayName="SidebarGroupAction";const qc=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));qc.displayName="SidebarGroupContent";const Jc=l.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));Jc.displayName="SidebarMenu";const Zc=l.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));Zc.displayName="SidebarMenuItem";const Qc=Kt("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"}}),eu=l.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},s)=>{const c=e?ye:"button",{isMobile:d,state:f}=Bt(),p=v.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:M(Qc({variant:n,size:r}),i),...a});return o?(typeof o=="string"&&(o={children:o}),v.jsxs(_c,{children:[v.jsx(kc,{asChild:!0,children:p}),v.jsx(ii,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):p});eu.displayName="SidebarMenuButton";const tu=l.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?ye:"button";return v.jsx(i,{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",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});tu.displayName="SidebarMenuAction";const nu=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"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}));nu.displayName="SidebarMenuBadge";const ru=l.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&v.jsx(yo,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(yo,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});ru.displayName="SidebarMenuSkeleton";const ou=l.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"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}));ou.displayName="SidebarMenuSub";const iu=l.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));iu.displayName="SidebarMenuSubItem";const au=l.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?ye:"a";return v.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,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",r),...o})});au.displayName="SidebarMenuSubButton";const su=fo,lu=Xs,ci=po,cu=xn,$n=l.forwardRef(({className:e,...t},n)=>v.jsx(Pt,{ref:n,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}));$n.displayName=Pt.displayName;const ui=l.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(ci,{children:[v.jsx($n,{}),v.jsxs(At,{ref:r,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),...n,children:[t,v.jsxs(xn,{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:[v.jsx(vr,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ui.displayName=At.displayName;const di=({className:e,...t})=>v.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});di.displayName="DialogHeader";const fi=({className:e,...t})=>v.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fi.displayName="DialogFooter";const pi=l.forwardRef(({className:e,...t},n)=>v.jsx(Tt,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));pi.displayName=Tt.displayName;const mi=l.forwardRef(({className:e,...t},n)=>v.jsx(Ot,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));mi.displayName=Ot.displayName,q.Button=tn,q.Dialog=su,q.DialogClose=cu,q.DialogContent=ui,q.DialogDescription=mi,q.DialogFooter=fi,q.DialogHeader=di,q.DialogOverlay=$n,q.DialogPortal=ci,q.DialogTitle=pi,q.DialogTrigger=lu,q.SidebarProvider=si,q.SidebarTrigger=li,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-arreya-components",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -23,7 +23,9 @@
23
23
  "storybook:css": "tailwindcss -w -i ./src/styles/tailwind.css -o ./src/index.css",
24
24
  "build-storybook": "concurrently 'npm run build-storybook:css' 'storybook build'",
25
25
  "build-storybook:css": "tailwindcss -m -i ./src/styles/tailwind.css -o ./src/index.css",
26
- "prepublish": "npm run build"
26
+ "prepare": "husky install",
27
+ "prepublish": "npm run build",
28
+ "publish": "npm publish"
27
29
  },
28
30
  "peerDependencies": {
29
31
  "react": "^18.0.0",
@@ -55,6 +57,7 @@
55
57
  "eslint-plugin-react-refresh": "^0.4.19",
56
58
  "eslint-plugin-storybook": "^0.11.6",
57
59
  "globals": "^15.15.0",
60
+ "husky": "^9.1.7",
58
61
  "lucide-react": "^0.482.0",
59
62
  "playwright": "^1.51.0",
60
63
  "postcss": "^8.5.3",