@golocalinteractive/golocal-cloud-wrapper 1.0.4 → 1.0.5
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.
|
@@ -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 ao;function
|
|
9
|
+
*/var ao;function tl(){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 io;function
|
|
17
|
+
*/var io;function nl(){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),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
|
|
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 rl(){return so||(so=1,process.env.NODE_ENV==="production"?$t.exports=tl():$t.exports=nl()),$t.exports}var b=rl(),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 lo;function
|
|
30
|
+
*/var lo;function ol(){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,7 +35,7 @@ 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 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();/**
|
|
38
|
+
*/var co;function al(){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 il(){return uo||(uo=1,process.env.NODE_ENV==="production"?Vt.exports=ol():Vt.exports=al()),Vt.exports}var sl=il();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,ll=Et&&"Deno"in window,cl=()=>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 ul=()=>Ln,[jn,Fn]=Et&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Be,Be],dl=()=>{const e=Dn&&document.visibilityState;return Y(e)||e!=="hidden"},fl=e=>(Dn&&document.addEventListener("visibilitychange",e),jn("focus",e),()=>{Dn&&document.removeEventListener("visibilitychange",e),Fn("focus",e)}),pl=e=>{const t=()=>{Ln=!0,e()},n=()=>{Ln=!1};return jn("online",t),jn("offline",n),()=>{Fn("online",t),Fn("offline",n)}},ml={isOnline:ul,isVisible:dl},hl={initFocus:fl,initReconnect:pl},xo=!D.useId,St=!Et||ll,gl=e=>cl()?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 vl=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=++vl+"~",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 bl=0;const zn=()=>++bl;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(hl,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]]},xl=(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)},wl=kn,[Bn,yl]=Eo(new Map),So=Te({onLoadingSlow:Be,onSuccess:Be,onError:Be,onErrorRetry:xl,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:wl,isPaused:()=>!1,cache:Bn,mutate:yl,fallback:{}},ml),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({}),Cl=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}))},El="$inf$",_o=Et&&window.__SWR_DEVTOOLS_USE__,Sl=_o?window.__SWR_DEVTOOLS_USE__:[],Rl=()=>{_o&&(window.__SWR_DEVTOOLS_REACT__=D)},_l=e=>xe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Al=()=>Te(So,D.useContext(Un)),Pl=e=>(t,n,r)=>e(t,n&&((...a)=>{const[i]=Wn(t),[,,,s]=Oe.get(Bn);if(i.startsWith(El))return n(...a);const l=s[i];return Y(l)?n(...a):(delete s[i],l)}),r),Ml=Sl.concat(Pl),Ol=e=>function(...n){const r=Al(),[o,a,i]=_l(n),s=Ro(r,i);let l=e;const{use:u}=s,d=(u||[]).concat(Ml);for(let f=d.length;f--;)l=d[f](l);return l(o,a||s.fetcher||null,s)},Tl=(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())}};Rl();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},kl=(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]),_=sl.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},Js=()=>{z(He)},Qs=()=>{const be=m[h];be&&be[1]===re&&delete m[h]},el={isValidating:!0};Y(I().data)&&(el.isLoading=!0);try{if(oe&&(z(el),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(Qs,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 Js(),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){Qs();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,Js(),!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=Tl(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():gl(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}}},Nl=Ht.defineProperty(Cl,"defaultValue",{value:So}),Il=Ol(kl);function Dl(e){return e&&!e.startsWith("/")?`/${e}`:e}function Ll(e){return e&&!e.endsWith("/")?`${e}/`:e}function jl(e){return e.startsWith("/")?e.substring(1,e.length):e}const Fl=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=Dl(t);return Ll(n)+jl(e)};function $l(){const{data:e,error:t,isLoading:n,mutate:r}=Il(Fl(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 Vl({user:e,children:t}){return D.createElement(Nl,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}var Rt={},Mo;function Hl(){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}Hl();/**
|
|
39
39
|
* react-router v7.6.2
|
|
40
40
|
*
|
|
41
41
|
* Copyright (c) Remix Software Inc.
|
|
@@ -44,39 +44,39 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
* LICENSE.md file in the root directory of this source tree.
|
|
45
45
|
*
|
|
46
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
|
|
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 Wl(e,t,n,!1)}function Wl(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);zl(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=ec(a);s=Jl(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:Xl(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 zl(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zl(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Bl=/^:[\w-]+$/,Ul=3,Gl=2,Kl=1,Yl=10,ql=-2,No=e=>e==="*";function Xl(e,t){let n=e.split("/"),r=n.length;return n.some(No)&&(r+=ql),t&&(r+=Gl),n.filter(o=>!No(o)).reduce((o,a)=>o+(Bl.test(a)?Ul:a===""?Kl:Yl),r)}function Zl(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 Jl(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:oc(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]=Ql(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 Ql(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 ec(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 tc(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?qn(e):e;return{pathname:n?n.startsWith("/")?n:nc(n,t):t,search:ac(r),hash:ic(o)}}function nc(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 rc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Io(e){let t=rc(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=tc(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,"/"),oc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ac=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ic=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sc(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 lc=["GET",...Lo];new Set(lc);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 cc=c.createContext(new Map);cc.displayName="Fetchers";var uc=c.createContext(null);uc.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 dc(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 fc(){let{isDataRoute:e}=c.useContext(De);return e?Rc():pc()}function pc(){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 mc(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
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];/**
|
|
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.`),xc(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 hc(){let e=Sc(),t=sc(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 gc=c.createElement(hc,null),vc=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 bc({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 xc(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||gc,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(bc,{match:u,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:h})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?c.createElement(vc,{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 wc(e){let t=c.useContext(it);return ce(t,Qn(e)),t}function yc(e){let t=c.useContext(Gt);return ce(t,Qn(e)),t}function Cc(e){let t=c.useContext(De);return ce(t,Qn(e)),t}function er(e){let t=Cc(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 Ec(){return er("useRouteId")}function Sc(){var r;let e=c.useContext(Jn),t=yc("useRouteError"),n=er("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Rc(){let{router:e}=wc("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(_c);function _c({routes:e,future:t,state:n}){return mc(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 Ac(e){return Xt(e)&&e.tagName.toLowerCase()==="button"}function Pc(e){return Xt(e)&&e.tagName.toLowerCase()==="form"}function Mc(e){return Xt(e)&&e.tagName.toLowerCase()==="input"}function Oc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tc(e,t){return e.button===0&&(!t||t==="_self")&&!Oc(e)}var Zt=null;function kc(){if(Zt===null)try{new FormData(document.createElement("form"),0),Zt=!1}catch{Zt=!0}return Zt}var Nc=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tr(e){return e!=null&&!Nc.has(e)?(ke(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qt}"`),null):e}function Ic(e,t){let n,r,o,a,i;if(Pc(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(Ac(e)||Mc(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),!kc()){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 Dc(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 Lc(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 jc(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await Dc(a,n);return i.links?i.links():[]}return[]}));return Hc(r.flat(1).filter(Lc).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 Fc(e,t,{includeHydrateFallback:n}={}){return $c(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 $c(e){return[...new Set(e)]}function Vc(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Hc(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(Vc(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Wc=new Set([100,101,204,205]);function zc(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 Bc(){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 Uc(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 Gc({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(Yc,{page:e,matches:r,...t}):null}function Kc(e){let{manifest:t,routeModules:n}=Bo(),[r,o]=c.useState([]);return c.useEffect(()=>{let a=!1;return jc(e,t,n).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,n]),r}function Yc({page:e,matches:t,...n}){let r=Qe(),{manifest:o,routeModules:a}=Bo(),{basename:i}=zo(),{loaderData:s,matches:l}=Bc(),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=zc(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(()=>Fc(d,o),[d,o]),v=Kc(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 qc(...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=dc(u,{relative:o}),[y,S,R]=Uc(r,p),P=Qc(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:qc(v,S),target:l,"data-discover":!m&&n==="render"?"true":void 0});return y&&!m?c.createElement(c.Fragment,null,C,c.createElement(Gc,{page:w})):C});Pt.displayName="Link";var Xc=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&&ou(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)});Xc.displayName="NavLink";var Zc=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=nu(),m=ru(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})});Zc.displayName="Form";function Jc(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,Jc(e)),t}function Qc(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let s=fc(),l=Qe(),u=_t(e,{relative:a});return c.useCallback(d=>{if(Tc(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 eu=0,tu=()=>`__${String(++eu)}__`;function nu(){let{router:e}=Ko("useSubmit"),{basename:t}=c.useContext(Ie),n=Ec();return c.useCallback(async(r,o={})=>{let{action:a,method:i,encType:s,formData:l,body:u}=Ic(r,t);if(o.navigate===!1){let d=o.fetcherKey||tu();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 ru(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 ou(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}[...Wc];/**
|
|
50
50
|
* @license lucide-react v0.522.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const
|
|
54
|
+
*/const au=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),iu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Yo=e=>{const t=iu(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(),su=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
55
55
|
* @license lucide-react v0.522.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var
|
|
59
|
+
*/var lu={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"};/**
|
|
60
60
|
* @license lucide-react v0.522.0 - ISC
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const
|
|
64
|
+
*/const cu=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,...lu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:qo("lucide",o),...!a&&!su(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,d])=>D.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
|
|
65
65
|
* @license lucide-react v0.522.0 - ISC
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const we=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(
|
|
69
|
+
*/const we=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(cu,{ref:a,iconNode:t,className:qo(`lucide-${au(Yo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Yo(e),n};/**
|
|
70
70
|
* @license lucide-react v0.522.0 - ISC
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the ISC license.
|
|
73
73
|
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const
|
|
74
|
+
*/const uu=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"}]]);/**
|
|
75
75
|
* @license lucide-react v0.522.0 - ISC
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the ISC license.
|
|
78
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const
|
|
79
|
+
*/const du=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"}]]);/**
|
|
80
80
|
* @license lucide-react v0.522.0 - ISC
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
@@ -86,17 +86,17 @@ Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}
|
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the ISC license.
|
|
88
88
|
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const
|
|
89
|
+
*/const fu=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"}]]);/**
|
|
90
90
|
* @license lucide-react v0.522.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const
|
|
94
|
+
*/const pu=we("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
95
95
|
* @license lucide-react v0.522.0 - ISC
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const
|
|
99
|
+
*/const mu=we("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
100
100
|
* @license lucide-react v0.522.0 - ISC
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the ISC license.
|
|
@@ -106,12 +106,12 @@ Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}
|
|
|
106
106
|
*
|
|
107
107
|
* This source code is licensed under the ISC license.
|
|
108
108
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const
|
|
109
|
+
*/const hu=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"}]]);/**
|
|
110
110
|
* @license lucide-react v0.522.0 - ISC
|
|
111
111
|
*
|
|
112
112
|
* This source code is licensed under the ISC license.
|
|
113
113
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const
|
|
114
|
+
*/const gu=we("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
115
115
|
* @license lucide-react v0.522.0 - ISC
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the ISC license.
|
|
@@ -121,8 +121,8 @@ Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}
|
|
|
121
121
|
*
|
|
122
122
|
* This source code is licensed under the ISC license.
|
|
123
123
|
* See the LICENSE file in the root directory of this source tree.
|
|
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(
|
|
124
|
+
*/const vu=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=bu(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(wu);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 bu(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=Cu(o),s=yu(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 xu(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ta,t}function wu(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ta}function yu(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 Cu(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 Eu(){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="-",Su=e=>{const t=_u(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)||Ru(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=/^\[(.+)\]$/,Ru=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}},_u=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(Au(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},Au=e=>e.isThemeGetter,Pu=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=":",Mu=sr.length,Ou=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+Mu;continue}if(m==="/"){u=g;continue}}m==="["?i++:m==="]"?i--:m==="("?s++:m===")"&&s--}const d=a.length===0?o:o.substring(l),f=Tu(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},Tu=e=>e.endsWith(ir)?e.substring(0,e.length-1):e.startsWith(ir)?e.substring(1):e,ku=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}},Nu=e=>({cache:Pu(e.cacheSize),parseClassName:Ou(e),sortModifiers:ku(e),...Su(e)}),Iu=/\s+/,Du=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Iu);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 Lu(){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 ju(e,...t){let n,r,o,a=i;function i(l){const u=t.reduce((d,f)=>f(d),e());return n=Nu(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=Du(l,n);return o(l,d),d}return function(){return a(Lu.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},da=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fu=/^\d+\/\d+$/,$u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vu=/\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$/,Hu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Wu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>Fu.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=>$u.test(e),Bu=()=>!0,Uu=e=>Vu.test(e)&&!Hu.test(e),pa=()=>!1,Gu=e=>Wu.test(e),Ku=e=>zu.test(e),Yu=e=>!O(e)&&!T(e),qu=e=>ct(e,ba,pa),O=e=>da.test(e),et=e=>ct(e,xa,Uu),cr=e=>ct(e,ed,W),ma=e=>ct(e,ga,pa),Xu=e=>ct(e,va,Ku),Qt=e=>ct(e,wa,Gu),T=e=>fa.test(e),Mt=e=>ut(e,xa),Zu=e=>ut(e,td),ha=e=>ut(e,ga),Ju=e=>ut(e,ba),Qu=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",ed=e=>e==="number",td=e=>e==="family-name",wa=e=>e==="shadow",nd=ju(()=>{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",Ju,qu,{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:[Bu],container:[Le],"drop-shadow":[Le],ease:["in","out","in-out"],font:[Yu],"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:[Zu,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]},Qu,Xu]}],"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 nd(ra(e))}const rd=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(rd({variant:t,size:n,className:e})),ref:a,...o})});ur.displayName="Button";const od=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}));od.displayName="Input";var ad=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=ad.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 id="Separator",Ca="horizontal",sd=["horizontal","vertical"],Ea=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ca,...o}=e,a=ld(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=id;function ld(e){return sd.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 cd(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,ud(o,...t)]}function ud(...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:()=>{},dd=c[" useId ".trim().toString()]||(()=>{}),fd=0;function dt(e){const[t,n]=c.useState(dd());return Ke(()=>{n(r=>r??String(fd++))},[e]),e||(t?`radix-${t}`:"")}var pd=c[" useInsertionEffect ".trim().toString()]||Ke;function dr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=md({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=hd(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 md({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return pd(()=>{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 hd(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 gd(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 vd="DismissableLayer",fr="dismissableLayer.update",bd="dismissableLayer.pointerDownOutside",xd="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=Cd(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=Ed(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 gd(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=vd;var wd="DismissableLayerBranch",yd=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})});yd.displayName=wd;function Cd(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(bd,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 Ed(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(xd,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},Sd="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||(Rd(Od(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]=_d(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=Sd;function Rd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ye(r,{select:t}),document.activeElement!==n)return}function _d(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(!Ad(n,{upTo:t}))return n}function Ad(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 Pd(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&&Pd(e)&&t&&e.select()}}var Na=Md();function Md(){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 Od(e){return e.filter(t=>t.tagName!=="A")}var Td="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=Td;function kd(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Fe=e=>{const{present:t,children:n}=e,r=Nd(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ie(r.ref,Id(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};Fe.displayName="Presence";function Nd(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,l]=kd(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 Id(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 Dd(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",Ld="with-scroll-bars-hidden",jd="--removed-body-scroll-bar-size";function br(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fd(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 $d=typeof window<"u"?c.useLayoutEffect:c.useEffect,Fa=new WeakMap;function Vd(e,t){var n=Fd(null,function(r){return e.forEach(function(o){return br(o,r)})});return $d(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 Hd(e){return e}function Wd(e,t){t===void 0&&(t=Hd);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 zd(e){e===void 0&&(e={});var t=Wd(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 Bd(e,t){return e.useMedium(t),$a}var Va=zd(),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=Vd([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 Ud=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ud();return t&&e.setAttribute("nonce",t),e}function Kd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gd())&&(Kd(t,n),Yd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xd=function(){var e=qd();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ha=function(){var e=Xd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Zd={left:0,top:0,right:0,gap:0},wr=function(e){return parseInt(e||"",10)||0},Jd=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)]},Qd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Zd;var t=Jd(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])}},ef=Ha(),ft="data-scroll-locked",tf=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(Ld,` {
|
|
126
126
|
overflow: hidden `).concat(r,`;
|
|
127
127
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|
128
128
|
}
|
|
@@ -156,13 +156,13 @@ Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
body[`).concat(ft,`] {
|
|
159
|
-
`).concat(
|
|
159
|
+
`).concat(jd,": ").concat(s,`px;
|
|
160
160
|
}
|
|
161
|
-
`)},Wa=function(){var e=parseInt(document.body.getAttribute(ft)||"0",10);return isFinite(e)?e:0},
|
|
161
|
+
`)},Wa=function(){var e=parseInt(document.body.getAttribute(ft)||"0",10);return isFinite(e)?e:0},nf=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())}},[])},rf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;nf();var a=c.useMemo(function(){return Qd(o)},[o]);return c.createElement(ef,{styles:tf(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,of=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&&!of(e)&&n[t]==="visible")},af=function(e){return za(e,"overflowY")},sf=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},lf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},cf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ua=function(e,t){return e==="v"?af(t):sf(t)},Ga=function(e,t){return e==="v"?lf(t):cf(t)},uf=function(e,t){return e==="h"&&t==="rtl"?-1:1},df=function(e,t,n,r,o){var a=uf(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},ff=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pf=function(e){return`
|
|
162
162
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
163
163
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
164
|
-
`)},
|
|
164
|
+
`)},mf=0,mt=[];function hf(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(mf++)[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=Dd([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 df(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)&&ff(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:gf(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:pf(o)}):null,v?c.createElement(rf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vf=Bd(Va,hf);var Cr=c.forwardRef(function(e,t){return c.createElement(an,Re({},e,{ref:t,sideCar:vf}))});Cr.classNames=an.classNames;var bf=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))},xf=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})},wf=function(e,t,n,r){var o=xf(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=bf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),wf(r,o,n,"aria-hidden")):function(){return null}},dn="Dialog",[Za,I0]=tt(dn),[yf,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(yf,{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",Cf=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)})});Cf.displayName=Qa;var Sr="DialogPortal",[Ef,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(Ef,{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(Rf,{...o,ref:t})}):null});ni.displayName=fn;var Sf=st("DialogOverlay.RemoveScroll"),Rf=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(fn,n);return b.jsx(Cr,{as:Sf,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(_f,{...o,ref:t}):b.jsx(Af,{...o,ref:t})})});ri.displayName=nt;var _f=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())})}),Af=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(Pf,{titleId:s.titleId}),b.jsx(Of,{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]=cd(ui,{contentName:nt,titleName:Rr,docsSlug:"dialog"}),Pf=({titleId:e})=>{const t=di(ui),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
165
165
|
|
|
166
166
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
167
167
|
|
|
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&>(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"})});
|
|
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},Mf="DialogDescriptionWarning",Of=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${di(Mf).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},Tf=Ja,kf=ti,fi=ni,pi=ri,mi=ai,hi=si,Nf=ci;const If=Tf,Df=kf,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 Lf=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(Df,{children:[b.jsx(gi,{}),b.jsxs(pi,{ref:o,className:U(Lf({side:e}),t),...r,children:[n,b.jsxs(Nf,{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(vu,{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 jf=["top","right","bottom","left"],qe=Math.min,me=Math.max,pn=Math.round,mn=Math.floor,_e=e=>({x:e,y:e}),Ff={left:"right",right:"left",bottom:"top",top:"bottom"},$f={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 Vf(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 Hf(e){const t=hn(e);return[Tr(e),t,Tr(t)]}function Tr(e){return e.replace(/start|end/g,t=>$f[t])}function Wf(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 zf(e,t,n,r){const o=gt(e);let a=Wf(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=>Ff[t])}function Bf(e){return{top:0,right:0,bottom:0,left:0,...e}}function yi(e){return typeof e!="number"?Bf(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 Uf=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 Gf=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&>(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}}}),Kf=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)]:Hf(s)),P=g!=="none";!p&&P&&R.push(...zf(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=Vf(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 jf.some(t=>e[t]>=0)}const Yf=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 qf(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 Xf=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 qf(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}}}}},Zf=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}}}}}},Jf=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}}}},Qf=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 ep(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 tp(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 np=_e(0);function Mi(e){const t=he(e);return!Nr()||!t.visualViewport?np:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rp(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=rp(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 op(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 ap(e){return Array.from(e.getClientRects())}function ip(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 sp(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 lp(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=sp(e,n);else if(t==="document")r=ip(Pe(e));else if(Ce(t))r=lp(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 cp(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 up(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?bn(t)?[]:cp(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 dp(e){const{width:t,height:n}=Pi(e);return{width:t,height:n}}function fp(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&&ep(r)&&jr(r);)r=Ni(r,t);return r&&bt(r)&&jr(r)&&!kr(r)?n:r||tp(e)||n}const pp=async function(e){const t=this.getOffsetParent||Ii,n=this.getDimensions,r=await n(e.floating);return{reference:fp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mp(e){return Ee(e).direction==="rtl"}const hp={convertOffsetParentRelativeRectToViewportRelativeRect:op,getDocumentElement:Pe,getClippingRect:up,getOffsetParent:Ii,getElementRects:pp,getClientRects:ap,getDimensions:dp,getScale:xt,isElement:Ce,isRTL:mp};function Di(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gp(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 vp(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?gp(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 bp=Xf,xp=Zf,wp=Kf,yp=Qf,Cp=Yf,Li=Gf,Ep=Jf,Sp=(e,t,n)=>{const r=new Map,o={platform:hp,...n},a={...o.platform,_c:r};return Uf(e,t,{...o,platform:a})};var Rp=typeof document<"u",_p=function(){},wn=Rp?D.useLayoutEffect:_p;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 Ap(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),Sp(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 Pp=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):{}}}},Mp=(e,t)=>({...bp(e),options:[e,t]}),Op=(e,t)=>({...xp(e),options:[e,t]}),Tp=(e,t)=>({...Ep(e),options:[e,t]}),kp=(e,t)=>({...wp(e),options:[e,t]}),Np=(e,t)=>({...yp(e),options:[e,t]}),Ip=(e,t)=>({...Cp(e),options:[e,t]}),Dp=(e,t)=>({...Pp(e),options:[e,t]});var Lp="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=Lp;var jp=$i;function Fp(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),[$p,Hi]=Vi($r),Wi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return b.jsx($p,{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",[Vp,Hp]=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=Fp(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(zp),altBoundary:B},{refs:H,floatingStyles:q,placement:F,isPositioned:G,middlewareData:_}=Ap({strategy:"fixed",placement:N,whileElementsMounted:(...Z)=>vp(...Z,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Mp({mainAxis:o+C,alignmentAxis:i}),l&&Op({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Tp():void 0,...V}),l&&kp({...V}),Np({...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&&Dp({element:S,padding:s}),Bp({arrowWidth:A,arrowHeight:C}),p&&Ip({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(Vp,{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",Wp={top:"bottom",right:"left",bottom:"top",left:"right"},Ki=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Hp(Gi,r),i=Wp[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(jp,{...o,ref:n,style:{...o.style,display:"block"}})})});Ki.displayName=Gi;function zp(e){return e!==null}var Bp=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 Up=Wi,qi=Bi,Xi=Ui,Zi=Ki,Gp=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"}),Kp="VisuallyHidden",Ji=c.forwardRef((e,t)=>b.jsx(ne.span,{...e,ref:t,style:{...Gp,...e.style}}));Ji.displayName=Kp;var Yp=Ji,[En,L0]=tt("Tooltip",[Cn]),Hr=Cn(),Qi="TooltipProvider",qp=700,es="tooltip.open",[Xp,ts]=En(Qi),ns=e=>{const{__scopeTooltip:t,delayDuration:n=qp,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(Xp,{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",Zp=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)})})});Zp.displayName=Wr;var Jp="TooltipPortal",[F0,Qp]=En(Jp,{forceMount:void 0}),wt="TooltipContent",os=c.forwardRef((e,t)=>{const n=Qp(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(em,{side:o,...a,ref:t})})}),em=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=am(h,x.getBoundingClientRect()),y=im(h,w),S=sm(m.getBoundingClientRect()),R=cm([...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=!lm(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})}),[tm,nm]=En(rs,{isInside:!1}),rm=xu("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(rm,{children:r}),b.jsx(tm,{scope:n,isInside:!0,children:b.jsx(Yp,{id:l.contentId,role:"tooltip",children:o||r})})]})})});os.displayName=wt;var is="TooltipArrow",om=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hr(n);return nm(is,n).isInside?null:b.jsx(Zi,{...o,...r,ref:t})});om.displayName=is;function am(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 im(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 sm(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 lm(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 cm(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),um(t)}function um(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 dm=ns,ss=os;const fm=dm,pm=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}));pm.displayName=ss.displayName;const mm="sidebar_state",hm=60*60*24*7,gm="16rem",vm="18rem",bm="3rem",xm="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 wm({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i}){const s=Eu(),[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=`${mm}=${w}; path=/; max-age=${hm}`},[n,p]),g=c.useCallback(()=>s?u(h=>!h):v(h=>!h),[s,v,u]);c.useEffect(()=>{const h=w=>{w.key===xm&&(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(fm,{delayDuration:0,children:b.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":gm,"--sidebar-width-icon":bm,...o},className:U("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...i,children:a})})})}function ym({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(If,{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":vm},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 Cm({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(gu,{}),b.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Em({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 Sm({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 Rm({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 _m({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 Am({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 Pm({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 Mm({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 Om({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 Tm({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 km({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(Am,{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(pu,{className:"h-4 w-4"}):b.jsx(mu,{className:"h-4 w-4"})})]}),b.jsx("div",{className:U("overflow-hidden transition-all",i?"max-h-96":"max-h-0"),children:n})]})})}const Nm="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",Im={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:b.jsx(fu,{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(du,{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(uu,{className:"h-4 w-4"})}]}]};function Dm({...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(ym,{...e,children:[b.jsx(Rm,{children:b.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:b.jsx("img",{src:Nm,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),b.jsxs(_m,{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"})]})})}),Im.navMain.map(a=>b.jsx(km,{title:a.title,url:a.url,defaultOpen:r(a.items)||n(a.url),icon:a.icon,isActive:o(a),children:b.jsx(Pm,{children:b.jsx(Mm,{children:a.items.map(i=>b.jsx(Om,{children:b.jsx(Tm,{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(Em,{})]})}function cs(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 us(e){const t=c.useContext(Lm);return e||t||"ltr"}var Br="rovingFocusGroup.onEntryFocus",jm={bubbles:!1,cancelable:!0},Nt="RovingFocusGroup",[Ur,ds,Fm]=cs(Nt),[$m,fs]=tt(Nt,[Fm]),[Vm,Hm]=$m(Nt),ps=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})})}));ps.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=us(a),[m,x]=dr({prop:i,defaultProp:s??null,onChange:l,caller:Nt}),[h,w]=c.useState(!1),y=je(u),S=ds(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);gs(q,d)}}R.current=!1}),onBlur:j(e.onBlur,()=>w(!1))})})}),ms="RovingFocusGroupItem",hs=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(ms,n),f=d.currentTabStopId===u,p=ds(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(()=>gs(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:m!=null}):i})})});hs.displayName=ms;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 gs(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=ps,Ym=hs,Gr=["Enter"," "],qm=["ArrowDown","PageUp","Home"],vs=["ArrowUp","PageDown","End"],Xm=[...qm,...vs],Zm={ltr:[...Gr,"ArrowRight"],rtl:[...Gr,"ArrowLeft"]},Jm={ltr:["ArrowLeft"],rtl:["ArrowRight"]},It="Menu",[Dt,Qm,eh]=cs(It),[ot,bs]=tt(It,[eh,Cn,fs]),Rn=Cn(),xs=fs(),[th,at]=ot(It),[nh,Lt]=ot(It),ws=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=us(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(Up,{...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})})})};ws.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,ys]=ot(Yr,{forceMount:void 0}),Cs=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})})})};Cs.displayName=Yr;var ve="MenuContent",[ah,qr]=ot(ve),Es=c.forwardRef((e,t)=>{const n=ys(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=xs(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":Vs(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);vs.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}}))})})})})})})});Es.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",Ss=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ne.div,{...r,ref:t})});Ss.displayName=uh;var _n="MenuItem",Rs="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(Rs,{bubbles:!0,cancelable:!0});f.addEventListener(Rs,v=>r==null?void 0:r(v),{once:!0}),ya(f,p),p.defaultPrevented?u.current=!1:i.onClose()}};return b.jsx(_s,{...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 _s=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=qr(_n,n),s=xs(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",As=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(ks,{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})})})});As.displayName=dh;var Ps="MenuRadioGroup",[fh,ph]=ot(Ps,{value:void 0,onValueChange:()=>{}}),Ms=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})})});Ms.displayName=Ps;var Os="MenuRadioItem",Ts=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=ph(Os,e.__scopeMenu),a=n===o.value;return b.jsx(ks,{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})})})});Ts.displayName=Os;var Jr="MenuItemIndicator",[ks,mh]=ot(Jr,{checked:!1}),Ns=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)})})});Ns.displayName=Jr;var hh="MenuSeparator",Is=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Is.displayName=hh;var gh="MenuArrow",Ds=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rn(n);return b.jsx(Zi,{...o,...r,ref:t})});Ds.displayName=gh;var vh="MenuSub",[$0,Ls]=ot(vh),jt="MenuSubTrigger",js=c.forwardRef((e,t)=>{const n=at(jt,e.__scopeMenu),r=Lt(jt,e.__scopeMenu),o=Ls(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(_s,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Vs(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())})})})});js.displayName=jt;var Fs="MenuSubContent",$s=c.forwardRef((e,t)=>{const n=ys(ve,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=at(ve,e.__scopeMenu),i=Lt(ve,e.__scopeMenu),s=Ls(Fs,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())})})})})})});$s.displayName=Fs;function Vs(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=ws,Sh=Kr,Rh=Cs,_h=Es,Ah=Zr,Ph=Ss,Mh=An,Oh=As,Th=Ms,kh=Ts,Nh=Ns,Ih=Is,Dh=Ds,Lh=js,jh=$s,Mn="DropdownMenu",[Fh,V0]=tt(Mn,[bs]),fe=bs(),[$h,Hs]=Fh(Mn),Ws=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})})};Ws.displayName=Mn;var zs="DropdownMenuTrigger",Bs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Hs(zs,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())})})})});Bs.displayName=zs;var Vh="DropdownMenuPortal",Us=e=>{const{__scopeDropdownMenu:t,...n}=e,r=fe(t);return b.jsx(Rh,{...r,...n})};Us.displayName=Vh;var Gs="DropdownMenuContent",Ks=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hs(Gs,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)"}})});Ks.displayName=Gs;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",Ys=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Ph,{...o,...r,ref:t})});Ys.displayName=zh;var Bh="DropdownMenuItem",qs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Mh,{...o,...r,ref:t})});qs.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",Xs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fe(n);return b.jsx(Ih,{...o,...r,ref:t})});Xs.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=Ws,s0=Bs,l0=Us,c0=Ks,u0=Ys,d0=qs,f0=Xs;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 Zs({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}=$l(),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(Zs,{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(Zs,{onClick:r,children:[b.jsx(hu,{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(Cm,{}),b.jsx(Ra,{orientation:"vertical"})]}),b.jsx("div",{className:"flex-shrink-0",children:b.jsx(b0,{})})]})}),w0=({children:e})=>b.jsx(Vl,{children:b.jsx(wm,{children:b.jsxs("div",{className:"flex h-screen w-full",children:[b.jsx(Dm,{}),b.jsxs(Sm,{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"})});
|