@golocalinteractive/golocal-cloud-wrapper 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Oe,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","react-dom"],k):(Oe=typeof globalThis<"u"?globalThis:Oe||self,k(Oe.GoLocalCloudWrapper={},Oe.React,Oe.ReactRouterDOM,Oe.ReactDOM))})(this,function(Oe,k,At,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:{}},pt={};/**
1
+ (function(ze,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],D):(ze=typeof globalThis<"u"?globalThis:ze||self,D(ze.GoLocalCloudWrapper={},ze.React,ze.ReactDOM))})(this,function(ze,D,no){"use strict";function ro(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 c=ro(D),oo=ro(no);var $t={exports:{}},yt={};/**
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 Pr;function la(){if(Pr)return pt;Pr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return pt.Fragment=t,pt.jsx=n,pt.jsxs=n,pt}var mt={};/**
9
+ */var ao;function nl(){if(ao)return yt;ao=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return yt.Fragment=t,yt.jsx=n,yt.jsxs=n,yt}var Ct={};/**
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 Nr;function ua(){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 i(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 a(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:
17
+ */var io;function rl(){return io||(io=1,process.env.NODE_ENV!=="production"&&function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===I?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case m:return"Fragment";case h:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList";case N:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case g:return"Portal";case y:return(E.displayName||"Context")+".Provider";case w:return(E._context.displayName||"Context")+".Consumer";case S:var k=E.render;return E=E.displayName,E||(E=k.displayName||k.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case A:return k=E.displayName||null,k!==null?k:e(E.type)||"Memo";case C:k=E._payload,E=E._init;try{return e(E(k))}catch{}}return null}function t(E){return""+E}function n(E){try{t(E);var k=!1}catch{k=!0}if(k){k=console;var L=k.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return L.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(E)}}function r(E){if(E===m)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===C)return"<...>";try{var k=e(E);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var E=z.A;return E===null?null:E.getOwner()}function a(){return Error("react-stack-top-frame")}function i(E){if(B.call(E,"key")){var k=Object.getOwnPropertyDescriptor(E,"key").get;if(k&&k.isReactWarning)return!1}return E.key!==void 0}function s(E,k){function L(){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)",k))}L.isReactWarning=!0,Object.defineProperty(E,"key",{get:L,configurable:!0})}function l(){var E=e(this.type);return F[E]||(F[E]=!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.")),E=this.props.ref,E!==void 0?E:null}function u(E,k,L,$,X,te,ue,K){return L=te.ref,E={$$typeof:v,type:E,key:k,props:te,_owner:X},(L!==void 0?L:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:l}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function d(E,k,L,$,X,te,ue,K){var Q=k.children;if(Q!==void 0)if($)if(V(Q)){for($=0;$<Q.length;$++)f(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 f(Q);if(B.call(k,"key")){Q=e(E);var ee=Object.keys(k).filter(function(Se){return Se!=="key"});$=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",M[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),i(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&&a(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={};mt.Fragment=h,mt.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)},mt.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)}}()),mt}var kr;function da(){return kr||(kr=1,process.env.NODE_ENV==="production"?Mt.exports=la():Mt.exports=ua()),Mt.exports}var p=da(),Ot={exports:{}},fn={};/**
22
+ <%s key={someKey} {...props} />`,$,Q,ee,Q),M[Q+$]=!0)}if(Q=null,L!==void 0&&(n(L),Q=""+L),i(k)&&(n(k.key),Q=""+k.key),"key"in k){L={};for(var ae in k)ae!=="key"&&(L[ae]=k[ae])}else L=k;return Q&&s(L,typeof E=="function"?E.displayName||E.name||"Unknown":E),u(E,Q,te,X,o(),L,ue,K)}function f(E){typeof E=="object"&&E!==null&&E.$$typeof===v&&E._store&&(E._store.validated=1)}var p=D,v=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),z=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,V=Array.isArray,H=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(E){return E()}};var q,F={},G=p["react-stack-bottom-frame"].bind(p,a)(),_=H(r(a)),M={};Ct.Fragment=m,Ct.jsx=function(E,k,L,$,X){var te=1e4>z.recentlyCreatedOwnerStacks++;return d(E,k,L,!1,$,X,te?Error("react-stack-top-frame"):G,te?H(r(E)):_)},Ct.jsxs=function(E,k,L,$,X){var te=1e4>z.recentlyCreatedOwnerStacks++;return d(E,k,L,!0,$,X,te?Error("react-stack-top-frame"):G,te?H(r(E)):_)}}()),Ct}var so;function ol(){return so||(so=1,process.env.NODE_ENV==="production"?$t.exports=nl():$t.exports=rl()),$t.exports}var b=ol(),Vt={exports:{}},On={};/**
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 Ir;function fa(){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,i=e.useDebugValue;function a(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]),i(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:a;return fn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,fn}var pn={};/**
30
+ */var lo;function al(){if(lo)return On;lo=1;var e=D;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(f,p){var v=p(),g=r({inst:{value:v,getSnapshot:p}}),m=g[0].inst,x=g[1];return a(function(){m.value=v,m.getSnapshot=p,l(m)&&x({inst:m})},[f,v,p]),o(function(){return l(m)&&x({inst:m}),f(function(){l(m)&&x({inst:m})})},[f]),i(v),v}function l(f){var p=f.getSnapshot;f=f.value;try{var v=p();return!n(f,v)}catch{return!0}}function u(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return On.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,On}var Tn={};/**
31
31
  * @license React
32
32
  * use-sync-external-store-shim.development.js
33
33
  *
@@ -35,123 +35,134 @@ 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 Dr;function pa(){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=i({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]),a(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,i=o.useState,a=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 ma(){return jr||(jr=1,process.env.NODE_ENV==="production"?Ot.exports=fa():Ot.exports=pa()),Ot.exports}var ha=ma();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 Te=new WeakMap,$e=()=>{},ue=$e(),Tt=Object,Y=e=>e===ue,be=e=>typeof e=="function",Pe=(e,t)=>({...e,...t}),Wr=e=>be(e.then),hn={},Pt={},gn="undefined",ht=typeof window!=gn,vn=typeof document!=gn,ga=ht&&"Deno"in window,va=()=>ht&&typeof window.requestAnimationFrame!=gn,zr=(e,t)=>{const n=Te.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,Pe(o,r),o||hn)}},n[6],()=>!Y(t)&&t in Pt?Pt[t]:!Y(t)&&e.get(t)||hn]};let bn=!0;const ba=()=>bn,[xn,wn]=ht&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[$e,$e],xa=()=>{const e=vn&&document.visibilityState;return Y(e)||e!=="hidden"},wa=e=>(vn&&document.addEventListener("visibilitychange",e),xn("focus",e),()=>{vn&&document.removeEventListener("visibilitychange",e),wn("focus",e)}),ya=e=>{const t=()=>{bn=!0,e()},n=()=>{bn=!1};return xn("online",t),xn("offline",n),()=>{wn("online",t),wn("offline",n)}},Ca={isOnline:ba,isVisible:xa},Ea={initFocus:wa,initReconnect:ya},Br=!k.useId,gt=!ht||ga,Sa=e=>va()?window.requestAnimationFrame(e):setTimeout(e,1),Nt=gt?k.useEffect:k.useLayoutEffect,yn=typeof navigator<"u"&&navigator.connection,Gr=!gt&&yn&&(["slow-2g","2g"].includes(yn.effectiveType)||yn.saveData),kt=new WeakMap,Cn=(e,t)=>Tt.prototype.toString.call(e)===`[object ${t}]`;let Ra=0;const En=e=>{const t=typeof e,n=Cn(e,"Date"),r=Cn(e,"RegExp"),o=Cn(e,"Object");let s,i;if(Tt(e)===e&&!n&&!r){if(s=kt.get(e),s)return s;if(s=++Ra+"~",kt.set(e,s),Array.isArray(e)){for(s="@",i=0;i<e.length;i++)s+=En(e[i])+",";kt.set(e,s)}if(o){s="#";const a=Tt.keys(e).sort();for(;!Y(i=a.pop());)Y(e[i])||(s+=i+":"+En(e[i])+",");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 _a=0;const Rn=()=>++_a;async function Ur(...e){const[t,n,r,o]=e,s=Pe({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=s.populateCache;const a=s.rollbackOnError;let c=s.optimisticData;const f=m=>typeof a=="function"?a(m):a!==!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]=Te.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)&&(i=!0,h({data:z,_c:ue}));if(i&&!M)if(be(i)){const V=i(_,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(!Te.has(e)){const n=Pe(Ea,t),r=Object.create(null),o=Ur.bind(ue,e);let s=$e;const i=Object.create(null),a=(u,d)=>{const m=i[u]||[];return i[u]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},c=(u,d,m)=>{e.set(u,d);const g=i[u];if(g)for(const b of g)b(d,m)},f=()=>{if(!Te.has(e)&&(Te.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,a]),!gt)){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(),Te.delete(e)}}};return f(),[e,o,f,s]}return[e,Te.get(e)[4]]},Aa=(e,t,n,r,o)=>{const s=n.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!Y(s)&&i>s||setTimeout(r,a,o)},Ma=mn,[_n,Oa]=Yr(new Map),qr=Pe({onLoadingSlow:$e,onSuccess:$e,onError:$e,onErrorRetry:Aa,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:Ma,isPaused:()=>!1,cache:_n,mutate:Oa,fallback:{}},Ca),Xr=(e,t)=>{const n=Pe(e,t);if(t){const{use:r,fallback:o}=e,{use:s,fallback:i}=t;r&&s&&(n.use=r.concat(s)),o&&i&&(n.fallback=Pe(o,i))}return n},An=k.createContext({}),Ta=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]),i=o&&o.provider,a=k.useRef(ue);i&&!a.current&&(a.current=Yr(i(s.cache||_n),o));const c=a.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,Pe(e,{value:s}))},Pa="$inf$",Zr=ht&&window.__SWR_DEVTOOLS_USE__,Na=Zr?window.__SWR_DEVTOOLS_USE__:[],ka=()=>{Zr&&(window.__SWR_DEVTOOLS_REACT__=k)},Ia=e=>be(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Da=()=>Pe(qr,k.useContext(An)),ja=e=>(t,n,r)=>e(t,n&&((...s)=>{const[i]=Sn(t),[,,,a]=Te.get(_n);if(i.startsWith(Pa))return n(...s);const c=a[i];return Y(c)?n(...s):(delete a[i],c)}),r),La=Na.concat(ja),Fa=e=>function(...n){const r=Da(),[o,s,i]=Ia(n),a=Xr(r,i);let c=e;const{use:f}=a,u=(f||[]).concat(La);for(let d=u.length;d--;)c=u[d](c);return c(o,s||a.fetcher||null,a)},$a=(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())}};ka();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},Va=(e,t,n)=>{const{cache:r,compare:o,suspense:s,fallbackData:i,revalidateOnMount:a,revalidateIfStale:c,refreshInterval:f,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:m}=n,[g,b,h,x]=Te.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(i)?Y(n.fallback)?ue:n.fallback[v]:i,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(a)?C().isPaused()||s?!1:c!==!1:a,J=fe=>{const Le=Pe(fe);return delete Le._k,Z?{isValidating:!0,isLoading:!0,...Le}:Le},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=ha.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(a)?a: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,Le={isValidating:!1,isLoading:!1},ia=()=>{G(Le)},aa=()=>{const ve=h[v];ve&&ve[1]===re&&delete h[v]},ca={isValidating:!0};Y(D().data)&&(ca.isLoading=!0);try{if(oe&&(G(ca),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(aa,n.dedupingInterval),!h[v]||h[v][1]!==re)return oe&&fe()&&C().onDiscarded(v),!1;Le.error=ue;const ve=b[v];if(!Y(ve)&&(re<=ve[0]||re<=ve[1]||ve[1]===0))return ia(),oe&&fe()&&C().onDiscarded(v),!1;const Fe=D().data;Le.data=o(Fe,ce)?Fe:ce,oe&&fe()&&C().onSuccess(ce,v,n)}catch(ve){aa();const Fe=C(),{shouldRetryOnError:_r}=Fe;Fe.isPaused()||(Le.error=ve,oe&&fe()&&(Fe.onError(ve,v,Fe),(_r===!0||be(_r)&&_r(ve))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||I())&&Fe.onErrorRetry(ve,v,Fe,u0=>{const Ar=g[v];Ar&&Ar[0]&&Ar[0](Vr,u0)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return he=!1,ia(),!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=$a(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)||gt?Z():Sa(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&&gt)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}}},Ha=Tt.defineProperty(Ta,"defaultValue",{value:qr}),Wa=Fa(Va);function za(e){return e&&!e.startsWith("/")?`/${e}`:e}function Ba(e){return e&&!e.endsWith("/")?`${e}/`:e}function Ga(e){return e.startsWith("/")?e.substring(1,e.length):e}const Ua=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=za(t);return Ba(n)+Ga(e)};function Ka(){const{data:e,error:t,isLoading:n,mutate:r}=Wa(Ua(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 Ya({user:e,children:t}){return k.createElement(Ha,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}/**
38
+ */var co;function il(){return co||(co=1,process.env.NODE_ENV!=="production"&&function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){d||o.startTransition===void 0||(d=!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 m=g();if(!f){var x=g();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}x=i({inst:{value:m,getSnapshot:g}});var h=x[0].inst,w=x[1];return l(function(){h.value=m,h.getSnapshot=g,n(h)&&w({inst:h})},[v,m,g]),s(function(){return n(h)&&w({inst:h}),v(function(){n(h)&&w({inst:h})})},[v]),u(m),m}function n(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!a(v,m)}catch{return!0}}function r(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Tn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Tn}var uo;function sl(){return uo||(uo=1,process.env.NODE_ENV==="production"?Vt.exports=al():Vt.exports=il()),Vt.exports}var ll=sl();const fo=0,po=1,mo=2,ho=3;var go=Object.prototype.hasOwnProperty;function kn(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--&&kn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(go.call(e,n)&&++r&&!go.call(t,n)||!(n in t)||!kn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Oe=new WeakMap,Be=()=>{},de=Be(),Ht=Object,Y=e=>e===de,xe=e=>typeof e=="function",Te=(e,t)=>({...e,...t}),vo=e=>xe(e.then),Nn={},Wt={},In="undefined",Et=typeof window!=In,Dn=typeof document!=In,cl=Et&&"Deno"in window,ul=()=>Et&&typeof window.requestAnimationFrame!=In,bo=(e,t)=>{const n=Oe.get(e);return[()=>!Y(t)&&e.get(t)||Nn,r=>{if(!Y(t)){const o=e.get(t);t in Wt||(Wt[t]=o),n[5](t,Te(o,r),o||Nn)}},n[6],()=>!Y(t)&&t in Wt?Wt[t]:!Y(t)&&e.get(t)||Nn]};let Ln=!0;const dl=()=>Ln,[jn,Fn]=Et&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Be,Be],fl=()=>{const e=Dn&&document.visibilityState;return Y(e)||e!=="hidden"},pl=e=>(Dn&&document.addEventListener("visibilitychange",e),jn("focus",e),()=>{Dn&&document.removeEventListener("visibilitychange",e),Fn("focus",e)}),ml=e=>{const t=()=>{Ln=!0,e()},n=()=>{Ln=!1};return jn("online",t),jn("offline",n),()=>{Fn("online",t),Fn("offline",n)}},hl={isOnline:dl,isVisible:fl},gl={initFocus:pl,initReconnect:ml},xo=!D.useId,St=!Et||cl,vl=e=>ul()?window.requestAnimationFrame(e):setTimeout(e,1),zt=St?D.useEffect:D.useLayoutEffect,$n=typeof navigator<"u"&&navigator.connection,wo=!St&&$n&&(["slow-2g","2g"].includes($n.effectiveType)||$n.saveData),Bt=new WeakMap,Vn=(e,t)=>Ht.prototype.toString.call(e)===`[object ${t}]`;let bl=0;const Hn=e=>{const t=typeof e,n=Vn(e,"Date"),r=Vn(e,"RegExp"),o=Vn(e,"Object");let a,i;if(Ht(e)===e&&!n&&!r){if(a=Bt.get(e),a)return a;if(a=++bl+"~",Bt.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=Hn(e[i])+",";Bt.set(e,a)}if(o){a="#";const s=Ht.keys(e).sort();for(;!Y(i=s.pop());)Y(e[i])||(a+=i+":"+Hn(e[i])+",");Bt.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},Wn=e=>{if(xe(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Hn(e):"",[e,t]};let xl=0;const zn=()=>++xl;async function yo(...e){const[t,n,r,o]=e,a=Te({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const u=p=>typeof s=="function"?s(p):s!==!1,d=a.throwOnError;if(xe(n)){const p=n,v=[],g=t.keys();for(const m of g)!/^\$(inf|sub)\$/.test(m)&&p(t.get(m)._k)&&v.push(m);return Promise.all(v.map(f))}return f(n);async function f(p){const[v]=Wn(p);if(!v)return;const[g,m]=bo(t,v),[x,h,w,y]=Oe.get(t),S=()=>{const V=x[v];return(xe(a.revalidate)?a.revalidate(g().data,p):a.revalidate!==!1)&&(delete w[v],delete y[v],V&&V[0])?V[0](mo).then(()=>g().data):g().data};if(e.length<3)return S();let R=r,P;const A=zn();h[v]=[A,0];const C=!Y(l),N=g(),I=N.data,z=N._c,B=Y(z)?I:z;if(C&&(l=xe(l)?l(B,I):l,m({data:l,_c:B})),xe(R))try{R=R(B)}catch(V){P=V}if(R&&vo(R))if(R=await R.catch(V=>{P=V}),A!==h[v][0]){if(P)throw P;return R}else P&&C&&u(P)&&(i=!0,m({data:B,_c:de}));if(i&&!P)if(xe(i)){const V=i(R,B);m({data:V,error:de,_c:de})}else m({data:R,error:de,_c:de});if(h[v][1]=zn(),Promise.resolve(S()).then(()=>{m({_c:de})}),P){if(d)throw P;return}return R}}const Co=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Eo=(e,t)=>{if(!Oe.has(e)){const n=Te(gl,t),r=Object.create(null),o=yo.bind(de,e);let a=Be;const i=Object.create(null),s=(d,f)=>{const p=i[d]||[];return i[d]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(d,f,p)=>{e.set(d,f);const v=i[d];if(v)for(const g of v)g(f,p)},u=()=>{if(!Oe.has(e)&&(Oe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,l,s]),!St)){const d=n.initFocus(setTimeout.bind(de,Co.bind(de,r,fo))),f=n.initReconnect(setTimeout.bind(de,Co.bind(de,r,po)));a=()=>{d&&d(),f&&f(),Oe.delete(e)}}};return u(),[e,o,u,a]}return[e,Oe.get(e)[4]]},wl=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!Y(a)&&i>a||setTimeout(r,s,o)},yl=kn,[Bn,Cl]=Eo(new Map),So=Te({onLoadingSlow:Be,onSuccess:Be,onError:Be,onErrorRetry:wl,onDiscarded:Be,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:wo?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:wo?5e3:3e3,compare:yl,isPaused:()=>!1,cache:Bn,mutate:Cl,fallback:{}},hl),Ro=(e,t)=>{const n=Te(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=Te(o,i))}return n},Un=D.createContext({}),El=e=>{const{value:t}=e,n=D.useContext(Un),r=xe(t),o=D.useMemo(()=>r?t(n):t,[r,n,t]),a=D.useMemo(()=>r?o:Ro(n,o),[r,n,o]),i=o&&o.provider,s=D.useRef(de);i&&!s.current&&(s.current=Eo(i(a.cache||Bn),o));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),zt(()=>{if(l)return l[2]&&l[2](),l[3]},[]),D.createElement(Un.Provider,Te(e,{value:a}))},Sl="$inf$",_o=Et&&window.__SWR_DEVTOOLS_USE__,Rl=_o?window.__SWR_DEVTOOLS_USE__:[],_l=()=>{_o&&(window.__SWR_DEVTOOLS_REACT__=D)},Al=e=>xe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Pl=()=>Te(So,D.useContext(Un)),Ml=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=Wn(t),[,,,s]=Oe.get(Bn);if(i.startsWith(Sl))return n(...a);const l=s[i];return Y(l)?n(...a):(delete s[i],l)}),r),Ol=Rl.concat(Ml),Tl=e=>function(...n){const r=Pl(),[o,a,i]=Al(n),s=Ro(r,i);let l=e;const{use:u}=s,d=(u||[]).concat(Ol);for(let f=d.length;f--;)l=d[f](l);return l(o,a||s.fetcher||null,s)},kl=(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())}};_l();const Gn=D.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}}),Kn={dedupe:!0},Nl=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[v,g,m,x]=Oe.get(r),[h,w]=Wn(e),y=D.useRef(!1),S=D.useRef(!1),R=D.useRef(h),P=D.useRef(t),A=D.useRef(n),C=()=>A.current,N=()=>C().isVisible()&&C().isOnline(),[I,z,B,V]=bo(r,h),H=D.useRef({}).current,q=Y(i)?Y(n.fallback)?de:n.fallback[h]:i,F=(Z,J)=>{for(const le in H){const re=le;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},G=D.useMemo(()=>{const Z=!h||!t?!1:Y(s)?C().isPaused()||a?!1:l!==!1:s,J=pe=>{const He=Te(pe);return delete He._k,Z?{isValidating:!0,isLoading:!0,...He}:He},le=I(),re=V(),ge=J(le),Je=le===re?ge:J(re);let oe=ge;return[()=>{const pe=J(I());return F(pe,oe)?(oe.data=pe.data,oe.isLoading=pe.isLoading,oe.isValidating=pe.isValidating,oe.error=pe.error,oe):(oe=pe,pe)},()=>Je]},[r,h]),_=ll.useSyncExternalStore(D.useCallback(Z=>B(h,(J,le)=>{F(le,J)||Z()}),[r,h]),G[0],G[1]),M=!y.current,E=v[h]&&v[h].length>0,k=_.data,L=Y(k)?q&&vo(q)?Gn(q):q:k,$=_.error,X=D.useRef(L),te=p?Y(k)?Y(X.current)?L:X.current:k:L,ue=E&&!Y($)?!1:M&&!Y(s)?s:C().isPaused()?!1:a?Y(L)?!1:l:Y(L)||l,K=!!(h&&t&&M&&ue),Q=Y(_.isValidating)?K:_.isValidating,ee=Y(_.isLoading)?K:_.isLoading,ae=D.useCallback(async Z=>{const J=P.current;if(!h||!J||S.current||C().isPaused())return!1;let le,re,ge=!0;const Je=Z||{},oe=!m[h]||!Je.dedupe,pe=()=>xo?!S.current&&h===R.current&&y.current:h===R.current,He={isValidating:!1,isLoading:!1},Qs=()=>{z(He)},el=()=>{const be=m[h];be&&be[1]===re&&delete m[h]},tl={isValidating:!0};Y(I().data)&&(tl.isLoading=!0);try{if(oe&&(z(tl),n.loadingTimeout&&Y(I().data)&&setTimeout(()=>{ge&&pe()&&C().onLoadingSlow(h,n)},n.loadingTimeout),m[h]=[J(w),zn()]),[le,re]=m[h],le=await le,oe&&setTimeout(el,n.dedupingInterval),!m[h]||m[h][1]!==re)return oe&&pe()&&C().onDiscarded(h),!1;He.error=de;const be=g[h];if(!Y(be)&&(re<=be[0]||re<=be[1]||be[1]===0))return Qs(),oe&&pe()&&C().onDiscarded(h),!1;const We=I().data;He.data=o(We,le)?We:le,oe&&pe()&&C().onSuccess(le,h,n)}catch(be){el();const We=C(),{shouldRetryOnError:eo}=We;We.isPaused()||(He.error=be,oe&&pe()&&(We.onError(be,h,We),(eo===!0||xe(eo)&&eo(be))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||N())&&We.onErrorRetry(be,h,We,y0=>{const to=v[h];to&&to[0]&&to[0](ho,y0)},{retryCount:(Je.retryCount||0)+1,dedupe:!0})))}return ge=!1,Qs(),!0},[h,r]),Se=D.useCallback((...Z)=>yo(r,R.current,...Z),[]);if(zt(()=>{P.current=t,A.current=n,Y(k)||(X.current=k)}),zt(()=>{if(!h)return;const Z=ae.bind(de,Kn);let J=0;C().revalidateOnFocus&&(J=Date.now()+C().focusThrottleInterval);const re=kl(h,v,(ge,Je={})=>{if(ge==fo){const oe=Date.now();C().revalidateOnFocus&&oe>J&&N()&&(J=oe+C().focusThrottleInterval,Z())}else if(ge==po)C().revalidateOnReconnect&&N()&&Z();else{if(ge==mo)return ae();if(ge==ho)return ae(Je)}});return S.current=!1,R.current=h,y.current=!0,z({_k:w}),ue&&(Y(L)||St?Z():vl(Z)),()=>{S.current=!0,re()}},[h]),zt(()=>{let Z;function J(){const re=xe(u)?u(I().data):u;re&&Z!==-1&&(Z=setTimeout(le,re))}function le(){!I().error&&(d||C().isVisible())&&(f||C().isOnline())?ae(Kn).then(J):J()}return J(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[u,d,f,h]),D.useDebugValue(te),a&&Y(L)&&h){if(!xo&&St)throw new Error("Fallback data is required when using Suspense in SSR.");P.current=t,A.current=n,S.current=!1;const Z=x[h];if(!Y(Z)){const J=Se(Z);Gn(J)}if(Y($)){const J=ae(Kn);Y(te)||(J.status="fulfilled",J.value=!0),Gn(J)}else throw $}return{mutate:Se,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}}},Il=Ht.defineProperty(El,"defaultValue",{value:So}),Dl=Tl(Nl);function Ll(e){return e&&!e.startsWith("/")?`/${e}`:e}function jl(e){return e&&!e.endsWith("/")?`${e}/`:e}function Fl(e){return e.startsWith("/")?e.substring(1,e.length):e}const $l=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=Ll(t);return jl(n)+Fl(e)};function Vl(){const{data:e,error:t,isLoading:n,mutate:r}=Dl($l(process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"),(...o)=>fetch(...o).then(a=>{if(!a.ok)throw new Error("Unauthorized");return a.status===204?null:a.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 Ao;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_REFRESH_TOKEN="failed_to_refresh_token"})(Ao||(Ao={}));var Po;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_EXCHANGE="failed_to_exchange_refresh_token"})(Po||(Po={}));function Hl({user:e,children:t}){return D.createElement(Il,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}var Rt={},Mo;function Wl(){if(Mo)return Rt;Mo=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.parse=i,Rt.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function i(p,v){const g=new a,m=p.length;if(m<2)return g;const x=(v==null?void 0:v.decode)||d;let h=0;do{const w=p.indexOf("=",h);if(w===-1)break;const y=p.indexOf(";",h),S=y===-1?m:y;if(w>S){h=p.lastIndexOf(";",w-1)+1;continue}const R=s(p,h,w),P=l(p,w,R),A=p.slice(R,P);if(g[A]===void 0){let C=s(p,w+1,S),N=l(p,S,C);const I=x(p.slice(C,N));g[A]=I}h=S+1}while(h<m);return g}function s(p,v,g){do{const m=p.charCodeAt(v);if(m!==32&&m!==9)return v}while(++v<g);return g}function l(p,v,g){for(;v>g;){const m=p.charCodeAt(--v);if(m!==32&&m!==9)return v+1}return g}function u(p,v,g){const m=(g==null?void 0:g.encode)||encodeURIComponent;if(!e.test(p))throw new TypeError(`argument name is invalid: ${p}`);const x=m(v);if(!t.test(x))throw new TypeError(`argument val is invalid: ${v}`);let h=p+"="+x;if(!g)return h;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);h+="; Max-Age="+g.maxAge}if(g.domain){if(!n.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);h+="; Domain="+g.domain}if(g.path){if(!r.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);h+="; Path="+g.path}if(g.expires){if(!f(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);h+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(h+="; HttpOnly"),g.secure&&(h+="; Secure"),g.partitioned&&(h+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":h+="; Priority=Low";break;case"medium":h+="; Priority=Medium";break;case"high":h+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":h+="; SameSite=Strict";break;case"lax":h+="; SameSite=Lax";break;case"none":h+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return h}function d(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function f(p){return o.call(p)==="[object Date]"}return Rt}Wl();/**
39
+ * react-router v7.6.2
40
+ *
41
+ * Copyright (c) Remix Software Inc.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE.md file in the root directory of this source tree.
45
+ *
46
+ * @license MIT
47
+ */function ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ke(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yn({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function qn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Oo(e,t,n="/"){return zl(e,t,n,!1)}function zl(e,t,n,r){let o=typeof t=="string"?qn(t):t,a=Ue(o.pathname||"/",n);if(a==null)return null;let i=To(e);Bl(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=tc(a);s=Ql(i[l],u,r)}return s}function To(e,t=[],n=[],r=""){let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(ce(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=Ne([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(ce(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),To(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:Zl(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of ko(a.path))o(a,i,l)}),t}function ko(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=ko(r.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Bl(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Jl(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Ul=/^:[\w-]+$/,Gl=3,Kl=2,Yl=1,ql=10,Xl=-2,No=e=>e==="*";function Zl(e,t){let n=e.split("/"),r=n.length;return n.some(No)&&(r+=Xl),t&&(r+=Kl),n.filter(o=>!No(o)).reduce((o,a)=>o+(Ul.test(a)?Gl:a===""?Yl:ql),r)}function Jl(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ql(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=Ut({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),p=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Ut({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Ne([a,f.pathname]),pathnameBase:ac(Ne([a,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(a=Ne([a,f.pathnameBase]))}return i}function Ut(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ec(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:f},p)=>{if(d==="*"){let g=s[p]||"";i=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const v=s[p];return f&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function ec(e,t=!1,n=!0){ke(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function tc(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ke(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ue(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function nc(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?qn(e):e;return{pathname:n?n.startsWith("/")?n:rc(n,t):t,search:ic(r),hash:sc(o)}}function rc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Xn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function oc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Io(e){let t=oc(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Do(e,t,n,r=!1){let o;typeof e=="string"?o=qn(e):(o={...e},ce(!o.pathname||!o.pathname.includes("?"),Xn("?","pathname","search",o)),ce(!o.pathname||!o.pathname.includes("#"),Xn("#","pathname","hash",o)),ce(!o.search||!o.search.includes("#"),Xn("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=nc(o,s),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var Ne=e=>e.join("/").replace(/\/\/+/g,"/"),ac=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ic=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sc=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Lo=["POST","PUT","PATCH","DELETE"];new Set(Lo);var cc=["GET",...Lo];new Set(cc);var it=c.createContext(null);it.displayName="DataRouter";var Gt=c.createContext(null);Gt.displayName="DataRouterState";var jo=c.createContext({isTransitioning:!1});jo.displayName="ViewTransition";var uc=c.createContext(new Map);uc.displayName="Fetchers";var dc=c.createContext(null);dc.displayName="Await";var Ie=c.createContext(null);Ie.displayName="Navigation";var Zn=c.createContext(null);Zn.displayName="Location";var De=c.createContext({outlet:null,matches:[],isDataRoute:!1});De.displayName="Route";var Jn=c.createContext(null);Jn.displayName="RouteError";function fc(e,{relative:t}={}){ce(Kt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(Ie),{hash:o,pathname:a,search:i}=_t(e,{relative:t}),s=a;return n!=="/"&&(s=a==="/"?n:Ne([n,a])),r.createHref({pathname:s,search:i,hash:o})}function Kt(){return c.useContext(Zn)!=null}function Qe(){return ce(Kt(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(Zn).location}var Fo="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $o(e){c.useContext(Ie).static||c.useLayoutEffect(e)}function pc(){let{isDataRoute:e}=c.useContext(De);return e?_c():mc()}function mc(){ce(Kt(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(it),{basename:t,navigator:n}=c.useContext(Ie),{matches:r}=c.useContext(De),{pathname:o}=Qe(),a=JSON.stringify(Io(r)),i=c.useRef(!1);return $o(()=>{i.current=!0}),c.useCallback((l,u={})=>{if(ke(i.current,Fo),!i.current)return;if(typeof l=="number"){n.go(l);return}let d=Do(l,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ne([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,a,o,e])}c.createContext(null);function _t(e,{relative:t}={}){let{matches:n}=c.useContext(De),{pathname:r}=Qe(),o=JSON.stringify(Io(n));return c.useMemo(()=>Do(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function hc(e,t,n,r){ce(Kt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=c.useContext(Ie),{matches:a}=c.useContext(De),i=a[a.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route;{let h=d&&d.path||"";Ho(l,!d||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
48
+
49
+ Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let f=Qe(),p;p=f;let v=p.pathname||"/",g=v;if(u!=="/"){let h=u.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(h.length).join("/")}let m=Oo(e,{pathname:g});return ke(d||m!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),ke(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),wc(m&&m.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:Ne([u,o.encodeLocation?o.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?u:Ne([u,o.encodeLocation?o.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),a,n,r)}function gc(){let e=Rc(),t=lc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:a},"ErrorBoundary")," or"," ",c.createElement("code",{style:a},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,i)}var vc=c.createElement(gc,null),bc=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?c.createElement(De.Provider,{value:this.props.routeContext},c.createElement(Jn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function xc({routeContext:e,match:t,children:n}){let r=c.useContext(it);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(De.Provider,{value:e},n)}function wc(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let l=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);ce(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let i=!1,s=-1;if(n)for(let l=0;l<o.length;l++){let u=o[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(s=l),u.route.id){let{loaderData:d,errors:f}=n,p=u.route.loader&&!d.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||p){i=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((l,u,d)=>{let f,p=!1,v=null,g=null;n&&(f=a&&u.route.id?a[u.route.id]:void 0,v=u.route.errorElement||vc,i&&(s<0&&d===0?(Ho("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,g=null):s===d&&(p=!0,g=u.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),x=()=>{let h;return f?h=v:p?h=g:u.route.Component?h=c.createElement(u.route.Component,null):u.route.element?h=u.route.element:h=l,c.createElement(xc,{match:u,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:h})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?c.createElement(bc,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:x(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):x()},null)}function Qn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yc(e){let t=c.useContext(it);return ce(t,Qn(e)),t}function Cc(e){let t=c.useContext(Gt);return ce(t,Qn(e)),t}function Ec(e){let t=c.useContext(De);return ce(t,Qn(e)),t}function er(e){let t=Ec(e),n=t.matches[t.matches.length-1];return ce(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Sc(){return er("useRouteId")}function Rc(){var r;let e=c.useContext(Jn),t=Cc("useRouteError"),n=er("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function _c(){let{router:e}=yc("useNavigate"),t=er("useNavigate"),n=c.useRef(!1);return $o(()=>{n.current=!0}),c.useCallback(async(o,a={})=>{ke(n.current,Fo),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var Vo={};function Ho(e,t,n){!t&&!Vo[e]&&(Vo[e]=!0,ke(!1,n))}c.memo(Ac);function Ac({routes:e,future:t,state:n}){return hc(e,void 0,n,t)}var Yt="get",qt="application/x-www-form-urlencoded";function Xt(e){return e!=null&&typeof e.tagName=="string"}function Pc(e){return Xt(e)&&e.tagName.toLowerCase()==="button"}function Mc(e){return Xt(e)&&e.tagName.toLowerCase()==="form"}function Oc(e){return Xt(e)&&e.tagName.toLowerCase()==="input"}function Tc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kc(e,t){return e.button===0&&(!t||t==="_self")&&!Tc(e)}var Zt=null;function Nc(){if(Zt===null)try{new FormData(document.createElement("form"),0),Zt=!1}catch{Zt=!0}return Zt}var Ic=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tr(e){return e!=null&&!Ic.has(e)?(ke(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qt}"`),null):e}function Dc(e,t){let n,r,o,a,i;if(Mc(e)){let s=e.getAttribute("action");r=s?Ue(s,t):null,n=e.getAttribute("method")||Yt,o=tr(e.getAttribute("enctype"))||qt,a=new FormData(e)}else if(Pc(e)||Oc(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?Ue(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Yt,o=tr(e.getAttribute("formenctype"))||tr(s.getAttribute("enctype"))||qt,a=new FormData(s,e),!Nc()){let{name:u,type:d,value:f}=e;if(d==="image"){let p=u?`${u}.`:"";a.append(`${p}x`,"0"),a.append(`${p}y`,"0")}else u&&a.append(u,f)}}else{if(Xt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yt,r=null,o=qt,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function nr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function Lc(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jc(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Fc(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await Lc(a,n);return i.links?i.links():[]}return[]}));return Wc(r.flat(1).filter(jc).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Wo(e,t,n,r,o,a){let i=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var d;return n[u].pathname!==l.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return a==="assets"?t.filter((l,u)=>i(l,u)||s(l,u)):a==="data"?t.filter((l,u)=>{var f;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(i(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function $c(e,t,{includeHydrateFallback:n}={}){return Vc(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Vc(e){return[...new Set(e)]}function Hc(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Wc(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(Hc(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zc=new Set([100,101,204,205]);function Bc(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Ue(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function zo(){let e=c.useContext(it);return nr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Uc(){let e=c.useContext(Gt);return nr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rr=c.createContext(void 0);rr.displayName="FrameworkContext";function Bo(){let e=c.useContext(rr);return nr(e,"You must render this element inside a <HydratedRouter> element"),e}function Gc(e,t){let n=c.useContext(rr),[r,o]=c.useState(!1),[a,i]=c.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=c.useRef(null);c.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let m=h=>{h.forEach(w=>{i(w.isIntersecting)})},x=new IntersectionObserver(m,{threshold:.5});return p.current&&x.observe(p.current),()=>{x.disconnect()}}},[e]),c.useEffect(()=>{if(r){let m=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(m)}}},[r]);let v=()=>{o(!0)},g=()=>{o(!1),i(!1)};return n?e!=="intent"?[a,p,{}]:[a,p,{onFocus:At(s,v),onBlur:At(l,g),onMouseEnter:At(u,v),onMouseLeave:At(d,g),onTouchStart:At(f,v)}]:[!1,p,{}]}function At(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Kc({page:e,...t}){let{router:n}=zo(),r=c.useMemo(()=>Oo(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?c.createElement(qc,{page:e,matches:r,...t}):null}function Yc(e){let{manifest:t,routeModules:n}=Bo(),[r,o]=c.useState([]);return c.useEffect(()=>{let a=!1;return Fc(e,t,n).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,n]),r}function qc({page:e,matches:t,...n}){let r=Qe(),{manifest:o,routeModules:a}=Bo(),{basename:i}=zo(),{loaderData:s,matches:l}=Uc(),u=c.useMemo(()=>Wo(e,t,l,o,r,"data"),[e,t,l,o,r]),d=c.useMemo(()=>Wo(e,t,l,o,r,"assets"),[e,t,l,o,r]),f=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,m=!1;if(t.forEach(h=>{var y;let w=o.routes[h.route.id];!w||!w.hasLoader||(!u.some(S=>S.route.id===h.route.id)&&h.route.id in s&&((y=a[h.route.id])!=null&&y.shouldRevalidate)||w.hasClientLoader?m=!0:g.add(h.route.id))}),g.size===0)return[];let x=Bc(e,i);return m&&g.size>0&&x.searchParams.set("_routes",t.filter(h=>g.has(h.route.id)).map(h=>h.route.id).join(",")),[x.pathname+x.search]},[i,s,r,o,u,t,e,a]),p=c.useMemo(()=>$c(d,o),[d,o]),v=Yc(d);return c.createElement(c.Fragment,null,f.map(g=>c.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>c.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),v.map(({key:g,link:m})=>c.createElement("link",{key:g,...m})))}function Xc(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Uo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Uo&&(window.__reactRouterVersion="7.6.2")}catch{}var Go=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f,...p},v){let{basename:g}=c.useContext(Ie),m=typeof u=="string"&&Go.test(u),x,h=!1;if(typeof u=="string"&&m&&(x=u,Uo))try{let N=new URL(window.location.href),I=u.startsWith("//")?new URL(N.protocol+u):new URL(u),z=Ue(I.pathname,g);I.origin===N.origin&&z!=null?u=z+I.search+I.hash:h=!0}catch{ke(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=fc(u,{relative:o}),[y,S,R]=Gc(r,p),P=eu(u,{replace:i,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:f});function A(N){t&&t(N),N.defaultPrevented||P(N)}let C=c.createElement("a",{...p,...R,href:x||w,onClick:h||a?t:A,ref:Xc(v,S),target:l,"data-discover":!m&&n==="render"?"true":void 0});return y&&!m?c.createElement(c.Fragment,null,C,c.createElement(Kc,{page:w})):C});Pt.displayName="Link";var Zc=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:s,children:l,...u},d){let f=_t(i,{relative:u.relative}),p=Qe(),v=c.useContext(Gt),{navigator:g,basename:m}=c.useContext(Ie),x=v!=null&&au(f)&&s===!0,h=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,w=p.pathname,y=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(w=w.toLowerCase(),y=y?y.toLowerCase():null,h=h.toLowerCase()),y&&m&&(y=Ue(y,m)||y);const S=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let R=w===h||!o&&w.startsWith(h)&&w.charAt(S)==="/",P=y!=null&&(y===h||!o&&y.startsWith(h)&&y.charAt(h.length)==="/"),A={isActive:R,isPending:P,isTransitioning:x},C=R?t:void 0,N;typeof r=="function"?N=r(A):N=[r,R?"active":null,P?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let I=typeof a=="function"?a(A):a;return c.createElement(Pt,{...u,"aria-current":C,className:N,ref:d,style:I,to:i,viewTransition:s},typeof l=="function"?l(A):l)});Zc.displayName="NavLink";var Jc=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=Yt,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,...p},v)=>{let g=ru(),m=ou(s,{relative:u}),x=i.toLowerCase()==="get"?"get":"post",h=typeof s=="string"&&Go.test(s),w=y=>{if(l&&l(y),y.defaultPrevented)return;y.preventDefault();let S=y.nativeEvent.submitter,R=(S==null?void 0:S.getAttribute("formmethod"))||i;g(S||y.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:o,state:a,relative:u,preventScrollReset:d,viewTransition:f})};return c.createElement("form",{ref:v,method:x,action:m,onSubmit:r?l:w,...p,"data-discover":!h&&e==="render"?"true":void 0})});Jc.displayName="Form";function Qc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ko(e){let t=c.useContext(it);return ce(t,Qc(e)),t}function eu(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let s=pc(),l=Qe(),u=_t(e,{relative:a});return c.useCallback(d=>{if(kc(d,t)){d.preventDefault();let f=n!==void 0?n:Yn(l)===Yn(u);s(e,{replace:f,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[l,s,u,n,r,t,e,o,a,i])}var tu=0,nu=()=>`__${String(++tu)}__`;function ru(){let{router:e}=Ko("useSubmit"),{basename:t}=c.useContext(Ie),n=Sc();return c.useCallback(async(r,o={})=>{let{action:a,method:i,encType:s,formData:l,body:u}=Dc(r,t);if(o.navigate===!1){let d=o.fetcherKey||nu();await e.fetch(d,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function ou(e,{relative:t}={}){let{basename:n}=c.useContext(Ie),r=c.useContext(De);ce(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={..._t(e||".",{relative:t})},i=Qe();if(e==null){a.search=i.search;let s=new URLSearchParams(a.search),l=s.getAll("index");if(l.some(d=>d==="")){s.delete("index"),l.filter(f=>f).forEach(f=>s.append("index",f));let d=s.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Ne([n,a.pathname])),Yn(a)}function au(e,t={}){let n=c.useContext(jo);ce(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ko("useViewTransitionState"),o=_t(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Ue(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Ue(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ut(o.pathname,i)!=null||Ut(o.pathname,a)!=null}[...zc];/**
39
50
  * @license lucide-react v0.522.0 - ISC
40
51
  *
41
52
  * This source code is licensed under the ISC license.
42
53
  * See the LICENSE file in the root directory of this source tree.
43
- */const qa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),eo=e=>{const t=Xa(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(),Za=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
54
+ */const iu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),su=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Yo=e=>{const t=su(e);return t.charAt(0).toUpperCase()+t.slice(1)},qo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),lu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
44
55
  * @license lucide-react v0.522.0 - ISC
45
56
  *
46
57
  * This source code is licensed under the ISC license.
47
58
  * See the LICENSE file in the root directory of this source tree.
48
- */var Ja={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"};/**
59
+ */var cu={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
60
  * @license lucide-react v0.522.0 - ISC
50
61
  *
51
62
  * This source code is licensed under the ISC license.
52
63
  * See the LICENSE file in the root directory of this source tree.
53
- */const Qa=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>k.createElement("svg",{ref:c,...Ja,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:to("lucide",o),...!s&&!Za(a)&&{"aria-hidden":"true"},...a},[...i.map(([f,u])=>k.createElement(f,u)),...Array.isArray(s)?s:[s]]));/**
64
+ */const uu=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>D.createElement("svg",{ref:l,...cu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:qo("lucide",o),...!a&&!lu(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,d])=>D.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
54
65
  * @license lucide-react v0.522.0 - ISC
55
66
  *
56
67
  * This source code is licensed under the ISC license.
57
68
  * 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(Qa,{ref:s,iconNode:t,className:to(`lucide-${qa(eo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=eo(e),n};/**
69
+ */const we=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(uu,{ref:a,iconNode:t,className:qo(`lucide-${iu(Yo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Yo(e),n};/**
59
70
  * @license lucide-react v0.522.0 - ISC
60
71
  *
61
72
  * This source code is licensed under the ISC license.
62
73
  * See the LICENSE file in the root directory of this source tree.
63
- */const ec=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"}]]);/**
74
+ */const du=we("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
75
  * @license lucide-react v0.522.0 - ISC
65
76
  *
66
77
  * This source code is licensed under the ISC license.
67
78
  * See the LICENSE file in the root directory of this source tree.
68
- */const tc=xe("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
79
+ */const fu=we("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
69
80
  * @license lucide-react v0.522.0 - ISC
70
81
  *
71
82
  * This source code is licensed under the ISC license.
72
83
  * See the LICENSE file in the root directory of this source tree.
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"}]]);/**
84
+ */const Xo=we("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
85
  * @license lucide-react v0.522.0 - ISC
75
86
  *
76
87
  * This source code is licensed under the ISC license.
77
88
  * See the LICENSE file in the root directory of this source tree.
78
- */const nc=xe("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
89
+ */const pu=we("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
79
90
  * @license lucide-react v0.522.0 - ISC
80
91
  *
81
92
  * This source code is licensed under the ISC license.
82
93
  * See the LICENSE file in the root directory of this source tree.
83
- */const rc=xe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
94
+ */const mu=we("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
84
95
  * @license lucide-react v0.522.0 - ISC
85
96
  *
86
97
  * This source code is licensed under the ISC license.
87
98
  * See the LICENSE file in the root directory of this source tree.
88
- */const oc=xe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
99
+ */const hu=we("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
89
100
  * @license lucide-react v0.522.0 - ISC
90
101
  *
91
102
  * This source code is licensed under the ISC license.
92
103
  * See the LICENSE file in the root directory of this source tree.
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"}]]);/**
104
+ */const Zo=we("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
105
  * @license lucide-react v0.522.0 - ISC
95
106
  *
96
107
  * This source code is licensed under the ISC license.
97
108
  * See the LICENSE file in the root directory of this source tree.
98
- */const sc=xe("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
109
+ */const gu=we("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
99
110
  * @license lucide-react v0.522.0 - ISC
100
111
  *
101
112
  * This source code is licensed under the ISC license.
102
113
  * See the LICENSE file in the root directory of this source tree.
103
- */const ic=xe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
114
+ */const vu=we("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
104
115
  * @license lucide-react v0.522.0 - ISC
105
116
  *
106
117
  * This source code is licensed under the ISC license.
107
118
  * See the LICENSE file in the root directory of this source tree.
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"}]]);/**
119
+ */const Jo=we("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
120
  * @license lucide-react v0.522.0 - ISC
110
121
  *
111
122
  * This source code is licensed under the ISC license.
112
123
  * See the LICENSE file in the root directory of this source tree.
113
- */const ac=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 ie(...e){return l.useCallback(It(...e),e)}function Qe(e){const t=cc(e),n=l.forwardRef((r,o)=>{const{children:s,...i}=r,a=l.Children.toArray(s),c=a.find(uc);if(c){const f=c.props.children,u=a.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,{...i,ref:o,children:l.isValidElement(f)?l.cloneElement(f,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var io=Qe("Slot");function cc(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const i=fc(o),a=dc(s,o.props);return o.type!==l.Fragment&&(a.ref=r?It(r,i):i),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ao=Symbol("radix.slottable");function lc(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ao,t}function uc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ao}function dc(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]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fc(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,i=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]}),a=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,...a}[h]):{...s,...a}[h]===x})?[...f,d,m]:f},[]);return fo(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};function pc(){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="-",mc=e=>{const t=gc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Tn);return a[0]===""&&a.length!==1&&a.shift(),mo(a,t)||hc(i)},getConflictingClassGroupIds:(i,a)=>{const c=n[i]||[];return a&&r[i]?[...c,...r[i]]:c}}},mo=(e,t)=>{var i;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(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ho=/^\[(.+)\]$/,hc=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}},gc=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(vc(o)){Pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Pn(i,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},vc=e=>e.isThemeGetter,bc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Nn="!",kn=":",xc=kn.length,wc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,c=0,f;for(let b=0;b<o.length;b++){let h=o[b];if(i===0&&a===0){if(h===kn){s.push(o.slice(c,b)),c=b+xc;continue}if(h==="/"){f=b;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const u=s.length===0?o:o.substring(c),d=yc(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=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},yc=e=>e.endsWith(Nn)?e.substring(0,e.length-1):e.startsWith(Nn)?e.substring(1):e,Cc=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(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Ec=e=>({cache:bc(e.cacheSize),parseClassName:wc(e),sortModifiers:Cc(e),...mc(e)}),Sc=/\s+/,Rc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Sc);let c="";for(let f=a.length-1;f>=0;f-=1){const u=a[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(i.includes(S))continue;i.push(S);const _=o(v,x);for(let M=0;M<_.length;++M){const A=_[M];i.push(E+A)}c=u+(c.length>0?" "+c:c)}return c};function _c(){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 Ac(e,...t){let n,r,o,s=i;function i(c){const f=t.reduce((u,d)=>d(u),e());return n=Ec(f),r=n.cache.get,o=n.cache.set,s=a,a(c)}function a(c){const f=r(c);if(f)return f;const u=Rc(c,n);return o(c,u),u}return function(){return s(_c.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mc=/^\d+\/\d+$/,Oc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tc=/\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$/,Pc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Nc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,et=e=>Mc.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)),Ne=e=>Oc.test(e),Ic=()=>!0,Dc=e=>Tc.test(e)&&!Pc.test(e),wo=()=>!1,jc=e=>Nc.test(e),Lc=e=>kc.test(e),Fc=e=>!T(e)&&!P(e),$c=e=>tt(e,Ro,wo),T=e=>bo.test(e),Ke=e=>tt(e,_o,Dc),Dn=e=>tt(e,Bc,W),yo=e=>tt(e,Eo,wo),Vc=e=>tt(e,So,Lc),Dt=e=>tt(e,Ao,jc),P=e=>xo.test(e),vt=e=>nt(e,_o),Hc=e=>nt(e,Gc),Co=e=>nt(e,Eo),Wc=e=>nt(e,Ro),zc=e=>nt(e,So),jt=e=>nt(e,Ao,!0),tt=(e,t,n)=>{const r=bo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nt=(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",Bc=e=>e==="number",Gc=e=>e==="family-name",Ao=e=>e==="shadow",Uc=Ac(()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),i=ae("breakpoint"),a=ae("container"),c=ae("spacing"),f=ae("radius"),u=ae("shadow"),d=ae("inset-shadow"),m=ae("text-shadow"),g=ae("drop-shadow"),b=ae("blur"),h=ae("perspective"),x=ae("aspect"),v=ae("ease"),y=ae("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(),Co,yo,{position:[P,T]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",Wc,$c,{size:[P,T]}],j=()=>[In,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,In,Co,yo],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:[Ne],breakpoint:[Ne],color:[Ic],container:[Ne],"drop-shadow":[Ne],ease:["in","out","in-out"],font:[Fc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ne],shadow:[Ne],spacing:["px",W],text:[Ne],"text-shadow":[Ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",et,T,P,x]}],container:["container"],columns:[{columns:[W,T,P,a]}],"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",a,...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:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...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,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:[Hc,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,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]},zc,Vc]}],"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,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,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,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,vt,Ke,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 Uc(lo(e))}const Kc=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 i=r?io:"button";return p.jsx(i,{className:B(Kc({variant:t,size:n,className:e})),ref:s,...o})});jn.displayName="Button";const Yc=l.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:B("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Yc.displayName="Input";var qc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=qc.reduce((e,t)=>{const n=Qe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mo(e,t){e&&Tr.flushSync(()=>e.dispatchEvent(t))}var Xc="Separator",Oo="horizontal",Zc=["horizontal","vertical"],To=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Oo,...o}=e,s=Jc(r)?r:Oo,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(ne.div,{"data-orientation":s,...a,...o,ref:t})});To.displayName=Xc;function Jc(e){return Zc.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 Qc(e,t){const n=l.createContext(t),r=s=>{const{children:i,...a}=s,c=l.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=l.useContext(n);if(i)return i;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,i){const a=l.createContext(i),c=n.length;n=[...n,i];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])||a,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])||a,b=l.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[f,u]}const o=()=>{const s=n.map(i=>l.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,el(o,...t)]}function el(...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 i=r.reduce((a,{useScope:c,scopeName:f})=>{const d=c(s)[`__scope${f}`];return{...a,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},tl=l[" useId ".trim().toString()]||(()=>{}),nl=0;function rt(e){const[t,n]=l.useState(tl());return He(()=>{n(r=>r??String(nl++))},[e]),e||(t?`radix-${t}`:"")}var rl=l[" useInsertionEffect ".trim().toString()]||He;function Ln({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ol({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=l.useRef(e!==void 0);l.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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=a},[a,r])}const f=l.useCallback(u=>{var d;if(a){const m=sl(u)?u(e):u;m!==e&&((d=i.current)==null||d.call(i,m))}else s(u)},[a,e,s,i]);return[c,f]}function ol({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return rl(()=>{s.current=t},[t]),l.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function sl(e){return typeof e=="function"}function ke(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 il(e,t=globalThis==null?void 0:globalThis.document){const n=ke(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 al="DismissableLayer",Fn="dismissableLayer.update",cl="dismissableLayer.pointerDownOutside",ll="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:i,onDismiss:a,...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=ie(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,_=fl(A=>{const C=A.target,I=[...f.branches].some(D=>D.contains(C));!S||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},m),M=pl(A=>{const C=A.target;[...f.branches].some(D=>D.contains(C))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},m);return il(A=>{y===f.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},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=al;var ul="DismissableLayerBranch",dl=l.forwardRef((e,t)=>{const n=l.useContext(Io),r=l.useRef(null),o=ie(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})});dl.displayName=ul;function fl(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){jo(cl,n,f,{discrete:!0})};const f={originalEvent:a};a.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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pl(e,t=globalThis==null?void 0:globalThis.document){const n=ke(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&jo(ll,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},ml="FocusScope",Hn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=l.useState(null),f=ke(o),u=ke(s),d=l.useRef(null),m=ie(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||!a)return;const S=E.target;a.contains(S)?d.current=S:We(d.current,{select:!0})},x=function(E){if(g.paused||!a)return;const S=E.relatedTarget;S!==null&&(a.contains(S)||We(d.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&We(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(v);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,a,g.paused]),l.useEffect(()=>{if(a){Vo.add(g);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent($n,Lo);a.addEventListener($n,f),a.dispatchEvent(v),v.defaultPrevented||(hl(wl(Fo(a)),{select:!0}),document.activeElement===h&&We(a))}return()=>{a.removeEventListener($n,f),setTimeout(()=>{const v=new CustomEvent(Vn,Lo);a.addEventListener(Vn,u),a.dispatchEvent(v),v.defaultPrevented||We(h??document.body,{select:!0}),a.removeEventListener(Vn,u),Vo.remove(g)},0)}}},[a,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]=gl(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,...i,ref:m,onKeyDown:b})});Hn.displayName=ml;function hl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function gl(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(!vl(n,{upTo:t}))return n}function vl(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 bl(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&&bl(e)&&t&&e.select()}}var Vo=xl();function xl(){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 wl(e){return e.filter(t=>t.tagName!=="A")}var yl="Portal",Wn=l.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=l.useState(!1);He(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Mr.createPortal(p.jsx(ne.div,{...r,ref:t}),i):null});Wn.displayName=yl;function Cl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ie=e=>{const{present:t,children:n}=e,r=El(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ie(r.ref,Sl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ie.displayName="Presence";function El(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[a,c]=Cl(i,{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=a==="mounted"?f:"none"},[a]),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(a),ref:l.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Ft(e){return(e==null?void 0:e.animationName)||"none"}function Sl(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 Rl(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",_l="with-scroll-bars-hidden",Al="--removed-body-scroll-bar-size";function Bn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ml(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 Ol=typeof window<"u"?l.useLayoutEffect:l.useEffect,Go=new WeakMap;function Tl(e,t){var n=Ml(null,function(r){return e.forEach(function(o){return Bn(o,r)})});return Ol(function(){var r=Go.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Bn(a,null)}),s.forEach(function(a){o.has(a)||Bn(a,i)})}Go.set(n,e)},[e]),n}function Pl(e){return e}function Nl(e,t){t===void 0&&(t=Pl);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 i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var u=i;i=[],u.forEach(s)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(u){i.push(u),f()},filter:function(u){return i=i.filter(u),n}}}};return o}function kl(e){e===void 0&&(e={});var t=Nl(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 Il(e,t){return e.useMedium(t),Uo}var Ko=kl(),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],i=e.forwardProps,a=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=Tl([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}),i?l.cloneElement(l.Children.only(a),Se(Se({},A),{ref:M})):l.createElement(y,Se({},A,{className:c,ref:M}),a))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Vt,zeroRight:$t};var Dl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dl();return t&&e.setAttribute("nonce",t),e}function Ll(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $l=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jl())&&(Ll(t,n),Fl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vl=function(){var e=$l();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yo=function(){var e=Vl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Hl={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},Wl=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)]},zl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hl;var t=Wl(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])}},Bl=Yo(),ot="data-scroll-locked",Gl=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
114
- .`.concat(_l,` {
124
+ */const bu=we("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Qo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Qo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Qo(e[o],null)}}}}function ie(...e){return c.useCallback(Jt(...e),e)}function st(e){const t=xu(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(yu);if(l){const u=l.props.children,d=s.map(f=>f===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return b.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return b.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var ea=st("Slot");function xu(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=Eu(o),s=Cu(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Jt(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ta=Symbol("radix.slottable");function wu(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ta,t}function yu(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ta}function Cu(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Eu(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 na(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=na(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ra(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=na(e))&&(r&&(r+=" "),r+=t);return r}const oa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,aa=ra,ia=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return aa(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=a==null?void 0:a[u];if(d===null)return null;const p=oa(d)||oa(f);return o[u][p]}),s=n&&Object.entries(n).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:p,...v}=d;return Object.entries(v).every(g=>{let[m,x]=g;return Array.isArray(x)?x.includes({...a,...s}[m]):{...a,...s}[m]===x})?[...u,f,p]:u},[]);return aa(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Su(){const[e,t]=D.useState(!1);return D.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const or="-",Ru=e=>{const t=Au(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(or);return s[0]===""&&s.length!==1&&s.shift(),sa(s,t)||_u(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&r[i]?[...l,...r[i]]:l}}},sa=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?sa(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(or);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},la=/^\[(.+)\]$/,_u=e=>{if(la.test(e)){const t=la.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Au=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ar(n[o],r,o,t);return r},ar=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ca(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Pu(o)){ar(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{ar(i,ca(t,a),n,r)})})},ca=(e,t)=>{let n=e;return t.split(or).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Pu=e=>e.isThemeGetter,Mu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},ir="!",sr=":",Ou=sr.length,Tu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,l=0,u;for(let g=0;g<o.length;g++){let m=o[g];if(i===0&&s===0){if(m===sr){a.push(o.slice(l,g)),l=g+Ou;continue}if(m==="/"){u=g;continue}}m==="["?i++:m==="]"?i--:m==="("?s++:m===")"&&s--}const d=a.length===0?o:o.substring(l),f=ku(d),p=f!==d,v=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:v}};if(t){const o=t+sr,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ku=e=>e.endsWith(ir)?e.substring(0,e.length-1):e.startsWith(ir)?e.substring(1):e,Nu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Iu=e=>({cache:Mu(e.cacheSize),parseClassName:Tu(e),sortModifiers:Nu(e),...Ru(e)}),Du=/\s+/,Lu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Du);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:f,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=n(d);if(f){l=d+(l.length>0?" "+l:l);continue}let x=!!m,h=r(x?g.substring(0,m):g);if(!h){if(!x){l=d+(l.length>0?" "+l:l);continue}if(h=r(g),!h){l=d+(l.length>0?" "+l:l);continue}x=!1}const w=a(p).join(":"),y=v?w+ir:w,S=y+h;if(i.includes(S))continue;i.push(S);const R=o(h,x);for(let P=0;P<R.length;++P){const A=R[P];i.push(y+A)}l=d+(l.length>0?" "+l:l)}return l};function ju(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ua(t))&&(r&&(r+=" "),r+=n);return r}const ua=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ua(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fu(e,...t){let n,r,o,a=i;function i(l){const u=t.reduce((d,f)=>f(d),e());return n=Iu(u),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const u=r(l);if(u)return u;const d=Lu(l,n);return o(l,d),d}return function(){return a(ju.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},da=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$u=/^\d+\/\d+$/,Vu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hu=/\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$/,Wu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>$u.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>!!e&&Number.isInteger(Number(e)),lr=e=>e.endsWith("%")&&W(e.slice(0,-1)),Le=e=>Vu.test(e),Uu=()=>!0,Gu=e=>Hu.test(e)&&!Wu.test(e),pa=()=>!1,Ku=e=>zu.test(e),Yu=e=>Bu.test(e),qu=e=>!O(e)&&!T(e),Xu=e=>ct(e,ba,pa),O=e=>da.test(e),et=e=>ct(e,xa,Gu),cr=e=>ct(e,td,W),ma=e=>ct(e,ga,pa),Zu=e=>ct(e,va,Yu),Qt=e=>ct(e,wa,Ku),T=e=>fa.test(e),Mt=e=>ut(e,xa),Ju=e=>ut(e,nd),ha=e=>ut(e,ga),Qu=e=>ut(e,ba),ed=e=>ut(e,va),en=e=>ut(e,wa,!0),ct=(e,t,n)=>{const r=da.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ut=(e,t,n=!1)=>{const r=fa.exec(e);return r?r[1]?t(r[1]):n:!1},ga=e=>e==="position"||e==="percentage",va=e=>e==="image"||e==="url",ba=e=>e==="length"||e==="size"||e==="bg-size",xa=e=>e==="length",td=e=>e==="number",nd=e=>e==="family-name",wa=e=>e==="shadow",rd=Fu(()=>{const e=se("color"),t=se("font"),n=se("text"),r=se("font-weight"),o=se("tracking"),a=se("leading"),i=se("breakpoint"),s=se("container"),l=se("spacing"),u=se("radius"),d=se("shadow"),f=se("inset-shadow"),p=se("text-shadow"),v=se("drop-shadow"),g=se("blur"),m=se("perspective"),x=se("aspect"),h=se("ease"),w=se("animate"),y=()=>["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"],R=()=>[...S(),T,O],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[T,O,l],N=()=>[lt,"full","auto",...C()],I=()=>[Ge,"none","subgrid",T,O],z=()=>["auto",{span:["full",Ge,T,O]},Ge,T,O],B=()=>[Ge,"auto",T,O],V=()=>["auto","min","max","fr",T,O],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()],G=()=>[lt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],_=()=>[e,T,O],M=()=>[...S(),ha,ma,{position:[T,O]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",Qu,Xu,{size:[T,O]}],L=()=>[lr,Mt,et],$=()=>["","none","full",u,T,O],X=()=>["",W,Mt,et],te=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[W,lr,ha,ma],Q=()=>["","none",g,T,O],ee=()=>["none",W,T,O],ae=()=>["none",W,T,O],Se=()=>[W,T,O],Ze=()=>[lt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Le],breakpoint:[Le],color:[Uu],container:[Le],"drop-shadow":[Le],ease:["in","out","in-out"],font:[qu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Le],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Le],shadow:[Le],spacing:["px",W],text:[Le],"text-shadow":[Le],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lt,O,T,x]}],container:["container"],columns:[{columns:[W,O,T,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:R()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Ge,"auto",T,O]}],basis:[{basis:[lt,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,lt,"auto","initial","none",O]}],grow:[{grow:["",W,T,O]}],shrink:[{shrink:["",W,T,O]}],order:[{order:[Ge,"first","last","none",T,O]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"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:G()}],w:[{w:[s,"screen",...G()]}],"min-w":[{"min-w":[s,"screen","none",...G()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,Mt,et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,T,cr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lr,O]}],"font-family":[{font:[Ju,O,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,T,O]}],"line-clamp":[{"line-clamp":[W,"none",T,cr]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",T,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",T,et]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[W,"auto",T,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,O]}],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",T,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ge,T,O],radial:["",T,O],conic:[Ge,T,O]},ed,Zu]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],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:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,T,O]}],"outline-w":[{outline:["",W,Mt,et]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,en,Qt]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,en,Qt]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[W,et]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",p,en,Qt]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[W,T,O]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"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":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"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":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"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":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"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":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"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":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"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":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[T,O]}],"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":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":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":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,O]}],filter:[{filter:["","none",T,O]}],blur:[{blur:Q()}],brightness:[{brightness:[W,T,O]}],contrast:[{contrast:[W,T,O]}],"drop-shadow":[{"drop-shadow":["","none",v,en,Qt]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",W,T,O]}],"hue-rotate":[{"hue-rotate":[W,T,O]}],invert:[{invert:["",W,T,O]}],saturate:[{saturate:[W,T,O]}],sepia:[{sepia:["",W,T,O]}],"backdrop-filter":[{"backdrop-filter":["","none",T,O]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[W,T,O]}],"backdrop-contrast":[{"backdrop-contrast":[W,T,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,T,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,T,O]}],"backdrop-invert":[{"backdrop-invert":["",W,T,O]}],"backdrop-opacity":[{"backdrop-opacity":[W,T,O]}],"backdrop-saturate":[{"backdrop-saturate":[W,T,O]}],"backdrop-sepia":[{"backdrop-sepia":["",W,T,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",T,O]}],ease:[{ease:["linear","initial",h,T,O]}],delay:[{delay:[W,T,O]}],animate:[{animate:["none",w,T,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,T,O]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[T,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ze()}],"translate-x":[{"translate-x":Ze()}],"translate-y":[{"translate-y":Ze()}],"translate-z":[{"translate-z":Ze()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",T,O]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[W,Mt,et,cr]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function U(...e){return rd(ra(e))}const od=ia("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"}}),ur=c.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ea:"button";return b.jsx(i,{className:U(od({variant:t,size:n,className:e})),ref:a,...o})});ur.displayName="Button";const ad=c.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:U("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));ad.displayName="Input";var id=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=id.reduce((e,t)=>{const n=st(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ya(e,t){e&&oo.flushSync(()=>e.dispatchEvent(t))}var sd="Separator",Ca="horizontal",ld=["horizontal","vertical"],Ea=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ca,...o}=e,a=cd(r)?r:Ca,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return b.jsx(ne.div,{"data-orientation":a,...s,...o,ref:t})});Ea.displayName=sd;function cd(e){return ld.includes(e)}var Sa=Ea;const Ra=c.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>b.jsx(Sa,{ref:o,decorative:n,orientation:t,className:U("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ra.displayName=Sa.displayName;function j(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 ud(e,t){const n=c.createContext(t),r=a=>{const{children:i,...s}=a,l=c.useMemo(()=>s,Object.values(s));return b.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function tt(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i),l=n.length;n=[...n,i];const u=f=>{var h;const{scope:p,children:v,...g}=f,m=((h=p==null?void 0:p[e])==null?void 0:h[l])||s,x=c.useMemo(()=>g,Object.values(g));return b.jsx(m.Provider,{value:x,children:v})};u.displayName=a+"Provider";function d(f,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,g=c.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,d]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,dd(o,...t)]}function dd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...s,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Ke=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},fd=c[" useId ".trim().toString()]||(()=>{}),pd=0;function dt(e){const[t,n]=c.useState(fd());return Ke(()=>{n(r=>r??String(pd++))},[e]),e||(t?`radix-${t}`:"")}var md=c[" useInsertionEffect ".trim().toString()]||Ke;function dr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=hd({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==s&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${s?"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.`),d.current=s},[s,r])}const u=c.useCallback(d=>{var f;if(s){const p=gd(d)?d(e):d;p!==e&&((f=i.current)==null||f.call(i,p))}else a(d)},[s,e,a,i]);return[l,u]}function hd({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return md(()=>{a.current=t},[t]),c.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,r,a]}function gd(e){return typeof e=="function"}function je(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function vd(e,t=globalThis==null?void 0:globalThis.document){const n=je(e);c.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 bd="DismissableLayer",fr="dismissableLayer.update",xd="dismissableLayer.pointerDownOutside",wd="dismissableLayer.focusOutside",_a,Aa=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=c.useContext(Aa),[d,f]=c.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),g=ie(t,A=>f(A)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=m.indexOf(x),w=d?m.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=h,R=Ed(A=>{const C=A.target,N=[...u.branches].some(I=>I.contains(C));!S||N||(o==null||o(A),i==null||i(A),A.defaultPrevented||s==null||s())},p),P=Sd(A=>{const C=A.target;[...u.branches].some(I=>I.contains(C))||(a==null||a(A),i==null||i(A),A.defaultPrevented||s==null||s())},p);return vd(A=>{w===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},p),c.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Pa(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=_a)}},[d,p,n,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Pa())},[d,u]),c.useEffect(()=>{const A=()=>v({});return document.addEventListener(fr,A),()=>document.removeEventListener(fr,A)},[]),b.jsx(ne.div,{...l,ref:g,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,P.onFocusCapture),onBlurCapture:j(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,R.onPointerDownCapture)})});tn.displayName=bd;var yd="DismissableLayerBranch",Cd=c.forwardRef((e,t)=>{const n=c.useContext(Aa),r=c.useRef(null),o=ie(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),b.jsx(ne.div,{...e,ref:o})});Cd.displayName=yd;function Ed(e,t=globalThis==null?void 0:globalThis.document){const n=je(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){Ma(xd,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Sd(e,t=globalThis==null?void 0:globalThis.document){const n=je(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Ma(wd,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pa(){const e=new CustomEvent(fr);document.dispatchEvent(e)}function Ma(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ya(o,a):o.dispatchEvent(a)}var pr="focusScope.autoFocusOnMount",mr="focusScope.autoFocusOnUnmount",Oa={bubbles:!1,cancelable:!0},Rd="FocusScope",hr=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=c.useState(null),u=je(o),d=je(a),f=c.useRef(null),p=ie(t,m=>l(m)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function(y){if(v.paused||!s)return;const S=y.target;s.contains(S)?f.current=S:Ye(f.current,{select:!0})},x=function(y){if(v.paused||!s)return;const S=y.relatedTarget;S!==null&&(s.contains(S)||Ye(f.current,{select:!0}))},h=function(y){if(document.activeElement===document.body)for(const R of y)R.removedNodes.length>0&&Ye(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const w=new MutationObserver(h);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),w.disconnect()}}},[r,s,v.paused]),c.useEffect(()=>{if(s){Na.add(v);const m=document.activeElement;if(!s.contains(m)){const h=new CustomEvent(pr,Oa);s.addEventListener(pr,u),s.dispatchEvent(h),h.defaultPrevented||(_d(Td(Ta(s)),{select:!0}),document.activeElement===m&&Ye(s))}return()=>{s.removeEventListener(pr,u),setTimeout(()=>{const h=new CustomEvent(mr,Oa);s.addEventListener(mr,d),s.dispatchEvent(h),h.defaultPrevented||Ye(m??document.body,{select:!0}),s.removeEventListener(mr,d),Na.remove(v)},0)}}},[s,u,d,v]);const g=c.useCallback(m=>{if(!n&&!r||v.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(x&&h){const w=m.currentTarget,[y,S]=Ad(w);y&&S?!m.shiftKey&&h===S?(m.preventDefault(),n&&Ye(y,{select:!0})):m.shiftKey&&h===y&&(m.preventDefault(),n&&Ye(S,{select:!0})):h===w&&m.preventDefault()}},[n,r,v.paused]);return b.jsx(ne.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});hr.displayName=Rd;function _d(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ye(r,{select:t}),document.activeElement!==n)return}function Ad(e){const t=Ta(e),n=ka(t,e),r=ka(t.reverse(),e);return[n,r]}function Ta(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 ka(e,t){for(const n of e)if(!Pd(n,{upTo:t}))return n}function Pd(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 Md(e){return e instanceof HTMLInputElement&&"select"in e}function Ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Md(e)&&t&&e.select()}}var Na=Od();function Od(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ia(e,t),e.unshift(t)},remove(t){var n;e=Ia(e,t),(n=e[0])==null||n.resume()}}}function Ia(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Td(e){return e.filter(t=>t.tagName!=="A")}var kd="Portal",gr=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Ke(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?no.createPortal(b.jsx(ne.div,{...r,ref:t}),i):null});gr.displayName=kd;function Nd(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Fe=e=>{const{present:t,children:n}=e,r=Id(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ie(r.ref,Dd(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};Fe.displayName="Presence";function Id(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,l]=Nd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=nn(r.current);a.current=s==="mounted"?u:"none"},[s]),Ke(()=>{const u=r.current,d=o.current;if(d!==e){const p=a.current,v=nn(u);e?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ke(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=v=>{const m=nn(r.current).includes(v.animationName);if(v.target===t&&m&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=v=>{v.target===t&&(a.current=nn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function nn(e){return(e==null?void 0:e.animationName)||"none"}function Dd(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 vr=0;function Da(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??La()),document.body.insertAdjacentElement("beforeend",e[1]??La()),vr++,()=>{vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vr--}},[])}function La(){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 Re=function(){return Re=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Re.apply(this,arguments)};function ja(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 Ld(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var rn="right-scroll-bar-position",on="width-before-scroll-bar",jd="with-scroll-bars-hidden",Fd="--removed-body-scroll-bar-size";function br(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $d(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Vd=typeof window<"u"?c.useLayoutEffect:c.useEffect,Fa=new WeakMap;function Hd(e,t){var n=$d(null,function(r){return e.forEach(function(o){return br(o,r)})});return Vd(function(){var r=Fa.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||br(s,null)}),a.forEach(function(s){o.has(s)||br(s,i)})}Fa.set(n,e)},[e]),n}function Wd(e){return e}function zd(e,t){t===void 0&&(t=Wd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var d=i;i=[],d.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function Bd(e){e===void 0&&(e={});var t=zd(null);return t.options=Re({async:!0,ssr:!1},e),t}var $a=function(e){var t=e.sideCar,n=ja(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 c.createElement(r,Re({},n))};$a.isSideCarExport=!0;function Ud(e,t){return e.useMedium(t),$a}var Va=Bd(),xr=function(){},an=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:xr,onWheelCapture:xr,onTouchMoveCapture:xr}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,x=e.allowPinchZoom,h=e.as,w=h===void 0?"div":h,y=e.gapMode,S=ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,P=Hd([n,t]),A=Re(Re({},S),o);return c.createElement(c.Fragment,null,d&&c.createElement(R,{sideCar:Va,removeScrollBar:u,shards:f,noRelative:v,noIsolation:g,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:y}),i?c.cloneElement(c.Children.only(s),Re(Re({},A),{ref:P})):c.createElement(w,Re({},A,{className:l,ref:P}),s))});an.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},an.classNames={fullWidth:on,zeroRight:rn};var Gd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gd();return t&&e.setAttribute("nonce",t),e}function Yd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kd())&&(Yd(t,n),qd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zd=function(){var e=Xd();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ha=function(){var e=Zd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Jd={left:0,top:0,right:0,gap:0},wr=function(e){return parseInt(e||"",10)||0},Qd=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[wr(n),wr(r),wr(o)]},ef=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Jd;var t=Qd(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])}},tf=Ha(),ft="data-scroll-locked",nf=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
125
+ .`.concat(jd,` {
115
126
  overflow: hidden `).concat(r,`;
116
- padding-right: `).concat(a,"px ").concat(r,`;
127
+ padding-right: `).concat(s,"px ").concat(r,`;
117
128
  }
118
- body[`).concat(ot,`] {
129
+ body[`).concat(ft,`] {
119
130
  overflow: hidden `).concat(r,`;
120
131
  overscroll-behavior: contain;
121
132
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
122
133
  padding-left: `.concat(o,`px;
123
- padding-top: `).concat(s,`px;
134
+ padding-top: `).concat(a,`px;
124
135
  padding-right: `).concat(i,`px;
125
136
  margin-left:0;
126
137
  margin-top:0;
127
- margin-right: `).concat(a,"px ").concat(r,`;
128
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
138
+ margin-right: `).concat(s,"px ").concat(r,`;
139
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
129
140
  }
130
141
 
131
- .`).concat($t,` {
132
- right: `).concat(a,"px ").concat(r,`;
142
+ .`).concat(rn,` {
143
+ right: `).concat(s,"px ").concat(r,`;
133
144
  }
134
145
 
135
- .`).concat(Vt,` {
136
- margin-right: `).concat(a,"px ").concat(r,`;
146
+ .`).concat(on,` {
147
+ margin-right: `).concat(s,"px ").concat(r,`;
137
148
  }
138
149
 
139
- .`).concat($t," .").concat($t,` {
150
+ .`).concat(rn," .").concat(rn,` {
140
151
  right: 0 `).concat(r,`;
141
152
  }
142
153
 
143
- .`).concat(Vt," .").concat(Vt,` {
154
+ .`).concat(on," .").concat(on,` {
144
155
  margin-right: 0 `).concat(r,`;
145
156
  }
146
157
 
147
- body[`).concat(ot,`] {
148
- `).concat(Al,": ").concat(a,`px;
158
+ body[`).concat(ft,`] {
159
+ `).concat(Fd,": ").concat(s,`px;
149
160
  }
150
- `)},qo=function(){var e=parseInt(document.body.getAttribute(ot)||"0",10);return isFinite(e)?e:0},Ul=function(){l.useEffect(function(){return document.body.setAttribute(ot,(qo()+1).toString()),function(){var e=qo()-1;e<=0?document.body.removeAttribute(ot):document.body.setAttribute(ot,e.toString())}},[])},Kl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ul();var s=l.useMemo(function(){return zl(o)},[o]);return l.createElement(Bl,{styles:Gl(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 st=Kn?{passive:!1}:!1,Yl=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&&!Yl(e)&&n[t]==="visible")},ql=function(e){return Xo(e,"overflowY")},Xl=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),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Zl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Jl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Jo=function(e,t){return e==="v"?ql(t):Xl(t)},Qo=function(e,t){return e==="v"?Zl(t):Jl(t)},Ql=function(e,t){return e==="h"&&t==="rtl"?-1:1},eu=function(e,t,n,r,o){var s=Ql(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),f=!1,u=i>0,d=0,m=0;do{if(!a)break;var g=Qo(e,a),b=g[0],h=g[1],x=g[2],v=h-x-s*b;(b||v)&&Jo(e,a)&&(d+=v,m+=b);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));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},tu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nu=function(e){return`
161
+ `)},Wa=function(){var e=parseInt(document.body.getAttribute(ft)||"0",10);return isFinite(e)?e:0},rf=function(){c.useEffect(function(){return document.body.setAttribute(ft,(Wa()+1).toString()),function(){var e=Wa()-1;e<=0?document.body.removeAttribute(ft):document.body.setAttribute(ft,e.toString())}},[])},of=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;rf();var a=c.useMemo(function(){return ef(o)},[o]);return c.createElement(tf,{styles:nf(a,!t,o,n?"":"!important")})},yr=!1;if(typeof window<"u")try{var sn=Object.defineProperty({},"passive",{get:function(){return yr=!0,!0}});window.addEventListener("test",sn,sn),window.removeEventListener("test",sn,sn)}catch{yr=!1}var pt=yr?{passive:!1}:!1,af=function(e){return e.tagName==="TEXTAREA"},za=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!af(e)&&n[t]==="visible")},sf=function(e){return za(e,"overflowY")},lf=function(e){return za(e,"overflowX")},Ba=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ua(e,r);if(o){var a=Ga(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ua=function(e,t){return e==="v"?sf(t):lf(t)},Ga=function(e,t){return e==="v"?cf(t):uf(t)},df=function(e,t){return e==="h"&&t==="rtl"?-1:1},ff=function(e,t,n,r,o){var a=df(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),u=!1,d=i>0,f=0,p=0;do{if(!s)break;var v=Ga(e,s),g=v[0],m=v[1],x=v[2],h=m-x-a*g;(g||h)&&Ua(e,s)&&(f+=h,p+=g);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},ln=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ka=function(e){return[e.deltaX,e.deltaY]},Ya=function(e){return e&&"current"in e?e.current:e},pf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mf=function(e){return`
151
162
  .block-interactivity-`.concat(e,` {pointer-events: none;}
152
163
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
153
- `)},ru=0,it=[];function ou(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(ru++)[0],s=l.useState(Yo)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Rl([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 a=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.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 eu(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)&&tu(_.delta,v)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var E=(i.current.shards||[]).map(ts).filter(Boolean).filter(function(_){return _.contains(x.target)}),S=E.length>0?a(x,E[0]):!i.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:su(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,a(h,e.lockRef.current))},[]),m=l.useCallback(function(h){f(h.type,zt(h),h.target,a(h,e.lockRef.current))},[]);l.useEffect(function(){return it.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",c,st),document.addEventListener("touchmove",c,st),document.addEventListener("touchstart",u,st),function(){it=it.filter(function(h){return h!==s}),document.removeEventListener("wheel",c,st),document.removeEventListener("touchmove",c,st),document.removeEventListener("touchstart",u,st)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(s,{styles:nu(o)}):null,g?l.createElement(Kl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function su(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iu=Il(Ko,ou);var Yn=l.forwardRef(function(e,t){return l.createElement(Ht,Se({},e,{ref:t,sideCar:iu}))});Yn.classNames=Ht.classNames;var au=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=new WeakMap,Bt=new WeakMap,Gt={},qn=0,ns=function(e){return e&&(e.host||ns(e.parentNode))},cu=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})},lu=function(e,t,n,r){var o=cu(t,Array.isArray(e)?e:[e]);Gt[n]||(Gt[n]=new WeakMap);var s=Gt[n],i=[],a=new Set,c=new Set(o),f=function(d){!d||a.has(d)||(a.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(a.has(m))u(m);else try{var g=m.getAttribute(r),b=g!==null&&g!=="false",h=(at.get(m)||0)+1,x=(s.get(m)||0)+1;at.set(m,h),s.set(m,x),i.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),a.clear(),qn++,function(){i.forEach(function(d){var m=at.get(d)-1,g=s.get(d)-1;at.set(d,m),s.set(d,g),m||(Bt.has(d)||d.removeAttribute(r),Bt.delete(d)),g||d.removeAttribute(n)}),qn--,qn||(at=new WeakMap,at=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=au(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),lu(r,o,n,"aria-hidden")):function(){return null}},Ut="Dialog",[os,E0]=Ye(Ut),[uu,we]=os(Ut),ss=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=l.useRef(null),c=l.useRef(null),[f,u]=Ln({prop:r,defaultProp:o??!1,onChange:s,caller:Ut});return p.jsx(uu,{scope:t,triggerRef:a,contentRef:c,contentId:rt(),titleId:rt(),descriptionId:rt(),open:f,onOpenChange:u,onOpenToggle:l.useCallback(()=>u(d=>!d),[u]),modal:i,children:n})};ss.displayName=Ut;var is="DialogTrigger",du=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(is,n),s=ie(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)})});du.displayName=is;var Xn="DialogPortal",[fu,as]=os(Xn,{forceMount:void 0}),cs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=we(Xn,t);return p.jsx(fu,{scope:t,forceMount:n,children:l.Children.map(r,i=>p.jsx(Ie,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:i})}))})};cs.displayName=Xn;var Kt="DialogOverlay",ls=l.forwardRef((e,t)=>{const n=as(Kt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(Kt,e.__scopeDialog);return s.modal?p.jsx(Ie,{present:r||s.open,children:p.jsx(mu,{...o,ref:t})}):null});ls.displayName=Kt;var pu=Qe("DialogOverlay.RemoveScroll"),mu=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(Kt,n);return p.jsx(Yn,{as:pu,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ne.div,{"data-state":Jn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),qe="DialogContent",us=l.forwardRef((e,t)=>{const n=as(qe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(qe,e.__scopeDialog);return p.jsx(Ie,{present:r||s.open,children:s.modal?p.jsx(hu,{...o,ref:t}):p.jsx(gu,{...o,ref:t})})});us.displayName=qe;var hu=l.forwardRef((e,t)=>{const n=we(qe,e.__scopeDialog),r=l.useRef(null),o=ie(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 i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault())})}),gu=l.forwardRef((e,t)=>{const n=we(qe,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ds,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.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 i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&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,...i}=e,a=we(qe,n),c=l.useRef(null),f=ie(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:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Jn(a.open),...i,ref:f,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(vu,{titleId:a.titleId}),p.jsx(xu,{contentRef:c,descriptionId:a.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",[S0,bs]=Qc(vs,{contentName:qe,titleName:Zn,docsSlug:"dialog"}),vu=({titleId:e})=>{const t=bs(vs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
164
+ `)},hf=0,mt=[];function gf(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(hf++)[0],a=c.useState(Ha)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Ld([e.lockRef.current],(e.shards||[]).map(Ya),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var h=ln(m),w=n.current,y="deltaX"in m?m.deltaX:w[0]-h[0],S="deltaY"in m?m.deltaY:w[1]-h[1],R,P=m.target,A=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&A==="h"&&P.type==="range")return!1;var C=Ba(A,P);if(!C)return!0;if(C?R=A:(R=A==="v"?"h":"v",C=Ba(A,P)),!C)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=R),!R)return!0;var N=r.current||R;return ff(N,x,m,N==="h"?y:S)},[]),l=c.useCallback(function(m){var x=m;if(!(!mt.length||mt[mt.length-1]!==a)){var h="deltaY"in x?Ka(x):ln(x),w=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&pf(R.delta,h)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var y=(i.current.shards||[]).map(Ya).filter(Boolean).filter(function(R){return R.contains(x.target)}),S=y.length>0?s(x,y[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=c.useCallback(function(m,x,h,w){var y={name:m,delta:x,target:h,should:w,shadowParent:vf(h)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=c.useCallback(function(m){n.current=ln(m),r.current=void 0},[]),f=c.useCallback(function(m){u(m.type,Ka(m),m.target,s(m,e.lockRef.current))},[]),p=c.useCallback(function(m){u(m.type,ln(m),m.target,s(m,e.lockRef.current))},[]);c.useEffect(function(){return mt.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,pt),document.addEventListener("touchmove",l,pt),document.addEventListener("touchstart",d,pt),function(){mt=mt.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,pt),document.removeEventListener("touchmove",l,pt),document.removeEventListener("touchstart",d,pt)}},[]);var v=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(a,{styles:mf(o)}):null,v?c.createElement(of,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bf=Ud(Va,gf);var Cr=c.forwardRef(function(e,t){return c.createElement(an,Re({},e,{ref:t,sideCar:bf}))});Cr.classNames=an.classNames;var xf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ht=new WeakMap,cn=new WeakMap,un={},Er=0,qa=function(e){return e&&(e.host||qa(e.parentNode))},wf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qa(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})},yf=function(e,t,n,r){var o=wf(t,Array.isArray(e)?e:[e]);un[n]||(un[n]=new WeakMap);var a=un[n],i=[],s=new Set,l=new Set(o),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var v=p.getAttribute(r),g=v!==null&&v!=="false",m=(ht.get(p)||0)+1,x=(a.get(p)||0)+1;ht.set(p,m),a.set(p,x),i.push(p),m===1&&g&&cn.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return d(t),s.clear(),Er++,function(){i.forEach(function(f){var p=ht.get(f)-1,v=a.get(f)-1;ht.set(f,p),a.set(f,v),p||(cn.has(f)||f.removeAttribute(r),cn.delete(f)),v||f.removeAttribute(n)}),Er--,Er||(ht=new WeakMap,ht=new WeakMap,cn=new WeakMap,un={})}},Xa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),yf(r,o,n,"aria-hidden")):function(){return null}},dn="Dialog",[Za,I0]=tt(dn),[Cf,ye]=Za(dn),Ja=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=c.useRef(null),l=c.useRef(null),[u,d]=dr({prop:r,defaultProp:o??!1,onChange:a,caller:dn});return b.jsx(Cf,{scope:t,triggerRef:s,contentRef:l,contentId:dt(),titleId:dt(),descriptionId:dt(),open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};Ja.displayName=dn;var Qa="DialogTrigger",Ef=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(Qa,n),a=ie(t,o.triggerRef);return b.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_r(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Ef.displayName=Qa;var Sr="DialogPortal",[Sf,ei]=Za(Sr,{forceMount:void 0}),ti=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ye(Sr,t);return b.jsx(Sf,{scope:t,forceMount:n,children:c.Children.map(r,i=>b.jsx(Fe,{present:n||a.open,children:b.jsx(gr,{asChild:!0,container:o,children:i})}))})};ti.displayName=Sr;var fn="DialogOverlay",ni=c.forwardRef((e,t)=>{const n=ei(fn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ye(fn,e.__scopeDialog);return a.modal?b.jsx(Fe,{present:r||a.open,children:b.jsx(_f,{...o,ref:t})}):null});ni.displayName=fn;var Rf=st("DialogOverlay.RemoveScroll"),_f=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(fn,n);return b.jsx(Cr,{as:Rf,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(ne.div,{"data-state":_r(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),nt="DialogContent",ri=c.forwardRef((e,t)=>{const n=ei(nt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ye(nt,e.__scopeDialog);return b.jsx(Fe,{present:r||a.open,children:a.modal?b.jsx(Af,{...o,ref:t}):b.jsx(Pf,{...o,ref:t})})});ri.displayName=nt;var Af=c.forwardRef((e,t)=>{const n=ye(nt,e.__scopeDialog),r=c.useRef(null),o=ie(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Xa(a)},[]),b.jsx(oi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Pf=c.forwardRef((e,t)=>{const n=ye(nt,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return b.jsx(oi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),oi=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=ye(nt,n),l=c.useRef(null),u=ie(t,l);return Da(),b.jsxs(b.Fragment,{children:[b.jsx(hr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:b.jsx(tn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_r(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(Mf,{titleId:s.titleId}),b.jsx(Tf,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Rr="DialogTitle",ai=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(Rr,n);return b.jsx(ne.h2,{id:o.titleId,...r,ref:t})});ai.displayName=Rr;var ii="DialogDescription",si=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(ii,n);return b.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});si.displayName=ii;var li="DialogClose",ci=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(li,n);return b.jsx(ne.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});ci.displayName=li;function _r(e){return e?"open":"closed"}var ui="DialogTitleWarning",[D0,di]=ud(ui,{contentName:nt,titleName:Rr,docsSlug:"dialog"}),Mf=({titleId:e})=>{const t=di(ui),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
154
165
 
155
166
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
156
167
 
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},bu="DialogDescriptionWarning",xu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bs(bu).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},wu=ss,yu=cs,xs=ls,ws=us,ys=fs,Cs=ms,Cu=gs;const Eu=wu,Su=yu,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 Ru=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(Su,{children:[p.jsx(Es,{}),p.jsxs(ws,{ref:o,className:B(Ru({side:e}),t),...r,children:[n,p.jsxs(Cu,{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(ac,{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 _u=["top","right","bottom","left"],ze=Math.min,pe=Math.max,Yt=Math.round,qt=Math.floor,Re=e=>({x:e,y:e}),Au={left:"right",right:"left",bottom:"top",top:"bottom"},Mu={start:"end",end:"start"};function Qn(e,t,n){return pe(e,ze(t,n))}function De(e,t){return typeof e=="function"?e(t):e}function je(e){return e.split("-")[0]}function ct(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(je(e))?"y":"x"}function nr(e){return er(_e(e))}function Ou(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=nr(e),s=tr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Xt(i)),[i,Xt(i)]}function Tu(e){const t=Xt(e);return[rr(e),t,rr(t)]}function rr(e){return e.replace(/start|end/g,t=>Mu[t])}function Pu(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function Nu(e,t,n,r){const o=ct(e);let s=Pu(je(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(rr)))),s}function Xt(e){return e.replace(/left|right|bottom|top/g,t=>Au[t])}function ku(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ms(e){return typeof e!="number"?ku(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),i=nr(t),a=tr(i),c=je(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/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[i]-=m*(n&&f?-1:1);break;case"end":g[i]+=m*(n&&f?-1:1);break}return g}const Iu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.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<a.length;h++){const{name:x,fn:v}=a[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:i,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 i.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 bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=De(t,e),b=Ms(g),x=a[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(a.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.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:a,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 Du=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:f,padding:u=0}=De(e,t)||{};if(f==null)return{};const d=Ms(u),m={x:n,y:r},g=nr(o),b=tr(g),h=await i.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(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(i.isElement==null?void 0:i.isElement(M)))&&(A=a.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&&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}}}),ju=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=De(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=je(o),y=_e(a),E=je(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[Xt(a)]:Tu(a)),M=b!=="none";!m&&M&&_.push(...Nu(a,h,b,S));const A=[a,..._],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=Ou(o,i,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=a;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 _u.some(t=>e[t]>=0)}const Lu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=De(e,t);switch(r){case"referenceHidden":{const s=await bt(t,{...o,elementContext:"reference"}),i=Ts(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ps(i)}}}case"escaped":{const s=await bt(t,{...o,altBoundary:!0}),i=Ts(s,n.floating);return{data:{escapedOffsets:i,escaped:Ps(i)}}}default:return{}}}}};async function Fu(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=je(n),a=ct(n),c=_e(n)==="y",f=["left","top"].includes(i)?-1:1,u=s&&c?-1:1,d=De(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 a&&typeof b=="number"&&(g=a==="end"?b*-1:b),c?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const $u=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Fu(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Vu=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:i=!1,limiter:a={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=De(e,t),f={x:n,y:r},u=await bt(t,c),d=_e(je(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(i){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=a.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:i}}}}}},Hu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:f=!0}=De(e,t),u={x:n,y:r},d=_e(o),m=er(d);let g=u[m],b=u[d];const h=De(a,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(je(o)),_=s.reference[d]-s.floating[E]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=i.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);b<_?b=_:b>M&&(b=M)}return{[m]:g,[d]:b}}}},Wu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...f}=De(e,t),u=await bt(t,f),d=je(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(i.isRTL==null?void 0:i.isRTL(a.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 i.getDimensions(a.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function lt(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 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 zu(e){return["table","td","th"].includes(lt(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 Bu(e){let t=Be(e);for(;Me(t)&&!ut(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 ut(e){return["html","body","#document"].includes(lt(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(lt(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 ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&xt(t)?t:Is(t)}function wt(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),i=me(o);if(s){const a=ir(i);return t.concat(i,i.visualViewport||[],xt(o)?o:[],a&&n?wt(a):[])}return t.concat(o,wt(o,[],n))}function ir(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,i=o?e.offsetHeight:r,a=Yt(n)!==s||Yt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}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}=Ds(t);let i=(s?Yt(n.width):n.width)/r,a=(s?Yt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Gu=Re(0);function js(e){const t=me(e);return!sr()||!t.visualViewport?Gu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uu(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 i=Re(1);t&&(r?ye(r)&&(i=dt(r)):i=dt(e));const a=Uu(s,n,r)?js(s):Re(0);let c=(o.left+a.x)/i.x,f=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const m=me(s),g=r&&ye(r)?me(r):r;let b=m,h=ir(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=ir(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:Xe(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 Ku(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ae(r),a=t?Qt(t.floating):!1;if(r===i||a&&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(i))&&(c=en(r)),Me(r))){const g=Xe(r);f=dt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=i&&!d&&!s?Ls(i,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 Yu(e){return Array.from(e.getClientRects())}function qu(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 i=-n.scrollLeft+cr(e);const a=-n.scrollTop;return Ce(r).direction==="rtl"&&(i+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Xu(e,t){const n=me(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=sr();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}function Zu(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),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:i,height:a,x:c,y:f}}function Fs(e,t,n){let r;if(t==="viewport")r=Xu(e,n);else if(t==="document")r=qu(Ae(e));else if(ye(t))r=Zu(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)||ut(n)?!1:Ce(n).position==="fixed"||$s(n,t)}function Ju(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(a=>ye(a)&&lt(a)!=="body"),o=null;const s=Ce(e).position==="fixed";let i=s?Be(e):e;for(;ye(i)&&!ut(i);){const a=Ce(i),c=or(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xt(i)&&!c&&$s(e,i))?r=r.filter(u=>u!==i):o=a,i=Be(i)}return t.set(e,r),r}function Qu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Qt(t)?[]:Ju(t,this._c):[].concat(n),r],a=i[0],c=i.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,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ed(e){const{width:t,height:n}=Ds(e);return{width:t,height:n}}function td(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",i=Xe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=cr(o)}if(r||!r&&!s)if((lt(t)!=="body"||xt(o))&&(a=en(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?Ls(o,a):Re(0),d=i.left+a.scrollLeft-c.x-u.x,m=i.top+a.scrollTop-c.y-u.y;return{x:d,y:m,width:i.width,height:i.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&&!ut(o);){if(ye(o)&&!lr(o))return o;o=Be(o)}return n}let r=Vs(e,t);for(;r&&zu(r)&&lr(r);)r=Vs(r,t);return r&&ut(r)&&lr(r)&&!or(r)?n:r||Bu(e)||n}const nd=async function(e){const t=this.getOffsetParent||Hs,n=this.getDimensions,r=await n(e.floating);return{reference:td(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rd(e){return Ce(e).direction==="rtl"}const od={convertOffsetParentRelativeRectToViewportRelativeRect:Ku,getDocumentElement:Ae,getClippingRect:Qu,getOffsetParent:Hs,getElementRects:nd,getClientRects:Yu,getDimensions:ed,getScale:dt,isElement:ye,isRTL:rd};function Ws(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sd(e,t){let n=null,r;const o=Ae(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(a||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 i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Ws(f,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return i(!0),s}function id(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=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&&a?sd(f,n):null;let m=-1,g=null;i&&(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&&!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 ad=$u,cd=Vu,ld=ju,ud=Wu,dd=Lu,zs=Du,fd=Hu,pd=(e,t,n)=>{const r=new Map,o={platform:od,...n},s={...o.platform,_c:r};return Iu(e,t,{...o,platform:s})};var md=typeof document<"u",hd=function(){},tn=md?k.useLayoutEffect:hd;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 gd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!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,_=i||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),pd(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 a?{...R,transform:"translate("+O+"px, "+w+"px)",...Bs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,a,F.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:V,refs:q,elements:F,floatingStyles:U}),[u,V,q,F,U])}const vd=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):{}}}},bd=(e,t)=>({...ad(e),options:[e,t]}),xd=(e,t)=>({...cd(e),options:[e,t]}),wd=(e,t)=>({...fd(e),options:[e,t]}),yd=(e,t)=>({...ld(e),options:[e,t]}),Cd=(e,t)=>({...ud(e),options:[e,t]}),Ed=(e,t)=>({...dd(e),options:[e,t]}),Sd=(e,t)=>({...vd(e),options:[e,t]});var Rd="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=Rd;var _d=Us;function Ad(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 i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;i=f.inlineSize,a=f.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dr="Popper",[Ks,rn]=Ye(dr),[Md,Ys]=Ks(dr),qs=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(Md,{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),i=l.useRef(null),a=ie(t,i);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:p.jsx(ne.div,{...o,ref:a})});Zs.displayName=Xs;var fr="PopperContent",[Od,Td]=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:i=0,arrowPadding:a=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=ie(t,Z=>y(Z)),[S,_]=l.useState(null),M=Ad(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(Nd),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=gd({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>id(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[bd({mainAxis:o+C,alignmentAxis:i}),c&&xd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?wd():void 0,...V}),c&&yd({...V}),Cd({...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&&Sd({element:S,padding:a}),kd({arrowWidth:A,arrowHeight:C}),m&&Ed({strategy:"referenceHidden",...V})]}),[O,w]=ti(F),N=ke(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(Od,{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",Pd={top:"bottom",right:"left",bottom:"top",left:"right"},ei=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Td(Qs,r),i=Pd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]: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(_d,{...o,ref:n,style:{...o.style,display:"block"}})})});ei.displayName=Qs;function Nd(e){return e!==null}var kd=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[f,u]=ti(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=i?d:`${m}px`,h=`${-c}px`):f==="top"?(b=i?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=i?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=i?d:`${g}px`),{data:{x:b,y:h}}}});function ti(e){const[t,n="center"]=e.split("-");return[t,n]}var Id=qs,ni=Zs,ri=Js,oi=ei,Dd=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"}),jd="VisuallyHidden",si=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...Dd,...e.style}}));si.displayName=jd;var Ld=si,[on,R0]=Ye("Tooltip",[rn]),pr=rn(),ii="TooltipProvider",Fd=700,ai="tooltip.open",[$d,ci]=on(ii),li=e=>{const{__scopeTooltip:t,delayDuration:n=Fd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=l.useRef(!0),a=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx($d,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:l.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:s})};li.displayName=ii;var ui="Tooltip",[_0,sn]=on(ui),mr="TooltipTrigger",Vd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sn(mr,n),s=ci(mr,n),i=pr(n),a=l.useRef(null),c=ie(t,a,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(ni,{asChild:!0,...i,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)})})});Vd.displayName=mr;var Hd="TooltipPortal",[A0,Wd]=on(Hd,{forceMount:void 0}),ft="TooltipContent",di=l.forwardRef((e,t)=>{const n=Wd(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=sn(ft,e.__scopeTooltip);return p.jsx(Ie,{present:r||i.open,children:i.disableHoverableContent?p.jsx(fi,{side:o,...s,ref:t}):p.jsx(zd,{side:o,...s,ref:t})})}),zd=l.forwardRef((e,t)=>{const n=sn(ft,e.__scopeTooltip),r=ci(ft,e.__scopeTooltip),o=l.useRef(null),s=ie(t,o),[i,a]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{a(null),d(!1)},[d]),g=l.useCallback((b,h)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Yd(v,x.getBoundingClientRect()),E=qd(v,y),S=Xd(h.getBoundingClientRect()),_=Jd([...E,...S]);a(_),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(i){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=!Zd(v,i);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,f,m]),p.jsx(fi,{...e,ref:s})}),[Bd,Gd]=on(ui,{isInside:!1}),Ud=lc("TooltipContent"),fi=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=sn(ft,n),f=pr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(ai,u),()=>document.removeEventListener(ai,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:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(ri,{"data-state":c.stateAttribute,...f,...a,ref:t,style:{...a.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(Ud,{children:r}),p.jsx(Bd,{scope:n,isInside:!0,children:p.jsx(Ld,{id:c.contentId,role:"tooltip",children:o||r})})]})})});di.displayName=ft;var pi="TooltipArrow",Kd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pr(n);return Gd(pi,n).isInside?null:p.jsx(oi,{...o,...r,ref:t})});Kd.displayName=pi;function Yd(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 qd(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 Xd(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 Zd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],f=a.x,u=a.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function Jd(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),Qd(t)}function Qd(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],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 ef=li,mi=di;const tf=ef,nf=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(mi,{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}));nf.displayName=mi.displayName;const rf="sidebar_state",of=60*60*24*7,sf="16rem",af="18rem",cf="3rem",lf="b",hi=l.createContext(null);function hr(){const e=l.useContext(hi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function uf({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...i}){const a=pc(),[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=`${rf}=${y}; path=/; max-age=${of}`},[n,m]),b=l.useCallback(()=>a?f(v=>!v):g(v=>!v),[a,g,f]);l.useEffect(()=>{const v=y=>{y.key===lf&&(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:a,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,a,c,f,b]);return p.jsx(hi.Provider,{value:x,children:p.jsx(tf,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":sf,"--sidebar-width-icon":cf,...o},className:B("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...i,children:s})})})}function df({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:i,state:a,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}):i?p.jsx(Eu,{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":af},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":a,"data-collapsible":a==="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 ff({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(ic,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function pf({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 mf({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 hf({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 gf({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 vf({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 bf({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 xf({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 wf({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 yf({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?io:"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 Cf({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1}){const[i,a]=l.useState(r);return l.useEffect(()=>{s&&a(!0)},[s]),p.jsx(vf,{children:p.jsxs("div",{className:"flex flex-col",children:[p.jsxs("div",{className:"flex flex-row items-center justify-between",children:[p.jsxs(At.Link,{to: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(),a(!i)},"aria-label":i?"Collapse section":"Expand section",children:i?p.jsx(rc,{className:"h-4 w-4"}):p.jsx(oc,{className:"h-4 w-4"})})]}),p.jsx("div",{className:B("overflow-hidden transition-all",i?"max-h-96":"max-h-0"),children:n})]})})}const Ef="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",Sf={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:p.jsx(nc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/overall-performance",icon:p.jsx(ro,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/organic-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/paid-performance",icon:p.jsx(tc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/keyword-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"More Components",url:"/more-components",icon:p.jsx(ec,{className:"h-4 w-4"})}]}]};function gi({...e}){const n=At.useLocation().pathname,r=i=>n===i?!0:i==="/essential-insights"?!1:!!n.startsWith(i+"/"),o=i=>i.some(a=>r(a.url)),s=i=>r(i.url)||o(i.items);return p.jsxs(df,{...e,children:[p.jsx(hf,{children:p.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:p.jsx("img",{src:Ef,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),p.jsxs(gf,{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(At.Link,{to:"/home",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2",n==="/home"?"bg-gli-blue font-medium":"hover:bg-gray-100"),children:[p.jsx(ro,{className:B("h-5 w-5",n==="/home"?"font-medium":"text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),Sf.navMain.map(i=>p.jsx(Cf,{title:i.title,url:i.url,defaultOpen:o(i.items)||r(i.url),icon:i.icon,isActive:s(i),children:p.jsx(bf,{children:p.jsx(xf,{children:i.items.map(a=>p.jsx(wf,{children:p.jsx(yf,{asChild:!0,children:p.jsxs(At.Link,{to:a.url,className:B("flex items-center gap-2 pl-4 transition-colors",r(a.url)?"bg-gli-blue font-medium text-gli-bluedark":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[p.jsx("span",{className:B(r(a.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:a.icon}),p.jsx("span",{className:B(r(a.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:a.title})]})})},a.title))})})},i.title))]}),p.jsx(pf,{})]})}function vi(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=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})};i.displayName=t;const a=e+"CollectionSlot",c=Qe(a),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(a,v),S=ie(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=a;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),_=ie(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:i,Slot:f,ItemSlot:g},b,r]}var Rf=l.createContext(void 0);function bi(e){const t=l.useContext(Rf);return e||t||"ltr"}var gr="rovingFocusGroup.onEntryFocus",_f={bubbles:!1,cancelable:!0},yt="RovingFocusGroup",[vr,xi,Af]=vi(yt),[Mf,wi]=Ye(yt,[Af]),[Of,Tf]=Mf(yt),yi=l.forwardRef((e,t)=>p.jsx(vr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(vr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Pf,{...e,ref:t})})}));yi.displayName=yt;var Pf=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ie(t,m),b=bi(s),[h,x]=Ln({prop:i,defaultProp:a??null,onChange:c,caller:yt}),[v,y]=l.useState(!1),E=ke(f),S=xi(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(Of,{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,_f);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);Si(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),Ci="RovingFocusGroupItem",Ei=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,c=rt(),f=s||c,u=Tf(Ci,n),d=u.currentTabStopId===f,m=xi(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,...a,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=If(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?Df(E,S+1):E.slice(S+1)}setTimeout(()=>Si(E))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:h!=null}):i})})});Ei.displayName=Ci;var Nf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function If(e,t,n){const r=kf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Nf[r]}function Si(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Df(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jf=yi,Lf=Ei,br=["Enter"," "],Ff=["ArrowDown","PageUp","Home"],Ri=["ArrowUp","PageDown","End"],$f=[...Ff,...Ri],Vf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},Hf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[Et,Wf,zf]=vi(Ct),[Ze,_i]=Ye(Ct,[zf,rn,wi]),an=rn(),Ai=wi(),[Bf,Je]=Ze(Ct),[Gf,St]=Ze(Ct),Mi=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=an(t),[c,f]=l.useState(null),u=l.useRef(!1),d=ke(s),m=bi(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(Id,{...a,children:p.jsx(Bf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(Gf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:i,children:r})})})};Mi.displayName=Ct;var Uf="MenuAnchor",xr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(ni,{...o,...r,ref:t})});xr.displayName=Uf;var wr="MenuPortal",[Kf,Oi]=Ze(wr,{forceMount:void 0}),Ti=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Je(wr,t);return p.jsx(Kf,{scope:t,forceMount:n,children:p.jsx(Ie,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:r})})})};Ti.displayName=wr;var ge="MenuContent",[Yf,yr]=Ze(ge),Pi=l.forwardRef((e,t)=>{const n=Oi(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),i=St(ge,e.__scopeMenu);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(Ie,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(qf,{...o,ref:t}):p.jsx(Xf,{...o,ref:t})})})})}),qf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu),r=l.useRef(null),o=ie(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)})}),Xf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu);return p.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Zf=Qe("MenuContent.ScrollLock"),Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,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=an(n),E=Ai(n),S=Wf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ie(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:Zf,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=lp(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)&&dp(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Yf,{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:i,children:p.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(jf,{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(ri,{role:"menu","aria-orientation":"vertical","data-state":Yi(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||!$f.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Ri.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,_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}}))})})})})})})});Pi.displayName=ge;var Jf="MenuGroup",Er=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Er.displayName=Jf;var Qf="MenuLabel",Ni=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Ni.displayName=Qf;var cn="MenuItem",ki="menu.itemSelect",ln=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),i=St(cn,e.__scopeMenu),a=yr(cn,e.__scopeMenu),c=ie(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(ki,{bubbles:!0,cancelable:!0});d.addEventListener(ki,g=>r==null?void 0:r(g),{once:!0}),Mo(d,m),m.defaultPrevented?f.current=!1:i.onClose()}};return p.jsx(Ii,{...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=a.searchRef.current!=="";n||m&&d.key===" "||br.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});ln.displayName=cn;var Ii=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=yr(cn,n),a=Ai(n),c=l.useRef(null),f=ie(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(Lf,{asChild:!0,...a,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?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,_t(b=>i.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),ep="MenuCheckboxItem",Di=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Vi,{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})})})});Di.displayName=ep;var ji="MenuRadioGroup",[tp,np]=Ze(ji,{value:void 0,onValueChange:()=>{}}),Li=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ke(r);return p.jsx(tp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Er,{...o,ref:t})})});Li.displayName=ji;var Fi="MenuRadioItem",$i=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=np(Fi,e.__scopeMenu),s=n===o.value;return p.jsx(Vi,{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 i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});$i.displayName=Fi;var Sr="MenuItemIndicator",[Vi,rp]=Ze(Sr,{checked:!1}),Hi=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=rp(Sr,n);return p.jsx(Ie,{present:r||un(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Rr(s.checked)})})});Hi.displayName=Sr;var op="MenuSeparator",Wi=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Wi.displayName=op;var sp="MenuArrow",zi=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(oi,{...o,...r,ref:t})});zi.displayName=sp;var ip="MenuSub",[M0,Bi]=Ze(ip),Rt="MenuSubTrigger",Gi=l.forwardRef((e,t)=>{const n=Je(Rt,e.__scopeMenu),r=St(Rt,e.__scopeMenu),o=Bi(Rt,e.__scopeMenu),s=yr(Rt,e.__scopeMenu),i=l.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),p.jsx(xr,{asChild:!0,...f,children:p.jsx(Ii,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Yi(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,_t(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.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(a.current),a.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===" "||Vf[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});Gi.displayName=Rt;var Ui="MenuSubContent",Ki=l.forwardRef((e,t)=>{const n=Oi(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),i=St(ge,e.__scopeMenu),a=Bi(Ui,e.__scopeMenu),c=l.useRef(null),f=ie(t,c);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(Ie,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:p.jsx(Cr,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:f,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=Hf[i.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=a.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ki.displayName=Ui;function Yi(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 cp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function lp(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 i=cp(e,Math.max(s,0));o.length===1&&(i=i.filter(f=>f!==n));const c=i.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function up(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],f=a.x,u=a.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function dp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return up(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var fp=Mi,pp=xr,mp=Ti,hp=Pi,gp=Er,vp=Ni,bp=ln,xp=Di,wp=Li,yp=$i,Cp=Hi,Ep=Wi,Sp=zi,Rp=Gi,_p=Ki,dn="DropdownMenu",[Ap,O0]=Ye(dn,[_i]),de=_i(),[Mp,qi]=Ap(dn),Xi=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,c=de(t),f=l.useRef(null),[u,d]=Ln({prop:o,defaultProp:s??!1,onChange:i,caller:dn});return p.jsx(Mp,{scope:t,triggerId:rt(),triggerRef:f,contentId:rt(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:a,children:p.jsx(fp,{...c,open:u,onOpenChange:d,dir:r,modal:a,children:n})})};Xi.displayName=dn;var Zi="DropdownMenuTrigger",Ji=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=qi(Zi,n),i=de(n);return p.jsx(pp,{asChild:!0,...i,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,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:L(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Ji.displayName=Zi;var Op="DropdownMenuPortal",Qi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(mp,{...r,...n})};Qi.displayName=Op;var ea="DropdownMenuContent",ta=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qi(ea,n),s=de(n),i=l.useRef(!1);return p.jsx(hp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:L(e.onInteractOutside,a=>{const c=a.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(i.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)"}})});ta.displayName=ea;var Tp="DropdownMenuGroup",Pp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gp,{...o,...r,ref:t})});Pp.displayName=Tp;var Np="DropdownMenuLabel",na=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vp,{...o,...r,ref:t})});na.displayName=Np;var kp="DropdownMenuItem",ra=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});ra.displayName=kp;var Ip="DropdownMenuCheckboxItem",Dp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});Dp.displayName=Ip;var jp="DropdownMenuRadioGroup",Lp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});Lp.displayName=jp;var Fp="DropdownMenuRadioItem",$p=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});$p.displayName=Fp;var Vp="DropdownMenuItemIndicator",Hp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});Hp.displayName=Vp;var Wp="DropdownMenuSeparator",oa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});oa.displayName=Wp;var zp="DropdownMenuArrow",Bp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...o,...r,ref:t})});Bp.displayName=zp;var Gp="DropdownMenuSubTrigger",Up=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Rp,{...o,...r,ref:t})});Up.displayName=Gp;var Kp="DropdownMenuSubContent",Yp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(_p,{...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)"}})});Yp.displayName=Kp;var qp=Xi,Xp=Ji,Zp=Qi,Jp=ta,Qp=na,e0=ra,t0=oa;function n0({...e}){return p.jsx(qp,{"data-slot":"dropdown-menu",...e})}function r0({...e}){return p.jsx(Xp,{"data-slot":"dropdown-menu-trigger",...e})}function o0({className:e,sideOffset:t=4,...n}){return p.jsx(Zp,{children:p.jsx(Jp,{"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 sa({className:e,inset:t,variant:n="default",...r}){return p.jsx(e0,{"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 s0({className:e,inset:t,...n}){return p.jsx(Qp,{"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 i0({className:e,...t}){return p.jsx(t0,{"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}=Ka(),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(n0,{children:[p.jsx(r0,{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(o0,{align:"end",className:"w-72",children:[p.jsx(s0,{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(i0,{}),p.jsx(sa,{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(sa,{onClick:r,children:[p.jsx(sc,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},c0=()=>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(ff,{}),p.jsx(No,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(a0,{})})]})}),l0=({children:e})=>p.jsxs(Ya,{children:[p.jsx(gi,{}),p.jsx(uf,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(gi,{}),p.jsxs(mf,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(c0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})]});Oe.GLICloudProvider=l0,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
168
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Of="DialogDescriptionWarning",Tf=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${di(Of).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},kf=Ja,Nf=ti,fi=ni,pi=ri,mi=ai,hi=si,If=ci;const Df=kf,Lf=Nf,gi=c.forwardRef(({className:e,...t},n)=>b.jsx(fi,{className:U("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}));gi.displayName=fi.displayName;const jf=ia("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"}}),vi=c.forwardRef(({side:e="right",className:t,children:n,...r},o)=>b.jsxs(Lf,{children:[b.jsx(gi,{}),b.jsxs(pi,{ref:o,className:U(jf({side:e}),t),...r,children:[n,b.jsxs(If,{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:[b.jsx(bu,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));vi.displayName=pi.displayName;const bi=({className:e,...t})=>b.jsx("div",{className:U("flex flex-col space-y-2 text-center sm:text-left",e),...t});bi.displayName="SheetHeader";const xi=c.forwardRef(({className:e,...t},n)=>b.jsx(mi,{ref:n,className:U("text-lg font-semibold text-foreground",e),...t}));xi.displayName=mi.displayName;const wi=c.forwardRef(({className:e,...t},n)=>b.jsx(hi,{ref:n,className:U("text-sm text-muted-foreground",e),...t}));wi.displayName=hi.displayName;const Ff=["top","right","bottom","left"],qe=Math.min,me=Math.max,pn=Math.round,mn=Math.floor,_e=e=>({x:e,y:e}),$f={left:"right",right:"left",bottom:"top",top:"bottom"},Vf={start:"end",end:"start"};function Ar(e,t,n){return me(e,qe(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Pr(e){return e==="x"?"y":"x"}function Mr(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(Ve(e))?"y":"x"}function Or(e){return Pr(Ae(e))}function Hf(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=Or(e),a=Mr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=hn(i)),[i,hn(i)]}function Wf(e){const t=hn(e);return[Tr(e),t,Tr(t)]}function Tr(e){return e.replace(/start|end/g,t=>Vf[t])}function zf(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Bf(e,t,n,r){const o=gt(e);let a=zf(Ve(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Tr)))),a}function hn(e){return e.replace(/left|right|bottom|top/g,t=>$f[t])}function Uf(e){return{top:0,right:0,bottom:0,left:0,...e}}function yi(e){return typeof e!="number"?Uf(e):{top:e,right:e,bottom:e,left:e}}function gn(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 Ci(e,t,n){let{reference:r,floating:o}=e;const a=Ae(t),i=Or(t),s=Mr(i),l=Ve(t),u=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(l){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(gt(t)){case"start":v[i]-=p*(n&&u?-1:1);break;case"end":v[i]+=p*(n&&u?-1:1);break}return v}const Gf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ci(u,r,l),p=r,v={},g=0;for(let m=0;m<s.length;m++){const{name:x,fn:h}=s[m],{x:w,y,data:S,reset:R}=await h({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});d=w??d,f=y??f,v={...v,[x]:{...v[x],...S}},R&&g<=50&&(g++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:f}=Ci(u,p,l)),m=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:v}};async function Ot(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=$e(t,e),g=yi(v),x=s[p?f==="floating"?"reference":"floating":f],h=gn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},R=gn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-R.top+g.top)/S.y,bottom:(R.bottom-h.bottom+g.bottom)/S.y,left:(h.left-R.left+g.left)/S.x,right:(R.right-h.right+g.right)/S.x}}const Kf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=$e(e,t)||{};if(u==null)return{};const f=yi(d),p={x:n,y:r},v=Or(o),g=Mr(v),m=await i.getDimensions(u),x=v==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[v]-p[v]-a.floating[g],R=p[v]-a.reference[v],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=P?P[y]:0;(!A||!await(i.isElement==null?void 0:i.isElement(P)))&&(A=s.floating[y]||a.floating[g]);const C=S/2-R/2,N=A/2-m[g]/2-1,I=qe(f[h],N),z=qe(f[w],N),B=I,V=A-m[g]-z,H=A/2-m[g]/2+C,q=Ar(B,H,V),F=!l.arrow&&gt(o)!=null&&H!==q&&a.reference[g]/2-(H<B?I:z)-m[g]/2<0,G=F?H<B?H-B:H-V:0;return{[v]:p[v]+G,data:{[v]:q,centerOffset:H-q-G,...F&&{alignmentOffset:G}},reset:F}}}),Yf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=$e(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const h=Ve(o),w=Ae(s),y=Ve(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),R=p||(y||!m?[hn(s)]:Wf(s)),P=g!=="none";!p&&P&&R.push(...Bf(s,m,g,S));const A=[s,...R],C=await Ot(t,x),N=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(C[h]),f){const H=Hf(o,i,S);N.push(C[H[0]],C[H[1]])}if(I=[...I,{placement:o,overflows:N}],!N.every(H=>H<=0)){var z,B;const H=(((z=a.flip)==null?void 0:z.index)||0)+1,q=A[H];if(q&&(!(f==="alignment"?w!==Ae(q):!1)||I.every(_=>_.overflows[0]>0&&Ae(_.placement)===w)))return{data:{index:H,overflows:I},reset:{placement:q}};let F=(B=I.filter(G=>G.overflows[0]<=0).sort((G,_)=>G.overflows[1]-_.overflows[1])[0])==null?void 0:B.placement;if(!F)switch(v){case"bestFit":{var V;const G=(V=I.filter(_=>{if(P){const M=Ae(_.placement);return M===w||M==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(M=>M>0).reduce((M,E)=>M+E,0)]).sort((_,M)=>_[1]-M[1])[0])==null?void 0:V[0];G&&(F=G);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Ei(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Si(e){return Ff.some(t=>e[t]>=0)}const qf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$e(e,t);switch(r){case"referenceHidden":{const a=await Ot(t,{...o,elementContext:"reference"}),i=Ei(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Si(i)}}}case"escaped":{const a=await Ot(t,{...o,altBoundary:!0}),i=Ei(a,n.floating);return{data:{escapedOffsets:i,escaped:Si(i)}}}default:return{}}}}};async function Xf(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ve(n),s=gt(n),l=Ae(n)==="y",u=["left","top"].includes(i)?-1:1,d=a&&l?-1:1,f=$e(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*d,y:p*u}:{x:p*u,y:v*d}}const Zf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await Xf(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Jf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=$e(e,t),u={x:n,y:r},d=await Ot(t,l),f=Ae(Ve(o)),p=Pr(f);let v=u[p],g=u[f];if(a){const x=p==="y"?"top":"left",h=p==="y"?"bottom":"right",w=v+d[x],y=v-d[h];v=Ar(w,v,y)}if(i){const x=f==="y"?"top":"left",h=f==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=Ar(w,g,y)}const m=s.fn({...t,[p]:v,[f]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:a,[f]:i}}}}}},Qf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=$e(e,t),d={x:n,y:r},f=Ae(o),p=Pr(f);let v=d[p],g=d[f];const m=$e(s,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=p==="y"?"height":"width",S=a.reference[p]-a.floating[y]+x.mainAxis,R=a.reference[p]+a.reference[y]-x.mainAxis;v<S?v=S:v>R&&(v=R)}if(u){var h,w;const y=p==="y"?"width":"height",S=["top","left"].includes(Ve(o)),R=a.reference[f]-a.floating[y]+(S&&((h=i.offset)==null?void 0:h[f])||0)+(S?0:x.crossAxis),P=a.reference[f]+a.reference[y]+(S?0:((w=i.offset)==null?void 0:w[f])||0)-(S?x.crossAxis:0);g<R?g=R:g>P&&(g=P)}return{[p]:v,[f]:g}}}},ep=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=$e(e,t),d=await Ot(t,u),f=Ve(o),p=gt(o),v=Ae(o)==="y",{width:g,height:m}=a.floating;let x,h;f==="top"||f==="bottom"?(x=f,h=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(h=f,x=p==="end"?"top":"bottom");const w=m-d.top-d.bottom,y=g-d.left-d.right,S=qe(m-d[x],w),R=qe(g-d[h],y),P=!t.middlewareData.shift;let A=S,C=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=w),P&&!p){const I=me(d.left,0),z=me(d.right,0),B=me(d.top,0),V=me(d.bottom,0);v?C=g-2*(I!==0||z!==0?I+z:me(d.left,d.right)):A=m-2*(B!==0||V!==0?B+V:me(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:A});const N=await i.getDimensions(s.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function vn(){return typeof window<"u"}function vt(e){return Ri(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pe(e){var t;return(t=(Ri(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ri(e){return vn()?e instanceof Node||e instanceof he(e).Node:!1}function Ce(e){return vn()?e instanceof Element||e instanceof he(e).Element:!1}function Me(e){return vn()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function _i(e){return!vn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function Tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function tp(e){return["table","td","th"].includes(vt(e))}function bn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function kr(e){const t=Nr(),n=Ce(e)?Ee(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 np(e){let t=Xe(e);for(;Me(t)&&!bt(t);){if(kr(t))return t;if(bn(t))return null;t=Xe(t)}return null}function Nr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bt(e){return["html","body","#document"].includes(vt(e))}function Ee(e){return he(e).getComputedStyle(e)}function xn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_i(e)&&e.host||Pe(e);return _i(t)?t.host:t}function Ai(e){const t=Xe(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&Tt(t)?t:Ai(t)}function kt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ai(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=he(o);if(a){const s=Ir(i);return t.concat(i,i.visualViewport||[],Tt(o)?o:[],s&&n?kt(s):[])}return t.concat(o,kt(o,[],n))}function Ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pi(e){const t=Ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=pn(n)!==a||pn(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Dr(e){return Ce(e)?e:e.contextElement}function xt(e){const t=Dr(e);if(!Me(t))return _e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Pi(t);let i=(a?pn(n.width):n.width)/r,s=(a?pn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const rp=_e(0);function Mi(e){const t=he(e);return!Nr()||!t.visualViewport?rp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function op(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function rt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dr(e);let i=_e(1);t&&(r?Ce(r)&&(i=xt(r)):i=xt(e));const s=op(a,n,r)?Mi(a):_e(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(a){const p=he(a),v=r&&Ce(r)?he(r):r;let g=p,m=Ir(g);for(;m&&r&&v!==g;){const x=xt(m),h=m.getBoundingClientRect(),w=Ee(m),y=h.left+(m.clientLeft+parseFloat(w.paddingLeft))*x.x,S=h.top+(m.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,f*=x.y,l+=y,u+=S,g=he(m),m=Ir(g)}}return gn({width:d,height:f,x:l,y:u})}function Lr(e,t){const n=xn(e).scrollLeft;return t?t.left+n:rt(Pe(e)).left+n}function Oi(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Lr(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function ap(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Pe(r),s=t?bn(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=_e(1);const d=_e(0),f=Me(r);if((f||!f&&!a)&&((vt(r)!=="body"||Tt(i))&&(l=xn(r)),Me(r))){const v=rt(r);u=xt(r),d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}const p=i&&!f&&!a?Oi(i,l,!0):_e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function ip(e){return Array.from(e.getClientRects())}function sp(e){const t=Pe(e),n=xn(e),r=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=me(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Lr(e);const s=-n.scrollTop;return Ee(r).direction==="rtl"&&(i+=me(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function lp(e,t){const n=he(e),r=Pe(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=Nr();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function cp(e,t){const n=rt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Me(e)?xt(e):_e(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:i,height:s,x:l,y:u}}function Ti(e,t,n){let r;if(t==="viewport")r=lp(e,n);else if(t==="document")r=sp(Pe(e));else if(Ce(t))r=cp(t,n);else{const o=Mi(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gn(r)}function ki(e,t){const n=Xe(e);return n===t||!Ce(n)||bt(n)?!1:Ee(n).position==="fixed"||ki(n,t)}function up(e,t){const n=t.get(e);if(n)return n;let r=kt(e,[],!1).filter(s=>Ce(s)&&vt(s)!=="body"),o=null;const a=Ee(e).position==="fixed";let i=a?Xe(e):e;for(;Ce(i)&&!bt(i);){const s=Ee(i),l=kr(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Tt(i)&&!l&&ki(e,i))?r=r.filter(d=>d!==i):o=s,i=Xe(i)}return t.set(e,r),r}function dp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?bn(t)?[]:up(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((u,d)=>{const f=Ti(t,d,o);return u.top=me(f.top,u.top),u.right=qe(f.right,u.right),u.bottom=qe(f.bottom,u.bottom),u.left=me(f.left,u.left),u},Ti(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function fp(e){const{width:t,height:n}=Pi(e);return{width:t,height:n}}function pp(e,t,n){const r=Me(t),o=Pe(t),a=n==="fixed",i=rt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=_e(0);function u(){l.x=Lr(o)}if(r||!r&&!a)if((vt(t)!=="body"||Tt(o))&&(s=xn(t)),r){const v=rt(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&u();a&&!r&&o&&u();const d=o&&!r&&!a?Oi(o,s):_e(0),f=i.left+s.scrollLeft-l.x-d.x,p=i.top+s.scrollTop-l.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function jr(e){return Ee(e).position==="static"}function Ni(e,t){if(!Me(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pe(e)===n&&(n=n.ownerDocument.body),n}function Ii(e,t){const n=he(e);if(bn(e))return n;if(!Me(e)){let o=Xe(e);for(;o&&!bt(o);){if(Ce(o)&&!jr(o))return o;o=Xe(o)}return n}let r=Ni(e,t);for(;r&&tp(r)&&jr(r);)r=Ni(r,t);return r&&bt(r)&&jr(r)&&!kr(r)?n:r||np(e)||n}const mp=async function(e){const t=this.getOffsetParent||Ii,n=this.getDimensions,r=await n(e.floating);return{reference:pp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hp(e){return Ee(e).direction==="rtl"}const gp={convertOffsetParentRelativeRectToViewportRelativeRect:ap,getDocumentElement:Pe,getClippingRect:dp,getOffsetParent:Ii,getElementRects:mp,getClientRects:ip,getDimensions:fp,getScale:xt,isElement:Ce,isRTL:hp};function Di(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vp(e,t){let n=null,r;const o=Pe(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:v}=u;if(s||t(),!p||!v)return;const g=mn(f),m=mn(o.clientWidth-(d+p)),x=mn(o.clientHeight-(f+v)),h=mn(d),y={rootMargin:-g+"px "+-m+"px "+-x+"px "+-h+"px",threshold:me(0,qe(1,l))||1};let S=!0;function R(P){const A=P[0].intersectionRatio;if(A!==l){if(!S)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Di(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(R,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,y)}n.observe(e)}return i(!0),a}function bp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Dr(e),d=o||a?[...u?kt(u):[],...kt(t)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});const f=u&&s?vp(u,n):null;let p=-1,v=null;i&&(v=new ResizeObserver(h=>{let[w]=h;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let g,m=l?rt(e):null;l&&x();function x(){const h=rt(e);m&&!Di(m,h)&&n(),m=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f==null||f(),(h=v)==null||h.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const xp=Zf,wp=Jf,yp=Yf,Cp=ep,Ep=qf,Li=Kf,Sp=Qf,Rp=(e,t,n)=>{const r=new Map,o={platform:gp,...n},a={...o.platform,_c:r};return Gf(e,t,{...o,platform:a})};var _p=typeof document<"u",Ap=function(){},wn=_p?D.useLayoutEffect:Ap;function yn(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(!yn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!yn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ji(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fi(e,t){const n=ji(e);return Math.round(t*n)/n}function Fr(e){const t=c.useRef(e);return wn(()=>{t.current=e}),t}function Pp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=c.useState(r);yn(p,r)||v(r);const[g,m]=c.useState(null),[x,h]=c.useState(null),w=c.useCallback(_=>{_!==P.current&&(P.current=_,m(_))},[]),y=c.useCallback(_=>{_!==A.current&&(A.current=_,h(_))},[]),S=a||g,R=i||x,P=c.useRef(null),A=c.useRef(null),C=c.useRef(d),N=l!=null,I=Fr(l),z=Fr(o),B=Fr(u),V=c.useCallback(()=>{if(!P.current||!A.current)return;const _={placement:t,strategy:n,middleware:p};z.current&&(_.platform=z.current),Rp(P.current,A.current,_).then(M=>{const E={...M,isPositioned:B.current!==!1};H.current&&!yn(C.current,E)&&(C.current=E,oo.flushSync(()=>{f(E)}))})},[p,t,n,z,B]);wn(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const H=c.useRef(!1);wn(()=>(H.current=!0,()=>{H.current=!1}),[]),wn(()=>{if(S&&(P.current=S),R&&(A.current=R),S&&R){if(I.current)return I.current(S,R,V);V()}},[S,R,V,I,N]);const q=c.useMemo(()=>({reference:P,floating:A,setReference:w,setFloating:y}),[w,y]),F=c.useMemo(()=>({reference:S,floating:R}),[S,R]),G=c.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const M=Fi(F.floating,d.x),E=Fi(F.floating,d.y);return s?{..._,transform:"translate("+M+"px, "+E+"px)",...ji(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:E}},[n,s,F.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:V,refs:q,elements:F,floatingStyles:G}),[d,V,q,F,G])}const Mp=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?Li({element:r.current,padding:o}).fn(n):{}:r?Li({element:r,padding:o}).fn(n):{}}}},Op=(e,t)=>({...xp(e),options:[e,t]}),Tp=(e,t)=>({...wp(e),options:[e,t]}),kp=(e,t)=>({...Sp(e),options:[e,t]}),Np=(e,t)=>({...yp(e),options:[e,t]}),Ip=(e,t)=>({...Cp(e),options:[e,t]}),Dp=(e,t)=>({...Ep(e),options:[e,t]}),Lp=(e,t)=>({...Mp(e),options:[e,t]});var jp="Arrow",$i=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return b.jsx(ne.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});$i.displayName=jp;var Fp=$i;function $p(e){const[t,n]=c.useState(void 0);return Ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var $r="Popper",[Vi,Cn]=tt($r),[Vp,Hi]=Vi($r),Wi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return b.jsx(Vp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wi.displayName=$r;var zi="PopperAnchor",Bi=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Hi(zi,n),i=c.useRef(null),s=ie(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:b.jsx(ne.div,{...o,ref:s})});Bi.displayName=zi;var Vr="PopperContent",[Hp,Wp]=Vi(Vr),Ui=c.forwardRef((e,t)=>{var K,Q,ee,ae,Se,Ze;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,x=Hi(Vr,n),[h,w]=c.useState(null),y=ie(t,Z=>w(Z)),[S,R]=c.useState(null),P=$p(S),A=(P==null?void 0:P.width)??0,C=(P==null?void 0:P.height)??0,N=r+(a!=="center"?"-"+a:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],B=z.length>0,V={padding:I,boundary:z.filter(Bp),altBoundary:B},{refs:H,floatingStyles:q,placement:F,isPositioned:G,middlewareData:_}=Pp({strategy:"fixed",placement:N,whileElementsMounted:(...Z)=>bp(...Z,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Op({mainAxis:o+C,alignmentAxis:i}),l&&Tp({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?kp():void 0,...V}),l&&Np({...V}),Ip({...V,apply:({elements:Z,rects:J,availableWidth:le,availableHeight:re})=>{const{width:ge,height:Je}=J.reference,oe=Z.floating.style;oe.setProperty("--radix-popper-available-width",`${le}px`),oe.setProperty("--radix-popper-available-height",`${re}px`),oe.setProperty("--radix-popper-anchor-width",`${ge}px`),oe.setProperty("--radix-popper-anchor-height",`${Je}px`)}}),S&&Lp({element:S,padding:s}),Up({arrowWidth:A,arrowHeight:C}),p&&Dp({strategy:"referenceHidden",...V})]}),[M,E]=Yi(F),k=je(g);Ke(()=>{G&&(k==null||k())},[G,k]);const L=(K=_.arrow)==null?void 0:K.x,$=(Q=_.arrow)==null?void 0:Q.y,X=((ee=_.arrow)==null?void 0:ee.centerOffset)!==0,[te,ue]=c.useState();return Ke(()=>{h&&ue(window.getComputedStyle(h).zIndex)},[h]),b.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ae=_.transformOrigin)==null?void 0:ae.x,(Se=_.transformOrigin)==null?void 0:Se.y].join(" "),...((Ze=_.hide)==null?void 0:Ze.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Hp,{scope:n,placedSide:M,onArrowChange:R,arrowX:L,arrowY:$,shouldHideArrow:X,children:b.jsx(ne.div,{"data-side":M,"data-align":E,...m,ref:y,style:{...m.style,animation:G?void 0:"none"}})})})});Ui.displayName=Vr;var Gi="PopperArrow",zp={top:"bottom",right:"left",bottom:"top",left:"right"},Ki=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Wp(Gi,r),i=zp[a.placedSide];return b.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:b.jsx(Fp,{...o,ref:n,style:{...o.style,display:"block"}})})});Ki.displayName=Gi;function Bp(e){return e!==null}var Up=e=>({name:"transformOrigin",options:e,fn(t){var x,h,w;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Yi(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((h=o.arrow)==null?void 0:h.x)??0)+s/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let g="",m="";return u==="bottom"?(g=i?f:`${p}px`,m=`${-l}px`):u==="top"?(g=i?f:`${p}px`,m=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,m=i?f:`${v}px`):u==="left"&&(g=`${r.floating.width+l}px`,m=i?f:`${v}px`),{data:{x:g,y:m}}}});function Yi(e){const[t,n="center"]=e.split("-");return[t,n]}var Gp=Wi,qi=Bi,Xi=Ui,Zi=Ki,Kp=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"}),Yp="VisuallyHidden",Ji=c.forwardRef((e,t)=>b.jsx(ne.span,{...e,ref:t,style:{...Kp,...e.style}}));Ji.displayName=Yp;var qp=Ji,[En,L0]=tt("Tooltip",[Cn]),Hr=Cn(),Qi="TooltipProvider",Xp=700,es="tooltip.open",[Zp,ts]=En(Qi),ns=e=>{const{__scopeTooltip:t,delayDuration:n=Xp,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=c.useRef(!0),s=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),b.jsx(Zp,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:a})};ns.displayName=Qi;var rs="Tooltip",[j0,Sn]=En(rs),Wr="TooltipTrigger",Jp=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sn(Wr,n),a=ts(Wr,n),i=Hr(n),s=c.useRef(null),l=ie(t,s,o.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),b.jsx(qi,{asChild:!0,...i,children:b.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:j(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Jp.displayName=Wr;var Qp="TooltipPortal",[F0,em]=En(Qp,{forceMount:void 0}),wt="TooltipContent",os=c.forwardRef((e,t)=>{const n=em(wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Sn(wt,e.__scopeTooltip);return b.jsx(Fe,{present:r||i.open,children:i.disableHoverableContent?b.jsx(as,{side:o,...a,ref:t}):b.jsx(tm,{side:o,...a,ref:t})})}),tm=c.forwardRef((e,t)=>{const n=Sn(wt,e.__scopeTooltip),r=ts(wt,e.__scopeTooltip),o=c.useRef(null),a=ie(t,o),[i,s]=c.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=c.useCallback(()=>{s(null),f(!1)},[f]),v=c.useCallback((g,m)=>{const x=g.currentTarget,h={x:g.clientX,y:g.clientY},w=im(h,x.getBoundingClientRect()),y=sm(h,w),S=lm(m.getBoundingClientRect()),R=um([...y,...S]);s(R),f(!0)},[f]);return c.useEffect(()=>()=>p(),[p]),c.useEffect(()=>{if(l&&d){const g=x=>v(x,d),m=x=>v(x,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",m)}}},[l,d,v,p]),c.useEffect(()=>{if(i){const g=m=>{const x=m.target,h={x:m.clientX,y:m.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!cm(h,i);w?p():y&&(p(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,i,u,p]),b.jsx(as,{...e,ref:a})}),[nm,rm]=En(rs,{isInside:!1}),om=wu("TooltipContent"),as=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=Sn(wt,n),u=Hr(n),{onClose:d}=l;return c.useEffect(()=>(document.addEventListener(es,d),()=>document.removeEventListener(es,d)),[d]),c.useEffect(()=>{if(l.trigger){const f=p=>{const v=p.target;v!=null&&v.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),b.jsx(tn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:b.jsxs(Xi,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(om,{children:r}),b.jsx(nm,{scope:n,isInside:!0,children:b.jsx(qp,{id:l.contentId,role:"tooltip",children:o||r})})]})})});os.displayName=wt;var is="TooltipArrow",am=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hr(n);return rm(is,n).isInside?null:b.jsx(Zi,{...o,...r,ref:t})});am.displayName=is;function im(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sm(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 lm(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 cm(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],u=s.x,d=s.y,f=l.x,p=l.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function um(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),dm(t)}function dm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 fm=ns,ss=os;const pm=fm,mm=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(ss,{ref:r,sideOffset:t,className:U("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}));mm.displayName=ss.displayName;const hm="sidebar_state",gm=60*60*24*7,vm="16rem",bm="18rem",xm="3rem",wm="b",ls=c.createContext(null);function zr(){const e=c.useContext(ls);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ym({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i}){const s=Su(),[l,u]=c.useState(!1),[d,f]=c.useState(e),p=t??d,v=c.useCallback(h=>{const w=typeof h=="function"?h(p):h;n?n(w):f(w),document.cookie=`${hm}=${w}; path=/; max-age=${gm}`},[n,p]),g=c.useCallback(()=>s?u(h=>!h):v(h=>!h),[s,v,u]);c.useEffect(()=>{const h=w=>{w.key===wm&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),g())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[g]);const m=p?"expanded":"collapsed",x=c.useMemo(()=>({state:m,open:p,setOpen:v,isMobile:s,openMobile:l,setOpenMobile:u,toggleSidebar:g}),[m,p,v,s,l,u,g]);return b.jsx(ls.Provider,{value:x,children:b.jsx(pm,{delayDuration:0,children:b.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":vm,"--sidebar-width-icon":xm,...o},className:U("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...i,children:a})})})}function Cm({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:i,state:s,openMobile:l,setOpenMobile:u}=zr();return n==="none"?b.jsx("div",{"data-slot":"sidebar",className:U("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):i?b.jsx(Df,{open:l,onOpenChange:u,...a,children:b.jsxs(vi,{"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":bm},side:e,children:[b.jsxs(bi,{className:"sr-only",children:[b.jsx(xi,{children:"Sidebar"}),b.jsx(wi,{children:"Displays the mobile sidebar."})]}),b.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):b.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[b.jsx("div",{"data-slot":"sidebar-gap",className:U("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)")}),b.jsx("div",{"data-slot":"sidebar-container",className:U("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:b.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 Em({className:e,onClick:t,...n}){const{toggleSidebar:r}=zr();return b.jsxs(ur,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:U("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[b.jsx(vu,{}),b.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Sm({className:e,...t}){const{toggleSidebar:n}=zr();return b.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:U("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 Rm({className:e,...t}){return b.jsx("main",{"data-slot":"sidebar-inset",className:U("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 _m({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:U("flex flex-col gap-2 p-2",e),...t})}function Am({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:U("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Pm({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:U("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function Mm({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:U("w-full text-sm",e),...t})}function Om({className:e,...t}){return b.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:U("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 Tm({className:e,...t}){return b.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:U("group/menu-sub-item relative",e),...t})}function km({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?ea:"a";return b.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:U("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 Nm({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:a=!1}){const[i,s]=c.useState(r);return c.useEffect(()=>{a&&s(!0)},[a]),b.jsx(Pm,{children:b.jsxs("div",{className:"flex flex-col",children:[b.jsxs("div",{className:"flex flex-row items-center justify-between",children:[b.jsxs(Pt,{to:t,className:U("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 hover:bg-gray-100",a&&"font-medium"),children:[o&&b.jsx("span",{className:U("text-gray-600",a&&"font-medium"),children:o}),b.jsx("span",{className:U(a&&"font-medium"),children:e})]}),b.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:l=>{l.preventDefault(),l.stopPropagation(),s(!i)},"aria-label":i?"Collapse section":"Expand section",children:i?b.jsx(mu,{className:"h-4 w-4"}):b.jsx(hu,{className:"h-4 w-4"})})]}),b.jsx("div",{className:U("overflow-hidden transition-all",i?"max-h-96":"max-h-0"),children:n})]})})}const Im="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",Dm={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:b.jsx(pu,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/overall-performance",icon:b.jsx(Zo,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/organic-performance",icon:b.jsx(Xo,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/paid-performance",icon:b.jsx(fu,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/keyword-performance",icon:b.jsx(Xo,{className:"h-4 w-4"})},{title:"More Components",url:"/more-components",icon:b.jsx(du,{className:"h-4 w-4"})}]}]};function cs({...e}){const t=window.location.pathname,n=a=>t===a?!0:a==="/essential-insights"?!1:!!t.startsWith(a+"/"),r=a=>a.some(i=>n(i.url)),o=a=>n(a.url)||r(a.items);return b.jsxs(Cm,{...e,children:[b.jsx(_m,{children:b.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:b.jsx("img",{src:Im,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),b.jsxs(Am,{children:[b.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:b.jsx("div",{className:"flex flex-col",children:b.jsxs(Pt,{to:"/home",className:U("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2",t==="/home"?"bg-gli-blue font-medium":"hover:bg-gray-100"),children:[b.jsx(Zo,{className:U("h-5 w-5",t==="/home"?"font-medium":"text-gray-600")}),b.jsx("span",{children:"Home"})]})})}),Dm.navMain.map(a=>b.jsx(Nm,{title:a.title,url:a.url,defaultOpen:r(a.items)||n(a.url),icon:a.icon,isActive:o(a),children:b.jsx(Mm,{children:b.jsx(Om,{children:a.items.map(i=>b.jsx(Tm,{children:b.jsx(km,{asChild:!0,children:b.jsxs(Pt,{to:i.url,className:U("flex items-center gap-2 pl-4 transition-colors",n(i.url)?"bg-gli-blue font-medium text-gli-bluedark":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[b.jsx("span",{className:U(n(i.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:i.icon}),b.jsx("span",{className:U(n(i.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:i.title})]})})},i.title))})})},a.title))]}),b.jsx(Sm,{})]})}function us(e){const t=e+"CollectionProvider",[n,r]=tt(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:x,children:h}=m,w=D.useRef(null),y=D.useRef(new Map).current;return b.jsx(o,{scope:x,itemMap:y,collectionRef:w,children:h})};i.displayName=t;const s=e+"CollectionSlot",l=st(s),u=D.forwardRef((m,x)=>{const{scope:h,children:w}=m,y=a(s,h),S=ie(x,y.collectionRef);return b.jsx(l,{ref:S,children:w})});u.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=st(d),v=D.forwardRef((m,x)=>{const{scope:h,children:w,...y}=m,S=D.useRef(null),R=ie(x,S),P=a(d,h);return D.useEffect(()=>(P.itemMap.set(S,{ref:S,...y}),()=>void P.itemMap.delete(S))),b.jsx(p,{[f]:"",ref:R,children:w})});v.displayName=d;function g(m){const x=a(e+"CollectionConsumer",m);return D.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((P,A)=>y.indexOf(P.ref.current)-y.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:v},g,r]}var Lm=c.createContext(void 0);function ds(e){const t=c.useContext(Lm);return e||t||"ltr"}var Br="rovingFocusGroup.onEntryFocus",jm={bubbles:!1,cancelable:!0},Nt="RovingFocusGroup",[Ur,fs,Fm]=us(Nt),[$m,ps]=tt(Nt,[Fm]),[Vm,Hm]=$m(Nt),ms=c.forwardRef((e,t)=>b.jsx(Ur.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Ur.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Wm,{...e,ref:t})})}));ms.displayName=Nt;var Wm=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=c.useRef(null),v=ie(t,p),g=ds(a),[m,x]=dr({prop:i,defaultProp:s??null,onChange:l,caller:Nt}),[h,w]=c.useState(!1),y=je(u),S=fs(n),R=c.useRef(!1),[P,A]=c.useState(0);return c.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(Br,y),()=>C.removeEventListener(Br,y)},[y]),b.jsx(Vm,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:m,onItemFocus:c.useCallback(C=>x(C),[x]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:c.useCallback(()=>A(C=>C-1),[]),children:b.jsx(ne.div,{tabIndex:h||P===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{R.current=!0}),onFocus:j(e.onFocus,C=>{const N=!R.current;if(C.target===C.currentTarget&&N&&!h){const I=new CustomEvent(Br,jm);if(C.currentTarget.dispatchEvent(I),!I.defaultPrevented){const z=S().filter(F=>F.focusable),B=z.find(F=>F.active),V=z.find(F=>F.id===m),q=[B,V,...z].filter(Boolean).map(F=>F.ref.current);vs(q,d)}}R.current=!1}),onBlur:j(e.onBlur,()=>w(!1))})})}),hs="RovingFocusGroupItem",gs=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=dt(),u=a||l,d=Hm(hs,n),f=d.currentTabStopId===u,p=fs(n),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=d;return c.useEffect(()=>{if(r)return v(),()=>g()},[r,v,g]),b.jsx(Ur.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:b.jsx(ne.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:j(e.onMouseDown,x=>{r?d.onItemFocus(u):x.preventDefault()}),onFocus:j(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:j(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const h=Um(x,d.orientation,d.dir);if(h!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let y=p().filter(S=>S.focusable).map(S=>S.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const S=y.indexOf(x.currentTarget);y=d.loop?Gm(y,S+1):y.slice(S+1)}setTimeout(()=>vs(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:m!=null}):i})})});gs.displayName=hs;var zm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Um(e,t,n){const r=Bm(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return zm[r]}function vs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Gm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Km=ms,Ym=gs,Gr=["Enter"," "],qm=["ArrowDown","PageUp","Home"],bs=["ArrowUp","PageDown","End"],Xm=[...qm,...bs],Zm={ltr:[...Gr,"ArrowRight"],rtl:[...Gr,"ArrowLeft"]},Jm={ltr:["ArrowLeft"],rtl:["ArrowRight"]},It="Menu",[Dt,Qm,eh]=us(It),[ot,xs]=tt(It,[eh,Cn,ps]),Rn=Cn(),ws=ps(),[th,at]=ot(It),[nh,Lt]=ot(It),ys=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Rn(t),[l,u]=c.useState(null),d=c.useRef(!1),f=je(a),p=ds(o);return c.useEffect(()=>{const v=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(Gp,{...s,children:b.jsx(th,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:b.jsx(nh,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:i,children:r})})})};ys.displayName=It;var rh="MenuAnchor",Kr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rn(n);return b.jsx(qi,{...o,...r,ref:t})});Kr.displayName=rh;var Yr="MenuPortal",[oh,Cs]=ot(Yr,{forceMount:void 0}),Es=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=at(Yr,t);return b.jsx(oh,{scope:t,forceMount:n,children:b.jsx(Fe,{present:n||a.open,children:b.jsx(gr,{asChild:!0,container:o,children:r})})})};Es.displayName=Yr;var ve="MenuContent",[ah,qr]=ot(ve),Ss=c.forwardRef((e,t)=>{const n=Cs(ve,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=at(ve,e.__scopeMenu),i=Lt(ve,e.__scopeMenu);return b.jsx(Dt.Provider,{scope:e.__scopeMenu,children:b.jsx(Fe,{present:r||a.open,children:b.jsx(Dt.Slot,{scope:e.__scopeMenu,children:i.modal?b.jsx(ih,{...o,ref:t}):b.jsx(sh,{...o,ref:t})})})})}),ih=c.forwardRef((e,t)=>{const n=at(ve,e.__scopeMenu),r=c.useRef(null),o=ie(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Xa(a)},[]),b.jsx(Xr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),sh=c.forwardRef((e,t)=>{const n=at(ve,e.__scopeMenu);return b.jsx(Xr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),lh=st("MenuContent.ScrollLock"),Xr=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,disableOutsideScroll:g,...m}=e,x=at(ve,n),h=Lt(ve,n),w=Rn(n),y=ws(n),S=Qm(n),[R,P]=c.useState(null),A=c.useRef(null),C=ie(t,A,x.onContentChange),N=c.useRef(0),I=c.useRef(""),z=c.useRef(0),B=c.useRef(null),V=c.useRef("right"),H=c.useRef(0),q=g?Cr:c.Fragment,F=g?{as:lh,allowPinchZoom:!0}:void 0,G=M=>{var K,Q;const E=I.current+M,k=S().filter(ee=>!ee.disabled),L=document.activeElement,$=(K=k.find(ee=>ee.ref.current===L))==null?void 0:K.textValue,X=k.map(ee=>ee.textValue),te=wh(X,E,$),ue=(Q=k.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(ae){I.current=ae,window.clearTimeout(N.current),ae!==""&&(N.current=window.setTimeout(()=>ee(""),1e3))})(E),ue&&setTimeout(()=>ue.focus())};c.useEffect(()=>()=>window.clearTimeout(N.current),[]),Da();const _=c.useCallback(M=>{var k,L;return V.current===((k=B.current)==null?void 0:k.side)&&Ch(M,(L=B.current)==null?void 0:L.area)},[]);return b.jsx(ah,{scope:n,searchRef:I,onItemEnter:c.useCallback(M=>{_(M)&&M.preventDefault()},[_]),onItemLeave:c.useCallback(M=>{var E;_(M)||((E=A.current)==null||E.focus(),P(null))},[_]),onTriggerLeave:c.useCallback(M=>{_(M)&&M.preventDefault()},[_]),pointerGraceTimerRef:z,onPointerGraceIntentChange:c.useCallback(M=>{B.current=M},[]),children:b.jsx(q,{...F,children:b.jsx(hr,{asChild:!0,trapped:o,onMountAutoFocus:j(a,M=>{var E;M.preventDefault(),(E=A.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:b.jsx(tn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,children:b.jsx(Km,{asChild:!0,...y,dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:P,onEntryFocus:j(l,M=>{h.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(Xi,{role:"menu","aria-orientation":"vertical","data-state":Hs(x.open),"data-radix-menu-content":"",dir:h.dir,...w,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:j(m.onKeyDown,M=>{const k=M.target.closest("[data-radix-menu-content]")===M.currentTarget,L=M.ctrlKey||M.altKey||M.metaKey,$=M.key.length===1;k&&(M.key==="Tab"&&M.preventDefault(),!L&&$&&G(M.key));const X=A.current;if(M.target!==X||!Xm.includes(M.key))return;M.preventDefault();const ue=S().filter(K=>!K.disabled).map(K=>K.ref.current);bs.includes(M.key)&&ue.reverse(),bh(ue)}),onBlur:j(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(N.current),I.current="")}),onPointerMove:j(e.onPointerMove,Ft(M=>{const E=M.target,k=H.current!==M.clientX;if(M.currentTarget.contains(E)&&k){const L=M.clientX>H.current?"right":"left";V.current=L,H.current=M.clientX}}))})})})})})})});Ss.displayName=ve;var ch="MenuGroup",Zr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ne.div,{role:"group",...r,ref:t})});Zr.displayName=ch;var uh="MenuLabel",Rs=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ne.div,{...r,ref:t})});Rs.displayName=uh;var _n="MenuItem",_s="menu.itemSelect",An=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=Lt(_n,e.__scopeMenu),s=qr(_n,e.__scopeMenu),l=ie(t,a),u=c.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const p=new CustomEvent(_s,{bubbles:!0,cancelable:!0});f.addEventListener(_s,v=>r==null?void 0:r(v),{once:!0}),ya(f,p),p.defaultPrevented?u.current=!1:i.onClose()}};return b.jsx(As,{...o,ref:l,disabled:n,onClick:j(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)==null||p.call(e,f),u.current=!0},onPointerUp:j(e.onPointerUp,f=>{var p;u.current||(p=f.currentTarget)==null||p.click()}),onKeyDown:j(e.onKeyDown,f=>{const p=s.searchRef.current!=="";n||p&&f.key===" "||Gr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});An.displayName=_n;var As=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=qr(_n,n),s=ws(n),l=c.useRef(null),u=ie(t,l),[d,f]=c.useState(!1),[p,v]=c.useState("");return c.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[a.children]),b.jsx(Dt.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:b.jsx(Ym,{asChild:!0,...s,focusable:!r,children:b.jsx(ne.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:j(e.onPointerMove,Ft(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,Ft(g=>i.onItemLeave(g))),onFocus:j(e.onFocus,()=>f(!0)),onBlur:j(e.onBlur,()=>f(!1))})})})}),dh="MenuCheckboxItem",Ps=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(Ns,{scope:e.__scopeMenu,checked:n,children:b.jsx(An,{role:"menuitemcheckbox","aria-checked":Pn(n)?"mixed":n,...o,ref:t,"data-state":Qr(n),onSelect:j(o.onSelect,()=>r==null?void 0:r(Pn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ps.displayName=dh;var Ms="MenuRadioGroup",[fh,ph]=ot(Ms,{value:void 0,onValueChange:()=>{}}),Os=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=je(r);return b.jsx(fh,{scope:e.__scopeMenu,value:n,onValueChange:a,children:b.jsx(Zr,{...o,ref:t})})});Os.displayName=Ms;var Ts="MenuRadioItem",ks=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=ph(Ts,e.__scopeMenu),a=n===o.value;return b.jsx(Ns,{scope:e.__scopeMenu,checked:a,children:b.jsx(An,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Qr(a),onSelect:j(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});ks.displayName=Ts;var Jr="MenuItemIndicator",[Ns,mh]=ot(Jr,{checked:!1}),Is=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=mh(Jr,n);return b.jsx(Fe,{present:r||Pn(a.checked)||a.checked===!0,children:b.jsx(ne.span,{...o,ref:t,"data-state":Qr(a.checked)})})});Is.displayName=Jr;var hh="MenuSeparator",Ds=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ds.displayName=hh;var gh="MenuArrow",Ls=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rn(n);return b.jsx(Zi,{...o,...r,ref:t})});Ls.displayName=gh;var vh="MenuSub",[$0,js]=ot(vh),jt="MenuSubTrigger",Fs=c.forwardRef((e,t)=>{const n=at(jt,e.__scopeMenu),r=Lt(jt,e.__scopeMenu),o=js(jt,e.__scopeMenu),a=qr(jt,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},d=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>d,[d]),c.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),b.jsx(Kr,{asChild:!0,...u,children:b.jsx(As,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Hs(n.open),...e,ref:Jt(t,o.onTriggerChange),onClick:f=>{var p;(p=e.onClick)==null||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,Ft(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:j(e.onPointerLeave,Ft(f=>{var v,g;d();const p=(v=n.content)==null?void 0:v.getBoundingClientRect();if(p){const m=(g=n.content)==null?void 0:g.dataset.side,x=m==="right",h=x?-5:5,w=p[x?"left":"right"],y=p[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+h,y:f.clientY},{x:w,y:p.top},{x:y,y:p.top},{x:y,y:p.bottom},{x:w,y:p.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,f=>{var v;const p=a.searchRef.current!=="";e.disabled||p&&f.key===" "||Zm[r.dir].includes(f.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),f.preventDefault())})})})});Fs.displayName=jt;var $s="MenuSubContent",Vs=c.forwardRef((e,t)=>{const n=Cs(ve,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=at(ve,e.__scopeMenu),i=Lt(ve,e.__scopeMenu),s=js($s,e.__scopeMenu),l=c.useRef(null),u=ie(t,l);return b.jsx(Dt.Provider,{scope:e.__scopeMenu,children:b.jsx(Fe,{present:r||a.open,children:b.jsx(Dt.Slot,{scope:e.__scopeMenu,children:b.jsx(Xr,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:j(e.onFocusOutside,d=>{d.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:j(e.onKeyDown,d=>{var v;const f=d.currentTarget.contains(d.target),p=Jm[i.dir].includes(d.key);f&&p&&(a.onOpenChange(!1),(v=s.trigger)==null||v.focus(),d.preventDefault())})})})})})});Vs.displayName=$s;function Hs(e){return e?"open":"closed"}function Pn(e){return e==="indeterminate"}function Qr(e){return Pn(e)?"indeterminate":e?"checked":"unchecked"}function bh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function xh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wh(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=xh(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function yh(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],u=s.x,d=s.y,f=l.x,p=l.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function Ch(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return yh(n,t)}function Ft(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Eh=ys,Sh=Kr,Rh=Es,_h=Ss,Ah=Zr,Ph=Rs,Mh=An,Oh=Ps,Th=Os,kh=ks,Nh=Is,Ih=Ds,Dh=Ls,Lh=Fs,jh=Vs,Mn="DropdownMenu",[Fh,V0]=tt(Mn,[xs]),fe=xs(),[$h,Ws]=Fh(Mn),zs=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=fe(t),u=c.useRef(null),[d,f]=dr({prop:o,defaultProp:a??!1,onChange:i,caller:Mn});return b.jsx($h,{scope:t,triggerId:dt(),triggerRef:u,contentId:dt(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:s,children:b.jsx(Eh,{...l,open:d,onOpenChange:f,dir:r,modal:s,children:n})})};zs.displayName=Mn;var Bs="DropdownMenuTrigger",Us=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ws(Bs,n),i=fe(n);return b.jsx(Sh,{asChild:!0,...i,children:b.jsx(ne.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Jt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:j(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Us.displayName=Bs;var Vh="DropdownMenuPortal",Gs=e=>{const{__scopeDropdownMenu:t,...n}=e,r=fe(t);return b.jsx(Rh,{...r,...n})};Gs.displayName=Vh;var Ks="DropdownMenuContent",Ys=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ws(Ks,n),a=fe(n),i=c.useRef(!1);return b.jsx(_h,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:j(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!o.modal||d)&&(i.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)"}})});Ys.displayName=Ks;var Hh="DropdownMenuGroup",Wh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Ah,{...o,...r,ref:t})});Wh.displayName=Hh;var zh="DropdownMenuLabel",qs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Ph,{...o,...r,ref:t})});qs.displayName=zh;var Bh="DropdownMenuItem",Xs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Mh,{...o,...r,ref:t})});Xs.displayName=Bh;var Uh="DropdownMenuCheckboxItem",Gh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Oh,{...o,...r,ref:t})});Gh.displayName=Uh;var Kh="DropdownMenuRadioGroup",Yh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Th,{...o,...r,ref:t})});Yh.displayName=Kh;var qh="DropdownMenuRadioItem",Xh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(kh,{...o,...r,ref:t})});Xh.displayName=qh;var Zh="DropdownMenuItemIndicator",Jh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Nh,{...o,...r,ref:t})});Jh.displayName=Zh;var Qh="DropdownMenuSeparator",Zs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Ih,{...o,...r,ref:t})});Zs.displayName=Qh;var e0="DropdownMenuArrow",t0=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Dh,{...o,...r,ref:t})});t0.displayName=e0;var n0="DropdownMenuSubTrigger",r0=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Lh,{...o,...r,ref:t})});r0.displayName=n0;var o0="DropdownMenuSubContent",a0=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(jh,{...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)"}})});a0.displayName=o0;var i0=zs,s0=Us,l0=Gs,c0=Ys,u0=qs,d0=Xs,f0=Zs;function p0({...e}){return b.jsx(i0,{"data-slot":"dropdown-menu",...e})}function m0({...e}){return b.jsx(s0,{"data-slot":"dropdown-menu-trigger",...e})}function h0({className:e,sideOffset:t=4,...n}){return b.jsx(l0,{children:b.jsx(c0,{"data-slot":"dropdown-menu-content",sideOffset:t,className:U("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 Js({className:e,inset:t,variant:n="default",...r}){return b.jsx(d0,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:U("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 g0({className:e,inset:t,...n}){return b.jsx(u0,{"data-slot":"dropdown-menu-label","data-inset":t,className:U("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function v0({className:e,...t}){return b.jsx(f0,{"data-slot":"dropdown-menu-separator",className:U("bg-border -mx-1 my-1 h-px",e),...t})}const b0=()=>{const{user:e,error:t,isLoading:n}=Vl(),r=()=>{window.location.href="/auth/logout"};return n?b.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):t?b.jsxs("div",{children:["Error: ",t.message]}):e?b.jsx("div",{className:"relative flex items-center gap-3",children:b.jsxs(p0,{children:[b.jsx(m0,{asChild:!0,children:b.jsx(ur,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:e.picture?b.jsx("img",{src:e.picture,alt:e.name||"User profile",width:40,height:40,className:"rounded-full"}):b.jsx(Jo,{className:"h-5 w-5 text-gray-500"})})}),b.jsxs(h0,{align:"end",className:"w-72",children:[b.jsx(g0,{children:b.jsx("div",{className:"flex flex-col space-y-1",children:b.jsxs("div",{className:"flex flex-col space-y-1",children:[b.jsx("p",{className:"text-xs text-gray-500",children:e.name}),b.jsx("p",{className:"truncate text-xs text-gray-500",children:e.email})]})})}),b.jsx(v0,{}),b.jsx(Js,{asChild:!0,children:b.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[b.jsx(Jo,{className:"mr-2 h-4 w-4"}),b.jsx("span",{children:"Profile"})]})}),b.jsxs(Js,{onClick:r,children:[b.jsx(gu,{className:"mr-2 h-4 w-4"}),b.jsx("span",{children:"Sign out"})]})]})]})}):null},x0=()=>b.jsx("div",{className:"sticky top-0 z-50",children:b.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[b.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[b.jsx(Em,{}),b.jsx(Ra,{orientation:"vertical"})]}),b.jsx("div",{className:"flex-shrink-0",children:b.jsx(b0,{})})]})}),w0=({children:e})=>b.jsxs(Hl,{children:[b.jsx(cs,{}),b.jsx(ym,{children:b.jsxs("div",{className:"flex h-screen w-full",children:[b.jsx(cs,{}),b.jsxs(Rm,{className:"flex-1 flex flex-col min-w-0",children:[b.jsx(x0,{}),b.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})]});ze.GLICloudProvider=w0,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});