import{r as a,j as l,d as zs,u as an,c as Ct,a as mt,R as le,e as Gs,f as Ks,L as Ae}from"./app-BwDemWQz.js";import{u as Ee,c as _,a as Ys,b as St,P as We}from"./index-DxJALBsh.js";import{P as Et,L as On}from"./Label-1lm7x8-L.js";import{c as B,B as ye,b as q,u as z,t as Xs,a as qs,L as Zs,S as Js}from"./Button-B-KWyoQR.js";import{c as V}from"./createLucideIcon-BASx8f0E.js";import{I as Tn}from"./Input-BJaxI6jp.js";import{s as J,C as Qs}from"./index-CkDmAPFS.js";import{u as cn,a as ei,T as ti,L as ni,F as ri}from"./LanguageContext-zkEAKPTE.js";import{Z as oi}from"./zap-BsHQ4DWF.js";import{R as si}from"./rocket-Dt03WmgU.js";import{U as ii}from"./users-g1HvrzO9.js";import{G as ai}from"./globe-C_ZhZ5i9.js";/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ci=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],In=V("bell",ci);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const li=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ui=V("calendar",li);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const di=[["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"}]],fi=V("chart-column",di);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pi=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],mi=V("chart-line",pi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hi=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],mr=V("chevron-right",hi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],xi=V("circle-user",gi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vi=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],yi=V("dot",vi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wi=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],hr=V("file-text",wi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bi=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],gr=V("image",bi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ci=[["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"}]],Si=V("log-out",Ci);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ei=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],Ni=V("menu",Ei);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ri=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],ji=V("moon",Ri);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pi=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],_i=V("panel-left-close",Pi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mi=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Ai=V("panel-left-open",Mi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ki=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],xr=V("plus",ki);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oi=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Yt=V("settings",Oi);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ti=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}]],Ii=V("sparkle",Ti);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $i=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Di=V("sun",$i);/**
 * @license lucide-react v0.539.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Li=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vr=V("x",Li);function Fi(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i);c.displayName=s+"Context";const u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,Wi(o,...t)]}function Wi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ee(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var It={exports:{}},$t={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $n;function Bi(){if($n)return $t;$n=1;var e=zs();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function c(f,m){var g=m(),x=r({inst:{value:g,getSnapshot:m}}),h=x[0].inst,v=x[1];return s(function(){h.value=g,h.getSnapshot=m,u(h)&&v({inst:h})},[f,g,m]),o(function(){return u(h)&&v({inst:h}),f(function(){u(h)&&v({inst:h})})},[f]),i(g),g}function u(f){var m=f.getSnapshot;f=f.value;try{var g=m();return!n(f,g)}catch{return!0}}function d(f,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return $t.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,$t}var Dn;function Vi(){return Dn||(Dn=1,It.exports=Bi()),It.exports}var Hi=Vi();function Ui(){return Hi.useSyncExternalStore(zi,()=>!0,()=>!1)}function zi(){return()=>{}}var ln="Avatar",[Gi]=Fi(ln),[Ki,yr]=Gi(ln),wr=a.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=a.useState("idle");return l.jsx(Ki,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:l.jsx(Et.span,{...r,ref:t})})});wr.displayName=ln;var br="AvatarImage",Cr=a.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=yr(br,n),c=Yi(r,s),u=ee(d=>{o(d),i.onImageLoadingStatusChange(d)});return Ee(()=>{c!=="idle"&&u(c)},[c,u]),c==="loaded"?l.jsx(Et.img,{...s,ref:t,src:r}):null});Cr.displayName=br;var Sr="AvatarFallback",Er=a.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=yr(Sr,n),[i,c]=a.useState(r===void 0);return a.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(u)}},[r]),i&&s.imageLoadingStatus!=="loaded"?l.jsx(Et.span,{...o,ref:t}):null});Er.displayName=Sr;function Ln(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Yi(e,{referrerPolicy:t,crossOrigin:n}){const r=Ui(),o=a.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[i,c]=a.useState(()=>Ln(s,e));return Ee(()=>{c(Ln(s,e))},[s,e]),Ee(()=>{const u=f=>()=>{c(f)};if(!s)return;const d=u("loaded"),p=u("error");return s.addEventListener("load",d),s.addEventListener("error",p),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",d),s.removeEventListener("error",p)}},[s,n,t]),i}var Nr=wr,Rr=Cr,jr=Er;const ke=a.forwardRef(({className:e,...t},n)=>l.jsx(Nr,{ref:n,className:B("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ke.displayName=Nr.displayName;const Oe=a.forwardRef(({className:e,src:t,...n},r)=>{const{defaultAvatars:o}=an().props,s=a.useMemo(()=>{const i=Math.floor(Math.random()*o.length);return o[i]},[]);return l.jsx(Rr,{ref:r,className:B("aspect-square h-full w-full",e),src:t||s,...n})});Oe.displayName=Rr.displayName;const Te=a.forwardRef(({className:e,...t},n)=>l.jsx(jr,{ref:n,className:B("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Te.displayName=jr.displayName;const Xi=({isOpen:e,onClose:t,title:n,children:r,onSubmit:o,submitText:s="Submit",showSubmit:i=!0,width:c="w-full max-w-md",maxWidth:u="max-w-md",maxHeight:d="max-h-[90vh]",buttonWidth:p="w-full",isDataSubmitting:f=!1,size:m="md",usePortal:g=!0})=>{if(a.useEffect(()=>{const y=b=>{b.key==="Escape"&&t()};return e&&(document.addEventListener("keydown",y),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",y),document.body.style.overflow="unset"}},[e,t]),!e)return null;const x={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full"},h=c.includes("max-w-")?c:`w-full ${x[m]||x.md}`,v=l.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-[1000] p-4",role:"dialog","aria-labelledby":"modal-title",onClick:y=>y.target===y.currentTarget&&t(),children:l.jsxs("div",{className:`bg-white dark:bg-zinc-900 rounded-xl shadow-2xl ${h} ${d} flex flex-col mx-auto overflow-hidden border border-gray-200 dark:border-zinc-800`,children:[l.jsxs("div",{className:"flex items-center justify-between px-6 py-3 border-b border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 flex-shrink-0",children:[l.jsx("h3",{id:"modal-title",className:"text-xl font-semibold text-gray-900 dark:text-gray-100 truncate pr-4",children:n}),l.jsx("button",{onClick:t,className:"p-2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 rounded-lg hover:bg-gray-100 dark:hover:bg-zinc-800 transition-colors flex-shrink-0","aria-label":"Close modal",children:l.jsx(vr,{className:"w-5 h-5"})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:l.jsx("div",{className:"space-y-4",children:r})}),i&&l.jsx("div",{className:"border-t border-gray-200 dark:border-zinc-800 px-6 py-3 bg-gray-50 dark:bg-zinc-800/50 flex-shrink-0",children:l.jsxs("div",{className:"flex items-center justify-end gap-3",children:[l.jsx(ye,{variant:"outline",onClick:t,disabled:f,className:"px-6 py-2",children:"Cancel"}),l.jsx(ye,{isLoading:f,variant:"default",className:`${p.includes("w-full")?"flex-1":p} px-6 py-2`,onClick:o,children:f?`${s}ing...`:s})]})})]})});return g?Ct.createPortal(v,document.body):v};function qi({isOpen:e,onClose:t}){const[n,r]=a.useState({name:"",email:""}),[o,s]=a.useState(!1),i=cn(),c=p=>{const{name:f,value:m}=p.target;r(g=>({...g,[f]:m}))},u=()=>{s(!0),mt.post(J("user.workspace.store"),n,{onSuccess:()=>{r({name:"",email:""}),t(),s(!1)},onError:()=>{s(!1)}})},d=()=>{r({name:"",email:""}),t()};return l.jsxs(Xi,{isOpen:e,onClose:d,onSubmit:u,submitText:i("Create Workspace"),title:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-8 h-8 bg-gradient-to-r from-primary to-secondary rounded-lg flex items-center justify-center",children:l.jsx(Ii,{className:"w-4 h-4 text-white"})}),l.jsx("div",{children:l.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:i("Create Workspace")})})]}),className:"max-w-md",width:"w-[26rem]",buttonWidth:"w-full",isSubmitting:o,children:[l.jsx("div",{className:"space-y-4",children:l.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:i("Create a new workspace to organize your projects and team collaboration")})}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(On,{className:"dark:text-zinc-100",htmlFor:"workspace-name",children:i("Name")}),l.jsx(Tn,{id:"workspace-name",name:"name",placeholder:i("Enter your workspace name"),value:n.name,onChange:c,className:"w-full",required:!0,disabled:o})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(On,{className:"dark:text-zinc-100",htmlFor:"workspace-email",children:i("Email")}),l.jsx(Tn,{id:"workspace-email",name:"email",type:"email",placeholder:i("Enter your workspace email"),value:n.email,onChange:c,className:"w-full",required:!0,disabled:o})]})]})]})}const Pr=le.forwardRef(({src:e,siteName:t="PostUno",size:n=48,className:r="",variant:o="gradient",showText:s=!0,...i},c)=>{const[u,d]=a.useState(!1),p=t.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2),f={gradient:"bg-gradient-to-br from-blue-500 via-purple-500 to-pink-500",solid:"bg-blue-600",dark:"bg-gray-800 dark:bg-gray-700",branded:"bg-gradient-to-br from-indigo-500 to-purple-600"};return e&&!u?l.jsx("img",{ref:c,src:e,alt:t,width:n,height:n,className:B("rounded-xl object-cover shadow-sm border border-gray-200 dark:border-zinc-800",r),style:{width:n,height:n},onError:()=>d(!0),...i}):l.jsx("div",{ref:c,className:B("flex items-center justify-center rounded-xl text-white font-bold shadow-sm border border-gray-200 dark:border-gray-600",f[o],r),style:{width:n,height:n},...i,children:n>=24?l.jsx("svg",{className:`${n>=48?"w-8 h-8":n>=32?"w-6 h-6":"w-5 h-5"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}):l.jsx("span",{className:"text-xs font-bold",children:p})})});Pr.displayName="SiteLogo";var Zi="Separator",Fn="horizontal",Ji=["horizontal","vertical"],_r=a.forwardRef((e,t)=>{const{decorative:n,orientation:r=Fn,...o}=e,s=Qi(r)?r:Fn,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return l.jsx(Et.div,{"data-orientation":s,...c,...o,ref:t})});_r.displayName=Zi;function Qi(e){return Ji.includes(e)}var Mr=_r;const Ar=a.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>l.jsx(Mr,{ref:o,decorative:n,orientation:t,className:B("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ar.displayName=Mr.displayName;function ea(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,ta(o,...t)]}function ta(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function na(e){const t=ra(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(sa);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ra(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=aa(o),c=ia(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oa=Symbol("radix.slottable");function sa(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oa}function ia(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function aa(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 ca=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],la=ca.reduce((e,t)=>{const n=na(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ua(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,da(o,...t)]}function da(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Wn(e){const t=fa(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(ma);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function fa(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=ga(o),c=ha(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pa=Symbol("radix.slottable");function ma(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pa}function ha(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ga(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 kr(e){const t=e+"CollectionProvider",[n,r]=ua(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:v,children:y}=h,b=le.useRef(null),C=le.useRef(new Map).current;return l.jsx(o,{scope:v,itemMap:C,collectionRef:b,children:y})};i.displayName=t;const c=e+"CollectionSlot",u=Wn(c),d=le.forwardRef((h,v)=>{const{scope:y,children:b}=h,C=s(c,y),S=z(v,C.collectionRef);return l.jsx(u,{ref:S,children:b})});d.displayName=c;const p=e+"CollectionItemSlot",f="data-radix-collection-item",m=Wn(p),g=le.forwardRef((h,v)=>{const{scope:y,children:b,...C}=h,S=le.useRef(null),w=z(v,S),N=s(p,y);return le.useEffect(()=>(N.itemMap.set(S,{ref:S,...C}),()=>void N.itemMap.delete(S))),l.jsx(m,{[f]:"",ref:w,children:b})});g.displayName=p;function x(h){const v=s(e+"CollectionConsumer",h);return le.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((N,E)=>C.indexOf(N.ref.current)-C.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:d,ItemSlot:g},x,r]}function xa(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,va(o,...t)]}function va(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ya=a.createContext(void 0);function Or(e){const t=a.useContext(ya);return e||t||"ltr"}function wa(e){const t=ba(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Sa);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ba(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Na(o),c=Ea(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ca=Symbol("radix.slottable");function Sa(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ca}function Ea(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Na(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 Ra=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tr=Ra.reduce((e,t)=>{const n=wa(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ja(e,t){e&&Ct.flushSync(()=>e.dispatchEvent(t))}function Pa(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e);a.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 _a="DismissableLayer",Xt="dismissableLayer.update",Ma="dismissableLayer.pointerDownOutside",Aa="dismissableLayer.focusOutside",Bn,Ir=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),un=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...u}=e,d=a.useContext(Ir),[p,f]=a.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=a.useState({}),x=z(t,E=>f(E)),h=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),b=p?h.indexOf(p):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,w=Ta(E=>{const j=E.target,O=[...d.branches].some(A=>A.contains(j));!S||O||(o==null||o(E),i==null||i(E),E.defaultPrevented||c==null||c())},m),N=Ia(E=>{const j=E.target;[...d.branches].some(A=>A.contains(j))||(s==null||s(E),i==null||i(E),E.defaultPrevented||c==null||c())},m);return Pa(E=>{b===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},m),a.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Bn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Vn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Bn)}},[p,m,n,d]),a.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Vn())},[p,d]),a.useEffect(()=>{const E=()=>g({});return document.addEventListener(Xt,E),()=>document.removeEventListener(Xt,E)},[]),l.jsx(Tr.div,{...u,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,N.onFocusCapture),onBlurCapture:_(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,w.onPointerDownCapture)})});un.displayName=_a;var ka="DismissableLayerBranch",Oa=a.forwardRef((e,t)=>{const n=a.useContext(Ir),r=a.useRef(null),o=z(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(Tr.div,{...e,ref:o})});Oa.displayName=ka;function Ta(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let u=function(){$r(Ma,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ia(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&$r(Aa,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vn(){const e=new CustomEvent(Xt);document.dispatchEvent(e)}function $r(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ja(o,s):o.dispatchEvent(s)}var Dt=0;function $a(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hn()),document.body.insertAdjacentElement("beforeend",e[1]??Hn()),Dt++,()=>{Dt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dt--}},[])}function Hn(){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}function Da(e){const t=La(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Wa);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function La(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Va(o),c=Ba(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fa=Symbol("radix.slottable");function Wa(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fa}function Ba(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Va(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 Ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ua=Ha.reduce((e,t)=>{const n=Da(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Lt="focusScope.autoFocusOnMount",Ft="focusScope.autoFocusOnUnmount",Un={bubbles:!1,cancelable:!0},za="FocusScope",Dr=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[c,u]=a.useState(null),d=ee(o),p=ee(s),f=a.useRef(null),m=z(t,h=>u(h)),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let h=function(C){if(g.paused||!c)return;const S=C.target;c.contains(S)?f.current=S:ve(f.current,{select:!0})},v=function(C){if(g.paused||!c)return;const S=C.relatedTarget;S!==null&&(c.contains(S)||ve(f.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const w of C)w.removedNodes.length>0&&ve(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(y);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[r,c,g.paused]),a.useEffect(()=>{if(c){Gn.add(g);const h=document.activeElement;if(!c.contains(h)){const y=new CustomEvent(Lt,Un);c.addEventListener(Lt,d),c.dispatchEvent(y),y.defaultPrevented||(Ga(Za(Lr(c)),{select:!0}),document.activeElement===h&&ve(c))}return()=>{c.removeEventListener(Lt,d),setTimeout(()=>{const y=new CustomEvent(Ft,Un);c.addEventListener(Ft,p),c.dispatchEvent(y),y.defaultPrevented||ve(h??document.body,{select:!0}),c.removeEventListener(Ft,p),Gn.remove(g)},0)}}},[c,d,p,g]);const x=a.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const b=h.currentTarget,[C,S]=Ka(b);C&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&ve(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&ve(S,{select:!0})):y===b&&h.preventDefault()}},[n,r,g.paused]);return l.jsx(Ua.div,{tabIndex:-1,...i,ref:m,onKeyDown:x})});Dr.displayName=za;function Ga(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ve(r,{select:t}),document.activeElement!==n)return}function Ka(e){const t=Lr(e),n=zn(t,e),r=zn(t.reverse(),e);return[n,r]}function Lr(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 zn(e,t){for(const n of e)if(!Ya(n,{upTo:t}))return n}function Ya(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 Xa(e){return e instanceof HTMLInputElement&&"select"in e}function ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xa(e)&&t&&e.select()}}var Gn=qa();function qa(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Kn(e,t),e.unshift(t)},remove(t){var n;e=Kn(e,t),(n=e[0])==null||n.resume()}}}function Kn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Za(e){return e.filter(t=>t.tagName!=="A")}var Ja=Gs[" useId ".trim().toString()]||(()=>{}),Qa=0;function De(e){const[t,n]=a.useState(Ja());return Ee(()=>{n(r=>r??String(Qa++))},[e]),t?`radix-${t}`:""}const ec=["top","right","bottom","left"],we=Math.min,Y=Math.max,ht=Math.round,ot=Math.floor,ie=e=>({x:e,y:e}),tc={left:"right",right:"left",bottom:"top",top:"bottom"},nc={start:"end",end:"start"};function qt(e,t,n){return Y(e,we(t,n))}function de(e,t){return typeof e=="function"?e(t):e}function fe(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function dn(e){return e==="x"?"y":"x"}function fn(e){return e==="y"?"height":"width"}const rc=new Set(["top","bottom"]);function se(e){return rc.has(fe(e))?"y":"x"}function pn(e){return dn(se(e))}function oc(e,t,n){n===void 0&&(n=!1);const r=Be(e),o=pn(e),s=fn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=gt(i)),[i,gt(i)]}function sc(e){const t=gt(e);return[Zt(e),t,Zt(t)]}function Zt(e){return e.replace(/start|end/g,t=>nc[t])}const Yn=["left","right"],Xn=["right","left"],ic=["top","bottom"],ac=["bottom","top"];function cc(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Yn:t?Yn:Xn;case"left":case"right":return t?ic:ac;default:return[]}}function lc(e,t,n,r){const o=Be(e);let s=cc(fe(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Zt)))),s}function gt(e){return e.replace(/left|right|bottom|top/g,t=>tc[t])}function uc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fr(e){return typeof e!="number"?uc(e):{top:e,right:e,bottom:e,left:e}}function xt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qn(e,t,n){let{reference:r,floating:o}=e;const s=se(t),i=pn(t),c=fn(i),u=fe(t),d=s==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let g;switch(u){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Be(t)){case"start":g[i]-=m*(n&&d?-1:1);break;case"end":g[i]+=m*(n&&d?-1:1);break}return g}const dc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=qn(d,r,u),m=r,g={},x=0;for(let h=0;h<c.length;h++){const{name:v,fn:y}=c[h],{x:b,y:C,data:S,reset:w}=await y({x:p,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:d,platform:i,elements:{reference:e,floating:t}});p=b??p,f=C??f,g={...g,[v]:{...g[v],...S}},w&&x<=50&&(x++,typeof w=="object"&&(w.placement&&(m=w.placement),w.rects&&(d=w.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:p,y:f}=qn(d,m,u)),h=-1)}return{x:p,y:f,placement:m,strategy:o,middlewareData:g}};async function ze(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=de(t,e),x=Fr(g),v=c[m?f==="floating"?"reference":"floating":f],y=xt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:p,strategy:u})),b=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},w=xt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-w.top+x.top)/S.y,bottom:(w.bottom-y.bottom+x.bottom)/S.y,left:(y.left-w.left+x.left)/S.x,right:(w.right-y.right+x.right)/S.x}}const fc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:p=0}=de(e,t)||{};if(d==null)return{};const f=Fr(p),m={x:n,y:r},g=pn(o),x=fn(g),h=await i.getDimensions(d),v=g==="y",y=v?"top":"left",b=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[g]-m[g]-s.floating[x],w=m[g]-s.reference[g],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=N?N[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=c.floating[C]||s.floating[x]);const j=S/2-w/2,O=E/2-h[x]/2-1,A=we(f[y],O),T=we(f[b],O),$=A,D=E-h[x]-T,I=E/2-h[x]/2+j,W=qt($,I,D),k=!u.arrow&&Be(o)!=null&&I!==W&&s.reference[x]/2-(I<$?A:T)-h[x]/2<0,F=k?I<$?I-$:I-D:0;return{[g]:m[g]+F,data:{[g]:W,centerOffset:I-W-F,...k&&{alignmentOffset:F}},reset:k}}}),pc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...v}=de(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=fe(o),b=se(c),C=fe(c)===c,S=await(u.isRTL==null?void 0:u.isRTL(d.floating)),w=m||(C||!h?[gt(c)]:sc(c)),N=x!=="none";!m&&N&&w.push(...lc(c,h,x,S));const E=[c,...w],j=await ze(t,v),O=[];let A=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&O.push(j[y]),f){const I=oc(o,i,S);O.push(j[I[0]],j[I[1]])}if(A=[...A,{placement:o,overflows:O}],!O.every(I=>I<=0)){var T,$;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,W=E[I];if(W&&(!(f==="alignment"?b!==se(W):!1)||A.every(P=>se(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:I,overflows:A},reset:{placement:W}};let k=($=A.filter(F=>F.overflows[0]<=0).sort((F,P)=>F.overflows[1]-P.overflows[1])[0])==null?void 0:$.placement;if(!k)switch(g){case"bestFit":{var D;const F=(D=A.filter(P=>{if(N){const R=se(P.placement);return R===b||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:D[0];F&&(k=F);break}case"initialPlacement":k=c;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Zn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jn(e){return ec.some(t=>e[t]>=0)}const mc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=de(e,t);switch(r){case"referenceHidden":{const s=await ze(t,{...o,elementContext:"reference"}),i=Zn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Jn(i)}}}case"escaped":{const s=await ze(t,{...o,altBoundary:!0}),i=Zn(s,n.floating);return{data:{escapedOffsets:i,escaped:Jn(i)}}}default:return{}}}}},Wr=new Set(["left","top"]);async function hc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=fe(n),c=Be(n),u=se(n)==="y",d=Wr.has(i)?-1:1,p=s&&u?-1:1,f=de(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),u?{x:g*p,y:m*d}:{x:m*d,y:g*p}}const gc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:c}=t,u=await hc(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},xc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...u}=de(e,t),d={x:n,y:r},p=await ze(t,u),f=se(fe(o)),m=dn(f);let g=d[m],x=d[f];if(s){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=g+p[v],C=g-p[y];g=qt(b,g,C)}if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=x+p[v],C=x-p[y];x=qt(b,x,C)}const h=c.fn({...t,[m]:g,[f]:x});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[f]:i}}}}}},vc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=de(e,t),p={x:n,y:r},f=se(o),m=dn(f);let g=p[m],x=p[f];const h=de(c,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const C=m==="y"?"height":"width",S=s.reference[m]-s.floating[C]+v.mainAxis,w=s.reference[m]+s.reference[C]-v.mainAxis;g<S?g=S:g>w&&(g=w)}if(d){var y,b;const C=m==="y"?"width":"height",S=Wr.has(fe(o)),w=s.reference[f]-s.floating[C]+(S&&((y=i.offset)==null?void 0:y[f])||0)+(S?0:v.crossAxis),N=s.reference[f]+s.reference[C]+(S?0:((b=i.offset)==null?void 0:b[f])||0)-(S?v.crossAxis:0);x<w?x=w:x>N&&(x=N)}return{[m]:g,[f]:x}}}},yc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:c}=t,{apply:u=()=>{},...d}=de(e,t),p=await ze(t,d),f=fe(o),m=Be(o),g=se(o)==="y",{width:x,height:h}=s.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=m===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=f,v=m==="end"?"top":"bottom");const b=h-p.top-p.bottom,C=x-p.left-p.right,S=we(h-p[v],b),w=we(x-p[y],C),N=!t.middlewareData.shift;let E=S,j=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),N&&!m){const A=Y(p.left,0),T=Y(p.right,0),$=Y(p.top,0),D=Y(p.bottom,0);g?j=x-2*(A!==0||T!==0?A+T:Y(p.left,p.right)):E=h-2*($!==0||D!==0?$+D:Y(p.top,p.bottom))}await u({...t,availableWidth:j,availableHeight:E});const O=await i.getDimensions(c.floating);return x!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function Ve(e){return Br(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ce(e){var t;return(t=(Br(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Br(e){return Nt()?e instanceof Node||e instanceof X(e).Node:!1}function te(e){return Nt()?e instanceof Element||e instanceof X(e).Element:!1}function ae(e){return Nt()?e instanceof HTMLElement||e instanceof X(e).HTMLElement:!1}function Qn(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof X(e).ShadowRoot}const wc=new Set(["inline","contents"]);function qe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wc.has(o)}const bc=new Set(["table","td","th"]);function Cc(e){return bc.has(Ve(e))}const Sc=[":popover-open",":modal"];function Rt(e){return Sc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ec=["transform","translate","scale","rotate","perspective"],Nc=["transform","translate","scale","rotate","perspective","filter"],Rc=["paint","layout","strict","content"];function mn(e){const t=hn(),n=te(e)?ne(e):e;return Ec.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)||Nc.some(r=>(n.willChange||"").includes(r))||Rc.some(r=>(n.contain||"").includes(r))}function jc(e){let t=be(e);for(;ae(t)&&!Le(t);){if(mn(t))return t;if(Rt(t))return null;t=be(t)}return null}function hn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pc=new Set(["html","body","#document"]);function Le(e){return Pc.has(Ve(e))}function ne(e){return X(e).getComputedStyle(e)}function jt(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function be(e){if(Ve(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qn(e)&&e.host||ce(e);return Qn(t)?t.host:t}function Vr(e){const t=be(e);return Le(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&qe(t)?t:Vr(t)}function Ge(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=X(o);if(s){const c=Jt(i);return t.concat(i,i.visualViewport||[],qe(o)?o:[],c&&n?Ge(c):[])}return t.concat(o,Ge(o,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hr(e){const t=ne(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ae(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=ht(n)!==s||ht(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function gn(e){return te(e)?e:e.contextElement}function Ie(e){const t=gn(e);if(!ae(t))return ie(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Hr(t);let i=(s?ht(n.width):n.width)/r,c=(s?ht(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const _c=ie(0);function Ur(e){const t=X(e);return!hn()||!t.visualViewport?_c:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==X(e)?!1:t}function Ne(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=gn(e);let i=ie(1);t&&(r?te(r)&&(i=Ie(r)):i=Ie(e));const c=Mc(s,n,r)?Ur(s):ie(0);let u=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,p=o.width/i.x,f=o.height/i.y;if(s){const m=X(s),g=r&&te(r)?X(r):r;let x=m,h=Jt(x);for(;h&&r&&g!==x;){const v=Ie(h),y=h.getBoundingClientRect(),b=ne(h),C=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;u*=v.x,d*=v.y,p*=v.x,f*=v.y,u+=C,d+=S,x=X(h),h=Jt(x)}}return xt({width:p,height:f,x:u,y:d})}function Pt(e,t){const n=jt(e).scrollLeft;return t?t.left+n:Ne(ce(e)).left+n}function zr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Pt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ac(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ce(r),c=t?Rt(t.floating):!1;if(r===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=ie(1);const p=ie(0),f=ae(r);if((f||!f&&!s)&&((Ve(r)!=="body"||qe(i))&&(u=jt(r)),ae(r))){const g=Ne(r);d=Ie(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const m=i&&!f&&!s?zr(i,u):ie(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-u.scrollTop*d.y+p.y+m.y}}function kc(e){return Array.from(e.getClientRects())}function Oc(e){const t=ce(e),n=jt(e),r=e.ownerDocument.body,o=Y(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Y(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Pt(e);const c=-n.scrollTop;return ne(r).direction==="rtl"&&(i+=Y(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}const er=25;function Tc(e,t){const n=X(e),r=ce(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){s=o.width,i=o.height;const p=hn();(!p||p&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=Pt(r);if(d<=0){const p=r.ownerDocument,f=p.body,m=getComputedStyle(f),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-g);x<=er&&(s-=x)}else d<=er&&(s+=d);return{width:s,height:i,x:c,y:u}}const Ic=new Set(["absolute","fixed"]);function $c(e,t){const n=Ne(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ae(e)?Ie(e):ie(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:i,height:c,x:u,y:d}}function tr(e,t,n){let r;if(t==="viewport")r=Tc(e,n);else if(t==="document")r=Oc(ce(e));else if(te(t))r=$c(t,n);else{const o=Ur(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xt(r)}function Gr(e,t){const n=be(e);return n===t||!te(n)||Le(n)?!1:ne(n).position==="fixed"||Gr(n,t)}function Dc(e,t){const n=t.get(e);if(n)return n;let r=Ge(e,[],!1).filter(c=>te(c)&&Ve(c)!=="body"),o=null;const s=ne(e).position==="fixed";let i=s?be(e):e;for(;te(i)&&!Le(i);){const c=ne(i),u=mn(i);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&Ic.has(o.position)||qe(i)&&!u&&Gr(e,i))?r=r.filter(p=>p!==i):o=c,i=be(i)}return t.set(e,r),r}function Lc(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Rt(t)?[]:Dc(t,this._c):[].concat(n),r],c=i[0],u=i.reduce((d,p)=>{const f=tr(t,p,o);return d.top=Y(f.top,d.top),d.right=we(f.right,d.right),d.bottom=we(f.bottom,d.bottom),d.left=Y(f.left,d.left),d},tr(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Fc(e){const{width:t,height:n}=Hr(e);return{width:t,height:n}}function Wc(e,t,n){const r=ae(t),o=ce(t),s=n==="fixed",i=Ne(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=ie(0);function d(){u.x=Pt(o)}if(r||!r&&!s)if((Ve(t)!=="body"||qe(o))&&(c=jt(t)),r){const g=Ne(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else o&&d();s&&!r&&o&&d();const p=o&&!r&&!s?zr(o,c):ie(0),f=i.left+c.scrollLeft-u.x-p.x,m=i.top+c.scrollTop-u.y-p.y;return{x:f,y:m,width:i.width,height:i.height}}function Wt(e){return ne(e).position==="static"}function nr(e,t){if(!ae(e)||ne(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ce(e)===n&&(n=n.ownerDocument.body),n}function Kr(e,t){const n=X(e);if(Rt(e))return n;if(!ae(e)){let o=be(e);for(;o&&!Le(o);){if(te(o)&&!Wt(o))return o;o=be(o)}return n}let r=nr(e,t);for(;r&&Cc(r)&&Wt(r);)r=nr(r,t);return r&&Le(r)&&Wt(r)&&!mn(r)?n:r||jc(e)||n}const Bc=async function(e){const t=this.getOffsetParent||Kr,n=this.getDimensions,r=await n(e.floating);return{reference:Wc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vc(e){return ne(e).direction==="rtl"}const Hc={convertOffsetParentRelativeRectToViewportRelativeRect:Ac,getDocumentElement:ce,getClippingRect:Lc,getOffsetParent:Kr,getElementRects:Bc,getClientRects:kc,getDimensions:Fc,getScale:Ie,isElement:te,isRTL:Vc};function Yr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uc(e,t){let n=null,r;const o=ce(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:p,top:f,width:m,height:g}=d;if(c||t(),!m||!g)return;const x=ot(f),h=ot(o.clientWidth-(p+m)),v=ot(o.clientHeight-(f+g)),y=ot(p),C={rootMargin:-x+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Y(0,we(1,u))||1};let S=!0;function w(N){const E=N[0].intersectionRatio;if(E!==u){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Yr(d,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(w,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,C)}n.observe(e)}return i(!0),s}function zc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=gn(e),p=o||s?[...d?Ge(d):[],...Ge(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=d&&c?Uc(d,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),d&&!u&&g.observe(d),g.observe(t));let x,h=u?Ne(e):null;u&&v();function v(){const y=Ne(e);h&&!Yr(h,y)&&n(),h=y,x=requestAnimationFrame(v)}return n(),()=>{var y;p.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(x)}}const Gc=gc,Kc=xc,Yc=pc,Xc=yc,qc=mc,rr=fc,Zc=vc,Jc=(e,t,n)=>{const r=new Map,o={platform:Hc,...n},s={...o.platform,_c:r};return dc(e,t,{...o,platform:s})};var Qc=typeof document<"u",el=function(){},lt=Qc?a.useLayoutEffect:el;function vt(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(!vt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!vt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Xr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function or(e,t){const n=Xr(e);return Math.round(t*n)/n}function Bt(e){const t=a.useRef(e);return lt(()=>{t.current=e}),t}function tl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[p,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=a.useState(r);vt(m,r)||g(r);const[x,h]=a.useState(null),[v,y]=a.useState(null),b=a.useCallback(P=>{P!==N.current&&(N.current=P,h(P))},[]),C=a.useCallback(P=>{P!==E.current&&(E.current=P,y(P))},[]),S=s||x,w=i||v,N=a.useRef(null),E=a.useRef(null),j=a.useRef(p),O=u!=null,A=Bt(u),T=Bt(o),$=Bt(d),D=a.useCallback(()=>{if(!N.current||!E.current)return;const P={placement:t,strategy:n,middleware:m};T.current&&(P.platform=T.current),Jc(N.current,E.current,P).then(R=>{const L={...R,isPositioned:$.current!==!1};I.current&&!vt(j.current,L)&&(j.current=L,Ct.flushSync(()=>{f(L)}))})},[m,t,n,T,$]);lt(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[d]);const I=a.useRef(!1);lt(()=>(I.current=!0,()=>{I.current=!1}),[]),lt(()=>{if(S&&(N.current=S),w&&(E.current=w),S&&w){if(A.current)return A.current(S,w,D);D()}},[S,w,D,A,O]);const W=a.useMemo(()=>({reference:N,floating:E,setReference:b,setFloating:C}),[b,C]),k=a.useMemo(()=>({reference:S,floating:w}),[S,w]),F=a.useMemo(()=>{const P={position:n,left:0,top:0};if(!k.floating)return P;const R=or(k.floating,p.x),L=or(k.floating,p.y);return c?{...P,transform:"translate("+R+"px, "+L+"px)",...Xr(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,c,k.floating,p.x,p.y]);return a.useMemo(()=>({...p,update:D,refs:W,elements:k,floatingStyles:F}),[p,D,W,k,F])}const nl=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?rr({element:r.current,padding:o}).fn(n):{}:r?rr({element:r,padding:o}).fn(n):{}}}},rl=(e,t)=>({...Gc(e),options:[e,t]}),ol=(e,t)=>({...Kc(e),options:[e,t]}),sl=(e,t)=>({...Zc(e),options:[e,t]}),il=(e,t)=>({...Yc(e),options:[e,t]}),al=(e,t)=>({...Xc(e),options:[e,t]}),cl=(e,t)=>({...qc(e),options:[e,t]}),ll=(e,t)=>({...nl(e),options:[e,t]});function ul(e){const t=dl(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(pl);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function dl(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=hl(o),c=ml(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fl=Symbol("radix.slottable");function pl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fl}function ml(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function hl(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 gl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xl=gl.reduce((e,t)=>{const n=ul(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vl="Arrow",qr=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(xl.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});qr.displayName=vl;var yl=qr;function wl(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,bl(o,...t)]}function bl(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Cl(e){const t=Sl(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Nl);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Sl(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=jl(o),c=Rl(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var El=Symbol("radix.slottable");function Nl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===El}function Rl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function jl(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 Pl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zr=Pl.reduce((e,t)=>{const n=Cl(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xn="Popper",[Jr,_t]=wl(xn),[_l,Qr]=Jr(xn),eo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return l.jsx(_l,{scope:t,anchor:r,onAnchorChange:o,children:n})};eo.displayName=xn;var to="PopperAnchor",no=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Qr(to,n),i=a.useRef(null),c=z(t,i),u=a.useRef(null);return a.useEffect(()=>{const d=u.current;u.current=(r==null?void 0:r.current)||i.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:l.jsx(Zr.div,{...o,ref:c})});no.displayName=to;var vn="PopperContent",[Ml,Al]=Jr(vn),ro=a.forwardRef((e,t)=>{var Z,he,M,K,ge,je;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:x,...h}=e,v=Qr(vn,n),[y,b]=a.useState(null),C=z(t,xe=>b(xe)),[S,w]=a.useState(null),N=Ys(S),E=(N==null?void 0:N.width)??0,j=(N==null?void 0:N.height)??0,O=r+(s!=="center"?"-"+s:""),A=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(d)?d:[d],$=T.length>0,D={padding:A,boundary:T.filter(Ol),altBoundary:$},{refs:I,floatingStyles:W,placement:k,isPositioned:F,middlewareData:P}=tl({strategy:"fixed",placement:O,whileElementsMounted:(...xe)=>zc(...xe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[rl({mainAxis:o+j,alignmentAxis:i}),u&&ol({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?sl():void 0,...D}),u&&il({...D}),al({...D,apply:({elements:xe,rects:kn,availableWidth:Bs,availableHeight:Vs})=>{const{width:Hs,height:Us}=kn.reference,rt=xe.floating.style;rt.setProperty("--radix-popper-available-width",`${Bs}px`),rt.setProperty("--radix-popper-available-height",`${Vs}px`),rt.setProperty("--radix-popper-anchor-width",`${Hs}px`),rt.setProperty("--radix-popper-anchor-height",`${Us}px`)}}),S&&ll({element:S,padding:c}),Tl({arrowWidth:E,arrowHeight:j}),m&&cl({strategy:"referenceHidden",...D})]}),[R,L]=io(k),H=ee(x);Ee(()=>{F&&(H==null||H())},[F,H]);const G=(Z=P.arrow)==null?void 0:Z.x,pe=(he=P.arrow)==null?void 0:he.y,me=((M=P.arrow)==null?void 0:M.centerOffset)!==0,[Se,re]=a.useState();return Ee(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:F?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(K=P.transformOrigin)==null?void 0:K.x,(ge=P.transformOrigin)==null?void 0:ge.y].join(" "),...((je=P.hide)==null?void 0:je.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Ml,{scope:n,placedSide:R,onArrowChange:w,arrowX:G,arrowY:pe,shouldHideArrow:me,children:l.jsx(Zr.div,{"data-side":R,"data-align":L,...h,ref:C,style:{...h.style,animation:F?void 0:"none"}})})})});ro.displayName=vn;var oo="PopperArrow",kl={top:"bottom",right:"left",bottom:"top",left:"right"},so=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Al(oo,r),i=kl[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(yl,{...o,ref:n,style:{...o.style,display:"block"}})})});so.displayName=oo;function Ol(e){return e!==null}var Tl=e=>({name:"transformOrigin",options:e,fn(t){var v,y,b;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[d,p]=io(n),f={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,g=(((b=o.arrow)==null?void 0:b.y)??0)+u/2;let x="",h="";return d==="bottom"?(x=i?f:`${m}px`,h=`${-u}px`):d==="top"?(x=i?f:`${m}px`,h=`${r.floating.height+u}px`):d==="right"?(x=`${-u}px`,h=i?f:`${g}px`):d==="left"&&(x=`${r.floating.width+u}px`,h=i?f:`${g}px`),{data:{x,y:h}}}});function io(e){const[t,n="center"]=e.split("-");return[t,n]}var yn=eo,ao=no,co=ro,lo=so;function Il(e){const t=$l(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Ll);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $l(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Wl(o),c=Fl(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dl=Symbol("radix.slottable");function Ll(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dl}function Fl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wl(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 Bl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vl=Bl.reduce((e,t)=>{const n=Il(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Hl="Portal",wn=a.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=a.useState(!1);Ee(()=>s(!0),[]);const i=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?Ks.createPortal(l.jsx(Vl.div,{...r,ref:t}),i):null});wn.displayName=Hl;function uo(e){const t=Ul(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Gl);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ul(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Yl(o),c=Kl(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zl=Symbol("radix.slottable");function Gl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zl}function Kl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Yl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=Xl.reduce((e,t)=>{const n=uo(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ql(e,t){e&&Ct.flushSync(()=>e.dispatchEvent(t))}function Zl(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,Jl(o,...t)]}function Jl(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ql(e){const t=eu(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(nu);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function eu(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=ou(o),c=ru(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tu=Symbol("radix.slottable");function nu(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tu}function ru(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ou(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 su=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fo=su.reduce((e,t)=>{const n=Ql(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Vt="rovingFocusGroup.onEntryFocus",iu={bubbles:!1,cancelable:!0},Je="RovingFocusGroup",[Qt,po,au]=kr(Je),[cu,mo]=Zl(Je,[au]),[lu,uu]=cu(Je),ho=a.forwardRef((e,t)=>l.jsx(Qt.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Qt.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(du,{...e,ref:t})})}));ho.displayName=Je;var du=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...f}=e,m=a.useRef(null),g=z(t,m),x=Or(s),[h,v]=St({prop:i,defaultProp:c??null,onChange:u,caller:Je}),[y,b]=a.useState(!1),C=ee(d),S=po(n),w=a.useRef(!1),[N,E]=a.useState(0);return a.useEffect(()=>{const j=m.current;if(j)return j.addEventListener(Vt,C),()=>j.removeEventListener(Vt,C)},[C]),l.jsx(lu,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:h,onItemFocus:a.useCallback(j=>v(j),[v]),onItemShiftTab:a.useCallback(()=>b(!0),[]),onFocusableItemAdd:a.useCallback(()=>E(j=>j+1),[]),onFocusableItemRemove:a.useCallback(()=>E(j=>j-1),[]),children:l.jsx(fo.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:_(e.onMouseDown,()=>{w.current=!0}),onFocus:_(e.onFocus,j=>{const O=!w.current;if(j.target===j.currentTarget&&O&&!y){const A=new CustomEvent(Vt,iu);if(j.currentTarget.dispatchEvent(A),!A.defaultPrevented){const T=S().filter(k=>k.focusable),$=T.find(k=>k.active),D=T.find(k=>k.id===h),W=[$,D,...T].filter(Boolean).map(k=>k.ref.current);vo(W,p)}}w.current=!1}),onBlur:_(e.onBlur,()=>b(!1))})})}),go="RovingFocusGroupItem",xo=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...c}=e,u=De(),d=s||u,p=uu(go,n),f=p.currentTabStopId===d,m=po(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:h}=p;return a.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),l.jsx(Qt.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:l.jsx(fo.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:_(e.onMouseDown,v=>{r?p.onItemFocus(d):v.preventDefault()}),onFocus:_(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:_(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){p.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=mu(v,p.orientation,p.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let C=m().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const S=C.indexOf(v.currentTarget);C=p.loop?hu(C,S+1):C.slice(S+1)}setTimeout(()=>vo(C))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:h!=null}):i})})});xo.displayName=go;var fu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mu(e,t,n){const r=pu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fu[r]}function vo(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function hu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gu=ho,xu=xo,vu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pe=new WeakMap,st=new WeakMap,it={},Ht=0,yo=function(e){return e&&(e.host||yo(e.parentNode))},yu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=yo(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})},wu=function(e,t,n,r){var o=yu(t,Array.isArray(e)?e:[e]);it[n]||(it[n]=new WeakMap);var s=it[n],i=[],c=new Set,u=new Set(o),d=function(f){!f||c.has(f)||(c.add(f),d(f.parentNode))};o.forEach(d);var p=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(c.has(m))p(m);else try{var g=m.getAttribute(r),x=g!==null&&g!=="false",h=(Pe.get(m)||0)+1,v=(s.get(m)||0)+1;Pe.set(m,h),s.set(m,v),i.push(m),h===1&&x&&st.set(m,!0),v===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),c.clear(),Ht++,function(){i.forEach(function(f){var m=Pe.get(f)-1,g=s.get(f)-1;Pe.set(f,m),s.set(f,g),m||(st.has(f)||f.removeAttribute(r),st.delete(f)),g||f.removeAttribute(n)}),Ht--,Ht||(Pe=new WeakMap,Pe=new WeakMap,st=new WeakMap,it={})}},bu=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=vu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),wu(r,o,n,"aria-hidden")):function(){return null}},oe=function(){return oe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},oe.apply(this,arguments)};function wo(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 Cu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ut="right-scroll-bar-position",dt="width-before-scroll-bar",Su="with-scroll-bars-hidden",Eu="--removed-body-scroll-bar-size";function Ut(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nu(e,t){var n=a.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 Ru=typeof window<"u"?a.useLayoutEffect:a.useEffect,sr=new WeakMap;function ju(e,t){var n=Nu(null,function(r){return e.forEach(function(o){return Ut(o,r)})});return Ru(function(){var r=sr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(c){s.has(c)||Ut(c,null)}),s.forEach(function(c){o.has(c)||Ut(c,i)})}sr.set(n,e)},[e]),n}function Pu(e){return e}function _u(e,t){t===void 0&&(t=Pu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(s),i=n}var u=function(){var p=i;i=[],p.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(p){i.push(p),d()},filter:function(p){return i=i.filter(p),n}}}};return o}function Mu(e){e===void 0&&(e={});var t=_u(null);return t.options=oe({async:!0,ssr:!1},e),t}var bo=function(e){var t=e.sideCar,n=wo(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 a.createElement(r,oe({},n))};bo.isSideCarExport=!0;function Au(e,t){return e.useMedium(t),bo}var Co=Mu(),zt=function(){},Mt=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:zt,onWheelCapture:zt,onTouchMoveCapture:zt}),o=r[0],s=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,g=e.noRelative,x=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,C=e.gapMode,S=wo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=m,N=ju([n,t]),E=oe(oe({},S),o);return a.createElement(a.Fragment,null,p&&a.createElement(w,{sideCar:Co,removeScrollBar:d,shards:f,noRelative:g,noIsolation:x,inert:h,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:C}),i?a.cloneElement(a.Children.only(c),oe(oe({},E),{ref:N})):a.createElement(b,oe({},E,{className:u,ref:N}),c))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mt.classNames={fullWidth:dt,zeroRight:ut};var ku=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ou(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ku();return t&&e.setAttribute("nonce",t),e}function Tu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $u=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ou())&&(Tu(t,n),Iu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Du=function(){var e=$u();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},So=function(){var e=Du(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Lu={left:0,top:0,right:0,gap:0},Gt=function(e){return parseInt(e||"",10)||0},Fu=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[Gt(n),Gt(r),Gt(o)]},Wu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Lu;var t=Fu(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])}},Bu=So(),$e="data-scroll-locked",Vu=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(Su,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(c,"px ").concat(r,`;
  }
  body[`).concat($e,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(c,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ut,` {
    right: `).concat(c,"px ").concat(r,`;
  }
  
  .`).concat(dt,` {
    margin-right: `).concat(c,"px ").concat(r,`;
  }
  
  .`).concat(ut," .").concat(ut,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(dt," .").concat(dt,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat($e,`] {
    `).concat(Eu,": ").concat(c,`px;
  }
`)},ir=function(){var e=parseInt(document.body.getAttribute($e)||"0",10);return isFinite(e)?e:0},Hu=function(){a.useEffect(function(){return document.body.setAttribute($e,(ir()+1).toString()),function(){var e=ir()-1;e<=0?document.body.removeAttribute($e):document.body.setAttribute($e,e.toString())}},[])},Uu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Hu();var s=a.useMemo(function(){return Wu(o)},[o]);return a.createElement(Bu,{styles:Vu(s,!t,o,n?"":"!important")})},en=!1;if(typeof window<"u")try{var at=Object.defineProperty({},"passive",{get:function(){return en=!0,!0}});window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch{en=!1}var _e=en?{passive:!1}:!1,zu=function(e){return e.tagName==="TEXTAREA"},Eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zu(e)&&n[t]==="visible")},Gu=function(e){return Eo(e,"overflowY")},Ku=function(e){return Eo(e,"overflowX")},ar=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=No(e,r);if(o){var s=Ro(e,r),i=s[1],c=s[2];if(i>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Yu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Xu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},No=function(e,t){return e==="v"?Gu(t):Ku(t)},Ro=function(e,t){return e==="v"?Yu(t):Xu(t)},qu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zu=function(e,t,n,r,o){var s=qu(e,window.getComputedStyle(t).direction),i=s*r,c=n.target,u=t.contains(c),d=!1,p=i>0,f=0,m=0;do{if(!c)break;var g=Ro(e,c),x=g[0],h=g[1],v=g[2],y=h-v-s*x;(x||y)&&No(e,c)&&(f+=y,m+=x);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&Math.abs(f)<1||!p&&Math.abs(m)<1)&&(d=!0),d},ct=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cr=function(e){return[e.deltaX,e.deltaY]},lr=function(e){return e&&"current"in e?e.current:e},Ju=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Qu=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},ed=0,Me=[];function td(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(ed++)[0],s=a.useState(So)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Cu([e.lockRef.current],(e.shards||[]).map(lr),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=ct(h),b=n.current,C="deltaX"in h?h.deltaX:b[0]-y[0],S="deltaY"in h?h.deltaY:b[1]-y[1],w,N=h.target,E=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in h&&E==="h"&&N.type==="range")return!1;var j=window.getSelection(),O=j&&j.anchorNode,A=O?O===N||O.contains(N):!1;if(A)return!1;var T=ar(E,N);if(!T)return!0;if(T?w=E:(w=E==="v"?"h":"v",T=ar(E,N)),!T)return!1;if(!r.current&&"changedTouches"in h&&(C||S)&&(r.current=w),!w)return!0;var $=r.current||w;return Zu($,v,h,$==="h"?C:S)},[]),u=a.useCallback(function(h){var v=h;if(!(!Me.length||Me[Me.length-1]!==s)){var y="deltaY"in v?cr(v):ct(v),b=t.current.filter(function(w){return w.name===v.type&&(w.target===v.target||v.target===w.shadowParent)&&Ju(w.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var C=(i.current.shards||[]).map(lr).filter(Boolean).filter(function(w){return w.contains(v.target)}),S=C.length>0?c(v,C[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=a.useCallback(function(h,v,y,b){var C={name:h,delta:v,target:y,should:b,shadowParent:nd(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),p=a.useCallback(function(h){n.current=ct(h),r.current=void 0},[]),f=a.useCallback(function(h){d(h.type,cr(h),h.target,c(h,e.lockRef.current))},[]),m=a.useCallback(function(h){d(h.type,ct(h),h.target,c(h,e.lockRef.current))},[]);a.useEffect(function(){return Me.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",u,_e),document.addEventListener("touchmove",u,_e),document.addEventListener("touchstart",p,_e),function(){Me=Me.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,_e),document.removeEventListener("touchmove",u,_e),document.removeEventListener("touchstart",p,_e)}},[]);var g=e.removeScrollBar,x=e.inert;return a.createElement(a.Fragment,null,x?a.createElement(s,{styles:Qu(o)}):null,g?a.createElement(Uu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rd=Au(Co,td);var jo=a.forwardRef(function(e,t){return a.createElement(Mt,oe({},e,{ref:t,sideCar:rd}))});jo.classNames=Mt.classNames;var tn=["Enter"," "],od=["ArrowDown","PageUp","Home"],Po=["ArrowUp","PageDown","End"],sd=[...od,...Po],id={ltr:[...tn,"ArrowRight"],rtl:[...tn,"ArrowLeft"]},ad={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Qe="Menu",[Ke,cd,ld]=kr(Qe),[Re,_o]=xa(Qe,[ld,_t,mo]),et=_t(),Mo=mo(),[Ao,Ce]=Re(Qe),[ud,tt]=Re(Qe),ko=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,c=et(t),[u,d]=a.useState(null),p=a.useRef(!1),f=ee(s),m=Or(o);return a.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),l.jsx(yn,{...c,children:l.jsx(Ao,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:l.jsx(ud,{scope:t,onClose:a.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:m,modal:i,children:r})})})};ko.displayName=Qe;var dd="MenuAnchor",bn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=et(n);return l.jsx(ao,{...o,...r,ref:t})});bn.displayName=dd;var Cn="MenuPortal",[fd,Oo]=Re(Cn,{forceMount:void 0}),To=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Ce(Cn,t);return l.jsx(fd,{scope:t,forceMount:n,children:l.jsx(We,{present:n||s.open,children:l.jsx(wn,{asChild:!0,container:o,children:r})})})};To.displayName=Cn;var Q="MenuContent",[pd,Sn]=Re(Q),Io=a.forwardRef((e,t)=>{const n=Oo(Q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ce(Q,e.__scopeMenu),i=tt(Q,e.__scopeMenu);return l.jsx(Ke.Provider,{scope:e.__scopeMenu,children:l.jsx(We,{present:r||s.open,children:l.jsx(Ke.Slot,{scope:e.__scopeMenu,children:i.modal?l.jsx(md,{...o,ref:t}):l.jsx(hd,{...o,ref:t})})})})}),md=a.forwardRef((e,t)=>{const n=Ce(Q,e.__scopeMenu),r=a.useRef(null),o=z(t,r);return a.useEffect(()=>{const s=r.current;if(s)return bu(s)},[]),l.jsx(En,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),hd=a.forwardRef((e,t)=>{const n=Ce(Q,e.__scopeMenu);return l.jsx(En,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),gd=uo("MenuContent.ScrollLock"),En=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:x,...h}=e,v=Ce(Q,n),y=tt(Q,n),b=et(n),C=Mo(n),S=cd(n),[w,N]=a.useState(null),E=a.useRef(null),j=z(t,E,v.onContentChange),O=a.useRef(0),A=a.useRef(""),T=a.useRef(0),$=a.useRef(null),D=a.useRef("right"),I=a.useRef(0),W=x?jo:a.Fragment,k=x?{as:gd,allowPinchZoom:!0}:void 0,F=R=>{var Z,he;const L=A.current+R,H=S().filter(M=>!M.disabled),G=document.activeElement,pe=(Z=H.find(M=>M.ref.current===G))==null?void 0:Z.textValue,me=H.map(M=>M.textValue),Se=Pd(me,L,pe),re=(he=H.find(M=>M.textValue===Se))==null?void 0:he.ref.current;(function M(K){A.current=K,window.clearTimeout(O.current),K!==""&&(O.current=window.setTimeout(()=>M(""),1e3))})(L),re&&setTimeout(()=>re.focus())};a.useEffect(()=>()=>window.clearTimeout(O.current),[]),$a();const P=a.useCallback(R=>{var H,G;return D.current===((H=$.current)==null?void 0:H.side)&&Md(R,(G=$.current)==null?void 0:G.area)},[]);return l.jsx(pd,{scope:n,searchRef:A,onItemEnter:a.useCallback(R=>{P(R)&&R.preventDefault()},[P]),onItemLeave:a.useCallback(R=>{var L;P(R)||((L=E.current)==null||L.focus(),N(null))},[P]),onTriggerLeave:a.useCallback(R=>{P(R)&&R.preventDefault()},[P]),pointerGraceTimerRef:T,onPointerGraceIntentChange:a.useCallback(R=>{$.current=R},[]),children:l.jsx(W,{...k,children:l.jsx(Dr,{asChild:!0,trapped:o,onMountAutoFocus:_(s,R=>{var L;R.preventDefault(),(L=E.current)==null||L.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:l.jsx(un,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,onDismiss:g,children:l.jsx(gu,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:N,onEntryFocus:_(u,R=>{y.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(co,{role:"menu","aria-orientation":"vertical","data-state":Jo(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...h,ref:j,style:{outline:"none",...h.style},onKeyDown:_(h.onKeyDown,R=>{const H=R.target.closest("[data-radix-menu-content]")===R.currentTarget,G=R.ctrlKey||R.altKey||R.metaKey,pe=R.key.length===1;H&&(R.key==="Tab"&&R.preventDefault(),!G&&pe&&F(R.key));const me=E.current;if(R.target!==me||!sd.includes(R.key))return;R.preventDefault();const re=S().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);Po.includes(R.key)&&re.reverse(),Rd(re)}),onBlur:_(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(O.current),A.current="")}),onPointerMove:_(e.onPointerMove,Ye(R=>{const L=R.target,H=I.current!==R.clientX;if(R.currentTarget.contains(L)&&H){const G=R.clientX>I.current?"right":"left";D.current=G,I.current=R.clientX}}))})})})})})})});Io.displayName=Q;var xd="MenuGroup",Nn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(Ze.div,{role:"group",...r,ref:t})});Nn.displayName=xd;var vd="MenuLabel",$o=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(Ze.div,{...r,ref:t})});$o.displayName=vd;var yt="MenuItem",ur="menu.itemSelect",At=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=a.useRef(null),i=tt(yt,e.__scopeMenu),c=Sn(yt,e.__scopeMenu),u=z(t,s),d=a.useRef(!1),p=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(ur,{bubbles:!0,cancelable:!0});f.addEventListener(ur,g=>r==null?void 0:r(g),{once:!0}),ql(f,m),m.defaultPrevented?d.current=!1:i.onClose()}};return l.jsx(Do,{...o,ref:u,disabled:n,onClick:_(e.onClick,p),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),d.current=!0},onPointerUp:_(e.onPointerUp,f=>{var m;d.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:_(e.onKeyDown,f=>{const m=c.searchRef.current!=="";n||m&&f.key===" "||tn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});At.displayName=yt;var Do=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=Sn(yt,n),c=Mo(n),u=a.useRef(null),d=z(t,u),[p,f]=a.useState(!1),[m,g]=a.useState("");return a.useEffect(()=>{const x=u.current;x&&g((x.textContent??"").trim())},[s.children]),l.jsx(Ke.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:l.jsx(xu,{asChild:!0,...c,focusable:!r,children:l.jsx(Ze.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:_(e.onPointerMove,Ye(x=>{r?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:_(e.onPointerLeave,Ye(x=>i.onItemLeave(x))),onFocus:_(e.onFocus,()=>f(!0)),onBlur:_(e.onBlur,()=>f(!1))})})})}),yd="MenuCheckboxItem",Lo=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(Ho,{scope:e.__scopeMenu,checked:n,children:l.jsx(At,{role:"menuitemcheckbox","aria-checked":wt(n)?"mixed":n,...o,ref:t,"data-state":Pn(n),onSelect:_(o.onSelect,()=>r==null?void 0:r(wt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Lo.displayName=yd;var Fo="MenuRadioGroup",[wd,bd]=Re(Fo,{value:void 0,onValueChange:()=>{}}),Wo=a.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ee(r);return l.jsx(wd,{scope:e.__scopeMenu,value:n,onValueChange:s,children:l.jsx(Nn,{...o,ref:t})})});Wo.displayName=Fo;var Bo="MenuRadioItem",Vo=a.forwardRef((e,t)=>{const{value:n,...r}=e,o=bd(Bo,e.__scopeMenu),s=n===o.value;return l.jsx(Ho,{scope:e.__scopeMenu,checked:s,children:l.jsx(At,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Pn(s),onSelect:_(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Vo.displayName=Bo;var Rn="MenuItemIndicator",[Ho,Cd]=Re(Rn,{checked:!1}),Uo=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Cd(Rn,n);return l.jsx(We,{present:r||wt(s.checked)||s.checked===!0,children:l.jsx(Ze.span,{...o,ref:t,"data-state":Pn(s.checked)})})});Uo.displayName=Rn;var Sd="MenuSeparator",zo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(Ze.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zo.displayName=Sd;var Ed="MenuArrow",Go=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=et(n);return l.jsx(lo,{...o,...r,ref:t})});Go.displayName=Ed;var jn="MenuSub",[Nd,Ko]=Re(jn),Yo=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=Ce(jn,t),i=et(t),[c,u]=a.useState(null),[d,p]=a.useState(null),f=ee(o);return a.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),l.jsx(yn,{...i,children:l.jsx(Ao,{scope:t,open:r,onOpenChange:f,content:d,onContentChange:p,children:l.jsx(Nd,{scope:t,contentId:De(),triggerId:De(),trigger:c,onTriggerChange:u,children:n})})})};Yo.displayName=jn;var He="MenuSubTrigger",Xo=a.forwardRef((e,t)=>{const n=Ce(He,e.__scopeMenu),r=tt(He,e.__scopeMenu),o=Ko(He,e.__scopeMenu),s=Sn(He,e.__scopeMenu),i=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},p=a.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return a.useEffect(()=>p,[p]),a.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),u(null)}},[c,u]),l.jsx(bn,{asChild:!0,...d,children:l.jsx(Do,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Jo(n.open),...e,ref:q(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_(e.onPointerMove,Ye(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:_(e.onPointerLeave,Ye(f=>{var g,x;p();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(x=n.content)==null?void 0:x.dataset.side,v=h==="right",y=v?-5:5,b=m[v?"left":"right"],C=m[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:b,y:m.top},{x:C,y:m.top},{x:C,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:_(e.onKeyDown,f=>{var g;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||id[r.dir].includes(f.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),f.preventDefault())})})})});Xo.displayName=He;var qo="MenuSubContent",Zo=a.forwardRef((e,t)=>{const n=Oo(Q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ce(Q,e.__scopeMenu),i=tt(Q,e.__scopeMenu),c=Ko(qo,e.__scopeMenu),u=a.useRef(null),d=z(t,u);return l.jsx(Ke.Provider,{scope:e.__scopeMenu,children:l.jsx(We,{present:r||s.open,children:l.jsx(Ke.Slot,{scope:e.__scopeMenu,children:l.jsx(En,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:d,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var f;i.isUsingKeyboardRef.current&&((f=u.current)==null||f.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:_(e.onFocusOutside,p=>{p.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:_(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:_(e.onKeyDown,p=>{var g;const f=p.currentTarget.contains(p.target),m=ad[i.dir].includes(p.key);f&&m&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),p.preventDefault())})})})})})});Zo.displayName=qo;function Jo(e){return e?"open":"closed"}function wt(e){return e==="indeterminate"}function Pn(e){return wt(e)?"indeterminate":e?"checked":"unchecked"}function Rd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function jd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Pd(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=jd(e,Math.max(s,0));o.length===1&&(i=i.filter(d=>d!==n));const u=i.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function _d(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s],u=t[i],d=c.x,p=c.y,f=u.x,m=u.y;p>r!=m>r&&n<(f-d)*(r-p)/(m-p)+d&&(o=!o)}return o}function Md(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return _d(n,t)}function Ye(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ad=ko,kd=bn,Od=To,Td=Io,Id=Nn,$d=$o,Dd=At,Ld=Lo,Fd=Wo,Wd=Vo,Bd=Uo,Vd=zo,Hd=Go,Ud=Yo,zd=Xo,Gd=Zo,kt="DropdownMenu",[Kd]=ea(kt,[_o]),U=_o(),[Yd,Qo]=Kd(kt),es=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:c=!0}=e,u=U(t),d=a.useRef(null),[p,f]=St({prop:o,defaultProp:s??!1,onChange:i,caller:kt});return l.jsx(Yd,{scope:t,triggerId:De(),triggerRef:d,contentId:De(),open:p,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(m=>!m),[f]),modal:c,children:l.jsx(Ad,{...u,open:p,onOpenChange:f,dir:r,modal:c,children:n})})};es.displayName=kt;var ts="DropdownMenuTrigger",ns=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Qo(ts,n),i=U(n);return l.jsx(kd,{asChild:!0,...i,children:l.jsx(la.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:q(t,s.triggerRef),onPointerDown:_(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:_(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});ns.displayName=ts;var Xd="DropdownMenuPortal",rs=e=>{const{__scopeDropdownMenu:t,...n}=e,r=U(t);return l.jsx(Od,{...r,...n})};rs.displayName=Xd;var os="DropdownMenuContent",ss=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qo(os,n),s=U(n),i=a.useRef(!1);return l.jsx(Td,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:_(e.onCloseAutoFocus,c=>{var u;i.current||(u=o.triggerRef.current)==null||u.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:_(e.onInteractOutside,c=>{const u=c.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,p=u.button===2||d;(!o.modal||p)&&(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)"}})});ss.displayName=os;var qd="DropdownMenuGroup",Zd=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Id,{...o,...r,ref:t})});Zd.displayName=qd;var Jd="DropdownMenuLabel",is=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx($d,{...o,...r,ref:t})});is.displayName=Jd;var Qd="DropdownMenuItem",as=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Dd,{...o,...r,ref:t})});as.displayName=Qd;var ef="DropdownMenuCheckboxItem",cs=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Ld,{...o,...r,ref:t})});cs.displayName=ef;var tf="DropdownMenuRadioGroup",nf=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Fd,{...o,...r,ref:t})});nf.displayName=tf;var rf="DropdownMenuRadioItem",ls=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Wd,{...o,...r,ref:t})});ls.displayName=rf;var of="DropdownMenuItemIndicator",us=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Bd,{...o,...r,ref:t})});us.displayName=of;var sf="DropdownMenuSeparator",ds=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Vd,{...o,...r,ref:t})});ds.displayName=sf;var af="DropdownMenuArrow",cf=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Hd,{...o,...r,ref:t})});cf.displayName=af;var lf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,i=U(t),[c,u]=St({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return l.jsx(Ud,{...i,open:c,onOpenChange:u,children:n})},uf="DropdownMenuSubTrigger",fs=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(zd,{...o,...r,ref:t})});fs.displayName=uf;var df="DropdownMenuSubContent",ps=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=U(n);return l.jsx(Gd,{...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)"}})});ps.displayName=df;var ff=es,pf=ns,mf=rs,ms=ss,hf=is,hs=as,gs=cs,xs=ls,vs=us,ys=ds,gf=lf,ws=fs,bs=ps;const ft=ff,pt=pf,xf=gf,Cs=a.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(ws,{ref:o,className:B("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,l.jsx(mr,{className:"ml-auto h-4 w-4"})]}));Cs.displayName=ws.displayName;const Ss=a.forwardRef(({className:e,...t},n)=>l.jsx(bs,{ref:n,className:B("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-white p-1 text-gray-800 shadow-lg","dark:border-gray-700 dark:bg-zinc-900 dark:text-gray-200","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",e),...t}));Ss.displayName=bs.displayName;const Ue=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(mf,{children:l.jsx(ms,{ref:r,sideOffset:t,className:B("z-50 min-w-[8rem] overflow-hidden rounded-xl border border-gray-200 bg-white p-1 text-gray-800 shadow-md","dark:border-gray-700 dark:bg-zinc-900 dark:text-gray-200","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",e),...n})}));Ue.displayName=ms.displayName;const ue=a.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(hs,{ref:r,className:B("relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm transition-colors outline-none","focus:bg-gray-100 text-gray-700","dark:text-gray-200 dark:focus:bg-zinc-800","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));ue.displayName=hs.displayName;const vf=a.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(gs,{ref:o,className:B("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(vs,{children:l.jsx(Qs,{className:"h-4 w-4"})})}),t]}));vf.displayName=gs.displayName;const yf=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(xs,{ref:r,className:B("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(vs,{children:l.jsx(yi,{className:"h-4 w-4 fill-current"})})}),t]}));yf.displayName=xs.displayName;const nn=a.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(hf,{ref:r,className:B("px-2 py-1.5 text-sm font-medium text-gray-500","dark:text-gray-400",t&&"pl-8",e),...n}));nn.displayName="DropdownMenuLabel";const _n=a.forwardRef(({className:e,...t},n)=>l.jsx(ys,{ref:n,className:B("-mx-1 my-1 h-px bg-gray-200 dark:bg-gray-700",e),...t}));_n.displayName=ys.displayName;function wf(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=f=>{var y;const{scope:m,children:g,...x}=f,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:g})};d.displayName=s+"Provider";function p(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[u])||c,x=a.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,bf(o,...t)]}function bf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Cf(e){const t=Sf(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Nf);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Sf(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=jf(o),c=Rf(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Es=Symbol("radix.slottable");function Ef(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Es,t}function Nf(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Es}function Rf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function jf(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 Pf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_f=Pf.reduce((e,t)=>{const n=Cf(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mf(e){const t=Af(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Of);if(u){const d=u.props.children,p=c.map(f=>f===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Af(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=If(o),c=Tf(s,o.props);return o.type!==a.Fragment&&(c.ref=r?q(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kf=Symbol("radix.slottable");function Of(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kf}function Tf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function If(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 $f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Df=$f.reduce((e,t)=>{const n=Mf(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Lf=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"}),Ff="VisuallyHidden",Ns=a.forwardRef((e,t)=>l.jsx(Df.span,{...e,ref:t,style:{...Lf,...e.style}}));Ns.displayName=Ff;var Wf=Ns,[Ot]=wf("Tooltip",[_t]),Tt=_t(),Rs="TooltipProvider",Bf=700,rn="tooltip.open",[Vf,Mn]=Ot(Rs),js=e=>{const{__scopeTooltip:t,delayDuration:n=Bf,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=a.useRef(!0),c=a.useRef(!1),u=a.useRef(0);return a.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),l.jsx(Vf,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};js.displayName=Rs;var Xe="Tooltip",[Hf,nt]=Ot(Xe),Ps=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,u=Mn(Xe,e.__scopeTooltip),d=Tt(t),[p,f]=a.useState(null),m=De(),g=a.useRef(0),x=i??u.disableHoverableContent,h=c??u.delayDuration,v=a.useRef(!1),[y,b]=St({prop:r,defaultProp:o??!1,onChange:E=>{E?(u.onOpen(),document.dispatchEvent(new CustomEvent(rn))):u.onClose(),s==null||s(E)},caller:Xe}),C=a.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=a.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,b(!0)},[b]),w=a.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b(!1)},[b]),N=a.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,b(!0),g.current=0},h)},[h,b]);return a.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(yn,{...d,children:l.jsx(Hf,{scope:t,contentId:m,open:y,stateAttribute:C,trigger:p,onTriggerChange:f,onTriggerEnter:a.useCallback(()=>{u.isOpenDelayedRef.current?N():S()},[u.isOpenDelayedRef,N,S]),onTriggerLeave:a.useCallback(()=>{x?w():(window.clearTimeout(g.current),g.current=0)},[w,x]),onOpen:S,onClose:w,disableHoverableContent:x,children:n})})};Ps.displayName=Xe;var on="TooltipTrigger",_s=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nt(on,n),s=Mn(on,n),i=Tt(n),c=a.useRef(null),u=z(t,c,o.onTriggerChange),d=a.useRef(!1),p=a.useRef(!1),f=a.useCallback(()=>d.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.jsx(ao,{asChild:!0,...i,children:l.jsx(_f.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:_(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:_(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:_(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:_(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:_(e.onBlur,o.onClose),onClick:_(e.onClick,o.onClose)})})});_s.displayName=on;var An="TooltipPortal",[Uf,zf]=Ot(An,{forceMount:void 0}),Ms=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=nt(An,t);return l.jsx(Uf,{scope:t,forceMount:n,children:l.jsx(We,{present:n||s.open,children:l.jsx(wn,{asChild:!0,container:o,children:r})})})};Ms.displayName=An;var Fe="TooltipContent",As=a.forwardRef((e,t)=>{const n=zf(Fe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=nt(Fe,e.__scopeTooltip);return l.jsx(We,{present:r||i.open,children:i.disableHoverableContent?l.jsx(ks,{side:o,...s,ref:t}):l.jsx(Gf,{side:o,...s,ref:t})})}),Gf=a.forwardRef((e,t)=>{const n=nt(Fe,e.__scopeTooltip),r=Mn(Fe,e.__scopeTooltip),o=a.useRef(null),s=z(t,o),[i,c]=a.useState(null),{trigger:u,onClose:d}=n,p=o.current,{onPointerInTransitChange:f}=r,m=a.useCallback(()=>{c(null),f(!1)},[f]),g=a.useCallback((x,h)=>{const v=x.currentTarget,y={x:x.clientX,y:x.clientY},b=Zf(y,v.getBoundingClientRect()),C=Jf(y,b),S=Qf(h.getBoundingClientRect()),w=tp([...C,...S]);c(w),f(!0)},[f]);return a.useEffect(()=>()=>m(),[m]),a.useEffect(()=>{if(u&&p){const x=v=>g(v,p),h=v=>g(v,u);return u.addEventListener("pointerleave",x),p.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",h)}}},[u,p,g,m]),a.useEffect(()=>{if(i){const x=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},b=(u==null?void 0:u.contains(v))||(p==null?void 0:p.contains(v)),C=!ep(y,i);b?m():C&&(m(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,p,i,d,m]),l.jsx(ks,{...e,ref:s})}),[Kf,Yf]=Ot(Xe,{isInside:!1}),Xf=Ef("TooltipContent"),ks=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,u=nt(Fe,n),d=Tt(n),{onClose:p}=u;return a.useEffect(()=>(document.addEventListener(rn,p),()=>document.removeEventListener(rn,p)),[p]),a.useEffect(()=>{if(u.trigger){const f=m=>{const g=m.target;g!=null&&g.contains(u.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,p]),l.jsx(un,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:l.jsxs(co,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(Xf,{children:r}),l.jsx(Kf,{scope:n,isInside:!0,children:l.jsx(Wf,{id:u.contentId,role:"tooltip",children:o||r})})]})})});As.displayName=Fe;var Os="TooltipArrow",qf=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Tt(n);return Yf(Os,n).isInside?null:l.jsx(lo,{...o,...r,ref:t})});qf.displayName=Os;function Zf(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Jf(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 Qf(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 ep(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s],u=t[i],d=c.x,p=c.y,f=u.x,m=u.y;p>r!=m>r&&n<(f-d)*(r-p)/(m-p)+d&&(o=!o)}return o}function tp(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),np(t)}function np(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var rp=js,op=Ps,sp=_s,ip=Ms,Ts=As;function ap(...e){return Xs(qs(e))}const cp=rp,dr=op,fr=sp,sn=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(ip,{children:l.jsx(Ts,{ref:r,sideOffset:t,className:ap("z-[999999] overflow-hidden rounded-md bg-gray-900 dark:bg-white px-3 py-1.5 text-xs text-white dark:text-gray-900 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})}));sn.displayName=Ts.displayName;const Kt="sidebar_collapsed";function lp(){const[e,t]=a.useState(()=>{if(typeof window>"u")return!0;const r=localStorage.getItem(Kt);return r?JSON.parse(r):!0}),n=()=>{t(r=>{const o=!r;return localStorage.setItem(Kt,JSON.stringify(o)),o})};return a.useEffect(()=>{localStorage.setItem(Kt,JSON.stringify(e))},[e]),{isCollapsed:e,toggle:n}}function up({onMobileClose:e}){var S,w,N,E,j,O,A,T,$,D,I,W,k,F,P,R,L,H,G,pe,me,Se,re,Z,he;const{props:t}=an(),{auth:n,site_settings:r}=t,{isCollapsed:o,toggle:s}=lp(),i=cn(),[c,u]=a.useState(!1),[d,p]=a.useState(!1),[f,m]=a.useState(null),[g,x]=a.useState(!1);a.useEffect(()=>{const M=()=>{const K=window.innerWidth>=1280;window.innerWidth>=768&&window.innerWidth<1280&&!g?x(!0):K&&g&&x(!1)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[g]);const h=o||g,v=[{name:i("Dashboard"),routeName:"user.home",icon:fi},{name:i("Platform"),routeName:"user.platform.index",icon:oi},{name:i("Accounts"),routeName:"user.platform.account.index",icon:xi},{name:i("All Posts"),routeName:"user.posts.index",icon:hr},{name:i("Gallery"),routeName:"user.gallery.index",icon:gr},{name:i("Calendar"),routeName:"user.calender.index",icon:ui},{name:i("Campaign"),routeName:"user.campaign.index",icon:si},{name:i("Analytics"),routeName:"user.analytics.index",icon:mi},{name:i("Access Control"),routeName:"user.access-control.index",icon:ii},{name:i("Settings"),routeName:"user.setting.index",icon:Yt}],y=()=>{u(!0)},b=()=>{u(!1)},C=M=>{d||(p(!0),m(M),mt.post(J("user.workspace.switch"),{id:M},{onSuccess:()=>{p(!1),m(null)},onError:()=>{p(!1),m(null)}}))};return l.jsxs(l.Fragment,{children:[l.jsx(cp,{delayDuration:0,children:l.jsxs("aside",{className:`${h?"w-16":"w-64 sm:w-72"} bg-white h-screen flex flex-col dark:bg-zinc-900 transition-all duration-300 border-r border-gray-200 dark:border-zinc-800 relative z-[1]`,children:[l.jsx("div",{className:"absolute lg:-right-14 -right-8 top-4 z-[10000]",children:l.jsxs(dr,{children:[l.jsx(fr,{asChild:!0,children:l.jsx(ye,{variant:"ghost",size:"sm",onClick:s,className:"w-8 h-8 p-0 bg-white dark:bg-zinc-900 border border-gray-200 dark:border-zinc-800 rounded-full shadow-sm hover:bg-gray-50 dark:hover:bg-zinc-800 transition-colors",children:h?l.jsx(Ai,{className:"h-4 w-4 text-gray-600 dark:text-gray-400"}):l.jsx(_i,{className:"h-4 w-4 text-gray-600 dark:text-gray-400"})})}),l.jsx(sn,{side:"right",children:l.jsx("p",{children:i(h?"Expand sidebar":"Collapse sidebar")})})]})}),l.jsx("div",{className:`${h?"px-2 py-4":"px-6 py-4"} transition-all duration-300`,children:l.jsxs("div",{className:`${h?"justify-center":"flex items-center gap-3"} flex`,children:[l.jsx(Pr,{src:t.site_logo||(r==null?void 0:r.site_logo),siteName:(r==null?void 0:r.site_name)||t.site_name||"PostUno",size:h?32:36,variant:"gradient",showText:!h}),!h&&l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:(r==null?void 0:r.site_name)||t.site_name||"PostUno"}),l.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Social Media Manager"})]})]})}),l.jsx("nav",{className:`${h?"px-2":"px-6"} flex flex-col space-y-1 flex-1`,children:v.map(({name:M,routeName:K,icon:ge})=>{const je=J().current(K),xe=l.jsxs(Ae,{href:J(K),onClick:()=>e&&e(),className:`${h?"justify-center px-2 py-3":"justify-start px-3 py-2.5"} flex items-center ${h?"":"gap-3"} rounded-lg transition-all duration-200 ${je?"bg-gradient-to-r from-primary to-secondary text-white shadow-sm":"text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-zinc-800 hover:text-gray-900 dark:hover:text-white"}`,children:[l.jsx(ge,{className:`${h?"h-4 w-4":"h-5 w-5"} flex-shrink-0`}),!h&&l.jsx("span",{className:"font-medium text-sm",children:M})]},M);return h?l.jsxs(dr,{children:[l.jsx(fr,{asChild:!0,children:xe}),l.jsx(sn,{side:"right",className:"font-medium",children:l.jsx("p",{children:M})})]},M):xe})}),!h&&l.jsx("div",{className:"px-6 mb-4",children:l.jsx(Ar,{className:"bg-gray-200 dark:bg-zinc-700"})}),l.jsx("div",{className:`${h?"px-2":"px-6"} mt-auto mb-4`,children:l.jsxs(ft,{children:[l.jsx(pt,{asChild:!0,children:l.jsx(ye,{variant:"ghost",disabled:d,className:`${h?"w-12 h-12 p-0 justify-center":"w-full justify-start gap-3 px-3 py-2.5 h-auto"} text-white bg-gradient-to-br from-indigo-500 to-purple-600 hover:from-indigo-600 hover:to-purple-700 rounded-xl font-bold shadow-sm transition-all duration-200 ${d?"opacity-75":""}`,children:h?l.jsx("div",{className:"flex items-center justify-center",children:l.jsx("span",{className:"text-sm font-bold",children:((N=(w=(S=n==null?void 0:n.user)==null?void 0:S.current_workspace)==null?void 0:w.name)==null?void 0:N.split(" ").map(M=>M[0]).join("").toUpperCase())||"WS"})}):l.jsxs(l.Fragment,{children:[l.jsxs(ke,{className:"h-8 w-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600",children:[l.jsx(Oe,{src:((j=(E=n==null?void 0:n.user)==null?void 0:E.current_workspace)==null?void 0:j.logo)||null,alt:(A=(O=n==null?void 0:n.user)==null?void 0:O.current_workspace)==null?void 0:A.name}),l.jsx(Te,{className:"bg-gradient-to-br from-indigo-500 to-purple-600 text-white font-bold text-xs rounded-lg",children:((D=($=(T=n==null?void 0:n.user)==null?void 0:T.current_workspace)==null?void 0:$.name)==null?void 0:D.split(" ").map(M=>M[0]).join("").toUpperCase())||"WS"})]}),l.jsxs("div",{className:"flex-1 text-left",children:[l.jsx("div",{className:"text-sm font-semibold text-white",children:(W=(I=n==null?void 0:n.user)==null?void 0:I.current_workspace)==null?void 0:W.name}),l.jsx("div",{className:"text-xs text-indigo-200",children:i("Workspace")})]}),l.jsx(mr,{className:"h-4 w-4 text-indigo-200"})]})})}),l.jsxs(Ue,{side:"right",align:"end",className:"w-64 bg-white",children:[l.jsxs("div",{className:"flex items-center justify-between p-3",children:[l.jsxs("div",{className:"flex items-center space-x-3",children:[l.jsxs(ke,{className:"h-10 w-10 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600",children:[l.jsx(Oe,{src:((F=(k=n==null?void 0:n.user)==null?void 0:k.current_workspace)==null?void 0:F.logo)||null,alt:(R=(P=n==null?void 0:n.user)==null?void 0:P.current_workspace)==null?void 0:R.name}),l.jsx(Te,{className:"bg-gradient-to-br from-indigo-500 to-purple-600 text-white font-bold text-sm rounded-lg",children:l.jsxs("div",{className:"flex flex-col items-center justify-center",children:[l.jsx("svg",{className:"w-4 h-4 mb-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-4m-5 0H3m2 0h4M9 7h6m-6 4h6m-6 4h6"})}),l.jsx("span",{className:"text-[10px]",children:((G=(H=(L=n==null?void 0:n.user)==null?void 0:L.current_workspace)==null?void 0:H.name)==null?void 0:G.split(" ").map(M=>M[0]).join("").toUpperCase())||"WS"})]})})]}),l.jsxs("div",{children:[l.jsx("div",{className:"font-medium text-sm",children:(me=(pe=n==null?void 0:n.user)==null?void 0:pe.current_workspace)==null?void 0:me.name}),l.jsx("div",{className:"text-xs text-gray-500",children:(re=(Se=n==null?void 0:n.user)==null?void 0:Se.current_workspace)==null?void 0:re.email})]})]}),l.jsxs(xf,{children:[l.jsx(Cs,{className:"p-1"}),l.jsxs(Ss,{className:"w-56 bg-white",children:[l.jsx("div",{className:"px-2 py-1 text-xs uppercase text-gray-400",children:"Switch Workspace"}),(he=(Z=n==null?void 0:n.user)==null?void 0:Z.workspaces)==null?void 0:he.map(M=>{var K,ge;return l.jsxs(ue,{onClick:()=>C(M.id),disabled:d,className:`flex items-center space-x-2 p-2 rounded ${M.id===((K=n==null?void 0:n.user)==null?void 0:K.current_workspace_id)?"bg-gray-100 font-semibold text-black":"text-gray-500 hover:text-black hover:bg-gray-100"} ${d&&f===M.id?"opacity-50":""}`,children:[l.jsxs(ke,{className:"h-6 w-6 rounded-lg",children:[l.jsx(Oe,{src:"/placeholder.svg",alt:M.name}),l.jsx(Te,{children:(ge=M.name)==null?void 0:ge.split(" ").map(je=>je[0]).join("").toUpperCase()})]}),l.jsx("span",{className:"flex-1",children:M.name}),d&&f===M.id&&l.jsx(Zs,{className:"h-4 w-4 animate-spin text-primary"})]},M.id)})]})]})]}),l.jsx(_n,{}),l.jsx(ue,{asChild:!0,children:l.jsxs(Ae,{href:J("user.workspace.settings"),className:"flex items-center space-x-3 p-3 text-gray-500 hover:text-black hover:bg-gray-100 focus:bg-gray-100 no-underline",children:[l.jsx(Yt,{className:"h-4 w-4"}),l.jsx("span",{children:"Settings"})]})}),l.jsxs(ue,{onClick:y,className:"flex items-center space-x-3 p-3 cursor-pointer text-gray-500 hover:text-black hover:bg-gray-100 focus:bg-gray-100 data-[highlighted]:bg-gray-100",children:[l.jsx(xr,{className:"h-4 w-4"}),l.jsx("span",{children:i("Create new workspace")})]})]})]})})]})}),l.jsx(qi,{isOpen:c,onClose:b})]})}const dp=({href:e,active:t,children:n,className:r=""})=>l.jsx(Ae,{href:e,className:`w-12 h-10 rounded-lg flex items-center justify-center transition-colors ${t?"bg-gradient-to-r from-primary to-secondary text-white":"text-gray-500 hover:bg-gray-100 hover:dark:bg-zinc-700"} ${r}`,children:n}),Is=a.forwardRef(({...e},t)=>l.jsx("nav",{"aria-label":"breadcrumb",className:"flex",ref:t,...e}));Is.displayName="Breadcrumb";const $s=a.forwardRef(({className:e,...t},n)=>l.jsx("ol",{ref:n,className:B("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));$s.displayName="BreadcrumbList";const Ds=a.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:B("inline-flex items-center gap-1.5",e),...t}));Ds.displayName="BreadcrumbItem";const Ls=a.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?Js:"a";return l.jsx(o,{ref:r,className:B("transition-colors hover:text-foreground",t),...n})});Ls.displayName="BreadcrumbLink";const Fs=a.forwardRef(({className:e,...t},n)=>l.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:B("font-normal text-foreground",e),...t}));Fs.displayName="BreadcrumbPage";const Ws=({children:e,className:t,...n})=>l.jsx("li",{role:"presentation","aria-hidden":"true",className:B("mx-1 text-muted-foreground",t),...n,children:e||"/"});Ws.displayName="BreadcrumbSeparator";function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bt.apply(this,arguments)}function fp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var pp=["cdnSuffix","cdnUrl","countryCode","style","svg"],mp="https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/",hp="svg",gp=127397,xp=function(t){var n=t.cdnSuffix,r=n===void 0?hp:n,o=t.cdnUrl,s=o===void 0?mp:o,i=t.countryCode,c=t.style,u=t.svg,d=u===void 0?!1:u,p=fp(t,pp);if(typeof i!="string")return null;if(d){var f=""+s+i.toLowerCase()+"."+r;return a.createElement("img",Object.assign({},p,{src:f,style:bt({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},c)}))}var m=i.toUpperCase().replace(/./g,function(g){return String.fromCodePoint(g.charCodeAt(0)+gp)});return a.createElement("span",Object.assign({role:"img"},p,{style:bt({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},c)}),m)};const pr=({code:e,size:t="20px",round:n=!1})=>l.jsx(xp,{countryCode:e??"GB",svg:!0,style:{width:t,height:t,marginRight:"8px",borderRadius:n?"50%":"0",objectFit:"cover"}});function vp({breadcrumbs:e}){var y,b,C,S;const{theme:t,toggleTheme:n}=ei(),r=cn(),{props:o}=an(),{filePaths:s,auth:i,languageProp:c,language:u}=o,d=i==null?void 0:i.user,p=d==null?void 0:d.avatar_url,f=((y=s==null?void 0:s.profile)==null?void 0:y.user)||{},[m,g]=(f.size||"150x150").split("x"),x=[{route:"user.post.create",icon:l.jsx(xr,{className:"h-5 w-5"})},{route:"user.gallery.index",icon:l.jsx(gr,{className:"h-5 w-5  dark:text-neutral-200"})},{route:"user.template.index",icon:l.jsx(hr,{className:"h-5 w-5  dark:text-neutral-200"})}],h=w=>{w&&mt.post(J("user.language.switch"),{code:w},{preserveScroll:!0})},v=w=>{w&&mt.post(J("user.read.notification"),{id:w},{preserveScroll:!0,onSuccess:()=>{},onError:N=>{console.error("Failed to mark notification as read:",N)}})};return l.jsxs("header",{className:"flex items-center justify-between h-16 pl-16 lg:pl-16 pr-6 bg-white dark:bg-zinc-900 border-b border-gray-200 dark:border-zinc-800",children:[l.jsx("div",{className:"hidden sm:block",children:l.jsx(Is,{children:l.jsx($s,{children:e.map((w,N)=>l.jsxs(le.Fragment,{children:[l.jsx(Ds,{children:w.href?l.jsx(Ls,{className:"dark:text-neutral-200 text-xs sm:text-sm",href:w.href,children:w.label}):l.jsx(Fs,{className:"text-gray-500 dark:text-neutral-400 text-xs sm:text-sm",children:w.label})}),N<e.length-1&&l.jsx(Ws,{className:"dark:text-neutral-200"})]},w.label))})})}),l.jsx("div",{className:"sm:hidden flex items-center lg:pl-12 pl-6",children:l.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:((b=e[e.length-1])==null?void 0:b.label)||"Dashboard"})}),l.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[l.jsx("div",{className:"hidden md:flex items-center space-x-4",children:x.map((w,N)=>l.jsx(dp,{href:J(w.route),active:J().current(w.route),children:w.icon},N))}),l.jsx(ye,{variant:"ghost",size:"icon",onClick:n,className:"h-8 w-8 sm:h-10 sm:w-10",children:t==="light"?l.jsx(ji,{className:"h-4 w-4 sm:h-5 sm:w-5 text-gray-600 dark:text-neutral-200"}):l.jsx(Di,{className:"h-4 w-4 sm:h-5 sm:w-5 text-yellow-400"})}),l.jsxs(ft,{children:[l.jsx(pt,{asChild:!0,children:l.jsx(ye,{variant:"ghost",size:"icon",className:"hidden sm:inline-flex",children:u&&l.jsx(pr,{code:u.code,size:"26px",round:!0})||l.jsx(ai,{className:"h-5 w-5 text-gray-600"})})}),l.jsx(Ue,{className:"w-40 max-h-36 overflow-y-auto",align:"end",forceMount:!0,children:c.map((w,N)=>l.jsxs(ue,{className:"flex items-center  text-gray-600 cursor-pointer hover:bg-gray-100 focus:bg-gray-100",onClick:()=>h(w.code),children:[l.jsx(pr,{code:w.code,size:"20px"}),w.name]},N))})]}),l.jsxs(ft,{children:[l.jsx(pt,{asChild:!0,children:l.jsxs(ye,{variant:"ghost",size:"icon",className:"relative h-8 w-8 sm:h-10 sm:w-10",children:[l.jsx(In,{className:"h-4 w-4 sm:h-5 sm:w-5 text-gray-600 dark:text-neutral-200"}),o.unread_notifications_count>0&&l.jsx("span",{className:"absolute -top-0.5 -right-0.5 sm:-top-1 sm:-right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 sm:h-5 sm:w-5 flex items-center justify-center font-medium",children:o.unread_notifications_count>9?"9+":o.unread_notifications_count})]})}),l.jsxs(Ue,{className:"w-72 sm:w-80 max-h-96 overflow-y-auto",align:"end",forceMount:!0,children:[l.jsx(nn,{className:"px-4 py-3 border-b",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"font-semibold",children:r("Notifications")}),o.unread_notifications_count>0&&l.jsxs("span",{className:"text-xs text-gray-500 bg-gray-100 px-2 py-1 rounded-full",children:[o.unread_notifications_count," ",r("new")]})]})}),o.notifications&&o.notifications.length>0?l.jsxs(l.Fragment,{children:[o.notifications.slice(0,5).map((w,N)=>{var E;return l.jsx(ue,{className:"flex flex-col items-start px-4 py-3 border-b last:border-b-0 cursor-pointer hover:bg-gray-50 focus:bg-gray-50",onClick:()=>v(w.id),children:l.jsxs("div",{className:"flex items-start space-x-3 w-full",children:[l.jsx("div",{className:`w-2 h-2 rounded-full flex-shrink-0 mt-2 ${w.is_read?"bg-gray-300":"bg-blue-500"}`}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:w.title||r("New Notification")}),l.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1 line-clamp-2",children:w.message||((E=w.data)==null?void 0:E.message)||r("You have a new notification")}),l.jsx("p",{className:"text-xs text-gray-400 mt-1",children:w.created_at?new Date(w.created_at).toLocaleDateString():r("Just now")})]})]})},w.id||N)}),l.jsx(ue,{asChild:!0,children:l.jsx(Ae,{href:J("user.notification")||"#",className:"flex items-center justify-center px-4 py-3 text-sm text-primary font-medium hover:bg-gray-50 focus:bg-gray-50 no-underline border-t",children:r("View all notifications")})})]}):l.jsxs("div",{className:"px-4 py-6 text-center text-gray-500 dark:text-gray-400",children:[l.jsx(In,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),l.jsx("p",{className:"text-sm",children:r("No notifications yet")}),l.jsx("p",{className:"text-xs mt-1",children:r("We'll notify you when something arrives!")})]})]})]}),l.jsxs(ft,{children:[l.jsx(pt,{asChild:!0,children:l.jsx(ye,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:l.jsxs(ke,{className:"h-8 w-8",children:[l.jsx(Oe,{src:p,alt:"User Avatar"}),l.jsx(Te,{className:"bg-gradient-to-br from-primary to-secondary text-white font-bold text-sm",children:((C=d==null?void 0:d.name)==null?void 0:C.split(" ").map(w=>w[0]).join("").toUpperCase().slice(0,2))||"U"})]})})}),l.jsxs(Ue,{className:"w-64",align:"end",forceMount:!0,children:[l.jsx(nn,{className:"p-4",children:l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsxs(ke,{className:"h-10 w-10",children:[l.jsx(Oe,{src:p,alt:"User Avatar"}),l.jsx(Te,{className:"bg-gradient-to-br from-primary to-secondary text-white font-bold",children:((S=d==null?void 0:d.name)==null?void 0:S.split(" ").map(w=>w[0]).join("").toUpperCase().slice(0,2))||"U"})]}),l.jsxs("div",{className:"flex flex-col space-y-1",children:[l.jsx("p",{className:"text-sm leading-none",children:d.name}),l.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:d.email})]})]})}),l.jsx(_n,{}),l.jsx(ue,{asChild:!0,children:l.jsxs(Ae,{href:J("user.profile.settings"),method:"get",className:"flex items-center px-4 py-2 text-gray-600 cursor-pointer hover:bg-gray-100 focus:bg-gray-100 data-[highlighted]:bg-gray-100",children:[l.jsx(Yt,{className:"mr-2 h-4 w-4"}),l.jsx("span",{children:"Profile Setting"})]})}),l.jsx(ue,{asChild:!0,children:l.jsxs(Ae,{href:J("user.logout"),method:"get",className:"flex items-center px-4 py-2 text-red-500 cursor-pointer hover:bg-gray-100 focus:bg-gray-100 data-[highlighted]:bg-gray-100",children:[l.jsx(Si,{className:"mr-2 h-4 w-4"}),l.jsx("span",{children:"Logout"})]})})]})]})]})]})}function Ap({children:e,breadcrumbs:t}){const[n,r]=a.useState(!1),o=()=>{r(!n)};return l.jsx(ti,{children:l.jsx(ni,{children:l.jsxs("div",{className:"flex h-screen bg-gray-50 dark:bg-gray-900 relative",children:[l.jsx("button",{onClick:o,className:"lg:hidden fixed top-2 left-2 z-50 p-4 bg-white dark:bg-zinc-900 rounded-lg",children:n?l.jsx(vr,{className:"h-6 w-6 text-gray-700 dark:text-gray-200"}):l.jsx(Ni,{className:"h-6 w-6 text-gray-700 dark:text-gray-200"})}),n&&l.jsx("div",{className:"lg:hidden fixed inset-0 bg-black bg-opacity-50 z-40",onClick:o}),l.jsx("div",{className:`
            fixed lg:relative
            inset-y-0 left-0
            z-40 lg:z-auto
            transform ${n?"translate-x-0":"-translate-x-full"}
            lg:translate-x-0
            transition-transform duration-300 ease-in-out
          `,children:l.jsx(up,{onMobileClose:()=>r(!1)})}),l.jsxs("div",{className:"flex flex-col flex-1 w-full lg:w-auto overflow-hidden",children:[l.jsx(vp,{breadcrumbs:t}),l.jsx(ri,{}),l.jsx("div",{className:"flex-1 overflow-auto min-h-0 dark:bg-black pt-4",children:e})]})]})})})}export{Ap as A,bu as B,xi as C,ft as D,$a as E,hr as F,jo as G,Dr as H,gr as I,un as J,co as K,lo as L,ji as M,pr as N,Ii as O,xr as P,zc as Q,gu as R,Yt as S,cp as T,Ar as U,Lf as V,In as W,vr as X,qi as Y,ke as a,Oe as b,Te as c,mi as d,ui as e,mr as f,dr as g,fr as h,sn as i,pt as j,Ue as k,ue as l,fi as m,Di as n,Xi as o,De as p,mo as q,Vi as r,xu as s,_t as t,Or as u,yn as v,kr as w,ao as x,wn as y,ee as z};
