@golocalinteractive/golocal-cloud-wrapper 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/components/app-sidebar.d.ts.map +1 -1
- package/dist/components/ui/collapsible-section.d.ts.map +1 -1
- package/dist/golocal-cloud-wrapper.css +1 -1
- package/dist/golocal-cloud-wrapper.es.js +1096 -1005
- package/dist/golocal-cloud-wrapper.umd.js +24 -24
- package/dist/hooks/use-active-route.d.ts +5 -0
- package/dist/hooks/use-active-route.d.ts.map +1 -0
- package/dist/hooks/use-active-route.test.d.ts +2 -0
- package/dist/hooks/use-active-route.test.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Fe,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],k):(Fe=typeof globalThis<"u"?globalThis:Fe||self,k(Fe.GoLocalCloudWrapper={},Fe.React,Fe.ReactDOM))})(this,function(Fe,k,
|
|
1
|
+
(function(Fe,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],k):(Fe=typeof globalThis<"u"?globalThis:Fe||self,k(Fe.GoLocalCloudWrapper={},Fe.React,Fe.ReactDOM))})(this,function(Fe,k,Mr){"use strict";function Or(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=Or(k),Tr=Or(Mr);var Mt={exports:{}},mt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Pr;function ci(){if(Pr)return mt;Pr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return mt.Fragment=t,mt.jsx=n,mt.jsxs=n,mt}var ht={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Nr;function li(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===D?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case h:return"Fragment";case v:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case M:return"SuspenseList";case I:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case b:return"Portal";case E:return(w.displayName||"Context")+".Provider";case y:return(w._context.displayName||"Context")+".Consumer";case S:var N=w.render;return w=w.displayName,w||(w=N.displayName||N.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case A:return N=w.displayName||null,N!==null?N:e(w.type)||"Memo";case C:N=w._payload,w=w._init;try{return e(w(N))}catch{}}return null}function t(w){return""+w}function n(w){try{t(w);var N=!1}catch{N=!0}if(N){N=console;var j=N.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return j.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(w)}}function r(w){if(w===h)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===C)return"<...>";try{var N=e(w);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function o(){var w=G.A;return w===null?null:w.getOwner()}function s(){return Error("react-stack-top-frame")}function a(w){if(z.call(w,"key")){var N=Object.getOwnPropertyDescriptor(w,"key").get;if(N&&N.isReactWarning)return!1}return w.key!==void 0}function i(w,N){function j(){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)",N))}j.isReactWarning=!0,Object.defineProperty(w,"key",{get:j,configurable:!0})}function c(){var w=e(this.type);return F[w]||(F[w]=!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.")),w=this.props.ref,w!==void 0?w:null}function f(w,N,j,$,X,te,le,K){return j=te.ref,w={$$typeof:g,type:w,key:N,props:te,_owner:X},(j!==void 0?j:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:c}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function u(w,N,j,$,X,te,le,K){var Q=N.children;if(Q!==void 0)if($)if(V(Q)){for($=0;$<Q.length;$++)d(Q[$]);Object.freeze&&Object.freeze(Q)}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(Q);if(z.call(N,"key")){Q=e(w);var ee=Object.keys(N).filter(function(Ee){return Ee!=="key"});$=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",O[Q+$]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,$,Q,ee,Q),O[Q+$]=!0)}if(Q=null,j!==void 0&&(n(j),Q=""+j),a(N)&&(n(N.key),Q=""+N.key),"key"in N){j={};for(var se in N)se!=="key"&&(j[se]=N[se])}else j=N;return Q&&i(j,typeof w=="function"?w.displayName||w.name||"Unknown":w),f(w,Q,te,X,o(),j,le,K)}function d(w){typeof w=="object"&&w!==null&&w.$$typeof===g&&w._store&&(w._store.validated=1)}var m=k,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),G=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,V=Array.isArray,H=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(w){return w()}};var q,F={},U=m["react-stack-bottom-frame"].bind(m,s)(),R=H(r(s)),O={};
|
|
22
|
+
<%s key={someKey} {...props} />`,$,Q,ee,Q),O[Q+$]=!0)}if(Q=null,j!==void 0&&(n(j),Q=""+j),a(N)&&(n(N.key),Q=""+N.key),"key"in N){j={};for(var se in N)se!=="key"&&(j[se]=N[se])}else j=N;return Q&&i(j,typeof w=="function"?w.displayName||w.name||"Unknown":w),f(w,Q,te,X,o(),j,le,K)}function d(w){typeof w=="object"&&w!==null&&w.$$typeof===g&&w._store&&(w._store.validated=1)}var m=k,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),G=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,V=Array.isArray,H=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(w){return w()}};var q,F={},U=m["react-stack-bottom-frame"].bind(m,s)(),R=H(r(s)),O={};ht.Fragment=h,ht.jsx=function(w,N,j,$,X){var te=1e4>G.recentlyCreatedOwnerStacks++;return u(w,N,j,!1,$,X,te?Error("react-stack-top-frame"):U,te?H(r(w)):R)},ht.jsxs=function(w,N,j,$,X){var te=1e4>G.recentlyCreatedOwnerStacks++;return u(w,N,j,!0,$,X,te?Error("react-stack-top-frame"):U,te?H(r(w)):R)}}()),ht}var kr;function ui(){return kr||(kr=1,process.env.NODE_ENV==="production"?Mt.exports=ci():Mt.exports=li()),Mt.exports}var p=ui(),Ot={exports:{}},fn={};/**
|
|
23
23
|
* @license React
|
|
24
24
|
* use-sync-external-store-shim.production.js
|
|
25
25
|
*
|
|
@@ -27,7 +27,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var
|
|
30
|
+
*/var Ir;function di(){if(Ir)return fn;Ir=1;var e=k;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(d,m){var g=m(),b=r({inst:{value:g,getSnapshot:m}}),h=b[0].inst,x=b[1];return s(function(){h.value=g,h.getSnapshot=m,c(h)&&x({inst:h})},[d,g,m]),o(function(){return c(h)&&x({inst:h}),d(function(){c(h)&&x({inst:h})})},[d]),a(g),g}function c(d){var m=d.getSnapshot;d=d.value;try{var g=m();return!n(d,g)}catch{return!0}}function f(d,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:i;return fn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,fn}var pn={};/**
|
|
31
31
|
* @license React
|
|
32
32
|
* use-sync-external-store-shim.development.js
|
|
33
33
|
*
|
|
@@ -35,32 +35,32 @@ React keys must be passed directly to JSX without using spread:
|
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var Ir;function di(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){u||o.startTransition===void 0||(u=!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=b();if(!d){var x=b();s(h,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=a({inst:{value:h,getSnapshot:b}});var v=x[0].inst,y=x[1];return c(function(){v.value=h,v.getSnapshot=b,n(v)&&y({inst:v})},[g,h,b]),i(function(){return n(v)&&y({inst:v}),g(function(){n(v)&&y({inst:v})})},[g]),f(h),h}function n(g){var b=g.getSnapshot;g=g.value;try{var h=b();return!s(g,h)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=k,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,c=o.useLayoutEffect,f=o.useDebugValue,u=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;fn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),fn}var Dr;function fi(){return Dr||(Dr=1,process.env.NODE_ENV==="production"?Mt.exports=ui():Mt.exports=di()),Mt.exports}var pi=fi();const jr=0,Lr=1,Fr=2,$r=3;var Vr=Object.prototype.hasOwnProperty;function pn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&pn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Vr.call(e,n)&&++r&&!Vr.call(t,n)||!(n in t)||!pn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Oe=new WeakMap,$e=()=>{},ue=$e(),Ot=Object,Y=e=>e===ue,be=e=>typeof e=="function",Te=(e,t)=>({...e,...t}),Hr=e=>be(e.then),mn={},Tt={},hn="undefined",ht=typeof window!=hn,gn=typeof document!=hn,mi=ht&&"Deno"in window,hi=()=>ht&&typeof window.requestAnimationFrame!=hn,Wr=(e,t)=>{const n=Oe.get(e);return[()=>!Y(t)&&e.get(t)||mn,r=>{if(!Y(t)){const o=e.get(t);t in Tt||(Tt[t]=o),n[5](t,Te(o,r),o||mn)}},n[6],()=>!Y(t)&&t in Tt?Tt[t]:!Y(t)&&e.get(t)||mn]};let vn=!0;const gi=()=>vn,[bn,xn]=ht&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[$e,$e],vi=()=>{const e=gn&&document.visibilityState;return Y(e)||e!=="hidden"},bi=e=>(gn&&document.addEventListener("visibilitychange",e),bn("focus",e),()=>{gn&&document.removeEventListener("visibilitychange",e),xn("focus",e)}),xi=e=>{const t=()=>{vn=!0,e()},n=()=>{vn=!1};return bn("online",t),bn("offline",n),()=>{xn("online",t),xn("offline",n)}},wi={isOnline:gi,isVisible:vi},yi={initFocus:bi,initReconnect:xi},zr=!k.useId,gt=!ht||mi,Ci=e=>hi()?window.requestAnimationFrame(e):setTimeout(e,1),Pt=gt?k.useEffect:k.useLayoutEffect,wn=typeof navigator<"u"&&navigator.connection,Br=!gt&&wn&&(["slow-2g","2g"].includes(wn.effectiveType)||wn.saveData),Nt=new WeakMap,yn=(e,t)=>Ot.prototype.toString.call(e)===`[object ${t}]`;let Ei=0;const Cn=e=>{const t=typeof e,n=yn(e,"Date"),r=yn(e,"RegExp"),o=yn(e,"Object");let s,a;if(Ot(e)===e&&!n&&!r){if(s=Nt.get(e),s)return s;if(s=++Ei+"~",Nt.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=Cn(e[a])+",";Nt.set(e,s)}if(o){s="#";const i=Ot.keys(e).sort();for(;!Y(a=i.pop());)Y(e[a])||(s+=a+":"+Cn(e[a])+",");Nt.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},En=e=>{if(be(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Cn(e):"",[e,t]};let Si=0;const Sn=()=>++Si;async function Gr(...e){const[t,n,r,o]=e,s=Te({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=s.populateCache;const i=s.rollbackOnError;let c=s.optimisticData;const f=m=>typeof i=="function"?i(m):i!==!1,u=s.throwOnError;if(be(n)){const m=n,g=[],b=t.keys();for(const h of b)!/^\$(inf|sub)\$/.test(h)&&m(t.get(h)._k)&&g.push(h);return Promise.all(g.map(d))}return d(n);async function d(m){const[g]=En(m);if(!g)return;const[b,h]=Wr(t,g),[x,v,y,E]=Oe.get(t),S=()=>{const V=x[g];return(be(s.revalidate)?s.revalidate(b().data,m):s.revalidate!==!1)&&(delete y[g],delete E[g],V&&V[0])?V[0](Fr).then(()=>b().data):b().data};if(e.length<3)return S();let _=r,M;const A=Sn();v[g]=[A,0];const C=!Y(c),I=b(),D=I.data,G=I._c,z=Y(G)?D:G;if(C&&(c=be(c)?c(z,D):c,h({data:c,_c:z})),be(_))try{_=_(z)}catch(V){M=V}if(_&&Hr(_))if(_=await _.catch(V=>{M=V}),A!==v[g][0]){if(M)throw M;return _}else M&&C&&f(M)&&(a=!0,h({data:z,_c:ue}));if(a&&!M)if(be(a)){const V=a(_,z);h({data:V,error:ue,_c:ue})}else h({data:_,error:ue,_c:ue});if(v[g][1]=Sn(),Promise.resolve(S()).then(()=>{h({_c:ue})}),M){if(u)throw M;return}return _}}const Ur=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Kr=(e,t)=>{if(!Oe.has(e)){const n=Te(yi,t),r=Object.create(null),o=Gr.bind(ue,e);let s=$e;const a=Object.create(null),i=(u,d)=>{const m=a[u]||[];return a[u]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},c=(u,d,m)=>{e.set(u,d);const g=a[u];if(g)for(const b of g)b(d,m)},f=()=>{if(!Oe.has(e)&&(Oe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,i]),!gt)){const u=n.initFocus(setTimeout.bind(ue,Ur.bind(ue,r,jr))),d=n.initReconnect(setTimeout.bind(ue,Ur.bind(ue,r,Lr)));s=()=>{u&&u(),d&&d(),Oe.delete(e)}}};return f(),[e,o,f,s]}return[e,Oe.get(e)[4]]},Ri=(e,t,n,r,o)=>{const s=n.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Y(s)&&a>s||setTimeout(r,i,o)},_i=pn,[Rn,Ai]=Kr(new Map),Yr=Te({onLoadingSlow:$e,onSuccess:$e,onError:$e,onErrorRetry:Ri,onDiscarded:$e,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Br?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Br?5e3:3e3,compare:_i,isPaused:()=>!1,cache:Rn,mutate:Ai,fallback:{}},wi),qr=(e,t)=>{const n=Te(e,t);if(t){const{use:r,fallback:o}=e,{use:s,fallback:a}=t;r&&s&&(n.use=r.concat(s)),o&&a&&(n.fallback=Te(o,a))}return n},_n=k.createContext({}),Mi=e=>{const{value:t}=e,n=k.useContext(_n),r=be(t),o=k.useMemo(()=>r?t(n):t,[r,n,t]),s=k.useMemo(()=>r?o:qr(n,o),[r,n,o]),a=o&&o.provider,i=k.useRef(ue);a&&!i.current&&(i.current=Kr(a(s.cache||Rn),o));const c=i.current;return c&&(s.cache=c[0],s.mutate=c[1]),Pt(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k.createElement(_n.Provider,Te(e,{value:s}))},Oi="$inf$",Xr=ht&&window.__SWR_DEVTOOLS_USE__,Ti=Xr?window.__SWR_DEVTOOLS_USE__:[],Pi=()=>{Xr&&(window.__SWR_DEVTOOLS_REACT__=k)},Ni=e=>be(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ki=()=>Te(Yr,k.useContext(_n)),Ii=e=>(t,n,r)=>e(t,n&&((...s)=>{const[a]=En(t),[,,,i]=Oe.get(Rn);if(a.startsWith(Oi))return n(...s);const c=i[a];return Y(c)?n(...s):(delete i[a],c)}),r),Di=Ti.concat(Ii),ji=e=>function(...n){const r=ki(),[o,s,a]=Ni(n),i=qr(r,a);let c=e;const{use:f}=i,u=(f||[]).concat(Di);for(let d=u.length;d--;)c=u[d](c);return c(o,s||i.fetcher||null,i)},Li=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Pi();const An=k.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Mn={dedupe:!0},Fi=(e,t,n)=>{const{cache:r,compare:o,suspense:s,fallbackData:a,revalidateOnMount:i,revalidateIfStale:c,refreshInterval:f,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:m}=n,[g,b,h,x]=Oe.get(r),[v,y]=En(e),E=k.useRef(!1),S=k.useRef(!1),_=k.useRef(v),M=k.useRef(t),A=k.useRef(n),C=()=>A.current,I=()=>C().isVisible()&&C().isOnline(),[D,G,z,V]=Wr(r,v),H=k.useRef({}).current,q=Y(a)?Y(n.fallback)?ue:n.fallback[v]:a,F=(Z,J)=>{for(const ce in H){const re=ce;if(re==="data"){if(!o(Z[re],J[re])&&(!Y(Z[re])||!o(te,J[re])))return!1}else if(J[re]!==Z[re])return!1}return!0},U=k.useMemo(()=>{const Z=!v||!t?!1:Y(i)?C().isPaused()||s?!1:c!==!1:i,J=fe=>{const je=Te(fe);return delete je._k,Z?{isValidating:!0,isLoading:!0,...je}:je},ce=D(),re=V(),he=J(ce),Ue=ce===re?he:J(re);let oe=he;return[()=>{const fe=J(D());return F(fe,oe)?(oe.data=fe.data,oe.isLoading=fe.isLoading,oe.isValidating=fe.isValidating,oe.error=fe.error,oe):(oe=fe,fe)},()=>Ue]},[r,v]),R=pi.useSyncExternalStore(k.useCallback(Z=>z(v,(J,ce)=>{F(ce,J)||Z()}),[r,v]),U[0],U[1]),O=!E.current,w=g[v]&&g[v].length>0,N=R.data,j=Y(N)?q&&Hr(q)?An(q):q:N,$=R.error,X=k.useRef(j),te=m?Y(N)?Y(X.current)?j:X.current:N:j,le=w&&!Y($)?!1:O&&!Y(i)?i:C().isPaused()?!1:s?Y(j)?!1:c:Y(j)||c,K=!!(v&&t&&O&&le),Q=Y(R.isValidating)?K:R.isValidating,ee=Y(R.isLoading)?K:R.isLoading,se=k.useCallback(async Z=>{const J=M.current;if(!v||!J||S.current||C().isPaused())return!1;let ce,re,he=!0;const Ue=Z||{},oe=!h[v]||!Ue.dedupe,fe=()=>zr?!S.current&&v===_.current&&E.current:v===_.current,je={isValidating:!1,isLoading:!1},oi=()=>{G(je)},si=()=>{const ve=h[v];ve&&ve[1]===re&&delete h[v]},ai={isValidating:!0};Y(D().data)&&(ai.isLoading=!0);try{if(oe&&(G(ai),n.loadingTimeout&&Y(D().data)&&setTimeout(()=>{he&&fe()&&C().onLoadingSlow(v,n)},n.loadingTimeout),h[v]=[J(y),Sn()]),[ce,re]=h[v],ce=await ce,oe&&setTimeout(si,n.dedupingInterval),!h[v]||h[v][1]!==re)return oe&&fe()&&C().onDiscarded(v),!1;je.error=ue;const ve=b[v];if(!Y(ve)&&(re<=ve[0]||re<=ve[1]||ve[1]===0))return oi(),oe&&fe()&&C().onDiscarded(v),!1;const Le=D().data;je.data=o(Le,ce)?Le:ce,oe&&fe()&&C().onSuccess(ce,v,n)}catch(ve){si();const Le=C(),{shouldRetryOnError:Rr}=Le;Le.isPaused()||(je.error=ve,oe&&fe()&&(Le.onError(ve,v,Le),(Rr===!0||be(Rr)&&Rr(ve))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||I())&&Le.onErrorRetry(ve,v,Le,c0=>{const _r=g[v];_r&&_r[0]&&_r[0]($r,c0)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return he=!1,oi(),!0},[v,r]),Ee=k.useCallback((...Z)=>Gr(r,_.current,...Z),[]);if(Pt(()=>{M.current=t,A.current=n,Y(N)||(X.current=N)}),Pt(()=>{if(!v)return;const Z=se.bind(ue,Mn);let J=0;C().revalidateOnFocus&&(J=Date.now()+C().focusThrottleInterval);const re=Li(v,g,(he,Ue={})=>{if(he==jr){const oe=Date.now();C().revalidateOnFocus&&oe>J&&I()&&(J=oe+C().focusThrottleInterval,Z())}else if(he==Lr)C().revalidateOnReconnect&&I()&&Z();else{if(he==Fr)return se();if(he==$r)return se(Ue)}});return S.current=!1,_.current=v,E.current=!0,G({_k:y}),le&&(Y(j)||gt?Z():Ci(Z)),()=>{S.current=!0,re()}},[v]),Pt(()=>{let Z;function J(){const re=be(f)?f(D().data):f;re&&Z!==-1&&(Z=setTimeout(ce,re))}function ce(){!D().error&&(u||C().isVisible())&&(d||C().isOnline())?se(Mn).then(J):J()}return J(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[f,u,d,v]),k.useDebugValue(te),s&&Y(j)&&v){if(!zr&>)throw new Error("Fallback data is required when using Suspense in SSR.");M.current=t,A.current=n,S.current=!1;const Z=x[v];if(!Y(Z)){const J=Ee(Z);An(J)}if(Y($)){const J=se(Mn);Y(te)||(J.status="fulfilled",J.value=!0),An(J)}else throw $}return{mutate:Ee,get data(){return H.data=!0,te},get error(){return H.error=!0,$},get isValidating(){return H.isValidating=!0,Q},get isLoading(){return H.isLoading=!0,ee}}},$i=Ot.defineProperty(Mi,"defaultValue",{value:Yr}),Vi=ji(Fi);function Hi(e){return e&&!e.startsWith("/")?`/${e}`:e}function Wi(e){return e&&!e.endsWith("/")?`${e}/`:e}function zi(e){return e.startsWith("/")?e.substring(1,e.length):e}const Bi=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=Hi(t);return Wi(n)+zi(e)};function Gi(){const{data:e,error:t,isLoading:n,mutate:r}=Vi(Bi(process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"),(...o)=>fetch(...o).then(s=>{if(!s.ok)throw new Error("Unauthorized");return s.status===204?null:s.json()}));return t?{user:null,isLoading:!1,error:t,invalidate:()=>r()}:e?{user:e,isLoading:!1,error:null,invalidate:()=>r()}:{user:e,isLoading:n,error:t,invalidate:()=>r()}}var Zr;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_REFRESH_TOKEN="failed_to_refresh_token"})(Zr||(Zr={}));var Jr;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_EXCHANGE="failed_to_exchange_refresh_token"})(Jr||(Jr={}));function Ui({user:e,children:t}){return k.createElement($i,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}/**
|
|
38
|
+
*/var Dr;function fi(){return Dr||(Dr=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){u||o.startTransition===void 0||(u=!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=b();if(!d){var x=b();s(h,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=a({inst:{value:h,getSnapshot:b}});var v=x[0].inst,y=x[1];return c(function(){v.value=h,v.getSnapshot=b,n(v)&&y({inst:v})},[g,h,b]),i(function(){return n(v)&&y({inst:v}),g(function(){n(v)&&y({inst:v})})},[g]),f(h),h}function n(g){var b=g.getSnapshot;g=g.value;try{var h=b();return!s(g,h)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=k,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,c=o.useLayoutEffect,f=o.useDebugValue,u=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;pn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),pn}var jr;function pi(){return jr||(jr=1,process.env.NODE_ENV==="production"?Ot.exports=di():Ot.exports=fi()),Ot.exports}var mi=pi();const Lr=0,Fr=1,$r=2,Vr=3;var Hr=Object.prototype.hasOwnProperty;function mn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&mn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Hr.call(e,n)&&++r&&!Hr.call(t,n)||!(n in t)||!mn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Oe=new WeakMap,$e=()=>{},ue=$e(),Tt=Object,Y=e=>e===ue,be=e=>typeof e=="function",Te=(e,t)=>({...e,...t}),Wr=e=>be(e.then),hn={},Pt={},gn="undefined",gt=typeof window!=gn,vn=typeof document!=gn,hi=gt&&"Deno"in window,gi=()=>gt&&typeof window.requestAnimationFrame!=gn,zr=(e,t)=>{const n=Oe.get(e);return[()=>!Y(t)&&e.get(t)||hn,r=>{if(!Y(t)){const o=e.get(t);t in Pt||(Pt[t]=o),n[5](t,Te(o,r),o||hn)}},n[6],()=>!Y(t)&&t in Pt?Pt[t]:!Y(t)&&e.get(t)||hn]};let bn=!0;const vi=()=>bn,[xn,wn]=gt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[$e,$e],bi=()=>{const e=vn&&document.visibilityState;return Y(e)||e!=="hidden"},xi=e=>(vn&&document.addEventListener("visibilitychange",e),xn("focus",e),()=>{vn&&document.removeEventListener("visibilitychange",e),wn("focus",e)}),wi=e=>{const t=()=>{bn=!0,e()},n=()=>{bn=!1};return xn("online",t),xn("offline",n),()=>{wn("online",t),wn("offline",n)}},yi={isOnline:vi,isVisible:bi},Ci={initFocus:xi,initReconnect:wi},Br=!k.useId,vt=!gt||hi,Ei=e=>gi()?window.requestAnimationFrame(e):setTimeout(e,1),Nt=vt?k.useEffect:k.useLayoutEffect,yn=typeof navigator<"u"&&navigator.connection,Gr=!vt&&yn&&(["slow-2g","2g"].includes(yn.effectiveType)||yn.saveData),kt=new WeakMap,Cn=(e,t)=>Tt.prototype.toString.call(e)===`[object ${t}]`;let Si=0;const En=e=>{const t=typeof e,n=Cn(e,"Date"),r=Cn(e,"RegExp"),o=Cn(e,"Object");let s,a;if(Tt(e)===e&&!n&&!r){if(s=kt.get(e),s)return s;if(s=++Si+"~",kt.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=En(e[a])+",";kt.set(e,s)}if(o){s="#";const i=Tt.keys(e).sort();for(;!Y(a=i.pop());)Y(e[a])||(s+=a+":"+En(e[a])+",");kt.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},Sn=e=>{if(be(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?En(e):"",[e,t]};let Ri=0;const Rn=()=>++Ri;async function Ur(...e){const[t,n,r,o]=e,s=Te({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=s.populateCache;const i=s.rollbackOnError;let c=s.optimisticData;const f=m=>typeof i=="function"?i(m):i!==!1,u=s.throwOnError;if(be(n)){const m=n,g=[],b=t.keys();for(const h of b)!/^\$(inf|sub)\$/.test(h)&&m(t.get(h)._k)&&g.push(h);return Promise.all(g.map(d))}return d(n);async function d(m){const[g]=Sn(m);if(!g)return;const[b,h]=zr(t,g),[x,v,y,E]=Oe.get(t),S=()=>{const V=x[g];return(be(s.revalidate)?s.revalidate(b().data,m):s.revalidate!==!1)&&(delete y[g],delete E[g],V&&V[0])?V[0]($r).then(()=>b().data):b().data};if(e.length<3)return S();let _=r,M;const A=Rn();v[g]=[A,0];const C=!Y(c),I=b(),D=I.data,G=I._c,z=Y(G)?D:G;if(C&&(c=be(c)?c(z,D):c,h({data:c,_c:z})),be(_))try{_=_(z)}catch(V){M=V}if(_&&Wr(_))if(_=await _.catch(V=>{M=V}),A!==v[g][0]){if(M)throw M;return _}else M&&C&&f(M)&&(a=!0,h({data:z,_c:ue}));if(a&&!M)if(be(a)){const V=a(_,z);h({data:V,error:ue,_c:ue})}else h({data:_,error:ue,_c:ue});if(v[g][1]=Rn(),Promise.resolve(S()).then(()=>{h({_c:ue})}),M){if(u)throw M;return}return _}}const Kr=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Yr=(e,t)=>{if(!Oe.has(e)){const n=Te(Ci,t),r=Object.create(null),o=Ur.bind(ue,e);let s=$e;const a=Object.create(null),i=(u,d)=>{const m=a[u]||[];return a[u]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},c=(u,d,m)=>{e.set(u,d);const g=a[u];if(g)for(const b of g)b(d,m)},f=()=>{if(!Oe.has(e)&&(Oe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,i]),!vt)){const u=n.initFocus(setTimeout.bind(ue,Kr.bind(ue,r,Lr))),d=n.initReconnect(setTimeout.bind(ue,Kr.bind(ue,r,Fr)));s=()=>{u&&u(),d&&d(),Oe.delete(e)}}};return f(),[e,o,f,s]}return[e,Oe.get(e)[4]]},_i=(e,t,n,r,o)=>{const s=n.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Y(s)&&a>s||setTimeout(r,i,o)},Ai=mn,[_n,Mi]=Yr(new Map),qr=Te({onLoadingSlow:$e,onSuccess:$e,onError:$e,onErrorRetry:_i,onDiscarded:$e,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Gr?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Gr?5e3:3e3,compare:Ai,isPaused:()=>!1,cache:_n,mutate:Mi,fallback:{}},yi),Xr=(e,t)=>{const n=Te(e,t);if(t){const{use:r,fallback:o}=e,{use:s,fallback:a}=t;r&&s&&(n.use=r.concat(s)),o&&a&&(n.fallback=Te(o,a))}return n},An=k.createContext({}),Oi=e=>{const{value:t}=e,n=k.useContext(An),r=be(t),o=k.useMemo(()=>r?t(n):t,[r,n,t]),s=k.useMemo(()=>r?o:Xr(n,o),[r,n,o]),a=o&&o.provider,i=k.useRef(ue);a&&!i.current&&(i.current=Yr(a(s.cache||_n),o));const c=i.current;return c&&(s.cache=c[0],s.mutate=c[1]),Nt(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k.createElement(An.Provider,Te(e,{value:s}))},Ti="$inf$",Zr=gt&&window.__SWR_DEVTOOLS_USE__,Pi=Zr?window.__SWR_DEVTOOLS_USE__:[],Ni=()=>{Zr&&(window.__SWR_DEVTOOLS_REACT__=k)},ki=e=>be(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ii=()=>Te(qr,k.useContext(An)),Di=e=>(t,n,r)=>e(t,n&&((...s)=>{const[a]=Sn(t),[,,,i]=Oe.get(_n);if(a.startsWith(Ti))return n(...s);const c=i[a];return Y(c)?n(...s):(delete i[a],c)}),r),ji=Pi.concat(Di),Li=e=>function(...n){const r=Ii(),[o,s,a]=ki(n),i=Xr(r,a);let c=e;const{use:f}=i,u=(f||[]).concat(ji);for(let d=u.length;d--;)c=u[d](c);return c(o,s||i.fetcher||null,i)},Fi=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Ni();const Mn=k.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),On={dedupe:!0},$i=(e,t,n)=>{const{cache:r,compare:o,suspense:s,fallbackData:a,revalidateOnMount:i,revalidateIfStale:c,refreshInterval:f,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:m}=n,[g,b,h,x]=Oe.get(r),[v,y]=Sn(e),E=k.useRef(!1),S=k.useRef(!1),_=k.useRef(v),M=k.useRef(t),A=k.useRef(n),C=()=>A.current,I=()=>C().isVisible()&&C().isOnline(),[D,G,z,V]=zr(r,v),H=k.useRef({}).current,q=Y(a)?Y(n.fallback)?ue:n.fallback[v]:a,F=(Z,J)=>{for(const ce in H){const re=ce;if(re==="data"){if(!o(Z[re],J[re])&&(!Y(Z[re])||!o(te,J[re])))return!1}else if(J[re]!==Z[re])return!1}return!0},U=k.useMemo(()=>{const Z=!v||!t?!1:Y(i)?C().isPaused()||s?!1:c!==!1:i,J=fe=>{const je=Te(fe);return delete je._k,Z?{isValidating:!0,isLoading:!0,...je}:je},ce=D(),re=V(),he=J(ce),Ue=ce===re?he:J(re);let oe=he;return[()=>{const fe=J(D());return F(fe,oe)?(oe.data=fe.data,oe.isLoading=fe.isLoading,oe.isValidating=fe.isValidating,oe.error=fe.error,oe):(oe=fe,fe)},()=>Ue]},[r,v]),R=mi.useSyncExternalStore(k.useCallback(Z=>z(v,(J,ce)=>{F(ce,J)||Z()}),[r,v]),U[0],U[1]),O=!E.current,w=g[v]&&g[v].length>0,N=R.data,j=Y(N)?q&&Wr(q)?Mn(q):q:N,$=R.error,X=k.useRef(j),te=m?Y(N)?Y(X.current)?j:X.current:N:j,le=w&&!Y($)?!1:O&&!Y(i)?i:C().isPaused()?!1:s?Y(j)?!1:c:Y(j)||c,K=!!(v&&t&&O&&le),Q=Y(R.isValidating)?K:R.isValidating,ee=Y(R.isLoading)?K:R.isLoading,se=k.useCallback(async Z=>{const J=M.current;if(!v||!J||S.current||C().isPaused())return!1;let ce,re,he=!0;const Ue=Z||{},oe=!h[v]||!Ue.dedupe,fe=()=>Br?!S.current&&v===_.current&&E.current:v===_.current,je={isValidating:!1,isLoading:!1},si=()=>{G(je)},ai=()=>{const ve=h[v];ve&&ve[1]===re&&delete h[v]},ii={isValidating:!0};Y(D().data)&&(ii.isLoading=!0);try{if(oe&&(G(ii),n.loadingTimeout&&Y(D().data)&&setTimeout(()=>{he&&fe()&&C().onLoadingSlow(v,n)},n.loadingTimeout),h[v]=[J(y),Rn()]),[ce,re]=h[v],ce=await ce,oe&&setTimeout(ai,n.dedupingInterval),!h[v]||h[v][1]!==re)return oe&&fe()&&C().onDiscarded(v),!1;je.error=ue;const ve=b[v];if(!Y(ve)&&(re<=ve[0]||re<=ve[1]||ve[1]===0))return si(),oe&&fe()&&C().onDiscarded(v),!1;const Le=D().data;je.data=o(Le,ce)?Le:ce,oe&&fe()&&C().onSuccess(ce,v,n)}catch(ve){ai();const Le=C(),{shouldRetryOnError:_r}=Le;Le.isPaused()||(je.error=ve,oe&&fe()&&(Le.onError(ve,v,Le),(_r===!0||be(_r)&&_r(ve))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||I())&&Le.onErrorRetry(ve,v,Le,l0=>{const Ar=g[v];Ar&&Ar[0]&&Ar[0](Vr,l0)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return he=!1,si(),!0},[v,r]),Ee=k.useCallback((...Z)=>Ur(r,_.current,...Z),[]);if(Nt(()=>{M.current=t,A.current=n,Y(N)||(X.current=N)}),Nt(()=>{if(!v)return;const Z=se.bind(ue,On);let J=0;C().revalidateOnFocus&&(J=Date.now()+C().focusThrottleInterval);const re=Fi(v,g,(he,Ue={})=>{if(he==Lr){const oe=Date.now();C().revalidateOnFocus&&oe>J&&I()&&(J=oe+C().focusThrottleInterval,Z())}else if(he==Fr)C().revalidateOnReconnect&&I()&&Z();else{if(he==$r)return se();if(he==Vr)return se(Ue)}});return S.current=!1,_.current=v,E.current=!0,G({_k:y}),le&&(Y(j)||vt?Z():Ei(Z)),()=>{S.current=!0,re()}},[v]),Nt(()=>{let Z;function J(){const re=be(f)?f(D().data):f;re&&Z!==-1&&(Z=setTimeout(ce,re))}function ce(){!D().error&&(u||C().isVisible())&&(d||C().isOnline())?se(On).then(J):J()}return J(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[f,u,d,v]),k.useDebugValue(te),s&&Y(j)&&v){if(!Br&&vt)throw new Error("Fallback data is required when using Suspense in SSR.");M.current=t,A.current=n,S.current=!1;const Z=x[v];if(!Y(Z)){const J=Ee(Z);Mn(J)}if(Y($)){const J=se(On);Y(te)||(J.status="fulfilled",J.value=!0),Mn(J)}else throw $}return{mutate:Ee,get data(){return H.data=!0,te},get error(){return H.error=!0,$},get isValidating(){return H.isValidating=!0,Q},get isLoading(){return H.isLoading=!0,ee}}},Vi=Tt.defineProperty(Oi,"defaultValue",{value:qr}),Hi=Li($i);function Wi(e){return e&&!e.startsWith("/")?`/${e}`:e}function zi(e){return e&&!e.endsWith("/")?`${e}/`:e}function Bi(e){return e.startsWith("/")?e.substring(1,e.length):e}const Gi=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=Wi(t);return zi(n)+Bi(e)};function Ui(){const{data:e,error:t,isLoading:n,mutate:r}=Hi(Gi(process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"),(...o)=>fetch(...o).then(s=>{if(!s.ok)throw new Error("Unauthorized");return s.status===204?null:s.json()}));return t?{user:null,isLoading:!1,error:t,invalidate:()=>r()}:e?{user:e,isLoading:!1,error:null,invalidate:()=>r()}:{user:e,isLoading:n,error:t,invalidate:()=>r()}}var Jr;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_REFRESH_TOKEN="failed_to_refresh_token"})(Jr||(Jr={}));var Qr;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_EXCHANGE="failed_to_exchange_refresh_token"})(Qr||(Qr={}));function Ki({user:e,children:t}){return k.createElement(Vi,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}/**
|
|
39
39
|
* @license lucide-react v0.522.0 - ISC
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the ISC license.
|
|
42
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/const
|
|
43
|
+
*/const Yi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),eo=e=>{const t=qi(e);return t.charAt(0).toUpperCase()+t.slice(1)},to=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Xi=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
44
44
|
* @license lucide-react v0.522.0 - ISC
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the ISC license.
|
|
47
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var Zi={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"};/**
|
|
49
49
|
* @license lucide-react v0.522.0 - ISC
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/const
|
|
53
|
+
*/const Ji=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>k.createElement("svg",{ref:c,...Zi,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:to("lucide",o),...!s&&!Xi(i)&&{"aria-hidden":"true"},...i},[...a.map(([f,u])=>k.createElement(f,u)),...Array.isArray(s)?s:[s]]));/**
|
|
54
54
|
* @license lucide-react v0.522.0 - ISC
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the ISC license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/const xe=(e,t)=>{const n=k.forwardRef(({className:r,...o},s)=>k.createElement(
|
|
58
|
+
*/const xe=(e,t)=>{const n=k.forwardRef(({className:r,...o},s)=>k.createElement(Ji,{ref:s,iconNode:t,className:to(`lucide-${Yi(eo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=eo(e),n};/**
|
|
59
59
|
* @license lucide-react v0.522.0 - ISC
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the ISC license.
|
|
62
62
|
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const
|
|
63
|
+
*/const Ke=xe("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]);/**
|
|
64
64
|
* @license lucide-react v0.522.0 - ISC
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the ISC license.
|
|
@@ -70,7 +70,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the ISC license.
|
|
72
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const
|
|
73
|
+
*/const no=xe("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/**
|
|
74
74
|
* @license lucide-react v0.522.0 - ISC
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the ISC license.
|
|
@@ -90,7 +90,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the ISC license.
|
|
92
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const
|
|
93
|
+
*/const ro=xe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
94
94
|
* @license lucide-react v0.522.0 - ISC
|
|
95
95
|
*
|
|
96
96
|
* This source code is licensed under the ISC license.
|
|
@@ -105,17 +105,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const
|
|
108
|
+
*/const oo=xe("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
109
109
|
* @license lucide-react v0.522.0 - ISC
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const sc=xe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function oo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=oo(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():oo(e[o],null)}}}}function ae(...e){return l.useCallback(kt(...e),e)}function Qe(e){const t=ac(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(cc);if(c){const f=c.props.children,u=i.map(d=>d===c?l.Children.count(f)>1?l.Children.only(null):l.isValidElement(f)?f.props.children:null:d);return p.jsx(t,{...a,ref:o,children:l.isValidElement(f)?l.cloneElement(f,void 0,u):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var so=Qe("Slot");function ac(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=uc(o),i=lc(s,o.props);return o.type!==l.Fragment&&(i.ref=r?kt(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ao=Symbol("radix.slottable");function ic(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ao,t}function cc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ao}function lc(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function uc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function io(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=io(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function co(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=io(e))&&(r&&(r+=" "),r+=t);return r}const lo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,uo=co,fo=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return uo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(f=>{const u=n==null?void 0:n[f],d=s==null?void 0:s[f];if(u===null)return null;const m=lo(u)||lo(d);return o[f][m]}),i=n&&Object.entries(n).reduce((f,u)=>{let[d,m]=u;return m===void 0||(f[d]=m),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,u)=>{let{class:d,className:m,...g}=u;return Object.entries(g).every(b=>{let[h,x]=b;return Array.isArray(x)?x.includes({...s,...i}[h]):{...s,...i}[h]===x})?[...f,d,m]:f},[]);return uo(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};function dc(){const[e,t]=k.useState(!1);return k.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const On="-",fc=e=>{const t=mc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(On);return i[0]===""&&i.length!==1&&i.shift(),po(i,t)||pc(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},po=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?po(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(On);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},mo=/^\[(.+)\]$/,pc=e=>{if(mo.test(e)){const t=mo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mc=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Tn(n[o],r,o,t);return r},Tn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ho(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(hc(o)){Tn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Tn(a,ho(t,s),n,r)})})},ho=(e,t)=>{let n=e;return t.split(On).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hc=e=>e.isThemeGetter,gc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Pn="!",Nn=":",vc=Nn.length,bc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,f;for(let b=0;b<o.length;b++){let h=o[b];if(a===0&&i===0){if(h===Nn){s.push(o.slice(c,b)),c=b+vc;continue}if(h==="/"){f=b;continue}}h==="["?a++:h==="]"?a--:h==="("?i++:h===")"&&i--}const u=s.length===0?o:o.substring(c),d=xc(u),m=d!==u,g=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+Nn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},xc=e=>e.endsWith(Pn)?e.substring(0,e.length-1):e.startsWith(Pn)?e.substring(1):e,wc=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},yc=e=>({cache:gc(e.cacheSize),parseClassName:bc(e),sortModifiers:wc(e),...fc(e)}),Cc=/\s+/,Ec=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Cc);let c="";for(let f=i.length-1;f>=0;f-=1){const u=i[f],{isExternal:d,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let x=!!h,v=r(x?b.substring(0,h):b);if(!v){if(!x){c=u+(c.length>0?" "+c:c);continue}if(v=r(b),!v){c=u+(c.length>0?" "+c:c);continue}x=!1}const y=s(m).join(":"),E=g?y+Pn:y,S=E+v;if(a.includes(S))continue;a.push(S);const _=o(v,x);for(let M=0;M<_.length;++M){const A=_[M];a.push(E+A)}c=u+(c.length>0?" "+c:c)}return c};function Sc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=go(t))&&(r&&(r+=" "),r+=n);return r}const go=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=go(e[r]))&&(n&&(n+=" "),n+=t);return n};function Rc(e,...t){let n,r,o,s=a;function a(c){const f=t.reduce((u,d)=>d(u),e());return n=yc(f),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const f=r(c);if(f)return f;const u=Ec(c,n);return o(c,u),u}return function(){return s(Sc.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_c=/^\d+\/\d+$/,Ac=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mc=/\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$/,Oc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,et=e=>_c.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),kn=e=>e.endsWith("%")&&W(e.slice(0,-1)),Pe=e=>Ac.test(e),Nc=()=>!0,kc=e=>Mc.test(e)&&!Oc.test(e),xo=()=>!1,Ic=e=>Tc.test(e),Dc=e=>Pc.test(e),jc=e=>!T(e)&&!P(e),Lc=e=>tt(e,So,xo),T=e=>vo.test(e),Ke=e=>tt(e,Ro,kc),In=e=>tt(e,Wc,W),wo=e=>tt(e,Co,xo),Fc=e=>tt(e,Eo,Dc),It=e=>tt(e,_o,Ic),P=e=>bo.test(e),vt=e=>nt(e,Ro),$c=e=>nt(e,zc),yo=e=>nt(e,Co),Vc=e=>nt(e,So),Hc=e=>nt(e,Eo),Dt=e=>nt(e,_o,!0),tt=(e,t,n)=>{const r=vo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nt=(e,t,n=!1)=>{const r=bo.exec(e);return r?r[1]?t(r[1]):n:!1},Co=e=>e==="position"||e==="percentage",Eo=e=>e==="image"||e==="url",So=e=>e==="length"||e==="size"||e==="bg-size",Ro=e=>e==="length",Wc=e=>e==="number",zc=e=>e==="family-name",_o=e=>e==="shadow",Bc=Rc(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),i=ie("container"),c=ie("spacing"),f=ie("radius"),u=ie("shadow"),d=ie("inset-shadow"),m=ie("text-shadow"),g=ie("drop-shadow"),b=ie("blur"),h=ie("perspective"),x=ie("aspect"),v=ie("ease"),y=ie("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...S(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[P,T,c],I=()=>[et,"full","auto",...C()],D=()=>[Ve,"none","subgrid",P,T],G=()=>["auto",{span:["full",Ve,P,T]},Ve,P,T],z=()=>[Ve,"auto",P,T],V=()=>["auto","min","max","fr",P,T],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],U=()=>[et,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],R=()=>[e,P,T],O=()=>[...S(),yo,wo,{position:[P,T]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",Vc,Lc,{size:[P,T]}],j=()=>[kn,vt,Ke],$=()=>["","none","full",f,P,T],X=()=>["",W,vt,Ke],te=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[W,kn,yo,wo],Q=()=>["","none",b,P,T],ee=()=>["none",W,P,T],se=()=>["none",W,P,T],Ee=()=>[W,P,T],Ge=()=>[et,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Nc],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[jc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",W],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",et,T,P,x]}],container:["container"],columns:[{columns:[W,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:_()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],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:[Ve,"auto",P,T]}],basis:[{basis:[et,"full","auto",i,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,et,"auto","initial","none",T]}],grow:[{grow:["",W,P,T]}],shrink:[{shrink:["",W,P,T]}],order:[{order:[Ve,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m: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":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[i,"screen",...U()]}],"min-w":[{"min-w":[i,"screen","none",...U()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,vt,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,In]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kn,T]}],"font-family":[{font:[$c,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":[W,"none",P,In]}],leading:[{leading:[s,...C()]}],"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:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",P,Ke]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[W,"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:C()}],"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:O()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ve,P,T],radial:["",P,T],conic:[Ve,P,T]},Hc,Fc]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border: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:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,P,T]}],"outline-w":[{outline:["",W,vt,Ke]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,Dt,It]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,Dt,It]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[W,Ke]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,Dt,It]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[W,P,T]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:Q()}],brightness:[{brightness:[W,P,T]}],contrast:[{contrast:[W,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,Dt,It]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",W,P,T]}],"hue-rotate":[{"hue-rotate":[W,P,T]}],invert:[{invert:["",W,P,T]}],saturate:[{saturate:[W,P,T]}],sepia:[{sepia:["",W,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[W,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[W,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,P,T]}],"backdrop-invert":[{"backdrop-invert":["",W,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[W,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[W,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",W,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",P,T]}],ease:[{ease:["linear","initial",v,P,T]}],delay:[{delay:[W,P,T]}],animate:[{animate:["none",y,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"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:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,T]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[W,vt,Ke,In]}],stroke:[{stroke:["none",...R()]}],"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 B(...e){return Bc(co(e))}const Gc=fo("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Dn=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?so:"button";return p.jsx(a,{className:B(Gc({variant:t,size:n,className:e})),ref:s,...o})});Dn.displayName="Button";var Uc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=Uc.reduce((e,t)=>{const n=Qe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ao(e,t){e&&Or.flushSync(()=>e.dispatchEvent(t))}var Kc="Separator",Mo="horizontal",Yc=["horizontal","vertical"],Oo=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Mo,...o}=e,s=qc(r)?r:Mo,i=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(ne.div,{"data-orientation":s,...i,...o,ref:t})});Oo.displayName=Kc;function qc(e){return Yc.includes(e)}var To=Oo;const Po=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx(To,{ref:o,decorative:n,orientation:t,className:B("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Po.displayName=To.displayName;function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xc(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ye(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];const f=d=>{var v;const{scope:m,children:g,...b}=d,h=((v=m==null?void 0:m[e])==null?void 0:v[c])||i,x=l.useMemo(()=>b,Object.values(b));return p.jsx(h.Provider,{value:x,children:g})};f.displayName=s+"Provider";function u(d,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[c])||i,b=l.useContext(g);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[f,u]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Zc(o,...t)]}function Zc(...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(s){const a=r.reduce((i,{useScope:c,scopeName:f})=>{const d=c(s)[`__scope${f}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Jc=l[" useId ".trim().toString()]||(()=>{}),Qc=0;function rt(e){const[t,n]=l.useState(Jc());return He(()=>{n(r=>r??String(Qc++))},[e]),e||(t?`radix-${t}`:"")}var el=l[" useInsertionEffect ".trim().toString()]||He;function jn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=tl({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const u=l.useRef(e!==void 0);l.useEffect(()=>{const d=u.current;d!==i&&console.warn(`${r} is changing from ${d?"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.`),u.current=i},[i,r])}const f=l.useCallback(u=>{var d;if(i){const m=nl(u)?u(e):u;m!==e&&((d=a.current)==null||d.call(a,m))}else s(u)},[i,e,s,a]);return[c,f]}function tl({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return el(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function nl(e){return typeof e=="function"}function Ne(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function rl(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ol="DismissableLayer",Ln="dismissableLayer.update",sl="dismissableLayer.pointerDownOutside",al="dismissableLayer.focusOutside",No,ko=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,f=l.useContext(ko),[u,d]=l.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ae(t,A=>d(A)),h=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),y=u?h.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,_=ll(A=>{const C=A.target,I=[...f.branches].some(D=>D.contains(C));!S||I||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},m),M=ul(A=>{const C=A.target;[...f.branches].some(D=>D.contains(C))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},m);return rl(A=>{y===f.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},m),l.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(No=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),Io(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=No)}},[u,m,n,f]),l.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),Io())},[u,f]),l.useEffect(()=>{const A=()=>g({});return document.addEventListener(Ln,A),()=>document.removeEventListener(Ln,A)},[]),p.jsx(ne.div,{...c,ref:b,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,M.onFocusCapture),onBlurCapture:L(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,_.onPointerDownCapture)})});jt.displayName=ol;var il="DismissableLayerBranch",cl=l.forwardRef((e,t)=>{const n=l.useContext(ko),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(ne.div,{...e,ref:o})});cl.displayName=il;function ll(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Do(sl,n,f,{discrete:!0})};const f={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ul(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Do(al,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Io(){const e=new CustomEvent(Ln);document.dispatchEvent(e)}function Do(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ao(o,s):o.dispatchEvent(s)}var Fn="focusScope.autoFocusOnMount",$n="focusScope.autoFocusOnUnmount",jo={bubbles:!1,cancelable:!0},dl="FocusScope",Vn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),f=Ne(o),u=Ne(s),d=l.useRef(null),m=ae(t,h=>c(h)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let h=function(E){if(g.paused||!i)return;const S=E.target;i.contains(S)?d.current=S:We(d.current,{select:!0})},x=function(E){if(g.paused||!i)return;const S=E.relatedTarget;S!==null&&(i.contains(S)||We(d.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&We(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(v);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,i,g.paused]),l.useEffect(()=>{if(i){$o.add(g);const h=document.activeElement;if(!i.contains(h)){const v=new CustomEvent(Fn,jo);i.addEventListener(Fn,f),i.dispatchEvent(v),v.defaultPrevented||(fl(vl(Lo(i)),{select:!0}),document.activeElement===h&&We(i))}return()=>{i.removeEventListener(Fn,f),setTimeout(()=>{const v=new CustomEvent($n,jo);i.addEventListener($n,u),i.dispatchEvent(v),v.defaultPrevented||We(h??document.body,{select:!0}),i.removeEventListener($n,u),$o.remove(g)},0)}}},[i,f,u,g]);const b=l.useCallback(h=>{if(!n&&!r||g.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const y=h.currentTarget,[E,S]=pl(y);E&&S?!h.shiftKey&&v===S?(h.preventDefault(),n&&We(E,{select:!0})):h.shiftKey&&v===E&&(h.preventDefault(),n&&We(S,{select:!0})):v===y&&h.preventDefault()}},[n,r,g.paused]);return p.jsx(ne.div,{tabIndex:-1,...a,ref:m,onKeyDown:b})});Vn.displayName=dl;function fl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function pl(e){const t=Lo(e),n=Fo(t,e),r=Fo(t.reverse(),e);return[n,r]}function Lo(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 Fo(e,t){for(const n of e)if(!ml(n,{upTo:t}))return n}function ml(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 hl(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hl(e)&&t&&e.select()}}var $o=gl();function gl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vo(e,t),e.unshift(t)},remove(t){var n;e=Vo(e,t),(n=e[0])==null||n.resume()}}}function Vo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function vl(e){return e.filter(t=>t.tagName!=="A")}var bl="Portal",Hn=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);He(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?Ar.createPortal(p.jsx(ne.div,{...r,ref:t}),a):null});Hn.displayName=bl;function xl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var ke=e=>{const{present:t,children:n}=e,r=wl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ae(r.ref,yl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};ke.displayName="Presence";function wl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=xl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const f=Lt(r.current);s.current=i==="mounted"?f:"none"},[i]),He(()=>{const f=r.current,u=o.current;if(u!==e){const m=s.current,g=Lt(f);e?c("MOUNT"):g==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),He(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,d=g=>{const h=Lt(r.current).includes(g.animationName);if(g.target===t&&h&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(s.current=Lt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Lt(e){return(e==null?void 0:e.animationName)||"none"}function yl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wn=0;function Ho(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wo()),document.body.insertAdjacentElement("beforeend",e[1]??Wo()),Wn++,()=>{Wn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wn--}},[])}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 Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Se.apply(this,arguments)};function zo(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 Cl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ft="right-scroll-bar-position",$t="width-before-scroll-bar",El="with-scroll-bars-hidden",Sl="--removed-body-scroll-bar-size";function zn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Rl(e,t){var n=k.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 _l=typeof window<"u"?l.useLayoutEffect:l.useEffect,Bo=new WeakMap;function Al(e,t){var n=Rl(null,function(r){return e.forEach(function(o){return zn(o,r)})});return _l(function(){var r=Bo.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||zn(i,null)}),s.forEach(function(i){o.has(i)||zn(i,a)})}Bo.set(n,e)},[e]),n}function Ml(e){return e}function Ol(e,t){t===void 0&&(t=Ml);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(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var u=a;a=[],u.forEach(s)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(u){a.push(u),f()},filter:function(u){return a=a.filter(u),n}}}};return o}function Tl(e){e===void 0&&(e={});var t=Ol(null);return t.options=Se({async:!0,ssr:!1},e),t}var Go=function(e){var t=e.sideCar,n=zo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Se({},n))};Go.isSideCarExport=!0;function Pl(e,t){return e.useMedium(t),Go}var Uo=Tl(),Bn=function(){},Vt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Bn,onWheelCapture:Bn,onTouchMoveCapture:Bn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,f=e.removeScrollBar,u=e.enabled,d=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,x=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,E=e.gapMode,S=zo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=m,M=Al([n,t]),A=Se(Se({},S),o);return l.createElement(l.Fragment,null,u&&l.createElement(_,{sideCar:Uo,removeScrollBar:f,shards:d,noRelative:g,noIsolation:b,inert:h,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:E}),a?l.cloneElement(l.Children.only(i),Se(Se({},A),{ref:M})):l.createElement(y,Se({},A,{className:c,ref:M}),i))});Vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vt.classNames={fullWidth:$t,zeroRight:Ft};var Nl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nl();return t&&e.setAttribute("nonce",t),e}function Il(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kl())&&(Il(t,n),Dl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ll=function(){var e=jl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ko=function(){var e=Ll(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Fl={left:0,top:0,right:0,gap:0},Gn=function(e){return parseInt(e||"",10)||0},$l=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[Gn(n),Gn(r),Gn(o)]},Vl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fl;var t=$l(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])}},Hl=Ko(),ot="data-scroll-locked",Wl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
113
|
+
*/const sc=xe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function so(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function It(...e){return t=>{let n=!1;const r=e.map(o=>{const s=so(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():so(e[o],null)}}}}function ae(...e){return l.useCallback(It(...e),e)}function et(e){const t=ac(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(cc);if(c){const f=c.props.children,u=i.map(d=>d===c?l.Children.count(f)>1?l.Children.only(null):l.isValidElement(f)?f.props.children:null:d);return p.jsx(t,{...a,ref:o,children:l.isValidElement(f)?l.cloneElement(f,void 0,u):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var ao=et("Slot");function ac(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=uc(o),i=lc(s,o.props);return o.type!==l.Fragment&&(i.ref=r?It(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var io=Symbol("radix.slottable");function ic(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=io,t}function cc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===io}function lc(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function uc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function co(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=co(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=co(e))&&(r&&(r+=" "),r+=t);return r}const uo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fo=lo,po=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return fo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(f=>{const u=n==null?void 0:n[f],d=s==null?void 0:s[f];if(u===null)return null;const m=uo(u)||uo(d);return o[f][m]}),i=n&&Object.entries(n).reduce((f,u)=>{let[d,m]=u;return m===void 0||(f[d]=m),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,u)=>{let{class:d,className:m,...g}=u;return Object.entries(g).every(b=>{let[h,x]=b;return Array.isArray(x)?x.includes({...s,...i}[h]):{...s,...i}[h]===x})?[...f,d,m]:f},[]);return fo(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};function dc(){const[e,t]=k.useState(!1);return k.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const Tn="-",fc=e=>{const t=mc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(Tn);return i[0]===""&&i.length!==1&&i.shift(),mo(i,t)||pc(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},mo=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?mo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Tn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},ho=/^\[(.+)\]$/,pc=e=>{if(ho.test(e)){const t=ho.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mc=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Pn(n[o],r,o,t);return r},Pn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:go(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(hc(o)){Pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Pn(a,go(t,s),n,r)})})},go=(e,t)=>{let n=e;return t.split(Tn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hc=e=>e.isThemeGetter,gc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Nn="!",kn=":",vc=kn.length,bc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,f;for(let b=0;b<o.length;b++){let h=o[b];if(a===0&&i===0){if(h===kn){s.push(o.slice(c,b)),c=b+vc;continue}if(h==="/"){f=b;continue}}h==="["?a++:h==="]"?a--:h==="("?i++:h===")"&&i--}const u=s.length===0?o:o.substring(c),d=xc(u),m=d!==u,g=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+kn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},xc=e=>e.endsWith(Nn)?e.substring(0,e.length-1):e.startsWith(Nn)?e.substring(1):e,wc=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},yc=e=>({cache:gc(e.cacheSize),parseClassName:bc(e),sortModifiers:wc(e),...fc(e)}),Cc=/\s+/,Ec=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Cc);let c="";for(let f=i.length-1;f>=0;f-=1){const u=i[f],{isExternal:d,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let x=!!h,v=r(x?b.substring(0,h):b);if(!v){if(!x){c=u+(c.length>0?" "+c:c);continue}if(v=r(b),!v){c=u+(c.length>0?" "+c:c);continue}x=!1}const y=s(m).join(":"),E=g?y+Nn:y,S=E+v;if(a.includes(S))continue;a.push(S);const _=o(v,x);for(let M=0;M<_.length;++M){const A=_[M];a.push(E+A)}c=u+(c.length>0?" "+c:c)}return c};function Sc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vo(t))&&(r&&(r+=" "),r+=n);return r}const vo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Rc(e,...t){let n,r,o,s=a;function a(c){const f=t.reduce((u,d)=>d(u),e());return n=yc(f),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const f=r(c);if(f)return f;const u=Ec(c,n);return o(c,u),u}return function(){return s(Sc.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_c=/^\d+\/\d+$/,Ac=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mc=/\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$/,Oc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>_c.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),In=e=>e.endsWith("%")&&W(e.slice(0,-1)),Pe=e=>Ac.test(e),Nc=()=>!0,kc=e=>Mc.test(e)&&!Oc.test(e),wo=()=>!1,Ic=e=>Tc.test(e),Dc=e=>Pc.test(e),jc=e=>!T(e)&&!P(e),Lc=e=>nt(e,Ro,wo),T=e=>bo.test(e),Ye=e=>nt(e,_o,kc),Dn=e=>nt(e,Wc,W),yo=e=>nt(e,Eo,wo),Fc=e=>nt(e,So,Dc),Dt=e=>nt(e,Ao,Ic),P=e=>xo.test(e),bt=e=>rt(e,_o),$c=e=>rt(e,zc),Co=e=>rt(e,Eo),Vc=e=>rt(e,Ro),Hc=e=>rt(e,So),jt=e=>rt(e,Ao,!0),nt=(e,t,n)=>{const r=bo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},rt=(e,t,n=!1)=>{const r=xo.exec(e);return r?r[1]?t(r[1]):n:!1},Eo=e=>e==="position"||e==="percentage",So=e=>e==="image"||e==="url",Ro=e=>e==="length"||e==="size"||e==="bg-size",_o=e=>e==="length",Wc=e=>e==="number",zc=e=>e==="family-name",Ao=e=>e==="shadow",Bc=Rc(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),i=ie("container"),c=ie("spacing"),f=ie("radius"),u=ie("shadow"),d=ie("inset-shadow"),m=ie("text-shadow"),g=ie("drop-shadow"),b=ie("blur"),h=ie("perspective"),x=ie("aspect"),v=ie("ease"),y=ie("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...S(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[P,T,c],I=()=>[tt,"full","auto",...C()],D=()=>[Ve,"none","subgrid",P,T],G=()=>["auto",{span:["full",Ve,P,T]},Ve,P,T],z=()=>[Ve,"auto",P,T],V=()=>["auto","min","max","fr",P,T],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],U=()=>[tt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],R=()=>[e,P,T],O=()=>[...S(),Co,yo,{position:[P,T]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",Vc,Lc,{size:[P,T]}],j=()=>[In,bt,Ye],$=()=>["","none","full",f,P,T],X=()=>["",W,bt,Ye],te=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[W,In,Co,yo],Q=()=>["","none",b,P,T],ee=()=>["none",W,P,T],se=()=>["none",W,P,T],Ee=()=>[W,P,T],Ge=()=>[tt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Nc],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[jc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",W],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tt,T,P,x]}],container:["container"],columns:[{columns:[W,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:_()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],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:[Ve,"auto",P,T]}],basis:[{basis:[tt,"full","auto",i,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,tt,"auto","initial","none",T]}],grow:[{grow:["",W,P,T]}],shrink:[{shrink:["",W,P,T]}],order:[{order:[Ve,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m: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":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[i,"screen",...U()]}],"min-w":[{"min-w":[i,"screen","none",...U()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,bt,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,Dn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",In,T]}],"font-family":[{font:[$c,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":[W,"none",P,Dn]}],leading:[{leading:[s,...C()]}],"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:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",P,Ye]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[W,"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:C()}],"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:O()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ve,P,T],radial:["",P,T],conic:[Ve,P,T]},Hc,Fc]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border: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:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,P,T]}],"outline-w":[{outline:["",W,bt,Ye]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,jt,Dt]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,jt,Dt]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[W,Ye]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,jt,Dt]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[W,P,T]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:Q()}],brightness:[{brightness:[W,P,T]}],contrast:[{contrast:[W,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,jt,Dt]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",W,P,T]}],"hue-rotate":[{"hue-rotate":[W,P,T]}],invert:[{invert:["",W,P,T]}],saturate:[{saturate:[W,P,T]}],sepia:[{sepia:["",W,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[W,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[W,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,P,T]}],"backdrop-invert":[{"backdrop-invert":["",W,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[W,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[W,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",W,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",P,T]}],ease:[{ease:["linear","initial",v,P,T]}],delay:[{delay:[W,P,T]}],animate:[{animate:["none",y,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"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:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,T]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[W,bt,Ye,Dn]}],stroke:[{stroke:["none",...R()]}],"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 B(...e){return Bc(lo(e))}const Gc=po("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),jn=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?ao:"button";return p.jsx(a,{className:B(Gc({variant:t,size:n,className:e})),ref:s,...o})});jn.displayName="Button";var Uc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=Uc.reduce((e,t)=>{const n=et(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mo(e,t){e&&Tr.flushSync(()=>e.dispatchEvent(t))}var Kc="Separator",Oo="horizontal",Yc=["horizontal","vertical"],To=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Oo,...o}=e,s=qc(r)?r:Oo,i=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(ne.div,{"data-orientation":s,...i,...o,ref:t})});To.displayName=Kc;function qc(e){return Yc.includes(e)}var Po=To;const No=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx(Po,{ref:o,decorative:n,orientation:t,className:B("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));No.displayName=Po.displayName;function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xc(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function qe(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];const f=d=>{var v;const{scope:m,children:g,...b}=d,h=((v=m==null?void 0:m[e])==null?void 0:v[c])||i,x=l.useMemo(()=>b,Object.values(b));return p.jsx(h.Provider,{value:x,children:g})};f.displayName=s+"Provider";function u(d,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[c])||i,b=l.useContext(g);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[f,u]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Zc(o,...t)]}function Zc(...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(s){const a=r.reduce((i,{useScope:c,scopeName:f})=>{const d=c(s)[`__scope${f}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Jc=l[" useId ".trim().toString()]||(()=>{}),Qc=0;function ot(e){const[t,n]=l.useState(Jc());return He(()=>{n(r=>r??String(Qc++))},[e]),e||(t?`radix-${t}`:"")}var el=l[" useInsertionEffect ".trim().toString()]||He;function Ln({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=tl({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const u=l.useRef(e!==void 0);l.useEffect(()=>{const d=u.current;d!==i&&console.warn(`${r} is changing from ${d?"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.`),u.current=i},[i,r])}const f=l.useCallback(u=>{var d;if(i){const m=nl(u)?u(e):u;m!==e&&((d=a.current)==null||d.call(a,m))}else s(u)},[i,e,s,a]);return[c,f]}function tl({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return el(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function nl(e){return typeof e=="function"}function Ne(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function rl(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ol="DismissableLayer",Fn="dismissableLayer.update",sl="dismissableLayer.pointerDownOutside",al="dismissableLayer.focusOutside",ko,Io=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,f=l.useContext(Io),[u,d]=l.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ae(t,A=>d(A)),h=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),y=u?h.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,_=ll(A=>{const C=A.target,I=[...f.branches].some(D=>D.contains(C));!S||I||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},m),M=ul(A=>{const C=A.target;[...f.branches].some(D=>D.contains(C))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},m);return rl(A=>{y===f.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},m),l.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ko=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),Do(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ko)}},[u,m,n,f]),l.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),Do())},[u,f]),l.useEffect(()=>{const A=()=>g({});return document.addEventListener(Fn,A),()=>document.removeEventListener(Fn,A)},[]),p.jsx(ne.div,{...c,ref:b,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,M.onFocusCapture),onBlurCapture:L(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,_.onPointerDownCapture)})});Lt.displayName=ol;var il="DismissableLayerBranch",cl=l.forwardRef((e,t)=>{const n=l.useContext(Io),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(ne.div,{...e,ref:o})});cl.displayName=il;function ll(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){jo(sl,n,f,{discrete:!0})};const f={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ul(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&jo(al,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Do(){const e=new CustomEvent(Fn);document.dispatchEvent(e)}function jo(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mo(o,s):o.dispatchEvent(s)}var $n="focusScope.autoFocusOnMount",Vn="focusScope.autoFocusOnUnmount",Lo={bubbles:!1,cancelable:!0},dl="FocusScope",Hn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),f=Ne(o),u=Ne(s),d=l.useRef(null),m=ae(t,h=>c(h)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let h=function(E){if(g.paused||!i)return;const S=E.target;i.contains(S)?d.current=S:We(d.current,{select:!0})},x=function(E){if(g.paused||!i)return;const S=E.relatedTarget;S!==null&&(i.contains(S)||We(d.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&We(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(v);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,i,g.paused]),l.useEffect(()=>{if(i){Vo.add(g);const h=document.activeElement;if(!i.contains(h)){const v=new CustomEvent($n,Lo);i.addEventListener($n,f),i.dispatchEvent(v),v.defaultPrevented||(fl(vl(Fo(i)),{select:!0}),document.activeElement===h&&We(i))}return()=>{i.removeEventListener($n,f),setTimeout(()=>{const v=new CustomEvent(Vn,Lo);i.addEventListener(Vn,u),i.dispatchEvent(v),v.defaultPrevented||We(h??document.body,{select:!0}),i.removeEventListener(Vn,u),Vo.remove(g)},0)}}},[i,f,u,g]);const b=l.useCallback(h=>{if(!n&&!r||g.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const y=h.currentTarget,[E,S]=pl(y);E&&S?!h.shiftKey&&v===S?(h.preventDefault(),n&&We(E,{select:!0})):h.shiftKey&&v===E&&(h.preventDefault(),n&&We(S,{select:!0})):v===y&&h.preventDefault()}},[n,r,g.paused]);return p.jsx(ne.div,{tabIndex:-1,...a,ref:m,onKeyDown:b})});Hn.displayName=dl;function fl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function pl(e){const t=Fo(e),n=$o(t,e),r=$o(t.reverse(),e);return[n,r]}function Fo(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 $o(e,t){for(const n of e)if(!ml(n,{upTo:t}))return n}function ml(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 hl(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hl(e)&&t&&e.select()}}var Vo=gl();function gl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ho(e,t),e.unshift(t)},remove(t){var n;e=Ho(e,t),(n=e[0])==null||n.resume()}}}function Ho(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function vl(e){return e.filter(t=>t.tagName!=="A")}var bl="Portal",Wn=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);He(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?Mr.createPortal(p.jsx(ne.div,{...r,ref:t}),a):null});Wn.displayName=bl;function xl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var ke=e=>{const{present:t,children:n}=e,r=wl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ae(r.ref,yl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};ke.displayName="Presence";function wl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=xl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const f=Ft(r.current);s.current=i==="mounted"?f:"none"},[i]),He(()=>{const f=r.current,u=o.current;if(u!==e){const m=s.current,g=Ft(f);e?c("MOUNT"):g==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),He(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,d=g=>{const h=Ft(r.current).includes(g.animationName);if(g.target===t&&h&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(s.current=Ft(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Ft(e){return(e==null?void 0:e.animationName)||"none"}function yl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zn=0;function Wo(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zo()),document.body.insertAdjacentElement("beforeend",e[1]??zo()),zn++,()=>{zn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zn--}},[])}function zo(){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 Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Se.apply(this,arguments)};function Bo(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 Cl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var $t="right-scroll-bar-position",Vt="width-before-scroll-bar",El="with-scroll-bars-hidden",Sl="--removed-body-scroll-bar-size";function Bn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Rl(e,t){var n=k.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 _l=typeof window<"u"?l.useLayoutEffect:l.useEffect,Go=new WeakMap;function Al(e,t){var n=Rl(null,function(r){return e.forEach(function(o){return Bn(o,r)})});return _l(function(){var r=Go.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||Bn(i,null)}),s.forEach(function(i){o.has(i)||Bn(i,a)})}Go.set(n,e)},[e]),n}function Ml(e){return e}function Ol(e,t){t===void 0&&(t=Ml);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(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var u=a;a=[],u.forEach(s)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(u){a.push(u),f()},filter:function(u){return a=a.filter(u),n}}}};return o}function Tl(e){e===void 0&&(e={});var t=Ol(null);return t.options=Se({async:!0,ssr:!1},e),t}var Uo=function(e){var t=e.sideCar,n=Bo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Se({},n))};Uo.isSideCarExport=!0;function Pl(e,t){return e.useMedium(t),Uo}var Ko=Tl(),Gn=function(){},Ht=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Gn,onWheelCapture:Gn,onTouchMoveCapture:Gn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,f=e.removeScrollBar,u=e.enabled,d=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,x=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,E=e.gapMode,S=Bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=m,M=Al([n,t]),A=Se(Se({},S),o);return l.createElement(l.Fragment,null,u&&l.createElement(_,{sideCar:Ko,removeScrollBar:f,shards:d,noRelative:g,noIsolation:b,inert:h,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:E}),a?l.cloneElement(l.Children.only(i),Se(Se({},A),{ref:M})):l.createElement(y,Se({},A,{className:c,ref:M}),i))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Vt,zeroRight:$t};var Nl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nl();return t&&e.setAttribute("nonce",t),e}function Il(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kl())&&(Il(t,n),Dl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ll=function(){var e=jl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yo=function(){var e=Ll(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Fl={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},$l=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)]},Vl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fl;var t=$l(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])}},Hl=Yo(),st="data-scroll-locked",Wl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
114
114
|
.`.concat(El,` {
|
|
115
115
|
overflow: hidden `).concat(r,`;
|
|
116
116
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
117
117
|
}
|
|
118
|
-
body[`).concat(
|
|
118
|
+
body[`).concat(st,`] {
|
|
119
119
|
overflow: hidden `).concat(r,`;
|
|
120
120
|
overscroll-behavior: contain;
|
|
121
121
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -128,30 +128,30 @@ React keys must be passed directly to JSX without using spread:
|
|
|
128
128
|
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.`).concat(
|
|
131
|
+
.`).concat($t,` {
|
|
132
132
|
right: `).concat(i,"px ").concat(r,`;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.`).concat(
|
|
135
|
+
.`).concat(Vt,` {
|
|
136
136
|
margin-right: `).concat(i,"px ").concat(r,`;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.`).concat(
|
|
139
|
+
.`).concat($t," .").concat($t,` {
|
|
140
140
|
right: 0 `).concat(r,`;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.`).concat(
|
|
143
|
+
.`).concat(Vt," .").concat(Vt,` {
|
|
144
144
|
margin-right: 0 `).concat(r,`;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
body[`).concat(
|
|
147
|
+
body[`).concat(st,`] {
|
|
148
148
|
`).concat(Sl,": ").concat(i,`px;
|
|
149
149
|
}
|
|
150
|
-
`)},
|
|
150
|
+
`)},qo=function(){var e=parseInt(document.body.getAttribute(st)||"0",10);return isFinite(e)?e:0},zl=function(){l.useEffect(function(){return document.body.setAttribute(st,(qo()+1).toString()),function(){var e=qo()-1;e<=0?document.body.removeAttribute(st):document.body.setAttribute(st,e.toString())}},[])},Bl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;zl();var s=l.useMemo(function(){return Vl(o)},[o]);return l.createElement(Hl,{styles:Wl(s,!t,o,n?"":"!important")})},Kn=!1;if(typeof window<"u")try{var Wt=Object.defineProperty({},"passive",{get:function(){return Kn=!0,!0}});window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch{Kn=!1}var at=Kn?{passive:!1}:!1,Gl=function(e){return e.tagName==="TEXTAREA"},Xo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Gl(e)&&n[t]==="visible")},Ul=function(e){return Xo(e,"overflowY")},Kl=function(e){return Xo(e,"overflowX")},Zo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Jo(e,r);if(o){var s=Qo(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Yl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ql=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Jo=function(e,t){return e==="v"?Ul(t):Kl(t)},Qo=function(e,t){return e==="v"?Yl(t):ql(t)},Xl=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zl=function(e,t,n,r,o){var s=Xl(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),f=!1,u=a>0,d=0,m=0;do{if(!i)break;var g=Qo(e,i),b=g[0],h=g[1],x=g[2],v=h-x-s*b;(b||v)&&Jo(e,i)&&(d+=v,m+=b);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(u&&Math.abs(d)<1||!u&&Math.abs(m)<1)&&(f=!0),f},zt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},es=function(e){return[e.deltaX,e.deltaY]},ts=function(e){return e&&"current"in e?e.current:e},Jl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ql=function(e){return`
|
|
151
151
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
152
152
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
153
|
-
`)},eu=0,
|
|
153
|
+
`)},eu=0,it=[];function tu(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(eu++)[0],s=l.useState(Yo)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Cl([e.lockRef.current],(e.shards||[]).map(ts),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var v=zt(h),y=n.current,E="deltaX"in h?h.deltaX:y[0]-v[0],S="deltaY"in h?h.deltaY:y[1]-v[1],_,M=h.target,A=Math.abs(E)>Math.abs(S)?"h":"v";if("touches"in h&&A==="h"&&M.type==="range")return!1;var C=Zo(A,M);if(!C)return!0;if(C?_=A:(_=A==="v"?"h":"v",C=Zo(A,M)),!C)return!1;if(!r.current&&"changedTouches"in h&&(E||S)&&(r.current=_),!_)return!0;var I=r.current||_;return Zl(I,x,h,I==="h"?E:S)},[]),c=l.useCallback(function(h){var x=h;if(!(!it.length||it[it.length-1]!==s)){var v="deltaY"in x?es(x):zt(x),y=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&Jl(_.delta,v)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(ts).filter(Boolean).filter(function(_){return _.contains(x.target)}),S=E.length>0?i(x,E[0]):!a.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),f=l.useCallback(function(h,x,v,y){var E={name:h,delta:x,target:v,should:y,shadowParent:nu(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(S){return S!==E})},1)},[]),u=l.useCallback(function(h){n.current=zt(h),r.current=void 0},[]),d=l.useCallback(function(h){f(h.type,es(h),h.target,i(h,e.lockRef.current))},[]),m=l.useCallback(function(h){f(h.type,zt(h),h.target,i(h,e.lockRef.current))},[]);l.useEffect(function(){return it.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",c,at),document.addEventListener("touchmove",c,at),document.addEventListener("touchstart",u,at),function(){it=it.filter(function(h){return h!==s}),document.removeEventListener("wheel",c,at),document.removeEventListener("touchmove",c,at),document.removeEventListener("touchstart",u,at)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(s,{styles:Ql(o)}):null,g?l.createElement(Bl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ru=Pl(Ko,tu);var Yn=l.forwardRef(function(e,t){return l.createElement(Ht,Se({},e,{ref:t,sideCar:ru}))});Yn.classNames=Ht.classNames;var ou=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ct=new WeakMap,Bt=new WeakMap,Gt={},qn=0,ns=function(e){return e&&(e.host||ns(e.parentNode))},su=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ns(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})},au=function(e,t,n,r){var o=su(t,Array.isArray(e)?e:[e]);Gt[n]||(Gt[n]=new WeakMap);var s=Gt[n],a=[],i=new Set,c=new Set(o),f=function(d){!d||i.has(d)||(i.add(d),f(d.parentNode))};o.forEach(f);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(i.has(m))u(m);else try{var g=m.getAttribute(r),b=g!==null&&g!=="false",h=(ct.get(m)||0)+1,x=(s.get(m)||0)+1;ct.set(m,h),s.set(m,x),a.push(m),h===1&&b&&Bt.set(m,!0),x===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return u(t),i.clear(),qn++,function(){a.forEach(function(d){var m=ct.get(d)-1,g=s.get(d)-1;ct.set(d,m),s.set(d,g),m||(Bt.has(d)||d.removeAttribute(r),Bt.delete(d)),g||d.removeAttribute(n)}),qn--,qn||(ct=new WeakMap,ct=new WeakMap,Bt=new WeakMap,Gt={})}},rs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ou(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),au(r,o,n,"aria-hidden")):function(){return null}},Ut="Dialog",[os,C0]=qe(Ut),[iu,we]=os(Ut),ss=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),c=l.useRef(null),[f,u]=Ln({prop:r,defaultProp:o??!1,onChange:s,caller:Ut});return p.jsx(iu,{scope:t,triggerRef:i,contentRef:c,contentId:ot(),titleId:ot(),descriptionId:ot(),open:f,onOpenChange:u,onOpenToggle:l.useCallback(()=>u(d=>!d),[u]),modal:a,children:n})};ss.displayName=Ut;var as="DialogTrigger",cu=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(as,n),s=ae(t,o.triggerRef);return p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Jn(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)})});cu.displayName=as;var Xn="DialogPortal",[lu,is]=os(Xn,{forceMount:void 0}),cs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=we(Xn,t);return p.jsx(lu,{scope:t,forceMount:n,children:l.Children.map(r,a=>p.jsx(ke,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:a})}))})};cs.displayName=Xn;var Kt="DialogOverlay",ls=l.forwardRef((e,t)=>{const n=is(Kt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(Kt,e.__scopeDialog);return s.modal?p.jsx(ke,{present:r||s.open,children:p.jsx(du,{...o,ref:t})}):null});ls.displayName=Kt;var uu=et("DialogOverlay.RemoveScroll"),du=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(Kt,n);return p.jsx(Yn,{as:uu,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ne.div,{"data-state":Jn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Xe="DialogContent",us=l.forwardRef((e,t)=>{const n=is(Xe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(Xe,e.__scopeDialog);return p.jsx(ke,{present:r||s.open,children:s.modal?p.jsx(fu,{...o,ref:t}):p.jsx(pu,{...o,ref:t})})});us.displayName=Xe;var fu=l.forwardRef((e,t)=>{const n=we(Xe,e.__scopeDialog),r=l.useRef(null),o=ae(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return rs(s)},[]),p.jsx(ds,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault())})}),pu=l.forwardRef((e,t)=>{const n=we(Xe,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ds,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,f;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ds=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=we(Xe,n),c=l.useRef(null),f=ae(t,c);return Wo(),p.jsxs(p.Fragment,{children:[p.jsx(Hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(Lt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Jn(i.open),...a,ref:f,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(mu,{titleId:i.titleId}),p.jsx(gu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Zn="DialogTitle",fs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(Zn,n);return p.jsx(ne.h2,{id:o.titleId,...r,ref:t})});fs.displayName=Zn;var ps="DialogDescription",ms=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(ps,n);return p.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});ms.displayName=ps;var hs="DialogClose",gs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(hs,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});gs.displayName=hs;function Jn(e){return e?"open":"closed"}var vs="DialogTitleWarning",[E0,bs]=Xc(vs,{contentName:Xe,titleName:Zn,docsSlug:"dialog"}),mu=({titleId:e})=>{const t=bs(vs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
154
154
|
|
|
155
155
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
156
156
|
|
|
157
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},hu="DialogDescriptionWarning",gu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${vs(hu).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vu=os,bu=is,bs=cs,xs=ls,ws=ds,ys=ps,xu=hs;const wu=vu,yu=bu,Cs=l.forwardRef(({className:e,...t},n)=>p.jsx(bs,{className:B("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Cs.displayName=bs.displayName;const Cu=fo("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Es=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(yu,{children:[p.jsx(Cs,{}),p.jsxs(xs,{ref:o,className:B(Cu({side:e}),t),...r,children:[n,p.jsxs(xu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(sc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Es.displayName=xs.displayName;const Ss=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ss.displayName="SheetHeader";const Rs=l.forwardRef(({className:e,...t},n)=>p.jsx(ws,{ref:n,className:B("text-lg font-semibold text-foreground",e),...t}));Rs.displayName=ws.displayName;const _s=l.forwardRef(({className:e,...t},n)=>p.jsx(ys,{ref:n,className:B("text-sm text-muted-foreground",e),...t}));_s.displayName=ys.displayName;const Eu=["top","right","bottom","left"],ze=Math.min,pe=Math.max,Kt=Math.round,Yt=Math.floor,Re=e=>({x:e,y:e}),Su={left:"right",right:"left",bottom:"top",top:"bottom"},Ru={start:"end",end:"start"};function Jn(e,t,n){return pe(e,ze(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function er(e){return e==="y"?"height":"width"}function _e(e){return["top","bottom"].includes(De(e))?"y":"x"}function tr(e){return Qn(_e(e))}function _u(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=tr(e),s=er(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=qt(a)),[a,qt(a)]}function Au(e){const t=qt(e);return[nr(e),t,nr(t)]}function nr(e){return e.replace(/start|end/g,t=>Ru[t])}function Mu(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Ou(e,t,n,r){const o=ct(e);let s=Mu(De(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(nr)))),s}function qt(e){return e.replace(/left|right|bottom|top/g,t=>Su[t])}function Tu(e){return{top:0,right:0,bottom:0,left:0,...e}}function As(e){return typeof e!="number"?Tu(e):{top:e,right:e,bottom:e,left:e}}function Xt(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 Ms(e,t,n){let{reference:r,floating:o}=e;const s=_e(t),a=tr(t),i=er(a),c=De(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(ct(t)){case"start":g[a]-=m*(n&&f?-1:1);break;case"end":g[a]+=m*(n&&f?-1:1);break}return g}const Pu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ms(f,r,c),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:x,fn:v}=i[h],{x:y,y:E,data:S,reset:_}=await v({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=y??u,d=E??d,g={...g,[x]:{...g[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(f=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=Ms(f,m,c)),h=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:g}};async function bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=Ie(t,e),b=As(g),x=i[m?d==="floating"?"reference":"floating":d],v=Xt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=Xt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:E,strategy:c}):y);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const Nu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:f,padding:u=0}=Ie(e,t)||{};if(f==null)return{};const d=As(u),m={x:n,y:r},g=tr(o),b=er(g),h=await a.getDimensions(f),x=g==="y",v=x?"top":"left",y=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[g]-m[g]-s.floating[b],_=m[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(a.isElement==null?void 0:a.isElement(M)))&&(A=i.floating[E]||s.floating[b]);const C=S/2-_/2,I=A/2-h[b]/2-1,D=ze(d[v],I),G=ze(d[y],I),z=D,V=A-h[b]-G,H=A/2-h[b]/2+C,q=Jn(z,H,V),F=!c.arrow&&ct(o)!=null&&H!==q&&s.reference[b]/2-(H<z?D:G)-h[b]/2<0,U=F?H<z?H-z:H-V:0;return{[g]:m[g]+U,data:{[g]:q,centerOffset:H-q-U,...F&&{alignmentOffset:U}},reset:F}}}),ku=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=De(o),y=_e(i),E=De(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[qt(i)]:Au(i)),M=b!=="none";!m&&M&&_.push(...Ou(i,h,b,S));const A=[i,..._],C=await bt(t,x),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(C[v]),d){const H=_u(o,a,S);I.push(C[H[0]],C[H[1]])}if(D=[...D,{placement:o,overflows:I}],!I.every(H=>H<=0)){var G,z;const H=(((G=s.flip)==null?void 0:G.index)||0)+1,q=A[H];if(q&&(!(d==="alignment"?y!==_e(q):!1)||D.every(R=>R.overflows[0]>0&&_e(R.placement)===y)))return{data:{index:H,overflows:D},reset:{placement:q}};let F=(z=D.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:z.placement;if(!F)switch(g){case"bestFit":{var V;const U=(V=D.filter(R=>{if(M){const O=_e(R.placement);return O===y||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:V[0];U&&(F=U);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Os(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return Eu.some(t=>e[t]>=0)}const Iu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ie(e,t);switch(r){case"referenceHidden":{const s=await bt(t,{...o,elementContext:"reference"}),a=Os(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ts(a)}}}case"escaped":{const s=await bt(t,{...o,altBoundary:!0}),a=Os(s,n.floating);return{data:{escapedOffsets:a,escaped:Ts(a)}}}default:return{}}}}};async function Du(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=De(n),i=ct(n),c=_e(n)==="y",f=["left","top"].includes(a)?-1:1,u=s&&c?-1:1,d=Ie(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),c?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const ju=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await Du(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Lu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=Ie(e,t),f={x:n,y:r},u=await bt(t,c),d=_e(De(o)),m=Qn(d);let g=f[m],b=f[d];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+u[x],E=g-u[v];g=Jn(y,g,E)}if(a){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=b+u[x],E=b-u[v];b=Jn(y,b,E)}const h=i.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:a}}}}}},Fu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:f=!0}=Ie(e,t),u={x:n,y:r},d=_e(o),m=Qn(d);let g=u[m],b=u[d];const h=Ie(i,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;g<S?g=S:g>_&&(g=_)}if(f){var v,y;const E=m==="y"?"width":"height",S=["top","left"].includes(De(o)),_=s.reference[d]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);b<_?b=_:b>M&&(b=M)}return{[m]:g,[d]:b}}}},$u=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...f}=Ie(e,t),u=await bt(t,f),d=De(o),m=ct(o),g=_e(o)==="y",{width:b,height:h}=s.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,x=m==="end"?"top":"bottom");const y=h-u.top-u.bottom,E=b-u.left-u.right,S=ze(h-u[x],y),_=ze(b-u[v],E),M=!t.middlewareData.shift;let A=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!m){const D=pe(u.left,0),G=pe(u.right,0),z=pe(u.top,0),V=pe(u.bottom,0);g?C=b-2*(D!==0||G!==0?D+G:pe(u.left,u.right)):A=h-2*(z!==0||V!==0?z+V:pe(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:A});const I=await a.getDimensions(i.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function lt(e){return Ps(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ps(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ps(e){return Zt()?e instanceof Node||e instanceof me(e).Node:!1}function ye(e){return Zt()?e instanceof Element||e instanceof me(e).Element:!1}function Me(e){return Zt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Ns(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Vu(e){return["table","td","th"].includes(lt(e))}function Jt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function rr(e){const t=or(),n=ye(e)?Ce(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Hu(e){let t=Be(e);for(;Me(t)&&!ut(t);){if(rr(t))return t;if(Jt(t))return null;t=Be(t)}return null}function or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ut(e){return["html","body","#document"].includes(lt(e))}function Ce(e){return me(e).getComputedStyle(e)}function Qt(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Ae(e);return Ns(t)?t.host:t}function ks(e){const t=Be(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&xt(t)?t:ks(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ks(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=me(o);if(s){const i=sr(a);return t.concat(a,a.visualViewport||[],xt(o)?o:[],i&&n?wt(i):[])}return t.concat(o,wt(o,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Kt(n)!==s||Kt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function ar(e){return ye(e)?e:e.contextElement}function dt(e){const t=ar(e);if(!Me(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Is(t);let a=(s?Kt(n.width):n.width)/r,i=(s?Kt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Wu=Re(0);function Ds(e){const t=me(e);return!or()||!t.visualViewport?Wu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ar(e);let a=Re(1);t&&(r?ye(r)&&(a=dt(r)):a=dt(e));const i=zu(s,n,r)?Ds(s):Re(0);let c=(o.left+i.x)/a.x,f=(o.top+i.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(s){const m=me(s),g=r&&ye(r)?me(r):r;let b=m,h=sr(b);for(;h&&r&&g!==b;){const x=dt(h),v=h.getBoundingClientRect(),y=Ce(h),E=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,S=v.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,f*=x.y,u*=x.x,d*=x.y,c+=E,f+=S,b=me(h),h=sr(b)}}return Xt({width:u,height:d,x:c,y:f})}function ir(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:Xe(Ae(e)).left+n}function js(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ir(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Bu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ae(r),i=t?Jt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},f=Re(1);const u=Re(0),d=Me(r);if((d||!d&&!s)&&((lt(r)!=="body"||xt(a))&&(c=Qt(r)),Me(r))){const g=Xe(r);f=dt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=a&&!d&&!s?js(a,c,!0):Re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-c.scrollTop*f.y+u.y+m.y}}function Gu(e){return Array.from(e.getClientRects())}function Uu(e){const t=Ae(e),n=Qt(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ir(e);const i=-n.scrollTop;return Ce(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Ku(e,t){const n=me(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=or();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i,y:c}}function Yu(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Me(e)?dt(e):Re(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:a,height:i,x:c,y:f}}function Ls(e,t,n){let r;if(t==="viewport")r=Ku(e,n);else if(t==="document")r=Uu(Ae(e));else if(ye(t))r=Yu(t,n);else{const o=Ds(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xt(r)}function Fs(e,t){const n=Be(e);return n===t||!ye(n)||ut(n)?!1:Ce(n).position==="fixed"||Fs(n,t)}function qu(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(i=>ye(i)&<(i)!=="body"),o=null;const s=Ce(e).position==="fixed";let a=s?Be(e):e;for(;ye(a)&&!ut(a);){const i=Ce(a),c=rr(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xt(a)&&!c&&Fs(e,a))?r=r.filter(u=>u!==a):o=i,a=Be(a)}return t.set(e,r),r}function Xu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Jt(t)?[]:qu(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((f,u)=>{const d=Ls(t,u,o);return f.top=pe(d.top,f.top),f.right=ze(d.right,f.right),f.bottom=ze(d.bottom,f.bottom),f.left=pe(d.left,f.left),f},Ls(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Zu(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function Ju(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",a=Xe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=ir(o)}if(r||!r&&!s)if((lt(t)!=="body"||xt(o))&&(i=Qt(t)),r){const g=Xe(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&f();s&&!r&&o&&f();const u=o&&!r&&!s?js(o,i):Re(0),d=a.left+i.scrollLeft-c.x-u.x,m=a.top+i.scrollTop-c.y-u.y;return{x:d,y:m,width:a.width,height:a.height}}function cr(e){return Ce(e).position==="static"}function $s(e,t){if(!Me(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ae(e)===n&&(n=n.ownerDocument.body),n}function Vs(e,t){const n=me(e);if(Jt(e))return n;if(!Me(e)){let o=Be(e);for(;o&&!ut(o);){if(ye(o)&&!cr(o))return o;o=Be(o)}return n}let r=$s(e,t);for(;r&&Vu(r)&&cr(r);)r=$s(r,t);return r&&ut(r)&&cr(r)&&!rr(r)?n:r||Hu(e)||n}const Qu=async function(e){const t=this.getOffsetParent||Vs,n=this.getDimensions,r=await n(e.floating);return{reference:Ju(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ed(e){return Ce(e).direction==="rtl"}const td={convertOffsetParentRelativeRectToViewportRelativeRect:Bu,getDocumentElement:Ae,getClippingRect:Xu,getOffsetParent:Vs,getElementRects:Qu,getClientRects:Gu,getDimensions:Zu,getScale:dt,isElement:ye,isRTL:ed};function Hs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nd(e,t){let n=null,r;const o=Ae(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(i||t(),!m||!g)return;const b=Yt(d),h=Yt(o.clientWidth-(u+m)),x=Yt(o.clientHeight-(d+g)),v=Yt(u),E={rootMargin:-b+"px "+-h+"px "+-x+"px "+-v+"px",threshold:pe(0,ze(1,c))||1};let S=!0;function _(M){const A=M[0].intersectionRatio;if(A!==c){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Hs(f,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function rd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=ar(e),u=o||s?[...f?wt(f):[],...wt(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=f&&i?nd(f,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),f&&!c&&g.observe(f),g.observe(t));let b,h=c?Xe(e):null;c&&x();function x(){const v=Xe(e);h&&!Hs(h,v)&&n(),h=v,b=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const od=ju,sd=Lu,ad=ku,id=$u,cd=Iu,Ws=Nu,ld=Fu,ud=(e,t,n)=>{const r=new Map,o={platform:td,...n},s={...o.platform,_c:r};return Pu(e,t,{...o,platform:s})};var dd=typeof document<"u",fd=function(){},en=dd?k.useLayoutEffect:fd;function tn(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(!tn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!tn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bs(e,t){const n=zs(e);return Math.round(t*n)/n}function lr(e){const t=l.useRef(e);return en(()=>{t.current=e}),t}function pd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:f}=e,[u,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(r);tn(m,r)||g(r);const[b,h]=l.useState(null),[x,v]=l.useState(null),y=l.useCallback(R=>{R!==M.current&&(M.current=R,h(R))},[]),E=l.useCallback(R=>{R!==A.current&&(A.current=R,v(R))},[]),S=s||b,_=a||x,M=l.useRef(null),A=l.useRef(null),C=l.useRef(u),I=c!=null,D=lr(c),G=lr(o),z=lr(f),V=l.useCallback(()=>{if(!M.current||!A.current)return;const R={placement:t,strategy:n,middleware:m};G.current&&(R.platform=G.current),ud(M.current,A.current,R).then(O=>{const w={...O,isPositioned:z.current!==!1};H.current&&!tn(C.current,w)&&(C.current=w,Or.flushSync(()=>{d(w)}))})},[m,t,n,G,z]);en(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[f]);const H=l.useRef(!1);en(()=>(H.current=!0,()=>{H.current=!1}),[]),en(()=>{if(S&&(M.current=S),_&&(A.current=_),S&&_){if(D.current)return D.current(S,_,V);V()}},[S,_,V,D,I]);const q=l.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:E}),[y,E]),F=l.useMemo(()=>({reference:S,floating:_}),[S,_]),U=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!F.floating)return R;const O=Bs(F.floating,u.x),w=Bs(F.floating,u.y);return i?{...R,transform:"translate("+O+"px, "+w+"px)",...zs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,i,F.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:V,refs:q,elements:F,floatingStyles:U}),[u,V,q,F,U])}const md=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?Ws({element:r.current,padding:o}).fn(n):{}:r?Ws({element:r,padding:o}).fn(n):{}}}},hd=(e,t)=>({...od(e),options:[e,t]}),gd=(e,t)=>({...sd(e),options:[e,t]}),vd=(e,t)=>({...ld(e),options:[e,t]}),bd=(e,t)=>({...ad(e),options:[e,t]}),xd=(e,t)=>({...id(e),options:[e,t]}),wd=(e,t)=>({...cd(e),options:[e,t]}),yd=(e,t)=>({...md(e),options:[e,t]});var Cd="Arrow",Gs=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ne.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gs.displayName=Cd;var Ed=Gs;function Sd(e){const[t,n]=l.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,i=f.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ur="Popper",[Us,nn]=Ye(ur),[Rd,Ks]=Us(ur),Ys=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(Rd,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ys.displayName=ur;var qs="PopperAnchor",Xs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ks(qs,n),a=l.useRef(null),i=ae(t,a);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ne.div,{...o,ref:i})});Xs.displayName=qs;var dr="PopperContent",[_d,Ad]=Us(dr),Zs=l.forwardRef((e,t)=>{var K,Q,ee,se,Ee,Ge;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,x=Ks(dr,n),[v,y]=l.useState(null),E=ae(t,Z=>y(Z)),[S,_]=l.useState(null),M=Sd(S),A=(M==null?void 0:M.width)??0,C=(M==null?void 0:M.height)??0,I=r+(s!=="center"?"-"+s:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},G=Array.isArray(f)?f:[f],z=G.length>0,V={padding:D,boundary:G.filter(Od),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=pd({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>rd(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[hd({mainAxis:o+C,alignmentAxis:a}),c&&gd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?vd():void 0,...V}),c&&bd({...V}),xd({...V,apply:({elements:Z,rects:J,availableWidth:ce,availableHeight:re})=>{const{width:he,height:Ue}=J.reference,oe=Z.floating.style;oe.setProperty("--radix-popper-available-width",`${ce}px`),oe.setProperty("--radix-popper-available-height",`${re}px`),oe.setProperty("--radix-popper-anchor-width",`${he}px`),oe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),S&&yd({element:S,padding:i}),Td({arrowWidth:A,arrowHeight:C}),m&&wd({strategy:"referenceHidden",...V})]}),[O,w]=ea(F),N=Ne(b);He(()=>{U&&(N==null||N())},[U,N]);const j=(K=R.arrow)==null?void 0:K.x,$=(Q=R.arrow)==null?void 0:Q.y,X=((ee=R.arrow)==null?void 0:ee.centerOffset)!==0,[te,le]=l.useState();return He(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ge=R.hide)==null?void 0:Ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(_d,{scope:n,placedSide:O,onArrowChange:_,arrowX:j,arrowY:$,shouldHideArrow:X,children:p.jsx(ne.div,{"data-side":O,"data-align":w,...h,ref:E,style:{...h.style,animation:U?void 0:"none"}})})})});Zs.displayName=dr;var Js="PopperArrow",Md={top:"bottom",right:"left",bottom:"top",left:"right"},Qs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ad(Js,r),a=Md[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Ed,{...o,ref:n,style:{...o.style,display:"block"}})})});Qs.displayName=Js;function Od(e){return e!==null}var Td=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,u]=ea(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=a?d:`${m}px`,h=`${-c}px`):f==="top"?(b=a?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=a?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=a?d:`${g}px`),{data:{x:b,y:h}}}});function ea(e){const[t,n="center"]=e.split("-");return[t,n]}var Pd=Ys,ta=Xs,na=Zs,ra=Qs,Nd=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"}),kd="VisuallyHidden",oa=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...Nd,...e.style}}));oa.displayName=kd;var Id=oa,[rn,E0]=Ye("Tooltip",[nn]),fr=nn(),sa="TooltipProvider",Dd=700,aa="tooltip.open",[jd,ia]=rn(sa),ca=e=>{const{__scopeTooltip:t,delayDuration:n=Dd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx(jd,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(f=>{i.current=f},[]),disableHoverableContent:o,children:s})};ca.displayName=sa;var la="Tooltip",[S0,on]=rn(la),pr="TooltipTrigger",Ld=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(pr,n),s=ia(pr,n),a=fr(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),f=l.useRef(!1),u=l.useRef(!1),d=l.useCallback(()=>f.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(ta,{asChild:!0,...a,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});Ld.displayName=pr;var Fd="TooltipPortal",[R0,$d]=rn(Fd,{forceMount:void 0}),ft="TooltipContent",ua=l.forwardRef((e,t)=>{const n=$d(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=on(ft,e.__scopeTooltip);return p.jsx(ke,{present:r||a.open,children:a.disableHoverableContent?p.jsx(da,{side:o,...s,ref:t}):p.jsx(Vd,{side:o,...s,ref:t})})}),Vd=l.forwardRef((e,t)=>{const n=on(ft,e.__scopeTooltip),r=ia(ft,e.__scopeTooltip),o=l.useRef(null),s=ae(t,o),[a,i]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((b,h)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Gd(v,x.getBoundingClientRect()),E=Ud(v,y),S=Kd(h.getBoundingClientRect()),_=qd([...E,...S]);i(_),d(!0)},[d]);return l.useEffect(()=>()=>m(),[m]),l.useEffect(()=>{if(c&&u){const b=x=>g(x,u),h=x=>g(x,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",h)}}},[c,u,g,m]),l.useEffect(()=>{if(a){const b=h=>{const x=h.target,v={x:h.clientX,y:h.clientY},y=(c==null?void 0:c.contains(x))||(u==null?void 0:u.contains(x)),E=!Yd(v,a);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,a,f,m]),p.jsx(da,{...e,ref:s})}),[Hd,Wd]=rn(la,{isInside:!1}),zd=ic("TooltipContent"),da=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=on(ft,n),f=fr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(aa,u),()=>document.removeEventListener(aa,u)),[u]),l.useEffect(()=>{if(c.trigger){const d=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),p.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(na,{"data-state":c.stateAttribute,...f,...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:[p.jsx(zd,{children:r}),p.jsx(Hd,{scope:n,isInside:!0,children:p.jsx(Id,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ua.displayName=ft;var fa="TooltipArrow",Bd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fr(n);return Wd(fa,n).isInside?null:p.jsx(ra,{...o,...r,ref:t})});Bd.displayName=fa;function Gd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ud(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 Kd(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 Yd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function qd(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),Xd(t)}function Xd(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Zd=ca,pa=ua;const Jd=Zd,Qd=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(pa,{ref:r,sideOffset:t,className:B("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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",e),...n}));Qd.displayName=pa.displayName;const ef="sidebar_state",tf=60*60*24*7,nf="16rem",rf="18rem",of="3rem",sf="b",ma=l.createContext(null);function mr(){const e=l.useContext(ma);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function af({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=dc(),[c,f]=l.useState(!1),[u,d]=l.useState(e),m=t??u,g=l.useCallback(v=>{const y=typeof v=="function"?v(m):v;n?n(y):d(y),document.cookie=`${ef}=${y}; path=/; max-age=${tf}`},[n,m]),b=l.useCallback(()=>i?f(v=>!v):g(v=>!v),[i,g,f]);l.useEffect(()=>{const v=y=>{y.key===sf&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const h=m?"expanded":"collapsed",x=l.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,i,c,f,b]);return p.jsx(ma.Provider,{value:x,children:p.jsx(Jd,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nf,"--sidebar-width-icon":of,...o},className:B("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function cf({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:c,setOpenMobile:f}=mr();return n==="none"?p.jsx("div",{"data-slot":"sidebar",className:B("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?p.jsx(wu,{open:c,onOpenChange:f,...s,children:p.jsxs(Es,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":rf},side:e,children:[p.jsxs(Ss,{className:"sr-only",children:[p.jsx(Rs,{children:"Sidebar"}),p.jsx(_s,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.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:[p.jsx("div",{"data-slot":"sidebar-gap",className:B("relative w-(--sidebar-width) bg-white 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)")}),p.jsx("div",{"data-slot":"sidebar-container",className:B("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),...s,children:p.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function lf({className:e,onClick:t,...n}){const{toggleSidebar:r}=mr();return p.jsxs(Dn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:B("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[p.jsx(oc,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function uf({className:e,...t}){const{toggleSidebar:n}=mr();return p.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:B("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 df({className:e,...t}){return p.jsx("main",{"data-slot":"sidebar-inset",className:B("bg-white 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 ff({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:B("flex flex-col gap-2 p-2",e),...t})}function pf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:B("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function mf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:B("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function hf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:B("w-full text-sm",e),...t})}function gf({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:B("border-sidebar-border mx-3 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 vf({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:B("group/menu-sub-item relative",e),...t})}function bf({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?so:"a";return p.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:B("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})}function xf({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1}){const[a,i]=l.useState(r);return l.useEffect(()=>{s&&i(!0)},[s]),p.jsx(mf,{children:p.jsxs("div",{className:"flex flex-col",children:[p.jsxs("div",{className:"flex flex-row items-center justify-between",children:[p.jsxs("a",{href:t,className:B("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 hover:bg-gray-100",s&&"font-medium"),children:[o&&p.jsx("span",{className:B("text-gray-600",s&&"font-medium"),children:o}),p.jsx("span",{className:B(s&&"font-medium"),children:e})]}),p.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:c=>{c.preventDefault(),c.stopPropagation(),i(!a)},"aria-label":a?"Collapse section":"Expand section",children:a?p.jsx(tc,{className:"h-4 w-4"}):p.jsx(nc,{className:"h-4 w-4"})})]}),p.jsx("div",{className:B("overflow-hidden transition-all",a?"max-h-96":"max-h-0"),children:n})]})})}const wf="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e",yf={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:p.jsx(ec,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/overall-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/organic-performance",icon:p.jsx(to,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/paid-performance",icon:p.jsx(Qi,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/keyword-performance",icon:p.jsx(to,{className:"h-4 w-4"})},{title:"More Components",url:"/more-components",icon:p.jsx(Ji,{className:"h-4 w-4"})}]}]};function Cf({...e}){return p.jsxs(cf,{...e,children:[p.jsx(ff,{children:p.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:p.jsx("img",{src:wf,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),p.jsxs(pf,{children:[p.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:p.jsx("div",{className:"flex flex-col",children:p.jsxs("a",{href:"/home",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2","hover:bg-gray-100"),children:[p.jsx(no,{className:B("h-5 w-5","text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),yf.navMain.map(t=>p.jsx(xf,{title:t.title,url:t.url,icon:t.icon,children:p.jsx(hf,{children:p.jsx(gf,{children:t.items.map(n=>p.jsx(vf,{children:p.jsx(bf,{asChild:!0,children:p.jsxs("a",{href:n.url,className:B("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground"),children:[p.jsx("span",{className:B("text-muted-foreground"),children:n.icon}),p.jsx("span",{className:B("text-muted-foreground"),children:n.title})]})})},n.title))})})},t.title))]}),p.jsx(uf,{})]})}function ha(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,y=k.useRef(null),E=k.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:E,collectionRef:y,children:v})};a.displayName=t;const i=e+"CollectionSlot",c=Qe(i),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(i,v),S=ae(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=i;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=Qe(u),g=k.forwardRef((h,x)=>{const{scope:v,children:y,...E}=h,S=k.useRef(null),_=ae(x,S),M=s(u,v);return k.useEffect(()=>(M.itemMap.set(S,{ref:S,...E}),()=>void M.itemMap.delete(S))),p.jsx(m,{[d]:"",ref:_,children:y})});g.displayName=u;function b(h){const x=s(e+"CollectionConsumer",h);return k.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const E=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((M,A)=>E.indexOf(M.ref.current)-E.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},b,r]}var Ef=l.createContext(void 0);function ga(e){const t=l.useContext(Ef);return e||t||"ltr"}var hr="rovingFocusGroup.onEntryFocus",Sf={bubbles:!1,cancelable:!0},yt="RovingFocusGroup",[gr,va,Rf]=ha(yt),[_f,ba]=Ye(yt,[Rf]),[Af,Mf]=_f(yt),xa=l.forwardRef((e,t)=>p.jsx(gr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(gr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Of,{...e,ref:t})})}));xa.displayName=yt;var Of=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ae(t,m),b=ga(s),[h,x]=jn({prop:a,defaultProp:i??null,onChange:c,caller:yt}),[v,y]=l.useState(!1),E=Ne(f),S=va(n),_=l.useRef(!1),[M,A]=l.useState(0);return l.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(hr,E),()=>C.removeEventListener(hr,E)},[E]),p.jsx(Af,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:l.useCallback(C=>x(C),[x]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:l.useCallback(()=>A(C=>C-1),[]),children:p.jsx(ne.div,{tabIndex:v||M===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{_.current=!0}),onFocus:L(e.onFocus,C=>{const I=!_.current;if(C.target===C.currentTarget&&I&&!v){const D=new CustomEvent(hr,Sf);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const G=S().filter(F=>F.focusable),z=G.find(F=>F.active),V=G.find(F=>F.id===h),q=[z,V,...G].filter(Boolean).map(F=>F.ref.current);Ca(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),wa="RovingFocusGroupItem",ya=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=rt(),f=s||c,u=Mf(wa,n),d=u.currentTabStopId===f,m=va(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=u;return l.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),p.jsx(gr.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,x=>{r?u.onItemFocus(f):x.preventDefault()}),onFocus:L(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:L(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Nf(x,u.orientation,u.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=u.loop?kf(E,S+1):E.slice(S+1)}setTimeout(()=>Ca(E))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:h!=null}):a})})});ya.displayName=wa;var Tf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Nf(e,t,n){const r=Pf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tf[r]}function Ca(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var If=xa,Df=ya,vr=["Enter"," "],jf=["ArrowDown","PageUp","Home"],Ea=["ArrowUp","PageDown","End"],Lf=[...jf,...Ea],Ff={ltr:[...vr,"ArrowRight"],rtl:[...vr,"ArrowLeft"]},$f={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[Et,Vf,Hf]=ha(Ct),[Ze,Sa]=Ye(Ct,[Hf,nn,ba]),sn=nn(),Ra=ba(),[Wf,Je]=Ze(Ct),[zf,St]=Ze(Ct),_a=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=sn(t),[c,f]=l.useState(null),u=l.useRef(!1),d=Ne(s),m=ga(o);return l.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),p.jsx(Pd,{...i,children:p.jsx(Wf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(zf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:a,children:r})})})};_a.displayName=Ct;var Bf="MenuAnchor",br=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sn(n);return p.jsx(ta,{...o,...r,ref:t})});br.displayName=Bf;var xr="MenuPortal",[Gf,Aa]=Ze(xr,{forceMount:void 0}),Ma=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Je(xr,t);return p.jsx(Gf,{scope:t,forceMount:n,children:p.jsx(ke,{present:n||s.open,children:p.jsx(Hn,{asChild:!0,container:o,children:r})})})};Ma.displayName=xr;var ge="MenuContent",[Uf,wr]=Ze(ge),Oa=l.forwardRef((e,t)=>{const n=Aa(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),a=St(ge,e.__scopeMenu);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(Kf,{...o,ref:t}):p.jsx(Yf,{...o,ref:t})})})})}),Kf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return ns(s)},[]),p.jsx(yr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Yf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu);return p.jsx(yr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qf=Qe("MenuContent.ScrollLock"),yr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,x=Je(ge,n),v=St(ge,n),y=sn(n),E=Ra(n),S=Vf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ae(t,A,x.onContentChange),I=l.useRef(0),D=l.useRef(""),G=l.useRef(0),z=l.useRef(null),V=l.useRef("right"),H=l.useRef(0),q=b?Kn:l.Fragment,F=b?{as:qf,allowPinchZoom:!0}:void 0,U=O=>{var K,Q;const w=D.current+O,N=S().filter(ee=>!ee.disabled),j=document.activeElement,$=(K=N.find(ee=>ee.ref.current===j))==null?void 0:K.textValue,X=N.map(ee=>ee.textValue),te=ip(X,w,$),le=(Q=N.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(se){D.current=se,window.clearTimeout(I.current),se!==""&&(I.current=window.setTimeout(()=>ee(""),1e3))})(w),le&&setTimeout(()=>le.focus())};l.useEffect(()=>()=>window.clearTimeout(I.current),[]),Ho();const R=l.useCallback(O=>{var N,j;return V.current===((N=z.current)==null?void 0:N.side)&&lp(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Uf,{scope:n,searchRef:D,onItemEnter:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:l.useCallback(O=>{var w;R(O)||((w=A.current)==null||w.focus(),M(null))},[R]),onTriggerLeave:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:G,onPointerGraceIntentChange:l.useCallback(O=>{z.current=O},[]),children:p.jsx(q,{...F,children:p.jsx(Vn,{asChild:!0,trapped:o,onMountAutoFocus:L(s,O=>{var w;O.preventDefault(),(w=A.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(jt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(If,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:L(c,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(na,{role:"menu","aria-orientation":"vertical","data-state":Ua(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,O=>{const N=O.target.closest("[data-radix-menu-content]")===O.currentTarget,j=O.ctrlKey||O.altKey||O.metaKey,$=O.key.length===1;N&&(O.key==="Tab"&&O.preventDefault(),!j&&$&&U(O.key));const X=A.current;if(O.target!==X||!Lf.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Ea.includes(O.key)&&le.reverse(),sp(le)}),onBlur:L(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(I.current),D.current="")}),onPointerMove:L(e.onPointerMove,_t(O=>{const w=O.target,N=H.current!==O.clientX;if(O.currentTarget.contains(w)&&N){const j=O.clientX>H.current?"right":"left";V.current=j,H.current=O.clientX}}))})})})})})})});Oa.displayName=ge;var Xf="MenuGroup",Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Cr.displayName=Xf;var Zf="MenuLabel",Ta=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Ta.displayName=Zf;var an="MenuItem",Pa="menu.itemSelect",cn=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=St(an,e.__scopeMenu),i=wr(an,e.__scopeMenu),c=ae(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(Pa,{bubbles:!0,cancelable:!0});d.addEventListener(Pa,g=>r==null?void 0:r(g),{once:!0}),Ao(d,m),m.defaultPrevented?f.current=!1:a.onClose()}};return p.jsx(Na,{...o,ref:c,disabled:n,onClick:L(e.onClick,u),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),f.current=!0},onPointerUp:L(e.onPointerUp,d=>{var m;f.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:L(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||vr.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});cn.displayName=an;var Na=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=wr(an,n),i=Ra(n),c=l.useRef(null),f=ae(t,c),[u,d]=l.useState(!1),[m,g]=l.useState("");return l.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[s.children]),p.jsx(Et.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(Df,{asChild:!0,...i,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:f,onPointerMove:L(e.onPointerMove,_t(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,_t(b=>a.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),Jf="MenuCheckboxItem",ka=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Fa,{scope:e.__scopeMenu,checked:n,children:p.jsx(cn,{role:"menuitemcheckbox","aria-checked":ln(n)?"mixed":n,...o,ref:t,"data-state":Sr(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(ln(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ka.displayName=Jf;var Ia="MenuRadioGroup",[Qf,ep]=Ze(Ia,{value:void 0,onValueChange:()=>{}}),Da=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ne(r);return p.jsx(Qf,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Cr,{...o,ref:t})})});Da.displayName=Ia;var ja="MenuRadioItem",La=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=ep(ja,e.__scopeMenu),s=n===o.value;return p.jsx(Fa,{scope:e.__scopeMenu,checked:s,children:p.jsx(cn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Sr(s),onSelect:L(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});La.displayName=ja;var Er="MenuItemIndicator",[Fa,tp]=Ze(Er,{checked:!1}),$a=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=tp(Er,n);return p.jsx(ke,{present:r||ln(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Sr(s.checked)})})});$a.displayName=Er;var np="MenuSeparator",Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Va.displayName=np;var rp="MenuArrow",Ha=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=sn(n);return p.jsx(ra,{...o,...r,ref:t})});Ha.displayName=rp;var op="MenuSub",[_0,Wa]=Ze(op),Rt="MenuSubTrigger",za=l.forwardRef((e,t)=>{const n=Je(Rt,e.__scopeMenu),r=St(Rt,e.__scopeMenu),o=Wa(Rt,e.__scopeMenu),s=wr(Rt,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),c(null)}},[i,c]),p.jsx(br,{asChild:!0,...f,children:p.jsx(Na,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ua(n.open),...e,ref:kt(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,_t(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:L(e.onPointerLeave,_t(d=>{var g,b;u();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,x=h==="right",v=x?-5:5,y=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:y,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var g;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||Ff[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});za.displayName=Rt;var Ba="MenuSubContent",Ga=l.forwardRef((e,t)=>{const n=Aa(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),a=St(ge,e.__scopeMenu),i=Wa(Ba,e.__scopeMenu),c=l.useRef(null),f=ae(t,c);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:p.jsx(yr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=$f[a.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=i.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ga.displayName=Ba;function Ua(e){return e?"open":"closed"}function ln(e){return e==="indeterminate"}function Sr(e){return ln(e)?"indeterminate":e?"checked":"unchecked"}function sp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ip(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ap(e,Math.max(s,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function cp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function lp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return cp(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var up=_a,dp=br,fp=Ma,pp=Oa,mp=Cr,hp=Ta,gp=cn,vp=ka,bp=Da,xp=La,wp=$a,yp=Va,Cp=Ha,Ep=za,Sp=Ga,un="DropdownMenu",[Rp,A0]=Ye(un,[Sa]),de=Sa(),[_p,Ka]=Rp(un),Ya=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,c=de(t),f=l.useRef(null),[u,d]=jn({prop:o,defaultProp:s??!1,onChange:a,caller:un});return p.jsx(_p,{scope:t,triggerId:rt(),triggerRef:f,contentId:rt(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:i,children:p.jsx(up,{...c,open:u,onOpenChange:d,dir:r,modal:i,children:n})})};Ya.displayName=un;var qa="DropdownMenuTrigger",Xa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Ka(qa,n),a=de(n);return p.jsx(dp,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:kt(t,s.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Xa.displayName=qa;var Ap="DropdownMenuPortal",Za=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(fp,{...r,...n})};Za.displayName=Ap;var Ja="DropdownMenuContent",Qa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ka(Ja,n),s=de(n),a=l.useRef(!1);return p.jsx(pp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const c=i.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(a.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)"}})});Qa.displayName=Ja;var Mp="DropdownMenuGroup",Op=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(mp,{...o,...r,ref:t})});Op.displayName=Mp;var Tp="DropdownMenuLabel",ei=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(hp,{...o,...r,ref:t})});ei.displayName=Tp;var Pp="DropdownMenuItem",ti=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gp,{...o,...r,ref:t})});ti.displayName=Pp;var Np="DropdownMenuCheckboxItem",kp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vp,{...o,...r,ref:t})});kp.displayName=Np;var Ip="DropdownMenuRadioGroup",Dp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});Dp.displayName=Ip;var jp="DropdownMenuRadioItem",Lp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});Lp.displayName=jp;var Fp="DropdownMenuItemIndicator",$p=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});$p.displayName=Fp;var Vp="DropdownMenuSeparator",ni=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});ni.displayName=Vp;var Hp="DropdownMenuArrow",Wp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});Wp.displayName=Hp;var zp="DropdownMenuSubTrigger",Bp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});Bp.displayName=zp;var Gp="DropdownMenuSubContent",Up=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...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)"}})});Up.displayName=Gp;var Kp=Ya,Yp=Xa,qp=Za,Xp=Qa,Zp=ei,Jp=ti,Qp=ni;function e0({...e}){return p.jsx(Kp,{"data-slot":"dropdown-menu",...e})}function t0({...e}){return p.jsx(Yp,{"data-slot":"dropdown-menu-trigger",...e})}function n0({className:e,sideOffset:t=4,...n}){return p.jsx(qp,{children:p.jsx(Xp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:B("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 ri({className:e,inset:t,variant:n="default",...r}){return p.jsx(Jp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:B("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 r0({className:e,inset:t,...n}){return p.jsx(Zp,{"data-slot":"dropdown-menu-label","data-inset":t,className:B("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function o0({className:e,...t}){return p.jsx(Qp,{"data-slot":"dropdown-menu-separator",className:B("bg-border -mx-1 my-1 h-px",e),...t})}const s0=()=>{const{user:e,error:t,isLoading:n}=Gi(),r=()=>{window.location.href="/auth/logout"};return n?p.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):t?p.jsxs("div",{children:["Error: ",t.message]}):e?p.jsx("div",{className:"relative flex items-center gap-3",children:p.jsxs(e0,{children:[p.jsx(t0,{asChild:!0,children:p.jsx(Dn,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:e.picture?p.jsx("img",{src:e.picture,alt:e.name||"User profile",width:40,height:40,className:"rounded-full"}):p.jsx(ro,{className:"h-5 w-5 text-gray-500"})})}),p.jsxs(n0,{align:"end",className:"w-72",children:[p.jsx(r0,{children:p.jsx("div",{className:"flex flex-col space-y-1",children:p.jsxs("div",{className:"flex flex-col space-y-1",children:[p.jsx("p",{className:"text-xs text-gray-500",children:e.name}),p.jsx("p",{className:"truncate text-xs text-gray-500",children:e.email})]})})}),p.jsx(o0,{}),p.jsx(ri,{asChild:!0,children:p.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[p.jsx(ro,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Profile"})]})}),p.jsxs(ri,{onClick:r,children:[p.jsx(rc,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},a0=()=>p.jsx("div",{className:"sticky top-0 z-50",children:p.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[p.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[p.jsx(lf,{}),p.jsx(Po,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(s0,{})})]})}),i0=({children:e})=>p.jsx(Ui,{children:p.jsx(af,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(Cf,{}),p.jsxs(df,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(a0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});Fe.GLICloudProvider=i0,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
|
|
157
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},hu="DialogDescriptionWarning",gu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bs(hu).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vu=ss,bu=cs,xs=ls,ws=us,ys=fs,Cs=ms,xu=gs;const wu=vu,yu=bu,Es=l.forwardRef(({className:e,...t},n)=>p.jsx(xs,{className:B("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Es.displayName=xs.displayName;const Cu=po("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ss=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(yu,{children:[p.jsx(Es,{}),p.jsxs(ws,{ref:o,className:B(Cu({side:e}),t),...r,children:[n,p.jsxs(xu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(sc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ss.displayName=ws.displayName;const Rs=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col space-y-2 text-center sm:text-left",e),...t});Rs.displayName="SheetHeader";const _s=l.forwardRef(({className:e,...t},n)=>p.jsx(ys,{ref:n,className:B("text-lg font-semibold text-foreground",e),...t}));_s.displayName=ys.displayName;const As=l.forwardRef(({className:e,...t},n)=>p.jsx(Cs,{ref:n,className:B("text-sm text-muted-foreground",e),...t}));As.displayName=Cs.displayName;const Eu=["top","right","bottom","left"],ze=Math.min,pe=Math.max,Yt=Math.round,qt=Math.floor,Re=e=>({x:e,y:e}),Su={left:"right",right:"left",bottom:"top",top:"bottom"},Ru={start:"end",end:"start"};function Qn(e,t,n){return pe(e,ze(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function er(e){return e==="x"?"y":"x"}function tr(e){return e==="y"?"height":"width"}function _e(e){return["top","bottom"].includes(De(e))?"y":"x"}function nr(e){return er(_e(e))}function _u(e,t,n){n===void 0&&(n=!1);const r=lt(e),o=nr(e),s=tr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Xt(a)),[a,Xt(a)]}function Au(e){const t=Xt(e);return[rr(e),t,rr(t)]}function rr(e){return e.replace(/start|end/g,t=>Ru[t])}function Mu(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Ou(e,t,n,r){const o=lt(e);let s=Mu(De(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(rr)))),s}function Xt(e){return e.replace(/left|right|bottom|top/g,t=>Su[t])}function Tu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ms(e){return typeof e!="number"?Tu(e):{top:e,right:e,bottom:e,left:e}}function Zt(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 Os(e,t,n){let{reference:r,floating:o}=e;const s=_e(t),a=nr(t),i=tr(a),c=De(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(lt(t)){case"start":g[a]-=m*(n&&f?-1:1);break;case"end":g[a]+=m*(n&&f?-1:1);break}return g}const Pu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Os(f,r,c),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:x,fn:v}=i[h],{x:y,y:E,data:S,reset:_}=await v({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=y??u,d=E??d,g={...g,[x]:{...g[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(f=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=Os(f,m,c)),h=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:g}};async function xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=Ie(t,e),b=Ms(g),x=i[m?d==="floating"?"reference":"floating":d],v=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:E,strategy:c}):y);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const Nu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:f,padding:u=0}=Ie(e,t)||{};if(f==null)return{};const d=Ms(u),m={x:n,y:r},g=nr(o),b=tr(g),h=await a.getDimensions(f),x=g==="y",v=x?"top":"left",y=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[g]-m[g]-s.floating[b],_=m[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(a.isElement==null?void 0:a.isElement(M)))&&(A=i.floating[E]||s.floating[b]);const C=S/2-_/2,I=A/2-h[b]/2-1,D=ze(d[v],I),G=ze(d[y],I),z=D,V=A-h[b]-G,H=A/2-h[b]/2+C,q=Qn(z,H,V),F=!c.arrow&<(o)!=null&&H!==q&&s.reference[b]/2-(H<z?D:G)-h[b]/2<0,U=F?H<z?H-z:H-V:0;return{[g]:m[g]+U,data:{[g]:q,centerOffset:H-q-U,...F&&{alignmentOffset:U}},reset:F}}}),ku=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=De(o),y=_e(i),E=De(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[Xt(i)]:Au(i)),M=b!=="none";!m&&M&&_.push(...Ou(i,h,b,S));const A=[i,..._],C=await xt(t,x),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(C[v]),d){const H=_u(o,a,S);I.push(C[H[0]],C[H[1]])}if(D=[...D,{placement:o,overflows:I}],!I.every(H=>H<=0)){var G,z;const H=(((G=s.flip)==null?void 0:G.index)||0)+1,q=A[H];if(q&&(!(d==="alignment"?y!==_e(q):!1)||D.every(R=>R.overflows[0]>0&&_e(R.placement)===y)))return{data:{index:H,overflows:D},reset:{placement:q}};let F=(z=D.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:z.placement;if(!F)switch(g){case"bestFit":{var V;const U=(V=D.filter(R=>{if(M){const O=_e(R.placement);return O===y||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:V[0];U&&(F=U);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Ts(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ps(e){return Eu.some(t=>e[t]>=0)}const Iu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ie(e,t);switch(r){case"referenceHidden":{const s=await xt(t,{...o,elementContext:"reference"}),a=Ts(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ps(a)}}}case"escaped":{const s=await xt(t,{...o,altBoundary:!0}),a=Ts(s,n.floating);return{data:{escapedOffsets:a,escaped:Ps(a)}}}default:return{}}}}};async function Du(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=De(n),i=lt(n),c=_e(n)==="y",f=["left","top"].includes(a)?-1:1,u=s&&c?-1:1,d=Ie(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),c?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const ju=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await Du(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Lu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=Ie(e,t),f={x:n,y:r},u=await xt(t,c),d=_e(De(o)),m=er(d);let g=f[m],b=f[d];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+u[x],E=g-u[v];g=Qn(y,g,E)}if(a){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=b+u[x],E=b-u[v];b=Qn(y,b,E)}const h=i.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:a}}}}}},Fu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:f=!0}=Ie(e,t),u={x:n,y:r},d=_e(o),m=er(d);let g=u[m],b=u[d];const h=Ie(i,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;g<S?g=S:g>_&&(g=_)}if(f){var v,y;const E=m==="y"?"width":"height",S=["top","left"].includes(De(o)),_=s.reference[d]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);b<_?b=_:b>M&&(b=M)}return{[m]:g,[d]:b}}}},$u=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...f}=Ie(e,t),u=await xt(t,f),d=De(o),m=lt(o),g=_e(o)==="y",{width:b,height:h}=s.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,x=m==="end"?"top":"bottom");const y=h-u.top-u.bottom,E=b-u.left-u.right,S=ze(h-u[x],y),_=ze(b-u[v],E),M=!t.middlewareData.shift;let A=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!m){const D=pe(u.left,0),G=pe(u.right,0),z=pe(u.top,0),V=pe(u.bottom,0);g?C=b-2*(D!==0||G!==0?D+G:pe(u.left,u.right)):A=h-2*(z!==0||V!==0?z+V:pe(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:A});const I=await a.getDimensions(i.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function ut(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return Jt()?e instanceof Node||e instanceof me(e).Node:!1}function ye(e){return Jt()?e instanceof Element||e instanceof me(e).Element:!1}function Me(e){return Jt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function ks(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Vu(e){return["table","td","th"].includes(ut(e))}function Qt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function or(e){const t=sr(),n=ye(e)?Ce(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Hu(e){let t=Be(e);for(;Me(t)&&!dt(t);){if(or(t))return t;if(Qt(t))return null;t=Be(t)}return null}function sr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(e){return["html","body","#document"].includes(ut(e))}function Ce(e){return me(e).getComputedStyle(e)}function en(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ks(e)&&e.host||Ae(e);return ks(t)?t.host:t}function Is(e){const t=Be(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&wt(t)?t:Is(t)}function yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Is(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=me(o);if(s){const i=ar(a);return t.concat(a,a.visualViewport||[],wt(o)?o:[],i&&n?yt(i):[])}return t.concat(o,yt(o,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ds(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Yt(n)!==s||Yt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function ir(e){return ye(e)?e:e.contextElement}function ft(e){const t=ir(e);if(!Me(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ds(t);let a=(s?Yt(n.width):n.width)/r,i=(s?Yt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Wu=Re(0);function js(e){const t=me(e);return!sr()||!t.visualViewport?Wu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Ze(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ir(e);let a=Re(1);t&&(r?ye(r)&&(a=ft(r)):a=ft(e));const i=zu(s,n,r)?js(s):Re(0);let c=(o.left+i.x)/a.x,f=(o.top+i.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(s){const m=me(s),g=r&&ye(r)?me(r):r;let b=m,h=ar(b);for(;h&&r&&g!==b;){const x=ft(h),v=h.getBoundingClientRect(),y=Ce(h),E=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,S=v.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,f*=x.y,u*=x.x,d*=x.y,c+=E,f+=S,b=me(h),h=ar(b)}}return Zt({width:u,height:d,x:c,y:f})}function cr(e,t){const n=en(e).scrollLeft;return t?t.left+n:Ze(Ae(e)).left+n}function Ls(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:cr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Bu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ae(r),i=t?Qt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},f=Re(1);const u=Re(0),d=Me(r);if((d||!d&&!s)&&((ut(r)!=="body"||wt(a))&&(c=en(r)),Me(r))){const g=Ze(r);f=ft(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=a&&!d&&!s?Ls(a,c,!0):Re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-c.scrollTop*f.y+u.y+m.y}}function Gu(e){return Array.from(e.getClientRects())}function Uu(e){const t=Ae(e),n=en(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+cr(e);const i=-n.scrollTop;return Ce(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Ku(e,t){const n=me(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=sr();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i,y:c}}function Yu(e,t){const n=Ze(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Me(e)?ft(e):Re(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:a,height:i,x:c,y:f}}function Fs(e,t,n){let r;if(t==="viewport")r=Ku(e,n);else if(t==="document")r=Uu(Ae(e));else if(ye(t))r=Yu(t,n);else{const o=js(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(r)}function $s(e,t){const n=Be(e);return n===t||!ye(n)||dt(n)?!1:Ce(n).position==="fixed"||$s(n,t)}function qu(e,t){const n=t.get(e);if(n)return n;let r=yt(e,[],!1).filter(i=>ye(i)&&ut(i)!=="body"),o=null;const s=Ce(e).position==="fixed";let a=s?Be(e):e;for(;ye(a)&&!dt(a);){const i=Ce(a),c=or(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||wt(a)&&!c&&$s(e,a))?r=r.filter(u=>u!==a):o=i,a=Be(a)}return t.set(e,r),r}function Xu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Qt(t)?[]:qu(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((f,u)=>{const d=Fs(t,u,o);return f.top=pe(d.top,f.top),f.right=ze(d.right,f.right),f.bottom=ze(d.bottom,f.bottom),f.left=pe(d.left,f.left),f},Fs(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Zu(e){const{width:t,height:n}=Ds(e);return{width:t,height:n}}function Ju(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",a=Ze(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=cr(o)}if(r||!r&&!s)if((ut(t)!=="body"||wt(o))&&(i=en(t)),r){const g=Ze(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&f();s&&!r&&o&&f();const u=o&&!r&&!s?Ls(o,i):Re(0),d=a.left+i.scrollLeft-c.x-u.x,m=a.top+i.scrollTop-c.y-u.y;return{x:d,y:m,width:a.width,height:a.height}}function lr(e){return Ce(e).position==="static"}function Vs(e,t){if(!Me(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ae(e)===n&&(n=n.ownerDocument.body),n}function Hs(e,t){const n=me(e);if(Qt(e))return n;if(!Me(e)){let o=Be(e);for(;o&&!dt(o);){if(ye(o)&&!lr(o))return o;o=Be(o)}return n}let r=Vs(e,t);for(;r&&Vu(r)&&lr(r);)r=Vs(r,t);return r&&dt(r)&&lr(r)&&!or(r)?n:r||Hu(e)||n}const Qu=async function(e){const t=this.getOffsetParent||Hs,n=this.getDimensions,r=await n(e.floating);return{reference:Ju(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ed(e){return Ce(e).direction==="rtl"}const td={convertOffsetParentRelativeRectToViewportRelativeRect:Bu,getDocumentElement:Ae,getClippingRect:Xu,getOffsetParent:Hs,getElementRects:Qu,getClientRects:Gu,getDimensions:Zu,getScale:ft,isElement:ye,isRTL:ed};function Ws(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nd(e,t){let n=null,r;const o=Ae(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(i||t(),!m||!g)return;const b=qt(d),h=qt(o.clientWidth-(u+m)),x=qt(o.clientHeight-(d+g)),v=qt(u),E={rootMargin:-b+"px "+-h+"px "+-x+"px "+-v+"px",threshold:pe(0,ze(1,c))||1};let S=!0;function _(M){const A=M[0].intersectionRatio;if(A!==c){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Ws(f,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function rd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=ir(e),u=o||s?[...f?yt(f):[],...yt(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=f&&i?nd(f,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),f&&!c&&g.observe(f),g.observe(t));let b,h=c?Ze(e):null;c&&x();function x(){const v=Ze(e);h&&!Ws(h,v)&&n(),h=v,b=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const od=ju,sd=Lu,ad=ku,id=$u,cd=Iu,zs=Nu,ld=Fu,ud=(e,t,n)=>{const r=new Map,o={platform:td,...n},s={...o.platform,_c:r};return Pu(e,t,{...o,platform:s})};var dd=typeof document<"u",fd=function(){},tn=dd?k.useLayoutEffect:fd;function nn(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(!nn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!nn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Bs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gs(e,t){const n=Bs(e);return Math.round(t*n)/n}function ur(e){const t=l.useRef(e);return tn(()=>{t.current=e}),t}function pd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:f}=e,[u,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(r);nn(m,r)||g(r);const[b,h]=l.useState(null),[x,v]=l.useState(null),y=l.useCallback(R=>{R!==M.current&&(M.current=R,h(R))},[]),E=l.useCallback(R=>{R!==A.current&&(A.current=R,v(R))},[]),S=s||b,_=a||x,M=l.useRef(null),A=l.useRef(null),C=l.useRef(u),I=c!=null,D=ur(c),G=ur(o),z=ur(f),V=l.useCallback(()=>{if(!M.current||!A.current)return;const R={placement:t,strategy:n,middleware:m};G.current&&(R.platform=G.current),ud(M.current,A.current,R).then(O=>{const w={...O,isPositioned:z.current!==!1};H.current&&!nn(C.current,w)&&(C.current=w,Tr.flushSync(()=>{d(w)}))})},[m,t,n,G,z]);tn(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[f]);const H=l.useRef(!1);tn(()=>(H.current=!0,()=>{H.current=!1}),[]),tn(()=>{if(S&&(M.current=S),_&&(A.current=_),S&&_){if(D.current)return D.current(S,_,V);V()}},[S,_,V,D,I]);const q=l.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:E}),[y,E]),F=l.useMemo(()=>({reference:S,floating:_}),[S,_]),U=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!F.floating)return R;const O=Gs(F.floating,u.x),w=Gs(F.floating,u.y);return i?{...R,transform:"translate("+O+"px, "+w+"px)",...Bs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,i,F.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:V,refs:q,elements:F,floatingStyles:U}),[u,V,q,F,U])}const md=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?zs({element:r.current,padding:o}).fn(n):{}:r?zs({element:r,padding:o}).fn(n):{}}}},hd=(e,t)=>({...od(e),options:[e,t]}),gd=(e,t)=>({...sd(e),options:[e,t]}),vd=(e,t)=>({...ld(e),options:[e,t]}),bd=(e,t)=>({...ad(e),options:[e,t]}),xd=(e,t)=>({...id(e),options:[e,t]}),wd=(e,t)=>({...cd(e),options:[e,t]}),yd=(e,t)=>({...md(e),options:[e,t]});var Cd="Arrow",Us=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ne.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Us.displayName=Cd;var Ed=Us;function Sd(e){const[t,n]=l.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,i=f.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dr="Popper",[Ks,rn]=qe(dr),[Rd,Ys]=Ks(dr),qs=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(Rd,{scope:t,anchor:r,onAnchorChange:o,children:n})};qs.displayName=dr;var Xs="PopperAnchor",Zs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ys(Xs,n),a=l.useRef(null),i=ae(t,a);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ne.div,{...o,ref:i})});Zs.displayName=Xs;var fr="PopperContent",[_d,Ad]=Ks(fr),Js=l.forwardRef((e,t)=>{var K,Q,ee,se,Ee,Ge;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,x=Ys(fr,n),[v,y]=l.useState(null),E=ae(t,Z=>y(Z)),[S,_]=l.useState(null),M=Sd(S),A=(M==null?void 0:M.width)??0,C=(M==null?void 0:M.height)??0,I=r+(s!=="center"?"-"+s:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},G=Array.isArray(f)?f:[f],z=G.length>0,V={padding:D,boundary:G.filter(Od),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=pd({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>rd(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[hd({mainAxis:o+C,alignmentAxis:a}),c&&gd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?vd():void 0,...V}),c&&bd({...V}),xd({...V,apply:({elements:Z,rects:J,availableWidth:ce,availableHeight:re})=>{const{width:he,height:Ue}=J.reference,oe=Z.floating.style;oe.setProperty("--radix-popper-available-width",`${ce}px`),oe.setProperty("--radix-popper-available-height",`${re}px`),oe.setProperty("--radix-popper-anchor-width",`${he}px`),oe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),S&&yd({element:S,padding:i}),Td({arrowWidth:A,arrowHeight:C}),m&&wd({strategy:"referenceHidden",...V})]}),[O,w]=ta(F),N=Ne(b);He(()=>{U&&(N==null||N())},[U,N]);const j=(K=R.arrow)==null?void 0:K.x,$=(Q=R.arrow)==null?void 0:Q.y,X=((ee=R.arrow)==null?void 0:ee.centerOffset)!==0,[te,le]=l.useState();return He(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ge=R.hide)==null?void 0:Ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(_d,{scope:n,placedSide:O,onArrowChange:_,arrowX:j,arrowY:$,shouldHideArrow:X,children:p.jsx(ne.div,{"data-side":O,"data-align":w,...h,ref:E,style:{...h.style,animation:U?void 0:"none"}})})})});Js.displayName=fr;var Qs="PopperArrow",Md={top:"bottom",right:"left",bottom:"top",left:"right"},ea=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ad(Qs,r),a=Md[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Ed,{...o,ref:n,style:{...o.style,display:"block"}})})});ea.displayName=Qs;function Od(e){return e!==null}var Td=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,u]=ta(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=a?d:`${m}px`,h=`${-c}px`):f==="top"?(b=a?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=a?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=a?d:`${g}px`),{data:{x:b,y:h}}}});function ta(e){const[t,n="center"]=e.split("-");return[t,n]}var Pd=qs,na=Zs,ra=Js,oa=ea,Nd=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"}),kd="VisuallyHidden",sa=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...Nd,...e.style}}));sa.displayName=kd;var Id=sa,[on,S0]=qe("Tooltip",[rn]),pr=rn(),aa="TooltipProvider",Dd=700,ia="tooltip.open",[jd,ca]=on(aa),la=e=>{const{__scopeTooltip:t,delayDuration:n=Dd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx(jd,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(f=>{i.current=f},[]),disableHoverableContent:o,children:s})};la.displayName=aa;var ua="Tooltip",[R0,sn]=on(ua),mr="TooltipTrigger",Ld=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sn(mr,n),s=ca(mr,n),a=pr(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),f=l.useRef(!1),u=l.useRef(!1),d=l.useCallback(()=>f.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(na,{asChild:!0,...a,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});Ld.displayName=mr;var Fd="TooltipPortal",[_0,$d]=on(Fd,{forceMount:void 0}),pt="TooltipContent",da=l.forwardRef((e,t)=>{const n=$d(pt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=sn(pt,e.__scopeTooltip);return p.jsx(ke,{present:r||a.open,children:a.disableHoverableContent?p.jsx(fa,{side:o,...s,ref:t}):p.jsx(Vd,{side:o,...s,ref:t})})}),Vd=l.forwardRef((e,t)=>{const n=sn(pt,e.__scopeTooltip),r=ca(pt,e.__scopeTooltip),o=l.useRef(null),s=ae(t,o),[a,i]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((b,h)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Gd(v,x.getBoundingClientRect()),E=Ud(v,y),S=Kd(h.getBoundingClientRect()),_=qd([...E,...S]);i(_),d(!0)},[d]);return l.useEffect(()=>()=>m(),[m]),l.useEffect(()=>{if(c&&u){const b=x=>g(x,u),h=x=>g(x,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",h)}}},[c,u,g,m]),l.useEffect(()=>{if(a){const b=h=>{const x=h.target,v={x:h.clientX,y:h.clientY},y=(c==null?void 0:c.contains(x))||(u==null?void 0:u.contains(x)),E=!Yd(v,a);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,a,f,m]),p.jsx(fa,{...e,ref:s})}),[Hd,Wd]=on(ua,{isInside:!1}),zd=ic("TooltipContent"),fa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=sn(pt,n),f=pr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(ia,u),()=>document.removeEventListener(ia,u)),[u]),l.useEffect(()=>{if(c.trigger){const d=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),p.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(ra,{"data-state":c.stateAttribute,...f,...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:[p.jsx(zd,{children:r}),p.jsx(Hd,{scope:n,isInside:!0,children:p.jsx(Id,{id:c.contentId,role:"tooltip",children:o||r})})]})})});da.displayName=pt;var pa="TooltipArrow",Bd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pr(n);return Wd(pa,n).isInside?null:p.jsx(oa,{...o,...r,ref:t})});Bd.displayName=pa;function Gd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ud(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 Kd(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 Yd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function qd(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),Xd(t)}function Xd(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Zd=la,ma=da;const Jd=Zd,Qd=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(ma,{ref:r,sideOffset:t,className:B("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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",e),...n}));Qd.displayName=ma.displayName;const ef="sidebar_state",tf=60*60*24*7,nf="16rem",rf="18rem",of="3rem",sf="b",ha=l.createContext(null);function hr(){const e=l.useContext(ha);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function af({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=dc(),[c,f]=l.useState(!1),[u,d]=l.useState(e),m=t??u,g=l.useCallback(v=>{const y=typeof v=="function"?v(m):v;n?n(y):d(y),document.cookie=`${ef}=${y}; path=/; max-age=${tf}`},[n,m]),b=l.useCallback(()=>i?f(v=>!v):g(v=>!v),[i,g,f]);l.useEffect(()=>{const v=y=>{y.key===sf&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const h=m?"expanded":"collapsed",x=l.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,i,c,f,b]);return p.jsx(ha.Provider,{value:x,children:p.jsx(Jd,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nf,"--sidebar-width-icon":of,...o},className:B("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function cf({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:c,setOpenMobile:f}=hr();return n==="none"?p.jsx("div",{"data-slot":"sidebar",className:B("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?p.jsx(wu,{open:c,onOpenChange:f,...s,children:p.jsxs(Ss,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":rf},side:e,children:[p.jsxs(Rs,{className:"sr-only",children:[p.jsx(_s,{children:"Sidebar"}),p.jsx(As,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.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:[p.jsx("div",{"data-slot":"sidebar-gap",className:B("relative w-(--sidebar-width) bg-white 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)")}),p.jsx("div",{"data-slot":"sidebar-container",className:B("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),...s,children:p.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function lf({className:e,onClick:t,...n}){const{toggleSidebar:r}=hr();return p.jsxs(jn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:B("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[p.jsx(oc,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function uf({className:e,...t}){const{toggleSidebar:n}=hr();return p.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:B("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 df({className:e,...t}){return p.jsx("main",{"data-slot":"sidebar-inset",className:B("bg-white 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 ff({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:B("flex flex-col gap-2 p-2",e),...t})}function pf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:B("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function mf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:B("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function hf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:B("w-full text-sm",e),...t})}function gf({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:B("border-sidebar-border mx-3 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 vf({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:B("group/menu-sub-item relative",e),...t})}function bf({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?ao:"a";return p.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:B("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})}function xf({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1}){const[a,i]=l.useState(r);return l.useEffect(()=>{s&&i(!0)},[s]),p.jsx(mf,{children:p.jsxs("div",{className:"flex flex-col",children:[p.jsxs("div",{className:"flex flex-row items-center justify-between",children:[p.jsxs("a",{href:t,className:B("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100",s&&"bg-blue-50 text-blue-700 font-medium"),children:[o&&p.jsx("span",{className:B(s?"text-blue-600":"text-gray-600"),children:o}),p.jsx("span",{className:B(s&&"text-blue-700 font-medium"),children:e})]}),p.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:c=>{c.preventDefault(),c.stopPropagation(),i(!a)},"aria-label":a?"Collapse section":"Expand section",children:a?p.jsx(tc,{className:"h-4 w-4"}):p.jsx(nc,{className:"h-4 w-4"})})]}),p.jsx("div",{className:B("overflow-hidden transition-all",a?"max-h-96":"max-h-0"),children:n})]})})}const wf="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function yf(){const[e,t]=k.useState("");return k.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const Cf={navMain:[{title:"Essential Insights",url:"/essential-insights/overall-performance",icon:p.jsx(ec,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:p.jsx(ro,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:p.jsx(Qi,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:p.jsx(Ke,{className:"h-4 w-4"})}]},{title:"Price Monster",url:"/price-monster",icon:p.jsx(Ke,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:p.jsx(Ke,{className:"h-4 w-4"})}]},{title:"CMS",url:"/cms",icon:p.jsx(Ke,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:p.jsx(Ke,{className:"h-4 w-4"})}]},{title:"Storage Essentials",url:"/storage-essentials",icon:p.jsx(Ke,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/storage-essentials/dashboard",icon:p.jsx(Ke,{className:"h-4 w-4"})}]}]};function Ef({...e}){const{isActiveRoute:t}=yf();return p.jsxs(cf,{...e,children:[p.jsx(ff,{children:p.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:p.jsx("img",{src:wf,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),p.jsxs(pf,{children:[p.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:p.jsx("div",{className:"flex flex-col",children:p.jsxs("a",{href:"/home",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors","hover:bg-gray-100",t("/home")&&"bg-blue-50 text-blue-700 font-medium"),children:[p.jsx(ro,{className:B("h-5 w-5",t("/home")?"text-blue-600":"text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),Cf.navMain.map(n=>{const r=t(n.url)||n.items.some(o=>t(o.url));return p.jsx(xf,{title:n.title,url:n.url,icon:n.icon,isActive:r,children:p.jsx(hf,{children:p.jsx(gf,{children:n.items.map(o=>{const s=t(o.url);return p.jsx(vf,{children:p.jsx(bf,{asChild:!0,children:p.jsxs("a",{href:o.url,className:B("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",s&&"bg-blue-50 text-blue-700 font-medium"),children:[p.jsx("span",{className:B(s?"text-blue-600":"text-muted-foreground"),children:o.icon}),p.jsx("span",{className:B(s?"text-blue-700":"text-muted-foreground"),children:o.title})]})})},o.title)})})})},n.title)})]}),p.jsx(uf,{})]})}function ga(e){const t=e+"CollectionProvider",[n,r]=qe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,y=k.useRef(null),E=k.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:E,collectionRef:y,children:v})};a.displayName=t;const i=e+"CollectionSlot",c=et(i),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(i,v),S=ae(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=i;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=et(u),g=k.forwardRef((h,x)=>{const{scope:v,children:y,...E}=h,S=k.useRef(null),_=ae(x,S),M=s(u,v);return k.useEffect(()=>(M.itemMap.set(S,{ref:S,...E}),()=>void M.itemMap.delete(S))),p.jsx(m,{[d]:"",ref:_,children:y})});g.displayName=u;function b(h){const x=s(e+"CollectionConsumer",h);return k.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const E=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((M,A)=>E.indexOf(M.ref.current)-E.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},b,r]}var Sf=l.createContext(void 0);function va(e){const t=l.useContext(Sf);return e||t||"ltr"}var gr="rovingFocusGroup.onEntryFocus",Rf={bubbles:!1,cancelable:!0},Ct="RovingFocusGroup",[vr,ba,_f]=ga(Ct),[Af,xa]=qe(Ct,[_f]),[Mf,Of]=Af(Ct),wa=l.forwardRef((e,t)=>p.jsx(vr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(vr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Tf,{...e,ref:t})})}));wa.displayName=Ct;var Tf=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ae(t,m),b=va(s),[h,x]=Ln({prop:a,defaultProp:i??null,onChange:c,caller:Ct}),[v,y]=l.useState(!1),E=Ne(f),S=ba(n),_=l.useRef(!1),[M,A]=l.useState(0);return l.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(gr,E),()=>C.removeEventListener(gr,E)},[E]),p.jsx(Mf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:l.useCallback(C=>x(C),[x]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:l.useCallback(()=>A(C=>C-1),[]),children:p.jsx(ne.div,{tabIndex:v||M===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{_.current=!0}),onFocus:L(e.onFocus,C=>{const I=!_.current;if(C.target===C.currentTarget&&I&&!v){const D=new CustomEvent(gr,Rf);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const G=S().filter(F=>F.focusable),z=G.find(F=>F.active),V=G.find(F=>F.id===h),q=[z,V,...G].filter(Boolean).map(F=>F.ref.current);Ea(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),ya="RovingFocusGroupItem",Ca=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=ot(),f=s||c,u=Of(ya,n),d=u.currentTabStopId===f,m=ba(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=u;return l.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),p.jsx(vr.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,x=>{r?u.onItemFocus(f):x.preventDefault()}),onFocus:L(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:L(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=kf(x,u.orientation,u.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=u.loop?If(E,S+1):E.slice(S+1)}setTimeout(()=>Ea(E))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:h!=null}):a})})});Ca.displayName=ya;var Pf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kf(e,t,n){const r=Nf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Pf[r]}function Ea(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function If(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Df=wa,jf=Ca,br=["Enter"," "],Lf=["ArrowDown","PageUp","Home"],Sa=["ArrowUp","PageDown","End"],Ff=[...Lf,...Sa],$f={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},Vf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Et="Menu",[St,Hf,Wf]=ga(Et),[Je,Ra]=qe(Et,[Wf,rn,xa]),an=rn(),_a=xa(),[zf,Qe]=Je(Et),[Bf,Rt]=Je(Et),Aa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=an(t),[c,f]=l.useState(null),u=l.useRef(!1),d=Ne(s),m=va(o);return l.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),p.jsx(Pd,{...i,children:p.jsx(zf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(Bf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:a,children:r})})})};Aa.displayName=Et;var Gf="MenuAnchor",xr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(na,{...o,...r,ref:t})});xr.displayName=Gf;var wr="MenuPortal",[Uf,Ma]=Je(wr,{forceMount:void 0}),Oa=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Qe(wr,t);return p.jsx(Uf,{scope:t,forceMount:n,children:p.jsx(ke,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:r})})})};Oa.displayName=wr;var ge="MenuContent",[Kf,yr]=Je(ge),Ta=l.forwardRef((e,t)=>{const n=Ma(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Qe(ge,e.__scopeMenu),a=Rt(ge,e.__scopeMenu);return p.jsx(St.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(St.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(Yf,{...o,ref:t}):p.jsx(qf,{...o,ref:t})})})})}),Yf=l.forwardRef((e,t)=>{const n=Qe(ge,e.__scopeMenu),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return rs(s)},[]),p.jsx(Cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),qf=l.forwardRef((e,t)=>{const n=Qe(ge,e.__scopeMenu);return p.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xf=et("MenuContent.ScrollLock"),Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,x=Qe(ge,n),v=Rt(ge,n),y=an(n),E=_a(n),S=Hf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ae(t,A,x.onContentChange),I=l.useRef(0),D=l.useRef(""),G=l.useRef(0),z=l.useRef(null),V=l.useRef("right"),H=l.useRef(0),q=b?Yn:l.Fragment,F=b?{as:Xf,allowPinchZoom:!0}:void 0,U=O=>{var K,Q;const w=D.current+O,N=S().filter(ee=>!ee.disabled),j=document.activeElement,$=(K=N.find(ee=>ee.ref.current===j))==null?void 0:K.textValue,X=N.map(ee=>ee.textValue),te=cp(X,w,$),le=(Q=N.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(se){D.current=se,window.clearTimeout(I.current),se!==""&&(I.current=window.setTimeout(()=>ee(""),1e3))})(w),le&&setTimeout(()=>le.focus())};l.useEffect(()=>()=>window.clearTimeout(I.current),[]),Wo();const R=l.useCallback(O=>{var N,j;return V.current===((N=z.current)==null?void 0:N.side)&&up(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Kf,{scope:n,searchRef:D,onItemEnter:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:l.useCallback(O=>{var w;R(O)||((w=A.current)==null||w.focus(),M(null))},[R]),onTriggerLeave:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:G,onPointerGraceIntentChange:l.useCallback(O=>{z.current=O},[]),children:p.jsx(q,{...F,children:p.jsx(Hn,{asChild:!0,trapped:o,onMountAutoFocus:L(s,O=>{var w;O.preventDefault(),(w=A.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(Df,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:L(c,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(ra,{role:"menu","aria-orientation":"vertical","data-state":Ka(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,O=>{const N=O.target.closest("[data-radix-menu-content]")===O.currentTarget,j=O.ctrlKey||O.altKey||O.metaKey,$=O.key.length===1;N&&(O.key==="Tab"&&O.preventDefault(),!j&&$&&U(O.key));const X=A.current;if(O.target!==X||!Ff.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Sa.includes(O.key)&&le.reverse(),ap(le)}),onBlur:L(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(I.current),D.current="")}),onPointerMove:L(e.onPointerMove,At(O=>{const w=O.target,N=H.current!==O.clientX;if(O.currentTarget.contains(w)&&N){const j=O.clientX>H.current?"right":"left";V.current=j,H.current=O.clientX}}))})})})})})})});Ta.displayName=ge;var Zf="MenuGroup",Er=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Er.displayName=Zf;var Jf="MenuLabel",Pa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Pa.displayName=Jf;var cn="MenuItem",Na="menu.itemSelect",ln=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=Rt(cn,e.__scopeMenu),i=yr(cn,e.__scopeMenu),c=ae(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(Na,{bubbles:!0,cancelable:!0});d.addEventListener(Na,g=>r==null?void 0:r(g),{once:!0}),Mo(d,m),m.defaultPrevented?f.current=!1:a.onClose()}};return p.jsx(ka,{...o,ref:c,disabled:n,onClick:L(e.onClick,u),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),f.current=!0},onPointerUp:L(e.onPointerUp,d=>{var m;f.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:L(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||br.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});ln.displayName=cn;var ka=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=yr(cn,n),i=_a(n),c=l.useRef(null),f=ae(t,c),[u,d]=l.useState(!1),[m,g]=l.useState("");return l.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[s.children]),p.jsx(St.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(jf,{asChild:!0,...i,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:f,onPointerMove:L(e.onPointerMove,At(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,At(b=>a.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),Qf="MenuCheckboxItem",Ia=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx($a,{scope:e.__scopeMenu,checked:n,children:p.jsx(ln,{role:"menuitemcheckbox","aria-checked":un(n)?"mixed":n,...o,ref:t,"data-state":Rr(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(un(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ia.displayName=Qf;var Da="MenuRadioGroup",[ep,tp]=Je(Da,{value:void 0,onValueChange:()=>{}}),ja=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ne(r);return p.jsx(ep,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Er,{...o,ref:t})})});ja.displayName=Da;var La="MenuRadioItem",Fa=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=tp(La,e.__scopeMenu),s=n===o.value;return p.jsx($a,{scope:e.__scopeMenu,checked:s,children:p.jsx(ln,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Rr(s),onSelect:L(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Fa.displayName=La;var Sr="MenuItemIndicator",[$a,np]=Je(Sr,{checked:!1}),Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=np(Sr,n);return p.jsx(ke,{present:r||un(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Rr(s.checked)})})});Va.displayName=Sr;var rp="MenuSeparator",Ha=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ha.displayName=rp;var op="MenuArrow",Wa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(oa,{...o,...r,ref:t})});Wa.displayName=op;var sp="MenuSub",[A0,za]=Je(sp),_t="MenuSubTrigger",Ba=l.forwardRef((e,t)=>{const n=Qe(_t,e.__scopeMenu),r=Rt(_t,e.__scopeMenu),o=za(_t,e.__scopeMenu),s=yr(_t,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),c(null)}},[i,c]),p.jsx(xr,{asChild:!0,...f,children:p.jsx(ka,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ka(n.open),...e,ref:It(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,At(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:L(e.onPointerLeave,At(d=>{var g,b;u();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,x=h==="right",v=x?-5:5,y=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:y,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var g;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||$f[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});Ba.displayName=_t;var Ga="MenuSubContent",Ua=l.forwardRef((e,t)=>{const n=Ma(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Qe(ge,e.__scopeMenu),a=Rt(ge,e.__scopeMenu),i=za(Ga,e.__scopeMenu),c=l.useRef(null),f=ae(t,c);return p.jsx(St.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(St.Slot,{scope:e.__scopeMenu,children:p.jsx(Cr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=Vf[a.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=i.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ua.displayName=Ga;function Ka(e){return e?"open":"closed"}function un(e){return e==="indeterminate"}function Rr(e){return un(e)?"indeterminate":e?"checked":"unchecked"}function ap(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cp(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ip(e,Math.max(s,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function lp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function up(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lp(n,t)}function At(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dp=Aa,fp=xr,pp=Oa,mp=Ta,hp=Er,gp=Pa,vp=ln,bp=Ia,xp=ja,wp=Fa,yp=Va,Cp=Ha,Ep=Wa,Sp=Ba,Rp=Ua,dn="DropdownMenu",[_p,M0]=qe(dn,[Ra]),de=Ra(),[Ap,Ya]=_p(dn),qa=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,c=de(t),f=l.useRef(null),[u,d]=Ln({prop:o,defaultProp:s??!1,onChange:a,caller:dn});return p.jsx(Ap,{scope:t,triggerId:ot(),triggerRef:f,contentId:ot(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:i,children:p.jsx(dp,{...c,open:u,onOpenChange:d,dir:r,modal:i,children:n})})};qa.displayName=dn;var Xa="DropdownMenuTrigger",Za=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Ya(Xa,n),a=de(n);return p.jsx(fp,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:It(t,s.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Za.displayName=Xa;var Mp="DropdownMenuPortal",Ja=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(pp,{...r,...n})};Ja.displayName=Mp;var Qa="DropdownMenuContent",ei=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ya(Qa,n),s=de(n),a=l.useRef(!1);return p.jsx(mp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const c=i.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(a.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)"}})});ei.displayName=Qa;var Op="DropdownMenuGroup",Tp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(hp,{...o,...r,ref:t})});Tp.displayName=Op;var Pp="DropdownMenuLabel",ti=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gp,{...o,...r,ref:t})});ti.displayName=Pp;var Np="DropdownMenuItem",ni=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vp,{...o,...r,ref:t})});ni.displayName=Np;var kp="DropdownMenuCheckboxItem",Ip=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});Ip.displayName=kp;var Dp="DropdownMenuRadioGroup",jp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});jp.displayName=Dp;var Lp="DropdownMenuRadioItem",Fp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});Fp.displayName=Lp;var $p="DropdownMenuItemIndicator",Vp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});Vp.displayName=$p;var Hp="DropdownMenuSeparator",ri=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});ri.displayName=Hp;var Wp="DropdownMenuArrow",zp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});zp.displayName=Wp;var Bp="DropdownMenuSubTrigger",Gp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...o,...r,ref:t})});Gp.displayName=Bp;var Up="DropdownMenuSubContent",Kp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Rp,{...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)"}})});Kp.displayName=Up;var Yp=qa,qp=Za,Xp=Ja,Zp=ei,Jp=ti,Qp=ni,e0=ri;function t0({...e}){return p.jsx(Yp,{"data-slot":"dropdown-menu",...e})}function n0({...e}){return p.jsx(qp,{"data-slot":"dropdown-menu-trigger",...e})}function r0({className:e,sideOffset:t=4,...n}){return p.jsx(Xp,{children:p.jsx(Zp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:B("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 oi({className:e,inset:t,variant:n="default",...r}){return p.jsx(Qp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:B("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 o0({className:e,inset:t,...n}){return p.jsx(Jp,{"data-slot":"dropdown-menu-label","data-inset":t,className:B("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function s0({className:e,...t}){return p.jsx(e0,{"data-slot":"dropdown-menu-separator",className:B("bg-border -mx-1 my-1 h-px",e),...t})}const a0=()=>{const{user:e,error:t,isLoading:n}=Ui(),r=()=>{window.location.href="/auth/logout"};return n?p.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):t?p.jsxs("div",{children:["Error: ",t.message]}):e?p.jsx("div",{className:"relative flex items-center gap-3",children:p.jsxs(t0,{children:[p.jsx(n0,{asChild:!0,children:p.jsx(jn,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:e.picture?p.jsx("img",{src:e.picture,alt:e.name||"User profile",width:40,height:40,className:"rounded-full"}):p.jsx(oo,{className:"h-5 w-5 text-gray-500"})})}),p.jsxs(r0,{align:"end",className:"w-72",children:[p.jsx(o0,{children:p.jsx("div",{className:"flex flex-col space-y-1",children:p.jsxs("div",{className:"flex flex-col space-y-1",children:[p.jsx("p",{className:"text-xs text-gray-500",children:e.name}),p.jsx("p",{className:"truncate text-xs text-gray-500",children:e.email})]})})}),p.jsx(s0,{}),p.jsx(oi,{asChild:!0,children:p.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[p.jsx(oo,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Profile"})]})}),p.jsxs(oi,{onClick:r,children:[p.jsx(rc,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},i0=()=>p.jsx("div",{className:"sticky top-0 z-50",children:p.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[p.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[p.jsx(lf,{}),p.jsx(No,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(a0,{})})]})}),c0=({children:e})=>p.jsx(Ki,{children:p.jsx(af,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(Ef,{}),p.jsxs(df,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(i0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});Fe.GLICloudProvider=c0,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
|