@service_laboratory/ui 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +42 -0
- package/dist/index.js +5363 -4220
- package/dist/index.umd.cjs +25 -103
- package/package.json +3 -2
package/dist/index.umd.cjs
CHANGED
|
@@ -1,132 +1,54 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Nr;function xa(){if(Nr)return Ye;Nr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var c in o)c!=="key"&&(a[c]=o[c])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Ye.Fragment=t,Ye.jsx=r,Ye.jsxs=r,Ye}var Ke={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Dr;function wa(){return Dr||(Dr=1,process.env.NODE_ENV!=="production"&&(function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===z?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case g:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList";case I:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case h:return"Portal";case O:return(x.displayName||"Context")+".Provider";case S:return(x._context.displayName||"Context")+".Consumer";case w:var M=x.render;return x=x.displayName,x||(x=M.displayName||M.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case A:return M=x.displayName||null,M!==null?M:e(x.type)||"Memo";case _:M=x._payload,x=x._init;try{return e(x(M))}catch{}}return null}function t(x){return""+x}function r(x){try{t(x);var M=!1}catch{M=!0}if(M){M=console;var W=M.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return W.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(x)}}function n(x){if(x===g)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===_)return"<...>";try{var M=e(x);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function o(){var x=H.A;return x===null?null:x.getOwner()}function a(){return Error("react-stack-top-frame")}function i(x){if(U.call(x,"key")){var M=Object.getOwnPropertyDescriptor(x,"key").get;if(M&&M.isReactWarning)return!1}return x.key!==void 0}function c(x,M){function W(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}function l(){var x=e(this.type);return F[x]||(F[x]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),x=this.props.ref,x!==void 0?x:null}function s(x,M,W,j,Y,Q,_e,B){return W=Q.ref,x={$$typeof:p,type:x,key:M,props:Q,_owner:Y},(W!==void 0?W:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:l}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function m(x,M,W,j,Y,Q,_e,B){var X=M.children;if(X!==void 0)if(j)if(G(X)){for(j=0;j<X.length;j++)d(X[j]);Object.freeze&&Object.freeze(X)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(X);if(U.call(M,"key")){X=e(x);var ie=Object.keys(M).filter(function(Ne){return Ne!=="key"});j=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",q[X+j]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
1
|
+
(function(A,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(A=typeof globalThis<"u"?globalThis:A||self,D(A.ui={},A.react))})(this,(function(A,D){"use strict";function Js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Js(D);function Qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}},et={};var dr;function ei(){if(dr)return et;dr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return et.Fragment=t,et.jsx=n,et.jsxs=n,et}var tt={};var fr;function ti(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===B?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case C:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case E:return(S.displayName||"Context")+".Provider";case w:return(S._context.displayName||"Context")+".Consumer";case x:var I=S.render;return S=S.displayName,S||(S=I.displayName||I.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case O:return I=S.displayName||null,I!==null?I:e(S.type)||"Memo";case R:I=S._payload,S=S._init;try{return e(S(I))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var I=!1}catch{I=!0}if(I){I=console;var G=I.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return G.call(I,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(S)}}function r(S){if(S===h)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===R)return"<...>";try{var I=e(S);return I?"<"+I+">":"<...>"}catch{return"<...>"}}function o(){var S=U.A;return S===null?null:S.getOwner()}function a(){return Error("react-stack-top-frame")}function s(S){if(H.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function i(S,I){function G(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",I))}G.isReactWarning=!0,Object.defineProperty(S,"key",{get:G,configurable:!0})}function l(){var S=e(this.type);return F[S]||(F[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function c(S,I,G,V,X,Q,se,$){return G=Q.ref,S={$$typeof:g,type:S,key:I,props:Q,_owner:X},(G!==void 0?G:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function p(S,I,G,V,X,Q,se,$){var J=I.children;if(J!==void 0)if(V)if(Y(J)){for(V=0;V<J.length;V++)u(J[V]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(J);if(H.call(I,"key")){J=e(S);var le=Object.keys(I).filter(function($e){return $e!=="key"});V=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",k[J+V]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
2
|
let props = %s;
|
|
19
3
|
<%s {...props} />
|
|
20
4
|
React keys must be passed directly to JSX without using spread:
|
|
21
5
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
23
|
-
* @license React
|
|
24
|
-
* react-dom.production.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var Lr;function Oa(){if(Lr)return ee;Lr=1;var e=D;function t(l){var s="https://react.dev/errors/"+l;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)s+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,s,m){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:l,containerInfo:s,implementation:m}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(l,s){if(l==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,ee.createPortal=function(l,s){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error(t(299));return a(l,s,null,m)},ee.flushSync=function(l){var s=i.T,m=n.p;try{if(i.T=null,n.p=2,l)return l()}finally{i.T=s,n.p=m,n.d.f()}},ee.preconnect=function(l,s){typeof l=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,n.d.C(l,s))},ee.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},ee.preinit=function(l,s){if(typeof l=="string"&&s&&typeof s.as=="string"){var m=s.as,d=c(m,s.crossOrigin),u=typeof s.integrity=="string"?s.integrity:void 0,p=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;m==="style"?n.d.S(l,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:d,integrity:u,fetchPriority:p}):m==="script"&&n.d.X(l,{crossOrigin:d,integrity:u,fetchPriority:p,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},ee.preinitModule=function(l,s){if(typeof l=="string")if(typeof s=="object"&&s!==null){if(s.as==null||s.as==="script"){var m=c(s.as,s.crossOrigin);n.d.M(l,{crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})}}else s==null&&n.d.M(l)},ee.preload=function(l,s){if(typeof l=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){var m=s.as,d=c(m,s.crossOrigin);n.d.L(l,m,{crossOrigin:d,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},ee.preloadModule=function(l,s){if(typeof l=="string")if(s){var m=c(s.as,s.crossOrigin);n.d.m(l,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0})}else n.d.m(l)},ee.requestFormReset=function(l){n.d.r(l)},ee.unstable_batchedUpdates=function(l,s){return l(s)},ee.useFormState=function(l,s,m){return i.H.useFormState(l,s,m)},ee.useFormStatus=function(){return i.H.useHostTransitionStatus()},ee.version="19.1.1",ee}var te={};/**
|
|
31
|
-
* @license React
|
|
32
|
-
* react-dom.development.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var Ir;function _a(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(d){return""+d}function r(d,u,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(h);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object"),t(h)),{$$typeof:s,key:h==null?null:""+h,children:d,containerInfo:u,implementation:p}}function n(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function a(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function i(){var d=m.H;return d===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
6
|
+
<%s key={someKey} {...props} />`,V,J,le,J),k[J+V]=!0)}if(J=null,G!==void 0&&(n(G),J=""+G),s(I)&&(n(I.key),J=""+I.key),"key"in I){G={};for(var Se in I)Se!=="key"&&(G[Se]=I[Se])}else G=I;return J&&i(G,typeof S=="function"?S.displayName||S.name||"Unknown":S),c(S,J,Q,X,o(),G,se,$)}function u(S){typeof S=="object"&&S!==null&&S.$$typeof===g&&S._store&&(S._store.validated=1)}var d=D,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),U=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,Y=Array.isArray,W=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(S){return S()}};var q,F={},K=d.react_stack_bottom_frame.bind(d,a)(),_=W(r(a)),k={};tt.Fragment=h,tt.jsx=function(S,I,G,V,X){var Q=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!1,V,X,Q?Error("react-stack-top-frame"):K,Q?W(r(S)):_)},tt.jsxs=function(S,I,G,V,X){var Q=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!0,V,X,Q?Error("react-stack-top-frame"):K,Q?W(r(S)):_)}})()),tt}var pr;function ni(){return pr||(pr=1,process.env.NODE_ENV==="production"?wt.exports=ei():wt.exports=ti()),wt.exports}var m=ni();function ri(e,t){const n=f.createContext(t),r=a=>{const{children:s,...i}=a,l=f.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Oe(e,t=[]){let n=[];function r(a,s){const i=f.createContext(s),l=n.length;n=[...n,s];const c=u=>{const{scope:d,children:g,...v}=u,h=d?.[e]?.[l]||i,b=f.useMemo(()=>v,Object.values(v));return m.jsx(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(u,d){const g=d?.[e]?.[l]||i,v=f.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=n.map(s=>f.createContext(s));return function(i){const l=i?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,oi(o,...t)]}function oi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...i,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function de(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}var fe=globalThis?.document?f.useLayoutEffect:()=>{},St={exports:{}},ne={};var mr;function ai(){if(mr)return ne;mr=1;var e=D;function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,c,p){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:u==null?null:""+u,children:l,containerInfo:c,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(l,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(l,c,null,p)},ne.flushSync=function(l){var c=s.T,p=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=c,r.p=p,r.d.f()}},ne.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},ne.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},ne.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin),d=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;p==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:u,integrity:d,fetchPriority:g}):p==="script"&&r.d.X(l,{crossOrigin:u,integrity:d,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},ne.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var p=i(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},ne.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin);r.d.L(l,p,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},ne.preloadModule=function(l,c){if(typeof l=="string")if(c){var p=i(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},ne.requestFormReset=function(l){r.d.r(l)},ne.unstable_batchedUpdates=function(l,c){return l(c)},ne.useFormState=function(l,c,p){return s.H.useFormState(l,c,p)},ne.useFormStatus=function(){return s.H.useHostTransitionStatus()},ne.version="19.1.1",ne}var re={};var gr;function si(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(u){return""+u}function n(u,d,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:c,key:v==null?null:""+v,children:u,containerInfo:d,implementation:g}}function r(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}function o(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":'something with type "'+typeof u+'"'}function a(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":typeof u=="string"?JSON.stringify(u):typeof u=="number"?"`"+u+"`":'something with type "'+typeof u+'"'}function s(){var u=p.H;return u===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
39
7
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
40
8
|
2. You might be breaking the Rules of Hooks
|
|
41
9
|
3. You might have more than one copy of React in the same app
|
|
42
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},s=Symbol.for("react.portal"),m=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),te.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,te.createPortal=function(d,u){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error("Target container is not a DOM element.");return r(d,u,null,p)},te.flushSync=function(d){var u=m.T,p=l.p;try{if(m.T=null,l.p=2,d)return d()}finally{m.T=u,l.p=p,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},te.preconnect=function(d,u){typeof d=="string"&&d?u!=null&&typeof u!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(u)):u!=null&&typeof u.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(u.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,l.d.C(d,u))},te.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var u=arguments[1];typeof u=="object"&&u.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(u)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(u))}typeof d=="string"&&l.d.D(d)},te.preinit=function(d,u){if(typeof d=="string"&&d?u==null||typeof u!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(u)):u.as!=="style"&&u.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(u.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&u&&typeof u.as=="string"){var p=u.as,h=n(p,u.crossOrigin),g=typeof u.integrity=="string"?u.integrity:void 0,b=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;p==="style"?l.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:b}):p==="script"&&l.d.X(d,{crossOrigin:h,integrity:g,fetchPriority:b,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},te.preinitModule=function(d,u){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),u!==void 0&&typeof u!="object"?p+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&u.as!=="script"&&(p+=" The `as` option encountered was "+a(u.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=u&&typeof u.as=="string"?u.as:"script",p){case"script":break;default:p=a(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,d)}typeof d=="string"&&(typeof u=="object"&&u!==null?(u.as==null||u.as==="script")&&(p=n(u.as,u.crossOrigin),l.d.M(d,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})):u==null&&l.d.M(d))},te.preload=function(d,u){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),u==null||typeof u!="object"?p+=" The `options` argument encountered was "+o(u)+".":typeof u.as=="string"&&u.as||(p+=" The `as` option encountered was "+o(u.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){p=u.as;var h=n(p,u.crossOrigin);l.d.L(d,p,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},te.preloadModule=function(d,u){var p="";typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),u!==void 0&&typeof u!="object"?p+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&typeof u.as!="string"&&(p+=" The `as` option encountered was "+o(u.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof d=="string"&&(u?(p=n(u.as,u.crossOrigin),l.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0})):l.d.m(d))},te.requestFormReset=function(d){l.d.r(d)},te.unstable_batchedUpdates=function(d,u){return d(u)},te.useFormState=function(d,u,p){return i().useFormState(d,u,p)},te.useFormStatus=function(){return i().useHostTransitionStatus()},te.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),te}var jr;function Aa(){if(jr)return it.exports;jr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),it.exports=Oa()):it.exports=_a(),it.exports}var jt=Aa();const Ra=ya(jt);function Fr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ft(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fr(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Fr(e[o],null)}}}}function ce(...e){return f.useCallback(Ft(...e),e)}function $t(e){const t=ka(e),r=f.forwardRef((n,o)=>{const{children:a,...i}=n,c=f.Children.toArray(a),l=c.find(Pa);if(l){const s=l.props.children,m=c.map(d=>d===l?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:d);return v.jsx(t,{...i,ref:o,children:f.isValidElement(s)?f.cloneElement(s,void 0,m):null})}return v.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var we=$t("Slot");function ka(e){const t=f.forwardRef((r,n)=>{const{children:o,...a}=r;if(f.isValidElement(o)){const i=Da(o),c=Na(a,o.props);return o.type!==f.Fragment&&(c.ref=n?Ft(n,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $r=Symbol("radix.slottable");function Ta(e){const t=({children:r})=>v.jsx(v.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$r,t}function Pa(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$r}function Na(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Da(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ma=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Ma.reduce((e,t)=>{const r=$t(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...c}=o,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...c,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function La(e,t){e&&jt.flushSync(()=>e.dispatchEvent(t))}var st={exports:{}},zt={};/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var zr;function Ia(){if(zr)return zt;zr=1;var e=D;function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function c(d,u){var p=u(),h=n({inst:{value:p,getSnapshot:u}}),g=h[0].inst,b=h[1];return a(function(){g.value=p,g.getSnapshot=u,l(g)&&b({inst:g})},[d,p,u]),o(function(){return l(g)&&b({inst:g}),d(function(){l(g)&&b({inst:g})})},[d]),i(p),p}function l(d){var u=d.getSnapshot;d=d.value;try{var p=u();return!r(d,p)}catch{return!0}}function s(d,u){return u()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:c;return zt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,zt}var Vt={};/**
|
|
51
|
-
* @license React
|
|
52
|
-
* use-sync-external-store-shim.development.js
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var Vr;function ja(){return Vr||(Vr=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function t(p,h){m||o.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=h();if(!d){var b=h();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}b=i({inst:{value:g,getSnapshot:h}});var y=b[0].inst,S=b[1];return l(function(){y.value=g,y.getSnapshot=h,r(y)&&S({inst:y})},[p,g,h]),c(function(){return r(y)&&S({inst:y}),p(function(){r(y)&&S({inst:y})})},[p]),s(g),g}function r(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!a(p,g)}catch{return!0}}function n(p,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,i=o.useState,c=o.useEffect,l=o.useLayoutEffect,s=o.useDebugValue,m=!1,d=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Vt.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Vt}var Wr;function Fa(){return Wr||(Wr=1,process.env.NODE_ENV==="production"?st.exports=Ia():st.exports=ja()),st.exports}var $a=Fa();function za(){return $a.useSyncExternalStore(Va,()=>!0,()=>!1)}function Va(){return()=>{}}var Wt="Avatar",[Wa,Md]=at(Wt),[Ba,Br]=Wa(Wt),Hr=f.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=f.useState("idle");return v.jsx(Ba,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:v.jsx(J.span,{...n,ref:t})})});Hr.displayName=Wt;var Ur="AvatarImage",Ha=f.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=Br(Ur,r),c=Ga(n,a),l=Ae(s=>{o(s),i.onImageLoadingStatusChange(s)});return se(()=>{c!=="idle"&&l(c)},[c,l]),c==="loaded"?v.jsx(J.img,{...a,ref:t,src:n}):null});Ha.displayName=Ur;var Gr="AvatarFallback",Ua=f.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=Br(Gr,r),[i,c]=f.useState(n===void 0);return f.useEffect(()=>{if(n!==void 0){const l=window.setTimeout(()=>c(!0),n);return()=>window.clearTimeout(l)}},[n]),i&&a.imageLoadingStatus!=="loaded"?v.jsx(J.span,{...o,ref:t}):null});Ua.displayName=Gr;function Yr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Ga(e,{referrerPolicy:t,crossOrigin:r}){const n=za(),o=f.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[i,c]=f.useState(()=>Yr(a,e));return se(()=>{c(Yr(a,e))},[a,e]),se(()=>{const l=d=>()=>{c(d)};if(!a)return;const s=l("loaded"),m=l("error");return a.addEventListener("load",s),a.addEventListener("error",m),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",s),a.removeEventListener("error",m)}},[a,r,t]),i}var Ya=Hr;function Kr(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=Kr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function qr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Kr(e))&&(n&&(n+=" "),n+=t);return n}const Bt="-",Ka=e=>{const t=Xa(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const c=i.split(Bt);return c[0]===""&&c.length!==1&&c.shift(),Xr(c,t)||qa(i)},getConflictingClassGroupIds:(i,c)=>{const l=r[i]||[];return c&&n[i]?[...l,...n[i]]:l}}},Xr=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Xr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Bt);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Zr=/^\[(.+)\]$/,qa=e=>{if(Zr.test(e)){const t=Zr.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Xa=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Ht(r[o],n,o,t);return n},Ht=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Jr(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Za(o)){Ht(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Ht(i,Jr(t,a),r,n)})})},Jr=(e,t)=>{let r=e;return t.split(Bt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Za=e=>e.isThemeGetter,Ja=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},Ut="!",Gt=":",Qa=Gt.length,ei=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,c=0,l=0,s;for(let h=0;h<o.length;h++){let g=o[h];if(i===0&&c===0){if(g===Gt){a.push(o.slice(l,h)),l=h+Qa;continue}if(g==="/"){s=h;continue}}g==="["?i++:g==="]"?i--:g==="("?c++:g===")"&&c--}const m=a.length===0?o:o.substring(l),d=ti(m),u=d!==m,p=s&&s>l?s-l:void 0;return{modifiers:a,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+Gt,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ti=e=>e.endsWith(Ut)?e.substring(0,e.length-1):e.startsWith(Ut)?e.substring(1):e,ri=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},ni=e=>({cache:Ja(e.cacheSize),parseClassName:ei(e),sortModifiers:ri(e),...Ka(e)}),oi=/\s+/,ai=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],c=e.trim().split(oi);let l="";for(let s=c.length-1;s>=0;s-=1){const m=c[s],{isExternal:d,modifiers:u,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=r(m);if(d){l=m+(l.length>0?" "+l:l);continue}let b=!!g,y=n(b?h.substring(0,g):h);if(!y){if(!b){l=m+(l.length>0?" "+l:l);continue}if(y=n(h),!y){l=m+(l.length>0?" "+l:l);continue}b=!1}const S=a(u).join(":"),O=p?S+Ut:S,w=O+y;if(i.includes(w))continue;i.push(w);const E=o(y,b);for(let T=0;T<E.length;++T){const A=E[T];i.push(O+A)}l=m+(l.length>0?" "+l:l)}return l};function ii(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Qr(t))&&(n&&(n+=" "),n+=r);return n}const Qr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Qr(e[n]))&&(r&&(r+=" "),r+=t);return r};function si(e,...t){let r,n,o,a=i;function i(l){const s=t.reduce((m,d)=>d(m),e());return r=ni(s),n=r.cache.get,o=r.cache.set,a=c,c(l)}function c(l){const s=n(l);if(s)return s;const m=ai(l,r);return o(l,m),m}return function(){return a(ii.apply(null,arguments))}}const Z=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},en=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ci=/^\d+\/\d+$/,li=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ui=/\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$/,di=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,De=e=>ci.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Se=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&L(e.slice(0,-1)),be=e=>li.test(e),pi=()=>!0,gi=e=>ui.test(e)&&!di.test(e),rn=()=>!1,hi=e=>fi.test(e),vi=e=>mi.test(e),bi=e=>!R(e)&&!k(e),yi=e=>Me(e,cn,rn),R=e=>en.test(e),Re=e=>Me(e,ln,gi),Kt=e=>Me(e,Ci,L),nn=e=>Me(e,an,rn),xi=e=>Me(e,sn,vi),ct=e=>Me(e,un,hi),k=e=>tn.test(e),qe=e=>Le(e,ln),wi=e=>Le(e,Oi),on=e=>Le(e,an),Si=e=>Le(e,cn),Ei=e=>Le(e,sn),lt=e=>Le(e,un,!0),Me=(e,t,r)=>{const n=en.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Le=(e,t,r=!1)=>{const n=tn.exec(e);return n?n[1]?t(n[1]):r:!1},an=e=>e==="position"||e==="percentage",sn=e=>e==="image"||e==="url",cn=e=>e==="length"||e==="size"||e==="bg-size",ln=e=>e==="length",Ci=e=>e==="number",Oi=e=>e==="family-name",un=e=>e==="shadow",_i=si(()=>{const e=Z("color"),t=Z("font"),r=Z("text"),n=Z("font-weight"),o=Z("tracking"),a=Z("leading"),i=Z("breakpoint"),c=Z("container"),l=Z("spacing"),s=Z("radius"),m=Z("shadow"),d=Z("inset-shadow"),u=Z("text-shadow"),p=Z("drop-shadow"),h=Z("blur"),g=Z("perspective"),b=Z("aspect"),y=Z("ease"),S=Z("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),k,R],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],_=()=>[k,R,l],I=()=>[De,"full","auto",..._()],z=()=>[Se,"none","subgrid",k,R],H=()=>["auto",{span:["full",Se,k,R]},Se,k,R],U=()=>[Se,"auto",k,R],G=()=>["auto","min","max","fr",k,R],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",..._()],$=()=>[De,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C=()=>[e,k,R],q=()=>[...w(),on,nn,{position:[k,R]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",Si,yi,{size:[k,R]}],W=()=>[Yt,qe,Re],j=()=>["","none","full",s,k,R],Y=()=>["",L,qe,Re],Q=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[L,Yt,on,nn],X=()=>["","none",h,k,R],ie=()=>["none",L,k,R],ve=()=>["none",L,k,R],Ne=()=>[L,k,R],Ge=()=>[De,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[pi],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[bi],"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",L],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",De,R,k,b]}],container:["container"],columns:[{columns:[L,R,k,c]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Se,"auto",k,R]}],basis:[{basis:[De,"full","auto",c,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,De,"auto","initial","none",R]}],grow:[{grow:["",L,k,R]}],shrink:[{shrink:["",L,k,R]}],order:[{order:[Se,"first","last","none",k,R]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[c,"screen",...$()]}],"min-w":[{"min-w":[c,"screen","none",...$()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,qe,Re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,k,Kt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,R]}],"font-family":[{font:[wi,R,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,k,R]}],"line-clamp":[{"line-clamp":[L,"none",k,Kt]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",k,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",k,Re]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[L,"auto",k,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,R]}],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",k,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Se,k,R],radial:["",k,R],conic:[Se,k,R]},Ei,xi]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,k,R]}],"outline-w":[{outline:["",L,qe,Re]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",m,lt,ct]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",d,lt,ct]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[L,Re]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",u,lt,ct]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[L,k,R]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"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":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[k,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,R]}],filter:[{filter:["","none",k,R]}],blur:[{blur:X()}],brightness:[{brightness:[L,k,R]}],contrast:[{contrast:[L,k,R]}],"drop-shadow":[{"drop-shadow":["","none",p,lt,ct]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",L,k,R]}],"hue-rotate":[{"hue-rotate":[L,k,R]}],invert:[{invert:["",L,k,R]}],saturate:[{saturate:[L,k,R]}],sepia:[{sepia:["",L,k,R]}],"backdrop-filter":[{"backdrop-filter":["","none",k,R]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[L,k,R]}],"backdrop-contrast":[{"backdrop-contrast":[L,k,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,k,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,k,R]}],"backdrop-invert":[{"backdrop-invert":["",L,k,R]}],"backdrop-opacity":[{"backdrop-opacity":[L,k,R]}],"backdrop-saturate":[{"backdrop-saturate":[L,k,R]}],"backdrop-sepia":[{"backdrop-sepia":["",L,k,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",k,R]}],ease:[{ease:["linear","initial",y,k,R]}],delay:[{delay:[L,k,R]}],animate:[{animate:["none",S,k,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,k,R]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[k,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",k,R]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",k,R]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[L,qe,Re,Kt]}],stroke:[{stroke:["none",...C()]}],"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"]}});function N(...e){return _i(qr(e))}function Ai({className:e,...t}){return v.jsx(Ya,{"data-slot":"avatar",className:N("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}const dn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fn=qr,qt=(e,t)=>r=>{var n;if(t?.variants==null)return fn(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(s=>{const m=r?.[s],d=a?.[s];if(m===null)return null;const u=dn(m)||dn(d);return o[s][u]}),c=r&&Object.entries(r).reduce((s,m)=>{let[d,u]=m;return u===void 0||(s[d]=u),s},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((s,m)=>{let{class:d,className:u,...p}=m;return Object.entries(p).every(h=>{let[g,b]=h;return Array.isArray(b)?b.includes({...a,...c}[g]):{...a,...c}[g]===b})?[...s,d,u]:s},[]);return fn(e,i,l,r?.class,r?.className)},mn=qt("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ri({className:e,variant:t,asChild:r=!1,...n}){const o=r?we:"span";return v.jsx(o,{"data-slot":"badge",className:N(mn({variant:t}),e),...n})}const pn=qt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function gn({className:e,variant:t="default",size:r="default",asChild:n=!1,...o}){const a=n?we:"button";return v.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:N(pn({variant:t,size:r,className:e})),...o})}function ki({className:e,...t}){return v.jsx("div",{"data-slot":"card",className:N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Ti({className:e,...t}){return v.jsx("div",{"data-slot":"card-header",className:N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Pi({className:e,...t}){return v.jsx("div",{"data-slot":"card-title",className:N("leading-none font-semibold",e),...t})}function Ni({className:e,...t}){return v.jsx("div",{"data-slot":"card-description",className:N("text-muted-foreground text-sm",e),...t})}function Di({className:e,...t}){return v.jsx("div",{"data-slot":"card-action",className:N("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Mi({className:e,...t}){return v.jsx("div",{"data-slot":"card-content",className:N("px-6",e),...t})}function Li({className:e,...t}){return v.jsx("div",{"data-slot":"card-footer",className:N("flex items-center px-6 [.border-t]:pt-6",e),...t})}var Ii="Label",hn=f.forwardRef((e,t)=>v.jsx(J.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));hn.displayName=Ii;var ji=hn,Fi=e=>e.type==="checkbox",Xe=e=>e instanceof Date,Xt=e=>e==null;const vn=e=>typeof e=="object";var ke=e=>!Xt(e)&&!Array.isArray(e)&&vn(e)&&!Xe(e),$i=e=>ke(e)&&e.target?Fi(e.target)?e.target.checked:e.target.value:e,zi=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Vi=(e,t)=>e.has(zi(t)),Wi=e=>{const t=e.constructor&&e.constructor.prototype;return ke(t)&&t.hasOwnProperty("isPrototypeOf")},Bi=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bn(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Bi&&(e instanceof Blob||n))&&(r||ke(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Wi(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=bn(e[o]));else return e;return t}var yn=e=>/^\w*$/.test(e),Zt=e=>e===void 0,Hi=e=>Array.isArray(e)?e.filter(Boolean):[],xn=e=>Hi(e.replace(/["|']|\]/g,"").split(/\.|\[/)),re=(e,t,r)=>{if(!t||!ke(e))return r;const n=(yn(t)?[t]:xn(t)).reduce((o,a)=>Xt(o)?o:o[a],e);return Zt(n)||n===e?Zt(e[t])?r:e[t]:n},Jt=e=>typeof e=="boolean",wn=(e,t,r)=>{let n=-1;const o=yn(t)?[t]:xn(t),a=o.length,i=a-1;for(;++n<a;){const c=o[n];let l=r;if(n!==i){const s=e[c];l=ke(s)||Array.isArray(s)?s:isNaN(+o[n+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=l,e=e[c]}};const Sn={BLUR:"blur",CHANGE:"change"},En={all:"all"},Qt=D.createContext(null);Qt.displayName="HookFormContext";const ut=()=>D.useContext(Qt),Ui=e=>{const{children:t,...r}=e;return D.createElement(Qt.Provider,{value:r},t)};var Gi=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==En.all&&(t._proxyFormState[i]=!n||En.all),r&&(r[i]=!0),e[i]}});return o};const Cn=typeof window<"u"?D.useLayoutEffect:D.useEffect;function On(e){const t=ut(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,c]=D.useState(r._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Cn(()=>r._subscribe({name:o,formState:l.current,exact:a,callback:s=>{!n&&c({...r._formState,...s})}}),[o,n,a]),D.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),D.useMemo(()=>Gi(i,r,l.current,!1),[i,r])}var Yi=e=>typeof e=="string",_n=(e,t,r,n,o)=>Yi(e)?re(r,e,o):Array.isArray(e)?e.map(a=>re(r,a)):r,An=e=>Xt(e)||!vn(e);function dt(e,t,r=new WeakSet){if(An(e)||An(t))return Object.is(e,t);if(Xe(e)&&Xe(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const c=t[a];if(Xe(i)&&Xe(c)||ke(i)&&ke(c)||Array.isArray(i)&&Array.isArray(c)?!dt(i,c,r):!Object.is(i,c))return!1}}return!0}function Ki(e){const t=ut(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:c}=e||{},l=D.useRef(o),s=D.useRef(c),m=D.useRef(void 0),d=D.useRef(r),u=D.useRef(n);s.current=c;const[p,h]=D.useState(()=>{const w=r._getWatch(n,l.current);return s.current?s.current(w):w}),g=D.useCallback(w=>{const E=_n(n,r._names,w||r._formValues,!1,l.current);return s.current?s.current(E):E},[r._formValues,r._names,n]),b=D.useCallback(w=>{if(!a){const E=_n(n,r._names,w||r._formValues,!1,l.current);if(s.current){const T=s.current(E);dt(T,m.current)||(h(T),m.current=T)}else h(E)}},[r._formValues,r._names,a,n]);Cn(()=>((d.current!==r||!dt(u.current,n))&&(d.current=r,u.current=n,b()),r._subscribe({name:n,formState:{values:!0},exact:i,callback:w=>{b(w.values)}})),[r,i,n,b]),D.useEffect(()=>r._removeUnmounted());const y=d.current!==r,S=u.current,O=D.useMemo(()=>{if(a)return null;const w=!y&&!dt(S,n);return y||w?g():null},[a,y,n,S,g]);return O!==null?O:p}function qi(e){const t=ut(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:c=!0}=e,l=Vi(o._names.array,r),s=D.useMemo(()=>re(o._formValues,r,re(o._defaultValues,r,i)),[o,r,i]),m=Ki({control:o,name:r,defaultValue:s,exact:c}),d=On({control:o,name:r,exact:c}),u=D.useRef(e),p=D.useRef(void 0),h=D.useRef(o.register(r,{...e.rules,value:m,...Jt(e.disabled)?{disabled:e.disabled}:{}}));u.current=e;const g=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!re(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!re(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!re(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!re(d.validatingFields,r)},error:{enumerable:!0,get:()=>re(d.errors,r)}}),[d,r]),b=D.useCallback(w=>h.current.onChange({target:{value:$i(w),name:r},type:Sn.CHANGE}),[r]),y=D.useCallback(()=>h.current.onBlur({target:{value:re(o._formValues,r),name:r},type:Sn.BLUR}),[r,o._formValues]),S=D.useCallback(w=>{const E=re(o._fields,r);E&&w&&(E._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:T=>w.setCustomValidity(T),reportValidity:()=>w.reportValidity()})},[o._fields,r]),O=D.useMemo(()=>({name:r,value:m,...Jt(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:b,onBlur:y,ref:S}),[r,n,d.disabled,b,y,S,m]);return D.useEffect(()=>{const w=o._options.shouldUnregister||a,E=p.current;E&&E!==r&&!l&&o.unregister(E),o.register(r,{...u.current.rules,...Jt(u.current.disabled)?{disabled:u.current.disabled}:{}});const T=(A,_)=>{const I=re(o._fields,A);I&&I._f&&(I._f.mount=_)};if(T(r,!0),w){const A=bn(re(o._options.defaultValues,r,u.current.defaultValue));wn(o._defaultValues,r,A),Zt(re(o._formValues,r))&&wn(o._formValues,r,A)}return!l&&o.register(r),p.current=r,()=>{(l?w&&!o._state.action:w)?o.unregister(r):T(r,!1)}},[r,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),D.useMemo(()=>({field:O,formState:d,fieldState:g}),[O,d,g])}const Xi=e=>e.render(qi(e));function Rn({className:e,...t}){return v.jsx(ji,{"data-slot":"label",className:N("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Zi=Ui,kn=f.createContext({}),Ji=({...e})=>v.jsx(kn.Provider,{value:{name:e.name},children:v.jsx(Xi,{...e})}),Ze=()=>{const e=f.useContext(kn),t=f.useContext(Tn),{getFieldState:r}=ut(),n=On({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Tn=f.createContext({});function Qi({className:e,...t}){const r=f.useId();return v.jsx(Tn.Provider,{value:{id:r},children:v.jsx("div",{"data-slot":"form-item",className:N("grid gap-2",e),...t})})}function es({className:e,...t}){const{error:r,formItemId:n}=Ze();return v.jsx(Rn,{"data-slot":"form-label","data-error":!!r,className:N("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function ts({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Ze();return v.jsx(we,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function rs({className:e,...t}){const{formDescriptionId:r}=Ze();return v.jsx("p",{"data-slot":"form-description",id:r,className:N("text-muted-foreground text-sm",e),...t})}function ns({className:e,...t}){const{error:r,formMessageId:n}=Ze(),o=r?String(r?.message??""):t.children;return o?v.jsx("p",{"data-slot":"form-message",id:n,className:N("text-destructive text-sm",e),...t,children:o}):null}function Pn({className:e,type:t,...r}){return v.jsx("input",{type:t,"data-slot":"input",className:N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}/**
|
|
59
|
-
* @license lucide-react v0.562.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const os=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),as=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Nn=e=>{const t=as(e);return t.charAt(0).toUpperCase()+t.slice(1)},Dn=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),is=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
64
|
-
* @license lucide-react v0.562.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var ss={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
69
|
-
* @license lucide-react v0.562.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const cs=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...c},l)=>D.createElement("svg",{ref:l,...ss,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Dn("lucide",o),...!a&&!is(c)&&{"aria-hidden":"true"},...c},[...i.map(([s,m])=>D.createElement(s,m)),...Array.isArray(a)?a:[a]]));/**
|
|
74
|
-
* @license lucide-react v0.562.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const Mn=(e,t)=>{const r=D.forwardRef(({className:n,...o},a)=>D.createElement(cs,{ref:a,iconNode:t,className:Dn(`lucide-${os(Nn(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Nn(e),r};/**
|
|
79
|
-
* @license lucide-react v0.562.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const ls=Mn("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
84
|
-
* @license lucide-react v0.562.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const us=Mn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),er=768;function ds(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const r=window.matchMedia(`(max-width: ${er-1}px)`),n=()=>{t(window.innerWidth<er)};return r.addEventListener("change",n),t(window.innerWidth<er),()=>r.removeEventListener("change",n)},[]),!!e}var fs=Symbol.for("react.lazy"),ft=f[" use ".trim().toString()];function ms(e){return typeof e=="object"&&e!==null&&"then"in e}function Ln(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fs&&"_payload"in e&&ms(e._payload)}function ps(e){const t=gs(e),r=f.forwardRef((n,o)=>{let{children:a,...i}=n;Ln(a)&&typeof ft=="function"&&(a=ft(a._payload));const c=f.Children.toArray(a),l=c.find(vs);if(l){const s=l.props.children,m=c.map(d=>d===l?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:d);return v.jsx(t,{...i,ref:o,children:f.isValidElement(s)?f.cloneElement(s,void 0,m):null})}return v.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function gs(e){const t=f.forwardRef((r,n)=>{let{children:o,...a}=r;if(Ln(o)&&typeof ft=="function"&&(o=ft(o._payload)),f.isValidElement(o)){const i=ys(o),c=bs(a,o.props);return o.type!==f.Fragment&&(c.ref=n?Ft(n,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hs=Symbol("radix.slottable");function vs(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hs}function bs(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ys(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ws=xs.reduce((e,t)=>{const r=ps(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...c}=o,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...c,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Ss="Separator",In="horizontal",Es=["horizontal","vertical"],jn=f.forwardRef((e,t)=>{const{decorative:r,orientation:n=In,...o}=e,a=Cs(n)?n:In,c=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return v.jsx(ws.div,{"data-orientation":a,...c,...o,ref:t})});jn.displayName=Ss;function Cs(e){return Es.includes(e)}var Os=jn;function _s({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return v.jsx(Os,{"data-slot":"separator",decorative:r,orientation:t,className:N("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var As=f[" useId ".trim().toString()]||(()=>{}),Rs=0;function mt(e){const[t,r]=f.useState(As());return se(()=>{r(n=>n??String(Rs++))},[e]),e||(t?`radix-${t}`:"")}var ks=f[" useInsertionEffect ".trim().toString()]||se;function Fn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=Ts({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:o;{const m=f.useRef(e!==void 0);f.useEffect(()=>{const d=m.current;d!==c&&console.warn(`${n} is changing from ${d?"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.`),m.current=c},[c,n])}const s=f.useCallback(m=>{if(c){const d=Ps(m)?m(e):m;d!==e&&i.current?.(d)}else a(m)},[c,e,a,i]);return[l,s]}function Ts({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),a=f.useRef(t);return ks(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Ps(e){return typeof e=="function"}function Ns(e,t=globalThis?.document){const r=Ae(e);f.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 Ds="DismissableLayer",tr="dismissableLayer.update",Ms="dismissableLayer.pointerDownOutside",Ls="dismissableLayer.focusOutside",$n,zn=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rr=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...l}=e,s=f.useContext(zn),[m,d]=f.useState(null),u=m?.ownerDocument??globalThis?.document,[,p]=f.useState({}),h=ce(t,A=>d(A)),g=Array.from(s.layers),[b]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),S=m?g.indexOf(m):-1,O=s.layersWithOutsidePointerEventsDisabled.size>0,w=S>=y,E=Fs(A=>{const _=A.target,I=[...s.branches].some(z=>z.contains(_));!w||I||(o?.(A),i?.(A),A.defaultPrevented||c?.())},u),T=$s(A=>{const _=A.target;[...s.branches].some(z=>z.contains(_))||(a?.(A),i?.(A),A.defaultPrevented||c?.())},u);return Ns(A=>{S===s.layers.size-1&&(n?.(A),!A.defaultPrevented&&c&&(A.preventDefault(),c()))},u),f.useEffect(()=>{if(m)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&($n=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(m)),s.layers.add(m),Vn(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=$n)}},[m,u,r,s]),f.useEffect(()=>()=>{m&&(s.layers.delete(m),s.layersWithOutsidePointerEventsDisabled.delete(m),Vn())},[m,s]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(tr,A),()=>document.removeEventListener(tr,A)},[]),v.jsx(J.div,{...l,ref:h,style:{pointerEvents:O?w?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,E.onPointerDownCapture)})});rr.displayName=Ds;var Is="DismissableLayerBranch",js=f.forwardRef((e,t)=>{const r=f.useContext(zn),n=f.useRef(null),o=ce(t,n);return f.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),v.jsx(J.div,{...e,ref:o})});js.displayName=Is;function Fs(e,t=globalThis?.document){const r=Ae(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=c=>{if(c.target&&!n.current){let l=function(){Wn(Ms,r,s,{discrete:!0})};const s={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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function $s(e,t=globalThis?.document){const r=Ae(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&Wn(Ls,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Vn(){const e=new CustomEvent(tr);document.dispatchEvent(e)}function Wn(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?La(o,a):o.dispatchEvent(a)}var nr="focusScope.autoFocusOnMount",or="focusScope.autoFocusOnUnmount",Bn={bubbles:!1,cancelable:!0},zs="FocusScope",Hn=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,l]=f.useState(null),s=Ae(o),m=Ae(a),d=f.useRef(null),u=ce(t,g=>l(g)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let g=function(O){if(p.paused||!c)return;const w=O.target;c.contains(w)?d.current=w:Ee(d.current,{select:!0})},b=function(O){if(p.paused||!c)return;const w=O.relatedTarget;w!==null&&(c.contains(w)||Ee(d.current,{select:!0}))},y=function(O){if(document.activeElement===document.body)for(const E of O)E.removedNodes.length>0&&Ee(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const S=new MutationObserver(y);return c&&S.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),S.disconnect()}}},[n,c,p.paused]),f.useEffect(()=>{if(c){Yn.add(p);const g=document.activeElement;if(!c.contains(g)){const y=new CustomEvent(nr,Bn);c.addEventListener(nr,s),c.dispatchEvent(y),y.defaultPrevented||(Vs(Gs(Un(c)),{select:!0}),document.activeElement===g&&Ee(c))}return()=>{c.removeEventListener(nr,s),setTimeout(()=>{const y=new CustomEvent(or,Bn);c.addEventListener(or,m),c.dispatchEvent(y),y.defaultPrevented||Ee(g??document.body,{select:!0}),c.removeEventListener(or,m),Yn.remove(p)},0)}}},[c,s,m,p]);const h=f.useCallback(g=>{if(!r&&!n||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const S=g.currentTarget,[O,w]=Ws(S);O&&w?!g.shiftKey&&y===w?(g.preventDefault(),r&&Ee(O,{select:!0})):g.shiftKey&&y===O&&(g.preventDefault(),r&&Ee(w,{select:!0})):y===S&&g.preventDefault()}},[r,n,p.paused]);return v.jsx(J.div,{tabIndex:-1,...i,ref:u,onKeyDown:h})});Hn.displayName=zs;function Vs(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ee(n,{select:t}),document.activeElement!==r)return}function Ws(e){const t=Un(e),r=Gn(t,e),n=Gn(t.reverse(),e);return[r,n]}function Un(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Gn(e,t){for(const r of e)if(!Bs(r,{upTo:t}))return r}function Bs(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Hs(e){return e instanceof HTMLInputElement&&"select"in e}function Ee(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Hs(e)&&t&&e.select()}}var Yn=Us();function Us(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Kn(e,t),e.unshift(t)},remove(t){e=Kn(e,t),e[0]?.resume()}}}function Kn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Gs(e){return e.filter(t=>t.tagName!=="A")}var Ys="Portal",ar=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=f.useState(!1);se(()=>a(!0),[]);const i=r||o&&globalThis?.document?.body;return i?Ra.createPortal(v.jsx(J.div,{...n,ref:t}),i):null});ar.displayName=Ys;function Ks(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Ie=e=>{const{present:t,children:r}=e,n=qs(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=ce(n.ref,Xs(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};Ie.displayName="Presence";function qs(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[c,l]=Ks(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const s=pt(n.current);a.current=c==="mounted"?s:"none"},[c]),se(()=>{const s=n.current,m=o.current;if(m!==e){const u=a.current,p=pt(s);e?l("MOUNT"):p==="none"||s?.display==="none"?l("UNMOUNT"):l(m&&u!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),se(()=>{if(t){let s;const m=t.ownerDocument.defaultView??window,d=p=>{const g=pt(n.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",s=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},u=p=>{p.target===t&&(a.current=pt(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{m.clearTimeout(s),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(s=>{n.current=s?getComputedStyle(s):null,r(s)},[])}}function pt(e){return e?.animationName||"none"}function Xs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ir=0;function Zs(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qn()),document.body.insertAdjacentElement("beforeend",e[1]??qn()),ir++,()=>{ir===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ir--}},[])}function qn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var fe=function(){return fe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},fe.apply(this,arguments)};function Xn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Js(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var gt="right-scroll-bar-position",ht="width-before-scroll-bar",Qs="with-scroll-bars-hidden",ec="--removed-body-scroll-bar-size";function sr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tc(e,t){var r=D.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var rc=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zn=new WeakMap;function nc(e,t){var r=tc(null,function(n){return e.forEach(function(o){return sr(o,n)})});return rc(function(){var n=Zn.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(c){a.has(c)||sr(c,null)}),a.forEach(function(c){o.has(c)||sr(c,i)})}Zn.set(r,e)},[e]),r}function oc(e){return e}function ac(e,t){t===void 0&&(t=oc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(a),i=r}var l=function(){var m=i;i=[],m.forEach(a)},s=function(){return Promise.resolve().then(l)};s(),r={push:function(m){i.push(m),s()},filter:function(m){return i=i.filter(m),r}}}};return o}function ic(e){e===void 0&&(e={});var t=ac(null);return t.options=fe({async:!0,ssr:!1},e),t}var Jn=function(e){var t=e.sideCar,r=Xn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,fe({},r))};Jn.isSideCarExport=!0;function sc(e,t){return e.useMedium(t),Jn}var Qn=ic(),cr=function(){},vt=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:cr,onWheelCapture:cr,onTouchMoveCapture:cr}),o=n[0],a=n[1],i=e.forwardProps,c=e.children,l=e.className,s=e.removeScrollBar,m=e.enabled,d=e.shards,u=e.sideCar,p=e.noRelative,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,S=y===void 0?"div":y,O=e.gapMode,w=Xn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=u,T=nc([r,t]),A=fe(fe({},w),o);return f.createElement(f.Fragment,null,m&&f.createElement(E,{sideCar:Qn,removeScrollBar:s,shards:d,noRelative:p,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:O}),i?f.cloneElement(f.Children.only(c),fe(fe({},A),{ref:T})):f.createElement(S,fe({},A,{className:l,ref:T}),c))});vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},vt.classNames={fullWidth:ht,zeroRight:gt};var cc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cc();return t&&e.setAttribute("nonce",t),e}function uc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=lc())&&(uc(t,r),dc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mc=function(){var e=fc();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},eo=function(){var e=mc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},pc={left:0,top:0,right:0,gap:0},lr=function(e){return parseInt(e||"",10)||0},gc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[lr(r),lr(n),lr(o)]},hc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pc;var t=gc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},vc=eo(),je="data-scroll-locked",bc=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
89
|
-
.`.concat(Qs,` {
|
|
90
|
-
overflow: hidden `).concat(n,`;
|
|
91
|
-
padding-right: `).concat(c,"px ").concat(n,`;
|
|
10
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,re.createPortal=function(u,d){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,d,null,g)},re.flushSync=function(u){var d=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=d,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},re.preconnect=function(u,d){typeof u=="string"&&u?d!=null&&typeof d!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(d)):d!=null&&typeof d.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(d.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(u,d))},re.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var d=arguments[1];typeof d=="object"&&d.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(d)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(d))}typeof u=="string"&&l.d.D(u)},re.preinit=function(u,d){if(typeof u=="string"&&u?d==null||typeof d!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(d)):d.as!=="style"&&d.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&d&&typeof d.as=="string"){var g=d.as,v=r(g,d.crossOrigin),h=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;g==="style"?l.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},re.preinitModule=function(u,d){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),d!==void 0&&typeof d!="object"?g+=" The `options` argument encountered was "+o(d)+".":d&&"as"in d&&d.as!=="script"&&(g+=" The `as` option encountered was "+a(d.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=d&&typeof d.as=="string"?d.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(g=r(d.as,d.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&l.d.M(u))},re.preload=function(u,d){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),d==null||typeof d!="object"?g+=" The `options` argument encountered was "+o(d)+".":typeof d.as=="string"&&d.as||(g+=" The `as` option encountered was "+o(d.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){g=d.as;var v=r(g,d.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},re.preloadModule=function(u,d){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),d!==void 0&&typeof d!="object"?g+=" The `options` argument encountered was "+o(d)+".":d&&"as"in d&&typeof d.as!="string"&&(g+=" The `as` option encountered was "+o(d.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(d?(g=r(d.as,d.crossOrigin),l.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0})):l.d.m(u))},re.requestFormReset=function(u){l.d.r(u)},re.unstable_batchedUpdates=function(u,d){return u(d)},re.useFormState=function(u,d,g){return s().useFormState(u,d,g)},re.useFormStatus=function(){return s().useHostTransitionStatus()},re.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),re}var hr;function ii(){if(hr)return St.exports;hr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=ai()):St.exports=si(),St.exports}var an=ii();const ci=Qs(an);function vr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=vr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():vr(e[o],null)}}}}function ee(...e){return f.useCallback(nt(...e),e)}function ze(e){const t=li(e),n=f.forwardRef((r,o)=>{const{children:a,...s}=r,i=f.Children.toArray(a),l=i.find(di);if(l){const c=l.props.children,p=i.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ae=ze("Slot");function li(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const s=pi(o),i=fi(a,o.props);return o.type!==f.Fragment&&(i.ref=r?nt(r,s):s),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var br=Symbol("radix.slottable");function ui(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=br,t}function di(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===br}function fi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function pi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=mi.reduce((e,t)=>{const n=ze(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yr(e,t){e&&an.flushSync(()=>e.dispatchEvent(t))}var Et={exports:{}},sn={};var xr;function gi(){if(xr)return sn;xr=1;var e=D;function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,d){var g=d(),v=r({inst:{value:g,getSnapshot:d}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=d,l(h)&&b({inst:h})},[u,g,d]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var d=u.getSnapshot;u=u.value;try{var g=d();return!n(u,g)}catch{return!0}}function c(u,d){return d()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return sn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,sn}var cn={};var wr;function hi(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,w=b[1];return l(function(){y.value=h,y.getSnapshot=v,n(y)&&w({inst:y})},[g,h,v]),i(function(){return n(y)&&w({inst:y}),g(function(){n(y)&&w({inst:y})})},[g]),c(h),h}function n(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;cn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cn}var Sr;function vi(){return Sr||(Sr=1,process.env.NODE_ENV==="production"?Et.exports=gi():Et.exports=hi()),Et.exports}var bi=vi();function yi(){return bi.useSyncExternalStore(xi,()=>!0,()=>!1)}function xi(){return()=>{}}var ln="Avatar",[wi,ag]=Oe(ln),[Si,Er]=wi(ln),Cr=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=f.useState("idle");return m.jsx(Si,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Z.span,{...r,ref:t})})});Cr.displayName=ln;var _r="AvatarImage",Rr=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Er(_r,n),i=Ei(r,a),l=de(c=>{o(c),s.onImageLoadingStatusChange(c)});return fe(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Z.img,{...a,ref:t,src:r}):null});Rr.displayName=_r;var Or="AvatarFallback",Ar=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Er(Or,n),[s,i]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Z.span,{...o,ref:t}):null});Ar.displayName=Or;function Mr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Ei(e,{referrerPolicy:t,crossOrigin:n}){const r=yi(),o=f.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=f.useState(()=>Mr(a,e));return fe(()=>{i(Mr(a,e))},[a,e]),fe(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,n,t]),s}var Ci=Cr,_i=Rr,Ri=Ar;function Tr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Tr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tr(e))&&(r&&(r+=" "),r+=t);return r}const un="-",Oi=e=>{const t=Mi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(un);return i[0]===""&&i.length!==1&&i.shift(),kr(i,t)||Ai(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},kr=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?kr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(un);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Nr=/^\[(.+)\]$/,Ai=e=>{if(Nr.test(e)){const t=Nr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Mi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)dn(n[o],r,o,t);return r},dn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Dr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Ti(o)){dn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{dn(s,Dr(t,a),n,r)})})},Dr=(e,t)=>{let n=e;return t.split(un).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ti=e=>e.isThemeGetter,Pi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},fn="!",pn=":",ki=pn.length,Ni=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===pn){a.push(o.slice(l,v)),l=v+ki;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=Di(p),d=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+pn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Di=e=>e.endsWith(fn)?e.substring(0,e.length-1):e.startsWith(fn)?e.substring(1):e,Ii=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ji=e=>({cache:Pi(e.cacheSize),parseClassName:Ni(e),sortModifiers:Ii(e),...Oi(e)}),Li=/\s+/,Fi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Li);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:d,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=r(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const w=a(d).join(":"),E=g?w+fn:w,x=E+y;if(s.includes(x))continue;s.push(x);const C=o(y,b);for(let M=0;M<C.length;++M){const O=C[M];s.push(E+O)}l=p+(l.length>0?" "+l:l)}return l};function $i(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ir(t))&&(r&&(r+=" "),r+=n);return r}const Ir=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ir(e[r]))&&(n&&(n+=" "),n+=t);return n};function zi(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return n=ji(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const p=Fi(l,n);return o(l,p),p}return function(){return a($i.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},jr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vi=/^\d+\/\d+$/,Bi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Vi.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),mn=e=>e.endsWith("%")&&z(e.slice(0,-1)),Ee=e=>Bi.test(e),Ki=()=>!0,Yi=e=>Gi.test(e)&&!Wi.test(e),Fr=()=>!1,Xi=e=>Ui.test(e),qi=e=>Hi.test(e),Zi=e=>!T(e)&&!P(e),Ji=e=>Be(e,Gr,Fr),T=e=>jr.test(e),De=e=>Be(e,Wr,Yi),gn=e=>Be(e,rc,z),$r=e=>Be(e,Vr,Fr),Qi=e=>Be(e,Br,qi),Ct=e=>Be(e,Ur,Xi),P=e=>Lr.test(e),rt=e=>Ge(e,Wr),ec=e=>Ge(e,oc),zr=e=>Ge(e,Vr),tc=e=>Ge(e,Gr),nc=e=>Ge(e,Br),_t=e=>Ge(e,Ur,!0),Be=(e,t,n)=>{const r=jr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Lr.exec(e);return r?r[1]?t(r[1]):n:!1},Vr=e=>e==="position"||e==="percentage",Br=e=>e==="image"||e==="url",Gr=e=>e==="length"||e==="size"||e==="bg-size",Wr=e=>e==="length",rc=e=>e==="number",oc=e=>e==="family-name",Ur=e=>e==="shadow",ac=zi(()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),d=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),w=te("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...x(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[P,T,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",P,T],U=()=>["auto",{span:["full",Me,P,T]},Me,P,T],H=()=>[Me,"auto",P,T],Y=()=>["auto","min","max","fr",P,T],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,P,T],k=()=>[...x(),zr,$r,{position:[P,T]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",tc,Ji,{size:[P,T]}],G=()=>[mn,rt,De],V=()=>["","none","full",c,P,T],X=()=>["",z,rt,De],Q=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,mn,zr,$r],J=()=>["","none",v,P,T],le=()=>["none",z,P,T],Se=()=>["none",z,P,T],$e=()=>[z,P,T],Qe=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Ki],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[Zi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",z],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,T,P,b]}],container:["container"],columns:[{columns:[z,T,P,i]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",P,T]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",T]}],grow:[{grow:["",z,P,T]}],shrink:[{shrink:["",z,P,T]}],order:[{order:[Me,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,rt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,gn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mn,T]}],"font-family":[{font:[ec,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,P,T]}],"line-clamp":[{"line-clamp":[z,"none",P,gn]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",P,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",P,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",P,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,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",P,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:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,P,T],radial:["",P,T],conic:[Me,P,T]},nc,Qi]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,P,T]}],"outline-w":[{outline:["",z,rt,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Ct]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Ct]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,_t,Ct]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,P,T]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:J()}],brightness:[{brightness:[z,P,T]}],contrast:[{contrast:[z,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Ct]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,P,T]}],"hue-rotate":[{"hue-rotate":[z,P,T]}],invert:[{invert:["",z,P,T]}],saturate:[{saturate:[z,P,T]}],sepia:[{sepia:["",z,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[z,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,P,T]}],"backdrop-invert":[{"backdrop-invert":["",z,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[z,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[z,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",z,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",P,T]}],ease:[{ease:["linear","initial",y,P,T]}],delay:[{delay:[z,P,T]}],animate:[{animate:["none",w,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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",P,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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",P,T]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,rt,De,gn]}],stroke:[{stroke:["none",..._()]}],"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"]}});function N(...e){return ac(Pr(e))}function sc({className:e,...t}){return m.jsx(Ci,{"data-slot":"avatar",className:N("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function ic({className:e,...t}){return m.jsx(_i,{"data-slot":"avatar-image",className:N("aspect-square size-full",e),...t})}function cc({className:e,...t}){return m.jsx(Ri,{"data-slot":"avatar-fallback",className:N("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const Hr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kr=Pr,hn=(e,t)=>n=>{var r;if(t?.variants==null)return Kr(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=n?.[c],u=a?.[c];if(p===null)return null;const d=Hr(p)||Hr(u);return o[c][d]}),i=n&&Object.entries(n).reduce((c,p)=>{let[u,d]=p;return d===void 0||(c[u]=d),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:d,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,d]:c},[]);return Kr(e,s,l,n?.class,n?.className)},Yr=hn("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function lc({className:e,variant:t,asChild:n=!1,...r}){const o=n?Ae:"span";return m.jsx(o,{"data-slot":"badge",className:N(Yr({variant:t}),e),...r})}const Xr=hn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function qr({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Ae:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:N(Xr({variant:t,size:n,className:e})),...o})}function uc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function dc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function fc({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:N("leading-none font-semibold",e),...t})}function pc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:N("text-muted-foreground text-sm",e),...t})}function mc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:N("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function gc({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:N("px-6",e),...t})}function hc({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:N("flex items-center px-6 [.border-t]:pt-6",e),...t})}var vc="Label",Zr=f.forwardRef((e,t)=>m.jsx(Z.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Zr.displayName=vc;var bc=Zr,yc=e=>e.type==="checkbox",ot=e=>e instanceof Date,vn=e=>e==null;const Jr=e=>typeof e=="object";var Ie=e=>!vn(e)&&!Array.isArray(e)&&Jr(e)&&!ot(e),xc=e=>Ie(e)&&e.target?yc(e.target)?e.target.checked:e.target.value:e,wc=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Sc=(e,t)=>e.has(wc(t)),Ec=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Cc=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qr(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Cc&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Ec(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Qr(e[o]));else return e;return t}var eo=e=>/^\w*$/.test(e),bn=e=>e===void 0,_c=e=>Array.isArray(e)?e.filter(Boolean):[],to=e=>_c(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(eo(t)?[t]:to(t)).reduce((o,a)=>vn(o)?o:o[a],e);return bn(r)||r===e?bn(e[t])?n:e[t]:r},yn=e=>typeof e=="boolean",no=(e,t,n)=>{let r=-1;const o=eo(t)?[t]:to(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const c=e[i];l=Ie(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const ro={BLUR:"blur",CHANGE:"change"},oo={all:"all"},xn=D.createContext(null);xn.displayName="HookFormContext";const Rt=()=>D.useContext(xn),Rc=e=>{const{children:t,...n}=e;return D.createElement(xn.Provider,{value:n},t)};var Oc=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==oo.all&&(t._proxyFormState[s]=!r||oo.all),n&&(n[s]=!0),e[s]}});return o};const ao=typeof window<"u"?D.useLayoutEffect:D.useEffect;function so(e){const t=Rt(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=D.useState(n._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ao(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!r&&i({...n._formState,...c})}}),[o,r,a]),D.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>Oc(s,n,l.current,!1),[s,n])}var Ac=e=>typeof e=="string",io=(e,t,n,r,o)=>Ac(e)?ae(n,e,o):Array.isArray(e)?e.map(a=>ae(n,a)):n,co=e=>vn(e)||!Jr(e);function Ot(e,t,n=new WeakSet){if(co(e)||co(t))return Object.is(e,t);if(ot(e)&&ot(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ot(s)&&ot(i)||Ie(s)&&Ie(i)||Array.isArray(s)&&Array.isArray(i)?!Ot(s,i,n):!Object.is(s,i))return!1}}return!0}function Mc(e){const t=Rt(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(n),d=D.useRef(r);c.current=i;const[g,v]=D.useState(()=>{const x=n._getWatch(r,l.current);return c.current?c.current(x):x}),h=D.useCallback(x=>{const C=io(r,n._names,x||n._formValues,!1,l.current);return c.current?c.current(C):C},[n._formValues,n._names,r]),b=D.useCallback(x=>{if(!a){const C=io(r,n._names,x||n._formValues,!1,l.current);if(c.current){const M=c.current(C);Ot(M,p.current)||(v(M),p.current=M)}else v(C)}},[n._formValues,n._names,a,r]);ao(()=>((u.current!==n||!Ot(d.current,r))&&(u.current=n,d.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:x=>{b(x.values)}})),[n,s,r,b]),D.useEffect(()=>n._removeUnmounted());const y=u.current!==n,w=d.current,E=D.useMemo(()=>{if(a)return null;const x=!y&&!Ot(w,r);return y||x?h():null},[a,y,r,w,h]);return E!==null?E:g}function Tc(e){const t=Rt(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=Sc(o._names.array,n),c=D.useMemo(()=>ae(o._formValues,n,ae(o._defaultValues,n,s)),[o,n,s]),p=Mc({control:o,name:n,defaultValue:c,exact:i}),u=so({control:o,name:n,exact:i}),d=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(n,{...e.rules,value:p,...yn(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,n)},error:{enumerable:!0,get:()=>ae(u.errors,n)}}),[u,n]),b=D.useCallback(x=>v.current.onChange({target:{value:xc(x),name:n},type:ro.CHANGE}),[n]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,n),name:n},type:ro.BLUR}),[n,o._formValues]),w=D.useCallback(x=>{const C=ae(o._fields,n);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:M=>x.setCustomValidity(M),reportValidity:()=>x.reportValidity()})},[o._fields,n]),E=D.useMemo(()=>({name:n,value:p,...yn(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:b,onBlur:y,ref:w}),[n,r,u.disabled,b,y,w,p]);return D.useEffect(()=>{const x=o._options.shouldUnregister||a,C=g.current;C&&C!==n&&!l&&o.unregister(C),o.register(n,{...d.current.rules,...yn(d.current.disabled)?{disabled:d.current.disabled}:{}});const M=(O,R)=>{const L=ae(o._fields,O);L&&L._f&&(L._f.mount=R)};if(M(n,!0),x){const O=Qr(ae(o._options.defaultValues,n,d.current.defaultValue));no(o._defaultValues,n,O),bn(ae(o._formValues,n))&&no(o._formValues,n,O)}return!l&&o.register(n),g.current=n,()=>{(l?x&&!o._state.action:x)?o.unregister(n):M(n,!1)}},[n,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:E,formState:u,fieldState:h}),[E,u,h])}const Pc=e=>e.render(Tc(e));function lo({className:e,...t}){return m.jsx(bc,{"data-slot":"label",className:N("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const kc=Rc,uo=f.createContext({}),Nc=({...e})=>m.jsx(uo.Provider,{value:{name:e.name},children:m.jsx(Pc,{...e})}),at=()=>{const e=f.useContext(uo),t=f.useContext(fo),{getFieldState:n}=Rt(),r=so({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},fo=f.createContext({});function Dc({className:e,...t}){const n=f.useId();return m.jsx(fo.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:N("grid gap-2",e),...t})})}function Ic({className:e,...t}){const{error:n,formItemId:r}=at();return m.jsx(lo,{"data-slot":"form-label","data-error":!!n,className:N("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function jc({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=at();return m.jsx(Ae,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Lc({className:e,...t}){const{formDescriptionId:n}=at();return m.jsx("p",{"data-slot":"form-description",id:n,className:N("text-muted-foreground text-sm",e),...t})}function Fc({className:e,...t}){const{error:n,formMessageId:r}=at(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:N("text-destructive text-sm",e),...t,children:o}):null}function po({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var $c=f[" useInsertionEffect ".trim().toString()]||fe;function st({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=zc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=f.useRef(e!==void 0);f.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"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.`),p.current=i},[i,r])}const c=f.useCallback(p=>{if(i){const u=Vc(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function zc({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return $c(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Vc(e){return typeof e=="function"}function mo(e){const t=e+"CollectionProvider",[n,r]=Oe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,w=D.useRef(null),E=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:E,collectionRef:w,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:w}=h,E=a(i,y),x=ee(b,E.collectionRef);return m.jsx(l,{ref:x,children:w})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",d=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:w,...E}=h,x=D.useRef(null),C=ee(b,x),M=a(p,y);return D.useEffect(()=>(M.itemMap.set(x,{ref:x,...E}),()=>void M.itemMap.delete(x))),m.jsx(d,{[u]:"",ref:C,children:w})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,O)=>E.indexOf(M.ref.current)-E.indexOf(O.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,r]}var Bc=f.createContext(void 0);function go(e){const t=f.useContext(Bc);return e||t||"ltr"}function Gc(e,t=globalThis?.document){const n=de(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wc="DismissableLayer",wn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Hc="dismissableLayer.focusOutside",ho,vo=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=f.useContext(vo),[p,u]=f.useState(null),d=p?.ownerDocument??globalThis?.document,[,g]=f.useState({}),v=ee(t,O=>u(O)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),w=p?h.indexOf(p):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,x=w>=y,C=Xc(O=>{const R=O.target,L=[...c.branches].some(B=>B.contains(R));!x||L||(o?.(O),s?.(O),O.defaultPrevented||i?.())},d),M=qc(O=>{const R=O.target;[...c.branches].some(B=>B.contains(R))||(a?.(O),s?.(O),O.defaultPrevented||i?.())},d);return Gc(O=>{w===c.layers.size-1&&(r?.(O),!O.defaultPrevented&&i&&(O.preventDefault(),i()))},d),f.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ho=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),bo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ho)}},[p,d,n,c]),f.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),bo())},[p,c]),f.useEffect(()=>{const O=()=>g({});return document.addEventListener(wn,O),()=>document.removeEventListener(wn,O)},[]),m.jsx(Z.div,{...l,ref:v,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,C.onPointerDownCapture)})});At.displayName=Wc;var Kc="DismissableLayerBranch",Yc=f.forwardRef((e,t)=>{const n=f.useContext(vo),r=f.useRef(null),o=ee(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Z.div,{...e,ref:o})});Yc.displayName=Kc;function Xc(e,t=globalThis?.document){const n=de(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){yo(Uc,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qc(e,t=globalThis?.document){const n=de(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&yo(Hc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bo(){const e=new CustomEvent(wn);document.dispatchEvent(e)}function yo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yr(o,a):o.dispatchEvent(a)}var Sn=0;function xo(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wo()),document.body.insertAdjacentElement("beforeend",e[1]??wo()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function wo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var En="focusScope.autoFocusOnMount",Cn="focusScope.autoFocusOnUnmount",So={bubbles:!1,cancelable:!0},Zc="FocusScope",_n=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=de(o),p=de(a),u=f.useRef(null),d=ee(t,h=>l(h)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let h=function(E){if(g.paused||!i)return;const x=E.target;i.contains(x)?u.current=x:Te(u.current,{select:!0})},b=function(E){if(g.paused||!i)return;const x=E.relatedTarget;x!==null&&(i.contains(x)||Te(u.current,{select:!0}))},y=function(E){if(document.activeElement===document.body)for(const C of E)C.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const w=new MutationObserver(y);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),w.disconnect()}}},[r,i,g.paused]),f.useEffect(()=>{if(i){_o.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(En,So);i.addEventListener(En,c),i.dispatchEvent(y),y.defaultPrevented||(Jc(rl(Eo(i)),{select:!0}),document.activeElement===h&&Te(i))}return()=>{i.removeEventListener(En,c),setTimeout(()=>{const y=new CustomEvent(Cn,So);i.addEventListener(Cn,p),i.dispatchEvent(y),y.defaultPrevented||Te(h??document.body,{select:!0}),i.removeEventListener(Cn,p),_o.remove(g)},0)}}},[i,c,p,g]);const v=f.useCallback(h=>{if(!n&&!r||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const w=h.currentTarget,[E,x]=Qc(w);E&&x?!h.shiftKey&&y===x?(h.preventDefault(),n&&Te(E,{select:!0})):h.shiftKey&&y===E&&(h.preventDefault(),n&&Te(x,{select:!0})):y===w&&h.preventDefault()}},[n,r,g.paused]);return m.jsx(Z.div,{tabIndex:-1,...s,ref:d,onKeyDown:v})});_n.displayName=Zc;function Jc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Qc(e){const t=Eo(e),n=Co(t,e),r=Co(t.reverse(),e);return[n,r]}function Eo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Co(e,t){for(const n of e)if(!el(n,{upTo:t}))return n}function el(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tl(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tl(e)&&t&&e.select()}}var _o=nl();function nl(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ro(e,t),e.unshift(t)},remove(t){e=Ro(e,t),e[0]?.resume()}}}function Ro(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rl(e){return e.filter(t=>t.tagName!=="A")}var ol=f[" useId ".trim().toString()]||(()=>{}),al=0;function Ce(e){const[t,n]=f.useState(ol());return fe(()=>{n(r=>r??String(al++))},[e]),e||(t?`radix-${t}`:"")}const sl=["top","right","bottom","left"],Pe=Math.min,ie=Math.max,Mt=Math.round,Tt=Math.floor,he=e=>({x:e,y:e}),il={left:"right",right:"left",bottom:"top",top:"bottom"},cl={start:"end",end:"start"};function Rn(e,t,n){return ie(e,Pe(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function We(e){return e.split("-")[1]}function On(e){return e==="x"?"y":"x"}function An(e){return e==="y"?"height":"width"}const ll=new Set(["top","bottom"]);function ve(e){return ll.has(Re(e))?"y":"x"}function Mn(e){return On(ve(e))}function ul(e,t,n){n===void 0&&(n=!1);const r=We(e),o=Mn(e),a=An(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function dl(e){const t=Pt(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>cl[t])}const Oo=["left","right"],Ao=["right","left"],fl=["top","bottom"],pl=["bottom","top"];function ml(e,t,n){switch(e){case"top":case"bottom":return n?t?Ao:Oo:t?Oo:Ao;case"left":case"right":return t?fl:pl;default:return[]}}function gl(e,t,n,r){const o=We(e);let a=ml(Re(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Tn)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>il[t])}function hl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mo(e){return typeof e!="number"?hl(e):{top:e,right:e,bottom:e,left:e}}function kt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function To(e,t,n){let{reference:r,floating:o}=e;const a=ve(t),s=Mn(t),i=An(s),l=Re(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(We(t)){case"start":g[s]-=d*(n&&c?-1:1);break;case"end":g[s]+=d*(n&&c?-1:1);break}return g}const vl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=To(c,r,l),d=r,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x:w,y:E,data:x,reset:C}=await y({x:p,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=w??p,u=E??u,g={...g,[b]:{...g[b],...x}},C&&v<=50&&(v++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:u}=To(c,d,l)),h=-1)}return{x:p,y:u,placement:d,strategy:o,middlewareData:g}};async function it(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:d=!1,padding:g=0}=_e(t,e),v=Mo(g),b=i[d?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),x=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},C=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:E,strategy:l}):w);return{top:(y.top-C.top+v.top)/x.y,bottom:(C.bottom-y.bottom+v.bottom)/x.y,left:(y.left-C.left+v.left)/x.x,right:(C.right-y.right+v.right)/x.x}}const bl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=_e(e,t)||{};if(c==null)return{};const u=Mo(p),d={x:n,y:r},g=Mn(o),v=An(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",w=b?"bottom":"right",E=b?"clientHeight":"clientWidth",x=a.reference[v]+a.reference[g]-d[g]-a.floating[v],C=d[g]-a.reference[g],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=M?M[E]:0;(!O||!await(s.isElement==null?void 0:s.isElement(M)))&&(O=i.floating[E]||a.floating[v]);const R=x/2-C/2,L=O/2-h[v]/2-1,B=Pe(u[y],L),U=Pe(u[w],L),H=B,Y=O-h[v]-U,W=O/2-h[v]/2+R,q=Rn(H,W,Y),F=!l.arrow&&We(o)!=null&&W!==q&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-Y:0;return{[g]:d[g]+K,data:{[g]:q,centerOffset:W-q-K,...F&&{alignmentOffset:K}},reset:F}}}),yl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=_e(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Re(o),w=ve(i),E=Re(i)===i,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=d||(E||!h?[Pt(i)]:dl(i)),M=v!=="none";!d&&M&&C.push(...gl(i,h,v,x));const O=[i,...C],R=await it(t,b),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(R[y]),u){const W=ul(o,s,x);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,q=O[W];if(q&&(!(u==="alignment"?w!==ve(q):!1)||B.every(_=>ve(_.placement)===w?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:q}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var Y;const K=(Y=B.filter(_=>{if(M){const k=ve(_.placement);return k===w||k==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(k=>k>0).reduce((k,S)=>k+S,0)]).sort((_,k)=>_[1]-k[1])[0])==null?void 0:Y[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Po(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ko(e){return sl.some(t=>e[t]>=0)}const xl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const a=await it(t,{...o,elementContext:"reference"}),s=Po(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ko(s)}}}case"escaped":{const a=await it(t,{...o,altBoundary:!0}),s=Po(a,n.floating);return{data:{escapedOffsets:s,escaped:ko(s)}}}default:return{}}}}},No=new Set(["left","top"]);async function wl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Re(n),i=We(n),l=ve(n)==="y",c=No.has(s)?-1:1,p=a&&l?-1:1,u=_e(t,e);let{mainAxis:d,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:d*c}:{x:d*c,y:g*p}}const Sl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await wl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},El=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...l}=_e(e,t),c={x:n,y:r},p=await it(t,l),u=ve(Re(o)),d=On(u);let g=c[d],v=c[u];if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=g+p[b],E=g-p[y];g=Rn(w,g,E)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",w=v+p[b],E=v-p[y];v=Rn(w,v,E)}const h=i.fn({...t,[d]:g,[u]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:a,[u]:s}}}}}},Cl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=_e(e,t),p={x:n,y:r},u=ve(o),d=On(u);let g=p[d],v=p[u];const h=_e(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const E=d==="y"?"height":"width",x=a.reference[d]-a.floating[E]+b.mainAxis,C=a.reference[d]+a.reference[E]-b.mainAxis;g<x?g=x:g>C&&(g=C)}if(c){var y,w;const E=d==="y"?"width":"height",x=No.has(Re(o)),C=a.reference[u]-a.floating[E]+(x&&((y=s.offset)==null?void 0:y[u])||0)+(x?0:b.crossAxis),M=a.reference[u]+a.reference[E]+(x?0:((w=s.offset)==null?void 0:w[u])||0)-(x?b.crossAxis:0);v<C?v=C:v>M&&(v=M)}return{[d]:g,[u]:v}}}},_l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=_e(e,t),p=await it(t,c),u=Re(o),d=We(o),g=ve(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=d==="end"?"top":"bottom");const w=h-p.top-p.bottom,E=v-p.left-p.right,x=Pe(h-p[b],w),C=Pe(v-p[y],E),M=!t.middlewareData.shift;let O=x,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=w),M&&!d){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),Y=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):O=h-2*(H!==0||Y!==0?H+Y:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:O});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function Ue(e){return Do(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Do(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Do(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function pe(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function ye(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Io(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Rl=new Set(["inline","contents"]);function ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Rl.has(o)}const Ol=new Set(["table","td","th"]);function Al(e){return Ol.has(Ue(e))}const Ml=[":popover-open",":modal"];function Dt(e){return Ml.some(t=>{try{return e.matches(t)}catch{return!1}})}const Tl=["transform","translate","scale","rotate","perspective"],Pl=["transform","translate","scale","rotate","perspective","filter"],kl=["paint","layout","strict","content"];function Pn(e){const t=kn(),n=pe(e)?me(e):e;return Tl.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pl.some(r=>(n.willChange||"").includes(r))||kl.some(r=>(n.contain||"").includes(r))}function Nl(e){let t=ke(e);for(;ye(t)&&!He(t);){if(Pn(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dl=new Set(["html","body","#document"]);function He(e){return Dl.has(Ue(e))}function me(e){return ce(e).getComputedStyle(e)}function It(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(Ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Io(e)&&e.host||be(e);return Io(t)?t.host:t}function jo(e){const t=ke(e);return He(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&ct(t)?t:jo(t)}function lt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=Nn(s);return t.concat(s,s.visualViewport||[],ct(o)?o:[],i&&n?lt(i):[])}return t.concat(o,lt(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lo(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Mt(n)!==a||Mt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Dn(e){return pe(e)?e:e.contextElement}function Ke(e){const t=Dn(e);if(!ye(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Lo(t);let s=(a?Mt(n.width):n.width)/r,i=(a?Mt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Il=he(0);function Fo(e){const t=ce(e);return!kn()||!t.visualViewport?Il:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dn(e);let s=he(1);t&&(r?pe(r)&&(s=Ke(r)):s=Ke(e));const i=jl(a,n,r)?Fo(a):he(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const d=ce(a),g=r&&pe(r)?ce(r):r;let v=d,h=Nn(v);for(;h&&r&&g!==v;){const b=Ke(h),y=h.getBoundingClientRect(),w=me(h),E=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*b.x,x=y.top+(h.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=E,c+=x,v=ce(h),h=Nn(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const n=It(e).scrollLeft;return t?t.left+n:je(be(e)).left+n}function $o(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ll(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=be(r),i=t?Dt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=he(1);const p=he(0),u=ye(r);if((u||!u&&!a)&&((Ue(r)!=="body"||ct(s))&&(l=It(r)),ye(r))){const g=je(r);c=Ke(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const d=s&&!u&&!a?$o(s,l):he(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+d.x,y:n.y*c.y-l.scrollTop*c.y+p.y+d.y}}function Fl(e){return Array.from(e.getClientRects())}function $l(e){const t=be(e),n=It(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jt(e);const i=-n.scrollTop;return me(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const zo=25;function zl(e,t){const n=ce(e),r=be(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(r);if(c<=0){const p=r.ownerDocument,u=p.body,d=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-g);v<=zo&&(a-=v)}else c<=zo&&(a+=c);return{width:a,height:s,x:i,y:l}}const Vl=new Set(["absolute","fixed"]);function Bl(e,t){const n=je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ye(e)?Ke(e):he(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function Vo(e,t,n){let r;if(t==="viewport")r=zl(e,n);else if(t==="document")r=$l(be(e));else if(pe(t))r=Bl(t,n);else{const o=Fo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Bo(e,t){const n=ke(e);return n===t||!pe(n)||He(n)?!1:me(n).position==="fixed"||Bo(n,t)}function Gl(e,t){const n=t.get(e);if(n)return n;let r=lt(e,[],!1).filter(i=>pe(i)&&Ue(i)!=="body"),o=null;const a=me(e).position==="fixed";let s=a?ke(e):e;for(;pe(s)&&!He(s);){const i=me(s),l=Pn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Vl.has(o.position)||ct(s)&&!l&&Bo(e,s))?r=r.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,r),r}function Wl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:Gl(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((c,p)=>{const u=Vo(t,p,o);return c.top=ie(u.top,c.top),c.right=Pe(u.right,c.right),c.bottom=Pe(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},Vo(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ul(e){const{width:t,height:n}=Lo(e);return{width:t,height:n}}function Hl(e,t,n){const r=ye(t),o=be(t),a=n==="fixed",s=je(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=he(0);function c(){l.x=jt(o)}if(r||!r&&!a)if((Ue(t)!=="body"||ct(o))&&(i=It(t)),r){const g=je(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!r&&o&&c();const p=o&&!r&&!a?$o(o,i):he(0),u=s.left+i.scrollLeft-l.x-p.x,d=s.top+i.scrollTop-l.y-p.y;return{x:u,y:d,width:s.width,height:s.height}}function In(e){return me(e).position==="static"}function Go(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return be(e)===n&&(n=n.ownerDocument.body),n}function Wo(e,t){const n=ce(e);if(Dt(e))return n;if(!ye(e)){let o=ke(e);for(;o&&!He(o);){if(pe(o)&&!In(o))return o;o=ke(o)}return n}let r=Go(e,t);for(;r&&Al(r)&&In(r);)r=Go(r,t);return r&&He(r)&&In(r)&&!Pn(r)?n:r||Nl(e)||n}const Kl=async function(e){const t=this.getOffsetParent||Wo,n=this.getDimensions,r=await n(e.floating);return{reference:Hl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Yl(e){return me(e).direction==="rtl"}const Xl={convertOffsetParentRelativeRectToViewportRelativeRect:Ll,getDocumentElement:be,getClippingRect:Wl,getOffsetParent:Wo,getElementRects:Kl,getClientRects:Fl,getDimensions:Ul,getScale:Ke,isElement:pe,isRTL:Yl};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ql(e,t){let n=null,r;const o=be(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:d,height:g}=c;if(i||t(),!d||!g)return;const v=Tt(u),h=Tt(o.clientWidth-(p+d)),b=Tt(o.clientHeight-(u+g)),y=Tt(p),E={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Pe(1,l))||1};let x=!0;function C(M){const O=M[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Uo(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(C,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return s(!0),a}function Zl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dn(e),p=o||a?[...c?lt(c):[],...lt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?ql(c,n):null;let d=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?je(e):null;l&&b();function b(){const y=je(e);h&&!Uo(h,y)&&n(),h=y,v=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Jl=Sl,Ql=El,eu=yl,tu=_l,nu=xl,Ho=bl,ru=Cl,ou=(e,t,n)=>{const r=new Map,o={platform:Xl,...n},a={...o.platform,_c:r};return vl(e,t,{...o,platform:a})};var au=typeof document<"u",su=function(){},Lt=au?D.useLayoutEffect:su;function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ko(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yo(e,t){const n=Ko(e);return Math.round(t*n)/n}function jn(e){const t=f.useRef(e);return Lt(()=>{t.current=e}),t}function iu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,g]=f.useState(r);Ft(d,r)||g(r);const[v,h]=f.useState(null),[b,y]=f.useState(null),w=f.useCallback(_=>{_!==M.current&&(M.current=_,h(_))},[]),E=f.useCallback(_=>{_!==O.current&&(O.current=_,y(_))},[]),x=a||v,C=s||b,M=f.useRef(null),O=f.useRef(null),R=f.useRef(p),L=l!=null,B=jn(l),U=jn(o),H=jn(c),Y=f.useCallback(()=>{if(!M.current||!O.current)return;const _={placement:t,strategy:n,middleware:d};U.current&&(_.platform=U.current),ou(M.current,O.current,_).then(k=>{const S={...k,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,an.flushSync(()=>{u(S)}))})},[d,t,n,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=f.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(x&&(M.current=x),C&&(O.current=C),x&&C){if(B.current)return B.current(x,C,Y);Y()}},[x,C,Y,B,L]);const q=f.useMemo(()=>({reference:M,floating:O,setReference:w,setFloating:E}),[w,E]),F=f.useMemo(()=>({reference:x,floating:C}),[x,C]),K=f.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const k=Yo(F.floating,p.x),S=Yo(F.floating,p.y);return i?{..._,transform:"translate("+k+"px, "+S+"px)",...Ko(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:S}},[n,i,F.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:Y,refs:q,elements:F,floatingStyles:K}),[p,Y,q,F,K])}const cu=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ho({element:r.current,padding:o}).fn(n):{}:r?Ho({element:r,padding:o}).fn(n):{}}}},lu=(e,t)=>({...Jl(e),options:[e,t]}),uu=(e,t)=>({...Ql(e),options:[e,t]}),du=(e,t)=>({...ru(e),options:[e,t]}),fu=(e,t)=>({...eu(e),options:[e,t]}),pu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...nu(e),options:[e,t]}),gu=(e,t)=>({...cu(e),options:[e,t]});var hu="Arrow",Xo=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(Z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xo.displayName=hu;var vu=Xo;function bu(e){const[t,n]=f.useState(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ln="Popper",[qo,$t]=Oe(Ln),[yu,Zo]=qo(Ln),Jo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return m.jsx(yu,{scope:t,anchor:r,onAnchorChange:o,children:n})};Jo.displayName=Ln;var Qo="PopperAnchor",ea=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Zo(Qo,n),s=f.useRef(null),i=ee(t,s),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=r?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Z.div,{...o,ref:i})});ea.displayName=Qo;var Fn="PopperContent",[xu,wu]=qo(Fn),ta=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:d=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=Zo(Fn,n),[y,w]=f.useState(null),E=ee(t,$=>w($)),[x,C]=f.useState(null),M=bu(x),O=M?.width??0,R=M?.height??0,L=r+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,Y={padding:B,boundary:U.filter(Eu),altBoundary:H},{refs:W,floatingStyles:q,placement:F,isPositioned:K,middlewareData:_}=iu({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>Zl(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[lu({mainAxis:o+R,alignmentAxis:s}),l&&uu({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?du():void 0,...Y}),l&&fu({...Y}),pu({...Y,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Se})=>{const{width:$e,height:Qe}=J.reference,on=$.floating.style;on.setProperty("--radix-popper-available-width",`${le}px`),on.setProperty("--radix-popper-available-height",`${Se}px`),on.setProperty("--radix-popper-anchor-width",`${$e}px`),on.setProperty("--radix-popper-anchor-height",`${Qe}px`)}}),x&&gu({element:x,padding:i}),Cu({arrowWidth:O,arrowHeight:R}),d&&mu({strategy:"referenceHidden",...Y})]}),[k,S]=oa(F),I=de(v);fe(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,X=_.arrow?.centerOffset!==0,[Q,se]=f.useState();return fe(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:K?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(xu,{scope:n,placedSide:k,onArrowChange:C,arrowX:G,arrowY:V,shouldHideArrow:X,children:m.jsx(Z.div,{"data-side":k,"data-align":S,...h,ref:E,style:{...h.style,animation:K?void 0:"none"}})})})});ta.displayName=Fn;var na="PopperArrow",Su={top:"bottom",right:"left",bottom:"top",left:"right"},ra=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=wu(na,r),s=Su[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(vu,{...o,ref:n,style:{...o.style,display:"block"}})})});ra.displayName=na;function Eu(e){return e!==null}var Cu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=oa(n),u={start:"0%",center:"50%",end:"100%"}[p],d=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${d}px`,h=`${-l}px`):c==="top"?(v=s?u:`${d}px`,h=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${r.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function oa(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Jo,aa=ea,sa=ta,ia=ra,_u="Portal",zt=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=f.useState(!1);fe(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?ci.createPortal(m.jsx(Z.div,{...r,ref:t}),s):null});zt.displayName=_u;function Ru(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var xe=e=>{const{present:t,children:n}=e,r=Ou(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=ee(r.ref,Au(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};xe.displayName="Presence";function Ou(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Ru(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Vt(r.current);a.current=i==="mounted"?c:"none"},[i]),fe(()=>{const c=r.current,p=o.current;if(p!==e){const d=a.current,g=Vt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&d!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fe(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Vt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},d=g=>{g.target===t&&(a.current=Vt(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Vt(e){return e?.animationName||"none"}function Au(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zn="rovingFocusGroup.onEntryFocus",Mu={bubbles:!1,cancelable:!0},ut="RovingFocusGroup",[Vn,ca,Tu]=mo(ut),[Pu,la]=Oe(ut,[Tu]),[ku,Nu]=Pu(ut),ua=f.forwardRef((e,t)=>m.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Du,{...e,ref:t})})}));ua.displayName=ut;var Du=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,d=f.useRef(null),g=ee(t,d),v=go(a),[h,b]=st({prop:s,defaultProp:i??null,onChange:l,caller:ut}),[y,w]=f.useState(!1),E=de(c),x=ca(n),C=f.useRef(!1),[M,O]=f.useState(0);return f.useEffect(()=>{const R=d.current;if(R)return R.addEventListener(zn,E),()=>R.removeEventListener(zn,E)},[E]),m.jsx(ku,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:f.useCallback(R=>b(R),[b]),onItemShiftTab:f.useCallback(()=>w(!0),[]),onFocusableItemAdd:f.useCallback(()=>O(R=>R+1),[]),onFocusableItemRemove:f.useCallback(()=>O(R=>R-1),[]),children:m.jsx(Z.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{C.current=!0}),onFocus:j(e.onFocus,R=>{const L=!C.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zn,Mu);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=x().filter(F=>F.focusable),H=U.find(F=>F.active),Y=U.find(F=>F.id===h),q=[H,Y,...U].filter(Boolean).map(F=>F.ref.current);pa(q,p)}}C.current=!1}),onBlur:j(e.onBlur,()=>w(!1))})})}),da="RovingFocusGroupItem",fa=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=Ce(),c=a||l,p=Nu(da,n),u=p.currentTabStopId===c,d=ca(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return f.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),m.jsx(Vn.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(Z.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Lu(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let E=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")E.reverse();else if(y==="prev"||y==="next"){y==="prev"&&E.reverse();const x=E.indexOf(b.currentTarget);E=p.loop?Fu(E,x+1):E.slice(x+1)}setTimeout(()=>pa(E))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});fa.displayName=da;var Iu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ju(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Lu(e,t,n){const r=ju(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Iu[r]}function pa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Fu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $u=ua,zu=fa,Vu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,Bt=new WeakMap,Gt={},Bn=0,ma=function(e){return e&&(e.host||ma(e.parentNode))},Bu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ma(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gu=function(e,t,n,r){var o=Bu(t,Array.isArray(e)?e:[e]);Gt[n]||(Gt[n]=new WeakMap);var a=Gt[n],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(i.has(d))p(d);else try{var g=d.getAttribute(r),v=g!==null&&g!=="false",h=(Ye.get(d)||0)+1,b=(a.get(d)||0)+1;Ye.set(d,h),a.set(d,b),s.push(d),h===1&&v&&Bt.set(d,!0),b===1&&d.setAttribute(n,"true"),v||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return p(t),i.clear(),Bn++,function(){s.forEach(function(u){var d=Ye.get(u)-1,g=a.get(u)-1;Ye.set(u,d),a.set(u,g),d||(Bt.has(u)||u.removeAttribute(r),Bt.delete(u)),g||u.removeAttribute(n)}),Bn--,Bn||(Ye=new WeakMap,Ye=new WeakMap,Bt=new WeakMap,Gt={})}},ga=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Vu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Gu(r,o,n,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)};function ha(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Wu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Wt="right-scroll-bar-position",Ut="width-before-scroll-bar",Uu="with-scroll-bars-hidden",Hu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ku(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Yu=typeof window<"u"?f.useLayoutEffect:f.useEffect,va=new WeakMap;function Xu(e,t){var n=Ku(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return Yu(function(){var r=va.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Gn(i,null)}),a.forEach(function(i){o.has(i)||Gn(i,s)})}va.set(n,e)},[e]),n}function qu(e){return e}function Zu(e,t){t===void 0&&(t=qu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return o}function Ju(e){e===void 0&&(e={});var t=Zu(null);return t.options=we({async:!0,ssr:!1},e),t}var ba=function(e){var t=e.sideCar,n=ha(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,we({},n))};ba.isSideCarExport=!0;function Qu(e,t){return e.useMedium(t),ba}var ya=Ju(),Wn=function(){},Ht=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,d=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,E=e.gapMode,x=ha(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,M=Xu([n,t]),O=we(we({},x),o);return f.createElement(f.Fragment,null,p&&f.createElement(C,{sideCar:ya,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:E}),s?f.cloneElement(f.Children.only(i),we(we({},O),{ref:M})):f.createElement(w,we({},O,{className:l,ref:M}),i))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Ut,zeroRight:Wt};var ed=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function td(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ed();return t&&e.setAttribute("nonce",t),e}function nd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var od=function(){var e=0,t=null;return{add:function(n){e==0&&(t=td())&&(nd(t,n),rd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ad=function(){var e=od();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xa=function(){var e=ad(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sd={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},id=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Un(n),Un(r),Un(o)]},cd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sd;var t=id(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ld=xa(),Xe="data-scroll-locked",ud=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
11
|
+
.`.concat(Uu,` {
|
|
12
|
+
overflow: hidden `).concat(r,`;
|
|
13
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
92
14
|
}
|
|
93
|
-
body[`).concat(
|
|
94
|
-
overflow: hidden `).concat(
|
|
15
|
+
body[`).concat(Xe,`] {
|
|
16
|
+
overflow: hidden `).concat(r,`;
|
|
95
17
|
overscroll-behavior: contain;
|
|
96
|
-
`).concat([t&&"position: relative ".concat(
|
|
18
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
97
19
|
padding-left: `.concat(o,`px;
|
|
98
20
|
padding-top: `).concat(a,`px;
|
|
99
|
-
padding-right: `).concat(
|
|
21
|
+
padding-right: `).concat(s,`px;
|
|
100
22
|
margin-left:0;
|
|
101
23
|
margin-top:0;
|
|
102
|
-
margin-right: `).concat(
|
|
103
|
-
`),
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
25
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
104
26
|
}
|
|
105
27
|
|
|
106
|
-
.`).concat(
|
|
107
|
-
right: `).concat(
|
|
28
|
+
.`).concat(Wt,` {
|
|
29
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
108
30
|
}
|
|
109
31
|
|
|
110
|
-
.`).concat(
|
|
111
|
-
margin-right: `).concat(
|
|
32
|
+
.`).concat(Ut,` {
|
|
33
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
112
34
|
}
|
|
113
35
|
|
|
114
|
-
.`).concat(
|
|
115
|
-
right: 0 `).concat(
|
|
36
|
+
.`).concat(Wt," .").concat(Wt,` {
|
|
37
|
+
right: 0 `).concat(r,`;
|
|
116
38
|
}
|
|
117
39
|
|
|
118
|
-
.`).concat(
|
|
119
|
-
margin-right: 0 `).concat(
|
|
40
|
+
.`).concat(Ut," .").concat(Ut,` {
|
|
41
|
+
margin-right: 0 `).concat(r,`;
|
|
120
42
|
}
|
|
121
43
|
|
|
122
|
-
body[`).concat(
|
|
123
|
-
`).concat(
|
|
44
|
+
body[`).concat(Xe,`] {
|
|
45
|
+
`).concat(Hu,": ").concat(i,`px;
|
|
124
46
|
}
|
|
125
|
-
`)},
|
|
47
|
+
`)},wa=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},dd=function(){f.useEffect(function(){return document.body.setAttribute(Xe,(wa()+1).toString()),function(){var e=wa()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},fd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;dd();var a=f.useMemo(function(){return cd(o)},[o]);return f.createElement(ld,{styles:ud(a,!t,o,n?"":"!important")})},Hn=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{Hn=!1}var qe=Hn?{passive:!1}:!1,pd=function(e){return e.tagName==="TEXTAREA"},Sa=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pd(e)&&n[t]==="visible")},md=function(e){return Sa(e,"overflowY")},gd=function(e){return Sa(e,"overflowX")},Ea=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ca(e,r);if(o){var a=_a(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ca=function(e,t){return e==="v"?md(t):gd(t)},_a=function(e,t){return e==="v"?hd(t):vd(t)},bd=function(e,t){return e==="h"&&t==="rtl"?-1:1},yd=function(e,t,n,r,o){var a=bd(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),c=!1,p=s>0,u=0,d=0;do{if(!i)break;var g=_a(e,i),v=g[0],h=g[1],b=g[2],y=h-b-a*v;(v||y)&&Ca(e,i)&&(u+=y,d+=v);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(u)<1||!p&&Math.abs(d)<1)&&(c=!0),c},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ra=function(e){return[e.deltaX,e.deltaY]},Oa=function(e){return e&&"current"in e?e.current:e},xd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wd=function(e){return`
|
|
126
48
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
127
49
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
128
|
-
`)},Tc=0,$e=[];function Pc(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(Tc++)[0],a=f.useState(eo)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Js([e.lockRef.current],(e.shards||[]).map(so),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=yt(g),S=r.current,O="deltaX"in g?g.deltaX:S[0]-y[0],w="deltaY"in g?g.deltaY:S[1]-y[1],E,T=g.target,A=Math.abs(O)>Math.abs(w)?"h":"v";if("touches"in g&&A==="h"&&T.type==="range")return!1;var _=window.getSelection(),I=_&&_.anchorNode,z=I?I===T||I.contains(T):!1;if(z)return!1;var H=no(A,T);if(!H)return!0;if(H?E=A:(E=A==="v"?"h":"v",H=no(A,T)),!H)return!1;if(!n.current&&"changedTouches"in g&&(O||w)&&(n.current=E),!E)return!0;var U=n.current||E;return Ac(U,b,g,U==="h"?O:w)},[]),l=f.useCallback(function(g){var b=g;if(!(!$e.length||$e[$e.length-1]!==a)){var y="deltaY"in b?io(b):yt(b),S=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&Rc(E.delta,y)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var O=(i.current.shards||[]).map(so).filter(Boolean).filter(function(E){return E.contains(b.target)}),w=O.length>0?c(b,O[0]):!i.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),s=f.useCallback(function(g,b,y,S){var O={name:g,delta:b,target:y,should:S,shadowParent:Nc(y)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(w){return w!==O})},1)},[]),m=f.useCallback(function(g){r.current=yt(g),n.current=void 0},[]),d=f.useCallback(function(g){s(g.type,io(g),g.target,c(g,e.lockRef.current))},[]),u=f.useCallback(function(g){s(g.type,yt(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return $e.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:u}),document.addEventListener("wheel",l,Fe),document.addEventListener("touchmove",l,Fe),document.addEventListener("touchstart",m,Fe),function(){$e=$e.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,Fe),document.removeEventListener("touchmove",l,Fe),document.removeEventListener("touchstart",m,Fe)}},[]);var p=e.removeScrollBar,h=e.inert;return f.createElement(f.Fragment,null,h?f.createElement(a,{styles:kc(o)}):null,p?f.createElement(xc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Nc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Dc=sc(Qn,Pc);var co=f.forwardRef(function(e,t){return f.createElement(vt,fe({},e,{ref:t,sideCar:Dc}))});co.classNames=vt.classNames;var Mc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ze=new WeakMap,xt=new WeakMap,wt={},dr=0,lo=function(e){return e&&(e.host||lo(e.parentNode))},Lc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=lo(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Ic=function(e,t,r,n){var o=Lc(t,Array.isArray(e)?e:[e]);wt[r]||(wt[r]=new WeakMap);var a=wt[r],i=[],c=new Set,l=new Set(o),s=function(d){!d||c.has(d)||(c.add(d),s(d.parentNode))};o.forEach(s);var m=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(u){if(c.has(u))m(u);else try{var p=u.getAttribute(n),h=p!==null&&p!=="false",g=(ze.get(u)||0)+1,b=(a.get(u)||0)+1;ze.set(u,g),a.set(u,b),i.push(u),g===1&&h&&xt.set(u,!0),b===1&&u.setAttribute(r,"true"),h||u.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",u,y)}})};return m(t),c.clear(),dr++,function(){i.forEach(function(d){var u=ze.get(d)-1,p=a.get(d)-1;ze.set(d,u),a.set(d,p),u||(xt.has(d)||d.removeAttribute(n),xt.delete(d)),p||d.removeAttribute(r)}),dr--,dr||(ze=new WeakMap,ze=new WeakMap,xt=new WeakMap,wt={})}},jc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Mc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Ic(n,o,r,"aria-hidden")):function(){return null}},St="Dialog",[uo,Fd]=at(St),[Fc,le]=uo(St),fo=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,c=f.useRef(null),l=f.useRef(null),[s,m]=Fn({prop:n,defaultProp:o??!1,onChange:a,caller:St});return v.jsx(Fc,{scope:t,triggerRef:c,contentRef:l,contentId:mt(),titleId:mt(),descriptionId:mt(),open:s,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(d=>!d),[m]),modal:i,children:r})};fo.displayName=St;var mo="DialogTrigger",$c=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=le(mo,r),a=ce(t,o.triggerRef);return v.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pr(o.open),...n,ref:a,onClick:ne(e.onClick,o.onOpenToggle)})});$c.displayName=mo;var fr="DialogPortal",[zc,po]=uo(fr,{forceMount:void 0}),go=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=le(fr,t);return v.jsx(zc,{scope:t,forceMount:r,children:f.Children.map(n,i=>v.jsx(Ie,{present:r||a.open,children:v.jsx(ar,{asChild:!0,container:o,children:i})}))})};go.displayName=fr;var Et="DialogOverlay",ho=f.forwardRef((e,t)=>{const r=po(Et,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=le(Et,e.__scopeDialog);return a.modal?v.jsx(Ie,{present:n||a.open,children:v.jsx(Wc,{...o,ref:t})}):null});ho.displayName=Et;var Vc=$t("DialogOverlay.RemoveScroll"),Wc=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=le(Et,r);return v.jsx(co,{as:Vc,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(J.div,{"data-state":pr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Te="DialogContent",vo=f.forwardRef((e,t)=>{const r=po(Te,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=le(Te,e.__scopeDialog);return v.jsx(Ie,{present:n||a.open,children:a.modal?v.jsx(Bc,{...o,ref:t}):v.jsx(Hc,{...o,ref:t})})});vo.displayName=Te;var Bc=f.forwardRef((e,t)=>{const r=le(Te,e.__scopeDialog),n=f.useRef(null),o=ce(t,r.contentRef,n);return f.useEffect(()=>{const a=n.current;if(a)return jc(a)},[]),v.jsx(bo,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,a=>a.preventDefault())})}),Hc=f.forwardRef((e,t)=>{const r=le(Te,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return v.jsx(bo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),bo=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,c=le(Te,r),l=f.useRef(null),s=ce(t,l);return Zs(),v.jsxs(v.Fragment,{children:[v.jsx(Hn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:v.jsx(rr,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":pr(c.open),...i,ref:s,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(Uc,{titleId:c.titleId}),v.jsx(Yc,{contentRef:l,descriptionId:c.descriptionId})]})]})}),mr="DialogTitle",yo=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=le(mr,r);return v.jsx(J.h2,{id:o.titleId,...n,ref:t})});yo.displayName=mr;var xo="DialogDescription",wo=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=le(xo,r);return v.jsx(J.p,{id:o.descriptionId,...n,ref:t})});wo.displayName=xo;var So="DialogClose",Eo=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=le(So,r);return v.jsx(J.button,{type:"button",...n,ref:t,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});Eo.displayName=So;function pr(e){return e?"open":"closed"}var Co="DialogTitleWarning",[$d,Oo]=Ea(Co,{contentName:Te,titleName:mr,docsSlug:"dialog"}),Uc=({titleId:e})=>{const t=Oo(Co),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
+
`)},Sd=0,Ze=[];function Ed(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Sd++)[0],a=f.useState(xa)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Wu([e.lockRef.current],(e.shards||[]).map(Oa),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=f.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Yt(h),w=n.current,E="deltaX"in h?h.deltaX:w[0]-y[0],x="deltaY"in h?h.deltaY:w[1]-y[1],C,M=h.target,O=Math.abs(E)>Math.abs(x)?"h":"v";if("touches"in h&&O==="h"&&M.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===M||L.contains(M):!1;if(B)return!1;var U=Ea(O,M);if(!U)return!0;if(U?C=O:(C=O==="v"?"h":"v",U=Ea(O,M)),!U)return!1;if(!r.current&&"changedTouches"in h&&(E||x)&&(r.current=C),!C)return!0;var H=r.current||C;return yd(H,b,h,H==="h"?E:x)},[]),l=f.useCallback(function(h){var b=h;if(!(!Ze.length||Ze[Ze.length-1]!==a)){var y="deltaY"in b?Ra(b):Yt(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&xd(C.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var E=(s.current.shards||[]).map(Oa).filter(Boolean).filter(function(C){return C.contains(b.target)}),x=E.length>0?i(b,E[0]):!s.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),c=f.useCallback(function(h,b,y,w){var E={name:h,delta:b,target:y,should:w,shadowParent:Cd(y)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(x){return x!==E})},1)},[]),p=f.useCallback(function(h){n.current=Yt(h),r.current=void 0},[]),u=f.useCallback(function(h){c(h.type,Ra(h),h.target,i(h,e.lockRef.current))},[]),d=f.useCallback(function(h){c(h.type,Yt(h),h.target,i(h,e.lockRef.current))},[]);f.useEffect(function(){return Ze.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,qe),document.addEventListener("touchmove",l,qe),document.addEventListener("touchstart",p,qe),function(){Ze=Ze.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,qe),document.removeEventListener("touchmove",l,qe),document.removeEventListener("touchstart",p,qe)}},[]);var g=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(a,{styles:wd(o)}):null,g?f.createElement(fd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _d=Qu(ya,Ed);var Kn=f.forwardRef(function(e,t){return f.createElement(Ht,we({},e,{ref:t,sideCar:_d}))});Kn.classNames=Ht.classNames;var Yn=["Enter"," "],Rd=["ArrowDown","PageUp","Home"],Aa=["ArrowUp","PageDown","End"],Od=[...Rd,...Aa],Ad={ltr:[...Yn,"ArrowRight"],rtl:[...Yn,"ArrowLeft"]},Md={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dt="Menu",[ft,Td,Pd]=mo(dt),[Le,Ma]=Oe(dt,[Pd,$t,la]),pt=$t(),Ta=la(),[Pa,Ne]=Le(dt),[kd,mt]=Le(dt),ka=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=pt(t),[l,c]=f.useState(null),p=f.useRef(!1),u=de(a),d=go(o);return f.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($n,{...i,children:m.jsx(Pa,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(kd,{scope:t,onClose:f.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:d,modal:s,children:r})})})};ka.displayName=dt;var Nd="MenuAnchor",Xn=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pt(n);return m.jsx(aa,{...o,...r,ref:t})});Xn.displayName=Nd;var qn="MenuPortal",[Dd,Na]=Le(qn,{forceMount:void 0}),Da=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(qn,t);return m.jsx(Dd,{scope:t,forceMount:n,children:m.jsx(xe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Da.displayName=qn;var ue="MenuContent",[Id,Zn]=Le(ue),Ia=f.forwardRef((e,t)=>{const n=Na(ue,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(ue,e.__scopeMenu),s=mt(ue,e.__scopeMenu);return m.jsx(ft.Provider,{scope:e.__scopeMenu,children:m.jsx(xe,{present:r||a.open,children:m.jsx(ft.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(jd,{...o,ref:t}):m.jsx(Ld,{...o,ref:t})})})})}),jd=f.forwardRef((e,t)=>{const n=Ne(ue,e.__scopeMenu),r=f.useRef(null),o=ee(t,r);return f.useEffect(()=>{const a=r.current;if(a)return ga(a)},[]),m.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ld=f.forwardRef((e,t)=>{const n=Ne(ue,e.__scopeMenu);return m.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Fd=ze("MenuContent.ScrollLock"),Jn=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:d,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(ue,n),y=mt(ue,n),w=pt(n),E=Ta(n),x=Td(n),[C,M]=f.useState(null),O=f.useRef(null),R=ee(t,O,b.onContentChange),L=f.useRef(0),B=f.useRef(""),U=f.useRef(0),H=f.useRef(null),Y=f.useRef("right"),W=f.useRef(0),q=v?Kn:f.Fragment,F=v?{as:Fd,allowPinchZoom:!0}:void 0,K=k=>{const S=B.current+k,I=x().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,X=I.map($=>$.textValue),Q=qd(X,S,V),se=I.find($=>$.textValue===Q)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};f.useEffect(()=>()=>window.clearTimeout(L.current),[]),xo();const _=f.useCallback(k=>Y.current===H.current?.side&&Jd(k,H.current?.area),[]);return m.jsx(Id,{scope:n,searchRef:B,onItemEnter:f.useCallback(k=>{_(k)&&k.preventDefault()},[_]),onItemLeave:f.useCallback(k=>{_(k)||(O.current?.focus(),M(null))},[_]),onTriggerLeave:f.useCallback(k=>{_(k)&&k.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:f.useCallback(k=>{H.current=k},[]),children:m.jsx(q,{...F,children:m.jsx(_n,{asChild:!0,trapped:o,onMountAutoFocus:j(a,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:d,onDismiss:g,children:m.jsx($u,{asChild:!0,...E,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:M,onEntryFocus:j(l,k=>{y.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(sa,{role:"menu","aria-orientation":"vertical","data-state":Qa(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,k=>{const I=k.target.closest("[data-radix-menu-content]")===k.currentTarget,G=k.ctrlKey||k.altKey||k.metaKey,V=k.key.length===1;I&&(k.key==="Tab"&&k.preventDefault(),!G&&V&&K(k.key));const X=O.current;if(k.target!==X||!Od.includes(k.key))return;k.preventDefault();const se=x().filter($=>!$.disabled).map($=>$.ref.current);Aa.includes(k.key)&&se.reverse(),Yd(se)}),onBlur:j(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,ht(k=>{const S=k.target,I=W.current!==k.clientX;if(k.currentTarget.contains(S)&&I){const G=k.clientX>W.current?"right":"left";Y.current=G,W.current=k.clientX}}))})})})})})})});Ia.displayName=ue;var $d="MenuGroup",Qn=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Z.div,{role:"group",...r,ref:t})});Qn.displayName=$d;var zd="MenuLabel",ja=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Z.div,{...r,ref:t})});ja.displayName=zd;var Xt="MenuItem",La="menu.itemSelect",qt=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),s=mt(Xt,e.__scopeMenu),i=Zn(Xt,e.__scopeMenu),l=ee(t,a),c=f.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const d=new CustomEvent(La,{bubbles:!0,cancelable:!0});u.addEventListener(La,g=>r?.(g),{once:!0}),yr(u,d),d.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(Fa,{...o,ref:l,disabled:n,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const d=i.searchRef.current!=="";n||d&&u.key===" "||Yn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});qt.displayName=Xt;var Fa=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Zn(Xt,n),i=Ta(n),l=f.useRef(null),c=ee(t,l),[p,u]=f.useState(!1),[d,g]=f.useState("");return f.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(ft.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:m.jsx(zu,{asChild:!0,...i,focusable:!r,children:m.jsx(Z.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,ht(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,ht(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),Vd="MenuCheckboxItem",$a=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(Wa,{scope:e.__scopeMenu,checked:n,children:m.jsx(qt,{role:"menuitemcheckbox","aria-checked":Zt(n)?"mixed":n,...o,ref:t,"data-state":nr(n),onSelect:j(o.onSelect,()=>r?.(Zt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});$a.displayName=Vd;var za="MenuRadioGroup",[Bd,Gd]=Le(za,{value:void 0,onValueChange:()=>{}}),Va=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=de(r);return m.jsx(Bd,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Qn,{...o,ref:t})})});Va.displayName=za;var Ba="MenuRadioItem",Ga=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=Gd(Ba,e.__scopeMenu),a=n===o.value;return m.jsx(Wa,{scope:e.__scopeMenu,checked:a,children:m.jsx(qt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nr(a),onSelect:j(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ga.displayName=Ba;var er="MenuItemIndicator",[Wa,Wd]=Le(er,{checked:!1}),Ua=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Wd(er,n);return m.jsx(xe,{present:r||Zt(a.checked)||a.checked===!0,children:m.jsx(Z.span,{...o,ref:t,"data-state":nr(a.checked)})})});Ua.displayName=er;var Ud="MenuSeparator",Ha=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ha.displayName=Ud;var Hd="MenuArrow",Ka=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pt(n);return m.jsx(ia,{...o,...r,ref:t})});Ka.displayName=Hd;var tr="MenuSub",[Kd,Ya]=Le(tr),Xa=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(tr,t),s=pt(t),[i,l]=f.useState(null),[c,p]=f.useState(null),u=de(o);return f.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($n,{...s,children:m.jsx(Pa,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(Kd,{scope:t,contentId:Ce(),triggerId:Ce(),trigger:i,onTriggerChange:l,children:n})})})};Xa.displayName=tr;var gt="MenuSubTrigger",qa=f.forwardRef((e,t)=>{const n=Ne(gt,e.__scopeMenu),r=mt(gt,e.__scopeMenu),o=Ya(gt,e.__scopeMenu),a=Zn(gt,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xn,{asChild:!0,...c,children:m.jsx(Fa,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Qa(n.open),...e,ref:nt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,ht(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,ht(u=>{p();const d=n.content?.getBoundingClientRect();if(d){const g=n.content?.dataset.side,v=g==="right",h=v?-5:5,b=d[v?"left":"right"],y=d[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:d.top},{x:y,y:d.top},{x:y,y:d.bottom},{x:b,y:d.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const d=a.searchRef.current!=="";e.disabled||d&&u.key===" "||Ad[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});qa.displayName=gt;var Za="MenuSubContent",Ja=f.forwardRef((e,t)=>{const n=Na(ue,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(ue,e.__scopeMenu),s=mt(ue,e.__scopeMenu),i=Ya(Za,e.__scopeMenu),l=f.useRef(null),c=ee(t,l);return m.jsx(ft.Provider,{scope:e.__scopeMenu,children:m.jsx(xe,{present:r||a.open,children:m.jsx(ft.Slot,{scope:e.__scopeMenu,children:m.jsx(Jn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),d=Md[s.dir].includes(p.key);u&&d&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Ja.displayName=Za;function Qa(e){return e?"open":"closed"}function Zt(e){return e==="indeterminate"}function nr(e){return Zt(e)?"indeterminate":e?"checked":"unchecked"}function Yd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function qd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Xd(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Zd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,d=l.y;p>r!=d>r&&n<(u-c)*(r-p)/(d-p)+c&&(o=!o)}return o}function Jd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Zd(n,t)}function ht(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Qd=ka,ef=Xn,tf=Da,nf=Ia,rf=Qn,of=ja,af=qt,sf=$a,cf=Va,lf=Ga,uf=Ua,df=Ha,ff=Ka,pf=Xa,mf=qa,gf=Ja,Jt="DropdownMenu",[hf,ig]=Oe(Jt,[Ma]),oe=Ma(),[vf,es]=hf(Jt),ts=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=f.useRef(null),[p,u]=st({prop:o,defaultProp:a??!1,onChange:s,caller:Jt});return m.jsx(vf,{scope:t,triggerId:Ce(),triggerRef:c,contentId:Ce(),open:p,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:i,children:m.jsx(Qd,{...l,open:p,onOpenChange:u,dir:r,modal:i,children:n})})};ts.displayName=Jt;var ns="DropdownMenuTrigger",rs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=es(ns,n),s=oe(n);return m.jsx(ef,{asChild:!0,...s,children:m.jsx(Z.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:nt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});rs.displayName=ns;var bf="DropdownMenuPortal",os=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oe(t);return m.jsx(tf,{...r,...n})};os.displayName=bf;var as="DropdownMenuContent",ss=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=es(as,n),a=oe(n),s=f.useRef(!1);return m.jsx(nf,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ss.displayName=as;var yf="DropdownMenuGroup",is=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(rf,{...o,...r,ref:t})});is.displayName=yf;var xf="DropdownMenuLabel",cs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(of,{...o,...r,ref:t})});cs.displayName=xf;var wf="DropdownMenuItem",ls=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(af,{...o,...r,ref:t})});ls.displayName=wf;var Sf="DropdownMenuCheckboxItem",us=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(sf,{...o,...r,ref:t})});us.displayName=Sf;var Ef="DropdownMenuRadioGroup",ds=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(cf,{...o,...r,ref:t})});ds.displayName=Ef;var Cf="DropdownMenuRadioItem",fs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(lf,{...o,...r,ref:t})});fs.displayName=Cf;var _f="DropdownMenuItemIndicator",ps=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(uf,{...o,...r,ref:t})});ps.displayName=_f;var Rf="DropdownMenuSeparator",ms=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(df,{...o,...r,ref:t})});ms.displayName=Rf;var Of="DropdownMenuArrow",Af=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(ff,{...o,...r,ref:t})});Af.displayName=Of;var Mf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=st({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(pf,{...s,open:i,onOpenChange:l,children:n})},Tf="DropdownMenuSubTrigger",gs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(mf,{...o,...r,ref:t})});gs.displayName=Tf;var Pf="DropdownMenuSubContent",hs=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(gf,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hs.displayName=Pf;var kf=ts,Nf=rs,vs=os,Df=ss,If=is,jf=cs,Lf=ls,Ff=us,$f=ds,zf=fs,bs=ps,Vf=ms,Bf=Mf,Gf=gs,Wf=hs;const Uf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ys=e=>{const t=Hf(e);return t.charAt(0).toUpperCase()+t.slice(1)},xs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Kf=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Yf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Xf=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Yf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xs("lucide",o),...!a&&!Kf(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const vt=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(Xf,{ref:a,iconNode:t,className:xs(`lucide-${Uf(ys(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ys(e),n};const qf=vt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Zf=vt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Jf=vt("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Qf=vt("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const ep=vt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function tp({...e}){return m.jsx(kf,{"data-slot":"dropdown-menu",...e})}function np({...e}){return m.jsx(vs,{"data-slot":"dropdown-menu-portal",...e})}function rp({...e}){return m.jsx(Nf,{"data-slot":"dropdown-menu-trigger",...e})}function op({className:e,sideOffset:t=4,...n}){return m.jsx(vs,{children:m.jsx(Df,{"data-slot":"dropdown-menu-content",sideOffset:t,className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function ap({...e}){return m.jsx(If,{"data-slot":"dropdown-menu-group",...e})}function sp({className:e,inset:t,variant:n="default",...r}){return m.jsx(Lf,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:N("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function ip({className:e,children:t,checked:n,...r}){return m.jsxs(Ff,{"data-slot":"dropdown-menu-checkbox-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(bs,{children:m.jsx(qf,{className:"size-4"})})}),t]})}function cp({...e}){return m.jsx($f,{"data-slot":"dropdown-menu-radio-group",...e})}function lp({className:e,children:t,...n}){return m.jsxs(zf,{"data-slot":"dropdown-menu-radio-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(bs,{children:m.jsx(Jf,{className:"size-2 fill-current"})})}),t]})}function up({className:e,inset:t,...n}){return m.jsx(jf,{"data-slot":"dropdown-menu-label","data-inset":t,className:N("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function dp({className:e,...t}){return m.jsx(Vf,{"data-slot":"dropdown-menu-separator",className:N("bg-border -mx-1 my-1 h-px",e),...t})}function fp({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:N("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function pp({...e}){return m.jsx(Bf,{"data-slot":"dropdown-menu-sub",...e})}function mp({className:e,inset:t,children:n,...r}){return m.jsxs(Gf,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:N("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(Zf,{className:"ml-auto size-4"})]})}function gp({className:e,...t}){return m.jsx(Wf,{"data-slot":"dropdown-menu-sub-content",className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const rr=768;function hp(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${rr-1}px)`),r=()=>{t(window.innerWidth<rr)};return n.addEventListener("change",r),t(window.innerWidth<rr),()=>n.removeEventListener("change",r)},[]),!!e}var vp=Symbol.for("react.lazy"),Qt=f[" use ".trim().toString()];function bp(e){return typeof e=="object"&&e!==null&&"then"in e}function ws(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===vp&&"_payload"in e&&bp(e._payload)}function yp(e){const t=xp(e),n=f.forwardRef((r,o)=>{let{children:a,...s}=r;ws(a)&&typeof Qt=="function"&&(a=Qt(a._payload));const i=f.Children.toArray(a),l=i.find(Sp);if(l){const c=l.props.children,p=i.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function xp(e){const t=f.forwardRef((n,r)=>{let{children:o,...a}=n;if(ws(o)&&typeof Qt=="function"&&(o=Qt(o._payload)),f.isValidElement(o)){const s=Cp(o),i=Ep(a,o.props);return o.type!==f.Fragment&&(i.ref=r?nt(r,s):s),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wp=Symbol("radix.slottable");function Sp(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wp}function Ep(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Cp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rp=_p.reduce((e,t)=>{const n=yp(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Op="Separator",Ss="horizontal",Ap=["horizontal","vertical"],Es=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ss,...o}=e,a=Mp(r)?r:Ss,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(Rp.div,{"data-orientation":a,...i,...o,ref:t})});Es.displayName=Op;function Mp(e){return Ap.includes(e)}var Tp=Es;function Pp({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(Tp,{"data-slot":"separator",decorative:n,orientation:t,className:N("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}var en="Dialog",[Cs,pg]=Oe(en),[kp,ge]=Cs(en),_s=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=f.useRef(null),l=f.useRef(null),[c,p]=st({prop:r,defaultProp:o??!1,onChange:a,caller:en});return m.jsx(kp,{scope:t,triggerRef:i,contentRef:l,contentId:Ce(),titleId:Ce(),descriptionId:Ce(),open:c,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};_s.displayName=en;var Rs="DialogTrigger",Np=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Rs,n),a=ee(t,o.triggerRef);return m.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sr(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Np.displayName=Rs;var or="DialogPortal",[Dp,Os]=Cs(or,{forceMount:void 0}),As=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ge(or,t);return m.jsx(Dp,{scope:t,forceMount:n,children:f.Children.map(r,s=>m.jsx(xe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};As.displayName=or;var tn="DialogOverlay",Ms=f.forwardRef((e,t)=>{const n=Os(tn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ge(tn,e.__scopeDialog);return a.modal?m.jsx(xe,{present:r||a.open,children:m.jsx(jp,{...o,ref:t})}):null});Ms.displayName=tn;var Ip=ze("DialogOverlay.RemoveScroll"),jp=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(tn,n);return m.jsx(Kn,{as:Ip,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Z.div,{"data-state":sr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",Ts=f.forwardRef((e,t)=>{const n=Os(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ge(Fe,e.__scopeDialog);return m.jsx(xe,{present:r||a.open,children:a.modal?m.jsx(Lp,{...o,ref:t}):m.jsx(Fp,{...o,ref:t})})});Ts.displayName=Fe;var Lp=f.forwardRef((e,t)=>{const n=ge(Fe,e.__scopeDialog),r=f.useRef(null),o=ee(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return ga(a)},[]),m.jsx(Ps,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Fp=f.forwardRef((e,t)=>{const n=ge(Fe,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return m.jsx(Ps,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ps=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=ge(Fe,n),l=f.useRef(null),c=ee(t,l);return xo(),m.jsxs(m.Fragment,{children:[m.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":sr(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx($p,{titleId:i.titleId}),m.jsx(Vp,{contentRef:l,descriptionId:i.descriptionId})]})]})}),ar="DialogTitle",ks=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(ar,n);return m.jsx(Z.h2,{id:o.titleId,...r,ref:t})});ks.displayName=ar;var Ns="DialogDescription",Ds=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Ns,n);return m.jsx(Z.p,{id:o.descriptionId,...r,ref:t})});Ds.displayName=Ns;var Is="DialogClose",js=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Is,n);return m.jsx(Z.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});js.displayName=Is;function sr(e){return e?"open":"closed"}var Ls="DialogTitleWarning",[mg,Fs]=ri(Ls,{contentName:Fe,titleName:ar,docsSlug:"dialog"}),$p=({titleId:e})=>{const t=Fs(Ls),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
129
51
|
|
|
130
52
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
131
53
|
|
|
132
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Gc="DialogDescriptionWarning",Yc=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oo(Gc).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Kc=fo,qc=go,Xc=ho,Zc=vo,Jc=yo,Qc=wo,el=Eo;function tl({...e}){return v.jsx(Kc,{"data-slot":"sheet",...e})}function rl({...e}){return v.jsx(qc,{"data-slot":"sheet-portal",...e})}function nl({className:e,...t}){return v.jsx(Xc,{"data-slot":"sheet-overlay",className:N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function ol({className:e,children:t,side:r="right",...n}){return v.jsxs(rl,{children:[v.jsx(nl,{}),v.jsxs(Zc,{"data-slot":"sheet-content",className:N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...n,children:[t,v.jsxs(el,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[v.jsx(us,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function al({className:e,...t}){return v.jsx("div",{"data-slot":"sheet-header",className:N("flex flex-col gap-1.5 p-4",e),...t})}function il({className:e,...t}){return v.jsx(Jc,{"data-slot":"sheet-title",className:N("text-foreground font-semibold",e),...t})}function sl({className:e,...t}){return v.jsx(Qc,{"data-slot":"sheet-description",className:N("text-muted-foreground text-sm",e),...t})}function _o({className:e,...t}){return v.jsx("div",{"data-slot":"skeleton",className:N("bg-accent animate-pulse rounded-md",e),...t})}const cl=["top","right","bottom","left"],Ce=Math.min,oe=Math.max,Ct=Math.round,Ot=Math.floor,me=e=>({x:e,y:e}),ll={left:"right",right:"left",bottom:"top",top:"bottom"},ul={start:"end",end:"start"};function gr(e,t,r){return oe(e,Ce(t,r))}function ye(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function hr(e){return e==="x"?"y":"x"}function vr(e){return e==="y"?"height":"width"}const dl=new Set(["top","bottom"]);function pe(e){return dl.has(xe(e))?"y":"x"}function br(e){return hr(pe(e))}function fl(e,t,r){r===void 0&&(r=!1);const n=Ve(e),o=br(e),a=vr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=_t(i)),[i,_t(i)]}function ml(e){const t=_t(e);return[yr(e),t,yr(t)]}function yr(e){return e.replace(/start|end/g,t=>ul[t])}const Ao=["left","right"],Ro=["right","left"],pl=["top","bottom"],gl=["bottom","top"];function hl(e,t,r){switch(e){case"top":case"bottom":return r?t?Ro:Ao:t?Ao:Ro;case"left":case"right":return t?pl:gl;default:return[]}}function vl(e,t,r,n){const o=Ve(e);let a=hl(xe(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(yr)))),a}function _t(e){return e.replace(/left|right|bottom|top/g,t=>ll[t])}function bl(e){return{top:0,right:0,bottom:0,left:0,...e}}function ko(e){return typeof e!="number"?bl(e):{top:e,right:e,bottom:e,left:e}}function At(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 To(e,t,r){let{reference:n,floating:o}=e;const a=pe(t),i=br(t),c=vr(i),l=xe(t),s=a==="y",m=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,u=n[c]/2-o[c]/2;let p;switch(l){case"top":p={x:m,y:n.y-o.height};break;case"bottom":p={x:m,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(Ve(t)){case"start":p[i]-=u*(r&&s?-1:1);break;case"end":p[i]+=u*(r&&s?-1:1);break}return p}const yl=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,c=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:d}=To(s,n,l),u=n,p={},h=0;for(let g=0;g<c.length;g++){const{name:b,fn:y}=c[g],{x:S,y:O,data:w,reset:E}=await y({x:m,y:d,initialPlacement:n,placement:u,strategy:o,middlewareData:p,rects:s,platform:i,elements:{reference:e,floating:t}});m=S??m,d=O??d,p={...p,[b]:{...p[b],...w}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(u=E.placement),E.rects&&(s=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:m,y:d}=To(s,u,l)),g=-1)}return{x:m,y:d,placement:u,strategy:o,middlewareData:p}};async function Je(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:c,strategy:l}=e,{boundary:s="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:u=!1,padding:p=0}=ye(t,e),h=ko(p),b=c[u?d==="floating"?"reference":"floating":d],y=At(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:s,rootBoundary:m,strategy:l})),S=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),w=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=At(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:S,offsetParent:O,strategy:l}):S);return{top:(y.top-E.top+h.top)/w.y,bottom:(E.bottom-y.bottom+h.bottom)/w.y,left:(y.left-E.left+h.left)/w.x,right:(E.right-y.right+h.right)/w.x}}const xl=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:c,middlewareData:l}=t,{element:s,padding:m=0}=ye(e,t)||{};if(s==null)return{};const d=ko(m),u={x:r,y:n},p=br(o),h=vr(p),g=await i.getDimensions(s),b=p==="y",y=b?"top":"left",S=b?"bottom":"right",O=b?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-u[p]-a.floating[h],E=u[p]-a.reference[p],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s));let A=T?T[O]:0;(!A||!await(i.isElement==null?void 0:i.isElement(T)))&&(A=c.floating[O]||a.floating[h]);const _=w/2-E/2,I=A/2-g[h]/2-1,z=Ce(d[y],I),H=Ce(d[S],I),U=z,G=A-g[h]-H,V=A/2-g[h]/2+_,K=gr(U,V,G),F=!l.arrow&&Ve(o)!=null&&V!==K&&a.reference[h]/2-(V<U?z:H)-g[h]/2<0,$=F?V<U?V-U:V-G:0;return{[p]:u[p]+$,data:{[p]:K,centerOffset:V-K-$,...F&&{alignmentOffset:$}},reset:F}}}),wl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:c,platform:l,elements:s}=t,{mainAxis:m=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...b}=ye(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=xe(o),S=pe(c),O=xe(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(s.floating)),E=u||(O||!g?[_t(c)]:ml(c)),T=h!=="none";!u&&T&&E.push(...vl(c,g,h,w));const A=[c,...E],_=await Je(t,b),I=[];let z=((n=a.flip)==null?void 0:n.overflows)||[];if(m&&I.push(_[y]),d){const V=fl(o,i,w);I.push(_[V[0]],_[V[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(V=>V<=0)){var H,U;const V=(((H=a.flip)==null?void 0:H.index)||0)+1,K=A[V];if(K&&(!(d==="alignment"?S!==pe(K):!1)||z.every(C=>pe(C.placement)===S?C.overflows[0]>0:!0)))return{data:{index:V,overflows:z},reset:{placement:K}};let F=(U=z.filter($=>$.overflows[0]<=0).sort(($,C)=>$.overflows[1]-C.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(p){case"bestFit":{var G;const $=(G=z.filter(C=>{if(T){const q=pe(C.placement);return q===S||q==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(q=>q>0).reduce((q,x)=>q+x,0)]).sort((C,q)=>C[1]-q[1])[0])==null?void 0:G[0];$&&(F=$);break}case"initialPlacement":F=c;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Po(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function No(e){return cl.some(t=>e[t]>=0)}const Sl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=ye(e,t);switch(n){case"referenceHidden":{const a=await Je(t,{...o,elementContext:"reference"}),i=Po(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:No(i)}}}case"escaped":{const a=await Je(t,{...o,altBoundary:!0}),i=Po(a,r.floating);return{data:{escapedOffsets:i,escaped:No(i)}}}default:return{}}}}},Do=new Set(["left","top"]);async function El(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=xe(r),c=Ve(r),l=pe(r)==="y",s=Do.has(i)?-1:1,m=a&&l?-1:1,d=ye(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),l?{x:p*m,y:u*s}:{x:u*s,y:p*m}}const Cl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:c}=t,l=await El(t,e);return i===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Ol=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:c={fn:b=>{let{x:y,y:S}=b;return{x:y,y:S}}},...l}=ye(e,t),s={x:r,y:n},m=await Je(t,l),d=pe(xe(o)),u=hr(d);let p=s[u],h=s[d];if(a){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",S=p+m[b],O=p-m[y];p=gr(S,p,O)}if(i){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",S=h+m[b],O=h-m[y];h=gr(S,h,O)}const g=c.fn({...t,[u]:p,[d]:h});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[u]:a,[d]:i}}}}}},_l=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:c=0,mainAxis:l=!0,crossAxis:s=!0}=ye(e,t),m={x:r,y:n},d=pe(o),u=hr(d);let p=m[u],h=m[d];const g=ye(c,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const O=u==="y"?"height":"width",w=a.reference[u]-a.floating[O]+b.mainAxis,E=a.reference[u]+a.reference[O]-b.mainAxis;p<w?p=w:p>E&&(p=E)}if(s){var y,S;const O=u==="y"?"width":"height",w=Do.has(xe(o)),E=a.reference[d]-a.floating[O]+(w&&((y=i.offset)==null?void 0:y[d])||0)+(w?0:b.crossAxis),T=a.reference[d]+a.reference[O]+(w?0:((S=i.offset)==null?void 0:S[d])||0)-(w?b.crossAxis:0);h<E?h=E:h>T&&(h=T)}return{[u]:p,[d]:h}}}},Al=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:c}=t,{apply:l=()=>{},...s}=ye(e,t),m=await Je(t,s),d=xe(o),u=Ve(o),p=pe(o)==="y",{width:h,height:g}=a.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=u===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,b=u==="end"?"top":"bottom");const S=g-m.top-m.bottom,O=h-m.left-m.right,w=Ce(g-m[b],S),E=Ce(h-m[y],O),T=!t.middlewareData.shift;let A=w,_=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=O),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=S),T&&!u){const z=oe(m.left,0),H=oe(m.right,0),U=oe(m.top,0),G=oe(m.bottom,0);p?_=h-2*(z!==0||H!==0?z+H:oe(m.left,m.right)):A=g-2*(U!==0||G!==0?U+G:oe(m.top,m.bottom))}await l({...t,availableWidth:_,availableHeight:A});const I=await i.getDimensions(c.floating);return h!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Rt(){return typeof window<"u"}function We(e){return Mo(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ge(e){var t;return(t=(Mo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mo(e){return Rt()?e instanceof Node||e instanceof ae(e).Node:!1}function ue(e){return Rt()?e instanceof Element||e instanceof ae(e).Element:!1}function he(e){return Rt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function Lo(e){return!Rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}const Rl=new Set(["inline","contents"]);function Qe(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Rl.has(o)}const kl=new Set(["table","td","th"]);function Tl(e){return kl.has(We(e))}const Pl=[":popover-open",":modal"];function kt(e){return Pl.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nl=["transform","translate","scale","rotate","perspective"],Dl=["transform","translate","scale","rotate","perspective","filter"],Ml=["paint","layout","strict","content"];function xr(e){const t=wr(),r=ue(e)?de(e):e;return Nl.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Dl.some(n=>(r.willChange||"").includes(n))||Ml.some(n=>(r.contain||"").includes(n))}function Ll(e){let t=Oe(e);for(;he(t)&&!Be(t);){if(xr(t))return t;if(kt(t))return null;t=Oe(t)}return null}function wr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Il=new Set(["html","body","#document"]);function Be(e){return Il.has(We(e))}function de(e){return ae(e).getComputedStyle(e)}function Tt(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(We(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lo(e)&&e.host||ge(e);return Lo(t)?t.host:t}function Io(e){const t=Oe(e);return Be(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&Qe(t)?t:Io(t)}function et(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Io(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ae(o);if(a){const c=Sr(i);return t.concat(i,i.visualViewport||[],Qe(o)?o:[],c&&r?et(c):[])}return t.concat(o,et(o,[],r))}function Sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=de(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=he(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,c=Ct(r)!==a||Ct(n)!==i;return c&&(r=a,n=i),{width:r,height:n,$:c}}function Er(e){return ue(e)?e:e.contextElement}function He(e){const t=Er(e);if(!he(t))return me(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=jo(t);let i=(a?Ct(r.width):r.width)/n,c=(a?Ct(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const jl=me(0);function Fo(e){const t=ae(e);return!wr()||!t.visualViewport?jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fl(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ae(e)?!1:t}function Pe(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Er(e);let i=me(1);t&&(n?ue(n)&&(i=He(n)):i=He(e));const c=Fl(a,r,n)?Fo(a):me(0);let l=(o.left+c.x)/i.x,s=(o.top+c.y)/i.y,m=o.width/i.x,d=o.height/i.y;if(a){const u=ae(a),p=n&&ue(n)?ae(n):n;let h=u,g=Sr(h);for(;g&&n&&p!==h;){const b=He(g),y=g.getBoundingClientRect(),S=de(g),O=y.left+(g.clientLeft+parseFloat(S.paddingLeft))*b.x,w=y.top+(g.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,s*=b.y,m*=b.x,d*=b.y,l+=O,s+=w,h=ae(g),g=Sr(h)}}return At({width:m,height:d,x:l,y:s})}function Pt(e,t){const r=Tt(e).scrollLeft;return t?t.left+r:Pe(ge(e)).left+r}function $o(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Pt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function $l(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=ge(n),c=t?kt(t.floating):!1;if(n===i||c&&a)return r;let l={scrollLeft:0,scrollTop:0},s=me(1);const m=me(0),d=he(n);if((d||!d&&!a)&&((We(n)!=="body"||Qe(i))&&(l=Tt(n)),he(n))){const p=Pe(n);s=He(n),m.x=p.x+n.clientLeft,m.y=p.y+n.clientTop}const u=i&&!d&&!a?$o(i,l):me(0);return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-l.scrollLeft*s.x+m.x+u.x,y:r.y*s.y-l.scrollTop*s.y+m.y+u.y}}function zl(e){return Array.from(e.getClientRects())}function Vl(e){const t=ge(e),r=Tt(e),n=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=oe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Pt(e);const c=-r.scrollTop;return de(n).direction==="rtl"&&(i+=oe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:c}}const zo=25;function Wl(e,t){const r=ae(e),n=ge(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,c=0,l=0;if(o){a=o.width,i=o.height;const m=wr();(!m||m&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const s=Pt(n);if(s<=0){const m=n.ownerDocument,d=m.body,u=getComputedStyle(d),p=m.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-p);h<=zo&&(a-=h)}else s<=zo&&(a+=s);return{width:a,height:i,x:c,y:l}}const Bl=new Set(["absolute","fixed"]);function Hl(e,t){const r=Pe(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=he(e)?He(e):me(1),i=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,s=n*a.y;return{width:i,height:c,x:l,y:s}}function Vo(e,t,r){let n;if(t==="viewport")n=Wl(e,r);else if(t==="document")n=Vl(ge(e));else if(ue(t))n=Hl(t,r);else{const o=Fo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return At(n)}function Wo(e,t){const r=Oe(e);return r===t||!ue(r)||Be(r)?!1:de(r).position==="fixed"||Wo(r,t)}function Ul(e,t){const r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(c=>ue(c)&&We(c)!=="body"),o=null;const a=de(e).position==="fixed";let i=a?Oe(e):e;for(;ue(i)&&!Be(i);){const c=de(i),l=xr(i);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&Bl.has(o.position)||Qe(i)&&!l&&Wo(e,i))?n=n.filter(m=>m!==i):o=c,i=Oe(i)}return t.set(e,n),n}function Gl(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?kt(t)?[]:Ul(t,this._c):[].concat(r),n],c=i[0],l=i.reduce((s,m)=>{const d=Vo(t,m,o);return s.top=oe(d.top,s.top),s.right=Ce(d.right,s.right),s.bottom=Ce(d.bottom,s.bottom),s.left=oe(d.left,s.left),s},Vo(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Yl(e){const{width:t,height:r}=jo(e);return{width:t,height:r}}function Kl(e,t,r){const n=he(t),o=ge(t),a=r==="fixed",i=Pe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=me(0);function s(){l.x=Pt(o)}if(n||!n&&!a)if((We(t)!=="body"||Qe(o))&&(c=Tt(t)),n){const p=Pe(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&s();a&&!n&&o&&s();const m=o&&!n&&!a?$o(o,c):me(0),d=i.left+c.scrollLeft-l.x-m.x,u=i.top+c.scrollTop-l.y-m.y;return{x:d,y:u,width:i.width,height:i.height}}function Cr(e){return de(e).position==="static"}function Bo(e,t){if(!he(e)||de(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ge(e)===r&&(r=r.ownerDocument.body),r}function Ho(e,t){const r=ae(e);if(kt(e))return r;if(!he(e)){let o=Oe(e);for(;o&&!Be(o);){if(ue(o)&&!Cr(o))return o;o=Oe(o)}return r}let n=Bo(e,t);for(;n&&Tl(n)&&Cr(n);)n=Bo(n,t);return n&&Be(n)&&Cr(n)&&!xr(n)?r:n||Ll(e)||r}const ql=async function(e){const t=this.getOffsetParent||Ho,r=this.getDimensions,n=await r(e.floating);return{reference:Kl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Xl(e){return de(e).direction==="rtl"}const Zl={convertOffsetParentRelativeRectToViewportRelativeRect:$l,getDocumentElement:ge,getClippingRect:Gl,getOffsetParent:Ho,getElementRects:ql,getClientRects:zl,getDimensions:Yl,getScale:He,isElement:ue,isRTL:Xl};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jl(e,t){let r=null,n;const o=ge(e);function a(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function i(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const s=e.getBoundingClientRect(),{left:m,top:d,width:u,height:p}=s;if(c||t(),!u||!p)return;const h=Ot(d),g=Ot(o.clientWidth-(m+u)),b=Ot(o.clientHeight-(d+p)),y=Ot(m),O={rootMargin:-h+"px "+-g+"px "+-b+"px "+-y+"px",threshold:oe(0,Ce(1,l))||1};let w=!0;function E(T){const A=T[0].intersectionRatio;if(A!==l){if(!w)return i();A?i(!1,A):n=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Uo(s,e.getBoundingClientRect())&&i(),w=!1}try{r=new IntersectionObserver(E,{...O,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,O)}r.observe(e)}return i(!0),a}function Ql(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,s=Er(e),m=o||a?[...s?et(s):[],...et(t)]:[];m.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const d=s&&c?Jl(s,r):null;let u=-1,p=null;i&&(p=new ResizeObserver(y=>{let[S]=y;S&&S.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var O;(O=p)==null||O.observe(t)})),r()}),s&&!l&&p.observe(s),p.observe(t));let h,g=l?Pe(e):null;l&&b();function b(){const y=Pe(e);g&&!Uo(g,y)&&r(),g=y,h=requestAnimationFrame(b)}return r(),()=>{var y;m.forEach(S=>{o&&S.removeEventListener("scroll",r),a&&S.removeEventListener("resize",r)}),d?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const eu=Cl,tu=Ol,ru=wl,nu=Al,ou=Sl,Go=xl,au=_l,iu=(e,t,r)=>{const n=new Map,o={platform:Zl,...r},a={...o.platform,_c:n};return yl(e,t,{...o,platform:a})};var su=typeof document<"u",cu=function(){},Nt=su?D.useLayoutEffect:cu;function Dt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Dt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Dt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const r=Yo(e);return Math.round(t*r)/r}function Or(e){const t=f.useRef(e);return Nt(()=>{t.current=e}),t}function lu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:l,open:s}=e,[m,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[u,p]=f.useState(n);Dt(u,n)||p(n);const[h,g]=f.useState(null),[b,y]=f.useState(null),S=f.useCallback(C=>{C!==T.current&&(T.current=C,g(C))},[]),O=f.useCallback(C=>{C!==A.current&&(A.current=C,y(C))},[]),w=a||h,E=i||b,T=f.useRef(null),A=f.useRef(null),_=f.useRef(m),I=l!=null,z=Or(l),H=Or(o),U=Or(s),G=f.useCallback(()=>{if(!T.current||!A.current)return;const C={placement:t,strategy:r,middleware:u};H.current&&(C.platform=H.current),iu(T.current,A.current,C).then(q=>{const x={...q,isPositioned:U.current!==!1};V.current&&!Dt(_.current,x)&&(_.current=x,jt.flushSync(()=>{d(x)}))})},[u,t,r,H,U]);Nt(()=>{s===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[s]);const V=f.useRef(!1);Nt(()=>(V.current=!0,()=>{V.current=!1}),[]),Nt(()=>{if(w&&(T.current=w),E&&(A.current=E),w&&E){if(z.current)return z.current(w,E,G);G()}},[w,E,G,z,I]);const K=f.useMemo(()=>({reference:T,floating:A,setReference:S,setFloating:O}),[S,O]),F=f.useMemo(()=>({reference:w,floating:E}),[w,E]),$=f.useMemo(()=>{const C={position:r,left:0,top:0};if(!F.floating)return C;const q=Ko(F.floating,m.x),x=Ko(F.floating,m.y);return c?{...C,transform:"translate("+q+"px, "+x+"px)",...Yo(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:x}},[r,c,F.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:G,refs:K,elements:F,floatingStyles:$}),[m,G,K,F,$])}const uu=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?Go({element:n.current,padding:o}).fn(r):{}:n?Go({element:n,padding:o}).fn(r):{}}}},du=(e,t)=>({...eu(e),options:[e,t]}),fu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...au(e),options:[e,t]}),pu=(e,t)=>({...ru(e),options:[e,t]}),gu=(e,t)=>({...nu(e),options:[e,t]}),hu=(e,t)=>({...ou(e),options:[e,t]}),vu=(e,t)=>({...uu(e),options:[e,t]});var bu="Arrow",qo=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return v.jsx(J.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});qo.displayName=bu;var yu=qo;function xu(e){const[t,r]=f.useState(void 0);return se(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,c;if("borderBoxSize"in a){const l=a.borderBoxSize,s=Array.isArray(l)?l[0]:l;i=s.inlineSize,c=s.blockSize}else i=e.offsetWidth,c=e.offsetHeight;r({width:i,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var _r="Popper",[Xo,Zo]=at(_r),[wu,Jo]=Xo(_r),Qo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return v.jsx(wu,{scope:t,anchor:n,onAnchorChange:o,children:r})};Qo.displayName=_r;var ea="PopperAnchor",ta=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Jo(ea,r),i=f.useRef(null),c=ce(t,i),l=f.useRef(null);return f.useEffect(()=>{const s=l.current;l.current=n?.current||i.current,s!==l.current&&a.onAnchorChange(l.current)}),n?null:v.jsx(J.div,{...o,ref:c})});ta.displayName=ea;var Ar="PopperContent",[Su,Eu]=Xo(Ar),ra=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:s=[],collisionPadding:m=0,sticky:d="partial",hideWhenDetached:u=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,b=Jo(Ar,r),[y,S]=f.useState(null),O=ce(t,B=>S(B)),[w,E]=f.useState(null),T=xu(w),A=T?.width??0,_=T?.height??0,I=n+(a!=="center"?"-"+a:""),z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},H=Array.isArray(s)?s:[s],U=H.length>0,G={padding:z,boundary:H.filter(Ou),altBoundary:U},{refs:V,floatingStyles:K,placement:F,isPositioned:$,middlewareData:C}=lu({strategy:"fixed",placement:I,whileElementsMounted:(...B)=>Ql(...B,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[du({mainAxis:o+_,alignmentAxis:i}),l&&fu({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?mu():void 0,...G}),l&&pu({...G}),gu({...G,apply:({elements:B,rects:X,availableWidth:ie,availableHeight:ve})=>{const{width:Ne,height:Ge}=X.reference,It=B.floating.style;It.setProperty("--radix-popper-available-width",`${ie}px`),It.setProperty("--radix-popper-available-height",`${ve}px`),It.setProperty("--radix-popper-anchor-width",`${Ne}px`),It.setProperty("--radix-popper-anchor-height",`${Ge}px`)}}),w&&vu({element:w,padding:c}),_u({arrowWidth:A,arrowHeight:_}),u&&hu({strategy:"referenceHidden",...G})]}),[q,x]=aa(F),M=Ae(h);se(()=>{$&&M?.()},[$,M]);const W=C.arrow?.x,j=C.arrow?.y,Y=C.arrow?.centerOffset!==0,[Q,_e]=f.useState();return se(()=>{y&&_e(window.getComputedStyle(y).zIndex)},[y]),v.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:$?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Su,{scope:r,placedSide:q,onArrowChange:E,arrowX:W,arrowY:j,shouldHideArrow:Y,children:v.jsx(J.div,{"data-side":q,"data-align":x,...g,ref:O,style:{...g.style,animation:$?void 0:"none"}})})})});ra.displayName=Ar;var na="PopperArrow",Cu={top:"bottom",right:"left",bottom:"top",left:"right"},oa=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Eu(na,n),i=Cu[a.placedSide];return v.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:v.jsx(yu,{...o,ref:r,style:{...o.style,display:"block"}})})});oa.displayName=na;function Ou(e){return e!==null}var _u=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,m]=aa(r),d={start:"0%",center:"50%",end:"100%"}[m],u=(o.arrow?.x??0)+c/2,p=(o.arrow?.y??0)+l/2;let h="",g="";return s==="bottom"?(h=i?d:`${u}px`,g=`${-l}px`):s==="top"?(h=i?d:`${u}px`,g=`${n.floating.height+l}px`):s==="right"?(h=`${-l}px`,g=i?d:`${p}px`):s==="left"&&(h=`${n.floating.width+l}px`,g=i?d:`${p}px`),{data:{x:h,y:g}}}});function aa(e){const[t,r="center"]=e.split("-");return[t,r]}var Au=Qo,Ru=ta,ku=ra,Tu=oa,Pu=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"}),Nu="VisuallyHidden",ia=f.forwardRef((e,t)=>v.jsx(J.span,{...e,ref:t,style:{...Pu,...e.style}}));ia.displayName=Nu;var Du=ia,[Mt,zd]=at("Tooltip",[Zo]),Lt=Zo(),sa="TooltipProvider",Mu=700,Rr="tooltip.open",[Lu,kr]=Mt(sa),ca=e=>{const{__scopeTooltip:t,delayDuration:r=Mu,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=f.useRef(!0),c=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const s=l.current;return()=>window.clearTimeout(s)},[]),v.jsx(Lu,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(s=>{c.current=s},[]),disableHoverableContent:o,children:a})};ca.displayName=sa;var tt="Tooltip",[Iu,rt]=Mt(tt),la=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,l=kr(tt,e.__scopeTooltip),s=Lt(t),[m,d]=f.useState(null),u=mt(),p=f.useRef(0),h=i??l.disableHoverableContent,g=c??l.delayDuration,b=f.useRef(!1),[y,S]=Fn({prop:n,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Rr))):l.onClose(),a?.(A)},caller:tt}),O=f.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,S(!0)},[S]),E=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,S(!1)},[S]),T=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,S(!0),p.current=0},g)},[g,S]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),v.jsx(Au,{...s,children:v.jsx(Iu,{scope:t,contentId:u,open:y,stateAttribute:O,trigger:m,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?T():w()},[l.isOpenDelayedRef,T,w]),onTriggerLeave:f.useCallback(()=>{h?E():(window.clearTimeout(p.current),p.current=0)},[E,h]),onOpen:w,onClose:E,disableHoverableContent:h,children:r})})};la.displayName=tt;var Tr="TooltipTrigger",ua=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=rt(Tr,r),a=kr(Tr,r),i=Lt(r),c=f.useRef(null),l=ce(t,c,o.onTriggerChange),s=f.useRef(!1),m=f.useRef(!1),d=f.useCallback(()=>s.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),v.jsx(Ru,{asChild:!0,...i,children:v.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:ne(e.onPointerMove,u=>{u.pointerType!=="touch"&&!m.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{o.open&&o.onClose(),s.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ne(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});ua.displayName=Tr;var Pr="TooltipPortal",[ju,Fu]=Mt(Pr,{forceMount:void 0}),da=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=rt(Pr,t);return v.jsx(ju,{scope:t,forceMount:r,children:v.jsx(Ie,{present:r||a.open,children:v.jsx(ar,{asChild:!0,container:o,children:n})})})};da.displayName=Pr;var Ue="TooltipContent",fa=f.forwardRef((e,t)=>{const r=Fu(Ue,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=rt(Ue,e.__scopeTooltip);return v.jsx(Ie,{present:n||i.open,children:i.disableHoverableContent?v.jsx(ma,{side:o,...a,ref:t}):v.jsx($u,{side:o,...a,ref:t})})}),$u=f.forwardRef((e,t)=>{const r=rt(Ue,e.__scopeTooltip),n=kr(Ue,e.__scopeTooltip),o=f.useRef(null),a=ce(t,o),[i,c]=f.useState(null),{trigger:l,onClose:s}=r,m=o.current,{onPointerInTransitChange:d}=n,u=f.useCallback(()=>{c(null),d(!1)},[d]),p=f.useCallback((h,g)=>{const b=h.currentTarget,y={x:h.clientX,y:h.clientY},S=Bu(y,b.getBoundingClientRect()),O=Hu(y,S),w=Uu(g.getBoundingClientRect()),E=Yu([...O,...w]);c(E),d(!0)},[d]);return f.useEffect(()=>()=>u(),[u]),f.useEffect(()=>{if(l&&m){const h=b=>p(b,m),g=b=>p(b,l);return l.addEventListener("pointerleave",h),m.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",h),m.removeEventListener("pointerleave",g)}}},[l,m,p,u]),f.useEffect(()=>{if(i){const h=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},S=l?.contains(b)||m?.contains(b),O=!Gu(y,i);S?u():O&&(u(),s())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,m,i,s,u]),v.jsx(ma,{...e,ref:a})}),[zu,Vu]=Mt(tt,{isInside:!1}),Wu=Ta("TooltipContent"),ma=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,l=rt(Ue,r),s=Lt(r),{onClose:m}=l;return f.useEffect(()=>(document.addEventListener(Rr,m),()=>document.removeEventListener(Rr,m)),[m]),f.useEffect(()=>{if(l.trigger){const d=u=>{u.target?.contains(l.trigger)&&m()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,m]),v.jsx(rr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:m,children:v.jsxs(ku,{"data-state":l.stateAttribute,...s,...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:[v.jsx(Wu,{children:n}),v.jsx(zu,{scope:r,isInside:!0,children:v.jsx(Du,{id:l.contentId,role:"tooltip",children:o||n})})]})})});fa.displayName=Ue;var pa="TooltipArrow",ga=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Lt(r);return Vu(pa,r).isInside?null:v.jsx(Tu,{...o,...n,ref:t})});ga.displayName=pa;function Bu(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Hu(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 Uu(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 Gu(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],l=t[i],s=c.x,m=c.y,d=l.x,u=l.y;m>n!=u>n&&r<(d-s)*(n-m)/(u-m)+s&&(o=!o)}return o}function Yu(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ku(t)}function Ku(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var qu=ca,Xu=la,Zu=ua,Ju=da,Qu=fa,ed=ga;function ha({delayDuration:e=0,...t}){return v.jsx(qu,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function td({...e}){return v.jsx(ha,{children:v.jsx(Xu,{"data-slot":"tooltip",...e})})}function rd({...e}){return v.jsx(Zu,{"data-slot":"tooltip-trigger",...e})}function nd({className:e,sideOffset:t=0,children:r,...n}){return v.jsx(Ju,{children:v.jsxs(Qu,{"data-slot":"tooltip-content",sideOffset:t,className:N("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[r,v.jsx(ed,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const od="sidebar_state",ad=3600*24*7,id="16rem",sd="18rem",cd="3rem",ld="b",va=f.createContext(null);function nt(){const e=f.useContext(va);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ud({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i}){const c=ds(),[l,s]=f.useState(!1),[m,d]=f.useState(e),u=t??m,p=f.useCallback(y=>{const S=typeof y=="function"?y(u):y;r?r(S):d(S),document.cookie=`${od}=${S}; path=/; max-age=${ad}`},[r,u]),h=f.useCallback(()=>c?s(y=>!y):p(y=>!y),[c,p,s]);f.useEffect(()=>{const y=S=>{S.key===ld&&(S.metaKey||S.ctrlKey)&&(S.preventDefault(),h())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[h]);const g=u?"expanded":"collapsed",b=f.useMemo(()=>({state:g,open:u,setOpen:p,isMobile:c,openMobile:l,setOpenMobile:s,toggleSidebar:h}),[g,u,p,c,l,s,h]);return v.jsx(va.Provider,{value:b,children:v.jsx(ha,{delayDuration:0,children:v.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":id,"--sidebar-width-icon":cd,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",n),...i,children:a})})})}function dd({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a}){const{isMobile:i,state:c,openMobile:l,setOpenMobile:s}=nt();return r==="none"?v.jsx("div",{"data-slot":"sidebar",className:N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),...a,children:o}):i?v.jsx(tl,{open:l,onOpenChange:s,...a,children:v.jsxs(ol,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":sd},side:e,children:[v.jsxs(al,{className:"sr-only",children:[v.jsx(il,{children:"Sidebar"}),v.jsx(sl,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):v.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[v.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),v.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...a,children:v.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function fd({className:e,onClick:t,...r}){const{toggleSidebar:n}=nt();return v.jsxs(gn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:N("size-7",e),onClick:o=>{t?.(o),n()},...r,children:[v.jsx(ls,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function md({className:e,...t}){const{toggleSidebar:r}=nt();return v.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function pd({className:e,...t}){return v.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function gd({className:e,...t}){return v.jsx(Pn,{"data-slot":"sidebar-input","data-sidebar":"input",className:N("bg-background h-8 w-full shadow-none",e),...t})}function hd({className:e,...t}){return v.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t})}function vd({className:e,...t}){return v.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t})}function bd({className:e,...t}){return v.jsx(_s,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t})}function yd({className:e,...t}){return v.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function xd({className:e,...t}){return v.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t})}function wd({className:e,asChild:t=!1,...r}){const n=t?we:"div";return v.jsx(n,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})}function Sd({className:e,asChild:t=!1,...r}){const n=t?we:"button";return v.jsx(n,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})}function Ed({className:e,...t}){return v.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t})}function Cd({className:e,...t}){return v.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t})}function Od({className:e,...t}){return v.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t})}const _d=qt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ad({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i}){const c=e?we:"button",{isMobile:l,state:s}=nt(),m=v.jsx(c,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":n,"data-active":t,className:N(_d({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),v.jsxs(td,{children:[v.jsx(rd,{asChild:!0,children:m}),v.jsx(nd,{side:"right",align:"center",hidden:s!=="collapsed"||l,...o})]})):m}function Rd({className:e,asChild:t=!1,showOnHover:r=!1,...n}){const o=t?we:"button";return v.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...n})}function kd({className:e,...t}){return v.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Td({className:e,showIcon:t=!1,...r}){const n=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&v.jsx(_o,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(_o,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})}function Pd({className:e,...t}){return v.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Nd({className:e,...t}){return v.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t})}function Dd({asChild:e=!1,size:t="md",isActive:r=!1,className:n,...o}){const a=e?we:"a";return v.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...o})}P.Avatar=Ai,P.Badge=Ri,P.Button=gn,P.Card=ki,P.CardAction=Di,P.CardContent=Mi,P.CardDescription=Ni,P.CardFooter=Li,P.CardHeader=Ti,P.CardTitle=Pi,P.Form=Zi,P.FormControl=ts,P.FormDescription=rs,P.FormField=Ji,P.FormItem=Qi,P.FormLabel=es,P.FormMessage=ns,P.Input=Pn,P.Label=Rn,P.Sidebar=dd,P.SidebarContent=yd,P.SidebarFooter=vd,P.SidebarGroup=xd,P.SidebarGroupAction=Sd,P.SidebarGroupContent=Ed,P.SidebarGroupLabel=wd,P.SidebarHeader=hd,P.SidebarInput=gd,P.SidebarInset=pd,P.SidebarMenu=Cd,P.SidebarMenuAction=Rd,P.SidebarMenuBadge=kd,P.SidebarMenuButton=Ad,P.SidebarMenuItem=Od,P.SidebarMenuSkeleton=Td,P.SidebarMenuSub=Pd,P.SidebarMenuSubButton=Dd,P.SidebarMenuSubItem=Nd,P.SidebarProvider=ud,P.SidebarRail=md,P.SidebarSeparator=bd,P.SidebarTrigger=fd,P.badgeVariants=mn,P.buttonVariants=pn,P.cn=N,P.useFormField=Ze,P.useSidebar=nt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|
|
54
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},zp="DialogDescriptionWarning",Vp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fs(zp).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Bp=_s,Gp=As,Wp=Ms,Up=Ts,Hp=ks,Kp=Ds,Yp=js;function Xp({...e}){return m.jsx(Bp,{"data-slot":"sheet",...e})}function qp({...e}){return m.jsx(Gp,{"data-slot":"sheet-portal",...e})}function Zp({className:e,...t}){return m.jsx(Wp,{"data-slot":"sheet-overlay",className:N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Jp({className:e,children:t,side:n="right",...r}){return m.jsxs(qp,{children:[m.jsx(Zp,{}),m.jsxs(Up,{"data-slot":"sheet-content",className:N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(Yp,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx(ep,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qp({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:N("flex flex-col gap-1.5 p-4",e),...t})}function em({className:e,...t}){return m.jsx(Hp,{"data-slot":"sheet-title",className:N("text-foreground font-semibold",e),...t})}function tm({className:e,...t}){return m.jsx(Kp,{"data-slot":"sheet-description",className:N("text-muted-foreground text-sm",e),...t})}function $s({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:N("bg-accent animate-pulse rounded-md",e),...t})}var nm=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"}),rm="VisuallyHidden",zs=f.forwardRef((e,t)=>m.jsx(Z.span,{...e,ref:t,style:{...nm,...e.style}}));zs.displayName=rm;var om=zs,[nn,gg]=Oe("Tooltip",[$t]),rn=$t(),Vs="TooltipProvider",am=700,ir="tooltip.open",[sm,cr]=nn(Vs),Bs=e=>{const{__scopeTooltip:t,delayDuration:n=am,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=f.useRef(!0),i=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(sm,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:f.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};Bs.displayName=Vs;var bt="Tooltip",[im,yt]=nn(bt),Gs=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=cr(bt,e.__scopeTooltip),c=rn(t),[p,u]=f.useState(null),d=Ce(),g=f.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=f.useRef(!1),[y,w]=st({prop:r,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(ir))):l.onClose(),a?.(O)},caller:bt}),E=f.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),x=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),M=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,w(!0),g.current=0},h)},[h,w]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($n,{...c,children:m.jsx(im,{scope:t,contentId:d,open:y,stateAttribute:E,trigger:p,onTriggerChange:u,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?M():x()},[l.isOpenDelayedRef,M,x]),onTriggerLeave:f.useCallback(()=>{v?C():(window.clearTimeout(g.current),g.current=0)},[C,v]),onOpen:x,onClose:C,disableHoverableContent:v,children:n})})};Gs.displayName=bt;var lr="TooltipTrigger",Ws=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yt(lr,n),a=cr(lr,n),s=rn(n),i=f.useRef(null),l=ee(t,i,o.onTriggerChange),c=f.useRef(!1),p=f.useRef(!1),u=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(aa,{asChild:!0,...s,children:m.jsx(Z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,d=>{d.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Ws.displayName=lr;var ur="TooltipPortal",[cm,lm]=nn(ur,{forceMount:void 0}),Us=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=yt(ur,t);return m.jsx(cm,{scope:t,forceMount:n,children:m.jsx(xe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Us.displayName=ur;var Je="TooltipContent",Hs=f.forwardRef((e,t)=>{const n=lm(Je,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=yt(Je,e.__scopeTooltip);return m.jsx(xe,{present:r||s.open,children:s.disableHoverableContent?m.jsx(Ks,{side:o,...a,ref:t}):m.jsx(um,{side:o,...a,ref:t})})}),um=f.forwardRef((e,t)=>{const n=yt(Je,e.__scopeTooltip),r=cr(Je,e.__scopeTooltip),o=f.useRef(null),a=ee(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,d=f.useCallback(()=>{i(null),u(!1)},[u]),g=f.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},w=mm(y,b.getBoundingClientRect()),E=gm(y,w),x=hm(h.getBoundingClientRect()),C=bm([...E,...x]);i(C),u(!0)},[u]);return f.useEffect(()=>()=>d(),[d]),f.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,d]),f.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},w=l?.contains(b)||p?.contains(b),E=!vm(y,s);w?d():E&&(d(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,d]),m.jsx(Ks,{...e,ref:a})}),[dm,fm]=nn(bt,{isInside:!1}),pm=ui("TooltipContent"),Ks=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(Je,n),c=rn(n),{onClose:p}=l;return f.useEffect(()=>(document.addEventListener(ir,p),()=>document.removeEventListener(ir,p)),[p]),f.useEffect(()=>{if(l.trigger){const u=d=>{d.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(sa,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(pm,{children:r}),m.jsx(dm,{scope:n,isInside:!0,children:m.jsx(om,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Hs.displayName=Je;var Ys="TooltipArrow",Xs=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=rn(n);return fm(Ys,n).isInside?null:m.jsx(ia,{...o,...r,ref:t})});Xs.displayName=Ys;function mm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gm(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hm(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function vm(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,d=l.y;p>r!=d>r&&n<(u-c)*(r-p)/(d-p)+c&&(o=!o)}return o}function bm(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ym(t)}function ym(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xm=Bs,wm=Gs,Sm=Ws,Em=Us,Cm=Hs,_m=Xs;function qs({delayDuration:e=0,...t}){return m.jsx(xm,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Rm({...e}){return m.jsx(qs,{children:m.jsx(wm,{"data-slot":"tooltip",...e})})}function Om({...e}){return m.jsx(Sm,{"data-slot":"tooltip-trigger",...e})}function Am({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Em,{children:m.jsxs(Cm,{"data-slot":"tooltip-content",sideOffset:t,className:N("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(_m,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Mm="sidebar_state",Tm=3600*24*7,Pm="16rem",km="18rem",Nm="3rem",Dm="b",Zs=f.createContext(null);function xt(){const e=f.useContext(Zs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Im({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=hp(),[l,c]=f.useState(!1),[p,u]=f.useState(e),d=t??p,g=f.useCallback(y=>{const w=typeof y=="function"?y(d):y;n?n(w):u(w),document.cookie=`${Mm}=${w}; path=/; max-age=${Tm}`},[n,d]),v=f.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);f.useEffect(()=>{const y=w=>{w.key===Dm&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=d?"expanded":"collapsed",b=f.useMemo(()=>({state:h,open:d,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,d,g,i,l,c,v]);return m.jsx(Zs.Provider,{value:b,children:m.jsx(qs,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Pm,"--sidebar-width-icon":Nm,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function jm({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?m.jsx(Xp,{open:l,onOpenChange:c,...a,children:m.jsxs(Jp,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":km},side:e,children:[m.jsxs(Qp,{className:"sr-only",children:[m.jsx(em,{children:"Sidebar"}),m.jsx(tm,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function Lm({className:e,onClick:t,...n}){const{toggleSidebar:r}=xt();return m.jsxs(qr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:N("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[m.jsx(Qf,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Fm({className:e,...t}){const{toggleSidebar:n}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function $m({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function zm({className:e,...t}){return m.jsx(po,{"data-slot":"sidebar-input","data-sidebar":"input",className:N("bg-background h-8 w-full shadow-none",e),...t})}function Vm({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t})}function Bm({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t})}function Gm({className:e,...t}){return m.jsx(Pp,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t})}function Wm({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Um({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Hm({className:e,asChild:t=!1,...n}){const r=t?Ae:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function Km({className:e,asChild:t=!1,...n}){const r=t?Ae:"button";return m.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function Ym({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t})}function Xm({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t})}function qm({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t})}const Zm=hn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Jm({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?Ae:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(Zm({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Rm,{children:[m.jsx(Om,{asChild:!0,children:p}),m.jsx(Am,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function Qm({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Ae:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function eg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function tg({className:e,showIcon:t=!1,...n}){const r=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&m.jsx($s,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx($s,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function ng({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function rg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t})}function og({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Ae:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}A.Avatar=sc,A.AvatarFallback=cc,A.AvatarImage=ic,A.Badge=lc,A.Button=qr,A.Card=uc,A.CardAction=mc,A.CardContent=gc,A.CardDescription=pc,A.CardFooter=hc,A.CardHeader=dc,A.CardTitle=fc,A.DropdownMenu=tp,A.DropdownMenuCheckboxItem=ip,A.DropdownMenuContent=op,A.DropdownMenuGroup=ap,A.DropdownMenuItem=sp,A.DropdownMenuLabel=up,A.DropdownMenuPortal=np,A.DropdownMenuRadioGroup=cp,A.DropdownMenuRadioItem=lp,A.DropdownMenuSeparator=dp,A.DropdownMenuShortcut=fp,A.DropdownMenuSub=pp,A.DropdownMenuSubContent=gp,A.DropdownMenuSubTrigger=mp,A.DropdownMenuTrigger=rp,A.Form=kc,A.FormControl=jc,A.FormDescription=Lc,A.FormField=Nc,A.FormItem=Dc,A.FormLabel=Ic,A.FormMessage=Fc,A.Input=po,A.Label=lo,A.Sidebar=jm,A.SidebarContent=Wm,A.SidebarFooter=Bm,A.SidebarGroup=Um,A.SidebarGroupAction=Km,A.SidebarGroupContent=Ym,A.SidebarGroupLabel=Hm,A.SidebarHeader=Vm,A.SidebarInput=zm,A.SidebarInset=$m,A.SidebarMenu=Xm,A.SidebarMenuAction=Qm,A.SidebarMenuBadge=eg,A.SidebarMenuButton=Jm,A.SidebarMenuItem=qm,A.SidebarMenuSkeleton=tg,A.SidebarMenuSub=ng,A.SidebarMenuSubButton=og,A.SidebarMenuSubItem=rg,A.SidebarProvider=Im,A.SidebarRail=Fm,A.SidebarSeparator=Gm,A.SidebarTrigger=Lm,A.badgeVariants=Yr,A.buttonVariants=Xr,A.cn=N,A.useFormField=at,A.useSidebar=xt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|