@aotter/mantle-admin-ui 0.0.11-alpha.13 → 0.0.11-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -136,7 +136,7 @@ Error generating stack: `+e.message+`
136
136
 
137
137
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
138
138
 
139
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qo=`DialogDescriptionWarning`,$o=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xo(Qo).contentName}}.`;return P.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},es=To,ts=jo,ns=No,rs=Lo,is=Ho,as=Wo,os=Ko;function ss({...e}){return(0,F.jsx)(es,{"data-slot":`sheet`,...e})}function cs({...e}){return(0,F.jsx)(ts,{"data-slot":`sheet-portal`,...e})}function ls({className:e,...t}){return(0,F.jsx)(ns,{"data-slot":`sheet-overlay`,className:B(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function us({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,F.jsxs)(cs,{children:[(0,F.jsx)(ls,{}),(0,F.jsxs)(rs,{"data-slot":`sheet-content`,className:B(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 shadow-[-12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 shadow-[12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,F.jsxs)(os,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,F.jsx)(Ut,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ds({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sheet-header`,className:B(`flex flex-col gap-1.5 p-4`,e),...t})}function fs({className:e,...t}){return(0,F.jsx)(is,{"data-slot":`sheet-title`,className:B(`font-semibold text-foreground`,e),...t})}function ps({className:e,...t}){return(0,F.jsx)(as,{"data-slot":`sheet-description`,className:B(`text-sm text-muted-foreground`,e),...t})}var ms=`16rem`,hs=`3.25rem`,gs=`18rem`,_s=`b`,vs=P.createContext(null);function ys(){let[e,t]=P.useState(!1);return P.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>t(window.innerWidth<768);return e.addEventListener(`change`,n),t(window.innerWidth<768),()=>e.removeEventListener(`change`,n)},[]),e}function bs({defaultOpen:e=!0,className:t,style:n,children:r,...i}){let a=ys(),[o,s]=P.useState(!1),[c,l]=P.useState(e),u=P.useCallback(e=>{nn(e),l(e)},[]),d=P.useCallback(()=>a?s(e=>!e):u(!c),[a,c,u]);P.useEffect(()=>{let e=e=>{e.key===_s&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d]);let f=c?`expanded`:`collapsed`,p=P.useMemo(()=>({state:f,open:c,setOpen:u,isMobile:a,openMobile:o,setOpenMobile:s,toggleSidebar:d}),[f,c,u,a,o,d]);return(0,F.jsx)(vs.Provider,{value:p,children:(0,F.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":ms,"--sidebar-width-icon":hs,...n},className:B(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar rtl:flex-row-reverse`,t),...i,children:r})})}function xs(){let e=P.useContext(vs);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ss({side:e=`left`,variant:t=`sidebar`,className:n,children:r,...i}){let{isMobile:a,state:o,openMobile:s,setOpenMobile:c}=xs();return a?(0,F.jsx)(ss,{open:s,onOpenChange:c,...i,children:(0,F.jsxs)(us,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) glass-strip p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":gs},side:e,showCloseButton:!1,children:[(0,F.jsxs)(ds,{className:`sr-only`,children:[(0,F.jsx)(fs,{children:`Sidebar`}),(0,F.jsx)(ps,{children:`Displays the mobile sidebar.`})]}),(0,F.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:r})]})}):(0,F.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":o,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,F.jsx)(`div`,{"data-slot":`sidebar-gap`,className:`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 group-data-[state=collapsed]:w-(--sidebar-width-icon)`}),(0,F.jsx)(`div`,{"data-slot":`sidebar-container`,className:B(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[width] duration-200 md:flex group-data-[state=collapsed]:w-(--sidebar-width-icon)`,e===`left`?`left-0`:`right-0`,t===`inset`?`p-2`:``,n),...i,children:(0,F.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`glass-strip flex h-full w-full flex-col`,children:r})})]})}function Cs({className:e,onClick:t,...n}){let{toggleSidebar:r}=xs();return(0,F.jsxs)(Yr,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:B(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,F.jsx)(It,{}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function ws({className:e,...t}){return(0,F.jsx)(`main`,{"data-slot":`sidebar-inset`,className:B(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm rtl:md:peer-data-[variant=inset]:ml-2 rtl:md:peer-data-[variant=inset]:mr-0`,e),...t})}function Ts({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function Es({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:B(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,e),...t})}function Ds({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function Os({className:e,...t}){return(0,F.jsx)(`hr`,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:B(`mx-4 my-1 h-px w-auto border-0`,`bg-linear-to-r from-transparent via-[color-mix(in_srgb,var(--primary)_24%,transparent)] to-transparent`,`opacity-70 dark:via-[color-mix(in_srgb,var(--palette-teal-light)_18%,transparent)]`,e),...t})}function ks({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:B(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function As({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:B(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70`,e),...t})}function js({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:B(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Ms({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:B(`group/menu-item relative`,e),...t})}var Ns=cn(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm`}},defaultVariants:{size:`default`}});function Ps({asChild:e=!1,isActive:t=!1,size:n=`default`,className:r,...i}){return(0,F.jsx)(e?_n:`button`,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":n,"data-active":t,className:B(Ns({size:n}),r),...i})}function Fs({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:B(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 rtl:-translate-x-px rtl:border-l-0 rtl:border-r`,e),...t})}function Is({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:B(`group/menu-sub-item relative`,e),...t})}function Ls({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,F.jsx)(e?_n:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:B(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`rtl:translate-x-px`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,r),...i})}var Rs=`/admin/api`,zs=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function Bs(e,t){let n=await fetch(`${Rs}${e}`,{credentials:`same-origin`,headers:{Accept:`application/json`,...t?.headers??{}},...t}),r=await n.text(),i=null;if(r)try{i=JSON.parse(r)}catch{i=r}if(!n.ok)throw new zs(`${n.status} ${n.statusText}`,n.status,i);return i}var Vs={get:e=>Bs(e)},Hs=[`draft`,`review`,`published`,`archived`],Us=[`draft`,`published`,`archived`],Ws=P.createContext(null);function Gs(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function Ks(e){if(typeof window>`u`)return!1;let t=new URL(e,window.location.href);return!(t.origin!==window.location.origin||!t.pathname.startsWith(`/admin`)||t.pathname.startsWith(`/admin/api/`)||t.pathname.startsWith(`/admin/auth/`)||t.pathname===`/admin/logout`)}function qs({children:e}){let[t,n]=P.useState(Gs),r=P.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`;i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));let a={pathname:r.pathname,search:r.search};(0,si.flushSync)(()=>n(a))},[]);P.useEffect(()=>{let e=()=>n(Gs());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),P.useEffect(()=>{let e=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`a[href]`);n instanceof HTMLAnchorElement&&(n.target&&n.target!==`_self`||n.hasAttribute(`download`)||Ks(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=P.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,F.jsx)(Ws.Provider,{value:i,children:e})}function Js(){let e=P.useContext(Ws);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function Ys(){return Js().location}var Xs=[{value:`en`,label:`English`,nativeLabel:`English`,htmlLang:`en`,direction:`ltr`},{value:`de`,label:`German`,nativeLabel:`Deutsch`,htmlLang:`de`,direction:`ltr`},{value:`es`,label:`Spanish`,nativeLabel:`Español`,htmlLang:`es`,direction:`ltr`},{value:`fr`,label:`French`,nativeLabel:`Français`,htmlLang:`fr`,direction:`ltr`},{value:`it`,label:`Italian`,nativeLabel:`Italiano`,htmlLang:`it`,direction:`ltr`},{value:`ja`,label:`Japanese`,nativeLabel:`日本語`,htmlLang:`ja`,direction:`ltr`},{value:`ko`,label:`Korean`,nativeLabel:`한국어`,htmlLang:`ko`,direction:`ltr`},{value:`pt-BR`,label:`Portuguese (Brazil)`,nativeLabel:`Português (BR)`,htmlLang:`pt-BR`,direction:`ltr`},{value:`ru`,label:`Russian`,nativeLabel:`Русский`,htmlLang:`ru`,direction:`ltr`},{value:`zh-CN`,label:`Simplified Chinese`,nativeLabel:`简体中文`,htmlLang:`zh-Hans-CN`,direction:`ltr`},{value:`zh-TW`,label:`Traditional Chinese`,nativeLabel:`繁體中文`,htmlLang:`zh-Hant-TW`,direction:`ltr`},{value:`id`,label:`Indonesian`,nativeLabel:`Bahasa Indonesia`,htmlLang:`id`,direction:`ltr`},{value:`nl`,label:`Dutch`,nativeLabel:`Nederlands`,htmlLang:`nl`,direction:`ltr`},{value:`pl`,label:`Polish`,nativeLabel:`Polski`,htmlLang:`pl`,direction:`ltr`},{value:`tr`,label:`Turkish`,nativeLabel:`Türkçe`,htmlLang:`tr`,direction:`ltr`},{value:`vi`,label:`Vietnamese`,nativeLabel:`Tiếng Việt`,htmlLang:`vi`,direction:`ltr`},{value:`cs`,label:`Czech`,nativeLabel:`Čeština`,htmlLang:`cs`,direction:`ltr`},{value:`uk`,label:`Ukrainian`,nativeLabel:`Українська`,htmlLang:`uk`,direction:`ltr`},{value:`ar`,label:`Arabic`,nativeLabel:`العربية`,htmlLang:`ar`,direction:`rtl`},{value:`he`,label:`Hebrew`,nativeLabel:`עברית`,htmlLang:`he`,direction:`rtl`},{value:`fa`,label:`Persian`,nativeLabel:`فارسی`,htmlLang:`fa`,direction:`rtl`},{value:`th`,label:`Thai`,nativeLabel:`ไทย`,htmlLang:`th`,direction:`ltr`}],Zs=`cms.preference.language`,Qs=`cms.preference.direction`,$s=`cms.preference.theme`,ec=`cms.theme`,tc=P.createContext(null);function nc({children:e}){let[t,n]=P.useState(rc),[r,i]=P.useState(()=>ic(rc())),[a,o]=P.useState(ac),s=P.useCallback(e=>{let t=uc(e);sc(Zs,e),sc(Qs,t),n(e),i(t)},[]),c=P.useCallback(e=>{sc(Qs,e),i(e)},[]),l=P.useCallback(e=>{sc($s,e),sc(ec,e),o(e)},[]);P.useEffect(()=>{document.documentElement.lang=Xs.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),P.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,a===`dark`||a===`system`&&e)};if(e(),a!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[a]);let u=P.useMemo(()=>({language:t,direction:r,theme:a,setLanguage:s,setDirection:c,setTheme:l}),[t,r,a,s,c,l]);return(0,F.jsx)(tc.Provider,{value:u,children:e})}function W(){let e=P.useContext(tc);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function rc(){let e=oc(Zs);if(cc(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=lc(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return lc(navigator.language)}function ic(e){let t=oc(Qs);return t===`rtl`||t===`ltr`?t:uc(e)}function ac(){let e=oc(`cms.preference.theme`)??oc(ec);return e===`light`||e===`dark`||e===`system`?e:`system`}function oc(e){try{return localStorage.getItem(e)}catch{return null}}function sc(e,t){try{localStorage.setItem(e,t)}catch{}}function cc(e){return Xs.some(t=>t.value===e)}function lc(e){let t=(e??``).toLowerCase();if(t===`zh-tw`||t===`zh-hant`||t.startsWith(`zh-hant`))return`zh-TW`;if(t===`zh-cn`||t===`zh-hans`||t.startsWith(`zh-hans`))return`zh-CN`;if(t.startsWith(`pt-br`)||t===`pt`)return`pt-BR`;let n=t.split(`-`)[0];return n===`ar`?`ar`:n===`cs`?`cs`:n===`de`?`de`:n===`es`?`es`:n===`fa`?`fa`:n===`fr`?`fr`:n===`he`||n===`iw`?`he`:n===`id`?`id`:n===`it`?`it`:n===`ja`?`ja`:n===`ko`?`ko`:n===`nl`?`nl`:n===`pl`?`pl`:n===`pt`?`pt-BR`:n===`ru`?`ru`:n===`th`?`th`:n===`tr`?`tr`:n===`uk`?`uk`:n===`vi`?`vi`:n===`zh`?`zh-TW`:`en`}function uc(e){return Xs.find(t=>t.value===e)?.direction??`ltr`}var dc=`@aotter/mantle`,fc=`0.0.11-alpha.13`,pc=`https://www.npmjs.com/package/@aotter/mantle`,mc=`https://github.com/aotter/mantle`;function hc({className:e,title:t}){return(0,F.jsxs)(`svg`,{viewBox:`0 0 128 128`,role:t?`img`:void 0,"aria-hidden":t?void 0:!0,className:e,children:[t?(0,F.jsx)(`title`,{children:t}):null,(0,F.jsx)(`path`,{fill:`currentColor`,d:`M111.76,52.77c-4.05-6.75-13.09-19.07-28.16-25.67-.97-.43-9.36-4.13-19.6-4.13s-18.63,3.7-19.6,4.13c-15.08,6.59-24.12,18.91-28.16,25.67-6.57,10.92-6.56,17.8-6.03,20.94,1.45,8.52,35.82,16.09,33.19,19.03-3.96,4.86-1.12,12.29,7.1,12.29h26.99c8.22,0,11.06-7.44,7.1-12.29-2.63-2.94,31.74-10.5,33.19-19.03.53-3.14.54-10.01-6.03-20.94ZM101.76,64.08c-8.92,11.77-25.79,25.56-25.93,25.68-1.1,1.23-.4,2.67.21,3.94.72,1.5,1.15,2.54.53,3.38-.47.64-.75.83-1.22.83h-22.95c-.46,0-.75-.2-1.22-.83-.61-.84-.19-1.88.53-3.38.61-1.27,1.31-2.71.21-3.94-.15-.11-15.88-13.29-24.81-25.07-.46-.6-.61-1.51-.42-2.54.36-2.03,1.85-4.15,3.8-5.4,1.28-.82,2.75-1.22,4.12-1.22,1.71,0,3.25.63,4.03,1.83,1.16,1.8,14.73,23.3,16.48,26.48,1.3,2.35,2.68,3.27,4.08,2.7,1.4-.56,1-3.17-.57-12.12-1.28-7.28-3.03-22.92-3.03-31.19,0-2.17,2.62-4.45,6.45-5.08v-.03c.57-.08,3.04-.08,3.62,0v.03c3.84.63,6.45,2.91,6.45,5.08,0,8.27-1.75,23.91-3.03,31.19-1.57,8.95-1.96,11.55-.57,12.12,1.4.57,2.77-.34,4.08-2.7,1.75-3.17,16.45-25.28,17.61-27.09.77-1.2,2.32-1.83,4.03-1.83,1.37,0,2.84.4,4.12,1.22,1.95,1.25,3.45,3.38,3.8,5.4.18,1.04.03,1.94-.42,2.54Z`})]})}function gc(){return(0,F.jsxs)(`div`,{className:B(`fixed bottom-3 end-3 z-30 hidden items-center gap-2 rounded-full`,`border border-border/60 bg-background/65 px-2.5 py-1.5 text-xs`,`text-muted-foreground shadow-[var(--glass-shadow)] backdrop-blur-md md:flex`),children:[(0,F.jsx)(hc,{className:`size-4 text-primary`}),(0,F.jsx)(`a`,{href:pc,target:`_blank`,rel:`noreferrer`,className:`font-medium text-foreground/80 hover:text-primary`,children:dc}),(0,F.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,F.jsx)(`a`,{href:mc,target:`_blank`,rel:`noreferrer`,className:`hover:text-primary`,children:`GitHub`}),(0,F.jsxs)(`span`,{"aria-label":`version ${fc}`,children:[`v`,fc]})]})}function _c({brand:e}){let{setOpenMobile:t}=xs();return(0,F.jsx)(js,{children:(0,F.jsx)(Ms,{children:(0,F.jsx)(Ps,{asChild:!0,size:`lg`,className:`data-[slot=sidebar-menu-button]:!p-1.5`,children:(0,F.jsxs)(`a`,{href:e.href??`/admin`,onClick:()=>t(!1),children:[(0,F.jsx)(`span`,{className:`bg-primary/10 text-primary flex aspect-square size-8 items-center justify-center rounded-lg ring-1 ring-border`,children:(0,F.jsx)(hc,{className:`size-5`})}),(0,F.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:e.title}),e.subtitle&&(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.subtitle})]})]})})})})}var vc=`Collapsible`,[yc,bc]=Zr(vc),[xc,Sc]=yc(vc),Cc=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=ii({prop:r,defaultProp:i??!1,onChange:o,caller:vc});return(0,F.jsx)(xc,{scope:n,disabled:a,contentId:ni(),open:c,onOpenToggle:P.useCallback(()=>l(e=>!e),[l]),children:(0,F.jsx)(mi.div,{"data-state":kc(c),"data-disabled":a?``:void 0,...s,ref:t})})});Cc.displayName=vc;var wc=`CollapsibleTrigger`,Tc=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=Sc(wc,n);return(0,F.jsx)(mi.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":kc(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:V(e.onClick,i.onOpenToggle)})});Tc.displayName=wc;var Ec=`CollapsibleContent`,Dc=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Sc(Ec,e.__scopeCollapsible);return(0,F.jsx)(Yi,{present:n||i.open,children:({present:e})=>(0,F.jsx)(Oc,{...r,ref:t,present:e})})});Dc.displayName=Ec;var Oc=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Sc(Ec,n),[s,c]=P.useState(r),l=P.useRef(null),u=dn(t,l),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,h=o.open||s,g=P.useRef(h),_=P.useRef(void 0);return P.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),$r(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,F.jsx)(mi.div,{"data-state":kc(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function kc(e){return e?`open`:`closed`}var Ac=Cc,jc=Tc,Mc=Dc;function Nc(e){let t=e+`CollectionProvider`,[n,r]=Zr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=ci(s),l=P.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,F.jsx)(c,{ref:dn(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=ci(u),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=dn(t,o),c=a(u,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Pc=P.createContext(void 0);function Fc(e){let t=P.useContext(Pc);return e||t||`ltr`}var Ic=[`top`,`right`,`bottom`,`left`],G=Math.min,Lc=Math.max,Rc=Math.round,zc=Math.floor,Bc=e=>({x:e,y:e}),Vc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hc(e,t,n){return Lc(e,G(t,n))}function Uc(e,t){return typeof e==`function`?e(t):e}function Wc(e){return e.split(`-`)[0]}function Gc(e){return e.split(`-`)[1]}function Kc(e){return e===`x`?`y`:`x`}function qc(e){return e===`y`?`height`:`width`}function Jc(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Yc(e){return Kc(Jc(e))}function Xc(e,t,n){n===void 0&&(n=!1);let r=Gc(e),i=Yc(e),a=qc(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=al(o)),[o,al(o)]}function Zc(e){let t=al(e);return[Qc(e),t,Qc(t)]}function Qc(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var $c=[`left`,`right`],el=[`right`,`left`],tl=[`top`,`bottom`],nl=[`bottom`,`top`];function rl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?el:$c:t?$c:el;case`left`:case`right`:return t?tl:nl;default:return[]}}function il(e,t,n,r){let i=Gc(e),a=rl(Wc(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Qc)))),a}function al(e){let t=Wc(e);return Vc[t]+e.slice(t.length)}function ol(e){return{top:0,right:0,bottom:0,left:0,...e}}function sl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ol(e)}function cl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ll(e,t,n){let{reference:r,floating:i}=e,a=Jc(t),o=Yc(t),s=qc(o),c=Wc(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Gc(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ul(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Uc(t,e),p=sl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=cl(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=cl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var dl=50,fl=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ul},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ll(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<dl&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ll(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},pl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Uc(e,t)||{};if(l==null)return{};let d=sl(u),f={x:n,y:r},p=Yc(i),m=qc(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=G(d[_],T),te=G(d[v],T),E=ee,ne=C-h[m]-te,re=C/2-h[m]/2+w,ie=Hc(E,re,ne),D=!c.arrow&&Gc(i)!=null&&re!==ie&&a.reference[m]/2-(re<E?ee:te)-h[m]/2<0,O=D?re<E?re-E:re-ne:0;return{[p]:f[p]+O,data:{[p]:ie,centerOffset:re-ie-O,...D&&{alignmentOffset:O}},reset:D}}}),ml=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Uc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Wc(r),_=Jc(o),v=Wc(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[al(o)]:Zc(o)),x=p!==`none`;!d&&x&&b.push(...il(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Xc(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Jc(t))||T.every(e=>Jc(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Jc(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function hl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gl(e){return Ic.some(t=>e[t]>=0)}var _l=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Uc(e,t);switch(i){case`referenceHidden`:{let e=hl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:gl(e)}}}case`escaped`:{let e=hl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:gl(e)}}}default:return{}}}}},vl=new Set([`left`,`top`]);async function yl(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Wc(n),s=Gc(n),c=Jc(n)===`y`,l=vl.has(o)?-1:1,u=a&&c?-1:1,d=Uc(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var bl=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await yl(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},xl=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Uc(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Jc(Wc(i)),p=Kc(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Hc(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Hc(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Sl=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Uc(e,t),u={x:n,y:r},d=Jc(i),f=Kc(d),p=u[f],m=u[d],h=Uc(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=vl.has(Wc(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Cl=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Uc(e,t),u=await o.detectOverflow(t,l),d=Wc(i),f=Gc(i),p=Jc(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=G(h-u[g],v),x=G(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Lc(u.left,0),t=Lc(u.right,0),n=Lc(u.top,0),r=Lc(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Lc(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Lc(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function wl(){return typeof window<`u`}function Tl(e){return Ol(e)?(e.nodeName||``).toLowerCase():`#document`}function El(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dl(e){return((Ol(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ol(e){return wl()?e instanceof Node||e instanceof El(e).Node:!1}function kl(e){return wl()?e instanceof Element||e instanceof El(e).Element:!1}function Al(e){return wl()?e instanceof HTMLElement||e instanceof El(e).HTMLElement:!1}function jl(e){return!wl()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof El(e).ShadowRoot}function Ml(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Nl(e){return/^(table|td|th)$/.test(Tl(e))}function Pl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Fl=/transform|translate|scale|rotate|perspective|filter/,Il=/paint|layout|strict|content/,Ll=e=>!!e&&e!==`none`,Rl;function K(e){let t=kl(e)?Y(e):e;return Ll(t.transform)||Ll(t.translate)||Ll(t.scale)||Ll(t.rotate)||Ll(t.perspective)||!q()&&(Ll(t.backdropFilter)||Ll(t.filter))||Fl.test(t.willChange||``)||Il.test(t.contain||``)}function zl(e){let t=Vl(e);for(;Al(t)&&!J(t);){if(K(t))return t;if(Pl(t))return null;t=Vl(t)}return null}function q(){return Rl??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Rl}function J(e){return/^(html|body|#document)$/.test(Tl(e))}function Y(e){return El(e).getComputedStyle(e)}function Bl(e){return kl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vl(e){if(Tl(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jl(e)&&e.host||Dl(e);return jl(t)?t.host:t}function Hl(e){let t=Vl(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:Al(t)&&Ml(t)?t:Hl(t)}function Ul(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Hl(e),i=r===e.ownerDocument?.body,a=El(r);if(i){let e=Wl(a);return t.concat(a,a.visualViewport||[],Ml(r)?r:[],e&&n?Ul(e):[])}else return t.concat(r,Ul(r,[],n))}function Wl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gl(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Al(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Rc(n)!==a||Rc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Kl(e){return kl(e)?e:e.contextElement}function ql(e){let t=Kl(e);if(!Al(t))return Bc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Gl(t),o=(a?Rc(n.width):n.width)/r,s=(a?Rc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Jl=Bc(0);function Yl(e){let t=El(e);return!q()||!t.visualViewport?Jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==El(e)?!1:t}function Zl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Kl(e),o=Bc(1);t&&(r?kl(r)&&(o=ql(r)):o=ql(e));let s=Xl(a,n,r)?Yl(a):Bc(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=El(a),t=r&&kl(r)?El(r):r,n=e,i=Wl(n);for(;i&&r&&t!==n;){let e=ql(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=El(i),i=Wl(n)}}return cl({width:u,height:d,x:c,y:l})}function Ql(e,t){let n=Bl(e).scrollLeft;return t?t.left+n:Zl(Dl(e)).left+n}function $l(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ql(e,n),y:n.top+t.scrollTop}}function eu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Dl(r),s=t?Pl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Bc(1),u=Bc(0),d=Al(r);if((d||!d&&!a)&&((Tl(r)!==`body`||Ml(o))&&(c=Bl(r)),d)){let e=Zl(r);l=ql(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?$l(o,c):Bc(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function tu(e){return Array.from(e.getClientRects())}function nu(e){let t=Dl(e),n=Bl(e),r=e.ownerDocument.body,i=Lc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Lc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ql(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=Lc(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ru=25;function iu(e,t){let n=El(e),r=Dl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=q();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ql(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ru&&(a-=o)}else l<=ru&&(a+=l);return{width:a,height:o,x:s,y:c}}function au(e,t){let n=Zl(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Al(e)?ql(e):Bc(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ou(e,t,n){let r;if(t===`viewport`)r=iu(e,n);else if(t===`document`)r=nu(Dl(e));else if(kl(t))r=au(t,n);else{let n=Yl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cl(r)}function su(e,t){let n=Vl(e);return n===t||!kl(n)||J(n)?!1:Y(n).position===`fixed`||su(n,t)}function cu(e,t){let n=t.get(e);if(n)return n;let r=Ul(e,[],!1).filter(e=>kl(e)&&Tl(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?Vl(e):e;for(;kl(o)&&!J(o);){let t=Y(o),n=K(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ml(o)&&!n&&su(e,o))?r=r.filter(e=>e!==o):i=t,o=Vl(o)}return t.set(e,r),r}function lu(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Pl(t)?[]:cu(t,this._c):[].concat(n),r],o=ou(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ou(t,a[e],i);s=Lc(n.top,s),c=G(n.right,c),l=G(n.bottom,l),u=Lc(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function uu(e){let{width:t,height:n}=Gl(e);return{width:t,height:n}}function du(e,t,n){let r=Al(t),i=Dl(t),a=n===`fixed`,o=Zl(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Bc(0);function l(){c.x=Ql(i)}if(r||!r&&!a)if((Tl(t)!==`body`||Ml(i))&&(s=Bl(t)),r){let e=Zl(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?$l(i,s):Bc(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function fu(e){return Y(e).position===`static`}function pu(e,t){if(!Al(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Dl(e)===n&&(n=n.ownerDocument.body),n}function mu(e,t){let n=El(e);if(Pl(e))return n;if(!Al(e)){let t=Vl(e);for(;t&&!J(t);){if(kl(t)&&!fu(t))return t;t=Vl(t)}return n}let r=pu(e,t);for(;r&&Nl(r)&&fu(r);)r=pu(r,t);return r&&J(r)&&fu(r)&&!K(r)?n:r||zl(e)||n}var hu=async function(e){let t=this.getOffsetParent||mu,n=this.getDimensions,r=await n(e.floating);return{reference:du(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gu(e){return Y(e).direction===`rtl`}var _u={convertOffsetParentRelativeRectToViewportRelativeRect:eu,getDocumentElement:Dl,getClippingRect:lu,getOffsetParent:mu,getElementRects:hu,getClientRects:tu,getDimensions:uu,getScale:ql,isElement:kl,isRTL:gu};function vu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yu(e,t){let n=null,r,i=Dl(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=zc(d),h=zc(i.clientWidth-(u+f)),g=zc(i.clientHeight-(d+p)),_=zc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Lc(0,G(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!vu(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function bu(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Kl(e),u=i||a?[...l?Ul(l):[],...t?Ul(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?yu(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Zl(e):null;c&&g();function g(){let t=Zl(e);h&&!vu(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var xu=bl,Su=xl,Cu=ml,wu=Cl,Tu=_l,Eu=pl,Du=Sl,Ou=(e,t,n)=>{let r=new Map,i={platform:_u,...n},a={...i.platform,_c:r};return fl(e,t,{...i,platform:a})},ku=typeof document<`u`?P.useLayoutEffect:function(){};function Au(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,i;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(!Au(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Au(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ju(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mu(e,t){let n=ju(e);return Math.round(t*n)/n}function Nu(e){let t=P.useRef(e);return ku(()=>{t.current=e}),t}function Pu(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);Au(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,ee=Nu(c),te=Nu(i),E=Nu(l),ne=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};te.current&&(e.platform=te.current),Ou(S.current,C.current,e).then(e=>{let t={...e,isPositioned:E.current!==!1};re.current&&!Au(w.current,t)&&(w.current=t,si.flushSync(()=>{d(t)}))})},[f,t,n,te,E]);ku(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let re=P.useRef(!1);ku(()=>(re.current=!0,()=>{re.current=!1}),[]),ku(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,ne);ne()}},[b,x,ne,ee,T]);let ie=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),D=P.useMemo(()=>({reference:b,floating:x}),[b,x]),O=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=Mu(D.floating,u.x),r=Mu(D.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ju(D.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:ne,refs:ie,elements:D,floatingStyles:O}),[u,ne,ie,D,O])}var Fu=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Eu({element:r.current,padding:i}).fn(n):r?Eu({element:r,padding:i}).fn(n):{}}}},Iu=(e,t)=>{let n=xu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lu=(e,t)=>{let n=Su(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ru=(e,t)=>({fn:Du(e).fn,options:[e,t]}),zu=(e,t)=>{let n=Cu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bu=(e,t)=>{let n=wu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vu=(e,t)=>{let n=Tu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hu=(e,t)=>{let n=Fu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uu=`Arrow`,Wu=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,F.jsx)(mi.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,F.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Wu.displayName=Uu;var Gu=Wu;function X(e){let[t,n]=P.useState(void 0);return $r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ku=`Popper`,[qu,Ju]=Zr(Ku),[Yu,Xu]=qu(Ku),Zu=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null);return(0,F.jsx)(Yu,{scope:t,anchor:r,onAnchorChange:i,children:n})};Zu.displayName=Ku;var Qu=`PopperAnchor`,$u=P.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Xu(Qu,n),o=P.useRef(null),s=dn(t,o),c=P.useRef(null);return P.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,F.jsx)(mi.div,{...i,ref:s})});$u.displayName=Qu;var ed=`PopperContent`,[td,nd]=qu(ed),rd=P.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Xu(ed,n),[_,v]=P.useState(null),y=dn(t,e=>v(e)),[b,x]=P.useState(null),S=X(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},te=Array.isArray(l)?l:[l],E=te.length>0,ne={padding:ee,boundary:te.filter(sd),altBoundary:E},{refs:re,floatingStyles:ie,placement:D,isPositioned:O,middlewareData:ae}=Pu({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>bu(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Iu({mainAxis:i+w,alignmentAxis:o}),c&&Lu({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Ru():void 0,...ne}),c&&zu({...ne}),Bu({...ne,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Hu({element:b,padding:s}),cd({arrowWidth:C,arrowHeight:w}),f&&Vu({strategy:`referenceHidden`,...ne})]}),[oe,k]=ld(D),A=gi(m);$r(()=>{O&&A?.()},[O,A]);let se=ae.arrow?.x,ce=ae.arrow?.y,le=ae.arrow?.centerOffset!==0,[j,M]=P.useState();return $r(()=>{_&&M(window.getComputedStyle(_).zIndex)},[_]),(0,F.jsx)(`div`,{ref:re.setFloating,"data-radix-popper-content-wrapper":``,style:{...ie,transform:O?ie.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:j,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(` `),...ae.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,F.jsx)(td,{scope:n,placedSide:oe,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,F.jsx)(mi.div,{"data-side":oe,"data-align":k,...h,ref:y,style:{...h.style,animation:O?void 0:`none`}})})})});rd.displayName=ed;var id=`PopperArrow`,ad={top:`bottom`,right:`left`,bottom:`top`,left:`right`},od=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=nd(id,n),a=ad[i.placedSide];return(0,F.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,F.jsx)(Gu,{...r,ref:t,style:{...r.style,display:`block`}})})});od.displayName=id;function sd(e){return e!==null}var cd=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ld(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function ld(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var ud=Zu,dd=$u,fd=rd,pd=od,md=`rovingFocusGroup.onEntryFocus`,hd={bubbles:!1,cancelable:!0},gd=`RovingFocusGroup`,[_d,vd,yd]=Nc(gd),[bd,Z]=Zr(gd,[yd]),[xd,Sd]=bd(gd),Cd=P.forwardRef((e,t)=>(0,F.jsx)(_d.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(_d.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(wd,{...e,ref:t})})}));Cd.displayName=gd;var wd=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=dn(t,f),m=Fc(a),[h,g]=ii({prop:o,defaultProp:s??null,onChange:c,caller:gd}),[_,v]=P.useState(!1),y=gi(l),b=vd(n),x=P.useRef(!1),[S,C]=P.useState(0);return P.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(md,y),()=>e.removeEventListener(md,y)},[y]),(0,F.jsx)(xd,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>C(e=>e-1),[]),children:(0,F.jsx)(mi.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{x.current=!0}),onFocus:V(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(md,hd);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Ad([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:V(e.onBlur,()=>v(!1))})})}),Td=`RovingFocusGroupItem`,Ed=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=ni(),l=a||c,u=Sd(Td,n),d=u.currentTabStopId===l,f=vd(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return P.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,F.jsx)(_d.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(mi.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=kd(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?jd(n,r+1):n.slice(r+1)}setTimeout(()=>Ad(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});Ed.displayName=Td;var Dd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Od(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function kd(e,t,n){let r=Od(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Dd[r]}function Ad(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Md=Cd,Nd=Ed,Q=[`Enter`,` `],Pd=[`ArrowDown`,`PageUp`,`Home`],Fd=[`ArrowUp`,`PageDown`,`End`],Id=[...Pd,...Fd],Ld={ltr:[...Q,`ArrowRight`],rtl:[...Q,`ArrowLeft`]},Rd={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},zd=`Menu`,[Bd,Vd,Hd]=Nc(zd),[Ud,Wd]=Zr(zd,[Hd,Ju,Z]),Gd=Ju(),Kd=Z(),[qd,Jd]=Ud(zd),[Yd,Xd]=Ud(zd),Zd=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Gd(t),[c,l]=P.useState(null),u=P.useRef(!1),d=gi(a),f=Fc(i);return P.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,F.jsx)(ud,{...s,children:(0,F.jsx)(qd,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,F.jsx)(Yd,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Zd.displayName=zd;var Qd=`MenuAnchor`,$d=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Gd(n);return(0,F.jsx)(dd,{...i,...r,ref:t})});$d.displayName=Qd;var ef=`MenuPortal`,[tf,nf]=Ud(ef,{forceMount:void 0}),rf=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Jd(ef,t);return(0,F.jsx)(tf,{scope:t,forceMount:n,children:(0,F.jsx)(Yi,{present:n||a.open,children:(0,F.jsx)(qi,{asChild:!0,container:i,children:r})})})};rf.displayName=ef;var af=`MenuContent`,[of,sf]=Ud(af),cf=P.forwardRef((e,t)=>{let n=nf(af,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Jd(af,e.__scopeMenu),o=Xd(af,e.__scopeMenu);return(0,F.jsx)(Bd.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Yi,{present:r||a.open,children:(0,F.jsx)(Bd.Slot,{scope:e.__scopeMenu,children:o.modal?(0,F.jsx)(lf,{...i,ref:t}):(0,F.jsx)(uf,{...i,ref:t})})})})}),lf=P.forwardRef((e,t)=>{let n=Jd(af,e.__scopeMenu),r=P.useRef(null),i=dn(t,r);return P.useEffect(()=>{let e=r.current;if(e)return yo(e)},[]),(0,F.jsx)(ff,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),uf=P.forwardRef((e,t)=>{let n=Jd(af,e.__scopeMenu);return(0,F.jsx)(ff,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),df=ci(`MenuContent.ScrollLock`),ff=P.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Jd(af,n),_=Xd(af,n),v=Gd(n),y=Kd(n),b=Vd(n),[x,S]=P.useState(null),C=P.useRef(null),w=dn(t,C,g.onContentChange),T=P.useRef(0),ee=P.useRef(``),te=P.useRef(0),E=P.useRef(null),ne=P.useRef(`right`),re=P.useRef(0),ie=m?U:P.Fragment,D=m?{as:df,allowPinchZoom:!0}:void 0,O=e=>{let t=ee.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Xf(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};P.useEffect(()=>()=>window.clearTimeout(T.current),[]),ea();let ae=P.useCallback(e=>ne.current===E.current?.side&&Qf(e,E.current?.area),[]);return(0,F.jsx)(of,{scope:n,searchRef:ee,onItemEnter:P.useCallback(e=>{ae(e)&&e.preventDefault()},[ae]),onItemLeave:P.useCallback(e=>{ae(e)||(C.current?.focus(),S(null))},[ae]),onTriggerLeave:P.useCallback(e=>{ae(e)&&e.preventDefault()},[ae]),pointerGraceTimerRef:te,onPointerGraceIntentChange:P.useCallback(e=>{E.current=e},[]),children:(0,F.jsx)(ie,{...D,children:(0,F.jsx)(Pi,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,F.jsx)(wi,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,F.jsx)(Md,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:V(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,F.jsx)(fd,{role:`menu`,"aria-orientation":`vertical`,"data-state":Gf(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&O(e.key));let i=C.current;if(e.target!==i||!Id.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Fd.includes(e.key)&&a.reverse(),Jf(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),ee.current=``)}),onPointerMove:V(e.onPointerMove,$f(e=>{let t=e.target,n=re.current!==e.clientX;e.currentTarget.contains(t)&&n&&(ne.current=e.clientX>re.current?`right`:`left`,re.current=e.clientX)}))})})})})})})});cf.displayName=af;var pf=`MenuGroup`,mf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(mi.div,{role:`group`,...r,ref:t})});mf.displayName=pf;var hf=`MenuLabel`,gf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(mi.div,{...r,ref:t})});gf.displayName=hf;var _f=`MenuItem`,vf=`menu.itemSelect`,yf=P.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=P.useRef(null),o=Xd(_f,e.__scopeMenu),s=sf(_f,e.__scopeMenu),c=dn(t,a),l=P.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(vf,{bubbles:!0,cancelable:!0});e.addEventListener(vf,e=>r?.(e),{once:!0}),hi(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,F.jsx)(bf,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Q.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});yf.displayName=_f;var bf=P.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=sf(_f,n),s=Kd(n),c=P.useRef(null),l=dn(t,c),[u,d]=P.useState(!1),[f,p]=P.useState(``);return P.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,F.jsx)(Bd.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,F.jsx)(Nd,{asChild:!0,...s,focusable:!r,children:(0,F.jsx)(mi.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,$f(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,$f(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})}),xf=`MenuCheckboxItem`,Sf=P.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,F.jsx)(Af,{scope:e.__scopeMenu,checked:n,children:(0,F.jsx)(yf,{role:`menuitemcheckbox`,"aria-checked":Kf(n)?`mixed`:n,...i,ref:t,"data-state":qf(n),onSelect:V(i.onSelect,()=>r?.(Kf(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Sf.displayName=xf;var Cf=`MenuRadioGroup`,[wf,Tf]=Ud(Cf,{value:void 0,onValueChange:()=>{}}),Ef=P.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=gi(r);return(0,F.jsx)(wf,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,F.jsx)(mf,{...i,ref:t})})});Ef.displayName=Cf;var Df=`MenuRadioItem`,Of=P.forwardRef((e,t)=>{let{value:n,...r}=e,i=Tf(Df,e.__scopeMenu),a=n===i.value;return(0,F.jsx)(Af,{scope:e.__scopeMenu,checked:a,children:(0,F.jsx)(yf,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":qf(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Of.displayName=Df;var kf=`MenuItemIndicator`,[Af,jf]=Ud(kf,{checked:!1}),Mf=P.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=jf(kf,n);return(0,F.jsx)(Yi,{present:r||Kf(a.checked)||a.checked===!0,children:(0,F.jsx)(mi.span,{...i,ref:t,"data-state":qf(a.checked)})})});Mf.displayName=kf;var Nf=`MenuSeparator`,Pf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(mi.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Pf.displayName=Nf;var Ff=`MenuArrow`,If=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Gd(n);return(0,F.jsx)(pd,{...i,...r,ref:t})});If.displayName=Ff;var Lf=`MenuSub`,[Rf,zf]=Ud(Lf),Bf=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Jd(Lf,t),o=Gd(t),[s,c]=P.useState(null),[l,u]=P.useState(null),d=gi(i);return P.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,F.jsx)(ud,{...o,children:(0,F.jsx)(qd,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,F.jsx)(Rf,{scope:t,contentId:ni(),triggerId:ni(),trigger:s,onTriggerChange:c,children:n})})})};Bf.displayName=Lf;var Vf=`MenuSubTrigger`,Hf=P.forwardRef((e,t)=>{let n=Jd(Vf,e.__scopeMenu),r=Xd(Vf,e.__scopeMenu),i=zf(Vf,e.__scopeMenu),a=sf(Vf,e.__scopeMenu),o=P.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=P.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return P.useEffect(()=>u,[u]),P.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,F.jsx)($d,{asChild:!0,...l,children:(0,F.jsx)(bf,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Gf(n.open),...e,ref:un(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,$f(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,$f(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Ld[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Hf.displayName=Vf;var Uf=`MenuSubContent`,Wf=P.forwardRef((e,t)=>{let n=nf(af,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Jd(af,e.__scopeMenu),o=Xd(af,e.__scopeMenu),s=zf(Uf,e.__scopeMenu),c=P.useRef(null),l=dn(t,c);return(0,F.jsx)(Bd.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Yi,{present:r||a.open,children:(0,F.jsx)(Bd.Slot,{scope:e.__scopeMenu,children:(0,F.jsx)(ff,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Rd[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Wf.displayName=Uf;function Gf(e){return e?`open`:`closed`}function Kf(e){return e===`indeterminate`}function qf(e){return Kf(e)?`indeterminate`:e?`checked`:`unchecked`}function Jf(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Yf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Xf(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Yf(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Zf(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Qf(e,t){return t?Zf({x:e.clientX,y:e.clientY},t):!1}function $f(e){return t=>t.pointerType===`mouse`?e(t):void 0}var ep=Zd,tp=$d,np=rf,rp=cf,ip=mf,ap=gf,op=yf,sp=Sf,cp=Ef,lp=Of,up=Mf,dp=Pf,fp=If,pp=Hf,mp=Wf,hp=`DropdownMenu`,[gp,_p]=Zr(hp,[Wd]),vp=Wd(),[yp,bp]=gp(hp),xp=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=vp(t),l=P.useRef(null),[u,d]=ii({prop:i,defaultProp:a??!1,onChange:o,caller:hp});return(0,F.jsx)(yp,{scope:t,triggerId:ni(),triggerRef:l,contentId:ni(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,F.jsx)(ep,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};xp.displayName=hp;var Sp=`DropdownMenuTrigger`,Cp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=bp(Sp,n),o=vp(n);return(0,F.jsx)(tp,{asChild:!0,...o,children:(0,F.jsx)(mi.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:un(t,a.triggerRef),onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Cp.displayName=Sp;var wp=`DropdownMenuPortal`,Tp=e=>{let{__scopeDropdownMenu:t,...n}=e,r=vp(t);return(0,F.jsx)(np,{...r,...n})};Tp.displayName=wp;var Ep=`DropdownMenuContent`,Dp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bp(Ep,n),a=vp(n),o=P.useRef(!1);return(0,F.jsx)(rp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Dp.displayName=Ep;var Op=`DropdownMenuGroup`,kp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(ip,{...i,...r,ref:t})});kp.displayName=Op;var Ap=`DropdownMenuLabel`,jp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(ap,{...i,...r,ref:t})});jp.displayName=Ap;var Mp=`DropdownMenuItem`,Np=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(op,{...i,...r,ref:t})});Np.displayName=Mp;var Pp=`DropdownMenuCheckboxItem`,Fp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(sp,{...i,...r,ref:t})});Fp.displayName=Pp;var Ip=`DropdownMenuRadioGroup`,Lp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(cp,{...i,...r,ref:t})});Lp.displayName=Ip;var Rp=`DropdownMenuRadioItem`,zp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(lp,{...i,...r,ref:t})});zp.displayName=Rp;var Bp=`DropdownMenuItemIndicator`,Vp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(up,{...i,...r,ref:t})});Vp.displayName=Bp;var Hp=`DropdownMenuSeparator`,Up=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(dp,{...i,...r,ref:t})});Up.displayName=Hp;var Wp=`DropdownMenuArrow`,Gp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(fp,{...i,...r,ref:t})});Gp.displayName=Wp;var Kp=`DropdownMenuSubTrigger`,qp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(pp,{...i,...r,ref:t})});qp.displayName=Kp;var Jp=`DropdownMenuSubContent`,Yp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(mp,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yp.displayName=Jp;var Xp=xp,Zp=Cp,Qp=Tp,$p=Dp,em=jp,tm=Np,nm=Up,rm=Xp,im=Zp,am=P.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,F.jsx)(Qp,{children:(0,F.jsx)($p,{ref:r,sideOffset:t,className:B(`z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-card backdrop-blur-md p-1 text-foreground shadow-[var(--glass-shadow-lg)] 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})}));am.displayName=$p.displayName;var om=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(tm,{ref:r,className:B(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`ps-8`,e),...n}));om.displayName=tm.displayName;var sm=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(em,{ref:r,className:B(`px-2 py-1.5 text-sm font-semibold text-primary`,t&&`ps-8`,e),...n}));sm.displayName=em.displayName;var cm=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(nm,{ref:n,className:B(`-mx-1 my-1 h-px bg-[var(--glass-border)]`,e),...t}));cm.displayName=nm.displayName;function lm(e){return Array.isArray(e.items)}function um({group:e,pathname:t,search:n}){return(0,F.jsxs)(ks,{children:[e.title&&(0,F.jsx)(As,{children:e.title}),(0,F.jsx)(js,{children:e.items.map(e=>(0,F.jsx)(fm,{item:e,pathname:t,search:n},dm(e)))})]})}function dm(e){return lm(e)?`g:${e.title}`:`l:${e.url}`}function fm({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=xs();return lm(e)?r===`collapsed`&&!i?(0,F.jsx)(gm,{item:e,pathname:t,search:n}):(0,F.jsx)(mm,{item:e,pathname:t,search:n}):(0,F.jsx)(pm,{item:e,pathname:t,search:n})}function pm({item:e,pathname:t,search:n}){let{setOpenMobile:r}=xs();return(0,F.jsx)(Ms,{children:(0,F.jsx)(Ps,{asChild:!0,isActive:vm(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(_m,{sidebarLabel:!0,children:e.badge})]})})})}function mm({item:e,pathname:t,search:n}){let r=ym(e,t,n);return(0,F.jsx)(Ac,{defaultOpen:r,className:`group/collapsible`,asChild:!0,children:(0,F.jsxs)(Ms,{children:[(0,F.jsx)(jc,{asChild:!0,children:(0,F.jsxs)(Ps,{isActive:r,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(_m,{sidebarLabel:!0,children:e.badge}),(0,F.jsx)(xt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180 rtl:group-data-[state=open]/collapsible:-rotate-90`})]})}),(0,F.jsx)(Mc,{children:(0,F.jsx)(Fs,{children:e.items.map(e=>(0,F.jsx)(hm,{link:e,pathname:t,search:n},e.url))})})]})})}function hm({link:e,pathname:t,search:n}){let{setOpenMobile:r}=xs();return(0,F.jsx)(Is,{children:(0,F.jsx)(Ls,{asChild:!0,isActive:vm(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,onClick:()=>r(!1),children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{children:e.title}),e.badge&&(0,F.jsx)(_m,{children:e.badge})]})})})}function gm({item:e,pathname:t,search:n}){let r=ym(e,t,n),{direction:i}=W();return(0,F.jsx)(Ms,{children:(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Ps,{isActive:r,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,children:e.title}),(0,F.jsx)(xt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,F.jsxs)(am,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,F.jsx)(sm,{children:e.title}),(0,F.jsx)(cm,{}),e.items.map(e=>(0,F.jsx)(om,{asChild:!0,children:(0,F.jsx)(`a`,{href:e.url,className:B(vm(e,t,n)&&`font-medium`),children:e.title})},e.url))]})]})})}function _m({children:e,sidebarLabel:t=!1}){return(0,F.jsx)(`span`,{"data-sidebar-label":t||void 0,className:`ms-auto rounded-full bg-accent px-2 py-0.5 text-xs text-accent-foreground`,children:e})}function vm(e,t,n){let r=new URL(e.url,`http://x`);if(r.pathname!==t)return!1;if(!r.search)return!0;let i=new URLSearchParams(r.search),a=new URLSearchParams(n);for(let[e,t]of i.entries())if(a.get(e)!==t)return!1;return!0}function ym(e,t,n){return e.items.some(e=>vm(e,t,n))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}var bm={en:{"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account isn't on the admin staff list.`,"auth.accessDenied.askOwner":`Ask a site owner to add your GitHub login, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`AotterMantle admin`,"auth.signIn.title":`Sign in`,"auth.signIn.body":`Staff console. Access is gated by role after sign-in.`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"auth.signIn.noMethods":`No sign-in methods are configured for this site.`,"auth.signIn.unknownMethod":`Unsupported sign-in method: {kind}.`,"auth.signIn.method.social.button":`Continue with {provider}`,"auth.signIn.method.email-otp.body":`Sign in with a one-time code sent to your email.`,"auth.signIn.method.email-otp.emailLabel":`Email address`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`Send code`,"auth.signIn.method.email-otp.sendFailed":`Couldn't send the code. Check the email and try again.`,"auth.signIn.method.email-otp.sentTo":`We sent a code to {email}.`,"auth.signIn.method.email-otp.otpLabel":`One-time code`,"auth.signIn.method.email-otp.otpPlaceholder":`Enter the 6-digit code`,"auth.signIn.method.email-otp.verifyButton":`Verify and sign in`,"auth.signIn.method.email-otp.verifyFailed":`That code didn't match. Try again.`,"auth.signIn.method.email-otp.back":`Use a different email`,"auth.signIn.method.magic-link.body":`We'll email you a one-tap sign-in link.`,"auth.signIn.method.magic-link.emailLabel":`Email address`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`Send sign-in link`,"auth.signIn.method.magic-link.sendFailed":`Couldn't send the link. Check the email and try again.`,"auth.signIn.method.magic-link.sentTo":`We sent a sign-in link to {email}.`,"auth.signIn.method.magic-link.clickHint":`Click the link in the email to finish signing in. The link expires shortly.`,"auth.signIn.method.magic-link.anotherEmail":`Use a different email`,"common.signOut":`Sign out`,"common.viewSite":`View site`,"common.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.signedIn":`Signed in`,"console.eyebrow":`Owner console`,"console.description":`{title} is deployed. Use this console for orientation; use an MCP-capable agent for content operations.`,"console.descriptionFallback":`Use this console for orientation; use an MCP-capable agent for content operations.`,"console.agent.title":`Next: connect an agent`,"console.agent.body":`Give this Staff MCP URL to Claude Code, Codex, Cursor, or another MCP client. It will open a consent screen, then the agent can manage this site's content with your staff permission.`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`Public URL`,"console.loop.title":`Operational loop`,"console.loop.body":`Ask your content agent to list entries, create drafts, publish, unpublish, or adjust copy. Then refresh this console if you want a human-readable inventory.`,"console.loop.step1":`Open the public site and inspect the result.`,"console.loop.step2":`Connect a second agent through MCP.`,"console.loop.step3":`Tell the agent what content or workflow to change.`,"console.collections.eyebrow":`Content model`,"console.collections.title":`Collections`,"console.collections.body":`These collections come from your 4-atom manifest set. Translation child schemas are folded into their parent.`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`A blank project can add Schema manifests later; a starter should normally seed at least one collection.`,"console.collections.noDescription":`No description.`,"collection.breadcrumb":`Collections`,"collection.defaultDescription":`Entries in this collection.`,"collection.filter.all":`All`,"collection.empty.title":`No entries yet`,"collection.empty.withStatus":`No {status} entries in this collection.`,"collection.empty.all":`This collection has no entries yet.`,"collection.moreRows":`More rows are available, but cursor pagination is not wired in this admin shell yet.`,"collection.table.id":`ID`,"collection.table.title":`Title`,"collection.table.status":`Status`,"collection.table.locale":`Locale`,"collection.table.version":`Version`,"collection.table.updated":`Updated`,"collection.untitled":`(untitled)`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`More`,"nav.approvals":`Approvals`,"nav.settings":`Settings`,"status.draft":`Drafts`,"status.review":`In Review`,"status.published":`Published`,"status.archived":`Archived`,"preferences.heading":`Preferences`,"preferences.language":`Admin language`,"preferences.language.search":`Search languages...`,"preferences.language.noResults":`No languages found.`,"preferences.direction":`Text direction`,"preferences.direction.auto":`Text direction follows the selected language.`,"preferences.appearance":`Appearance`,"preferences.light":`Light`,"preferences.dark":`Dark`,"preferences.system":`System`,"preferences.ltr":`Left to right`,"preferences.rtl":`Right to left`,"preferences.page.title":`Personal preferences`,"preferences.page.body":`These preferences stay on this browser. They change the admin console only and do not modify site settings.`,"preferences.page.languageBody":`Choose the language used by system pages and admin chrome.`,"preferences.page.appearanceBody":`Choose light, dark, or follow your operating system.`,"preferences.page.open":`Preferences`,"settings.planned.title":`Settings are not wired yet`,"settings.planned.body":`Settings are for values persisted to the site, such as site config. Preferences stay local to this browser.`,"system.notFound.title":`Not found`,"system.notFound.plannedTitle":`Not wired yet`,"system.notFound.body":`No view registered for`,"system.notFound.back":`Back to home`},"zh-TW":{"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號不在 admin staff 清單內。`,"auth.accessDenied.askOwner":`請網站 owner 加入你的 GitHub login,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`AotterMantle 後台`,"auth.signIn.title":`登入`,"auth.signIn.body":`Staff 後台。登入後依角色決定能用的範圍。`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.button":`使用 {provider} 繼續`,"auth.signIn.method.email-otp.body":`輸入 email,我們會寄一次性驗證碼給你。`,"auth.signIn.method.email-otp.emailLabel":`電子郵件`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`寄送驗證碼`,"auth.signIn.method.email-otp.sendFailed":`驗證碼寄送失敗,請確認 email 後重試。`,"auth.signIn.method.email-otp.sentTo":`已寄驗證碼到 {email}。`,"auth.signIn.method.email-otp.otpLabel":`驗證碼`,"auth.signIn.method.email-otp.otpPlaceholder":`輸入 6 位驗證碼`,"auth.signIn.method.email-otp.verifyButton":`驗證並登入`,"auth.signIn.method.email-otp.verifyFailed":`驗證碼錯誤,請再試一次。`,"auth.signIn.method.email-otp.back":`用其他 email`,"auth.signIn.method.magic-link.body":`我們會寄一個一鍵登入連結給你。`,"auth.signIn.method.magic-link.emailLabel":`電子郵件`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`寄送登入連結`,"auth.signIn.method.magic-link.sendFailed":`連結寄送失敗,請確認 email 後重試。`,"auth.signIn.method.magic-link.sentTo":`已將登入連結寄到 {email}。`,"auth.signIn.method.magic-link.clickHint":`請點 email 裡的連結完成登入。連結很快會過期。`,"auth.signIn.method.magic-link.anotherEmail":`用其他 email`,"common.signOut":`登出`,"common.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.signedIn":`已登入`,"console.eyebrow":`Owner console`,"console.description":`{title} 已部署完成。這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.descriptionFallback":`這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.agent.title":`下一步:連接 agent`,"console.agent.body":`把這個 Staff MCP URL 交給 Claude Code、Codex、Cursor 或其他 MCP client。它會開啟 consent 畫面,授權後 agent 就能用你的 staff 權限管理網站內容。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公開網站 URL`,"console.loop.title":`營運閉環`,"console.loop.body":`你可以請內容 agent 列出 entries、建立草稿、發布、取消發布或調整文案。需要人工盤點時,再回這個 console 查看。`,"console.loop.step1":`先打開公開網站檢查結果。`,"console.loop.step2":`透過 MCP 連接第二個 agent。`,"console.loop.step3":`用自然語言告訴 agent 要改內容或流程。`,"console.collections.eyebrow":`內容模型`,"console.collections.title":`Collections`,"console.collections.body":`這些 collections 來自你的 4-atom manifest。翻譯 child schema 會折進 parent 顯示。`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`Blank project 之後可以新增 Schema manifests;starter 通常應該至少有一個 collection。`,"console.collections.noDescription":`沒有描述。`,"collection.breadcrumb":`Collections`,"collection.defaultDescription":`這個 collection 裡的 entries。`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有 entries`,"collection.empty.withStatus":`這個 collection 目前沒有 {status} entries。`,"collection.empty.all":`這個 collection 目前沒有 entries。`,"collection.moreRows":`還有更多資料,但這個 admin shell 尚未接上 cursor pagination。`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.untitled":`(未命名)`,"nav.home":`首頁`,"nav.content":`內容`,"nav.more":`更多`,"nav.approvals":`審核`,"nav.settings":`設定`,"status.draft":`草稿`,"status.review":`審核中`,"status.published":`已發布`,"status.archived":`已封存`,"preferences.heading":`偏好設定`,"preferences.language":`後台語言`,"preferences.language.search":`搜尋語言...`,"preferences.language.noResults":`找不到語言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向會跟隨選擇的語言。`,"preferences.appearance":`外觀`,"preferences.light":`淺色`,"preferences.dark":`深色`,"preferences.system":`跟隨系統`,"preferences.ltr":`左到右`,"preferences.rtl":`右到左`,"preferences.page.title":`個人偏好`,"preferences.page.body":`這些偏好只保存在這個瀏覽器,只影響 admin console,不會改動站台設定。`,"preferences.page.languageBody":`選擇系統頁與 admin chrome 使用的語言。`,"preferences.page.appearanceBody":`選擇淺色、深色,或跟隨作業系統。`,"preferences.page.open":`個人偏好`,"settings.planned.title":`Settings 尚未接上`,"settings.planned.body":`Settings 是會寫進站台的資料,例如 site config。Preferences 則只保存在這個瀏覽器。`,"system.notFound.title":`找不到頁面`,"system.notFound.plannedTitle":`尚未接上`,"system.notFound.body":`沒有 view 註冊在`,"system.notFound.back":`回首頁`},"zh-CN":{"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.signedIn":`已登录`,"console.agent.title":`下一步:连接 agent`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公开网站 URL`,"console.collections.title":`Collections`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"nav.home":`首页`,"nav.content":`内容`,"nav.more":`更多`,"nav.approvals":`审核`,"nav.settings":`设置`,"status.draft":`草稿`,"status.review":`审核中`,"status.published":`已发布`,"status.archived":`已归档`,"preferences.heading":`偏好设置`,"preferences.language":`后台语言`,"preferences.language.search":`搜索语言...`,"preferences.language.noResults":`找不到语言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向会跟随选择的语言。`,"preferences.appearance":`外观`,"preferences.light":`浅色`,"preferences.dark":`深色`,"preferences.system":`跟随系统`,"preferences.ltr":`从左到右`,"preferences.rtl":`从右到左`,"preferences.page.open":`个人偏好`,"preferences.page.title":`个人偏好`,"preferences.page.body":`这些偏好只保存在此浏览器,只影响 admin console,不会修改站点设置。`,"preferences.page.languageBody":`选择系统页面和 admin chrome 使用的语言。`,"preferences.page.appearanceBody":`选择浅色、深色,或跟随操作系统。`},de:{"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"console.agent.title":`Nächster Schritt: Agent verbinden`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.content":`Inhalte`,"nav.more":`Mehr`,"nav.approvals":`Freigaben`,"nav.settings":`Einstellungen`,"status.draft":`Entwürfe`,"status.review":`In Prüfung`,"status.published":`Veröffentlicht`,"status.archived":`Archiviert`,"preferences.heading":`Präferenzen`,"preferences.language":`Admin-Sprache`,"preferences.language.search":`Sprachen suchen...`,"preferences.language.noResults":`Keine Sprachen gefunden.`,"preferences.direction":`Textrichtung`,"preferences.direction.auto":`Die Textrichtung folgt der gewählten Sprache.`,"preferences.appearance":`Darstellung`,"preferences.light":`Hell`,"preferences.dark":`Dunkel`,"preferences.system":`System`,"preferences.ltr":`Links nach rechts`,"preferences.rtl":`Rechts nach links`,"preferences.page.open":`Präferenzen`,"preferences.page.title":`Persönliche Präferenzen`,"preferences.page.body":`Diese Präferenzen bleiben in diesem Browser. Sie ändern nur die Admin-Konsole und keine Website-Einstellungen.`,"preferences.page.languageBody":`Wähle die Sprache für Systemseiten und Admin-Chrome.`,"preferences.page.appearanceBody":`Wähle hell, dunkel oder dein Betriebssystem.`},es:{"auth.signIn.title":`Iniciar sesión`,"common.signOut":`Cerrar sesión`,"common.viewSite":`Ver sitio`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Error al cargar`,"common.signedIn":`Sesión iniciada`,"console.agent.title":`Siguiente: conectar un agente`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.content":`Contenido`,"nav.more":`Más`,"nav.approvals":`Aprobaciones`,"nav.settings":`Configuración`,"status.draft":`Borradores`,"status.review":`En revisión`,"status.published":`Publicado`,"status.archived":`Archivado`,"preferences.heading":`Preferencias`,"preferences.language":`Idioma del admin`,"preferences.language.search":`Buscar idiomas...`,"preferences.language.noResults":`No se encontraron idiomas.`,"preferences.direction":`Dirección del texto`,"preferences.direction.auto":`La dirección del texto sigue el idioma seleccionado.`,"preferences.appearance":`Apariencia`,"preferences.light":`Claro`,"preferences.dark":`Oscuro`,"preferences.system":`Sistema`,"preferences.ltr":`Izquierda a derecha`,"preferences.rtl":`Derecha a izquierda`,"preferences.page.open":`Preferencias`,"preferences.page.title":`Preferencias personales`,"preferences.page.body":`Estas preferencias se guardan en este navegador. Solo cambian la consola de administración y no modifican la configuración del sitio.`,"preferences.page.languageBody":`Elige el idioma de las páginas del sistema y la interfaz de administración.`,"preferences.page.appearanceBody":`Elige claro, oscuro o seguir el sistema operativo.`},fr:{"auth.signIn.title":`Se connecter`,"common.signOut":`Se déconnecter`,"common.viewSite":`Voir le site`,"common.copy":`Copier`,"common.open":`Ouvrir`,"common.failedToLoad":`Échec du chargement`,"common.signedIn":`Connecté`,"console.agent.title":`Étape suivante : connecter un agent`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.content":`Contenu`,"nav.more":`Plus`,"nav.approvals":`Approbations`,"nav.settings":`Paramètres`,"status.draft":`Brouillons`,"status.review":`En révision`,"status.published":`Publié`,"status.archived":`Archivé`,"preferences.heading":`Préférences`,"preferences.language":`Langue admin`,"preferences.language.search":`Rechercher une langue...`,"preferences.language.noResults":`Aucune langue trouvée.`,"preferences.direction":`Direction du texte`,"preferences.direction.auto":`La direction du texte suit la langue sélectionnée.`,"preferences.appearance":`Apparence`,"preferences.light":`Clair`,"preferences.dark":`Sombre`,"preferences.system":`Système`,"preferences.ltr":`Gauche à droite`,"preferences.rtl":`Droite à gauche`,"preferences.page.open":`Préférences`,"preferences.page.title":`Préférences personnelles`,"preferences.page.body":`Ces préférences restent dans ce navigateur. Elles modifient seulement la console admin, pas les paramètres du site.`,"preferences.page.languageBody":`Choisissez la langue des pages système et de l'interface admin.`,"preferences.page.appearanceBody":`Choisissez clair, sombre ou le thème du système.`},it:{"auth.signIn.title":`Accedi`,"common.signOut":`Esci`,"common.viewSite":`Vedi sito`,"common.copy":`Copia`,"common.open":`Apri`,"common.failedToLoad":`Caricamento non riuscito`,"common.signedIn":`Accesso effettuato`,"console.agent.title":`Prossimo: collega un agente`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.content":`Contenuti`,"nav.more":`Altro`,"nav.approvals":`Approvazioni`,"nav.settings":`Impostazioni`,"status.draft":`Bozze`,"status.review":`In revisione`,"status.published":`Pubblicato`,"status.archived":`Archiviato`,"preferences.heading":`Preferenze`,"preferences.language":`Lingua admin`,"preferences.language.search":`Cerca lingue...`,"preferences.language.noResults":`Nessuna lingua trovata.`,"preferences.direction":`Direzione testo`,"preferences.direction.auto":`La direzione del testo segue la lingua selezionata.`,"preferences.appearance":`Aspetto`,"preferences.light":`Chiaro`,"preferences.dark":`Scuro`,"preferences.system":`Sistema`,"preferences.ltr":`Da sinistra a destra`,"preferences.rtl":`Da destra a sinistra`,"preferences.page.open":`Preferenze`,"preferences.page.title":`Preferenze personali`,"preferences.page.body":`Queste preferenze restano in questo browser. Modificano solo la console admin e non le impostazioni del sito.`,"preferences.page.languageBody":`Scegli la lingua delle pagine di sistema e dell'interfaccia admin.`,"preferences.page.appearanceBody":`Scegli chiaro, scuro o segui il sistema operativo.`},ja:{"auth.signIn.title":`サインイン`,"auth.signIn.body":`管理コンソールです。サインイン後にロールでアクセスを判定します。`,"auth.signIn.methodsLoadFailed":`サインイン方法を読み込めませんでした。再読み込みしてください。`,"auth.signIn.noMethods":`このサイトにはサインイン方法が設定されていません。`,"auth.signIn.unknownMethod":`未対応のサインイン方法: {kind}`,"auth.signIn.method.social.button":`{provider} でサインイン`,"auth.signIn.method.email-otp.body":`メールに届くワンタイムコードでサインインします。`,"auth.signIn.method.email-otp.emailLabel":`メールアドレス`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`コードを送信`,"auth.signIn.method.email-otp.sendFailed":`コードの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.email-otp.sentTo":`{email} にコードを送信しました。`,"auth.signIn.method.email-otp.otpLabel":`ワンタイムコード`,"auth.signIn.method.email-otp.otpPlaceholder":`6 桁のコードを入力`,"auth.signIn.method.email-otp.verifyButton":`コードを確認してサインイン`,"auth.signIn.method.email-otp.verifyFailed":`コードが一致しません。もう一度入力してください。`,"auth.signIn.method.email-otp.back":`別のメールアドレスを使う`,"auth.signIn.method.magic-link.body":`ワンタップでサインインできるリンクをメールでお送りします。`,"auth.signIn.method.magic-link.emailLabel":`メールアドレス`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`サインインリンクを送信`,"auth.signIn.method.magic-link.sendFailed":`リンクの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.magic-link.sentTo":`{email} にサインインリンクを送信しました。`,"auth.signIn.method.magic-link.clickHint":`メール内のリンクをクリックしてサインインを完了してください。リンクはまもなく失効します。`,"auth.signIn.method.magic-link.anotherEmail":`別のメールアドレスを使う`,"common.signOut":`サインアウト`,"common.viewSite":`サイトを見る`,"common.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"console.agent.title":`次へ: agent を接続`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.content":`コンテンツ`,"nav.more":`その他`,"nav.approvals":`承認`,"nav.settings":`設定`,"status.draft":`下書き`,"status.review":`レビュー中`,"status.published":`公開済み`,"status.archived":`アーカイブ済み`,"preferences.heading":`環境設定`,"preferences.language":`管理画面の言語`,"preferences.language.search":`言語を検索...`,"preferences.language.noResults":`言語が見つかりません。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向は選択した言語に従います。`,"preferences.appearance":`外観`,"preferences.light":`ライト`,"preferences.dark":`ダーク`,"preferences.system":`システム`,"preferences.ltr":`左から右`,"preferences.rtl":`右から左`,"preferences.page.open":`環境設定`,"preferences.page.title":`個人設定`,"preferences.page.body":`これらの設定はこのブラウザにのみ保存されます。管理コンソールだけに影響し、サイト設定は変更しません。`,"preferences.page.languageBody":`システムページと管理 UI で使う言語を選びます。`,"preferences.page.appearanceBody":`ライト、ダーク、またはシステム設定に合わせます。`},ko:{"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"console.agent.title":`다음: agent 연결`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.content":`콘텐츠`,"nav.more":`더보기`,"nav.approvals":`승인`,"nav.settings":`설정`,"status.draft":`초안`,"status.review":`검토 중`,"status.published":`게시됨`,"status.archived":`보관됨`,"preferences.heading":`환경설정`,"preferences.language":`관리 언어`,"preferences.language.search":`언어 검색...`,"preferences.language.noResults":`언어를 찾을 수 없습니다.`,"preferences.direction":`텍스트 방향`,"preferences.direction.auto":`텍스트 방향은 선택한 언어를 따릅니다.`,"preferences.appearance":`화면 모드`,"preferences.light":`라이트`,"preferences.dark":`다크`,"preferences.system":`시스템`,"preferences.ltr":`왼쪽에서 오른쪽`,"preferences.rtl":`오른쪽에서 왼쪽`,"preferences.page.open":`환경설정`,"preferences.page.title":`개인 환경설정`,"preferences.page.body":`이 설정은 이 브라우저에만 저장됩니다. 관리 콘솔에만 적용되며 사이트 설정은 변경하지 않습니다.`,"preferences.page.languageBody":`시스템 페이지와 관리 UI에 사용할 언어를 선택합니다.`,"preferences.page.appearanceBody":`라이트, 다크 또는 운영체제 설정을 따르도록 선택합니다.`},"pt-BR":{"auth.signIn.title":`Entrar`,"common.signOut":`Sair`,"common.viewSite":`Ver site`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Falha ao carregar`,"common.signedIn":`Conectado`,"console.agent.title":`Próximo: conectar um agente`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.content":`Conteúdo`,"nav.more":`Mais`,"nav.approvals":`Aprovações`,"nav.settings":`Configurações`,"status.draft":`Rascunhos`,"status.review":`Em revisão`,"status.published":`Publicado`,"status.archived":`Arquivado`,"preferences.heading":`Preferências`,"preferences.language":`Idioma do admin`,"preferences.language.search":`Pesquisar idiomas...`,"preferences.language.noResults":`Nenhum idioma encontrado.`,"preferences.direction":`Direção do texto`,"preferences.direction.auto":`A direção do texto segue o idioma selecionado.`,"preferences.appearance":`Aparência`,"preferences.light":`Claro`,"preferences.dark":`Escuro`,"preferences.system":`Sistema`,"preferences.ltr":`Esquerda para direita`,"preferences.rtl":`Direita para esquerda`,"preferences.page.open":`Preferências`,"preferences.page.title":`Preferências pessoais`,"preferences.page.body":`Estas preferências ficam neste navegador. Elas mudam apenas o console admin e não alteram as configurações do site.`,"preferences.page.languageBody":`Escolha o idioma das páginas do sistema e da interface admin.`,"preferences.page.appearanceBody":`Escolha claro, escuro ou seguir o sistema operacional.`},ru:{"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"console.agent.title":`Далее: подключите агента`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.content":`Контент`,"nav.more":`Еще`,"nav.approvals":`Одобрения`,"nav.settings":`Настройки`,"status.draft":`Черновики`,"status.review":`На проверке`,"status.published":`Опубликовано`,"status.archived":`Архив`,"preferences.heading":`Предпочтения`,"preferences.language":`Язык админки`,"preferences.language.search":`Поиск языков...`,"preferences.language.noResults":`Языки не найдены.`,"preferences.direction":`Направление текста`,"preferences.direction.auto":`Направление текста следует выбранному языку.`,"preferences.appearance":`Внешний вид`,"preferences.light":`Светлая`,"preferences.dark":`Темная`,"preferences.system":`Система`,"preferences.ltr":`Слева направо`,"preferences.rtl":`Справа налево`,"preferences.page.open":`Предпочтения`,"preferences.page.title":`Личные предпочтения`,"preferences.page.body":`Эти предпочтения хранятся в этом браузере. Они меняют только админ-консоль и не изменяют настройки сайта.`,"preferences.page.languageBody":`Выберите язык системных страниц и интерфейса админки.`,"preferences.page.appearanceBody":`Выберите светлую, темную тему или тему системы.`},nl:{"auth.signIn.title":`Inloggen`,"common.signOut":`Uitloggen`,"common.viewSite":`Site bekijken`,"common.copy":`Kopiëren`,"common.open":`Openen`,"common.failedToLoad":`Laden mislukt`,"common.signedIn":`Ingelogd`,"console.agent.title":`Volgende stap: agent verbinden`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`Meer`,"nav.approvals":`Goedkeuringen`,"nav.settings":`Instellingen`,"status.draft":`Concepten`,"status.review":`In review`,"status.published":`Gepubliceerd`,"status.archived":`Gearchiveerd`,"preferences.heading":`Voorkeuren`,"preferences.language":`Beheertaal`,"preferences.language.search":`Talen zoeken...`,"preferences.language.noResults":`Geen talen gevonden.`,"preferences.direction":`Tekstrichting`,"preferences.direction.auto":`De tekstrichting volgt de gekozen taal.`,"preferences.appearance":`Weergave`,"preferences.light":`Licht`,"preferences.dark":`Donker`,"preferences.system":`Systeem`,"preferences.ltr":`Links naar rechts`,"preferences.rtl":`Rechts naar links`,"preferences.page.open":`Voorkeuren`,"preferences.page.title":`Persoonlijke voorkeuren`,"preferences.page.body":`Deze voorkeuren blijven in deze browser. Ze wijzigen alleen de adminconsole en niet de site-instellingen.`,"preferences.page.languageBody":`Kies de taal voor systeempagina's en de admininterface.`,"preferences.page.appearanceBody":`Kies licht, donker of volg het besturingssysteem.`},pl:{"auth.signIn.title":`Zaloguj się`,"common.signOut":`Wyloguj się`,"common.viewSite":`Zobacz stronę`,"common.copy":`Kopiuj`,"common.open":`Otwórz`,"common.failedToLoad":`Nie udało się załadować`,"common.signedIn":`Zalogowano`,"console.agent.title":`Dalej: połącz agenta`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.content":`Treści`,"nav.more":`Więcej`,"nav.approvals":`Zatwierdzenia`,"nav.settings":`Ustawienia`,"status.draft":`Szkice`,"status.review":`W recenzji`,"status.published":`Opublikowane`,"status.archived":`Zarchiwizowane`,"preferences.heading":`Preferencje`,"preferences.language":`Język panelu`,"preferences.language.search":`Szukaj języków...`,"preferences.language.noResults":`Nie znaleziono języków.`,"preferences.direction":`Kierunek tekstu`,"preferences.direction.auto":`Kierunek tekstu wynika z wybranego języka.`,"preferences.appearance":`Wygląd`,"preferences.light":`Jasny`,"preferences.dark":`Ciemny`,"preferences.system":`System`,"preferences.ltr":`Od lewej do prawej`,"preferences.rtl":`Od prawej do lewej`,"preferences.page.open":`Preferencje`,"preferences.page.title":`Preferencje osobiste`,"preferences.page.body":`Te preferencje są zapisane w tej przeglądarce. Zmieniają tylko konsolę administracyjną, nie ustawienia strony.`,"preferences.page.languageBody":`Wybierz język stron systemowych i interfejsu admina.`,"preferences.page.appearanceBody":`Wybierz jasny, ciemny lub zgodny z systemem.`},tr:{"auth.signIn.title":`Oturum aç`,"common.signOut":`Çıkış yap`,"common.viewSite":`Siteyi görüntüle`,"common.copy":`Kopyala`,"common.open":`Aç`,"common.failedToLoad":`Yüklenemedi`,"common.signedIn":`Oturum açık`,"console.agent.title":`Sonraki: agent bağla`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.content":`İçerik`,"nav.more":`Daha fazla`,"nav.approvals":`Onaylar`,"nav.settings":`Ayarlar`,"status.draft":`Taslaklar`,"status.review":`İncelemede`,"status.published":`Yayında`,"status.archived":`Arşivlendi`,"preferences.heading":`Tercihler`,"preferences.language":`Yönetici dili`,"preferences.language.search":`Dil ara...`,"preferences.language.noResults":`Dil bulunamadı.`,"preferences.direction":`Metin yönü`,"preferences.direction.auto":`Metin yönü seçilen dili izler.`,"preferences.appearance":`Görünüm`,"preferences.light":`Açık`,"preferences.dark":`Koyu`,"preferences.system":`Sistem`,"preferences.ltr":`Soldan sağa`,"preferences.rtl":`Sağdan sola`,"preferences.page.open":`Tercihler`,"preferences.page.title":`Kişisel tercihler`,"preferences.page.body":`Bu tercihler bu tarayıcıda kalır. Yalnızca yönetim konsolunu değiştirir, site ayarlarını değiştirmez.`,"preferences.page.languageBody":`Sistem sayfaları ve yönetim arayüzü için dili seçin.`,"preferences.page.appearanceBody":`Açık, koyu veya işletim sistemini takip et seçeneğini seçin.`},vi:{"auth.signIn.title":`Đăng nhập`,"common.signOut":`Đăng xuất`,"common.viewSite":`Xem trang`,"common.copy":`Sao chép`,"common.open":`Mở`,"common.failedToLoad":`Tải thất bại`,"common.signedIn":`Đã đăng nhập`,"console.agent.title":`Tiếp theo: kết nối agent`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.content":`Nội dung`,"nav.more":`Thêm`,"nav.approvals":`Phê duyệt`,"nav.settings":`Cài đặt`,"status.draft":`Bản nháp`,"status.review":`Đang duyệt`,"status.published":`Đã xuất bản`,"status.archived":`Đã lưu trữ`,"preferences.heading":`Tùy chọn`,"preferences.language":`Ngôn ngữ quản trị`,"preferences.language.search":`Tìm ngôn ngữ...`,"preferences.language.noResults":`Không tìm thấy ngôn ngữ.`,"preferences.direction":`Hướng văn bản`,"preferences.direction.auto":`Hướng văn bản theo ngôn ngữ đã chọn.`,"preferences.appearance":`Giao diện`,"preferences.light":`Sáng`,"preferences.dark":`Tối`,"preferences.system":`Hệ thống`,"preferences.ltr":`Trái sang phải`,"preferences.rtl":`Phải sang trái`,"preferences.page.open":`Tùy chọn`,"preferences.page.title":`Tùy chọn cá nhân`,"preferences.page.body":`Các tùy chọn này chỉ lưu trong trình duyệt này. Chúng chỉ thay đổi admin console và không sửa cài đặt trang.`,"preferences.page.languageBody":`Chọn ngôn ngữ cho trang hệ thống và giao diện quản trị.`,"preferences.page.appearanceBody":`Chọn sáng, tối hoặc theo hệ điều hành.`},cs:{"auth.signIn.title":`Přihlásit se`,"common.signOut":`Odhlásit se`,"common.viewSite":`Zobrazit web`,"common.copy":`Kopírovat`,"common.open":`Otevřít`,"common.failedToLoad":`Načtení selhalo`,"common.signedIn":`Přihlášeno`,"console.agent.title":`Další: připojit agenta`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.content":`Obsah`,"nav.more":`Více`,"nav.approvals":`Schválení`,"nav.settings":`Nastavení`,"status.draft":`Koncepty`,"status.review":`V kontrole`,"status.published":`Publikováno`,"status.archived":`Archivováno`,"preferences.heading":`Předvolby`,"preferences.language":`Jazyk administrace`,"preferences.language.search":`Hledat jazyky...`,"preferences.language.noResults":`Nenalezeny žádné jazyky.`,"preferences.direction":`Směr textu`,"preferences.direction.auto":`Směr textu se řídí vybraným jazykem.`,"preferences.appearance":`Vzhled`,"preferences.light":`Světlý`,"preferences.dark":`Tmavý`,"preferences.system":`Systém`,"preferences.ltr":`Zleva doprava`,"preferences.rtl":`Zprava doleva`,"preferences.page.open":`Předvolby`,"preferences.page.title":`Osobní předvolby`,"preferences.page.body":`Tyto předvolby zůstávají v tomto prohlížeči. Mění jen administrační konzoli, ne nastavení webu.`,"preferences.page.languageBody":`Vyberte jazyk systémových stránek a administračního rozhraní.`,"preferences.page.appearanceBody":`Vyberte světlý, tmavý nebo systémový režim.`},uk:{"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"console.agent.title":`Далі: підключіть агента`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.content":`Контент`,"nav.more":`Більше`,"nav.approvals":`Схвалення`,"nav.settings":`Налаштування`,"status.draft":`Чернетки`,"status.review":`На перевірці`,"status.published":`Опубліковано`,"status.archived":`Архівовано`,"preferences.heading":`Параметри`,"preferences.language":`Мова адмінки`,"preferences.language.search":`Пошук мов...`,"preferences.language.noResults":`Мови не знайдено.`,"preferences.direction":`Напрям тексту`,"preferences.direction.auto":`Напрям тексту відповідає вибраній мові.`,"preferences.appearance":`Вигляд`,"preferences.light":`Світла`,"preferences.dark":`Темна`,"preferences.system":`Система`,"preferences.ltr":`Зліва направо`,"preferences.rtl":`Справа наліво`,"preferences.page.open":`Параметри`,"preferences.page.title":`Особисті параметри`,"preferences.page.body":`Ці параметри зберігаються в цьому браузері. Вони змінюють лише адмін-консоль, а не налаштування сайту.`,"preferences.page.languageBody":`Виберіть мову системних сторінок та адмін-інтерфейсу.`,"preferences.page.appearanceBody":`Виберіть світлу, темну тему або тему системи.`},ar:{"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"console.agent.title":`التالي: وصّل الوكيل`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.content":`المحتوى`,"nav.more":`المزيد`,"nav.approvals":`الموافقات`,"nav.settings":`الإعدادات`,"status.draft":`مسودات`,"status.review":`قيد المراجعة`,"status.published":`منشور`,"status.archived":`مؤرشف`,"preferences.heading":`التفضيلات`,"preferences.language":`لغة الإدارة`,"preferences.language.search":`ابحث عن اللغات...`,"preferences.language.noResults":`لم يتم العثور على لغات.`,"preferences.direction":`اتجاه النص`,"preferences.direction.auto":`يتبع اتجاه النص اللغة المحددة.`,"preferences.appearance":`المظهر`,"preferences.light":`فاتح`,"preferences.dark":`داكن`,"preferences.system":`النظام`,"preferences.ltr":`من اليسار إلى اليمين`,"preferences.rtl":`من اليمين إلى اليسار`,"preferences.page.open":`التفضيلات`,"preferences.page.title":`التفضيلات الشخصية`,"preferences.page.body":`تبقى هذه التفضيلات في هذا المتصفح. إنها تغيّر وحدة الإدارة فقط ولا تعدّل إعدادات الموقع.`,"preferences.page.languageBody":`اختر لغة صفحات النظام وواجهة الإدارة.`,"preferences.page.appearanceBody":`اختر الوضع الفاتح أو الداكن أو اتبع نظام التشغيل.`},he:{"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"console.agent.title":`הבא: חבר agent`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.content":`תוכן`,"nav.more":`עוד`,"nav.approvals":`אישורים`,"nav.settings":`הגדרות`,"status.draft":`טיוטות`,"status.review":`בבדיקה`,"status.published":`פורסם`,"status.archived":`בארכיון`,"preferences.heading":`העדפות`,"preferences.language":`שפת ניהול`,"preferences.language.search":`חפש שפות...`,"preferences.language.noResults":`לא נמצאו שפות.`,"preferences.direction":`כיוון טקסט`,"preferences.direction.auto":`כיוון הטקסט נקבע לפי השפה שנבחרה.`,"preferences.appearance":`מראה`,"preferences.light":`בהיר`,"preferences.dark":`כהה`,"preferences.system":`מערכת`,"preferences.ltr":`משמאל לימין`,"preferences.rtl":`מימין לשמאל`,"preferences.page.open":`העדפות`,"preferences.page.title":`העדפות אישיות`,"preferences.page.body":`העדפות אלה נשמרות בדפדפן הזה. הן משנות רק את מסוף הניהול ולא את הגדרות האתר.`,"preferences.page.languageBody":`בחר את שפת דפי המערכת וממשק הניהול.`,"preferences.page.appearanceBody":`בחר בהיר, כהה או לפי מערכת ההפעלה.`},fa:{"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شده‌اید`,"console.agent.title":`بعدی: اتصال agent`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.content":`محتوا`,"nav.more":`بیشتر`,"nav.approvals":`تأییدها`,"nav.settings":`تنظیمات`,"status.draft":`پیش‌نویس‌ها`,"status.review":`در بازبینی`,"status.published":`منتشر شده`,"status.archived":`بایگانی شده`,"preferences.heading":`ترجیحات`,"preferences.language":`زبان مدیریت`,"preferences.language.search":`جستجوی زبان‌ها...`,"preferences.language.noResults":`زبانی پیدا نشد.`,"preferences.direction":`جهت متن`,"preferences.direction.auto":`جهت متن از زبان انتخاب‌شده پیروی می‌کند.`,"preferences.appearance":`ظاهر`,"preferences.light":`روشن`,"preferences.dark":`تیره`,"preferences.system":`سیستم`,"preferences.ltr":`چپ به راست`,"preferences.rtl":`راست به چپ`,"preferences.page.open":`ترجیحات`,"preferences.page.title":`ترجیحات شخصی`,"preferences.page.body":`این ترجیحات در همین مرورگر ذخیره می‌شود. فقط کنسول مدیریت را تغییر می‌دهد و تنظیمات سایت را تغییر نمی‌دهد.`,"preferences.page.languageBody":`زبان صفحات سیستمی و رابط مدیریت را انتخاب کنید.`,"preferences.page.appearanceBody":`روشن، تیره یا پیروی از سیستم‌عامل را انتخاب کنید.`},th:{"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"console.agent.title":`ถัดไป: เชื่อมต่อ agent`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.content":`เนื้อหา`,"nav.more":`เพิ่มเติม`,"nav.approvals":`การอนุมัติ`,"nav.settings":`การตั้งค่า`,"status.draft":`ฉบับร่าง`,"status.review":`กำลังตรวจสอบ`,"status.published":`เผยแพร่แล้ว`,"status.archived":`เก็บถาวร`,"preferences.heading":`ค่ากำหนด`,"preferences.language":`ภาษาผู้ดูแล`,"preferences.language.search":`ค้นหาภาษา...`,"preferences.language.noResults":`ไม่พบภาษา`,"preferences.direction":`ทิศทางข้อความ`,"preferences.direction.auto":`ทิศทางข้อความจะตามภาษาที่เลือก`,"preferences.appearance":`รูปลักษณ์`,"preferences.light":`สว่าง`,"preferences.dark":`มืด`,"preferences.system":`ระบบ`,"preferences.ltr":`ซ้ายไปขวา`,"preferences.rtl":`ขวาไปซ้าย`,"preferences.page.open":`ค่ากำหนด`,"preferences.page.title":`ค่ากำหนดส่วนตัว`,"preferences.page.body":`ค่ากำหนดเหล่านี้จะอยู่ในเบราว์เซอร์นี้เท่านั้น และมีผลกับ admin console โดยไม่แก้การตั้งค่าเว็บไซต์`,"preferences.page.languageBody":`เลือกภาษาสำหรับหน้าระบบและส่วนติดต่อผู้ดูแล`,"preferences.page.appearanceBody":`เลือกสว่าง มืด หรือใช้ตามระบบปฏิบัติการ`},id:{"auth.signIn.title":`Masuk`,"common.signOut":`Keluar`,"common.viewSite":`Lihat situs`,"common.copy":`Salin`,"common.open":`Buka`,"common.failedToLoad":`Gagal memuat`,"common.signedIn":`Sudah masuk`,"console.agent.title":`Berikutnya: hubungkan agent`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.content":`Konten`,"nav.more":`Lainnya`,"nav.approvals":`Persetujuan`,"nav.settings":`Pengaturan`,"status.draft":`Draf`,"status.review":`Dalam ulasan`,"status.published":`Terbit`,"status.archived":`Arsip`,"preferences.heading":`Preferensi`,"preferences.language":`Bahasa admin`,"preferences.language.search":`Cari bahasa...`,"preferences.language.noResults":`Bahasa tidak ditemukan.`,"preferences.direction":`Arah teks`,"preferences.direction.auto":`Arah teks mengikuti bahasa yang dipilih.`,"preferences.appearance":`Tampilan`,"preferences.light":`Terang`,"preferences.dark":`Gelap`,"preferences.system":`Sistem`,"preferences.ltr":`Kiri ke kanan`,"preferences.rtl":`Kanan ke kiri`,"preferences.page.open":`Preferensi`,"preferences.page.title":`Preferensi pribadi`,"preferences.page.body":`Preferensi ini tetap di browser ini. Preferensi hanya mengubah konsol admin dan tidak mengubah pengaturan situs.`,"preferences.page.languageBody":`Pilih bahasa untuk halaman sistem dan antarmuka admin.`,"preferences.page.appearanceBody":`Pilih terang, gelap, atau ikuti sistem operasi.`}};function $(e,t,n={}){let r=bm[e]?.[t]??bm.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function xm({login:e,role:t}){let{isMobile:n}=xs(),{language:r}=W(),i=(e??`?`).charAt(0).toUpperCase(),a=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsx)(js,{children:(0,F.jsx)(Ms,{children:(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Ps,{size:`lg`,className:`data-[state=open]:bg-accent/40`,children:[(0,F.jsx)(Sm,{avatarUrl:a,initial:i}),(0,F.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:e??`—`}),(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t??$(r,`common.signedIn`)})]}),(0,F.jsx)(St,{"data-sidebar-label":!0,className:`ms-auto size-4 text-muted-foreground`,"aria-hidden":!0})]})}),(0,F.jsxs)(am,{align:`end`,side:n?`bottom`:`right`,sideOffset:6,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,children:[(0,F.jsxs)(sm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(Sm,{avatarUrl:a,initial:i,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??$(r,`common.signedIn`)})]})]}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(Bt,{className:`size-4`,"aria-hidden":!0}),$(r,`preferences.page.open`)]})}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:Cm,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(Nt,{className:`size-4`,"aria-hidden":!0}),$(r,`common.signOut`)]})})]})]})})})}function Sm({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-lg`,`bg-primary/15 text-foreground/80 ring-1 ring-border`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full rounded-lg object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function Cm(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function wm({brand:e,groups:t,pathname:n,search:r,user:i}){let{variant:a}=$t(),{direction:o}=W();return(0,F.jsxs)(Ss,{side:o===`rtl`?`right`:`left`,variant:a===`floating`?`sidebar`:a,children:[(0,F.jsx)(Ts,{children:(0,F.jsx)(_c,{brand:e})}),(0,F.jsx)(Os,{}),(0,F.jsx)(Es,{children:t.map((e,t)=>(0,F.jsx)(um,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,F.jsx)(Os,{}),(0,F.jsx)(Ds,{children:(0,F.jsx)(xm,{login:i.login,role:i.role})})]})}var Tm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=gn(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Em=`Separator`,Dm=`horizontal`,Om=[`horizontal`,`vertical`],km=P.forwardRef((e,t)=>{let{decorative:n,orientation:r=Dm,...i}=e,a=Am(r)?r:Dm,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,F.jsx)(Tm.div,{"data-orientation":a,...o,...i,ref:t})});km.displayName=Em;function Am(e){return Om.includes(e)}var jm=km,Mm=P.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,F.jsx)(jm,{ref:i,decorative:n,orientation:t,className:B(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...r}));Mm.displayName=jm.displayName;function Nm({login:e,role:t}){let{language:n}=W(),r=(e??`?`).charAt(0).toUpperCase(),i=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{"aria-label":`Account menu`,className:B(`relative inline-flex size-8 items-center justify-center rounded-full`,`outline-hidden ring-1 ring-border`,`hover:ring-primary/40 transition-all`,`data-[state=open]:ring-primary`),children:(0,F.jsx)(Pm,{avatarUrl:i,initial:r})}),(0,F.jsxs)(am,{align:`end`,sideOffset:6,className:`w-56`,children:[(0,F.jsxs)(sm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(Pm,{avatarUrl:i,initial:r,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??$(n,`common.signedIn`)})]})]}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(Bt,{className:`size-4`,"aria-hidden":!0}),$(n,`preferences.page.open`)]})}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:Fm,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(Nt,{className:`size-4`,"aria-hidden":!0}),$(n,`common.signOut`)]})})]})]})}function Pm({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-full overflow-hidden`,`bg-primary/15 text-foreground/80`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function Fm(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function Im(){let{language:e,setLanguage:t}=W(),n=Xs.find(t=>t.value===e)??Xs[0];return(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Yr,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":$(e,`preferences.language`),children:[(0,F.jsx)(Mt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:n.nativeLabel})]})}),(0,F.jsxs)(am,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,F.jsx)(sm,{className:`label-eyebrow opacity-70`,children:$(e,`preferences.language`)}),Xs.map(n=>(0,F.jsxs)(om,{onSelect:()=>t(n.value),className:`justify-between`,children:[(0,F.jsx)(`span`,{children:n.nativeLabel}),(0,F.jsx)(bt,{"aria-hidden":!0,className:B(`size-4 text-primary`,n.value===e?`opacity-100`:`opacity-0`)})]},n.value))]})]})}function Lm(){let{language:e,theme:t,setTheme:n}=W(),r=Rm(e).find(e=>e.value===t),i=r?.icon??Pt;return(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Yr,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":$(e,`preferences.appearance`),children:[(0,F.jsx)(i,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:r?.label??$(e,`preferences.system`)})]})}),(0,F.jsxs)(am,{align:`end`,className:`w-44`,children:[(0,F.jsx)(sm,{className:`label-eyebrow opacity-70`,children:$(e,`preferences.appearance`)}),Rm(e).map(e=>{let r=e.icon;return(0,F.jsxs)(om,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(r,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,F.jsx)(bt,{"aria-hidden":!0,className:B(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function Rm(e){return[{value:`light`,label:$(e,`preferences.light`),icon:Vt},{value:`dark`,label:$(e,`preferences.dark`),icon:Ft},{value:`system`,label:$(e,`preferences.system`),icon:Pt}]}function zm({fixed:e=!1,className:t,children:n,user:r}){let[i,a]=P.useState(!1);return P.useEffect(()=>{if(!e)return;let t=()=>a(window.scrollY>10);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]),(0,F.jsxs)(`header`,{"data-slot":`header`,"data-scrolled":i||void 0,className:B(`z-20 flex h-14 shrink-0 items-center gap-2 px-4`,e?`sticky top-0 w-[inherit] backdrop-blur transition-shadow`:`border-b border-border/40`,i&&`shadow-sm`,`glass-strip`,t),children:[(0,F.jsx)(Cs,{className:`-ms-1`}),(0,F.jsx)(Mm,{orientation:`vertical`,className:`me-2 h-4`}),n,r?(0,F.jsxs)(`div`,{className:B(`flex items-center gap-2`,n?``:`ms-auto`),children:[(0,F.jsx)(Im,{}),(0,F.jsx)(Lm,{}),(0,F.jsx)(Nm,{login:r.login,role:r.role})]}):null]})}var Bm=`content`;function Vm({className:e}){return(0,F.jsx)(`a`,{href:`#${Bm}`,className:B(`fixed inset-inline-start-3 top-3 z-[999]`,`-translate-y-52 rounded-md bg-primary px-3 py-2 text-sm font-medium`,`text-primary-foreground shadow`,`focus-visible:translate-y-0 transition-transform`,`outline-2 outline-offset-2 outline-ring/40`,e),children:`Skip to main content`})}function Hm({fixed:e=!1,fluid:t=!1,className:n,children:r}){return(0,F.jsx)(`div`,{id:Bm,"data-layout":e?`fixed`:`auto`,className:B(`@container/content`,`px-4 py-6 sm:px-6`,e&&`flex grow flex-col overflow-hidden`,!t&&`@7xl/content:mx-auto @7xl/content:max-w-7xl`,`flex-1`,n),children:r})}function Um(e,t){switch(t){case`draft`:return $(e,`status.draft`);case`review`:return $(e,`status.review`);case`published`:return $(e,`status.published`);case`archived`:return $(e,`status.archived`)}}var Wm={title:`CMS`,subtitle:`admin`,href:`/admin`};function Gm({brand:e=Wm,fixed:t=!1,fluid:n=!1,children:r}){let{pathname:i,search:a}=Ys(),{language:o}=W(),s=lt({queryKey:[`me`],queryFn:()=>Vs.get(`/me`),retry:!1}),c=lt({queryKey:[`collections`],queryFn:async()=>(await Vs.get(`/collections`)).collections}),l=lt({queryKey:[`site`],queryFn:()=>Vs.get(`/site`)}),u=P.useMemo(()=>({...e,title:l.data?.brand??e.title,subtitle:l.data?.canonicalLocale??e.subtitle}),[e,l.data]),d=P.useMemo(()=>Km(c.data??[],o),[c.data,o]);return(0,F.jsx)(Qt,{children:(0,F.jsxs)(bs,{defaultOpen:tn()??!0,children:[(0,F.jsx)(Vm,{}),(0,F.jsx)(wm,{brand:u,groups:d,pathname:i,search:a,user:{login:s.data?.login??null,role:s.data?.role??null}}),(0,F.jsxs)(ws,{children:[(0,F.jsx)(zm,{fixed:!0,user:{login:s.data?.login??null,role:s.data?.role??null}}),(0,F.jsx)(Hm,{fixed:t,fluid:n,children:r})]}),(0,F.jsx)(gc,{})]})})}function Km(e,t){return[{items:[{title:$(t,`nav.home`),url:`/admin`,icon:jt}]},{title:$(t,`nav.content`),items:e.map(e=>({title:e.title,icon:kt,marker:e.hasTranslations?At:void 0,items:qm(e).map(n=>({title:Um(t,n),url:`/admin/c/${e.name}?status=${n}`}))}))},{title:$(t,`nav.more`),items:[{title:$(t,`nav.approvals`),url:`/admin/approvals`,icon:wt},{title:$(t,`nav.settings`),url:`/admin/settings`,icon:Bt}]}]}function qm(e){return e.lifecycle===`editorial`?Hs:Us}function Jm(){return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card w-full max-w-sm p-6`,children:[(0,F.jsx)(`div`,{className:`mb-4 h-4 w-24 animate-pulse rounded bg-muted`}),(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`div`,{className:`h-3 w-full animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 w-2/3 animate-pulse rounded bg-muted`})]})]})})}function Ym({error:e}){let{language:t}=W(),n=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:$(t,`auth.error.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})})}function Xm({login:e}){let{language:t}=W();return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-md p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,F.jsx)(Ht,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:$(t,`auth.accessDenied.title`)}),e?(0,F.jsxs)(`p`,{className:`mb-1 text-sm font-medium text-foreground`,children:[`GitHub: `,e]}):null,(0,F.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:$(t,`auth.accessDenied.noStaff`)}),(0,F.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:$(t,`auth.accessDenied.askOwner`)}),(0,F.jsxs)(Yr,{variant:`outline`,className:`w-full`,onClick:sh,children:[(0,F.jsx)(Nt,{className:`me-2 size-4`,"aria-hidden":!0}),$(t,`common.signOut`)]})]})})}var Zm=`w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,Qm=`first:mt-0 mt-4`,$m=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function eh(){let{language:e}=W(),t=new URLSearchParams(window.location.search).get(`return`)??`/admin`,[n,r]=P.useState(null),[i,a]=P.useState(null);return P.useEffect(()=>{let e=!1;async function t(){try{let t=await fetch(`/api/auth/methods`,{credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(e)return;r(n.methods??[])}catch(t){if(e)return;a(t instanceof Error?t.message:String(t))}}return t(),()=>{e=!0}},[]),(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8`,children:[(0,F.jsx)(`p`,{className:`label-eyebrow mb-2`,children:$(e,`auth.signIn.eyebrow`)}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:$(e,`auth.signIn.title`)}),i?(0,F.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,children:$(e,`auth.signIn.methodsLoadFailed`)}):null,n===null&&!i?(0,F.jsx)(`div`,{className:`space-y-2`,children:(0,F.jsx)(`div`,{className:`h-9 w-full animate-pulse rounded bg-muted`})}):null,n&&n.length===0?(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`auth.signIn.noMethods`)}):null,n&&n.length>0?(0,F.jsx)(`div`,{children:n.map(e=>(0,F.jsx)(th,{method:e,returnTo:t},e.kind===`social`?`social:${e.provider}`:e.kind))}):null]})})}function th({method:e,returnTo:t}){switch(e.kind){case`social`:return(0,F.jsx)(rh,{provider:e.provider,returnTo:t});case`email-otp`:return(0,F.jsx)(ih,{returnTo:t});case`magic-link`:return(0,F.jsx)(ah,{returnTo:t});default:return(0,F.jsx)(oh,{kind:e.kind})}}var nh={github:`GitHub`,google:`Google`,apple:`Apple`,"microsoft-entra-id":`Microsoft`,facebook:`Facebook`,discord:`Discord`,twitter:`Twitter / X`,linkedin:`LinkedIn`,spotify:`Spotify`,twitch:`Twitch`,gitlab:`GitLab`,tiktok:`TikTok`,reddit:`Reddit`,kick:`Kick`,vk:`VK`,naver:`Naver`,kakao:`Kakao`,line:`LINE`,slack:`Slack`,atlassian:`Atlassian`,zoom:`Zoom`,notion:`Notion`,figma:`Figma`,linear:`Linear`,vercel:`Vercel`,paypal:`PayPal`,huggingface:`Hugging Face`,cognito:`Cognito`,salesforce:`Salesforce`,polar:`Polar`,railway:`Railway`,roblox:`Roblox`,paybin:`Paybin`,wechat:`WeChat`,dropbox:`Dropbox`};function rh({provider:e,returnTo:t}){let{language:n}=W(),r=nh[e]??e,i=async()=>{let n=await fetch(`/api/auth/sign-in/social`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:e,callbackURL:t})});if(!n.ok)return;let r=await n.json();r.url&&(window.location.href=r.url)};return(0,F.jsx)(`div`,{className:Qm,children:(0,F.jsx)(Yr,{onClick:()=>void i(),className:`w-full`,children:$(n,`auth.signIn.method.social.button`,{provider:r})})})}function ih({returnTo:e}){let{language:t}=W(),[n,r]=P.useState(`email`),[i,a]=P.useState(``),[o,s]=P.useState(``),[c,l]=P.useState(!1),[u,d]=P.useState(null),f=async e=>{l(!0),d(null);try{await e()}finally{l(!1)}};return(0,F.jsxs)(`div`,{className:$m,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:$(t,`auth.signIn.method.email-otp.body`)}),n===`email`?(0,F.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i&&f(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,type:`sign-in`})})).ok){d($(t,`auth.signIn.method.email-otp.sendFailed`));return}r(`otp`)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:$(t,`auth.signIn.method.email-otp.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-email`,type:`email`,value:i,onChange:e=>a(e.currentTarget.value),placeholder:$(t,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`,className:Zm}),(0,F.jsx)(Yr,{type:`submit`,className:`w-full`,disabled:c||!i,children:$(t,`auth.signIn.method.email-otp.sendButton`)})]}):(0,F.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),o&&f(async()=>{if(!(await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,otp:o})})).ok){d($(t,`auth.signIn.method.email-otp.verifyFailed`));return}window.location.assign(e)})},className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:$(t,`auth.signIn.method.email-otp.sentTo`,{email:i})}),(0,F.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:$(t,`auth.signIn.method.email-otp.otpLabel`)}),(0,F.jsx)(`input`,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:o,onChange:e=>s(e.currentTarget.value),placeholder:$(t,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0,className:Zm}),(0,F.jsx)(Yr,{type:`submit`,className:`w-full`,disabled:c||!o,children:$(t,`auth.signIn.method.email-otp.verifyButton`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>r(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:$(t,`auth.signIn.method.email-otp.back`)})]}),u?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:u}):null]})}function ah({returnTo:e}){let{language:t}=W(),[n,r]=P.useState(``),[i,a]=P.useState(!1),[o,s]=P.useState(!1),[c,l]=P.useState(null),u=async e=>{a(!0),l(null);try{await e()}finally{a(!1)}};return(0,F.jsxs)(`div`,{className:$m,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:$(t,`auth.signIn.method.magic-link.body`)}),o?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-sm text-foreground`,children:$(t,`auth.signIn.method.magic-link.sentTo`,{email:n})}),(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:$(t,`auth.signIn.method.magic-link.clickHint`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>{s(!1),r(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:$(t,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,F.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),n&&u(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n,callbackURL:e})})).ok){l($(t,`auth.signIn.method.magic-link.sendFailed`));return}s(!0)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:$(t,`auth.signIn.method.magic-link.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-mlink-email`,type:`email`,value:n,onChange:e=>r(e.currentTarget.value),placeholder:$(t,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`,className:Zm}),(0,F.jsx)(Yr,{type:`submit`,className:`w-full`,disabled:i||!n,children:$(t,`auth.signIn.method.magic-link.sendButton`)})]}),c?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:c}):null]})}function oh({kind:e}){let{language:t}=W();return(0,F.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:$(t,`auth.signIn.unknownMethod`,{kind:e})})}function sh(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function ch({eyebrow:e,title:t,description:n,actions:r}){return(0,F.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,F.jsx)(`p`,{className:`label-eyebrow mb-1`,children:e}):null,(0,F.jsx)(`h1`,{className:`text-2xl`,children:t}),n?(0,F.jsx)(`p`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,F.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function lh({className:e,children:t}){return(0,F.jsx)(`section`,{className:B(`glass-card p-5`,e),children:t})}function uh({icon:e=Ct,title:t,description:n,action:r}){return(0,F.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,F.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground`,children:n}):null,r?(0,F.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function dh({error:e}){let{language:t}=W(),n=e instanceof zs&&e.status===401;if(P.useEffect(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return null;let r=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[$(t,`common.failedToLoad`),`: `,r]})}function fh({label:e,value:t,href:n}){let{language:r}=W(),[i,a]=P.useState(!1);async function o(){try{await navigator.clipboard.writeText(t),a(!0),window.setTimeout(()=>a(!1),1400)}catch{a(!1)}}return(0,F.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-background/30 p-3`,children:[(0,F.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`label-eyebrow`,children:e}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[n?(0,F.jsx)(Yr,{asChild:!0,variant:`ghost`,size:`icon`,className:`size-7`,children:(0,F.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,"aria-label":`${$(r,`common.open`)} ${e}`,children:(0,F.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0})})}):null,(0,F.jsx)(Yr,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7`,onClick:o,"aria-label":`${$(r,`common.copy`)} ${e}`,children:i?(0,F.jsx)(bt,{className:`size-3.5 text-[color:var(--success)]`,"aria-hidden":!0}):(0,F.jsx)(Tt,{className:`size-3.5`,"aria-hidden":!0})})]})]}),(0,F.jsx)(`code`,{className:`block truncate font-mono text-xs text-foreground`,children:t})]})}function ph(){let{language:e}=W(),t=lt({queryKey:[`site`],queryFn:()=>Vs.get(`/site`)}),n=lt({queryKey:[`collections`],queryFn:async()=>(await Vs.get(`/collections`)).collections}),r=n.data??[],i=t.data;return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(ch,{eyebrow:$(e,`console.eyebrow`),title:i?.brand??`AotterMantle`,description:i?$(e,`console.description`,{title:i.title}):$(e,`console.descriptionFallback`),actions:i?.publicUrl?(0,F.jsx)(Yr,{asChild:!0,variant:`outline`,children:(0,F.jsxs)(`a`,{href:i.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,F.jsx)(At,{className:`size-4`,"aria-hidden":!0}),$(e,`common.viewSite`)]})}):null}),(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 lg:grid-cols-[1.25fr_0.75fr]`,children:[(0,F.jsxs)(lh,{children:[(0,F.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(yt,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:$(e,`console.agent.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`console.agent.body`)})]})]}),t.isLoading?(0,F.jsxs)(`div`,{className:`space-y-3`,children:[(0,F.jsx)(`div`,{className:`h-16 animate-pulse rounded-lg bg-muted`}),(0,F.jsx)(`div`,{className:`h-16 animate-pulse rounded-lg bg-muted`})]}):t.isError?(0,F.jsx)(dh,{error:t.error}):i?(0,F.jsxs)(`div`,{className:`grid gap-3`,children:[(0,F.jsx)(fh,{label:$(e,`console.mcpUrl`),value:i.mcpUrl}),(0,F.jsx)(fh,{label:$(e,`console.publicUrl`),value:i.publicUrl,href:i.publicUrl})]}):null]}),(0,F.jsxs)(lh,{children:[(0,F.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-accent p-2 text-accent-foreground`,children:(0,F.jsx)(Rt,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:$(e,`console.loop.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`console.loop.body`)})]})]}),(0,F.jsxs)(`ol`,{className:`space-y-2 text-sm text-muted-foreground`,children:[(0,F.jsxs)(`li`,{className:`flex gap-2`,children:[(0,F.jsx)(`span`,{className:`text-primary`,children:`1.`}),$(e,`console.loop.step1`)]}),(0,F.jsxs)(`li`,{className:`flex gap-2`,children:[(0,F.jsx)(`span`,{className:`text-primary`,children:`2.`}),$(e,`console.loop.step2`)]}),(0,F.jsxs)(`li`,{className:`flex gap-2`,children:[(0,F.jsx)(`span`,{className:`text-primary`,children:`3.`}),$(e,`console.loop.step3`)]})]})]})]}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(ch,{eyebrow:$(e,`console.collections.eyebrow`),title:$(e,`console.collections.title`),description:$(e,`console.collections.body`)}),n.isLoading&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[0,1,2].map(e=>(0,F.jsx)(`div`,{className:`glass-card h-36 animate-pulse`},e))}),n.isError&&(0,F.jsx)(dh,{error:n.error}),n.data&&r.length===0&&(0,F.jsx)(uh,{icon:Et,title:$(e,`console.collections.emptyTitle`),description:$(e,`console.collections.emptyBody`)}),r.length>0&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:r.map(t=>(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`glass-card card-lift block p-5 no-underline text-foreground`,children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`h2`,{className:`truncate text-lg`,children:t.title}),(0,F.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:t.name})]}),(0,F.jsx)(Ot,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),t.description?(0,F.jsx)(`p`,{className:`line-clamp-2 text-sm text-muted-foreground`,children:t.description}):(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`console.collections.noDescription`)}),(0,F.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:t.lifecycle}),t.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--info)_16%,transparent)] text-[color:var(--info)]`,children:`i18n`}):null,t.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null,(0,F.jsx)(`span`,{className:`badge-status bg-muted text-muted-foreground`,children:Um(e,`published`)})]})]},t.name))})]})]})}function mh({children:e,className:t}){return(0,F.jsx)(`div`,{className:B(`glass-card overflow-hidden`,t),children:(0,F.jsx)(`div`,{className:`overflow-x-auto`,children:(0,F.jsx)(`table`,{className:`w-full min-w-[720px] text-sm`,children:e})})})}function hh({children:e,className:t}){return(0,F.jsx)(`th`,{className:B(`label-eyebrow px-3 py-2 text-left`,t),children:e})}function gh({children:e,className:t}){return(0,F.jsx)(`td`,{className:B(`px-3 py-2 align-middle`,t),children:e})}var _h={draft:`bg-muted text-muted-foreground`,review:`bg-[color-mix(in_srgb,var(--warning)_18%,transparent)] text-[color:var(--warning)]`,approved:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,scheduled:`bg-[color-mix(in_srgb,var(--info)_18%,transparent)] text-[color:var(--info)]`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`};function vh({status:e,className:t}){return(0,F.jsx)(`span`,{className:B(`badge-status`,yh(e)?_h[e]:`bg-accent text-accent-foreground`,t),children:e})}function yh(e){return e in _h}var bh=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function xh({collectionName:e}){let{language:t}=W(),n=Ys(),r=new URLSearchParams(n.search).get(`status`)??void 0,i=lt({queryKey:[`collections`],queryFn:async()=>(await Vs.get(`/collections`)).collections}),a=lt({queryKey:[`entries`,e,r??`all`],queryFn:()=>{let t=new URLSearchParams({collection:e});return r&&t.set(`status`,r),Vs.get(`/entries?${t.toString()}`)}}),o=i.data?.find(t=>t.name===e),s=o?.title??e;return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(ch,{eyebrow:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:$(t,`collection.breadcrumb`)}),(0,F.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,F.jsx)(`span`,{className:`text-foreground/70`,children:e})]}),title:s,description:o?.description??$(t,`collection.defaultDescription`),actions:(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[r?(0,F.jsx)(vh,{status:r}):null,o?.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:`i18n`}):null,o?.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})}),o?(0,F.jsx)(Sh,{collection:o,activeStatus:r,language:t}):null,a.isLoading&&(0,F.jsx)(wh,{}),a.isError&&(0,F.jsx)(dh,{error:a.error}),a.data&&a.data.items.length===0&&(0,F.jsx)(uh,{icon:Ot,title:$(t,`collection.empty.title`),description:r?$(t,`collection.empty.withStatus`,{status:r}):$(t,`collection.empty.all`)}),a.data&&a.data.items.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(mh,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:[(0,F.jsx)(hh,{children:$(t,`collection.table.id`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.title`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.status`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.locale`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.version`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.updated`)})]})}),(0,F.jsx)(`tbody`,{children:a.data.items.map(e=>(0,F.jsx)(Th,{row:e,language:t},e.id))})]}),a.data.next_cursor?(0,F.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:$(t,`collection.moreRows`)}):null]})]})}function Sh({collection:e,activeStatus:t,language:n}){let r=e.lifecycle===`editorial`?[`draft`,`review`,`published`,`archived`]:[`draft`,`published`,`archived`];return(0,F.jsxs)(`div`,{className:`mb-5 flex gap-2 overflow-x-auto pb-1`,children:[(0,F.jsx)(Ch,{href:`/admin/c/${encodeURIComponent(e.name)}`,active:!t,children:$(n,`collection.filter.all`)}),r.map(r=>(0,F.jsx)(Ch,{href:`/admin/c/${encodeURIComponent(e.name)}?status=${r}`,active:t===r,children:Um(n,r)},r))]})}function Ch({href:e,active:t,children:n}){return(0,F.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:B(`inline-flex h-8 shrink-0 items-center justify-center rounded-lg border px-3 text-xs font-medium`,`transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,t?`border-[var(--glass-border)] bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function wh(){return(0,F.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2,3,4].map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-3 last:border-b-0`,children:[(0,F.jsx)(`div`,{className:`h-3 w-16 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-6 w-20 animate-pulse rounded-full bg-muted`})]},e))})}function Th({row:e,language:t}){return(0,F.jsxs)(`tr`,{className:`border-t border-[var(--glass-border)] hover:bg-accent/40`,children:[(0,F.jsx)(gh,{className:`font-mono text-xs text-muted-foreground`,children:String(e.id).slice(0,8)}),(0,F.jsx)(gh,{className:`max-w-[24rem] truncate`,children:Eh(e.title,t)}),(0,F.jsx)(gh,{children:(0,F.jsx)(vh,{status:e.status})}),(0,F.jsx)(gh,{className:`text-muted-foreground`,children:e.locale??`-`}),(0,F.jsxs)(gh,{className:`font-mono text-xs text-muted-foreground`,children:[`v`,e.version]}),(0,F.jsx)(gh,{className:`text-muted-foreground`,children:Dh(e.updated_at)})]})}function Eh(e,t){return e==null||e===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:$(t,`collection.untitled`)}):typeof e==`string`?e:(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}function Dh(e){if(!Number.isFinite(e))return`-`;try{return bh.format(new Date(e))}catch{return`-`}}function Oh({path:e,intent:t=`missing`,kind:n=`route`}){let{language:r}=W(),i=t===`planned`&&n===`settings`;return(0,F.jsxs)(`div`,{className:`glass-card animate-rise mx-auto max-w-md p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:i?$(r,`settings.planned.title`):t===`planned`?$(r,`system.notFound.plannedTitle`):$(r,`system.notFound.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:i?$(r,`settings.planned.body`):(0,F.jsxs)(F.Fragment,{children:[$(r,`system.notFound.body`),` `,(0,F.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]})}),(0,F.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,F.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:$(r,`system.notFound.back`)})})]})}function kh(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=W();return(0,F.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,F.jsx)(ch,{eyebrow:$(e,`preferences.heading`),title:$(e,`preferences.page.title`),description:$(e,`preferences.page.body`)}),(0,F.jsxs)(`div`,{className:`grid gap-4`,children:[(0,F.jsxs)(lh,{children:[(0,F.jsx)(jh,{icon:Mt,title:$(e,`preferences.language`),body:$(e,`preferences.page.languageBody`)}),(0,F.jsx)(Ah,{language:e,onChange:r})]}),(0,F.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,F.jsxs)(lh,{children:[(0,F.jsx)(jh,{icon:Pt,title:$(e,`preferences.appearance`),body:$(e,`preferences.page.appearanceBody`)}),(0,F.jsx)(`div`,{className:`mt-4 grid gap-2`,children:Nh(e).map(e=>(0,F.jsx)(Mh,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,F.jsxs)(lh,{children:[(0,F.jsx)(jh,{icon:Lt,title:$(e,`preferences.direction`),body:$(e,`preferences.direction.auto`)}),(0,F.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?$(e,`preferences.rtl`):$(e,`preferences.ltr`)})})]})]})]})]})}function Ah({language:e,onChange:t}){let[n,r]=P.useState(!1),[i,a]=P.useState(``),o=Xs.find(t=>t.value===e)??Xs[0],s=i.trim().toLowerCase(),c=s?Xs.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):Xs;return(0,F.jsxs)(`div`,{className:`relative mt-4`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`flex w-full items-center justify-between gap-3 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-start text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-expanded":n,children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,uc(o.value).toUpperCase()]})]}),(0,F.jsx)(St,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,F.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card shadow-[var(--glass-shadow-lg)] backdrop-blur-md`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-[var(--glass-border)] px-3 py-2`,children:[(0,F.jsx)(zt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:$(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground`})]}),(0,F.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,F.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:$(e,`preferences.language.noResults`)}):c.map(n=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:B(`flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2 text-start text-sm transition-colors`,n.value===e?`bg-primary/10 text-foreground`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,F.jsx)(bt,{className:B(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function jh({icon:e,title:t,body:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function Mh({selected:e,onClick:t,icon:n,children:r}){return(0,F.jsxs)(`button`,{type:`button`,onClick:t,className:B(`flex min-h-10 items-center justify-between gap-3 rounded-lg border px-3 py-2 text-start text-sm transition-colors`,e?`border-primary/50 bg-primary/10 text-foreground`:`border-border/70 bg-background/30 text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,F.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,F.jsx)(`span`,{className:`truncate`,children:r})]}),(0,F.jsx)(bt,{className:B(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function Nh(e){return[{value:`light`,label:$(e,`preferences.light`),icon:Vt},{value:`dark`,label:$(e,`preferences.dark`),icon:Ft},{value:`system`,label:$(e,`preferences.system`),icon:Pt}]}function Ph(){let e=Ys();return e.pathname===`/admin/sign-in`?(0,F.jsx)(eh,{}):(0,F.jsx)(Fh,{path:e.pathname})}function Fh({path:e}){let t=lt({queryKey:[`me`],queryFn:()=>Vs.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof zs&&t.error.status===401;if((0,P.useEffect)(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return(0,F.jsx)(Jm,{});if(t.isError&&t.error instanceof zs&&t.error.status===403)return(0,F.jsx)(Xm,{login:(t.error.body??{}).login??null});if(t.isError)return(0,F.jsx)(Ym,{error:t.error});if(t.isLoading)return(0,F.jsx)(Jm,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);return r?(0,F.jsx)(Gm,{children:(0,F.jsx)(xh,{collectionName:decodeURIComponent(r[1])})}):e===`/admin`||e===`/admin/`?(0,F.jsx)(Gm,{children:(0,F.jsx)(ph,{})}):e===`/admin/preferences`?(0,F.jsx)(Gm,{children:(0,F.jsx)(kh,{})}):e===`/admin/approvals`||e===`/admin/settings`?(0,F.jsx)(Gm,{children:(0,F.jsx)(Oh,{path:e,intent:`planned`,kind:e===`/admin/settings`?`settings`:`route`})}):(0,F.jsx)(Gm,{children:(0,F.jsx)(Oh,{path:e})})}var Ih=new We({defaultOptions:{queries:{retry:(e,t)=>t instanceof zs&&[401,403].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),Lh=document.getElementById(`root`);if(!Lh)throw Error(`Missing #root element.`);Wt.createRoot(Lh).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Ye,{client:Ih,children:(0,F.jsx)(nc,{children:(0,F.jsx)(qs,{children:(0,F.jsx)(Ph,{})})})})}));</script>
139
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qo=`DialogDescriptionWarning`,$o=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xo(Qo).contentName}}.`;return P.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},es=To,ts=jo,ns=No,rs=Lo,is=Ho,as=Wo,os=Ko;function ss({...e}){return(0,F.jsx)(es,{"data-slot":`sheet`,...e})}function cs({...e}){return(0,F.jsx)(ts,{"data-slot":`sheet-portal`,...e})}function ls({className:e,...t}){return(0,F.jsx)(ns,{"data-slot":`sheet-overlay`,className:B(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function us({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,F.jsxs)(cs,{children:[(0,F.jsx)(ls,{}),(0,F.jsxs)(rs,{"data-slot":`sheet-content`,className:B(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 shadow-[-12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 shadow-[12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,F.jsxs)(os,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,F.jsx)(Ut,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ds({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sheet-header`,className:B(`flex flex-col gap-1.5 p-4`,e),...t})}function fs({className:e,...t}){return(0,F.jsx)(is,{"data-slot":`sheet-title`,className:B(`font-semibold text-foreground`,e),...t})}function ps({className:e,...t}){return(0,F.jsx)(as,{"data-slot":`sheet-description`,className:B(`text-sm text-muted-foreground`,e),...t})}var ms=`16rem`,hs=`3.25rem`,gs=`18rem`,_s=`b`,vs=P.createContext(null);function ys(){let[e,t]=P.useState(!1);return P.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>t(window.innerWidth<768);return e.addEventListener(`change`,n),t(window.innerWidth<768),()=>e.removeEventListener(`change`,n)},[]),e}function bs({defaultOpen:e=!0,className:t,style:n,children:r,...i}){let a=ys(),[o,s]=P.useState(!1),[c,l]=P.useState(e),u=P.useCallback(e=>{nn(e),l(e)},[]),d=P.useCallback(()=>a?s(e=>!e):u(!c),[a,c,u]);P.useEffect(()=>{let e=e=>{e.key===_s&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d]);let f=c?`expanded`:`collapsed`,p=P.useMemo(()=>({state:f,open:c,setOpen:u,isMobile:a,openMobile:o,setOpenMobile:s,toggleSidebar:d}),[f,c,u,a,o,d]);return(0,F.jsx)(vs.Provider,{value:p,children:(0,F.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":ms,"--sidebar-width-icon":hs,...n},className:B(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar rtl:flex-row-reverse`,t),...i,children:r})})}function xs(){let e=P.useContext(vs);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ss({side:e=`left`,variant:t=`sidebar`,className:n,children:r,...i}){let{isMobile:a,state:o,openMobile:s,setOpenMobile:c}=xs();return a?(0,F.jsx)(ss,{open:s,onOpenChange:c,...i,children:(0,F.jsxs)(us,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) glass-strip p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":gs},side:e,showCloseButton:!1,children:[(0,F.jsxs)(ds,{className:`sr-only`,children:[(0,F.jsx)(fs,{children:`Sidebar`}),(0,F.jsx)(ps,{children:`Displays the mobile sidebar.`})]}),(0,F.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:r})]})}):(0,F.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":o,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,F.jsx)(`div`,{"data-slot":`sidebar-gap`,className:`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 group-data-[state=collapsed]:w-(--sidebar-width-icon)`}),(0,F.jsx)(`div`,{"data-slot":`sidebar-container`,className:B(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[width] duration-200 md:flex group-data-[state=collapsed]:w-(--sidebar-width-icon)`,e===`left`?`left-0`:`right-0`,t===`inset`?`p-2`:``,n),...i,children:(0,F.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`glass-strip flex h-full w-full flex-col`,children:r})})]})}function Cs({className:e,onClick:t,...n}){let{toggleSidebar:r}=xs();return(0,F.jsxs)(Yr,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:B(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,F.jsx)(It,{}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function ws({className:e,...t}){return(0,F.jsx)(`main`,{"data-slot":`sidebar-inset`,className:B(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm rtl:md:peer-data-[variant=inset]:ml-2 rtl:md:peer-data-[variant=inset]:mr-0`,e),...t})}function Ts({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function Es({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:B(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,e),...t})}function Ds({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function Os({className:e,...t}){return(0,F.jsx)(`hr`,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:B(`mx-4 my-1 h-px w-auto border-0`,`bg-linear-to-r from-transparent via-[color-mix(in_srgb,var(--primary)_24%,transparent)] to-transparent`,`opacity-70 dark:via-[color-mix(in_srgb,var(--palette-teal-light)_18%,transparent)]`,e),...t})}function ks({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:B(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function As({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:B(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70`,e),...t})}function js({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:B(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Ms({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:B(`group/menu-item relative`,e),...t})}var Ns=cn(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm`}},defaultVariants:{size:`default`}});function Ps({asChild:e=!1,isActive:t=!1,size:n=`default`,className:r,...i}){return(0,F.jsx)(e?_n:`button`,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":n,"data-active":t,className:B(Ns({size:n}),r),...i})}function Fs({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:B(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 rtl:-translate-x-px rtl:border-l-0 rtl:border-r`,e),...t})}function Is({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:B(`group/menu-sub-item relative`,e),...t})}function Ls({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,F.jsx)(e?_n:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:B(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`rtl:translate-x-px`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,r),...i})}var Rs=`/admin/api`,zs=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function Bs(e,t){let n=await fetch(`${Rs}${e}`,{credentials:`same-origin`,headers:{Accept:`application/json`,...t?.headers??{}},...t}),r=await n.text(),i=null;if(r)try{i=JSON.parse(r)}catch{i=r}if(!n.ok)throw new zs(`${n.status} ${n.statusText}`,n.status,i);return i}var Vs={get:e=>Bs(e)},Hs=[`draft`,`review`,`published`,`archived`],Us=[`draft`,`published`,`archived`],Ws=P.createContext(null);function Gs(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function Ks(e){if(typeof window>`u`)return!1;let t=new URL(e,window.location.href);return!(t.origin!==window.location.origin||!t.pathname.startsWith(`/admin`)||t.pathname.startsWith(`/admin/api/`)||t.pathname.startsWith(`/admin/auth/`)||t.pathname===`/admin/logout`)}function qs({children:e}){let[t,n]=P.useState(Gs),r=P.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`;i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));let a={pathname:r.pathname,search:r.search};(0,si.flushSync)(()=>n(a))},[]);P.useEffect(()=>{let e=()=>n(Gs());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),P.useEffect(()=>{let e=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`a[href]`);n instanceof HTMLAnchorElement&&(n.target&&n.target!==`_self`||n.hasAttribute(`download`)||Ks(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=P.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,F.jsx)(Ws.Provider,{value:i,children:e})}function Js(){let e=P.useContext(Ws);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function Ys(){return Js().location}var Xs=[{value:`en`,label:`English`,nativeLabel:`English`,htmlLang:`en`,direction:`ltr`},{value:`de`,label:`German`,nativeLabel:`Deutsch`,htmlLang:`de`,direction:`ltr`},{value:`es`,label:`Spanish`,nativeLabel:`Español`,htmlLang:`es`,direction:`ltr`},{value:`fr`,label:`French`,nativeLabel:`Français`,htmlLang:`fr`,direction:`ltr`},{value:`it`,label:`Italian`,nativeLabel:`Italiano`,htmlLang:`it`,direction:`ltr`},{value:`ja`,label:`Japanese`,nativeLabel:`日本語`,htmlLang:`ja`,direction:`ltr`},{value:`ko`,label:`Korean`,nativeLabel:`한국어`,htmlLang:`ko`,direction:`ltr`},{value:`pt-BR`,label:`Portuguese (Brazil)`,nativeLabel:`Português (BR)`,htmlLang:`pt-BR`,direction:`ltr`},{value:`ru`,label:`Russian`,nativeLabel:`Русский`,htmlLang:`ru`,direction:`ltr`},{value:`zh-CN`,label:`Simplified Chinese`,nativeLabel:`简体中文`,htmlLang:`zh-Hans-CN`,direction:`ltr`},{value:`zh-TW`,label:`Traditional Chinese`,nativeLabel:`繁體中文`,htmlLang:`zh-Hant-TW`,direction:`ltr`},{value:`id`,label:`Indonesian`,nativeLabel:`Bahasa Indonesia`,htmlLang:`id`,direction:`ltr`},{value:`nl`,label:`Dutch`,nativeLabel:`Nederlands`,htmlLang:`nl`,direction:`ltr`},{value:`pl`,label:`Polish`,nativeLabel:`Polski`,htmlLang:`pl`,direction:`ltr`},{value:`tr`,label:`Turkish`,nativeLabel:`Türkçe`,htmlLang:`tr`,direction:`ltr`},{value:`vi`,label:`Vietnamese`,nativeLabel:`Tiếng Việt`,htmlLang:`vi`,direction:`ltr`},{value:`cs`,label:`Czech`,nativeLabel:`Čeština`,htmlLang:`cs`,direction:`ltr`},{value:`uk`,label:`Ukrainian`,nativeLabel:`Українська`,htmlLang:`uk`,direction:`ltr`},{value:`ar`,label:`Arabic`,nativeLabel:`العربية`,htmlLang:`ar`,direction:`rtl`},{value:`he`,label:`Hebrew`,nativeLabel:`עברית`,htmlLang:`he`,direction:`rtl`},{value:`fa`,label:`Persian`,nativeLabel:`فارسی`,htmlLang:`fa`,direction:`rtl`},{value:`th`,label:`Thai`,nativeLabel:`ไทย`,htmlLang:`th`,direction:`ltr`}],Zs=`cms.preference.language`,Qs=`cms.preference.direction`,$s=`cms.preference.theme`,ec=`cms.theme`,tc=P.createContext(null);function nc({children:e}){let[t,n]=P.useState(rc),[r,i]=P.useState(()=>ic(rc())),[a,o]=P.useState(ac),s=P.useCallback(e=>{let t=uc(e);sc(Zs,e),sc(Qs,t),n(e),i(t)},[]),c=P.useCallback(e=>{sc(Qs,e),i(e)},[]),l=P.useCallback(e=>{sc($s,e),sc(ec,e),o(e)},[]);P.useEffect(()=>{document.documentElement.lang=Xs.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),P.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,a===`dark`||a===`system`&&e)};if(e(),a!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[a]);let u=P.useMemo(()=>({language:t,direction:r,theme:a,setLanguage:s,setDirection:c,setTheme:l}),[t,r,a,s,c,l]);return(0,F.jsx)(tc.Provider,{value:u,children:e})}function W(){let e=P.useContext(tc);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function rc(){let e=oc(Zs);if(cc(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=lc(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return lc(navigator.language)}function ic(e){let t=oc(Qs);return t===`rtl`||t===`ltr`?t:uc(e)}function ac(){let e=oc(`cms.preference.theme`)??oc(ec);return e===`light`||e===`dark`||e===`system`?e:`system`}function oc(e){try{return localStorage.getItem(e)}catch{return null}}function sc(e,t){try{localStorage.setItem(e,t)}catch{}}function cc(e){return Xs.some(t=>t.value===e)}function lc(e){let t=(e??``).toLowerCase();if(t===`zh-tw`||t===`zh-hant`||t.startsWith(`zh-hant`))return`zh-TW`;if(t===`zh-cn`||t===`zh-hans`||t.startsWith(`zh-hans`))return`zh-CN`;if(t.startsWith(`pt-br`)||t===`pt`)return`pt-BR`;let n=t.split(`-`)[0];return n===`ar`?`ar`:n===`cs`?`cs`:n===`de`?`de`:n===`es`?`es`:n===`fa`?`fa`:n===`fr`?`fr`:n===`he`||n===`iw`?`he`:n===`id`?`id`:n===`it`?`it`:n===`ja`?`ja`:n===`ko`?`ko`:n===`nl`?`nl`:n===`pl`?`pl`:n===`pt`?`pt-BR`:n===`ru`?`ru`:n===`th`?`th`:n===`tr`?`tr`:n===`uk`?`uk`:n===`vi`?`vi`:n===`zh`?`zh-TW`:`en`}function uc(e){return Xs.find(t=>t.value===e)?.direction??`ltr`}var dc=`@aotter/mantle`,fc=`0.0.11-alpha.14`,pc=`https://www.npmjs.com/package/@aotter/mantle`,mc=`https://github.com/aotter/mantle`;function hc({className:e,title:t}){return(0,F.jsxs)(`svg`,{viewBox:`0 0 128 128`,role:t?`img`:void 0,"aria-hidden":t?void 0:!0,className:e,children:[t?(0,F.jsx)(`title`,{children:t}):null,(0,F.jsx)(`path`,{fill:`currentColor`,d:`M111.76,52.77c-4.05-6.75-13.09-19.07-28.16-25.67-.97-.43-9.36-4.13-19.6-4.13s-18.63,3.7-19.6,4.13c-15.08,6.59-24.12,18.91-28.16,25.67-6.57,10.92-6.56,17.8-6.03,20.94,1.45,8.52,35.82,16.09,33.19,19.03-3.96,4.86-1.12,12.29,7.1,12.29h26.99c8.22,0,11.06-7.44,7.1-12.29-2.63-2.94,31.74-10.5,33.19-19.03.53-3.14.54-10.01-6.03-20.94ZM101.76,64.08c-8.92,11.77-25.79,25.56-25.93,25.68-1.1,1.23-.4,2.67.21,3.94.72,1.5,1.15,2.54.53,3.38-.47.64-.75.83-1.22.83h-22.95c-.46,0-.75-.2-1.22-.83-.61-.84-.19-1.88.53-3.38.61-1.27,1.31-2.71.21-3.94-.15-.11-15.88-13.29-24.81-25.07-.46-.6-.61-1.51-.42-2.54.36-2.03,1.85-4.15,3.8-5.4,1.28-.82,2.75-1.22,4.12-1.22,1.71,0,3.25.63,4.03,1.83,1.16,1.8,14.73,23.3,16.48,26.48,1.3,2.35,2.68,3.27,4.08,2.7,1.4-.56,1-3.17-.57-12.12-1.28-7.28-3.03-22.92-3.03-31.19,0-2.17,2.62-4.45,6.45-5.08v-.03c.57-.08,3.04-.08,3.62,0v.03c3.84.63,6.45,2.91,6.45,5.08,0,8.27-1.75,23.91-3.03,31.19-1.57,8.95-1.96,11.55-.57,12.12,1.4.57,2.77-.34,4.08-2.7,1.75-3.17,16.45-25.28,17.61-27.09.77-1.2,2.32-1.83,4.03-1.83,1.37,0,2.84.4,4.12,1.22,1.95,1.25,3.45,3.38,3.8,5.4.18,1.04.03,1.94-.42,2.54Z`})]})}function gc(){return(0,F.jsxs)(`div`,{className:B(`fixed bottom-3 end-3 z-30 hidden items-center gap-2 rounded-full`,`border border-border/60 bg-background/65 px-2.5 py-1.5 text-xs`,`text-muted-foreground shadow-[var(--glass-shadow)] backdrop-blur-md md:flex`),children:[(0,F.jsx)(hc,{className:`size-4 text-primary`}),(0,F.jsx)(`a`,{href:pc,target:`_blank`,rel:`noreferrer`,className:`font-medium text-foreground/80 hover:text-primary`,children:dc}),(0,F.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,F.jsx)(`a`,{href:mc,target:`_blank`,rel:`noreferrer`,className:`hover:text-primary`,children:`GitHub`}),(0,F.jsxs)(`span`,{"aria-label":`version ${fc}`,children:[`v`,fc]})]})}function _c({brand:e}){let{setOpenMobile:t}=xs();return(0,F.jsx)(js,{children:(0,F.jsx)(Ms,{children:(0,F.jsx)(Ps,{asChild:!0,size:`lg`,className:`data-[slot=sidebar-menu-button]:!p-1.5`,children:(0,F.jsxs)(`a`,{href:e.href??`/admin`,onClick:()=>t(!1),children:[(0,F.jsx)(`span`,{className:`bg-primary/10 text-primary flex aspect-square size-8 items-center justify-center rounded-lg ring-1 ring-border`,children:(0,F.jsx)(hc,{className:`size-5`})}),(0,F.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:e.title}),e.subtitle&&(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.subtitle})]})]})})})})}var vc=`Collapsible`,[yc,bc]=Zr(vc),[xc,Sc]=yc(vc),Cc=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=ii({prop:r,defaultProp:i??!1,onChange:o,caller:vc});return(0,F.jsx)(xc,{scope:n,disabled:a,contentId:ni(),open:c,onOpenToggle:P.useCallback(()=>l(e=>!e),[l]),children:(0,F.jsx)(mi.div,{"data-state":kc(c),"data-disabled":a?``:void 0,...s,ref:t})})});Cc.displayName=vc;var wc=`CollapsibleTrigger`,Tc=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=Sc(wc,n);return(0,F.jsx)(mi.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":kc(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:V(e.onClick,i.onOpenToggle)})});Tc.displayName=wc;var Ec=`CollapsibleContent`,Dc=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Sc(Ec,e.__scopeCollapsible);return(0,F.jsx)(Yi,{present:n||i.open,children:({present:e})=>(0,F.jsx)(Oc,{...r,ref:t,present:e})})});Dc.displayName=Ec;var Oc=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Sc(Ec,n),[s,c]=P.useState(r),l=P.useRef(null),u=dn(t,l),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,h=o.open||s,g=P.useRef(h),_=P.useRef(void 0);return P.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),$r(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,F.jsx)(mi.div,{"data-state":kc(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function kc(e){return e?`open`:`closed`}var Ac=Cc,jc=Tc,Mc=Dc;function Nc(e){let t=e+`CollectionProvider`,[n,r]=Zr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=ci(s),l=P.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,F.jsx)(c,{ref:dn(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=ci(u),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=dn(t,o),c=a(u,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Pc=P.createContext(void 0);function Fc(e){let t=P.useContext(Pc);return e||t||`ltr`}var Ic=[`top`,`right`,`bottom`,`left`],G=Math.min,Lc=Math.max,Rc=Math.round,zc=Math.floor,Bc=e=>({x:e,y:e}),Vc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hc(e,t,n){return Lc(e,G(t,n))}function Uc(e,t){return typeof e==`function`?e(t):e}function Wc(e){return e.split(`-`)[0]}function Gc(e){return e.split(`-`)[1]}function Kc(e){return e===`x`?`y`:`x`}function qc(e){return e===`y`?`height`:`width`}function Jc(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Yc(e){return Kc(Jc(e))}function Xc(e,t,n){n===void 0&&(n=!1);let r=Gc(e),i=Yc(e),a=qc(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=al(o)),[o,al(o)]}function Zc(e){let t=al(e);return[Qc(e),t,Qc(t)]}function Qc(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var $c=[`left`,`right`],el=[`right`,`left`],tl=[`top`,`bottom`],nl=[`bottom`,`top`];function rl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?el:$c:t?$c:el;case`left`:case`right`:return t?tl:nl;default:return[]}}function il(e,t,n,r){let i=Gc(e),a=rl(Wc(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Qc)))),a}function al(e){let t=Wc(e);return Vc[t]+e.slice(t.length)}function ol(e){return{top:0,right:0,bottom:0,left:0,...e}}function sl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ol(e)}function cl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ll(e,t,n){let{reference:r,floating:i}=e,a=Jc(t),o=Yc(t),s=qc(o),c=Wc(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Gc(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ul(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Uc(t,e),p=sl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=cl(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=cl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var dl=50,fl=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ul},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ll(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<dl&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ll(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},pl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Uc(e,t)||{};if(l==null)return{};let d=sl(u),f={x:n,y:r},p=Yc(i),m=qc(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=G(d[_],T),te=G(d[v],T),E=ee,ne=C-h[m]-te,re=C/2-h[m]/2+w,ie=Hc(E,re,ne),D=!c.arrow&&Gc(i)!=null&&re!==ie&&a.reference[m]/2-(re<E?ee:te)-h[m]/2<0,O=D?re<E?re-E:re-ne:0;return{[p]:f[p]+O,data:{[p]:ie,centerOffset:re-ie-O,...D&&{alignmentOffset:O}},reset:D}}}),ml=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Uc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Wc(r),_=Jc(o),v=Wc(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[al(o)]:Zc(o)),x=p!==`none`;!d&&x&&b.push(...il(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Xc(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Jc(t))||T.every(e=>Jc(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Jc(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function hl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gl(e){return Ic.some(t=>e[t]>=0)}var _l=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Uc(e,t);switch(i){case`referenceHidden`:{let e=hl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:gl(e)}}}case`escaped`:{let e=hl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:gl(e)}}}default:return{}}}}},vl=new Set([`left`,`top`]);async function yl(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Wc(n),s=Gc(n),c=Jc(n)===`y`,l=vl.has(o)?-1:1,u=a&&c?-1:1,d=Uc(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var bl=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await yl(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},xl=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Uc(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Jc(Wc(i)),p=Kc(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Hc(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Hc(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Sl=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Uc(e,t),u={x:n,y:r},d=Jc(i),f=Kc(d),p=u[f],m=u[d],h=Uc(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=vl.has(Wc(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Cl=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Uc(e,t),u=await o.detectOverflow(t,l),d=Wc(i),f=Gc(i),p=Jc(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=G(h-u[g],v),x=G(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Lc(u.left,0),t=Lc(u.right,0),n=Lc(u.top,0),r=Lc(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Lc(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Lc(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function wl(){return typeof window<`u`}function Tl(e){return Ol(e)?(e.nodeName||``).toLowerCase():`#document`}function El(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dl(e){return((Ol(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ol(e){return wl()?e instanceof Node||e instanceof El(e).Node:!1}function kl(e){return wl()?e instanceof Element||e instanceof El(e).Element:!1}function Al(e){return wl()?e instanceof HTMLElement||e instanceof El(e).HTMLElement:!1}function jl(e){return!wl()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof El(e).ShadowRoot}function Ml(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Nl(e){return/^(table|td|th)$/.test(Tl(e))}function Pl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Fl=/transform|translate|scale|rotate|perspective|filter/,Il=/paint|layout|strict|content/,Ll=e=>!!e&&e!==`none`,Rl;function K(e){let t=kl(e)?Y(e):e;return Ll(t.transform)||Ll(t.translate)||Ll(t.scale)||Ll(t.rotate)||Ll(t.perspective)||!q()&&(Ll(t.backdropFilter)||Ll(t.filter))||Fl.test(t.willChange||``)||Il.test(t.contain||``)}function zl(e){let t=Vl(e);for(;Al(t)&&!J(t);){if(K(t))return t;if(Pl(t))return null;t=Vl(t)}return null}function q(){return Rl??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Rl}function J(e){return/^(html|body|#document)$/.test(Tl(e))}function Y(e){return El(e).getComputedStyle(e)}function Bl(e){return kl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vl(e){if(Tl(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jl(e)&&e.host||Dl(e);return jl(t)?t.host:t}function Hl(e){let t=Vl(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:Al(t)&&Ml(t)?t:Hl(t)}function Ul(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Hl(e),i=r===e.ownerDocument?.body,a=El(r);if(i){let e=Wl(a);return t.concat(a,a.visualViewport||[],Ml(r)?r:[],e&&n?Ul(e):[])}else return t.concat(r,Ul(r,[],n))}function Wl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gl(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Al(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Rc(n)!==a||Rc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Kl(e){return kl(e)?e:e.contextElement}function ql(e){let t=Kl(e);if(!Al(t))return Bc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Gl(t),o=(a?Rc(n.width):n.width)/r,s=(a?Rc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Jl=Bc(0);function Yl(e){let t=El(e);return!q()||!t.visualViewport?Jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==El(e)?!1:t}function Zl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Kl(e),o=Bc(1);t&&(r?kl(r)&&(o=ql(r)):o=ql(e));let s=Xl(a,n,r)?Yl(a):Bc(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=El(a),t=r&&kl(r)?El(r):r,n=e,i=Wl(n);for(;i&&r&&t!==n;){let e=ql(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=El(i),i=Wl(n)}}return cl({width:u,height:d,x:c,y:l})}function Ql(e,t){let n=Bl(e).scrollLeft;return t?t.left+n:Zl(Dl(e)).left+n}function $l(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ql(e,n),y:n.top+t.scrollTop}}function eu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Dl(r),s=t?Pl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Bc(1),u=Bc(0),d=Al(r);if((d||!d&&!a)&&((Tl(r)!==`body`||Ml(o))&&(c=Bl(r)),d)){let e=Zl(r);l=ql(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?$l(o,c):Bc(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function tu(e){return Array.from(e.getClientRects())}function nu(e){let t=Dl(e),n=Bl(e),r=e.ownerDocument.body,i=Lc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Lc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ql(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=Lc(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ru=25;function iu(e,t){let n=El(e),r=Dl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=q();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ql(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ru&&(a-=o)}else l<=ru&&(a+=l);return{width:a,height:o,x:s,y:c}}function au(e,t){let n=Zl(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Al(e)?ql(e):Bc(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ou(e,t,n){let r;if(t===`viewport`)r=iu(e,n);else if(t===`document`)r=nu(Dl(e));else if(kl(t))r=au(t,n);else{let n=Yl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cl(r)}function su(e,t){let n=Vl(e);return n===t||!kl(n)||J(n)?!1:Y(n).position===`fixed`||su(n,t)}function cu(e,t){let n=t.get(e);if(n)return n;let r=Ul(e,[],!1).filter(e=>kl(e)&&Tl(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?Vl(e):e;for(;kl(o)&&!J(o);){let t=Y(o),n=K(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ml(o)&&!n&&su(e,o))?r=r.filter(e=>e!==o):i=t,o=Vl(o)}return t.set(e,r),r}function lu(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Pl(t)?[]:cu(t,this._c):[].concat(n),r],o=ou(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ou(t,a[e],i);s=Lc(n.top,s),c=G(n.right,c),l=G(n.bottom,l),u=Lc(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function uu(e){let{width:t,height:n}=Gl(e);return{width:t,height:n}}function du(e,t,n){let r=Al(t),i=Dl(t),a=n===`fixed`,o=Zl(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Bc(0);function l(){c.x=Ql(i)}if(r||!r&&!a)if((Tl(t)!==`body`||Ml(i))&&(s=Bl(t)),r){let e=Zl(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?$l(i,s):Bc(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function fu(e){return Y(e).position===`static`}function pu(e,t){if(!Al(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Dl(e)===n&&(n=n.ownerDocument.body),n}function mu(e,t){let n=El(e);if(Pl(e))return n;if(!Al(e)){let t=Vl(e);for(;t&&!J(t);){if(kl(t)&&!fu(t))return t;t=Vl(t)}return n}let r=pu(e,t);for(;r&&Nl(r)&&fu(r);)r=pu(r,t);return r&&J(r)&&fu(r)&&!K(r)?n:r||zl(e)||n}var hu=async function(e){let t=this.getOffsetParent||mu,n=this.getDimensions,r=await n(e.floating);return{reference:du(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gu(e){return Y(e).direction===`rtl`}var _u={convertOffsetParentRelativeRectToViewportRelativeRect:eu,getDocumentElement:Dl,getClippingRect:lu,getOffsetParent:mu,getElementRects:hu,getClientRects:tu,getDimensions:uu,getScale:ql,isElement:kl,isRTL:gu};function vu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yu(e,t){let n=null,r,i=Dl(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=zc(d),h=zc(i.clientWidth-(u+f)),g=zc(i.clientHeight-(d+p)),_=zc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Lc(0,G(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!vu(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function bu(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Kl(e),u=i||a?[...l?Ul(l):[],...t?Ul(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?yu(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Zl(e):null;c&&g();function g(){let t=Zl(e);h&&!vu(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var xu=bl,Su=xl,Cu=ml,wu=Cl,Tu=_l,Eu=pl,Du=Sl,Ou=(e,t,n)=>{let r=new Map,i={platform:_u,...n},a={...i.platform,_c:r};return fl(e,t,{...i,platform:a})},ku=typeof document<`u`?P.useLayoutEffect:function(){};function Au(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,i;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(!Au(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Au(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ju(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mu(e,t){let n=ju(e);return Math.round(t*n)/n}function Nu(e){let t=P.useRef(e);return ku(()=>{t.current=e}),t}function Pu(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);Au(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,ee=Nu(c),te=Nu(i),E=Nu(l),ne=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};te.current&&(e.platform=te.current),Ou(S.current,C.current,e).then(e=>{let t={...e,isPositioned:E.current!==!1};re.current&&!Au(w.current,t)&&(w.current=t,si.flushSync(()=>{d(t)}))})},[f,t,n,te,E]);ku(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let re=P.useRef(!1);ku(()=>(re.current=!0,()=>{re.current=!1}),[]),ku(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,ne);ne()}},[b,x,ne,ee,T]);let ie=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),D=P.useMemo(()=>({reference:b,floating:x}),[b,x]),O=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=Mu(D.floating,u.x),r=Mu(D.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ju(D.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:ne,refs:ie,elements:D,floatingStyles:O}),[u,ne,ie,D,O])}var Fu=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Eu({element:r.current,padding:i}).fn(n):r?Eu({element:r,padding:i}).fn(n):{}}}},Iu=(e,t)=>{let n=xu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lu=(e,t)=>{let n=Su(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ru=(e,t)=>({fn:Du(e).fn,options:[e,t]}),zu=(e,t)=>{let n=Cu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bu=(e,t)=>{let n=wu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vu=(e,t)=>{let n=Tu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hu=(e,t)=>{let n=Fu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uu=`Arrow`,Wu=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,F.jsx)(mi.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,F.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Wu.displayName=Uu;var Gu=Wu;function X(e){let[t,n]=P.useState(void 0);return $r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ku=`Popper`,[qu,Ju]=Zr(Ku),[Yu,Xu]=qu(Ku),Zu=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null);return(0,F.jsx)(Yu,{scope:t,anchor:r,onAnchorChange:i,children:n})};Zu.displayName=Ku;var Qu=`PopperAnchor`,$u=P.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Xu(Qu,n),o=P.useRef(null),s=dn(t,o),c=P.useRef(null);return P.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,F.jsx)(mi.div,{...i,ref:s})});$u.displayName=Qu;var ed=`PopperContent`,[td,nd]=qu(ed),rd=P.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Xu(ed,n),[_,v]=P.useState(null),y=dn(t,e=>v(e)),[b,x]=P.useState(null),S=X(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},te=Array.isArray(l)?l:[l],E=te.length>0,ne={padding:ee,boundary:te.filter(sd),altBoundary:E},{refs:re,floatingStyles:ie,placement:D,isPositioned:O,middlewareData:ae}=Pu({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>bu(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Iu({mainAxis:i+w,alignmentAxis:o}),c&&Lu({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Ru():void 0,...ne}),c&&zu({...ne}),Bu({...ne,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Hu({element:b,padding:s}),cd({arrowWidth:C,arrowHeight:w}),f&&Vu({strategy:`referenceHidden`,...ne})]}),[oe,k]=ld(D),A=gi(m);$r(()=>{O&&A?.()},[O,A]);let se=ae.arrow?.x,ce=ae.arrow?.y,le=ae.arrow?.centerOffset!==0,[j,M]=P.useState();return $r(()=>{_&&M(window.getComputedStyle(_).zIndex)},[_]),(0,F.jsx)(`div`,{ref:re.setFloating,"data-radix-popper-content-wrapper":``,style:{...ie,transform:O?ie.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:j,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(` `),...ae.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,F.jsx)(td,{scope:n,placedSide:oe,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,F.jsx)(mi.div,{"data-side":oe,"data-align":k,...h,ref:y,style:{...h.style,animation:O?void 0:`none`}})})})});rd.displayName=ed;var id=`PopperArrow`,ad={top:`bottom`,right:`left`,bottom:`top`,left:`right`},od=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=nd(id,n),a=ad[i.placedSide];return(0,F.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,F.jsx)(Gu,{...r,ref:t,style:{...r.style,display:`block`}})})});od.displayName=id;function sd(e){return e!==null}var cd=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ld(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function ld(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var ud=Zu,dd=$u,fd=rd,pd=od,md=`rovingFocusGroup.onEntryFocus`,hd={bubbles:!1,cancelable:!0},gd=`RovingFocusGroup`,[_d,vd,yd]=Nc(gd),[bd,Z]=Zr(gd,[yd]),[xd,Sd]=bd(gd),Cd=P.forwardRef((e,t)=>(0,F.jsx)(_d.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(_d.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(wd,{...e,ref:t})})}));Cd.displayName=gd;var wd=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=dn(t,f),m=Fc(a),[h,g]=ii({prop:o,defaultProp:s??null,onChange:c,caller:gd}),[_,v]=P.useState(!1),y=gi(l),b=vd(n),x=P.useRef(!1),[S,C]=P.useState(0);return P.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(md,y),()=>e.removeEventListener(md,y)},[y]),(0,F.jsx)(xd,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>C(e=>e-1),[]),children:(0,F.jsx)(mi.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{x.current=!0}),onFocus:V(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(md,hd);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Ad([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:V(e.onBlur,()=>v(!1))})})}),Td=`RovingFocusGroupItem`,Ed=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=ni(),l=a||c,u=Sd(Td,n),d=u.currentTabStopId===l,f=vd(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return P.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,F.jsx)(_d.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(mi.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=kd(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?jd(n,r+1):n.slice(r+1)}setTimeout(()=>Ad(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});Ed.displayName=Td;var Dd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Od(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function kd(e,t,n){let r=Od(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Dd[r]}function Ad(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Md=Cd,Nd=Ed,Q=[`Enter`,` `],Pd=[`ArrowDown`,`PageUp`,`Home`],Fd=[`ArrowUp`,`PageDown`,`End`],Id=[...Pd,...Fd],Ld={ltr:[...Q,`ArrowRight`],rtl:[...Q,`ArrowLeft`]},Rd={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},zd=`Menu`,[Bd,Vd,Hd]=Nc(zd),[Ud,Wd]=Zr(zd,[Hd,Ju,Z]),Gd=Ju(),Kd=Z(),[qd,Jd]=Ud(zd),[Yd,Xd]=Ud(zd),Zd=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Gd(t),[c,l]=P.useState(null),u=P.useRef(!1),d=gi(a),f=Fc(i);return P.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,F.jsx)(ud,{...s,children:(0,F.jsx)(qd,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,F.jsx)(Yd,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Zd.displayName=zd;var Qd=`MenuAnchor`,$d=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Gd(n);return(0,F.jsx)(dd,{...i,...r,ref:t})});$d.displayName=Qd;var ef=`MenuPortal`,[tf,nf]=Ud(ef,{forceMount:void 0}),rf=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Jd(ef,t);return(0,F.jsx)(tf,{scope:t,forceMount:n,children:(0,F.jsx)(Yi,{present:n||a.open,children:(0,F.jsx)(qi,{asChild:!0,container:i,children:r})})})};rf.displayName=ef;var af=`MenuContent`,[of,sf]=Ud(af),cf=P.forwardRef((e,t)=>{let n=nf(af,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Jd(af,e.__scopeMenu),o=Xd(af,e.__scopeMenu);return(0,F.jsx)(Bd.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Yi,{present:r||a.open,children:(0,F.jsx)(Bd.Slot,{scope:e.__scopeMenu,children:o.modal?(0,F.jsx)(lf,{...i,ref:t}):(0,F.jsx)(uf,{...i,ref:t})})})})}),lf=P.forwardRef((e,t)=>{let n=Jd(af,e.__scopeMenu),r=P.useRef(null),i=dn(t,r);return P.useEffect(()=>{let e=r.current;if(e)return yo(e)},[]),(0,F.jsx)(ff,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),uf=P.forwardRef((e,t)=>{let n=Jd(af,e.__scopeMenu);return(0,F.jsx)(ff,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),df=ci(`MenuContent.ScrollLock`),ff=P.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Jd(af,n),_=Xd(af,n),v=Gd(n),y=Kd(n),b=Vd(n),[x,S]=P.useState(null),C=P.useRef(null),w=dn(t,C,g.onContentChange),T=P.useRef(0),ee=P.useRef(``),te=P.useRef(0),E=P.useRef(null),ne=P.useRef(`right`),re=P.useRef(0),ie=m?U:P.Fragment,D=m?{as:df,allowPinchZoom:!0}:void 0,O=e=>{let t=ee.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Xf(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};P.useEffect(()=>()=>window.clearTimeout(T.current),[]),ea();let ae=P.useCallback(e=>ne.current===E.current?.side&&Qf(e,E.current?.area),[]);return(0,F.jsx)(of,{scope:n,searchRef:ee,onItemEnter:P.useCallback(e=>{ae(e)&&e.preventDefault()},[ae]),onItemLeave:P.useCallback(e=>{ae(e)||(C.current?.focus(),S(null))},[ae]),onTriggerLeave:P.useCallback(e=>{ae(e)&&e.preventDefault()},[ae]),pointerGraceTimerRef:te,onPointerGraceIntentChange:P.useCallback(e=>{E.current=e},[]),children:(0,F.jsx)(ie,{...D,children:(0,F.jsx)(Pi,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,F.jsx)(wi,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,F.jsx)(Md,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:V(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,F.jsx)(fd,{role:`menu`,"aria-orientation":`vertical`,"data-state":Gf(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&O(e.key));let i=C.current;if(e.target!==i||!Id.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Fd.includes(e.key)&&a.reverse(),Jf(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),ee.current=``)}),onPointerMove:V(e.onPointerMove,$f(e=>{let t=e.target,n=re.current!==e.clientX;e.currentTarget.contains(t)&&n&&(ne.current=e.clientX>re.current?`right`:`left`,re.current=e.clientX)}))})})})})})})});cf.displayName=af;var pf=`MenuGroup`,mf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(mi.div,{role:`group`,...r,ref:t})});mf.displayName=pf;var hf=`MenuLabel`,gf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(mi.div,{...r,ref:t})});gf.displayName=hf;var _f=`MenuItem`,vf=`menu.itemSelect`,yf=P.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=P.useRef(null),o=Xd(_f,e.__scopeMenu),s=sf(_f,e.__scopeMenu),c=dn(t,a),l=P.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(vf,{bubbles:!0,cancelable:!0});e.addEventListener(vf,e=>r?.(e),{once:!0}),hi(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,F.jsx)(bf,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Q.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});yf.displayName=_f;var bf=P.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=sf(_f,n),s=Kd(n),c=P.useRef(null),l=dn(t,c),[u,d]=P.useState(!1),[f,p]=P.useState(``);return P.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,F.jsx)(Bd.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,F.jsx)(Nd,{asChild:!0,...s,focusable:!r,children:(0,F.jsx)(mi.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,$f(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,$f(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})}),xf=`MenuCheckboxItem`,Sf=P.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,F.jsx)(Af,{scope:e.__scopeMenu,checked:n,children:(0,F.jsx)(yf,{role:`menuitemcheckbox`,"aria-checked":Kf(n)?`mixed`:n,...i,ref:t,"data-state":qf(n),onSelect:V(i.onSelect,()=>r?.(Kf(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Sf.displayName=xf;var Cf=`MenuRadioGroup`,[wf,Tf]=Ud(Cf,{value:void 0,onValueChange:()=>{}}),Ef=P.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=gi(r);return(0,F.jsx)(wf,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,F.jsx)(mf,{...i,ref:t})})});Ef.displayName=Cf;var Df=`MenuRadioItem`,Of=P.forwardRef((e,t)=>{let{value:n,...r}=e,i=Tf(Df,e.__scopeMenu),a=n===i.value;return(0,F.jsx)(Af,{scope:e.__scopeMenu,checked:a,children:(0,F.jsx)(yf,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":qf(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Of.displayName=Df;var kf=`MenuItemIndicator`,[Af,jf]=Ud(kf,{checked:!1}),Mf=P.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=jf(kf,n);return(0,F.jsx)(Yi,{present:r||Kf(a.checked)||a.checked===!0,children:(0,F.jsx)(mi.span,{...i,ref:t,"data-state":qf(a.checked)})})});Mf.displayName=kf;var Nf=`MenuSeparator`,Pf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(mi.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Pf.displayName=Nf;var Ff=`MenuArrow`,If=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Gd(n);return(0,F.jsx)(pd,{...i,...r,ref:t})});If.displayName=Ff;var Lf=`MenuSub`,[Rf,zf]=Ud(Lf),Bf=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Jd(Lf,t),o=Gd(t),[s,c]=P.useState(null),[l,u]=P.useState(null),d=gi(i);return P.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,F.jsx)(ud,{...o,children:(0,F.jsx)(qd,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,F.jsx)(Rf,{scope:t,contentId:ni(),triggerId:ni(),trigger:s,onTriggerChange:c,children:n})})})};Bf.displayName=Lf;var Vf=`MenuSubTrigger`,Hf=P.forwardRef((e,t)=>{let n=Jd(Vf,e.__scopeMenu),r=Xd(Vf,e.__scopeMenu),i=zf(Vf,e.__scopeMenu),a=sf(Vf,e.__scopeMenu),o=P.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=P.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return P.useEffect(()=>u,[u]),P.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,F.jsx)($d,{asChild:!0,...l,children:(0,F.jsx)(bf,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Gf(n.open),...e,ref:un(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,$f(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,$f(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Ld[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Hf.displayName=Vf;var Uf=`MenuSubContent`,Wf=P.forwardRef((e,t)=>{let n=nf(af,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Jd(af,e.__scopeMenu),o=Xd(af,e.__scopeMenu),s=zf(Uf,e.__scopeMenu),c=P.useRef(null),l=dn(t,c);return(0,F.jsx)(Bd.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Yi,{present:r||a.open,children:(0,F.jsx)(Bd.Slot,{scope:e.__scopeMenu,children:(0,F.jsx)(ff,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Rd[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Wf.displayName=Uf;function Gf(e){return e?`open`:`closed`}function Kf(e){return e===`indeterminate`}function qf(e){return Kf(e)?`indeterminate`:e?`checked`:`unchecked`}function Jf(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Yf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Xf(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Yf(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Zf(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Qf(e,t){return t?Zf({x:e.clientX,y:e.clientY},t):!1}function $f(e){return t=>t.pointerType===`mouse`?e(t):void 0}var ep=Zd,tp=$d,np=rf,rp=cf,ip=mf,ap=gf,op=yf,sp=Sf,cp=Ef,lp=Of,up=Mf,dp=Pf,fp=If,pp=Hf,mp=Wf,hp=`DropdownMenu`,[gp,_p]=Zr(hp,[Wd]),vp=Wd(),[yp,bp]=gp(hp),xp=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=vp(t),l=P.useRef(null),[u,d]=ii({prop:i,defaultProp:a??!1,onChange:o,caller:hp});return(0,F.jsx)(yp,{scope:t,triggerId:ni(),triggerRef:l,contentId:ni(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,F.jsx)(ep,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};xp.displayName=hp;var Sp=`DropdownMenuTrigger`,Cp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=bp(Sp,n),o=vp(n);return(0,F.jsx)(tp,{asChild:!0,...o,children:(0,F.jsx)(mi.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:un(t,a.triggerRef),onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Cp.displayName=Sp;var wp=`DropdownMenuPortal`,Tp=e=>{let{__scopeDropdownMenu:t,...n}=e,r=vp(t);return(0,F.jsx)(np,{...r,...n})};Tp.displayName=wp;var Ep=`DropdownMenuContent`,Dp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bp(Ep,n),a=vp(n),o=P.useRef(!1);return(0,F.jsx)(rp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Dp.displayName=Ep;var Op=`DropdownMenuGroup`,kp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(ip,{...i,...r,ref:t})});kp.displayName=Op;var Ap=`DropdownMenuLabel`,jp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(ap,{...i,...r,ref:t})});jp.displayName=Ap;var Mp=`DropdownMenuItem`,Np=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(op,{...i,...r,ref:t})});Np.displayName=Mp;var Pp=`DropdownMenuCheckboxItem`,Fp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(sp,{...i,...r,ref:t})});Fp.displayName=Pp;var Ip=`DropdownMenuRadioGroup`,Lp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(cp,{...i,...r,ref:t})});Lp.displayName=Ip;var Rp=`DropdownMenuRadioItem`,zp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(lp,{...i,...r,ref:t})});zp.displayName=Rp;var Bp=`DropdownMenuItemIndicator`,Vp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(up,{...i,...r,ref:t})});Vp.displayName=Bp;var Hp=`DropdownMenuSeparator`,Up=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(dp,{...i,...r,ref:t})});Up.displayName=Hp;var Wp=`DropdownMenuArrow`,Gp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(fp,{...i,...r,ref:t})});Gp.displayName=Wp;var Kp=`DropdownMenuSubTrigger`,qp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(pp,{...i,...r,ref:t})});qp.displayName=Kp;var Jp=`DropdownMenuSubContent`,Yp=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=vp(n);return(0,F.jsx)(mp,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yp.displayName=Jp;var Xp=xp,Zp=Cp,Qp=Tp,$p=Dp,em=jp,tm=Np,nm=Up,rm=Xp,im=Zp,am=P.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,F.jsx)(Qp,{children:(0,F.jsx)($p,{ref:r,sideOffset:t,className:B(`z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-card backdrop-blur-md p-1 text-foreground shadow-[var(--glass-shadow-lg)] 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})}));am.displayName=$p.displayName;var om=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(tm,{ref:r,className:B(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`ps-8`,e),...n}));om.displayName=tm.displayName;var sm=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(em,{ref:r,className:B(`px-2 py-1.5 text-sm font-semibold text-primary`,t&&`ps-8`,e),...n}));sm.displayName=em.displayName;var cm=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(nm,{ref:n,className:B(`-mx-1 my-1 h-px bg-[var(--glass-border)]`,e),...t}));cm.displayName=nm.displayName;function lm(e){return Array.isArray(e.items)}function um({group:e,pathname:t,search:n}){return(0,F.jsxs)(ks,{children:[e.title&&(0,F.jsx)(As,{children:e.title}),(0,F.jsx)(js,{children:e.items.map(e=>(0,F.jsx)(fm,{item:e,pathname:t,search:n},dm(e)))})]})}function dm(e){return lm(e)?`g:${e.title}`:`l:${e.url}`}function fm({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=xs();return lm(e)?r===`collapsed`&&!i?(0,F.jsx)(gm,{item:e,pathname:t,search:n}):(0,F.jsx)(mm,{item:e,pathname:t,search:n}):(0,F.jsx)(pm,{item:e,pathname:t,search:n})}function pm({item:e,pathname:t,search:n}){let{setOpenMobile:r}=xs();return(0,F.jsx)(Ms,{children:(0,F.jsx)(Ps,{asChild:!0,isActive:vm(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(_m,{sidebarLabel:!0,children:e.badge})]})})})}function mm({item:e,pathname:t,search:n}){let r=ym(e,t,n);return(0,F.jsx)(Ac,{defaultOpen:r,className:`group/collapsible`,asChild:!0,children:(0,F.jsxs)(Ms,{children:[(0,F.jsx)(jc,{asChild:!0,children:(0,F.jsxs)(Ps,{isActive:r,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(_m,{sidebarLabel:!0,children:e.badge}),(0,F.jsx)(xt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180 rtl:group-data-[state=open]/collapsible:-rotate-90`})]})}),(0,F.jsx)(Mc,{children:(0,F.jsx)(Fs,{children:e.items.map(e=>(0,F.jsx)(hm,{link:e,pathname:t,search:n},e.url))})})]})})}function hm({link:e,pathname:t,search:n}){let{setOpenMobile:r}=xs();return(0,F.jsx)(Is,{children:(0,F.jsx)(Ls,{asChild:!0,isActive:vm(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,onClick:()=>r(!1),children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{children:e.title}),e.badge&&(0,F.jsx)(_m,{children:e.badge})]})})})}function gm({item:e,pathname:t,search:n}){let r=ym(e,t,n),{direction:i}=W();return(0,F.jsx)(Ms,{children:(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Ps,{isActive:r,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,children:e.title}),(0,F.jsx)(xt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,F.jsxs)(am,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,F.jsx)(sm,{children:e.title}),(0,F.jsx)(cm,{}),e.items.map(e=>(0,F.jsx)(om,{asChild:!0,children:(0,F.jsx)(`a`,{href:e.url,className:B(vm(e,t,n)&&`font-medium`),children:e.title})},e.url))]})]})})}function _m({children:e,sidebarLabel:t=!1}){return(0,F.jsx)(`span`,{"data-sidebar-label":t||void 0,className:`ms-auto rounded-full bg-accent px-2 py-0.5 text-xs text-accent-foreground`,children:e})}function vm(e,t,n){let r=new URL(e.url,`http://x`);if(r.pathname!==t)return!1;if(!r.search)return!0;let i=new URLSearchParams(r.search),a=new URLSearchParams(n);for(let[e,t]of i.entries())if(a.get(e)!==t)return!1;return!0}function ym(e,t,n){return e.items.some(e=>vm(e,t,n))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}var bm={en:{"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account isn't on the admin staff list.`,"auth.accessDenied.askOwner":`Ask a site owner to add your GitHub login, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`AotterMantle admin`,"auth.signIn.title":`Sign in`,"auth.signIn.body":`Staff console. Access is gated by role after sign-in.`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"auth.signIn.noMethods":`No sign-in methods are configured for this site.`,"auth.signIn.unknownMethod":`Unsupported sign-in method: {kind}.`,"auth.signIn.method.social.button":`Continue with {provider}`,"auth.signIn.method.email-otp.body":`Sign in with a one-time code sent to your email.`,"auth.signIn.method.email-otp.emailLabel":`Email address`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`Send code`,"auth.signIn.method.email-otp.sendFailed":`Couldn't send the code. Check the email and try again.`,"auth.signIn.method.email-otp.sentTo":`We sent a code to {email}.`,"auth.signIn.method.email-otp.otpLabel":`One-time code`,"auth.signIn.method.email-otp.otpPlaceholder":`Enter the 6-digit code`,"auth.signIn.method.email-otp.verifyButton":`Verify and sign in`,"auth.signIn.method.email-otp.verifyFailed":`That code didn't match. Try again.`,"auth.signIn.method.email-otp.back":`Use a different email`,"auth.signIn.method.magic-link.body":`We'll email you a one-tap sign-in link.`,"auth.signIn.method.magic-link.emailLabel":`Email address`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`Send sign-in link`,"auth.signIn.method.magic-link.sendFailed":`Couldn't send the link. Check the email and try again.`,"auth.signIn.method.magic-link.sentTo":`We sent a sign-in link to {email}.`,"auth.signIn.method.magic-link.clickHint":`Click the link in the email to finish signing in. The link expires shortly.`,"auth.signIn.method.magic-link.anotherEmail":`Use a different email`,"common.signOut":`Sign out`,"common.viewSite":`View site`,"common.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.signedIn":`Signed in`,"console.eyebrow":`Owner console`,"console.description":`{title} is deployed. Use this console for orientation; use an MCP-capable agent for content operations.`,"console.descriptionFallback":`Use this console for orientation; use an MCP-capable agent for content operations.`,"console.agent.title":`Next: connect an agent`,"console.agent.body":`Give this Staff MCP URL to Claude Code, Codex, Cursor, or another MCP client. It will open a consent screen, then the agent can manage this site's content with your staff permission.`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`Public URL`,"console.loop.title":`Operational loop`,"console.loop.body":`Ask your content agent to list entries, create drafts, publish, unpublish, or adjust copy. Then refresh this console if you want a human-readable inventory.`,"console.loop.step1":`Open the public site and inspect the result.`,"console.loop.step2":`Connect a second agent through MCP.`,"console.loop.step3":`Tell the agent what content or workflow to change.`,"console.collections.eyebrow":`Content model`,"console.collections.title":`Collections`,"console.collections.body":`These collections come from your 4-atom manifest set. Translation child schemas are folded into their parent.`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`A blank project can add Schema manifests later; a starter should normally seed at least one collection.`,"console.collections.noDescription":`No description.`,"collection.breadcrumb":`Collections`,"collection.defaultDescription":`Entries in this collection.`,"collection.filter.all":`All`,"collection.empty.title":`No entries yet`,"collection.empty.withStatus":`No {status} entries in this collection.`,"collection.empty.all":`This collection has no entries yet.`,"collection.moreRows":`More rows are available, but cursor pagination is not wired in this admin shell yet.`,"collection.table.id":`ID`,"collection.table.title":`Title`,"collection.table.status":`Status`,"collection.table.locale":`Locale`,"collection.table.version":`Version`,"collection.table.updated":`Updated`,"collection.untitled":`(untitled)`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`More`,"nav.approvals":`Approvals`,"nav.settings":`Settings`,"status.draft":`Drafts`,"status.review":`In Review`,"status.published":`Published`,"status.archived":`Archived`,"preferences.heading":`Preferences`,"preferences.language":`Admin language`,"preferences.language.search":`Search languages...`,"preferences.language.noResults":`No languages found.`,"preferences.direction":`Text direction`,"preferences.direction.auto":`Text direction follows the selected language.`,"preferences.appearance":`Appearance`,"preferences.light":`Light`,"preferences.dark":`Dark`,"preferences.system":`System`,"preferences.ltr":`Left to right`,"preferences.rtl":`Right to left`,"preferences.page.title":`Personal preferences`,"preferences.page.body":`These preferences stay on this browser. They change the admin console only and do not modify site settings.`,"preferences.page.languageBody":`Choose the language used by system pages and admin chrome.`,"preferences.page.appearanceBody":`Choose light, dark, or follow your operating system.`,"preferences.page.open":`Preferences`,"settings.planned.title":`Settings are not wired yet`,"settings.planned.body":`Settings are for values persisted to the site, such as site config. Preferences stay local to this browser.`,"system.notFound.title":`Not found`,"system.notFound.plannedTitle":`Not wired yet`,"system.notFound.body":`No view registered for`,"system.notFound.back":`Back to home`},"zh-TW":{"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號不在 admin staff 清單內。`,"auth.accessDenied.askOwner":`請網站 owner 加入你的 GitHub login,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`AotterMantle 後台`,"auth.signIn.title":`登入`,"auth.signIn.body":`Staff 後台。登入後依角色決定能用的範圍。`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.button":`使用 {provider} 繼續`,"auth.signIn.method.email-otp.body":`輸入 email,我們會寄一次性驗證碼給你。`,"auth.signIn.method.email-otp.emailLabel":`電子郵件`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`寄送驗證碼`,"auth.signIn.method.email-otp.sendFailed":`驗證碼寄送失敗,請確認 email 後重試。`,"auth.signIn.method.email-otp.sentTo":`已寄驗證碼到 {email}。`,"auth.signIn.method.email-otp.otpLabel":`驗證碼`,"auth.signIn.method.email-otp.otpPlaceholder":`輸入 6 位驗證碼`,"auth.signIn.method.email-otp.verifyButton":`驗證並登入`,"auth.signIn.method.email-otp.verifyFailed":`驗證碼錯誤,請再試一次。`,"auth.signIn.method.email-otp.back":`用其他 email`,"auth.signIn.method.magic-link.body":`我們會寄一個一鍵登入連結給你。`,"auth.signIn.method.magic-link.emailLabel":`電子郵件`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`寄送登入連結`,"auth.signIn.method.magic-link.sendFailed":`連結寄送失敗,請確認 email 後重試。`,"auth.signIn.method.magic-link.sentTo":`已將登入連結寄到 {email}。`,"auth.signIn.method.magic-link.clickHint":`請點 email 裡的連結完成登入。連結很快會過期。`,"auth.signIn.method.magic-link.anotherEmail":`用其他 email`,"common.signOut":`登出`,"common.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.signedIn":`已登入`,"console.eyebrow":`Owner console`,"console.description":`{title} 已部署完成。這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.descriptionFallback":`這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.agent.title":`下一步:連接 agent`,"console.agent.body":`把這個 Staff MCP URL 交給 Claude Code、Codex、Cursor 或其他 MCP client。它會開啟 consent 畫面,授權後 agent 就能用你的 staff 權限管理網站內容。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公開網站 URL`,"console.loop.title":`營運閉環`,"console.loop.body":`你可以請內容 agent 列出 entries、建立草稿、發布、取消發布或調整文案。需要人工盤點時,再回這個 console 查看。`,"console.loop.step1":`先打開公開網站檢查結果。`,"console.loop.step2":`透過 MCP 連接第二個 agent。`,"console.loop.step3":`用自然語言告訴 agent 要改內容或流程。`,"console.collections.eyebrow":`內容模型`,"console.collections.title":`Collections`,"console.collections.body":`這些 collections 來自你的 4-atom manifest。翻譯 child schema 會折進 parent 顯示。`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`Blank project 之後可以新增 Schema manifests;starter 通常應該至少有一個 collection。`,"console.collections.noDescription":`沒有描述。`,"collection.breadcrumb":`Collections`,"collection.defaultDescription":`這個 collection 裡的 entries。`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有 entries`,"collection.empty.withStatus":`這個 collection 目前沒有 {status} entries。`,"collection.empty.all":`這個 collection 目前沒有 entries。`,"collection.moreRows":`還有更多資料,但這個 admin shell 尚未接上 cursor pagination。`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.untitled":`(未命名)`,"nav.home":`首頁`,"nav.content":`內容`,"nav.more":`更多`,"nav.approvals":`審核`,"nav.settings":`設定`,"status.draft":`草稿`,"status.review":`審核中`,"status.published":`已發布`,"status.archived":`已封存`,"preferences.heading":`偏好設定`,"preferences.language":`後台語言`,"preferences.language.search":`搜尋語言...`,"preferences.language.noResults":`找不到語言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向會跟隨選擇的語言。`,"preferences.appearance":`外觀`,"preferences.light":`淺色`,"preferences.dark":`深色`,"preferences.system":`跟隨系統`,"preferences.ltr":`左到右`,"preferences.rtl":`右到左`,"preferences.page.title":`個人偏好`,"preferences.page.body":`這些偏好只保存在這個瀏覽器,只影響 admin console,不會改動站台設定。`,"preferences.page.languageBody":`選擇系統頁與 admin chrome 使用的語言。`,"preferences.page.appearanceBody":`選擇淺色、深色,或跟隨作業系統。`,"preferences.page.open":`個人偏好`,"settings.planned.title":`Settings 尚未接上`,"settings.planned.body":`Settings 是會寫進站台的資料,例如 site config。Preferences 則只保存在這個瀏覽器。`,"system.notFound.title":`找不到頁面`,"system.notFound.plannedTitle":`尚未接上`,"system.notFound.body":`沒有 view 註冊在`,"system.notFound.back":`回首頁`},"zh-CN":{"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.signedIn":`已登录`,"console.agent.title":`下一步:连接 agent`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公开网站 URL`,"console.collections.title":`Collections`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"nav.home":`首页`,"nav.content":`内容`,"nav.more":`更多`,"nav.approvals":`审核`,"nav.settings":`设置`,"status.draft":`草稿`,"status.review":`审核中`,"status.published":`已发布`,"status.archived":`已归档`,"preferences.heading":`偏好设置`,"preferences.language":`后台语言`,"preferences.language.search":`搜索语言...`,"preferences.language.noResults":`找不到语言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向会跟随选择的语言。`,"preferences.appearance":`外观`,"preferences.light":`浅色`,"preferences.dark":`深色`,"preferences.system":`跟随系统`,"preferences.ltr":`从左到右`,"preferences.rtl":`从右到左`,"preferences.page.open":`个人偏好`,"preferences.page.title":`个人偏好`,"preferences.page.body":`这些偏好只保存在此浏览器,只影响 admin console,不会修改站点设置。`,"preferences.page.languageBody":`选择系统页面和 admin chrome 使用的语言。`,"preferences.page.appearanceBody":`选择浅色、深色,或跟随操作系统。`},de:{"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"console.agent.title":`Nächster Schritt: Agent verbinden`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.content":`Inhalte`,"nav.more":`Mehr`,"nav.approvals":`Freigaben`,"nav.settings":`Einstellungen`,"status.draft":`Entwürfe`,"status.review":`In Prüfung`,"status.published":`Veröffentlicht`,"status.archived":`Archiviert`,"preferences.heading":`Präferenzen`,"preferences.language":`Admin-Sprache`,"preferences.language.search":`Sprachen suchen...`,"preferences.language.noResults":`Keine Sprachen gefunden.`,"preferences.direction":`Textrichtung`,"preferences.direction.auto":`Die Textrichtung folgt der gewählten Sprache.`,"preferences.appearance":`Darstellung`,"preferences.light":`Hell`,"preferences.dark":`Dunkel`,"preferences.system":`System`,"preferences.ltr":`Links nach rechts`,"preferences.rtl":`Rechts nach links`,"preferences.page.open":`Präferenzen`,"preferences.page.title":`Persönliche Präferenzen`,"preferences.page.body":`Diese Präferenzen bleiben in diesem Browser. Sie ändern nur die Admin-Konsole und keine Website-Einstellungen.`,"preferences.page.languageBody":`Wähle die Sprache für Systemseiten und Admin-Chrome.`,"preferences.page.appearanceBody":`Wähle hell, dunkel oder dein Betriebssystem.`},es:{"auth.signIn.title":`Iniciar sesión`,"common.signOut":`Cerrar sesión`,"common.viewSite":`Ver sitio`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Error al cargar`,"common.signedIn":`Sesión iniciada`,"console.agent.title":`Siguiente: conectar un agente`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.content":`Contenido`,"nav.more":`Más`,"nav.approvals":`Aprobaciones`,"nav.settings":`Configuración`,"status.draft":`Borradores`,"status.review":`En revisión`,"status.published":`Publicado`,"status.archived":`Archivado`,"preferences.heading":`Preferencias`,"preferences.language":`Idioma del admin`,"preferences.language.search":`Buscar idiomas...`,"preferences.language.noResults":`No se encontraron idiomas.`,"preferences.direction":`Dirección del texto`,"preferences.direction.auto":`La dirección del texto sigue el idioma seleccionado.`,"preferences.appearance":`Apariencia`,"preferences.light":`Claro`,"preferences.dark":`Oscuro`,"preferences.system":`Sistema`,"preferences.ltr":`Izquierda a derecha`,"preferences.rtl":`Derecha a izquierda`,"preferences.page.open":`Preferencias`,"preferences.page.title":`Preferencias personales`,"preferences.page.body":`Estas preferencias se guardan en este navegador. Solo cambian la consola de administración y no modifican la configuración del sitio.`,"preferences.page.languageBody":`Elige el idioma de las páginas del sistema y la interfaz de administración.`,"preferences.page.appearanceBody":`Elige claro, oscuro o seguir el sistema operativo.`},fr:{"auth.signIn.title":`Se connecter`,"common.signOut":`Se déconnecter`,"common.viewSite":`Voir le site`,"common.copy":`Copier`,"common.open":`Ouvrir`,"common.failedToLoad":`Échec du chargement`,"common.signedIn":`Connecté`,"console.agent.title":`Étape suivante : connecter un agent`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.content":`Contenu`,"nav.more":`Plus`,"nav.approvals":`Approbations`,"nav.settings":`Paramètres`,"status.draft":`Brouillons`,"status.review":`En révision`,"status.published":`Publié`,"status.archived":`Archivé`,"preferences.heading":`Préférences`,"preferences.language":`Langue admin`,"preferences.language.search":`Rechercher une langue...`,"preferences.language.noResults":`Aucune langue trouvée.`,"preferences.direction":`Direction du texte`,"preferences.direction.auto":`La direction du texte suit la langue sélectionnée.`,"preferences.appearance":`Apparence`,"preferences.light":`Clair`,"preferences.dark":`Sombre`,"preferences.system":`Système`,"preferences.ltr":`Gauche à droite`,"preferences.rtl":`Droite à gauche`,"preferences.page.open":`Préférences`,"preferences.page.title":`Préférences personnelles`,"preferences.page.body":`Ces préférences restent dans ce navigateur. Elles modifient seulement la console admin, pas les paramètres du site.`,"preferences.page.languageBody":`Choisissez la langue des pages système et de l'interface admin.`,"preferences.page.appearanceBody":`Choisissez clair, sombre ou le thème du système.`},it:{"auth.signIn.title":`Accedi`,"common.signOut":`Esci`,"common.viewSite":`Vedi sito`,"common.copy":`Copia`,"common.open":`Apri`,"common.failedToLoad":`Caricamento non riuscito`,"common.signedIn":`Accesso effettuato`,"console.agent.title":`Prossimo: collega un agente`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.content":`Contenuti`,"nav.more":`Altro`,"nav.approvals":`Approvazioni`,"nav.settings":`Impostazioni`,"status.draft":`Bozze`,"status.review":`In revisione`,"status.published":`Pubblicato`,"status.archived":`Archiviato`,"preferences.heading":`Preferenze`,"preferences.language":`Lingua admin`,"preferences.language.search":`Cerca lingue...`,"preferences.language.noResults":`Nessuna lingua trovata.`,"preferences.direction":`Direzione testo`,"preferences.direction.auto":`La direzione del testo segue la lingua selezionata.`,"preferences.appearance":`Aspetto`,"preferences.light":`Chiaro`,"preferences.dark":`Scuro`,"preferences.system":`Sistema`,"preferences.ltr":`Da sinistra a destra`,"preferences.rtl":`Da destra a sinistra`,"preferences.page.open":`Preferenze`,"preferences.page.title":`Preferenze personali`,"preferences.page.body":`Queste preferenze restano in questo browser. Modificano solo la console admin e non le impostazioni del sito.`,"preferences.page.languageBody":`Scegli la lingua delle pagine di sistema e dell'interfaccia admin.`,"preferences.page.appearanceBody":`Scegli chiaro, scuro o segui il sistema operativo.`},ja:{"auth.signIn.title":`サインイン`,"auth.signIn.body":`管理コンソールです。サインイン後にロールでアクセスを判定します。`,"auth.signIn.methodsLoadFailed":`サインイン方法を読み込めませんでした。再読み込みしてください。`,"auth.signIn.noMethods":`このサイトにはサインイン方法が設定されていません。`,"auth.signIn.unknownMethod":`未対応のサインイン方法: {kind}`,"auth.signIn.method.social.button":`{provider} でサインイン`,"auth.signIn.method.email-otp.body":`メールに届くワンタイムコードでサインインします。`,"auth.signIn.method.email-otp.emailLabel":`メールアドレス`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`コードを送信`,"auth.signIn.method.email-otp.sendFailed":`コードの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.email-otp.sentTo":`{email} にコードを送信しました。`,"auth.signIn.method.email-otp.otpLabel":`ワンタイムコード`,"auth.signIn.method.email-otp.otpPlaceholder":`6 桁のコードを入力`,"auth.signIn.method.email-otp.verifyButton":`コードを確認してサインイン`,"auth.signIn.method.email-otp.verifyFailed":`コードが一致しません。もう一度入力してください。`,"auth.signIn.method.email-otp.back":`別のメールアドレスを使う`,"auth.signIn.method.magic-link.body":`ワンタップでサインインできるリンクをメールでお送りします。`,"auth.signIn.method.magic-link.emailLabel":`メールアドレス`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`サインインリンクを送信`,"auth.signIn.method.magic-link.sendFailed":`リンクの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.magic-link.sentTo":`{email} にサインインリンクを送信しました。`,"auth.signIn.method.magic-link.clickHint":`メール内のリンクをクリックしてサインインを完了してください。リンクはまもなく失効します。`,"auth.signIn.method.magic-link.anotherEmail":`別のメールアドレスを使う`,"common.signOut":`サインアウト`,"common.viewSite":`サイトを見る`,"common.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"console.agent.title":`次へ: agent を接続`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.content":`コンテンツ`,"nav.more":`その他`,"nav.approvals":`承認`,"nav.settings":`設定`,"status.draft":`下書き`,"status.review":`レビュー中`,"status.published":`公開済み`,"status.archived":`アーカイブ済み`,"preferences.heading":`環境設定`,"preferences.language":`管理画面の言語`,"preferences.language.search":`言語を検索...`,"preferences.language.noResults":`言語が見つかりません。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向は選択した言語に従います。`,"preferences.appearance":`外観`,"preferences.light":`ライト`,"preferences.dark":`ダーク`,"preferences.system":`システム`,"preferences.ltr":`左から右`,"preferences.rtl":`右から左`,"preferences.page.open":`環境設定`,"preferences.page.title":`個人設定`,"preferences.page.body":`これらの設定はこのブラウザにのみ保存されます。管理コンソールだけに影響し、サイト設定は変更しません。`,"preferences.page.languageBody":`システムページと管理 UI で使う言語を選びます。`,"preferences.page.appearanceBody":`ライト、ダーク、またはシステム設定に合わせます。`},ko:{"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"console.agent.title":`다음: agent 연결`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.content":`콘텐츠`,"nav.more":`더보기`,"nav.approvals":`승인`,"nav.settings":`설정`,"status.draft":`초안`,"status.review":`검토 중`,"status.published":`게시됨`,"status.archived":`보관됨`,"preferences.heading":`환경설정`,"preferences.language":`관리 언어`,"preferences.language.search":`언어 검색...`,"preferences.language.noResults":`언어를 찾을 수 없습니다.`,"preferences.direction":`텍스트 방향`,"preferences.direction.auto":`텍스트 방향은 선택한 언어를 따릅니다.`,"preferences.appearance":`화면 모드`,"preferences.light":`라이트`,"preferences.dark":`다크`,"preferences.system":`시스템`,"preferences.ltr":`왼쪽에서 오른쪽`,"preferences.rtl":`오른쪽에서 왼쪽`,"preferences.page.open":`환경설정`,"preferences.page.title":`개인 환경설정`,"preferences.page.body":`이 설정은 이 브라우저에만 저장됩니다. 관리 콘솔에만 적용되며 사이트 설정은 변경하지 않습니다.`,"preferences.page.languageBody":`시스템 페이지와 관리 UI에 사용할 언어를 선택합니다.`,"preferences.page.appearanceBody":`라이트, 다크 또는 운영체제 설정을 따르도록 선택합니다.`},"pt-BR":{"auth.signIn.title":`Entrar`,"common.signOut":`Sair`,"common.viewSite":`Ver site`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Falha ao carregar`,"common.signedIn":`Conectado`,"console.agent.title":`Próximo: conectar um agente`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.content":`Conteúdo`,"nav.more":`Mais`,"nav.approvals":`Aprovações`,"nav.settings":`Configurações`,"status.draft":`Rascunhos`,"status.review":`Em revisão`,"status.published":`Publicado`,"status.archived":`Arquivado`,"preferences.heading":`Preferências`,"preferences.language":`Idioma do admin`,"preferences.language.search":`Pesquisar idiomas...`,"preferences.language.noResults":`Nenhum idioma encontrado.`,"preferences.direction":`Direção do texto`,"preferences.direction.auto":`A direção do texto segue o idioma selecionado.`,"preferences.appearance":`Aparência`,"preferences.light":`Claro`,"preferences.dark":`Escuro`,"preferences.system":`Sistema`,"preferences.ltr":`Esquerda para direita`,"preferences.rtl":`Direita para esquerda`,"preferences.page.open":`Preferências`,"preferences.page.title":`Preferências pessoais`,"preferences.page.body":`Estas preferências ficam neste navegador. Elas mudam apenas o console admin e não alteram as configurações do site.`,"preferences.page.languageBody":`Escolha o idioma das páginas do sistema e da interface admin.`,"preferences.page.appearanceBody":`Escolha claro, escuro ou seguir o sistema operacional.`},ru:{"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"console.agent.title":`Далее: подключите агента`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.content":`Контент`,"nav.more":`Еще`,"nav.approvals":`Одобрения`,"nav.settings":`Настройки`,"status.draft":`Черновики`,"status.review":`На проверке`,"status.published":`Опубликовано`,"status.archived":`Архив`,"preferences.heading":`Предпочтения`,"preferences.language":`Язык админки`,"preferences.language.search":`Поиск языков...`,"preferences.language.noResults":`Языки не найдены.`,"preferences.direction":`Направление текста`,"preferences.direction.auto":`Направление текста следует выбранному языку.`,"preferences.appearance":`Внешний вид`,"preferences.light":`Светлая`,"preferences.dark":`Темная`,"preferences.system":`Система`,"preferences.ltr":`Слева направо`,"preferences.rtl":`Справа налево`,"preferences.page.open":`Предпочтения`,"preferences.page.title":`Личные предпочтения`,"preferences.page.body":`Эти предпочтения хранятся в этом браузере. Они меняют только админ-консоль и не изменяют настройки сайта.`,"preferences.page.languageBody":`Выберите язык системных страниц и интерфейса админки.`,"preferences.page.appearanceBody":`Выберите светлую, темную тему или тему системы.`},nl:{"auth.signIn.title":`Inloggen`,"common.signOut":`Uitloggen`,"common.viewSite":`Site bekijken`,"common.copy":`Kopiëren`,"common.open":`Openen`,"common.failedToLoad":`Laden mislukt`,"common.signedIn":`Ingelogd`,"console.agent.title":`Volgende stap: agent verbinden`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`Meer`,"nav.approvals":`Goedkeuringen`,"nav.settings":`Instellingen`,"status.draft":`Concepten`,"status.review":`In review`,"status.published":`Gepubliceerd`,"status.archived":`Gearchiveerd`,"preferences.heading":`Voorkeuren`,"preferences.language":`Beheertaal`,"preferences.language.search":`Talen zoeken...`,"preferences.language.noResults":`Geen talen gevonden.`,"preferences.direction":`Tekstrichting`,"preferences.direction.auto":`De tekstrichting volgt de gekozen taal.`,"preferences.appearance":`Weergave`,"preferences.light":`Licht`,"preferences.dark":`Donker`,"preferences.system":`Systeem`,"preferences.ltr":`Links naar rechts`,"preferences.rtl":`Rechts naar links`,"preferences.page.open":`Voorkeuren`,"preferences.page.title":`Persoonlijke voorkeuren`,"preferences.page.body":`Deze voorkeuren blijven in deze browser. Ze wijzigen alleen de adminconsole en niet de site-instellingen.`,"preferences.page.languageBody":`Kies de taal voor systeempagina's en de admininterface.`,"preferences.page.appearanceBody":`Kies licht, donker of volg het besturingssysteem.`},pl:{"auth.signIn.title":`Zaloguj się`,"common.signOut":`Wyloguj się`,"common.viewSite":`Zobacz stronę`,"common.copy":`Kopiuj`,"common.open":`Otwórz`,"common.failedToLoad":`Nie udało się załadować`,"common.signedIn":`Zalogowano`,"console.agent.title":`Dalej: połącz agenta`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.content":`Treści`,"nav.more":`Więcej`,"nav.approvals":`Zatwierdzenia`,"nav.settings":`Ustawienia`,"status.draft":`Szkice`,"status.review":`W recenzji`,"status.published":`Opublikowane`,"status.archived":`Zarchiwizowane`,"preferences.heading":`Preferencje`,"preferences.language":`Język panelu`,"preferences.language.search":`Szukaj języków...`,"preferences.language.noResults":`Nie znaleziono języków.`,"preferences.direction":`Kierunek tekstu`,"preferences.direction.auto":`Kierunek tekstu wynika z wybranego języka.`,"preferences.appearance":`Wygląd`,"preferences.light":`Jasny`,"preferences.dark":`Ciemny`,"preferences.system":`System`,"preferences.ltr":`Od lewej do prawej`,"preferences.rtl":`Od prawej do lewej`,"preferences.page.open":`Preferencje`,"preferences.page.title":`Preferencje osobiste`,"preferences.page.body":`Te preferencje są zapisane w tej przeglądarce. Zmieniają tylko konsolę administracyjną, nie ustawienia strony.`,"preferences.page.languageBody":`Wybierz język stron systemowych i interfejsu admina.`,"preferences.page.appearanceBody":`Wybierz jasny, ciemny lub zgodny z systemem.`},tr:{"auth.signIn.title":`Oturum aç`,"common.signOut":`Çıkış yap`,"common.viewSite":`Siteyi görüntüle`,"common.copy":`Kopyala`,"common.open":`Aç`,"common.failedToLoad":`Yüklenemedi`,"common.signedIn":`Oturum açık`,"console.agent.title":`Sonraki: agent bağla`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.content":`İçerik`,"nav.more":`Daha fazla`,"nav.approvals":`Onaylar`,"nav.settings":`Ayarlar`,"status.draft":`Taslaklar`,"status.review":`İncelemede`,"status.published":`Yayında`,"status.archived":`Arşivlendi`,"preferences.heading":`Tercihler`,"preferences.language":`Yönetici dili`,"preferences.language.search":`Dil ara...`,"preferences.language.noResults":`Dil bulunamadı.`,"preferences.direction":`Metin yönü`,"preferences.direction.auto":`Metin yönü seçilen dili izler.`,"preferences.appearance":`Görünüm`,"preferences.light":`Açık`,"preferences.dark":`Koyu`,"preferences.system":`Sistem`,"preferences.ltr":`Soldan sağa`,"preferences.rtl":`Sağdan sola`,"preferences.page.open":`Tercihler`,"preferences.page.title":`Kişisel tercihler`,"preferences.page.body":`Bu tercihler bu tarayıcıda kalır. Yalnızca yönetim konsolunu değiştirir, site ayarlarını değiştirmez.`,"preferences.page.languageBody":`Sistem sayfaları ve yönetim arayüzü için dili seçin.`,"preferences.page.appearanceBody":`Açık, koyu veya işletim sistemini takip et seçeneğini seçin.`},vi:{"auth.signIn.title":`Đăng nhập`,"common.signOut":`Đăng xuất`,"common.viewSite":`Xem trang`,"common.copy":`Sao chép`,"common.open":`Mở`,"common.failedToLoad":`Tải thất bại`,"common.signedIn":`Đã đăng nhập`,"console.agent.title":`Tiếp theo: kết nối agent`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.content":`Nội dung`,"nav.more":`Thêm`,"nav.approvals":`Phê duyệt`,"nav.settings":`Cài đặt`,"status.draft":`Bản nháp`,"status.review":`Đang duyệt`,"status.published":`Đã xuất bản`,"status.archived":`Đã lưu trữ`,"preferences.heading":`Tùy chọn`,"preferences.language":`Ngôn ngữ quản trị`,"preferences.language.search":`Tìm ngôn ngữ...`,"preferences.language.noResults":`Không tìm thấy ngôn ngữ.`,"preferences.direction":`Hướng văn bản`,"preferences.direction.auto":`Hướng văn bản theo ngôn ngữ đã chọn.`,"preferences.appearance":`Giao diện`,"preferences.light":`Sáng`,"preferences.dark":`Tối`,"preferences.system":`Hệ thống`,"preferences.ltr":`Trái sang phải`,"preferences.rtl":`Phải sang trái`,"preferences.page.open":`Tùy chọn`,"preferences.page.title":`Tùy chọn cá nhân`,"preferences.page.body":`Các tùy chọn này chỉ lưu trong trình duyệt này. Chúng chỉ thay đổi admin console và không sửa cài đặt trang.`,"preferences.page.languageBody":`Chọn ngôn ngữ cho trang hệ thống và giao diện quản trị.`,"preferences.page.appearanceBody":`Chọn sáng, tối hoặc theo hệ điều hành.`},cs:{"auth.signIn.title":`Přihlásit se`,"common.signOut":`Odhlásit se`,"common.viewSite":`Zobrazit web`,"common.copy":`Kopírovat`,"common.open":`Otevřít`,"common.failedToLoad":`Načtení selhalo`,"common.signedIn":`Přihlášeno`,"console.agent.title":`Další: připojit agenta`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.content":`Obsah`,"nav.more":`Více`,"nav.approvals":`Schválení`,"nav.settings":`Nastavení`,"status.draft":`Koncepty`,"status.review":`V kontrole`,"status.published":`Publikováno`,"status.archived":`Archivováno`,"preferences.heading":`Předvolby`,"preferences.language":`Jazyk administrace`,"preferences.language.search":`Hledat jazyky...`,"preferences.language.noResults":`Nenalezeny žádné jazyky.`,"preferences.direction":`Směr textu`,"preferences.direction.auto":`Směr textu se řídí vybraným jazykem.`,"preferences.appearance":`Vzhled`,"preferences.light":`Světlý`,"preferences.dark":`Tmavý`,"preferences.system":`Systém`,"preferences.ltr":`Zleva doprava`,"preferences.rtl":`Zprava doleva`,"preferences.page.open":`Předvolby`,"preferences.page.title":`Osobní předvolby`,"preferences.page.body":`Tyto předvolby zůstávají v tomto prohlížeči. Mění jen administrační konzoli, ne nastavení webu.`,"preferences.page.languageBody":`Vyberte jazyk systémových stránek a administračního rozhraní.`,"preferences.page.appearanceBody":`Vyberte světlý, tmavý nebo systémový režim.`},uk:{"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"console.agent.title":`Далі: підключіть агента`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.content":`Контент`,"nav.more":`Більше`,"nav.approvals":`Схвалення`,"nav.settings":`Налаштування`,"status.draft":`Чернетки`,"status.review":`На перевірці`,"status.published":`Опубліковано`,"status.archived":`Архівовано`,"preferences.heading":`Параметри`,"preferences.language":`Мова адмінки`,"preferences.language.search":`Пошук мов...`,"preferences.language.noResults":`Мови не знайдено.`,"preferences.direction":`Напрям тексту`,"preferences.direction.auto":`Напрям тексту відповідає вибраній мові.`,"preferences.appearance":`Вигляд`,"preferences.light":`Світла`,"preferences.dark":`Темна`,"preferences.system":`Система`,"preferences.ltr":`Зліва направо`,"preferences.rtl":`Справа наліво`,"preferences.page.open":`Параметри`,"preferences.page.title":`Особисті параметри`,"preferences.page.body":`Ці параметри зберігаються в цьому браузері. Вони змінюють лише адмін-консоль, а не налаштування сайту.`,"preferences.page.languageBody":`Виберіть мову системних сторінок та адмін-інтерфейсу.`,"preferences.page.appearanceBody":`Виберіть світлу, темну тему або тему системи.`},ar:{"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"console.agent.title":`التالي: وصّل الوكيل`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.content":`المحتوى`,"nav.more":`المزيد`,"nav.approvals":`الموافقات`,"nav.settings":`الإعدادات`,"status.draft":`مسودات`,"status.review":`قيد المراجعة`,"status.published":`منشور`,"status.archived":`مؤرشف`,"preferences.heading":`التفضيلات`,"preferences.language":`لغة الإدارة`,"preferences.language.search":`ابحث عن اللغات...`,"preferences.language.noResults":`لم يتم العثور على لغات.`,"preferences.direction":`اتجاه النص`,"preferences.direction.auto":`يتبع اتجاه النص اللغة المحددة.`,"preferences.appearance":`المظهر`,"preferences.light":`فاتح`,"preferences.dark":`داكن`,"preferences.system":`النظام`,"preferences.ltr":`من اليسار إلى اليمين`,"preferences.rtl":`من اليمين إلى اليسار`,"preferences.page.open":`التفضيلات`,"preferences.page.title":`التفضيلات الشخصية`,"preferences.page.body":`تبقى هذه التفضيلات في هذا المتصفح. إنها تغيّر وحدة الإدارة فقط ولا تعدّل إعدادات الموقع.`,"preferences.page.languageBody":`اختر لغة صفحات النظام وواجهة الإدارة.`,"preferences.page.appearanceBody":`اختر الوضع الفاتح أو الداكن أو اتبع نظام التشغيل.`},he:{"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"console.agent.title":`הבא: חבר agent`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.content":`תוכן`,"nav.more":`עוד`,"nav.approvals":`אישורים`,"nav.settings":`הגדרות`,"status.draft":`טיוטות`,"status.review":`בבדיקה`,"status.published":`פורסם`,"status.archived":`בארכיון`,"preferences.heading":`העדפות`,"preferences.language":`שפת ניהול`,"preferences.language.search":`חפש שפות...`,"preferences.language.noResults":`לא נמצאו שפות.`,"preferences.direction":`כיוון טקסט`,"preferences.direction.auto":`כיוון הטקסט נקבע לפי השפה שנבחרה.`,"preferences.appearance":`מראה`,"preferences.light":`בהיר`,"preferences.dark":`כהה`,"preferences.system":`מערכת`,"preferences.ltr":`משמאל לימין`,"preferences.rtl":`מימין לשמאל`,"preferences.page.open":`העדפות`,"preferences.page.title":`העדפות אישיות`,"preferences.page.body":`העדפות אלה נשמרות בדפדפן הזה. הן משנות רק את מסוף הניהול ולא את הגדרות האתר.`,"preferences.page.languageBody":`בחר את שפת דפי המערכת וממשק הניהול.`,"preferences.page.appearanceBody":`בחר בהיר, כהה או לפי מערכת ההפעלה.`},fa:{"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شده‌اید`,"console.agent.title":`بعدی: اتصال agent`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.content":`محتوا`,"nav.more":`بیشتر`,"nav.approvals":`تأییدها`,"nav.settings":`تنظیمات`,"status.draft":`پیش‌نویس‌ها`,"status.review":`در بازبینی`,"status.published":`منتشر شده`,"status.archived":`بایگانی شده`,"preferences.heading":`ترجیحات`,"preferences.language":`زبان مدیریت`,"preferences.language.search":`جستجوی زبان‌ها...`,"preferences.language.noResults":`زبانی پیدا نشد.`,"preferences.direction":`جهت متن`,"preferences.direction.auto":`جهت متن از زبان انتخاب‌شده پیروی می‌کند.`,"preferences.appearance":`ظاهر`,"preferences.light":`روشن`,"preferences.dark":`تیره`,"preferences.system":`سیستم`,"preferences.ltr":`چپ به راست`,"preferences.rtl":`راست به چپ`,"preferences.page.open":`ترجیحات`,"preferences.page.title":`ترجیحات شخصی`,"preferences.page.body":`این ترجیحات در همین مرورگر ذخیره می‌شود. فقط کنسول مدیریت را تغییر می‌دهد و تنظیمات سایت را تغییر نمی‌دهد.`,"preferences.page.languageBody":`زبان صفحات سیستمی و رابط مدیریت را انتخاب کنید.`,"preferences.page.appearanceBody":`روشن، تیره یا پیروی از سیستم‌عامل را انتخاب کنید.`},th:{"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"console.agent.title":`ถัดไป: เชื่อมต่อ agent`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.content":`เนื้อหา`,"nav.more":`เพิ่มเติม`,"nav.approvals":`การอนุมัติ`,"nav.settings":`การตั้งค่า`,"status.draft":`ฉบับร่าง`,"status.review":`กำลังตรวจสอบ`,"status.published":`เผยแพร่แล้ว`,"status.archived":`เก็บถาวร`,"preferences.heading":`ค่ากำหนด`,"preferences.language":`ภาษาผู้ดูแล`,"preferences.language.search":`ค้นหาภาษา...`,"preferences.language.noResults":`ไม่พบภาษา`,"preferences.direction":`ทิศทางข้อความ`,"preferences.direction.auto":`ทิศทางข้อความจะตามภาษาที่เลือก`,"preferences.appearance":`รูปลักษณ์`,"preferences.light":`สว่าง`,"preferences.dark":`มืด`,"preferences.system":`ระบบ`,"preferences.ltr":`ซ้ายไปขวา`,"preferences.rtl":`ขวาไปซ้าย`,"preferences.page.open":`ค่ากำหนด`,"preferences.page.title":`ค่ากำหนดส่วนตัว`,"preferences.page.body":`ค่ากำหนดเหล่านี้จะอยู่ในเบราว์เซอร์นี้เท่านั้น และมีผลกับ admin console โดยไม่แก้การตั้งค่าเว็บไซต์`,"preferences.page.languageBody":`เลือกภาษาสำหรับหน้าระบบและส่วนติดต่อผู้ดูแล`,"preferences.page.appearanceBody":`เลือกสว่าง มืด หรือใช้ตามระบบปฏิบัติการ`},id:{"auth.signIn.title":`Masuk`,"common.signOut":`Keluar`,"common.viewSite":`Lihat situs`,"common.copy":`Salin`,"common.open":`Buka`,"common.failedToLoad":`Gagal memuat`,"common.signedIn":`Sudah masuk`,"console.agent.title":`Berikutnya: hubungkan agent`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.content":`Konten`,"nav.more":`Lainnya`,"nav.approvals":`Persetujuan`,"nav.settings":`Pengaturan`,"status.draft":`Draf`,"status.review":`Dalam ulasan`,"status.published":`Terbit`,"status.archived":`Arsip`,"preferences.heading":`Preferensi`,"preferences.language":`Bahasa admin`,"preferences.language.search":`Cari bahasa...`,"preferences.language.noResults":`Bahasa tidak ditemukan.`,"preferences.direction":`Arah teks`,"preferences.direction.auto":`Arah teks mengikuti bahasa yang dipilih.`,"preferences.appearance":`Tampilan`,"preferences.light":`Terang`,"preferences.dark":`Gelap`,"preferences.system":`Sistem`,"preferences.ltr":`Kiri ke kanan`,"preferences.rtl":`Kanan ke kiri`,"preferences.page.open":`Preferensi`,"preferences.page.title":`Preferensi pribadi`,"preferences.page.body":`Preferensi ini tetap di browser ini. Preferensi hanya mengubah konsol admin dan tidak mengubah pengaturan situs.`,"preferences.page.languageBody":`Pilih bahasa untuk halaman sistem dan antarmuka admin.`,"preferences.page.appearanceBody":`Pilih terang, gelap, atau ikuti sistem operasi.`}};function $(e,t,n={}){let r=bm[e]?.[t]??bm.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function xm({login:e,role:t}){let{isMobile:n}=xs(),{language:r}=W(),i=(e??`?`).charAt(0).toUpperCase(),a=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsx)(js,{children:(0,F.jsx)(Ms,{children:(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Ps,{size:`lg`,className:`data-[state=open]:bg-accent/40`,children:[(0,F.jsx)(Sm,{avatarUrl:a,initial:i}),(0,F.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:e??`—`}),(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t??$(r,`common.signedIn`)})]}),(0,F.jsx)(St,{"data-sidebar-label":!0,className:`ms-auto size-4 text-muted-foreground`,"aria-hidden":!0})]})}),(0,F.jsxs)(am,{align:`end`,side:n?`bottom`:`right`,sideOffset:6,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,children:[(0,F.jsxs)(sm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(Sm,{avatarUrl:a,initial:i,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??$(r,`common.signedIn`)})]})]}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(Bt,{className:`size-4`,"aria-hidden":!0}),$(r,`preferences.page.open`)]})}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:Cm,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(Nt,{className:`size-4`,"aria-hidden":!0}),$(r,`common.signOut`)]})})]})]})})})}function Sm({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-lg`,`bg-primary/15 text-foreground/80 ring-1 ring-border`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full rounded-lg object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function Cm(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function wm({brand:e,groups:t,pathname:n,search:r,user:i}){let{variant:a}=$t(),{direction:o}=W();return(0,F.jsxs)(Ss,{side:o===`rtl`?`right`:`left`,variant:a===`floating`?`sidebar`:a,children:[(0,F.jsx)(Ts,{children:(0,F.jsx)(_c,{brand:e})}),(0,F.jsx)(Os,{}),(0,F.jsx)(Es,{children:t.map((e,t)=>(0,F.jsx)(um,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,F.jsx)(Os,{}),(0,F.jsx)(Ds,{children:(0,F.jsx)(xm,{login:i.login,role:i.role})})]})}var Tm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=gn(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Em=`Separator`,Dm=`horizontal`,Om=[`horizontal`,`vertical`],km=P.forwardRef((e,t)=>{let{decorative:n,orientation:r=Dm,...i}=e,a=Am(r)?r:Dm,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,F.jsx)(Tm.div,{"data-orientation":a,...o,...i,ref:t})});km.displayName=Em;function Am(e){return Om.includes(e)}var jm=km,Mm=P.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,F.jsx)(jm,{ref:i,decorative:n,orientation:t,className:B(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...r}));Mm.displayName=jm.displayName;function Nm({login:e,role:t}){let{language:n}=W(),r=(e??`?`).charAt(0).toUpperCase(),i=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{"aria-label":`Account menu`,className:B(`relative inline-flex size-8 items-center justify-center rounded-full`,`outline-hidden ring-1 ring-border`,`hover:ring-primary/40 transition-all`,`data-[state=open]:ring-primary`),children:(0,F.jsx)(Pm,{avatarUrl:i,initial:r})}),(0,F.jsxs)(am,{align:`end`,sideOffset:6,className:`w-56`,children:[(0,F.jsxs)(sm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(Pm,{avatarUrl:i,initial:r,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??$(n,`common.signedIn`)})]})]}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(Bt,{className:`size-4`,"aria-hidden":!0}),$(n,`preferences.page.open`)]})}),(0,F.jsx)(cm,{}),(0,F.jsx)(om,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:Fm,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(Nt,{className:`size-4`,"aria-hidden":!0}),$(n,`common.signOut`)]})})]})]})}function Pm({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-full overflow-hidden`,`bg-primary/15 text-foreground/80`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function Fm(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function Im(){let{language:e,setLanguage:t}=W(),n=Xs.find(t=>t.value===e)??Xs[0];return(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Yr,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":$(e,`preferences.language`),children:[(0,F.jsx)(Mt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:n.nativeLabel})]})}),(0,F.jsxs)(am,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,F.jsx)(sm,{className:`label-eyebrow opacity-70`,children:$(e,`preferences.language`)}),Xs.map(n=>(0,F.jsxs)(om,{onSelect:()=>t(n.value),className:`justify-between`,children:[(0,F.jsx)(`span`,{children:n.nativeLabel}),(0,F.jsx)(bt,{"aria-hidden":!0,className:B(`size-4 text-primary`,n.value===e?`opacity-100`:`opacity-0`)})]},n.value))]})]})}function Lm(){let{language:e,theme:t,setTheme:n}=W(),r=Rm(e).find(e=>e.value===t),i=r?.icon??Pt;return(0,F.jsxs)(rm,{children:[(0,F.jsx)(im,{asChild:!0,children:(0,F.jsxs)(Yr,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":$(e,`preferences.appearance`),children:[(0,F.jsx)(i,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:r?.label??$(e,`preferences.system`)})]})}),(0,F.jsxs)(am,{align:`end`,className:`w-44`,children:[(0,F.jsx)(sm,{className:`label-eyebrow opacity-70`,children:$(e,`preferences.appearance`)}),Rm(e).map(e=>{let r=e.icon;return(0,F.jsxs)(om,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(r,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,F.jsx)(bt,{"aria-hidden":!0,className:B(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function Rm(e){return[{value:`light`,label:$(e,`preferences.light`),icon:Vt},{value:`dark`,label:$(e,`preferences.dark`),icon:Ft},{value:`system`,label:$(e,`preferences.system`),icon:Pt}]}function zm({fixed:e=!1,className:t,children:n,user:r}){let[i,a]=P.useState(!1);return P.useEffect(()=>{if(!e)return;let t=()=>a(window.scrollY>10);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]),(0,F.jsxs)(`header`,{"data-slot":`header`,"data-scrolled":i||void 0,className:B(`z-20 flex h-14 shrink-0 items-center gap-2 px-4`,e?`sticky top-0 w-[inherit] backdrop-blur transition-shadow`:`border-b border-border/40`,i&&`shadow-sm`,`glass-strip`,t),children:[(0,F.jsx)(Cs,{className:`-ms-1`}),(0,F.jsx)(Mm,{orientation:`vertical`,className:`me-2 h-4`}),n,r?(0,F.jsxs)(`div`,{className:B(`flex items-center gap-2`,n?``:`ms-auto`),children:[(0,F.jsx)(Im,{}),(0,F.jsx)(Lm,{}),(0,F.jsx)(Nm,{login:r.login,role:r.role})]}):null]})}var Bm=`content`;function Vm({className:e}){return(0,F.jsx)(`a`,{href:`#${Bm}`,className:B(`fixed inset-inline-start-3 top-3 z-[999]`,`-translate-y-52 rounded-md bg-primary px-3 py-2 text-sm font-medium`,`text-primary-foreground shadow`,`focus-visible:translate-y-0 transition-transform`,`outline-2 outline-offset-2 outline-ring/40`,e),children:`Skip to main content`})}function Hm({fixed:e=!1,fluid:t=!1,className:n,children:r}){return(0,F.jsx)(`div`,{id:Bm,"data-layout":e?`fixed`:`auto`,className:B(`@container/content`,`px-4 py-6 sm:px-6`,e&&`flex grow flex-col overflow-hidden`,!t&&`@7xl/content:mx-auto @7xl/content:max-w-7xl`,`flex-1`,n),children:r})}function Um(e,t){switch(t){case`draft`:return $(e,`status.draft`);case`review`:return $(e,`status.review`);case`published`:return $(e,`status.published`);case`archived`:return $(e,`status.archived`)}}var Wm={title:`CMS`,subtitle:`admin`,href:`/admin`};function Gm({brand:e=Wm,fixed:t=!1,fluid:n=!1,children:r}){let{pathname:i,search:a}=Ys(),{language:o}=W(),s=lt({queryKey:[`me`],queryFn:()=>Vs.get(`/me`),retry:!1}),c=lt({queryKey:[`collections`],queryFn:async()=>(await Vs.get(`/collections`)).collections}),l=lt({queryKey:[`site`],queryFn:()=>Vs.get(`/site`)}),u=P.useMemo(()=>({...e,title:l.data?.brand??e.title,subtitle:l.data?.canonicalLocale??e.subtitle}),[e,l.data]),d=P.useMemo(()=>Km(c.data??[],o),[c.data,o]);return(0,F.jsx)(Qt,{children:(0,F.jsxs)(bs,{defaultOpen:tn()??!0,children:[(0,F.jsx)(Vm,{}),(0,F.jsx)(wm,{brand:u,groups:d,pathname:i,search:a,user:{login:s.data?.login??null,role:s.data?.role??null}}),(0,F.jsxs)(ws,{children:[(0,F.jsx)(zm,{fixed:!0,user:{login:s.data?.login??null,role:s.data?.role??null}}),(0,F.jsx)(Hm,{fixed:t,fluid:n,children:r})]}),(0,F.jsx)(gc,{})]})})}function Km(e,t){return[{items:[{title:$(t,`nav.home`),url:`/admin`,icon:jt}]},{title:$(t,`nav.content`),items:e.map(e=>({title:e.title,icon:kt,marker:e.hasTranslations?At:void 0,items:qm(e).map(n=>({title:Um(t,n),url:`/admin/c/${e.name}?status=${n}`}))}))},{title:$(t,`nav.more`),items:[{title:$(t,`nav.approvals`),url:`/admin/approvals`,icon:wt},{title:$(t,`nav.settings`),url:`/admin/settings`,icon:Bt}]}]}function qm(e){return e.lifecycle===`editorial`?Hs:Us}function Jm(){return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card w-full max-w-sm p-6`,children:[(0,F.jsx)(`div`,{className:`mb-4 h-4 w-24 animate-pulse rounded bg-muted`}),(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`div`,{className:`h-3 w-full animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 w-2/3 animate-pulse rounded bg-muted`})]})]})})}function Ym({error:e}){let{language:t}=W(),n=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:$(t,`auth.error.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})})}function Xm({login:e}){let{language:t}=W();return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-md p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,F.jsx)(Ht,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:$(t,`auth.accessDenied.title`)}),e?(0,F.jsxs)(`p`,{className:`mb-1 text-sm font-medium text-foreground`,children:[`GitHub: `,e]}):null,(0,F.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:$(t,`auth.accessDenied.noStaff`)}),(0,F.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:$(t,`auth.accessDenied.askOwner`)}),(0,F.jsxs)(Yr,{variant:`outline`,className:`w-full`,onClick:sh,children:[(0,F.jsx)(Nt,{className:`me-2 size-4`,"aria-hidden":!0}),$(t,`common.signOut`)]})]})})}var Zm=`w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,Qm=`first:mt-0 mt-4`,$m=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function eh(){let{language:e}=W(),t=new URLSearchParams(window.location.search).get(`return`)??`/admin`,[n,r]=P.useState(null),[i,a]=P.useState(null);return P.useEffect(()=>{let e=!1;async function t(){try{let t=await fetch(`/api/auth/methods`,{credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(e)return;r(n.methods??[])}catch(t){if(e)return;a(t instanceof Error?t.message:String(t))}}return t(),()=>{e=!0}},[]),(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8`,children:[(0,F.jsx)(`p`,{className:`label-eyebrow mb-2`,children:$(e,`auth.signIn.eyebrow`)}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:$(e,`auth.signIn.title`)}),i?(0,F.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,children:$(e,`auth.signIn.methodsLoadFailed`)}):null,n===null&&!i?(0,F.jsx)(`div`,{className:`space-y-2`,children:(0,F.jsx)(`div`,{className:`h-9 w-full animate-pulse rounded bg-muted`})}):null,n&&n.length===0?(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`auth.signIn.noMethods`)}):null,n&&n.length>0?(0,F.jsx)(`div`,{children:n.map(e=>(0,F.jsx)(th,{method:e,returnTo:t},e.kind===`social`?`social:${e.provider}`:e.kind))}):null]})})}function th({method:e,returnTo:t}){switch(e.kind){case`social`:return(0,F.jsx)(rh,{provider:e.provider,returnTo:t});case`email-otp`:return(0,F.jsx)(ih,{returnTo:t});case`magic-link`:return(0,F.jsx)(ah,{returnTo:t});default:return(0,F.jsx)(oh,{kind:e.kind})}}var nh={github:`GitHub`,google:`Google`,apple:`Apple`,"microsoft-entra-id":`Microsoft`,facebook:`Facebook`,discord:`Discord`,twitter:`Twitter / X`,linkedin:`LinkedIn`,spotify:`Spotify`,twitch:`Twitch`,gitlab:`GitLab`,tiktok:`TikTok`,reddit:`Reddit`,kick:`Kick`,vk:`VK`,naver:`Naver`,kakao:`Kakao`,line:`LINE`,slack:`Slack`,atlassian:`Atlassian`,zoom:`Zoom`,notion:`Notion`,figma:`Figma`,linear:`Linear`,vercel:`Vercel`,paypal:`PayPal`,huggingface:`Hugging Face`,cognito:`Cognito`,salesforce:`Salesforce`,polar:`Polar`,railway:`Railway`,roblox:`Roblox`,paybin:`Paybin`,wechat:`WeChat`,dropbox:`Dropbox`};function rh({provider:e,returnTo:t}){let{language:n}=W(),r=nh[e]??e,i=async()=>{let n=await fetch(`/api/auth/sign-in/social`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:e,callbackURL:t})});if(!n.ok)return;let r=await n.json();r.url&&(window.location.href=r.url)};return(0,F.jsx)(`div`,{className:Qm,children:(0,F.jsx)(Yr,{onClick:()=>void i(),className:`w-full`,children:$(n,`auth.signIn.method.social.button`,{provider:r})})})}function ih({returnTo:e}){let{language:t}=W(),[n,r]=P.useState(`email`),[i,a]=P.useState(``),[o,s]=P.useState(``),[c,l]=P.useState(!1),[u,d]=P.useState(null),f=async e=>{l(!0),d(null);try{await e()}finally{l(!1)}};return(0,F.jsxs)(`div`,{className:$m,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:$(t,`auth.signIn.method.email-otp.body`)}),n===`email`?(0,F.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i&&f(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,type:`sign-in`})})).ok){d($(t,`auth.signIn.method.email-otp.sendFailed`));return}r(`otp`)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:$(t,`auth.signIn.method.email-otp.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-email`,type:`email`,value:i,onChange:e=>a(e.currentTarget.value),placeholder:$(t,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`,className:Zm}),(0,F.jsx)(Yr,{type:`submit`,className:`w-full`,disabled:c||!i,children:$(t,`auth.signIn.method.email-otp.sendButton`)})]}):(0,F.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),o&&f(async()=>{if(!(await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,otp:o})})).ok){d($(t,`auth.signIn.method.email-otp.verifyFailed`));return}window.location.assign(e)})},className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:$(t,`auth.signIn.method.email-otp.sentTo`,{email:i})}),(0,F.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:$(t,`auth.signIn.method.email-otp.otpLabel`)}),(0,F.jsx)(`input`,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:o,onChange:e=>s(e.currentTarget.value),placeholder:$(t,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0,className:Zm}),(0,F.jsx)(Yr,{type:`submit`,className:`w-full`,disabled:c||!o,children:$(t,`auth.signIn.method.email-otp.verifyButton`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>r(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:$(t,`auth.signIn.method.email-otp.back`)})]}),u?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:u}):null]})}function ah({returnTo:e}){let{language:t}=W(),[n,r]=P.useState(``),[i,a]=P.useState(!1),[o,s]=P.useState(!1),[c,l]=P.useState(null),u=async e=>{a(!0),l(null);try{await e()}finally{a(!1)}};return(0,F.jsxs)(`div`,{className:$m,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:$(t,`auth.signIn.method.magic-link.body`)}),o?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-sm text-foreground`,children:$(t,`auth.signIn.method.magic-link.sentTo`,{email:n})}),(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:$(t,`auth.signIn.method.magic-link.clickHint`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>{s(!1),r(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:$(t,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,F.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),n&&u(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n,callbackURL:e})})).ok){l($(t,`auth.signIn.method.magic-link.sendFailed`));return}s(!0)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:$(t,`auth.signIn.method.magic-link.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-mlink-email`,type:`email`,value:n,onChange:e=>r(e.currentTarget.value),placeholder:$(t,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`,className:Zm}),(0,F.jsx)(Yr,{type:`submit`,className:`w-full`,disabled:i||!n,children:$(t,`auth.signIn.method.magic-link.sendButton`)})]}),c?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:c}):null]})}function oh({kind:e}){let{language:t}=W();return(0,F.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:$(t,`auth.signIn.unknownMethod`,{kind:e})})}function sh(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function ch({eyebrow:e,title:t,description:n,actions:r}){return(0,F.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,F.jsx)(`p`,{className:`label-eyebrow mb-1`,children:e}):null,(0,F.jsx)(`h1`,{className:`text-2xl`,children:t}),n?(0,F.jsx)(`p`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,F.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function lh({className:e,children:t}){return(0,F.jsx)(`section`,{className:B(`glass-card p-5`,e),children:t})}function uh({icon:e=Ct,title:t,description:n,action:r}){return(0,F.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,F.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground`,children:n}):null,r?(0,F.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function dh({error:e}){let{language:t}=W(),n=e instanceof zs&&e.status===401;if(P.useEffect(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return null;let r=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[$(t,`common.failedToLoad`),`: `,r]})}function fh({label:e,value:t,href:n}){let{language:r}=W(),[i,a]=P.useState(!1);async function o(){try{await navigator.clipboard.writeText(t),a(!0),window.setTimeout(()=>a(!1),1400)}catch{a(!1)}}return(0,F.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-background/30 p-3`,children:[(0,F.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`label-eyebrow`,children:e}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[n?(0,F.jsx)(Yr,{asChild:!0,variant:`ghost`,size:`icon`,className:`size-7`,children:(0,F.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,"aria-label":`${$(r,`common.open`)} ${e}`,children:(0,F.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0})})}):null,(0,F.jsx)(Yr,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7`,onClick:o,"aria-label":`${$(r,`common.copy`)} ${e}`,children:i?(0,F.jsx)(bt,{className:`size-3.5 text-[color:var(--success)]`,"aria-hidden":!0}):(0,F.jsx)(Tt,{className:`size-3.5`,"aria-hidden":!0})})]})]}),(0,F.jsx)(`code`,{className:`block truncate font-mono text-xs text-foreground`,children:t})]})}function ph(){let{language:e}=W(),t=lt({queryKey:[`site`],queryFn:()=>Vs.get(`/site`)}),n=lt({queryKey:[`collections`],queryFn:async()=>(await Vs.get(`/collections`)).collections}),r=n.data??[],i=t.data;return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(ch,{eyebrow:$(e,`console.eyebrow`),title:i?.brand??`AotterMantle`,description:i?$(e,`console.description`,{title:i.title}):$(e,`console.descriptionFallback`),actions:i?.publicUrl?(0,F.jsx)(Yr,{asChild:!0,variant:`outline`,children:(0,F.jsxs)(`a`,{href:i.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,F.jsx)(At,{className:`size-4`,"aria-hidden":!0}),$(e,`common.viewSite`)]})}):null}),(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 lg:grid-cols-[1.25fr_0.75fr]`,children:[(0,F.jsxs)(lh,{children:[(0,F.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(yt,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:$(e,`console.agent.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`console.agent.body`)})]})]}),t.isLoading?(0,F.jsxs)(`div`,{className:`space-y-3`,children:[(0,F.jsx)(`div`,{className:`h-16 animate-pulse rounded-lg bg-muted`}),(0,F.jsx)(`div`,{className:`h-16 animate-pulse rounded-lg bg-muted`})]}):t.isError?(0,F.jsx)(dh,{error:t.error}):i?(0,F.jsxs)(`div`,{className:`grid gap-3`,children:[(0,F.jsx)(fh,{label:$(e,`console.mcpUrl`),value:i.mcpUrl}),(0,F.jsx)(fh,{label:$(e,`console.publicUrl`),value:i.publicUrl,href:i.publicUrl})]}):null]}),(0,F.jsxs)(lh,{children:[(0,F.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-accent p-2 text-accent-foreground`,children:(0,F.jsx)(Rt,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:$(e,`console.loop.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`console.loop.body`)})]})]}),(0,F.jsxs)(`ol`,{className:`space-y-2 text-sm text-muted-foreground`,children:[(0,F.jsxs)(`li`,{className:`flex gap-2`,children:[(0,F.jsx)(`span`,{className:`text-primary`,children:`1.`}),$(e,`console.loop.step1`)]}),(0,F.jsxs)(`li`,{className:`flex gap-2`,children:[(0,F.jsx)(`span`,{className:`text-primary`,children:`2.`}),$(e,`console.loop.step2`)]}),(0,F.jsxs)(`li`,{className:`flex gap-2`,children:[(0,F.jsx)(`span`,{className:`text-primary`,children:`3.`}),$(e,`console.loop.step3`)]})]})]})]}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(ch,{eyebrow:$(e,`console.collections.eyebrow`),title:$(e,`console.collections.title`),description:$(e,`console.collections.body`)}),n.isLoading&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[0,1,2].map(e=>(0,F.jsx)(`div`,{className:`glass-card h-36 animate-pulse`},e))}),n.isError&&(0,F.jsx)(dh,{error:n.error}),n.data&&r.length===0&&(0,F.jsx)(uh,{icon:Et,title:$(e,`console.collections.emptyTitle`),description:$(e,`console.collections.emptyBody`)}),r.length>0&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:r.map(t=>(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`glass-card card-lift block p-5 no-underline text-foreground`,children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`h2`,{className:`truncate text-lg`,children:t.title}),(0,F.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:t.name})]}),(0,F.jsx)(Ot,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),t.description?(0,F.jsx)(`p`,{className:`line-clamp-2 text-sm text-muted-foreground`,children:t.description}):(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:$(e,`console.collections.noDescription`)}),(0,F.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:t.lifecycle}),t.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--info)_16%,transparent)] text-[color:var(--info)]`,children:`i18n`}):null,t.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null,(0,F.jsx)(`span`,{className:`badge-status bg-muted text-muted-foreground`,children:Um(e,`published`)})]})]},t.name))})]})]})}function mh({children:e,className:t}){return(0,F.jsx)(`div`,{className:B(`glass-card overflow-hidden`,t),children:(0,F.jsx)(`div`,{className:`overflow-x-auto`,children:(0,F.jsx)(`table`,{className:`w-full min-w-[720px] text-sm`,children:e})})})}function hh({children:e,className:t}){return(0,F.jsx)(`th`,{className:B(`label-eyebrow px-3 py-2 text-left`,t),children:e})}function gh({children:e,className:t}){return(0,F.jsx)(`td`,{className:B(`px-3 py-2 align-middle`,t),children:e})}var _h={draft:`bg-muted text-muted-foreground`,review:`bg-[color-mix(in_srgb,var(--warning)_18%,transparent)] text-[color:var(--warning)]`,approved:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,scheduled:`bg-[color-mix(in_srgb,var(--info)_18%,transparent)] text-[color:var(--info)]`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`};function vh({status:e,className:t}){return(0,F.jsx)(`span`,{className:B(`badge-status`,yh(e)?_h[e]:`bg-accent text-accent-foreground`,t),children:e})}function yh(e){return e in _h}var bh=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function xh({collectionName:e}){let{language:t}=W(),n=Ys(),r=new URLSearchParams(n.search).get(`status`)??void 0,i=lt({queryKey:[`collections`],queryFn:async()=>(await Vs.get(`/collections`)).collections}),a=lt({queryKey:[`entries`,e,r??`all`],queryFn:()=>{let t=new URLSearchParams({collection:e});return r&&t.set(`status`,r),Vs.get(`/entries?${t.toString()}`)}}),o=i.data?.find(t=>t.name===e),s=o?.title??e;return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(ch,{eyebrow:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:$(t,`collection.breadcrumb`)}),(0,F.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,F.jsx)(`span`,{className:`text-foreground/70`,children:e})]}),title:s,description:o?.description??$(t,`collection.defaultDescription`),actions:(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[r?(0,F.jsx)(vh,{status:r}):null,o?.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:`i18n`}):null,o?.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})}),o?(0,F.jsx)(Sh,{collection:o,activeStatus:r,language:t}):null,a.isLoading&&(0,F.jsx)(wh,{}),a.isError&&(0,F.jsx)(dh,{error:a.error}),a.data&&a.data.items.length===0&&(0,F.jsx)(uh,{icon:Ot,title:$(t,`collection.empty.title`),description:r?$(t,`collection.empty.withStatus`,{status:r}):$(t,`collection.empty.all`)}),a.data&&a.data.items.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(mh,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:[(0,F.jsx)(hh,{children:$(t,`collection.table.id`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.title`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.status`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.locale`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.version`)}),(0,F.jsx)(hh,{children:$(t,`collection.table.updated`)})]})}),(0,F.jsx)(`tbody`,{children:a.data.items.map(e=>(0,F.jsx)(Th,{row:e,language:t},e.id))})]}),a.data.next_cursor?(0,F.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:$(t,`collection.moreRows`)}):null]})]})}function Sh({collection:e,activeStatus:t,language:n}){let r=e.lifecycle===`editorial`?[`draft`,`review`,`published`,`archived`]:[`draft`,`published`,`archived`];return(0,F.jsxs)(`div`,{className:`mb-5 flex gap-2 overflow-x-auto pb-1`,children:[(0,F.jsx)(Ch,{href:`/admin/c/${encodeURIComponent(e.name)}`,active:!t,children:$(n,`collection.filter.all`)}),r.map(r=>(0,F.jsx)(Ch,{href:`/admin/c/${encodeURIComponent(e.name)}?status=${r}`,active:t===r,children:Um(n,r)},r))]})}function Ch({href:e,active:t,children:n}){return(0,F.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:B(`inline-flex h-8 shrink-0 items-center justify-center rounded-lg border px-3 text-xs font-medium`,`transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,t?`border-[var(--glass-border)] bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function wh(){return(0,F.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2,3,4].map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-3 last:border-b-0`,children:[(0,F.jsx)(`div`,{className:`h-3 w-16 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-6 w-20 animate-pulse rounded-full bg-muted`})]},e))})}function Th({row:e,language:t}){return(0,F.jsxs)(`tr`,{className:`border-t border-[var(--glass-border)] hover:bg-accent/40`,children:[(0,F.jsx)(gh,{className:`font-mono text-xs text-muted-foreground`,children:String(e.id).slice(0,8)}),(0,F.jsx)(gh,{className:`max-w-[24rem] truncate`,children:Eh(e.title,t)}),(0,F.jsx)(gh,{children:(0,F.jsx)(vh,{status:e.status})}),(0,F.jsx)(gh,{className:`text-muted-foreground`,children:e.locale??`-`}),(0,F.jsxs)(gh,{className:`font-mono text-xs text-muted-foreground`,children:[`v`,e.version]}),(0,F.jsx)(gh,{className:`text-muted-foreground`,children:Dh(e.updated_at)})]})}function Eh(e,t){return e==null||e===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:$(t,`collection.untitled`)}):typeof e==`string`?e:(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}function Dh(e){if(!Number.isFinite(e))return`-`;try{return bh.format(new Date(e))}catch{return`-`}}function Oh({path:e,intent:t=`missing`,kind:n=`route`}){let{language:r}=W(),i=t===`planned`&&n===`settings`;return(0,F.jsxs)(`div`,{className:`glass-card animate-rise mx-auto max-w-md p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:i?$(r,`settings.planned.title`):t===`planned`?$(r,`system.notFound.plannedTitle`):$(r,`system.notFound.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:i?$(r,`settings.planned.body`):(0,F.jsxs)(F.Fragment,{children:[$(r,`system.notFound.body`),` `,(0,F.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]})}),(0,F.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,F.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:$(r,`system.notFound.back`)})})]})}function kh(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=W();return(0,F.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,F.jsx)(ch,{eyebrow:$(e,`preferences.heading`),title:$(e,`preferences.page.title`),description:$(e,`preferences.page.body`)}),(0,F.jsxs)(`div`,{className:`grid gap-4`,children:[(0,F.jsxs)(lh,{children:[(0,F.jsx)(jh,{icon:Mt,title:$(e,`preferences.language`),body:$(e,`preferences.page.languageBody`)}),(0,F.jsx)(Ah,{language:e,onChange:r})]}),(0,F.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,F.jsxs)(lh,{children:[(0,F.jsx)(jh,{icon:Pt,title:$(e,`preferences.appearance`),body:$(e,`preferences.page.appearanceBody`)}),(0,F.jsx)(`div`,{className:`mt-4 grid gap-2`,children:Nh(e).map(e=>(0,F.jsx)(Mh,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,F.jsxs)(lh,{children:[(0,F.jsx)(jh,{icon:Lt,title:$(e,`preferences.direction`),body:$(e,`preferences.direction.auto`)}),(0,F.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?$(e,`preferences.rtl`):$(e,`preferences.ltr`)})})]})]})]})]})}function Ah({language:e,onChange:t}){let[n,r]=P.useState(!1),[i,a]=P.useState(``),o=Xs.find(t=>t.value===e)??Xs[0],s=i.trim().toLowerCase(),c=s?Xs.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):Xs;return(0,F.jsxs)(`div`,{className:`relative mt-4`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`flex w-full items-center justify-between gap-3 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-start text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-expanded":n,children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,uc(o.value).toUpperCase()]})]}),(0,F.jsx)(St,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,F.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card shadow-[var(--glass-shadow-lg)] backdrop-blur-md`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-[var(--glass-border)] px-3 py-2`,children:[(0,F.jsx)(zt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:$(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground`})]}),(0,F.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,F.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:$(e,`preferences.language.noResults`)}):c.map(n=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:B(`flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2 text-start text-sm transition-colors`,n.value===e?`bg-primary/10 text-foreground`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,F.jsx)(bt,{className:B(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function jh({icon:e,title:t,body:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function Mh({selected:e,onClick:t,icon:n,children:r}){return(0,F.jsxs)(`button`,{type:`button`,onClick:t,className:B(`flex min-h-10 items-center justify-between gap-3 rounded-lg border px-3 py-2 text-start text-sm transition-colors`,e?`border-primary/50 bg-primary/10 text-foreground`:`border-border/70 bg-background/30 text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,F.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,F.jsx)(`span`,{className:`truncate`,children:r})]}),(0,F.jsx)(bt,{className:B(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function Nh(e){return[{value:`light`,label:$(e,`preferences.light`),icon:Vt},{value:`dark`,label:$(e,`preferences.dark`),icon:Ft},{value:`system`,label:$(e,`preferences.system`),icon:Pt}]}function Ph(){let e=Ys();return e.pathname===`/admin/sign-in`?(0,F.jsx)(eh,{}):(0,F.jsx)(Fh,{path:e.pathname})}function Fh({path:e}){let t=lt({queryKey:[`me`],queryFn:()=>Vs.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof zs&&t.error.status===401;if((0,P.useEffect)(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return(0,F.jsx)(Jm,{});if(t.isError&&t.error instanceof zs&&t.error.status===403)return(0,F.jsx)(Xm,{login:(t.error.body??{}).login??null});if(t.isError)return(0,F.jsx)(Ym,{error:t.error});if(t.isLoading)return(0,F.jsx)(Jm,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);return r?(0,F.jsx)(Gm,{children:(0,F.jsx)(xh,{collectionName:decodeURIComponent(r[1])})}):e===`/admin`||e===`/admin/`?(0,F.jsx)(Gm,{children:(0,F.jsx)(ph,{})}):e===`/admin/preferences`?(0,F.jsx)(Gm,{children:(0,F.jsx)(kh,{})}):e===`/admin/approvals`||e===`/admin/settings`?(0,F.jsx)(Gm,{children:(0,F.jsx)(Oh,{path:e,intent:`planned`,kind:e===`/admin/settings`?`settings`:`route`})}):(0,F.jsx)(Gm,{children:(0,F.jsx)(Oh,{path:e})})}var Ih=new We({defaultOptions:{queries:{retry:(e,t)=>t instanceof zs&&[401,403].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),Lh=document.getElementById(`root`);if(!Lh)throw Error(`Missing #root element.`);Wt.createRoot(Lh).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Ye,{client:Ih,children:(0,F.jsx)(nc,{children:(0,F.jsx)(qs,{children:(0,F.jsx)(Ph,{})})})})}));</script>
140
140
  <style rel="stylesheet" crossorigin>@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--color-black:#000;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-3xl:48rem;--container-4xl:56rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:1rem;--text-sm:.875rem;--text-sm--line-height:1.45;--text-lg:1.125rem;--text-lg--line-height:1.45;--text-xl:1.25rem;--text-xl--line-height:1.35;--text-2xl:1.5rem;--text-2xl--line-height:1.25;--font-weight-medium:500;--font-weight-semibold:600;--leading-tight:1.25;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-display:"Fraunces", "IBM Plex Sans", Georgia, serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.\@container\/content{container:content/inline-size}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.end-3{inset-inline-end:calc(var(--spacing) * 3)}.top-0{top:calc(var(--spacing) * 0)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-3{bottom:calc(var(--spacing) * 3)}.left-0{left:calc(var(--spacing) * 0)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[999\]{z-index:999}.m-2{margin:calc(var(--spacing) * 2)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.-ms-1{margin-inline-start:calc(var(--spacing) * -1)}.ms-auto{margin-inline-start:auto}.me-2{margin-inline-end:calc(var(--spacing) * 2)}.me-auto{margin-inline-end:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-full{width:100%;height:100%}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-36{height:calc(var(--spacing) * 36)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\[min\(28rem\,80vh\)\]{max-height:min(28rem,80vh)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-svh{min-height:100svh}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-2\/3{width:66.6667%}.w-3\/4{width:75%}.w-9{width:calc(var(--spacing) * 9)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-\[inherit\]{width:inherit}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\[24rem\]{max-width:24rem}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[720px\]{min-width:720px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-52{--tw-translate-y:calc(var(--spacing) * -52);translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--glass-border\)\]{border-color:var(--glass-border)}.border-\[var\(--ring\)\]{border-color:var(--ring)}.border-border,.border-border\/40{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/40{border-color:color-mix(in oklab, var(--border) 40%, transparent)}}.border-border\/60{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/60{border-color:color-mix(in oklab, var(--border) 60%, transparent)}}.border-border\/70{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/70{border-color:color-mix(in oklab, var(--border) 70%, transparent)}}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.border-input{border-color:var(--input)}.border-primary\/50{border-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.border-primary\/50{border-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-\[color-mix\(in_srgb\,var\(--info\)_16\%\,transparent\)\]{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--info\)_16\%\,transparent\)\]{background-color:color-mix(in srgb,var(--info) 16%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--info\)_18\%\,transparent\)\]{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--info\)_18\%\,transparent\)\]{background-color:color-mix(in srgb,var(--info) 18%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--success\)_16\%\,transparent\)\]{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--success\)_16\%\,transparent\)\]{background-color:color-mix(in srgb,var(--success) 16%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--success\)_18\%\,transparent\)\]{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--success\)_18\%\,transparent\)\]{background-color:color-mix(in srgb,var(--success) 18%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--warning\)_18\%\,transparent\)\]{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--warning\)_18\%\,transparent\)\]{background-color:color-mix(in srgb,var(--warning) 18%,transparent)}}.bg-\[var\(--glass-border\)\]{background-color:var(--glass-border)}.bg-accent{background-color:var(--accent)}.bg-background,.bg-background\/30{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/30{background-color:color-mix(in oklab, var(--background) 30%, transparent)}}.bg-background\/65{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/65{background-color:color-mix(in oklab, var(--background) 65%, transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-muted{background-color:var(--muted)}.bg-primary,.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.bg-primary\/15{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/15{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-\[color-mix\(in_srgb\,var\(--primary\)_24\%\,transparent\)\]{--tw-gradient-via:var(--primary)}@supports (color:color-mix(in lab, red, red)){.via-\[color-mix\(in_srgb\,var\(--primary\)_24\%\,transparent\)\]{--tw-gradient-via:color-mix(in srgb,var(--primary) 24%,transparent)}}.via-\[color-mix\(in_srgb\,var\(--primary\)_24\%\,transparent\)\]{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-6{padding-block:calc(var(--spacing) * 6)}.ps-8{padding-inline-start:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\[color\:var\(--info\)\]{color:var(--info)}.text-\[color\:var\(--success\)\]{color:var(--success)}.text-\[color\:var\(--warning\)\]{color:var(--warning)}.text-accent-foreground{color:var(--accent-foreground)}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground,.text-foreground\/30{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/30{color:color-mix(in oklab, var(--foreground) 30%, transparent)}}.text-foreground\/70{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/70{color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.text-foreground\/80{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--foreground) 80%, transparent)}}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--sidebar-foreground) 70%, transparent)}}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[-12px_0_32px_-12px_rgba\(0\,0\,0\,0\.4\)\]{--tw-shadow:-12px 0 32px -12px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(26\,48\,98\,0\.30\)\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#1a30624d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(239\,68\,68\,0\.25\)\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#ef444440);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[12px_0_32px_-12px_rgba\(0\,0\,0\,0\.4\)\]{--tw-shadow:12px 0 32px -12px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--glass-shadow\)\]{--tw-shadow:var(--glass-shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--glass-shadow-lg\)\]{--tw-shadow:var(--glass-shadow-lg);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border{--tw-ring-color:var(--border)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-2{outline-offset:2px}.outline-ring\/40{outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/40{outline-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-data-\[state\=collapsed\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-state=collapsed] *){width:var(--sidebar-width-icon)}.group-data-\[state\=open\]\/collapsible\:rotate-90:is(:where(.group\/collapsible)[data-state=open] *){rotate:90deg}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.first\:mt-0:first-child{margin-top:calc(var(--spacing) * 0)}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-0:first-child{padding-top:calc(var(--spacing) * 0)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-\[var\(--palette-secondary-base\)\]:hover{border-color:var(--palette-secondary-base)}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:bg-\[var\(--palette-primary-light\)\]:hover{background-color:var(--palette-primary-light)}.hover\:bg-accent:hover,.hover\:bg-accent\/40:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/40:hover{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.hover\:bg-destructive\/85:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/85:hover{background-color:color-mix(in oklab, var(--destructive) 85%, transparent)}}.hover\:bg-primary:hover{background-color:var(--primary)}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-\[var\(--palette-primary-light\)\]:hover{color:var(--palette-primary-light)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-primary:hover{color:var(--primary)}.hover\:text-primary-foreground:hover{color:var(--primary-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_4px_12px_rgba\(239\,68\,68\,0\.35\)\]:hover{--tw-shadow:0 4px 12px var(--tw-shadow-color,#ef444459);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-\[0_4px_14px_rgba\(26\,48\,98\,0\.40\)\]:hover{--tw-shadow:0 4px 14px var(--tw-shadow-color,#1a306266);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:ring-primary\/40:hover{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:ring-primary\/40:hover{--tw-ring-color:color-mix(in oklab, var(--primary) 40%, transparent)}}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-destructive\/10:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-destructive\/10:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:translate-y-0:focus-visible{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:border-primary:active{border-color:var(--primary)}.active\:bg-\[var\(--palette-primary-base\)\]:active{background-color:var(--palette-primary-base)}.active\:bg-accent\/70:active{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.active\:bg-accent\/70:active{background-color:color-mix(in oklab, var(--accent) 70%, transparent)}}.active\:bg-destructive\/95:active{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.active\:bg-destructive\/95:active{background-color:color-mix(in oklab, var(--destructive) 95%, transparent)}}.active\:bg-primary\/90:active{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.active\:bg-primary\/90:active{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.active\:shadow-\[0_1px_4px_rgba\(26\,48\,98\,0\.20\)\]:active{--tw-shadow:0 1px 4px var(--tw-shadow-color,#1a306233);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[slot\=sidebar-menu-button\]\:\!p-1\.5[data-slot=sidebar-menu-button]{padding:calc(var(--spacing) * 1.5)!important}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent\/40[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/40[data-state=open]{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:ring-primary[data-state=open]{--tw-ring-color:var(--primary)}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--sidebar-accent-foreground)}}@media (width>=40rem){.sm\:inline{display:inline}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}}@media (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:var(--radius-xl)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}@media (width>=64rem){.lg\:grid-cols-\[1\.25fr_0\.75fr\]{grid-template-columns:1.25fr .75fr}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container content (width>=80rem){.\@7xl\/content\:mx-auto{margin-inline:auto}.\@7xl\/content\:max-w-7xl{max-width:var(--container-7xl)}}.rtl\:-translate-x-px:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:translate-x-px:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:border-r:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){border-right-style:var(--tw-border-style);border-right-width:1px}.rtl\:border-l-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){border-left-style:var(--tw-border-style);border-left-width:0}.rtl\:group-data-\[state\=open\]\/collapsible\:-rotate-90:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.group\/collapsible)[data-state=open] *){rotate:-90deg}@media (width>=48rem){.rtl\:md\:peer-data-\[variant\=inset\]\:mr-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.peer)[data-variant=inset]~*){margin-right:calc(var(--spacing) * 0)}.rtl\:md\:peer-data-\[variant\=inset\]\:ml-2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 2)}}.dark\:bg-\[var\(--glass-bg-elevated\)\]:where(.dark,.dark *){background-color:var(--glass-bg-elevated)}.dark\:via-\[color-mix\(in_srgb\,var\(--palette-teal-light\)_18\%\,transparent\)\]:where(.dark,.dark *){--tw-gradient-via:var(--palette-teal-light)}@supports (color:color-mix(in lab, red, red)){.dark\:via-\[color-mix\(in_srgb\,var\(--palette-teal-light\)_18\%\,transparent\)\]:where(.dark,.dark *){--tw-gradient-via:color-mix(in srgb,var(--palette-teal-light) 18%,transparent)}}.dark\:via-\[color-mix\(in_srgb\,var\(--palette-teal-light\)_18\%\,transparent\)\]:where(.dark,.dark *){--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.dark\:shadow-\[0_2px_14px_rgba\(77\,106\,172\,0\.45\)\]:where(.dark,.dark *){--tw-shadow:0 2px 14px var(--tw-shadow-color,#4d6aac73);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.dark\:hover\:shadow-\[0_4px_20px_rgba\(77\,106\,172\,0\.60\)\]:where(.dark,.dark *):hover{--tw-shadow:0 4px 20px var(--tw-shadow-color,#4d6aac99);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:#fff;--foreground:#111827;--card:var(--glass-bg-elevated);--card-foreground:#111827;--popover:var(--glass-bg-elevated);--popover-foreground:#111827;--primary:var(--palette-primary-base);--primary-foreground:#fff;--secondary:#f1f5f9;--secondary-foreground:#111827;--muted:#eef1f8;--muted-foreground:#6b7280;--accent:#e8edf8;--accent-foreground:#111827;--destructive:var(--palette-error);--destructive-foreground:#fff;--success:var(--palette-success);--success-foreground:#f0fdf4;--warning:var(--palette-warning);--warning-foreground:#111827;--info:var(--palette-info);--info-foreground:#dbeafe;--border:var(--glass-border);--input:var(--glass-border);--ring:var(--palette-primary-light);--radius:.5rem;--sidebar:var(--glass-bg);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--glass-border);--sidebar-ring:var(--ring);--palette-primary-darker:#000;--palette-primary-dark:#071127;--palette-primary-base:#1a3062;--palette-primary-light:#345093;--palette-primary-lighter:#4d6aac;--palette-secondary-darker:#0b1223;--palette-secondary-dark:#233358;--palette-secondary-base:#435684;--palette-secondary-light:#6f7fa5;--palette-secondary-lighter:#979eaf;--palette-error:#ef4444;--palette-warning:#f59e0b;--palette-success:#10b981;--palette-info:#3b82f6;--palette-teal-dark:#0072a4;--palette-teal-base:#00b7c7;--palette-teal-light:#6efacd;--glass-bg:#ffffffb8;--glass-bg-elevated:#ffffffe6;--glass-bg-dialog:#fffffff7;--glass-border:#979eaf4d;--glass-blur:14px;--glass-shadow:0 2px 20px #1a306214, 0 1px 4px #1a30620a;--glass-shadow-lg:0 8px 32px #1a30621c, 0 2px 8px #1a30620f;--app-bg:radial-gradient(ellipse at 20% 20%, #4d6aac1a 0%, transparent 55%), radial-gradient(ellipse at 80% 80%, #00b7c712 0%, transparent 55%), radial-gradient(ellipse at 50% 100%, #1a30620d 0%, transparent 45%), #eef1f8;--scrollbar:#d1d5db}:root.dark{--background:#071127;--foreground:#e8ecf8;--card:var(--glass-bg-elevated);--card-foreground:#f1f5f9;--popover:var(--glass-bg-elevated);--popover-foreground:#f1f5f9;--primary:var(--palette-primary-lighter);--primary-foreground:#fff;--secondary:#0d1a38;--secondary-foreground:#e8ecf8;--muted:#122040;--muted-foreground:#7b95cc;--accent:#152444;--accent-foreground:#7b9ef0;--destructive:var(--palette-error);--destructive-foreground:#fff;--success:var(--palette-success);--success-foreground:#dcfce7;--warning:var(--palette-warning);--warning-foreground:#f1f5f9;--info:var(--palette-info);--info-foreground:#0f172a;--border:var(--glass-border);--input:var(--glass-border);--ring:var(--palette-primary-lighter);--sidebar:var(--glass-bg);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--glass-border);--sidebar-ring:var(--ring);--glass-bg:#1a306259;--glass-bg-elevated:#2333588c;--glass-bg-dialog:#0d1632f7;--glass-border:#4d6aac38;--glass-blur:16px;--glass-shadow:0 4px 24px #07112780, 0 1px 4px #0711274d;--glass-shadow-lg:0 8px 40px #071127a6, 0 2px 8px #07112766;--app-bg:radial-gradient(ellipse at 20% 25%, #1a3062cc 0%, transparent 50%), radial-gradient(ellipse at 80% 75%, #0072a473 0%, transparent 50%), radial-gradient(ellipse at 55% 5%, #4d6aac40 0%, transparent 40%), #071127;--scrollbar:#475569}html{background:var(--background)}body{font-family:var(--font-sans);font-feature-settings:"ss01", "cv11";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--foreground);margin:0;line-height:1.5;transition:color .2s}body:before{content:"";z-index:-1;pointer-events:none;background:var(--app-bg);position:fixed;inset:0}:is([data-slot=sidebar-wrapper]:has([data-variant=inset]),[data-slot=sidebar-inset]){background-color:#0000}[data-sidebar=menu-button][data-active=true]:before{content:"";background:var(--primary);border-radius:0 2px 2px 0;width:2px;height:1rem;position:absolute;top:50%;left:0;transform:translateY(-50%)}[dir=rtl] [data-sidebar=menu-button][data-active=true]:before{border-radius:2px 0 0 2px;left:auto;right:0}[dir=rtl] [data-sidebar=trigger] svg{transform:scaleX(-1)}[data-state=collapsed] [data-sidebar=group-label],[data-state=collapsed] [data-sidebar-label],[data-state=collapsed] [data-sidebar=separator]{display:none}[data-state=collapsed] [data-sidebar=header],[data-state=collapsed] [data-sidebar=footer],[data-state=collapsed] [data-sidebar=group]{padding-left:.5rem;padding-right:.5rem}[data-state=collapsed] [data-sidebar=menu-button]{justify-content:center}h1,h2,h3,h4{font-family:var(--font-display);font-feature-settings:"ss01";font-variation-settings:"opsz" 144, "SOFT" 50;letter-spacing:-.02em;font-weight:500}h1{font-variation-settings:"opsz" 144, "SOFT" 80}code,kbd,pre{font-family:var(--font-mono)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:3px}.glass-card{border-radius:calc(var(--radius) + 4px);border:1px solid var(--glass-border);background-color:var(--glass-bg-elevated);-webkit-backdrop-filter:blur(var(--glass-blur));box-shadow:var(--glass-shadow)}.glass-strip{background-color:var(--glass-bg);--tw-backdrop-blur:blur(var(--glass-blur));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.badge-status{border-radius:9999px;align-items:center;padding:.125rem .625rem;font-size:.75rem;font-weight:500;line-height:1rem;display:inline-flex}.label-eyebrow{text-transform:uppercase;letter-spacing:.18em;color:var(--muted-foreground);font-size:.7rem;font-weight:500}.card-lift{transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s}.card-lift:hover{box-shadow:var(--glass-shadow-lg);transform:translateY(-2px)}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.animate-rise{animation:.5s cubic-bezier(.2,.8,.2,1) backwards fadeSlideIn}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
141
141
  /*$vite$:1*/</style>
142
142
  </head>