aravint-ui-navigation 1.0.48 → 1.0.50
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/navigation.cjs.js +31 -2
- package/dist/navigation.es.js +5972 -128
- package/package.json +2 -1
package/dist/navigation.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react/jsx-runtime"),Ee=require("react"),Lr=require("react-dom");function Ir(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const p=Ir(Ee),Mr=Ir(Lr),po=({tabs:e,defaultValue:t,value:r,onValueChange:n,className:o="",tabListClassName:i="",tabButtonClassName:s="",contentClassName:c="thin-scrollbar",showTabNumbers:l=!0,showContent:d=!0,animated:u=!0})=>{var E;const f=r!==void 0,[m,h]=Ee.useState(t||((E=e[0])==null?void 0:E.id)||""),g=f?r:m,y=D=>{f||h(D),n==null||n(D)},b=e.find(D=>D.id===g),x={display:"flex",alignItems:"flex-end",borderBottom:"1px solid #059669",position:"sticky",top:0,zIndex:100,flexShrink:0},w={display:"flex",alignItems:"center",fontFamily:"inherit",background:"transparent",cursor:"pointer",outline:"none",transition:"all .2s ease",position:"relative"},R={background:"#E8F7F1",color:"#059669",fontWeight:700,borderTop:"3px solid #059669",borderLeft:"1px solid #059669",borderRight:"1px solid #059669",borderBottom:"1px solid #E8F7F1",borderTopLeftRadius:8,borderTopRightRadius:8,marginBottom:-1,zIndex:2},S={background:"transparent",color:"#2D3748",borderTop:"3px solid transparent",borderLeft:"1px solid transparent",borderRight:"1px solid transparent",borderBottom:"1px solid transparent",borderTopLeftRadius:8,borderTopRightRadius:8},P={background:"#ECFDF5",color:"#059669",fontWeight:700,border:"1px solid #059669"},N={background:"#FFFFFF",color:"#1F2937",fontWeight:"500",border:"1px solid #1F2937"},O={background:"#FFFFFF",border:"1px solid #D9E1E7",borderTop:"none",borderBottomLeftRadius:12,borderBottomRightRadius:12,boxShadow:"0 2px 6px rgba(0,0,0,.05)",transition:u?"opacity .2s ease":void 0,opacity:1,flex:"1 1 auto",height:0,overflowY:"auto",overflowX:"hidden",minHeight:0,maxHeight:"100%"};return I.jsxs("div",{className:o,style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",minHeight:0,maxHeight:"100%",overflow:"hidden"},children:[I.jsx("style",{children:`
|
|
2
2
|
.ctabs-list {
|
|
3
3
|
padding: 0 10px;
|
|
4
4
|
gap: 0px;
|
|
@@ -72,4 +72,33 @@
|
|
|
72
72
|
font-size: 10px;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
`}),
|
|
75
|
+
`}),I.jsx("div",{style:x,className:`ctabs-list ${i}`,children:e.map((D,B)=>{const J=g===D.id;return I.jsxs("button",{role:"tab","aria-selected":J,disabled:D.disabled,onClick:()=>!D.disabled&&y(D.id),style:{...w,...J?R:S,opacity:D.disabled?.5:1,cursor:D.disabled?"not-allowed":"pointer"},className:`ctabs-btn ${s}`,children:[l&&I.jsx("span",{className:"ctabs-badge",style:J?P:N,children:B+1}),D.icon,I.jsx("span",{className:"ctabs-label",children:D.label})]},D.id)})}),d&&b&&I.jsx("div",{style:O,className:c,children:b.content})]})},mo=e=>p.createElement("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M2 6.2L4.6 8.8L10 3",stroke:"#ffffff",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"})),Wr=Ee.memo(({computed:e,showTime:t})=>{const{step:r,index:n,status:o}=e,i=["rs-stepper__circle",o==="completed"?"rs-stepper__circle--completed":"",o==="active"?"rs-stepper__circle--active":""].filter(Boolean).join(" "),s=["rs-stepper__title",o==="pending"?"rs-stepper__title--pending":"",o==="active"?"rs-stepper__title--active":""].filter(Boolean).join(" "),c=n!==0;return I.jsxs("div",{className:"rs-stepper__step",children:[I.jsxs("div",{className:"rs-stepper__circle-wrap",children:[I.jsx("div",{className:i,children:c?n:null}),o==="completed"&&I.jsx("span",{className:"rs-stepper__check","aria-hidden":"true",children:I.jsx(mo,{})})]}),I.jsx("div",{className:s,children:r.title}),r.date&&I.jsx("div",{className:"rs-stepper__date",children:r.date}),t&&r.time&&I.jsx("div",{className:"rs-stepper__time",children:r.time})]})});Wr.displayName="StepCircle";const ho=({steps:e,currentStep:t,completedColor:r="#059669",pendingColor:n="#9ca3af",activeColor:o="#059669",lineColor:i="#e5e7eb",showTime:s=!0,orientation:c="responsive"})=>{const l=e.length,d=t>l,u=Math.max(1,Math.min(t,l)),f=d?Math.max(0,l-1):Math.max(0,Math.min(l-1,u-1)),m=Ee.useMemo(()=>e.map((R,S)=>{let P="pending";return d||S<f?P="completed":S===f&&(P="active"),{step:R,index:S,status:P}}),[e,f,d]),h=l>0?100/l/2:0,g=l>1?d?100:f/(l-1)*100:0,y=d||u>1?r:i,b=d||u>l?r:i,x={"--rs-completed-color":r,"--rs-pending-color":n,"--rs-active-color":o,"--rs-line-color":i,"--rs-half-step":`${h}%`,"--rs-progress":`${g}%`,"--rs-left-side-color":y,"--rs-right-side-color":b};if(l===0)return null;const w=c==="vertical"?"rs-stepper--vertical":c==="horizontal"?"rs-stepper--horizontal":"rs-stepper--responsive";return I.jsxs("div",{className:"border border-[#E5E7EB] py-2 mx-2 rounded-lg bg-[#F9FAFB] shadow-[0px_2px_4px_-1px_#00000008,0px_4px_6px_-1px_#0000000D]",children:[I.jsx("div",{className:"pl-2 pt-2 pb-3 text-[14px] font-bold",children:"Workflow Progress"}),I.jsx("div",{className:`rs-stepper ${w}`,style:x,children:I.jsx("div",{className:"rs-stepper__scroll",children:I.jsxs("div",{className:"rs-stepper__row",children:[I.jsx("div",{className:"rs-stepper__track",children:I.jsx("div",{className:"rs-stepper__progress"})}),m.map(R=>I.jsx(Wr,{computed:R,showTime:s},R.step.id))]})})})]})},go=Ee.memo(ho);var Ot={exports:{}},qe={};/**
|
|
76
|
+
* @license React
|
|
77
|
+
* react-jsx-runtime.production.min.js
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/var hr;function yo(){if(hr)return qe;hr=1;var e=Ee,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(c,l,d){var u,f={},m=null,h=null;d!==void 0&&(m=""+d),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(f[u]=l[u]);if(c&&c.defaultProps)for(u in l=c.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:c,key:m,ref:h,props:f,_owner:o.current}}return qe.Fragment=r,qe.jsx=s,qe.jsxs=s,qe}var st={};/**
|
|
84
|
+
* @license React
|
|
85
|
+
* react-jsx-runtime.development.js
|
|
86
|
+
*
|
|
87
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the MIT license found in the
|
|
90
|
+
* LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/var gr;function vo(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&(function(){var e=Ee,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function b(a){if(a===null||typeof a!="object")return null;var v=g&&a[g]||a[y];return typeof v=="function"?v:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(a){{for(var v=arguments.length,_=new Array(v>1?v-1:0),z=1;z<v;z++)_[z-1]=arguments[z];R("error",a,_)}}function R(a,v,_){{var z=x.ReactDebugCurrentFrame,H=z.getStackAddendum();H!==""&&(v+="%s",_=_.concat([H]));var Y=_.map(function(L){return String(L)});Y.unshift("Warning: "+v),Function.prototype.apply.call(console[a],console,Y)}}var S=!1,P=!1,N=!1,O=!1,E=!1,D;D=Symbol.for("react.module.reference");function B(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===i||E||a===o||a===d||a===u||O||a===h||S||P||N||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===f||a.$$typeof===s||a.$$typeof===c||a.$$typeof===l||a.$$typeof===D||a.getModuleId!==void 0))}function J(a,v,_){var z=a.displayName;if(z)return z;var H=v.displayName||v.name||"";return H!==""?_+"("+H+")":_}function G(a){return a.displayName||"Context"}function U(a){if(a==null)return null;if(typeof a.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case c:var v=a;return G(v)+".Consumer";case s:var _=a;return G(_._context)+".Provider";case l:return J(a,a.render,"ForwardRef");case f:var z=a.displayName||null;return z!==null?z:U(a.type)||"Memo";case m:{var H=a,Y=H._payload,L=H._init;try{return U(L(Y))}catch{return null}}}return null}var $=Object.assign,X=0,M,W,k,K,re,Se,Re;function Q(){}Q.__reactDisabledLog=!0;function q(){{if(X===0){M=console.log,W=console.info,k=console.warn,K=console.error,re=console.group,Se=console.groupCollapsed,Re=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Q,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}X++}}function he(){{if(X--,X===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},a,{value:M}),info:$({},a,{value:W}),warn:$({},a,{value:k}),error:$({},a,{value:K}),group:$({},a,{value:re}),groupCollapsed:$({},a,{value:Se}),groupEnd:$({},a,{value:Re})})}X<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Te=x.ReactCurrentDispatcher,V;function ge(a,v,_){{if(V===void 0)try{throw Error()}catch(H){var z=H.stack.trim().match(/\n( *(at )?)/);V=z&&z[1]||""}return`
|
|
92
|
+
`+V+a}}var de=!1,le;{var De=typeof WeakMap=="function"?WeakMap:Map;le=new De}function ye(a,v){if(!a||de)return"";{var _=le.get(a);if(_!==void 0)return _}var z;de=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=Te.current,Te.current=null,q();try{if(v){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(oe){z=oe}Reflect.construct(a,[],L)}else{try{L.call()}catch(oe){z=oe}a.call(L.prototype)}}else{try{throw Error()}catch(oe){z=oe}a()}}catch(oe){if(oe&&z&&typeof oe.stack=="string"){for(var A=oe.stack.split(`
|
|
93
|
+
`),ne=z.stack.split(`
|
|
94
|
+
`),Z=A.length-1,ee=ne.length-1;Z>=1&&ee>=0&&A[Z]!==ne[ee];)ee--;for(;Z>=1&&ee>=0;Z--,ee--)if(A[Z]!==ne[ee]){if(Z!==1||ee!==1)do if(Z--,ee--,ee<0||A[Z]!==ne[ee]){var ae=`
|
|
95
|
+
`+A[Z].replace(" at new "," at ");return a.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",a.displayName)),typeof a=="function"&&le.set(a,ae),ae}while(Z>=1&&ee>=0);break}}}finally{de=!1,Te.current=Y,he(),Error.prepareStackTrace=H}var He=a?a.displayName||a.name:"",Ae=He?ge(He):"";return typeof a=="function"&&le.set(a,Ae),Ae}function ze(a,v,_){return ye(a,!1)}function Et(a){var v=a.prototype;return!!(v&&v.isReactComponent)}function We(a,v,_){if(a==null)return"";if(typeof a=="function")return ye(a,Et(a));if(typeof a=="string")return ge(a);switch(a){case d:return ge("Suspense");case u:return ge("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case l:return ze(a.render);case f:return We(a.type,v,_);case m:{var z=a,H=z._payload,Y=z._init;try{return We(Y(H),v,_)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,ot={},it=x.ReactDebugCurrentFrame;function ve(a){if(a){var v=a._owner,_=We(a.type,a._source,v?v.type:null);it.setExtraStackFrame(_)}else it.setExtraStackFrame(null)}function Un(a,v,_,z,H){{var Y=Function.call.bind(Fe);for(var L in a)if(Y(a,L)){var A=void 0;try{if(typeof a[L]!="function"){var ne=Error((z||"React class")+": "+_+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}A=a[L](v,L,z,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){A=Z}A&&!(A instanceof Error)&&(ve(H),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).",z||"React class",_,L,typeof A),ve(null)),A instanceof Error&&!(A.message in ot)&&(ot[A.message]=!0,ve(H),w("Failed %s type: %s",_,A.message),ve(null))}}}var Yn=Array.isArray;function _t(a){return Yn(a)}function Gn(a){{var v=typeof Symbol=="function"&&Symbol.toStringTag,_=v&&a[Symbol.toStringTag]||a.constructor.name||"Object";return _}}function Vn(a){try{return nr(a),!1}catch{return!0}}function nr(a){return""+a}function or(a){if(Vn(a))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gn(a)),nr(a)}var ir=x.ReactCurrentOwner,Xn={key:!0,ref:!0,__self:!0,__source:!0},sr,ar;function Kn(a){if(Fe.call(a,"ref")){var v=Object.getOwnPropertyDescriptor(a,"ref").get;if(v&&v.isReactWarning)return!1}return a.ref!==void 0}function Jn(a){if(Fe.call(a,"key")){var v=Object.getOwnPropertyDescriptor(a,"key").get;if(v&&v.isReactWarning)return!1}return a.key!==void 0}function Qn(a,v){typeof a.ref=="string"&&ir.current}function qn(a,v){{var _=function(){sr||(sr=!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)",v))};_.isReactWarning=!0,Object.defineProperty(a,"key",{get:_,configurable:!0})}}function Zn(a,v){{var _=function(){ar||(ar=!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)",v))};_.isReactWarning=!0,Object.defineProperty(a,"ref",{get:_,configurable:!0})}}var eo=function(a,v,_,z,H,Y,L){var A={$$typeof:t,type:a,key:v,ref:_,props:L,_owner:Y};return A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A,"_self",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.defineProperty(A,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A};function to(a,v,_,z,H){{var Y,L={},A=null,ne=null;_!==void 0&&(or(_),A=""+_),Jn(v)&&(or(v.key),A=""+v.key),Kn(v)&&(ne=v.ref,Qn(v));for(Y in v)Fe.call(v,Y)&&!Xn.hasOwnProperty(Y)&&(L[Y]=v[Y]);if(a&&a.defaultProps){var Z=a.defaultProps;for(Y in Z)L[Y]===void 0&&(L[Y]=Z[Y])}if(A||ne){var ee=typeof a=="function"?a.displayName||a.name||"Unknown":a;A&&qn(L,ee),ne&&Zn(L,ee)}return eo(a,A,ne,H,z,ir.current,L)}}var St=x.ReactCurrentOwner,lr=x.ReactDebugCurrentFrame;function Be(a){if(a){var v=a._owner,_=We(a.type,a._source,v?v.type:null);lr.setExtraStackFrame(_)}else lr.setExtraStackFrame(null)}var Rt;Rt=!1;function Tt(a){return typeof a=="object"&&a!==null&&a.$$typeof===t}function cr(){{if(St.current){var a=U(St.current.type);if(a)return`
|
|
96
|
+
|
|
97
|
+
Check the render method of \``+a+"`."}return""}}function ro(a){return""}var ur={};function no(a){{var v=cr();if(!v){var _=typeof a=="string"?a:a.displayName||a.name;_&&(v=`
|
|
98
|
+
|
|
99
|
+
Check the top-level render call using <`+_+">.")}return v}}function dr(a,v){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var _=no(v);if(ur[_])return;ur[_]=!0;var z="";a&&a._owner&&a._owner!==St.current&&(z=" It was passed a child from "+U(a._owner.type)+"."),Be(a),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,z),Be(null)}}function fr(a,v){{if(typeof a!="object")return;if(_t(a))for(var _=0;_<a.length;_++){var z=a[_];Tt(z)&&dr(z,v)}else if(Tt(a))a._store&&(a._store.validated=!0);else if(a){var H=b(a);if(typeof H=="function"&&H!==a.entries)for(var Y=H.call(a),L;!(L=Y.next()).done;)Tt(L.value)&&dr(L.value,v)}}}function oo(a){{var v=a.type;if(v==null||typeof v=="string")return;var _;if(typeof v=="function")_=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===l||v.$$typeof===f))_=v.propTypes;else return;if(_){var z=U(v);Un(_,a.props,"prop",z,a)}else if(v.PropTypes!==void 0&&!Rt){Rt=!0;var H=U(v);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function io(a){{for(var v=Object.keys(a.props),_=0;_<v.length;_++){var z=v[_];if(z!=="children"&&z!=="key"){Be(a),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z),Be(null);break}}a.ref!==null&&(Be(a),w("Invalid attribute `ref` supplied to `React.Fragment`."),Be(null))}}var pr={};function mr(a,v,_,z,H,Y){{var L=B(a);if(!L){var A="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(A+=" 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 ne=ro();ne?A+=ne:A+=cr();var Z;a===null?Z="null":_t(a)?Z="array":a!==void 0&&a.$$typeof===t?(Z="<"+(U(a.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof a,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,A)}var ee=to(a,v,_,H,Y);if(ee==null)return ee;if(L){var ae=v.children;if(ae!==void 0)if(z)if(_t(ae)){for(var He=0;He<ae.length;He++)fr(ae[He],a);Object.freeze&&Object.freeze(ae)}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 fr(ae,a)}if(Fe.call(v,"key")){var Ae=U(a),oe=Object.keys(v).filter(function(fo){return fo!=="key"}),jt=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!pr[Ae+jt]){var uo=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
100
|
+
let props = %s;
|
|
101
|
+
<%s {...props} />
|
|
102
|
+
React keys must be passed directly to JSX without using spread:
|
|
103
|
+
let props = %s;
|
|
104
|
+
<%s key={someKey} {...props} />`,jt,Ae,uo,Ae),pr[Ae+jt]=!0}}return a===n?io(ee):oo(ee),ee}}function so(a,v,_){return mr(a,v,_,!0)}function ao(a,v,_){return mr(a,v,_,!1)}var lo=ao,co=so;st.Fragment=n,st.jsx=lo,st.jsxs=co})()),st}var yr;function bo(){return yr||(yr=1,process.env.NODE_ENV==="production"?Ot.exports=yo():Ot.exports=vo()),Ot.exports}var C=bo();function Br(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Br(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Hr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Br(e))&&(n&&(n+=" "),n+=t);return n}const vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,br=Hr,xo=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return br(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],f=i==null?void 0:i[d];if(u===null)return null;const m=vr(u)||vr(f);return o[d][m]}),c=r&&Object.entries(r).reduce((d,u)=>{let[f,m]=u;return m===void 0||(d[f]=m),d},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:f,className:m,...h}=u;return Object.entries(h).every(g=>{let[y,b]=g;return Array.isArray(b)?b.includes({...i,...c}[y]):{...i,...c}[y]===b})?[...d,f,m]:d},[]);return br(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},Ut="-",wo=e=>{const t=Eo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const i=o.split(Ut);return i[0]===""&&i.length!==1&&i.shift(),Ur(i,t)||ko(o)},getConflictingClassGroupIds:(o,i)=>{const s=r[o]||[];return i&&n[o]?[...s,...n[o]]:s}}},Ur=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?Ur(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Ut);return(r=t.validators.find(({validator:c})=>c(s)))==null?void 0:r.classGroupId},xr=/^\[(.+)\]$/,ko=e=>{if(xr.test(e)){const t=xr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Eo=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Ft(r[o],n,o,t);return n},Ft=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(_o(o)){Ft(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Ft(s,wr(t,i),r,n)})})},wr=(e,t)=>{let r=e;return t.split(Ut).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},_o=e=>e.isThemeGetter,So=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},At="!",$t=":",Ro=$t.length,To=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,c=0,l=0,d;for(let g=0;g<o.length;g++){let y=o[g];if(s===0&&c===0){if(y===$t){i.push(o.slice(l,g)),l=g+Ro;continue}if(y==="/"){d=g;continue}}y==="["?s++:y==="]"?s--:y==="("?c++:y===")"&&c--}const u=i.length===0?o:o.substring(l),f=jo(u),m=f!==u,h=d&&d>l?d-l:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+$t,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},jo=e=>e.endsWith(At)?e.substring(0,e.length-1):e.startsWith(At)?e.substring(1):e,Oo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(i=>{i[0]==="["||t[i]?(n.push(...o.sort(),i),o=[]):o.push(i)}),n.push(...o.sort()),n}},Co=e=>({cache:So(e.cacheSize),parseClassName:To(e),sortModifiers:Oo(e),...wo(e)}),Po=/\s+/,No=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],c=e.trim().split(Po);let l="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}=r(u);if(f){l=u+(l.length>0?" "+l:l);continue}let b=!!y,x=n(b?g.substring(0,y):g);if(!x){if(!b){l=u+(l.length>0?" "+l:l);continue}if(x=n(g),!x){l=u+(l.length>0?" "+l:l);continue}b=!1}const w=i(m).join(":"),R=h?w+At:w,S=R+x;if(s.includes(S))continue;s.push(S);const P=o(x,b);for(let N=0;N<P.length;++N){const O=P[N];s.push(R+O)}l=u+(l.length>0?" "+l:l)}return l};function Do(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Yr(t))&&(n&&(n+=" "),n+=r);return n}const Yr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Yr(e[n]))&&(r&&(r+=" "),r+=t);return r};function zo(e,...t){let r,n,o,i=s;function s(l){const d=t.reduce((u,f)=>f(u),e());return r=Co(d),n=r.cache.get,o=r.cache.set,i=c,c(l)}function c(l){const d=n(l);if(d)return d;const u=No(l,r);return o(l,u),u}return function(){return i(Do.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fo=/^\d+\/\d+$/,Ao=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$o=/\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$/,Lo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ue=e=>Fo.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),je=e=>!!e&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&F(e.slice(0,-1)),be=e=>Ao.test(e),Wo=()=>!0,Bo=e=>$o.test(e)&&!Lo.test(e),Xr=()=>!1,Ho=e=>Io.test(e),Uo=e=>Mo.test(e),Yo=e=>!T(e)&&!j(e),Go=e=>Xe(e,Qr,Xr),T=e=>Gr.test(e),$e=e=>Xe(e,qr,Bo),Pt=e=>Xe(e,Qo,F),kr=e=>Xe(e,Kr,Xr),Vo=e=>Xe(e,Jr,Uo),at=e=>Xe(e,Zr,Ho),j=e=>Vr.test(e),Ze=e=>Ke(e,qr),Xo=e=>Ke(e,qo),Er=e=>Ke(e,Kr),Ko=e=>Ke(e,Qr),Jo=e=>Ke(e,Jr),lt=e=>Ke(e,Zr,!0),Xe=(e,t,r)=>{const n=Gr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ke=(e,t,r=!1)=>{const n=Vr.exec(e);return n?n[1]?t(n[1]):r:!1},Kr=e=>e==="position"||e==="percentage",Jr=e=>e==="image"||e==="url",Qr=e=>e==="length"||e==="size"||e==="bg-size",qr=e=>e==="length",Qo=e=>e==="number",qo=e=>e==="family-name",Zr=e=>e==="shadow",Zo=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),i=te("leading"),s=te("breakpoint"),c=te("container"),l=te("spacing"),d=te("radius"),u=te("shadow"),f=te("inset-shadow"),m=te("text-shadow"),h=te("drop-shadow"),g=te("blur"),y=te("perspective"),b=te("aspect"),x=te("ease"),w=te("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),j,T],N=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],E=()=>[j,T,l],D=()=>[Ue,"full","auto",...E()],B=()=>[je,"none","subgrid",j,T],J=()=>["auto",{span:["full",je,j,T]},je,j,T],G=()=>[je,"auto",j,T],U=()=>["auto","min","max","fr",j,T],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...E()],W=()=>[Ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],k=()=>[e,j,T],K=()=>[...S(),Er,kr,{position:[j,T]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",Ko,Go,{size:[j,T]}],Re=()=>[Ct,Ze,$e],Q=()=>["","none","full",d,j,T],q=()=>["",F,Ze,$e],he=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[F,Ct,Er,kr],ge=()=>["","none",g,j,T],de=()=>["none",F,j,T],le=()=>["none",F,j,T],De=()=>[F,j,T],ye=()=>[Ue,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[Wo],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[Yo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[be],shadow:[be],spacing:["px",F],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ue,T,j,b]}],container:["container"],columns:[{columns:[F,T,j,c]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:P()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[je,"auto",j,T]}],basis:[{basis:[Ue,"full","auto",c,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,Ue,"auto","initial","none",T]}],grow:[{grow:["",F,j,T]}],shrink:[{shrink:["",F,j,T]}],order:[{order:[je,"first","last","none",j,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,Ze,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,Pt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ct,T]}],"font-family":[{font:[Xo,T,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,j,T]}],"line-clamp":[{"line-clamp":[F,"none",j,Pt]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",j,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",j,$e]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[F,"auto",j,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},je,j,T],radial:["",j,T],conic:[je,j,T]},Jo,Vo]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"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:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,j,T]}],"outline-w":[{outline:["",F,Ze,$e]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,lt,at]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,lt,at]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[F,$e]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,lt,at]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[F,j,T]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[j,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,T]}],filter:[{filter:["","none",j,T]}],blur:[{blur:ge()}],brightness:[{brightness:[F,j,T]}],contrast:[{contrast:[F,j,T]}],"drop-shadow":[{"drop-shadow":["","none",h,lt,at]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",F,j,T]}],"hue-rotate":[{"hue-rotate":[F,j,T]}],invert:[{invert:["",F,j,T]}],saturate:[{saturate:[F,j,T]}],sepia:[{sepia:["",F,j,T]}],"backdrop-filter":[{"backdrop-filter":["","none",j,T]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[F,j,T]}],"backdrop-contrast":[{"backdrop-contrast":[F,j,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,j,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,j,T]}],"backdrop-invert":[{"backdrop-invert":["",F,j,T]}],"backdrop-opacity":[{"backdrop-opacity":[F,j,T]}],"backdrop-saturate":[{"backdrop-saturate":[F,j,T]}],"backdrop-sepia":[{"backdrop-sepia":["",F,j,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",j,T]}],ease:[{ease:["linear","initial",x,j,T]}],delay:[{delay:[F,j,T]}],animate:[{animate:["none",w,j,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,j,T]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[j,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"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",j,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",j,T]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[F,Ze,$e,Pt]}],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-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ei=zo(Zo);function ti(...e){return ei(Hr(e))}function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function _r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function en(...e){return t=>{let r=!1;const n=e.map(o=>{const i=_r(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():_r(e[o],null)}}}}function Me(...e){return p.useCallback(en(...e),e)}function tn(e,t=[]){let r=[];function n(i,s){const c=p.createContext(s),l=r.length;r=[...r,s];const d=f=>{var m;const{scope:h,children:g,...y}=f,b=((m=h==null?void 0:h[e])==null?void 0:m[l])||c,x=p.useMemo(()=>y,Object.values(y));return C.jsx(b.Provider,{value:x,children:g})};d.displayName=i+"Provider";function u(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[l])||c,y=p.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[d,u]}const o=()=>{const i=r.map(s=>p.createContext(s));return function(s){const c=(s==null?void 0:s[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,ri(o,...t)]}function ri(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=n.reduce((s,{useScope:c,scopeName:l})=>{const d=c(o)[`__scope${l}`];return{...s,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function ni(e){const t=oi(e),r=p.forwardRef((n,o)=>{const{children:i,...s}=n,c=p.Children.toArray(i),l=c.find(si);if(l){const d=l.props.children,u=c.map(f=>f===l?p.Children.count(d)>1?p.Children.only(null):p.isValidElement(d)?d.props.children:null:f);return C.jsx(t,{...s,ref:o,children:p.isValidElement(d)?p.cloneElement(d,void 0,u):null})}return C.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function oi(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const s=li(o),c=ai(i,o.props);return o.type!==p.Fragment&&(c.ref=n?en(n,s):s),p.cloneElement(o,c)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rn=Symbol("radix.slottable");function ii(e){const t=({children:r})=>C.jsx(C.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=rn,t}function si(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rn}function ai(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function li(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=ci.reduce((e,t)=>{const r=ni(`Primitive.${t}`),n=p.forwardRef((o,i)=>{const{asChild:s,...c}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(l,{...c,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ui(e,t){e&&Mr.flushSync(()=>e.dispatchEvent(t))}function gt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function di(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e);p.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var fi="DismissableLayer",Lt="dismissableLayer.update",pi="dismissableLayer.pointerDownOutside",mi="dismissableLayer.focusOutside",Sr,nn=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),on=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,d=p.useContext(nn),[u,f]=p.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=p.useState({}),g=Me(t,O=>f(O)),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),w=u?y.indexOf(u):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,P=yi(O=>{const E=O.target,D=[...d.branches].some(B=>B.contains(E));!S||D||(o==null||o(O),s==null||s(O),O.defaultPrevented||c==null||c())},m),N=vi(O=>{const E=O.target;[...d.branches].some(D=>D.contains(E))||(i==null||i(O),s==null||s(O),O.defaultPrevented||c==null||c())},m);return di(O=>{w===d.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&c&&(O.preventDefault(),c()))},m),p.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Sr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Rr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Sr)}},[u,m,r,d]),p.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Rr())},[u,d]),p.useEffect(()=>{const O=()=>h({});return document.addEventListener(Lt,O),()=>document.removeEventListener(Lt,O)},[]),C.jsx(Ne.div,{...l,ref:g,style:{pointerEvents:R?S?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,P.onPointerDownCapture)})});on.displayName=fi;var hi="DismissableLayerBranch",gi=p.forwardRef((e,t)=>{const r=p.useContext(nn),n=p.useRef(null),o=Me(t,n);return p.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),C.jsx(Ne.div,{...e,ref:o})});gi.displayName=hi;function yi(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=c=>{if(c.target&&!n.current){let l=function(){sn(pi,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vi(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e),n=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!n.current&&sn(mi,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Rr(){const e=new CustomEvent(Lt);document.dispatchEvent(e)}function sn(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ui(o,i):o.dispatchEvent(i)}var Oe=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},bi=p[" useId ".trim().toString()]||(()=>{}),xi=0;function wi(e){const[t,r]=p.useState(bi());return Oe(()=>{r(n=>n??String(xi++))},[e]),t?`radix-${t}`:""}const ki=["top","right","bottom","left"],Ce=Math.min,ie=Math.max,ft=Math.round,ct=Math.floor,pe=e=>({x:e,y:e}),Ei={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e,t,r){return ie(e,Ce(t,r))}function we(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function Gt(e){return e==="y"?"height":"width"}function fe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Vt(e){return Yt(fe(e))}function _i(e,t,r){r===void 0&&(r=!1);const n=Je(e),o=Vt(e),i=Gt(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pt(s)),[s,pt(s)]}function Si(e){const t=pt(e);return[Mt(e),t,Mt(t)]}function Mt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Tr=["left","right"],jr=["right","left"],Ri=["top","bottom"],Ti=["bottom","top"];function ji(e,t,r){switch(e){case"top":case"bottom":return r?t?jr:Tr:t?Tr:jr;case"left":case"right":return t?Ri:Ti;default:return[]}}function Oi(e,t,r,n){const o=Je(e);let i=ji(ke(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Mt)))),i}function pt(e){const t=ke(e);return Ei[t]+e.slice(t.length)}function Ci(e){return{top:0,right:0,bottom:0,left:0,...e}}function an(e){return typeof e!="number"?Ci(e):{top:e,right:e,bottom:e,left:e}}function mt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Or(e,t,r){let{reference:n,floating:o}=e;const i=fe(t),s=Vt(t),c=Gt(s),l=ke(t),d=i==="y",u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,m=n[c]/2-o[c]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Je(t)){case"start":h[s]-=m*(r&&d?-1:1);break;case"end":h[s]+=m*(r&&d?-1:1);break}return h}async function Pi(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=we(t,e),g=an(h),y=c[m?f==="floating"?"reference":"floating":f],b=mt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:l})),x=f==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),R=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-S.top+g.top)/R.y,bottom:(S.bottom-b.bottom+g.bottom)/R.y,left:(b.left-S.left+g.left)/R.x,right:(S.right-b.right+g.right)/R.x}}const Ni=50,Di=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:Pi},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Or(d,n,l),m=n,h=0;const g={};for(let y=0;y<i.length;y++){const b=i[y];if(!b)continue;const{name:x,fn:w}=b,{x:R,y:S,data:P,reset:N}=await w({x:u,y:f,initialPlacement:n,placement:m,strategy:o,middlewareData:g,rects:d,platform:c,elements:{reference:e,floating:t}});u=R??u,f=S??f,g[x]={...g[x],...P},N&&h<Ni&&(h++,typeof N=="object"&&(N.placement&&(m=N.placement),N.rects&&(d=N.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:u,y:f}=Or(d,m,l)),y=-1)}return{x:u,y:f,placement:m,strategy:o,middlewareData:g}},zi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:u=0}=we(e,t)||{};if(d==null)return{};const f=an(u),m={x:r,y:n},h=Vt(o),g=Gt(h),y=await s.getDimensions(d),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",R=b?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[h]-m[h]-i.floating[g],P=m[h]-i.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let O=N?N[R]:0;(!O||!await(s.isElement==null?void 0:s.isElement(N)))&&(O=c.floating[R]||i.floating[g]);const E=S/2-P/2,D=O/2-y[g]/2-1,B=Ce(f[x],D),J=Ce(f[w],D),G=B,U=O-y[g]-J,$=O/2-y[g]/2+E,X=It(G,$,U),M=!l.arrow&&Je(o)!=null&&$!==X&&i.reference[g]/2-($<G?B:J)-y[g]/2<0,W=M?$<G?$-G:$-U:0;return{[h]:m[h]+W,data:{[h]:X,centerOffset:$-X-W,...M&&{alignmentOffset:W}},reset:M}}}),Fi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=we(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=ke(o),w=fe(c),R=ke(c)===c,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),P=m||(R||!y?[pt(c)]:Si(c)),N=g!=="none";!m&&N&&P.push(...Oi(c,y,g,S));const O=[c,...P],E=await l.detectOverflow(t,b),D=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&D.push(E[x]),f){const $=_i(o,s,S);D.push(E[$[0]],E[$[1]])}if(B=[...B,{placement:o,overflows:D}],!D.every($=>$<=0)){var J,G;const $=(((J=i.flip)==null?void 0:J.index)||0)+1,X=O[$];if(X&&(!(f==="alignment"&&w!==fe(X))||B.every(W=>fe(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:$,overflows:B},reset:{placement:X}};let M=(G=B.filter(W=>W.overflows[0]<=0).sort((W,k)=>W.overflows[1]-k.overflows[1])[0])==null?void 0:G.placement;if(!M)switch(h){case"bestFit":{var U;const W=(U=B.filter(k=>{if(N){const K=fe(k.placement);return K===w||K==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(K=>K>0).reduce((K,re)=>K+re,0)]).sort((k,K)=>k[1]-K[1])[0])==null?void 0:U[0];W&&(M=W);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Cr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pr(e){return ki.some(t=>e[t]>=0)}const Ai=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=we(e,t);switch(o){case"referenceHidden":{const s=await n.detectOverflow(t,{...i,elementContext:"reference"}),c=Cr(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Pr(c)}}}case"escaped":{const s=await n.detectOverflow(t,{...i,altBoundary:!0}),c=Cr(s,r.floating);return{data:{escapedOffsets:c,escaped:Pr(c)}}}default:return{}}}}},ln=new Set(["left","top"]);async function $i(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=ke(r),c=Je(r),l=fe(r)==="y",d=ln.has(s)?-1:1,u=i&&l?-1:1,f=we(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),l?{x:h*u,y:m*d}:{x:m*d,y:h*u}}const Li=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await $i(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:w,y:R}=x;return{x:w,y:R}}},...d}=we(e,t),u={x:r,y:n},f=await i.detectOverflow(t,d),m=fe(ke(o)),h=Yt(m);let g=u[h],y=u[m];if(s){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",R=g+f[x],S=g-f[w];g=It(R,g,S)}if(c){const x=m==="y"?"top":"left",w=m==="y"?"bottom":"right",R=y+f[x],S=y-f[w];y=It(R,y,S)}const b=l.fn({...t,[h]:g,[m]:y});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[h]:s,[m]:c}}}}}},Mi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=we(e,t),u={x:r,y:n},f=fe(o),m=Yt(f);let h=u[m],g=u[f];const y=we(c,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const R=m==="y"?"height":"width",S=i.reference[m]-i.floating[R]+b.mainAxis,P=i.reference[m]+i.reference[R]-b.mainAxis;h<S?h=S:h>P&&(h=P)}if(d){var x,w;const R=m==="y"?"width":"height",S=ln.has(ke(o)),P=i.reference[f]-i.floating[R]+(S&&((x=s.offset)==null?void 0:x[f])||0)+(S?0:b.crossAxis),N=i.reference[f]+i.reference[R]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?b.crossAxis:0);g<P?g=P:g>N&&(g=N)}return{[m]:h,[f]:g}}}},Wi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:c}=t,{apply:l=()=>{},...d}=we(e,t),u=await s.detectOverflow(t,d),f=ke(o),m=Je(o),h=fe(o)==="y",{width:g,height:y}=i.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(x=f,b=m==="end"?"top":"bottom");const w=y-u.top-u.bottom,R=g-u.left-u.right,S=Ce(y-u[b],w),P=Ce(g-u[x],R),N=!t.middlewareData.shift;let O=S,E=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(E=R),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=w),N&&!m){const B=ie(u.left,0),J=ie(u.right,0),G=ie(u.top,0),U=ie(u.bottom,0);h?E=g-2*(B!==0||J!==0?B+J:ie(u.left,u.right)):O=y-2*(G!==0||U!==0?G+U:ie(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:O});const D=await s.getDimensions(c.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window<"u"}function Qe(e){return cn(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cn(e){return yt()?e instanceof Node||e instanceof se(e).Node:!1}function ce(e){return yt()?e instanceof Element||e instanceof se(e).Element:!1}function _e(e){return yt()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Nr(e){return!yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function rt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function Bi(e){return/^(table|td|th)$/.test(Qe(e))}function vt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Hi=/transform|translate|scale|rotate|perspective|filter/,Ui=/paint|layout|strict|content/,Le=e=>!!e&&e!=="none";let Nt;function Xt(e){const t=ce(e)?ue(e):e;return Le(t.transform)||Le(t.translate)||Le(t.scale)||Le(t.rotate)||Le(t.perspective)||!Kt()&&(Le(t.backdropFilter)||Le(t.filter))||Hi.test(t.willChange||"")||Ui.test(t.contain||"")}function Yi(e){let t=Pe(e);for(;_e(t)&&!Ge(t);){if(Xt(t))return t;if(vt(t))return null;t=Pe(t)}return null}function Kt(){return Nt==null&&(Nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nt}function Ge(e){return/^(html|body|#document)$/.test(Qe(e))}function ue(e){return se(e).getComputedStyle(e)}function bt(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pe(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nr(e)&&e.host||me(e);return Nr(t)?t.host:t}function un(e){const t=Pe(e);return Ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&rt(t)?t:un(t)}function et(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=un(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=se(o);if(i){const c=Wt(s);return t.concat(s,s.visualViewport||[],rt(o)?o:[],c&&r?et(c):[])}else return t.concat(o,et(o,[],r))}function Wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dn(e){const t=ue(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=_e(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,c=ft(r)!==i||ft(n)!==s;return c&&(r=i,n=s),{width:r,height:n,$:c}}function Jt(e){return ce(e)?e:e.contextElement}function Ye(e){const t=Jt(e);if(!_e(t))return pe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=dn(t);let s=(i?ft(r.width):r.width)/n,c=(i?ft(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Gi=pe(0);function fn(e){const t=se(e);return!Kt()||!t.visualViewport?Gi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vi(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==se(e)?!1:t}function Ie(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Jt(e);let s=pe(1);t&&(n?ce(n)&&(s=Ye(n)):s=Ye(e));const c=Vi(i,r,n)?fn(i):pe(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const m=se(i),h=n&&ce(n)?se(n):n;let g=m,y=Wt(g);for(;y&&n&&h!==g;){const b=Ye(y),x=y.getBoundingClientRect(),w=ue(y),R=x.left+(y.clientLeft+parseFloat(w.paddingLeft))*b.x,S=x.top+(y.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,f*=b.y,l+=R,d+=S,g=se(y),y=Wt(g)}}return mt({width:u,height:f,x:l,y:d})}function xt(e,t){const r=bt(e).scrollLeft;return t?t.left+r:Ie(me(e)).left+r}function pn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-xt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Xi(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=me(n),c=t?vt(t.floating):!1;if(n===s||c&&i)return r;let l={scrollLeft:0,scrollTop:0},d=pe(1);const u=pe(0),f=_e(n);if((f||!f&&!i)&&((Qe(n)!=="body"||rt(s))&&(l=bt(n)),f)){const h=Ie(n);d=Ye(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const m=s&&!f&&!i?pn(s,l):pe(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+m.x,y:r.y*d.y-l.scrollTop*d.y+u.y+m.y}}function Ki(e){return Array.from(e.getClientRects())}function Ji(e){const t=me(e),r=bt(e),n=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ie(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+xt(e);const c=-r.scrollTop;return ue(n).direction==="rtl"&&(s+=ie(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:c}}const Dr=25;function Qi(e,t){const r=se(e),n=me(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;const u=Kt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const d=xt(n);if(d<=0){const u=n.ownerDocument,f=u.body,m=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(n.clientWidth-f.clientWidth-h);g<=Dr&&(i-=g)}else d<=Dr&&(i+=d);return{width:i,height:s,x:c,y:l}}function qi(e,t){const r=Ie(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=_e(e)?Ye(e):pe(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=o*i.x,d=n*i.y;return{width:s,height:c,x:l,y:d}}function zr(e,t,r){let n;if(t==="viewport")n=Qi(e,r);else if(t==="document")n=Ji(me(e));else if(ce(t))n=qi(t,r);else{const o=fn(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mt(n)}function mn(e,t){const r=Pe(e);return r===t||!ce(r)||Ge(r)?!1:ue(r).position==="fixed"||mn(r,t)}function Zi(e,t){const r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(c=>ce(c)&&Qe(c)!=="body"),o=null;const i=ue(e).position==="fixed";let s=i?Pe(e):e;for(;ce(s)&&!Ge(s);){const c=ue(s),l=Xt(s);!l&&c.position==="fixed"&&(o=null),(i?!l&&!o:!l&&c.position==="static"&&o&&(o.position==="absolute"||o.position==="fixed")||rt(s)&&!l&&mn(e,s))?n=n.filter(d=>d!==s):o=c,s=Pe(s)}return t.set(e,n),n}function es(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?vt(t)?[]:Zi(t,this._c):[].concat(r),n],s=zr(t,i[0],o);let c=s.top,l=s.right,d=s.bottom,u=s.left;for(let f=1;f<i.length;f++){const m=zr(t,i[f],o);c=ie(m.top,c),l=Ce(m.right,l),d=Ce(m.bottom,d),u=ie(m.left,u)}return{width:l-u,height:d-c,x:u,y:c}}function ts(e){const{width:t,height:r}=dn(e);return{width:t,height:r}}function rs(e,t,r){const n=_e(t),o=me(t),i=r==="fixed",s=Ie(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=pe(0);function d(){l.x=xt(o)}if(n||!n&&!i)if((Qe(t)!=="body"||rt(o))&&(c=bt(t)),n){const h=Ie(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&d();i&&!n&&o&&d();const u=o&&!n&&!i?pn(o,c):pe(0),f=s.left+c.scrollLeft-l.x-u.x,m=s.top+c.scrollTop-l.y-u.y;return{x:f,y:m,width:s.width,height:s.height}}function Dt(e){return ue(e).position==="static"}function Fr(e,t){if(!_e(e)||ue(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return me(e)===r&&(r=r.ownerDocument.body),r}function hn(e,t){const r=se(e);if(vt(e))return r;if(!_e(e)){let o=Pe(e);for(;o&&!Ge(o);){if(ce(o)&&!Dt(o))return o;o=Pe(o)}return r}let n=Fr(e,t);for(;n&&Bi(n)&&Dt(n);)n=Fr(n,t);return n&&Ge(n)&&Dt(n)&&!Xt(n)?r:n||Yi(e)||r}const ns=async function(e){const t=this.getOffsetParent||hn,r=this.getDimensions,n=await r(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function os(e){return ue(e).direction==="rtl"}const is={convertOffsetParentRelativeRectToViewportRelativeRect:Xi,getDocumentElement:me,getClippingRect:es,getOffsetParent:hn,getElementRects:ns,getClientRects:Ki,getDimensions:ts,getScale:Ye,isElement:ce,isRTL:os};function gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ss(e,t){let r=null,n;const o=me(e);function i(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const d=e.getBoundingClientRect(),{left:u,top:f,width:m,height:h}=d;if(c||t(),!m||!h)return;const g=ct(f),y=ct(o.clientWidth-(u+m)),b=ct(o.clientHeight-(f+h)),x=ct(u),w={rootMargin:-g+"px "+-y+"px "+-b+"px "+-x+"px",threshold:ie(0,Ce(1,l))||1};let R=!0;function S(P){const N=P[0].intersectionRatio;if(N!==l){if(!R)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!gn(d,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,w)}r.observe(e)}return s(!0),i}function as(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,d=Jt(e),u=o||i?[...d?et(d):[],...t?et(t):[]]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const f=d&&c?ss(d,r):null;let m=-1,h=null;s&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var R;(R=h)==null||R.observe(t)})),r()}),d&&!l&&h.observe(d),t&&h.observe(t));let g,y=l?Ie(e):null;l&&b();function b(){const x=Ie(e);y&&!gn(y,x)&&r(),y=x,g=requestAnimationFrame(b)}return r(),()=>{var x;u.forEach(w=>{o&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const ls=Li,cs=Ii,us=Fi,ds=Wi,fs=Ai,Ar=zi,ps=Mi,ms=(e,t,r)=>{const n=new Map,o={platform:is,...r},i={...o.platform,_c:n};return Di(e,t,{...o,platform:i})};var hs=typeof document<"u",gs=function(){},dt=hs?Ee.useLayoutEffect:gs;function ht(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ht(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!ht(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $r(e,t){const r=yn(e);return Math.round(t*r)/r}function zt(e){const t=p.useRef(e);return dt(()=>{t.current=e}),t}function ys(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[u,f]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=p.useState(n);ht(m,n)||h(n);const[g,y]=p.useState(null),[b,x]=p.useState(null),w=p.useCallback(k=>{k!==N.current&&(N.current=k,y(k))},[]),R=p.useCallback(k=>{k!==O.current&&(O.current=k,x(k))},[]),S=i||g,P=s||b,N=p.useRef(null),O=p.useRef(null),E=p.useRef(u),D=l!=null,B=zt(l),J=zt(o),G=zt(d),U=p.useCallback(()=>{if(!N.current||!O.current)return;const k={placement:t,strategy:r,middleware:m};J.current&&(k.platform=J.current),ms(N.current,O.current,k).then(K=>{const re={...K,isPositioned:G.current!==!1};$.current&&!ht(E.current,re)&&(E.current=re,Mr.flushSync(()=>{f(re)}))})},[m,t,r,J,G]);dt(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[d]);const $=p.useRef(!1);dt(()=>($.current=!0,()=>{$.current=!1}),[]),dt(()=>{if(S&&(N.current=S),P&&(O.current=P),S&&P){if(B.current)return B.current(S,P,U);U()}},[S,P,U,B,D]);const X=p.useMemo(()=>({reference:N,floating:O,setReference:w,setFloating:R}),[w,R]),M=p.useMemo(()=>({reference:S,floating:P}),[S,P]),W=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!M.floating)return k;const K=$r(M.floating,u.x),re=$r(M.floating,u.y);return c?{...k,transform:"translate("+K+"px, "+re+"px)",...yn(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:K,top:re}},[r,c,M.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:U,refs:X,elements:M,floatingStyles:W}),[u,U,X,M,W])}const vs=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Ar({element:n.current,padding:o}).fn(r):{}:n?Ar({element:n,padding:o}).fn(r):{}}}},bs=(e,t)=>{const r=ls(e);return{name:r.name,fn:r.fn,options:[e,t]}},xs=(e,t)=>{const r=cs(e);return{name:r.name,fn:r.fn,options:[e,t]}},ws=(e,t)=>({fn:ps(e).fn,options:[e,t]}),ks=(e,t)=>{const r=us(e);return{name:r.name,fn:r.fn,options:[e,t]}},Es=(e,t)=>{const r=ds(e);return{name:r.name,fn:r.fn,options:[e,t]}},_s=(e,t)=>{const r=fs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ss=(e,t)=>{const r=vs(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Rs="Arrow",vn=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return C.jsx(Ne.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});vn.displayName=Rs;var Ts=vn;function js(e){const[t,r]=p.useState(void 0);return Oe(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,c;if("borderBoxSize"in i){const l=i.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;r({width:s,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Qt="Popper",[bn,xn]=tn(Qt),[Os,wn]=bn(Qt),kn=e=>{const{__scopePopper:t,children:r}=e,[n,o]=p.useState(null);return C.jsx(Os,{scope:t,anchor:n,onAnchorChange:o,children:r})};kn.displayName=Qt;var En="PopperAnchor",_n=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=wn(En,r),s=p.useRef(null),c=Me(t,s),l=p.useRef(null);return p.useEffect(()=>{const d=l.current;l.current=(n==null?void 0:n.current)||s.current,d!==l.current&&i.onAnchorChange(l.current)}),n?null:C.jsx(Ne.div,{...o,ref:c})});_n.displayName=En;var qt="PopperContent",[Cs,Ps]=bn(qt),Sn=p.forwardRef((e,t)=>{var r,n,o,i,s,c;const{__scopePopper:l,side:d="bottom",sideOffset:u=0,align:f="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:R="optimized",onPlaced:S,...P}=e,N=wn(qt,l),[O,E]=p.useState(null),D=Me(t,ze=>E(ze)),[B,J]=p.useState(null),G=js(B),U=(G==null?void 0:G.width)??0,$=(G==null?void 0:G.height)??0,X=d+(f!=="center"?"-"+f:""),M=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},W=Array.isArray(y)?y:[y],k=W.length>0,K={padding:M,boundary:W.filter(Ds),altBoundary:k},{refs:re,floatingStyles:Se,placement:Re,isPositioned:Q,middlewareData:q}=ys({strategy:"fixed",placement:X,whileElementsMounted:(...ze)=>as(...ze,{animationFrame:R==="always"}),elements:{reference:N.anchor},middleware:[bs({mainAxis:u+$,alignmentAxis:m}),g&&xs({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?ws():void 0,...K}),g&&ks({...K}),Es({...K,apply:({elements:ze,rects:Et,availableWidth:We,availableHeight:Fe})=>{const{width:ot,height:it}=Et.reference,ve=ze.floating.style;ve.setProperty("--radix-popper-available-width",`${We}px`),ve.setProperty("--radix-popper-available-height",`${Fe}px`),ve.setProperty("--radix-popper-anchor-width",`${ot}px`),ve.setProperty("--radix-popper-anchor-height",`${it}px`)}}),B&&Ss({element:B,padding:h}),zs({arrowWidth:U,arrowHeight:$}),w&&_s({strategy:"referenceHidden",...K})]}),[he,Te]=jn(Re),V=gt(S);Oe(()=>{Q&&(V==null||V())},[Q,V]);const ge=(r=q.arrow)==null?void 0:r.x,de=(n=q.arrow)==null?void 0:n.y,le=((o=q.arrow)==null?void 0:o.centerOffset)!==0,[De,ye]=p.useState();return Oe(()=>{O&&ye(window.getComputedStyle(O).zIndex)},[O]),C.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:Q?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:De,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(s=q.transformOrigin)==null?void 0:s.y].join(" "),...((c=q.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(Cs,{scope:l,placedSide:he,onArrowChange:J,arrowX:ge,arrowY:de,shouldHideArrow:le,children:C.jsx(Ne.div,{"data-side":he,"data-align":Te,...P,ref:D,style:{...P.style,animation:Q?void 0:"none"}})})})});Sn.displayName=qt;var Rn="PopperArrow",Ns={top:"bottom",right:"left",bottom:"top",left:"right"},Tn=p.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Ps(Rn,r),i=Ns[o.placedSide];return C.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:C.jsx(Ts,{...n,ref:t,style:{...n.style,display:"block"}})})});Tn.displayName=Rn;function Ds(e){return e!==null}var zs=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o;const{placement:i,rects:s,middlewareData:c}=t,l=((r=c.arrow)==null?void 0:r.centerOffset)!==0,d=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[f,m]=jn(i),h={start:"0%",center:"50%",end:"100%"}[m],g=(((n=c.arrow)==null?void 0:n.x)??0)+d/2,y=(((o=c.arrow)==null?void 0:o.y)??0)+u/2;let b="",x="";return f==="bottom"?(b=l?h:`${g}px`,x=`${-u}px`):f==="top"?(b=l?h:`${g}px`,x=`${s.floating.height+u}px`):f==="right"?(b=`${-u}px`,x=l?h:`${y}px`):f==="left"&&(b=`${s.floating.width+u}px`,x=l?h:`${y}px`),{data:{x:b,y:x}}}});function jn(e){const[t,r="center"]=e.split("-");return[t,r]}var Fs=kn,As=_n,$s=Sn,Ls=Tn,Is="Portal",On=p.forwardRef((e,t)=>{var r;const{container:n,...o}=e,[i,s]=p.useState(!1);Oe(()=>s(!0),[]);const c=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?Lr.createPortal(C.jsx(Ne.div,{...o,ref:t}),c):null});On.displayName=Is;function Ms(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=Ws(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=Me(n.ref,Bs(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:i}):null};Zt.displayName="Presence";function Ws(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),i=p.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Ms(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const d=ut(n.current);i.current=c==="mounted"?d:"none"},[c]),Oe(()=>{const d=n.current,u=o.current;if(u!==e){const f=i.current,m=ut(d);e?l("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Oe(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=h=>{const g=ut(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=h=>{h.target===t&&(i.current=ut(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:p.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function ut(e){return(e==null?void 0:e.animationName)||"none"}function Bs(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Hs=p[" useInsertionEffect ".trim().toString()]||Oe;function Us({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=Ys({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:o;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const f=u.current;f!==c&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=c},[c,n])}const d=p.useCallback(u=>{var f;if(c){const m=Gs(u)?u(e):u;m!==e&&((f=s.current)==null||f.call(s,m))}else i(u)},[c,e,i,s]);return[l,d]}function Ys({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),i=p.useRef(t);return Hs(()=>{i.current=t},[t]),p.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Gs(e){return typeof e=="function"}var Vs=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Xs="VisuallyHidden",Cn=p.forwardRef((e,t)=>C.jsx(Ne.span,{...e,ref:t,style:{...Vs,...e.style}}));Cn.displayName=Xs;var Ks=Cn,[wt]=tn("Tooltip",[xn]),kt=xn(),Pn="TooltipProvider",Js=700,Bt="tooltip.open",[Qs,er]=wt(Pn),Nn=e=>{const{__scopeTooltip:t,delayDuration:r=Js,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=p.useRef(!0),c=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),C.jsx(Qs,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:p.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:i})};Nn.displayName=Pn;var tt="Tooltip",[qs,nt]=wt(tt),Dn=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,l=er(tt,e.__scopeTooltip),d=kt(t),[u,f]=p.useState(null),m=wi(),h=p.useRef(0),g=s??l.disableHoverableContent,y=c??l.delayDuration,b=p.useRef(!1),[x,w]=Us({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Bt))):l.onClose(),i==null||i(O)},caller:tt}),R=p.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),S=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),P=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},y)},[y,w]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),C.jsx(Fs,{...d,children:C.jsx(qs,{scope:t,contentId:m,open:x,stateAttribute:R,trigger:u,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:p.useCallback(()=>{g?P():(window.clearTimeout(h.current),h.current=0)},[P,g]),onOpen:S,onClose:P,disableHoverableContent:g,children:r})})};Dn.displayName=tt;var Ht="TooltipTrigger",zn=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nt(Ht,r),i=er(Ht,r),s=kt(r),c=p.useRef(null),l=Me(t,c,o.onTriggerChange),d=p.useRef(!1),u=p.useRef(!1),f=p.useCallback(()=>d.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),C.jsx(As,{asChild:!0,...s,children:C.jsx(Ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:xe(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:xe(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:xe(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:xe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:xe(e.onBlur,o.onClose),onClick:xe(e.onClick,o.onClose)})})});zn.displayName=Ht;var tr="TooltipPortal",[Zs,ea]=wt(tr,{forceMount:void 0}),Fn=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=nt(tr,t);return C.jsx(Zs,{scope:t,forceMount:r,children:C.jsx(Zt,{present:r||i.open,children:C.jsx(On,{asChild:!0,container:o,children:n})})})};Fn.displayName=tr;var Ve="TooltipContent",An=p.forwardRef((e,t)=>{const r=ea(Ve,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=nt(Ve,e.__scopeTooltip);return C.jsx(Zt,{present:n||s.open,children:s.disableHoverableContent?C.jsx($n,{side:o,...i,ref:t}):C.jsx(ta,{side:o,...i,ref:t})})}),ta=p.forwardRef((e,t)=>{const r=nt(Ve,e.__scopeTooltip),n=er(Ve,e.__scopeTooltip),o=p.useRef(null),i=Me(t,o),[s,c]=p.useState(null),{trigger:l,onClose:d}=r,u=o.current,{onPointerInTransitChange:f}=n,m=p.useCallback(()=>{c(null),f(!1)},[f]),h=p.useCallback((g,y)=>{const b=g.currentTarget,x={x:g.clientX,y:g.clientY},w=ia(x,b.getBoundingClientRect()),R=sa(x,w),S=aa(y.getBoundingClientRect()),P=ca([...R,...S]);c(P),f(!0)},[f]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(l&&u){const g=b=>h(b,u),y=b=>h(b,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",y)}}},[l,u,h,m]),p.useEffect(()=>{if(s){const g=y=>{const b=y.target,x={x:y.clientX,y:y.clientY},w=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),R=!la(x,s);w?m():R&&(m(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,s,d,m]),C.jsx($n,{...e,ref:i})}),[ra,na]=wt(tt,{isInside:!1}),oa=ii("TooltipContent"),$n=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=e,l=nt(Ve,r),d=kt(r),{onClose:u}=l;return p.useEffect(()=>(document.addEventListener(Bt,u),()=>document.removeEventListener(Bt,u)),[u]),p.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),C.jsx(on,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:C.jsxs($s,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.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:[C.jsx(oa,{children:n}),C.jsx(ra,{scope:r,isInside:!0,children:C.jsx(Ks,{id:l.contentId,role:"tooltip",children:o||n})})]})})});An.displayName=Ve;var Ln="TooltipArrow",In=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=kt(r);return na(Ln,r).isInside?null:C.jsx(Ls,{...o,...n,ref:t})});In.displayName=Ln;function ia(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function sa(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function aa(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function la(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i],l=t[s],d=c.x,u=c.y,f=l.x,m=l.y;u>n!=m>n&&r<(f-d)*(n-u)/(m-u)+d&&(o=!o)}return o}function ca(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ua(t)}function ua(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var da=Nn,fa=Dn,pa=zn,ma=Fn,Mn=An,ha=In;const Wn=da,Bn=fa,Hn=pa,rr=p.forwardRef(({className:e,sideOffset:t=6,style:r,...n},o)=>{const i={backgroundColor:"#000000",color:"#ffffff",zIndex:99999,...r};return C.jsx(ma,{children:C.jsxs(Mn,{ref:o,sideOffset:t,className:`overflow-hidden rounded-lg border border-slate-950 px-3 py-1 text-xs text-white ${e??""}`,style:i,...n,children:[n.children,C.jsx(ha,{style:{fill:"#000000"}})]})})});rr.displayName=Mn.displayName;const ga=xo("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-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-1 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),ya=Ee.forwardRef(({className:e,variant:t,size:r,loading:n=!1,disabled:o,children:i,leftIcon:s,datatestid:c,rightIcon:l,style:d,iconButton:u=!1,tooltipLabel:f,saveColor:m="#003B71",deleteColor:h="#FF6070",updateColor:g="#003B71",cancelColor:y="#ffffff",outlineColor:b="#003B71",...x},w)=>{const R={...t&&{save:{backgroundColor:m},delete:{backgroundColor:h},update:{backgroundColor:g},cancel:{backgroundColor:y},outline:{backgroundColor:b}}[t],...d},S=C.jsx("button",{ref:w,"data-testid":c,className:ti(ga({variant:t,size:r}),e),style:R,disabled:o||n,...x,children:C.jsxs(C.Fragment,{children:[n&&C.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!n&&s&&s,i,!n&&l&&l]})});return u?C.jsx(Wn,{children:C.jsxs(Bn,{children:[C.jsx(Hn,{asChild:!0,children:S}),f&&C.jsx(rr,{children:f})]})}):S});ya.displayName="Button";const va=({text:e="",maxLength:t=20,className:r=""})=>{const n=String(e??""),o=n.length>t,i=o?`${n.slice(0,t)}..`:n;return o?C.jsx(Wn,{children:C.jsxs(Bn,{children:[C.jsx(Hn,{asChild:!0,children:C.jsx("div",{className:`flex items-center cursor-pointer ${r}`,children:i})}),n&&C.jsx(rr,{children:n})]})}):C.jsx("div",{className:`flex items-center ${r}`,children:i})},ba=({rows:e,className:t="mt-2 mx-2"})=>I.jsx("div",{className:`summary-detail-card ${t}`.trim(),children:e.map((r,n)=>I.jsx("div",{className:"summary-detail-card__row",children:r.map((o,i)=>I.jsxs("div",{className:"summary-detail-card__field",style:{"--dc-span":o.span??1},children:[I.jsx("p",{className:"summary-detail-card__label",children:o.label}),I.jsx("p",{className:`summary-detail-card__value${o.size==="lg"?" summary-detail-card__value--lg":""}`,children:I.jsx(va,{text:o.value==null?"":String(o.value),maxLength:20})})]},i))},n))}),xa=({title:e,description:t,icon:r,className:n="",children:o})=>I.jsxs("div",{className:`flex flex-col items-center justify-center py-4 px-4 text-center ${n}`,children:[r&&I.jsx("div",{className:"mb-2",children:r}),I.jsx("div",{className:"text-[14px] font-semibold text-[#34343F]",children:e}),(t||o)&&I.jsx("div",{className:"mt-2 max-w-[650px]",style:{fontSize:"12px",lineHeight:1.6,color:"#A19D9D"},children:o??t})]});exports.CustomTabs=po;exports.EmptyState=xa;exports.Stepper=go;exports.SummaryDetailsCard=ba;
|