@librechat/client 0.1.0 → 0.1.2

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.
Files changed (69) hide show
  1. package/dist/index.es.js +58 -1
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +58 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/common/index.d.ts +3 -2
  6. package/dist/types/common/index.d.ts.map +1 -1
  7. package/dist/types/common/types.d.ts +5 -518
  8. package/dist/types/common/types.d.ts.map +1 -1
  9. package/dist/types/components/Accordion.d.ts +4 -4
  10. package/dist/types/components/Accordion.d.ts.map +1 -1
  11. package/dist/types/components/AlertDialog.d.ts +7 -7
  12. package/dist/types/components/AlertDialog.d.ts.map +1 -1
  13. package/dist/types/components/AnimatedTabs.d.ts +3 -3
  14. package/dist/types/components/AnimatedTabs.d.ts.map +1 -1
  15. package/dist/types/components/Checkbox.d.ts +1 -1
  16. package/dist/types/components/Checkbox.d.ts.map +1 -1
  17. package/dist/types/components/DataTableColumnHeader.d.ts +1 -0
  18. package/dist/types/components/DataTableColumnHeader.d.ts.map +1 -1
  19. package/dist/types/components/Dialog.d.ts +6 -6
  20. package/dist/types/components/Dialog.d.ts.map +1 -1
  21. package/dist/types/components/DropdownMenu.d.ts +14 -14
  22. package/dist/types/components/DropdownMenu.d.ts.map +1 -1
  23. package/dist/types/components/HoverCard.d.ts +4 -4
  24. package/dist/types/components/HoverCard.d.ts.map +1 -1
  25. package/dist/types/components/InputOTP.d.ts +2 -2
  26. package/dist/types/components/InputOTP.d.ts.map +1 -1
  27. package/dist/types/components/Label.d.ts +3 -1
  28. package/dist/types/components/Label.d.ts.map +1 -1
  29. package/dist/types/components/OriginalDialog.d.ts +7 -7
  30. package/dist/types/components/OriginalDialog.d.ts.map +1 -1
  31. package/dist/types/components/Progress.d.ts +1 -1
  32. package/dist/types/components/Progress.d.ts.map +1 -1
  33. package/dist/types/components/Resizable.d.ts +0 -1
  34. package/dist/types/components/Resizable.d.ts.map +1 -1
  35. package/dist/types/components/Select.d.ts +10 -10
  36. package/dist/types/components/Select.d.ts.map +1 -1
  37. package/dist/types/components/Separator.d.ts +3 -1
  38. package/dist/types/components/Separator.d.ts.map +1 -1
  39. package/dist/types/components/Skeleton.d.ts +1 -0
  40. package/dist/types/components/Skeleton.d.ts.map +1 -1
  41. package/dist/types/components/Slider.d.ts +2 -1
  42. package/dist/types/components/Slider.d.ts.map +1 -1
  43. package/dist/types/components/Switch.d.ts +1 -1
  44. package/dist/types/components/Switch.d.ts.map +1 -1
  45. package/dist/types/components/Tabs.d.ts +4 -4
  46. package/dist/types/components/Tabs.d.ts.map +1 -1
  47. package/dist/types/components/Tag.d.ts +2 -2
  48. package/dist/types/components/Tag.d.ts.map +1 -1
  49. package/dist/types/components/index.d.ts +1 -0
  50. package/dist/types/components/index.d.ts.map +1 -1
  51. package/dist/types/hooks/ThemeContext.d.ts +0 -1
  52. package/dist/types/hooks/ThemeContext.d.ts.map +1 -1
  53. package/dist/types/index.d.ts +1 -0
  54. package/dist/types/index.d.ts.map +1 -1
  55. package/package.json +37 -20
  56. package/dist/types/common/a11y.d.ts +0 -6
  57. package/dist/types/common/a11y.d.ts.map +0 -1
  58. package/dist/types/common/agents-types.d.ts +0 -30
  59. package/dist/types/common/agents-types.d.ts.map +0 -1
  60. package/dist/types/common/artifacts.d.ts +0 -24
  61. package/dist/types/common/artifacts.d.ts.map +0 -1
  62. package/dist/types/common/assistants-types.d.ts +0 -25
  63. package/dist/types/common/assistants-types.d.ts.map +0 -1
  64. package/dist/types/common/mcp.d.ts +0 -3
  65. package/dist/types/common/mcp.d.ts.map +0 -1
  66. package/dist/types/common/selector.d.ts +0 -24
  67. package/dist/types/common/selector.d.ts.map +0 -1
  68. package/dist/types/common/tools.d.ts +0 -6
  69. package/dist/types/common/tools.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -1,2 +1,59 @@
1
- import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import*as r from"react";import s,{forwardRef as n,useRef as i,useEffect as o,createContext as l,useState as c,useMemo as d,useLayoutEffect as m,useCallback as h,startTransition as u,memo as f,useContext as p}from"react";import*as g from"@radix-ui/react-accordion";import{ChevronDownIcon as C,ArrowDownIcon as w,ArrowUpIcon as v,CaretSortIcon as x,EyeNoneIcon as b,ChevronUpIcon as y,CheckIcon as N}from"@radix-ui/react-icons";import{clsx as k}from"clsx";import{twMerge as L}from"tailwind-merge";import*as M from"@ariakit/react";import{ComboboxProvider as S,Combobox as z,ComboboxCancel as R,ComboboxList as V,ComboboxItem as I,SelectProvider as H,SelectLabel as T,Select as O,SelectArrow as B,SelectPopover as j,SelectItemCheck as D,SelectItem as Z,useCheckboxStore as E,useStoreState as P,Checkbox as A}from"@ariakit/react";import*as W from"@radix-ui/react-alert-dialog";import{Slot as F}from"@radix-ui/react-slot";import{ChevronRight as $,MoreHorizontal as _,Check as G,Circle as U,X as K,ChevronLeft as q,Minus as Y,Search as X,GripVertical as J,Plus as Q,Sun as ee,Moon as te,Monitor as ae,ChevronDown as re}from"lucide-react";import{cva as se}from"class-variance-authority";import*as ne from"@radix-ui/react-checkbox";import*as ie from"@radix-ui/react-dropdown-menu";import*as oe from"@radix-ui/react-dialog";import{atom as le,useSetAtom as ce,useAtom as de,useAtomValue as me}from"jotai";import{matchSorter as he}from"match-sorter";import{useTranslation as ue}from"react-i18next";import*as fe from"@radix-ui/react-hover-card";import pe from"rc-input-number";import*as ge from"@radix-ui/react-label";import*as Ce from"@radix-ui/react-slider";import*as we from"@radix-ui/react-separator";import*as ve from"@radix-ui/react-switch";import*as xe from"@radix-ui/react-tabs";import be from"react-textarea-autosize";import*as ye from"@radix-ui/react-toast";import{AnimatePresence as Ne,motion as ke}from"framer-motion";import*as Le from"@radix-ui/react-progress";import{OTPInput as Me,OTPInputContext as Se}from"input-otp";import*as ze from"react-resizable-panels";import*as Re from"@radix-ui/react-select";import*as Ve from"@ariakit/react/select";import{useSprings as Ie,animated as He}from"@react-spring/web";import{flushSync as Te}from"react-dom";import{flexRender as Oe,useReactTable as Be,getFilteredRowModel as je,getSortedRowModel as De,getCoreRowModel as Ze}from"@tanstack/react-table";import{Listbox as Ee,ListboxButton as Pe,Label as Ae,Transition as We,ListboxOptions as Fe,ListboxOption as $e}from"@headlessui/react";import{SelectRenderer as _e}from"@ariakit/react-core/select/select-renderer";const Ge=(...e)=>L(k(e)),Ue=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},Ke=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},qe=g.Root,Ye=r.forwardRef((({className:t="",...a},r)=>e(g.Item,{ref:r,className:Ge("border-b",t),...a})));Ye.displayName="AccordionItem";const Xe=r.forwardRef((({className:a="",children:r,...s},n)=>e(g.Header,{className:"flex",children:t(g.Trigger,{ref:n,className:Ge("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",a),...s,children:[r,e(C,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));Xe.displayName=g.Trigger.displayName;const Je=r.forwardRef((({className:t="",children:a,...r},s)=>e(g.Content,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e("div",{className:Ge("pb-4 pt-0",t),children:a})})));Je.displayName=g.Content.displayName;!function(e,t){void 0===t&&(t={});var a=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===a&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: var(--tab-left, 0);\n width: var(--tab-width, 0);\n}\n\n.animated-tab {\n position: relative;\n}\n\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const Qe=n((function(t,a){const r=i(null);return o((()=>{const e=r.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const a=new MutationObserver(t);return a.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>a.disconnect()}),[]),e(M.Tab,{ref:e=>{r.current=e,"function"==typeof a?a(e):a&&(a.current=e)},...t,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${t.className||""}`})})),et=n((function(t,a){const r=M.useTabContext(),s=function(e){const t=i();return o((()=>{t.current=e}),[e]),t.current}(M.useStoreState(r,"selectedId")),n=t.tabId&&s===t.tabId;return e(M.TabPanel,{ref:a,...t,"data-was-open":n||void 0,className:`animated-tab-panel max-w-full ${t.className||""}`})}));function tt({tabs:a,className:r="",tabListClassName:s="",tabClassName:n="",tabPanelClassName:l="",containerClassName:c="",tabListProps:d={},defaultSelectedId:m}){const h=a.map(((e,t)=>e.id||`tab-${t}`)),u=m||h[0],f=i(null);return o((()=>{const e=f.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const a=new MutationObserver(t);return a.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>a.disconnect()}),[a]),e("div",{className:`w-full ${r}`,children:t(M.TabProvider,{defaultSelectedId:u,children:[e(M.TabList,{ref:f,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${s}`,...d,children:a.map(((t,a)=>e(Qe,{id:h[a],disabled:t.disabled,className:n,"data-state":h[a]===u?"active":"inactive",children:t.label},h[a])))}),e("div",{className:Ge("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",c),children:a.map(((t,a)=>e(et,{id:`panel-${h[a]}`,tabId:h[a],className:l,children:t.content},`panel-${h[a]}`)))})]})})}const at=W.Root,rt=W.Trigger,st=({className:t="",children:a,...r})=>e(W.Portal,{className:Ge(t),...r,children:e("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:a})});st.displayName=W.Portal.displayName;const nt=r.forwardRef((({className:t="",...a},r)=>e(W.Overlay,{className:Ge("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...a,ref:r})));nt.displayName=W.Overlay.displayName;const it=r.forwardRef((({className:a="",...r},s)=>t(st,{children:[e(nt,{}),e(W.Content,{ref:s,className:Ge("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",a),...r})]})));it.displayName=W.Content.displayName;const ot=({className:t="",...a})=>e("div",{className:Ge("flex flex-col space-y-2 text-center sm:text-left",t),...a});ot.displayName="AlertDialogHeader";const lt=({className:t="",...a})=>e("div",{className:Ge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});lt.displayName="AlertDialogFooter";const ct=r.forwardRef((({className:t="",...a},r)=>e(W.Title,{ref:r,className:Ge("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...a})));ct.displayName=W.Title.displayName;const dt=r.forwardRef((({className:t="",...a},r)=>e(W.Description,{ref:r,className:Ge("text-sm text-gray-500","dark:text-gray-400",t),...a})));dt.displayName=W.Description.displayName;const mt=r.forwardRef((({className:t="",...a},r)=>e(W.Action,{ref:r,className:Ge("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...a})));mt.displayName=W.Action.displayName;const ht=r.forwardRef((({className:t="",...a},r)=>e(W.Cancel,{ref:r,className:Ge("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...a})));ht.displayName=W.Cancel.displayName;const ut=r.forwardRef((({...t},a)=>e("nav",{ref:a,"aria-label":"breadcrumb",...t})));ut.displayName="Breadcrumb";const ft=r.forwardRef((({className:t,...a},r)=>e("ol",{ref:r,className:Ge("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...a})));ft.displayName="BreadcrumbList";const pt=r.forwardRef((({className:t,...a},r)=>e("li",{ref:r,className:Ge("inline-flex items-center gap-1.5",t),...a})));pt.displayName="BreadcrumbItem";const gt=r.forwardRef((({asChild:t,className:a,...r},s)=>e(t?F:"a",{ref:s,className:Ge("transition-colors hover:text-foreground",a),...r})));gt.displayName="BreadcrumbLink";const Ct=r.forwardRef((({className:t,...a},r)=>e("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:Ge("font-normal text-foreground",t),...a})));Ct.displayName="BreadcrumbPage";const wt=({children:t,className:a,...r})=>e("li",{role:"presentation","aria-hidden":"true",className:Ge("[&>svg]:size-3.5",a),...r,children:t??e($,{})});wt.displayName="BreadcrumbSeparator";const vt=({className:a,...r})=>t("span",{role:"presentation","aria-hidden":"true",className:Ge("flex h-9 w-9 items-center justify-center",a),...r,children:[e(_,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More"})]});vt.displayName="BreadcrumbElipssis";const xt=se("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),bt=r.forwardRef((({className:t,variant:a,size:r,asChild:s=!1,...n},i)=>e(s?F:"button",{className:Ge(xt({variant:a,size:r,className:t})),ref:i,...n})));bt.displayName="Button";const yt=r.forwardRef((({className:t="",...a},r)=>e(ne.Root,{ref:r,className:Ge("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...a,children:e(ne.Indicator,{className:Ge("flex items-center justify-center"),children:e(G,{className:"h-4 w-4"})})})));yt.displayName=ne.Root.displayName;const Nt=ie.Root,kt=ie.Trigger,Lt=ie.Group,Mt=ie.Portal,St=ie.Sub,zt=ie.RadioGroup,Rt=r.forwardRef((({className:a="",inset:r,children:s,...n},i)=>t(ie.SubTrigger,{ref:i,className:Ge("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",r?"pl-8":"",a),...n,children:[s,e($,{className:"ml-auto h-4 w-4"})]})));Rt.displayName=ie.SubTrigger.displayName;const Vt=r.forwardRef((({className:t="",...a},r)=>e(ie.SubContent,{ref:r,className:Ge("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...a})));Vt.displayName=ie.SubContent.displayName;const It=r.forwardRef((({className:t="",sideOffset:a=4,...r},s)=>e(ie.Portal,{children:e(ie.Content,{ref:s,sideOffset:a,className:Ge("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in 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 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})})));It.displayName=ie.Content.displayName;const Ht=r.forwardRef((({className:t="",inset:a,...r},s)=>e(ie.Item,{ref:s,className:Ge("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",a?"pl-8":"",t),...r})));Ht.displayName=ie.Item.displayName;const Tt=r.forwardRef((({className:a="",children:r,checked:s,...n},i)=>t(ie.CheckboxItem,{ref:i,className:Ge("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",a),checked:s,...n,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(ie.ItemIndicator,{children:e(G,{className:"h-4 w-4"})})}),r]})));Tt.displayName=ie.CheckboxItem.displayName;const Ot=r.forwardRef((({className:a="",children:r,...s},n)=>t(ie.RadioItem,{ref:n,className:Ge(a,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...s,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(ie.ItemIndicator,{children:e(U,{className:"h-2 w-2 fill-current"})})}),r]})));Ot.displayName=ie.RadioItem.displayName;const Bt=r.forwardRef((({className:t="",inset:a,...r},s)=>e(ie.Label,{ref:s,className:Ge("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",a?"pl-8":"",t),...r})));Bt.displayName=ie.Label.displayName;const jt=r.forwardRef((({className:t="",...a},r)=>e(ie.Separator,{ref:r,className:Ge("-mx-1 my-1 h-px bg-border-medium",t),...a})));jt.displayName=ie.Separator.displayName;const Dt=({className:t="",...a})=>e("span",{className:Ge("ml-auto text-xs tracking-widest text-gray-500",t),...a});function Zt({column:a,title:r,className:s=""}){return a.getCanSort()?e("div",{className:Ge("flex items-center space-x-2",s),children:t(Nt,{children:[e(kt,{asChild:!0,children:t(bt,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e("span",{children:r}),"desc"===a.getIsSorted()?e(w,{className:"ml-2 h-4 w-4"}):"asc"===a.getIsSorted()?e(v,{className:"ml-2 h-4 w-4"}):e(x,{className:"ml-2 h-4 w-4"})]})}),t(It,{align:"start",className:"z-[1001]",children:[t(Ht,{onClick:()=>a.toggleSorting(!1),children:[e(v,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),t(Ht,{onClick:()=>a.toggleSorting(!0),children:[e(w,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e(jt,{}),t(Ht,{onClick:()=>a.toggleVisibility(!1),children:[e(b,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e("div",{className:Ge(s),children:r})}var Et,Pt,At;Dt.displayName="DropdownMenuShortcut",function(e){e.SIMPLE="simple",e.ADVANCED="advanced"}(Et||(Et={})),function(e){e.browser="browser",e.external="external"}(Pt||(Pt={})),function(e){e.browser="browser",e.external="external"}(At||(At={}));const Wt="prompt-textarea",Ft="global-audio";var $t,_t;!function(e){e.landing="landing",e.menuItem="menu-item",e.nav="nav",e.message="message"}($t||($t={})),function(e){e.advanced="advanced",e.builder="builder",e.actions="actions",e.model="model",e.version="version",e.mcp="mcp"}(_t||(_t={}));const Gt=450;var Ut,Kt;!function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left"}(Ut||(Ut={})),function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(Kt||(Kt={}));const qt=le("en"),Yt=le("ltr"),Xt=le("text-base"),Jt=le({open:!1,message:"",severity:Kt.SUCCESS,showIcon:!0}),Qt={theme:Ke(),setTheme:()=>{}},ea=e=>"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===e,ta=l(Qt),aa=({initialTheme:t,children:a})=>{const[r,s]=c(Ke),n=ce(Xt),i=e=>{const t=window.document.documentElement,a=ea(e);t.classList.remove(a?"light":"dark"),t.classList.add(a?"dark":"light"),localStorage.setItem("color-theme",e)};return o((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{i(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[]),o((()=>{const e=localStorage.getItem("fontSize");if(null==e)return n("text-base"),Ue("text-base"),void localStorage.setItem("fontSize",JSON.stringify("text-base"));try{Ue(JSON.parse(e))}catch(e){console.log(e)}}),[]),t&&i(t),o((()=>{i(r)}),[r]),e(ta.Provider,{value:{theme:r,setTheme:s},children:a})};function ra(e=100){const[t,a]=de(Jt),r=i(null),s=i(null);o((()=>()=>{null!==r.current&&clearTimeout(r.current),null!==s.current&&clearTimeout(s.current)}),[]);return{toast:t,onOpenChange:e=>a({...t,open:e}),showToast:({message:t,severity:n=Kt.SUCCESS,showIcon:i=!0,duration:o=3e3,status:l})=>{null!==r.current&&clearTimeout(r.current),null!==s.current&&clearTimeout(s.current),r.current=window.setTimeout((()=>{a({open:!0,message:t,severity:l??n,showIcon:i}),s.current=window.setTimeout((()=>{a((e=>({...e,open:!1})))}),o)}),e)}}}function sa({value:e,options:t}){const[a,r]=c(!1),[s,n]=c(""),i=d((()=>{if(!s)return t;const a=he(t,s,{keys:["label","value"]}),r=t.find((t=>t.value===e));return r&&!a.includes(r)&&a.push(r),a}),[s,e,t]);return{open:a,setOpen:r,searchValue:s,setSearchValue:n,matches:i}}function na(){const e=me(qt),{t:t,i18n:a}=ue();return o((()=>{a.language!==e&&a.changeLanguage(e)}),[e,a]),(e,a)=>t(e,a)}function ia(e){const[t,a]=c(!1);return o((()=>{const r=window.matchMedia(e);r.matches!==t&&a(r.matches);const s=()=>a(r.matches);return r.addEventListener("change",s),()=>r.removeEventListener("change",s)}),[t,e]),t}const oa=e=>{const[t,a]=c(!0),r=i(null);return o((()=>{if(t){const t=new Promise((t=>{const r=setTimeout((()=>{a(!1),t()}),e);return()=>{clearTimeout(r)}}));r.current=t}return()=>{r.current=null}}),[e,t]),e=>{if(t&&r.current)throw r.current;return e()}};function la(e,t,a,r){o((()=>{const s=s=>{const n=s.target;n&&"id"in n&&a.includes(n.id)||n?.parentNode&&"id"in n.parentNode&&a.includes(n.parentNode.id)||r&&r(n)||e.current&&!e.current.contains(n)&&t()};return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}}),[e,t])}const ca=oe.Root,da=oe.Trigger,ma=({className:t="",children:a,...r})=>e(oe.Portal,{className:Ge(t),...r,children:e("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:a})});ma.displayName=oe.Portal.displayName;const ha=r.forwardRef((({className:t,...a},r)=>e(oe.Overlay,{className:Ge("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...a,ref:r})));ha.displayName=oe.Overlay.displayName;const ua=r.forwardRef((({className:a,children:r=!0,showCloseButton:s=!0,disableScroll:n=!1,...i},o)=>{const l=ia("(max-width: 768px)");return t(ma,{children:[e(ha,{}),t(oe.Content,{ref:o,className:Ge("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",l?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",n?"overflow-hidden":"",a??""),...i,children:[r,s&&t(oe.Close,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e(K,{className:"h-5 w-5 text-black dark:text-white"}),e("span",{className:"sr-only",children:"Close"})]})]})]})}));ua.displayName=oe.Content.displayName;const fa=({className:t,...a})=>e("div",{className:Ge("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...a});fa.displayName="DialogHeader";const pa=({className:t,...a})=>e("div",{className:Ge("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...a});pa.displayName="DialogFooter";const ga=r.forwardRef((({className:t,...a},r)=>e(oe.Title,{ref:r,className:Ge("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...a})));ga.displayName=oe.Title.displayName;const Ca=r.forwardRef((({className:t,...a},r)=>e(oe.Description,{ref:r,className:Ge("text-sm text-gray-500","dark:text-gray-400",t??""),...a})));Ca.displayName=oe.Description.displayName;const wa=r.forwardRef((({className:t,...a},r)=>e(oe.Close,{ref:r,className:Ge("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...a})));wa.displayName=oe.Title.displayName;const va=r.forwardRef((({className:t,...a},r)=>e(bt,{ref:r,variant:"outline",className:Ge("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...a})));va.displayName=oe.Title.displayName;const xa=fe.Root,ba=fe.Trigger,ya=fe.Portal,Na=r.forwardRef((({className:t="",align:a="center",sideOffset:r=6,disabled:s=!1,...n},i)=>s?null:e(fe.Content,{ref:i,align:a,sideOffset:r,className:Ge("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none 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",t),...n})));Na.displayName=fe.Content.displayName;const ka=r.forwardRef((({className:t,...a},r)=>e("input",{className:Ge("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:r,...a})));ka.displayName="Input";const La=r.forwardRef((({className:t,...a},r)=>e(pe,{className:Ge("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:r,...a})));La.displayName="Input";const Ma=r.forwardRef((({className:t="",...a},r)=>e(ge.Root,{ref:r,className:Ge("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t),...a})));Ma.displayName=ge.Root.displayName;const Sa=r.forwardRef((({children:t,triggerRef:a,triggerRefs:r,onOpenChange:s,...n},i)=>e(oe.Root,{...n,onOpenChange:e=>{!e&&a?.current&&setTimeout((()=>{a.current?.focus()}),0),r?.length&&r.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),s?.(e)},children:t}))),za=oe.Trigger,Ra=oe.Portal,Va=oe.Close,Ia=r.forwardRef((({className:t,...a},r)=>e(oe.Overlay,{ref:r,className:Ge("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a})));Ia.displayName=oe.Overlay.displayName;const Ha=r.forwardRef((({className:a,overlayClassName:r,showCloseButton:s=!0,children:n,...i},o)=>t(Ra,{children:[e(Ia,{className:r}),t(oe.Content,{ref:o,className:Ge("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",a),...i,children:[n,s&&t(oe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e(K,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]})]})));Ha.displayName=oe.Content.displayName;const Ta=({className:t,...a})=>e("div",{className:Ge("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});Ta.displayName="DialogHeader";const Oa=({className:t,...a})=>e("div",{className:Ge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});Oa.displayName="DialogFooter";const Ba=r.forwardRef((({className:t,...a},r)=>e(oe.Title,{ref:r,className:Ge("text-lg font-semibold leading-none tracking-tight",t),...a})));Ba.displayName=oe.Title.displayName;const ja=r.forwardRef((({className:t,...a},r)=>e(oe.Description,{ref:r,className:Ge("text-sm text-muted-foreground",t),...a})));ja.displayName=oe.Description.displayName;const Da=({className:t=""})=>e("span",{children:e("div",{className:Ge("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),Za=r.forwardRef((({className:a,onDoubleClick:r,...s},n)=>t(Ce.Root,{ref:n,className:Ge("relative flex w-full cursor-pointer touch-none select-none items-center",a),onDoubleClick:r,...s,children:[e(Ce.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e(Ce.Range,{className:"absolute h-full bg-primary"})}),e(Ce.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));Za.displayName=Ce.Root.displayName;const Ea=r.forwardRef((({className:t="",orientation:a="horizontal",decorative:r=!0,...s},n)=>e(we.Root,{ref:n,decorative:r,orientation:a,className:Ge("shrink-0 bg-border-light","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",t),...s})));Ea.displayName=we.Root.displayName;const Pa=({label:a,labelClassName:r,placeholder:n="Select an option",options:i,className:o,value:l,onChange:c,onBlur:d})=>{const m=e=>null!=e&&"object"==typeof e&&"value"in e,[h,u]=s.useState(!1),[f,p]=s.useState(l),[g,C]=s.useState(!1);s.useEffect((()=>{p(l)}),[l]);const w=e=>{p(e),c(e)};return t(M.ComboboxProvider,{value:f,setValue:w,children:[null!=a&&e(M.ComboboxLabel,{className:Ge("mb-2 block text-sm font-medium text-text-primary",r??""),children:a}),e("div",{className:Ge("relative",g?"rounded-md ring-2 ring-ring-primary":""),children:e(M.Combobox,{placeholder:n,className:Ge("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",o),onChange:e=>w(e.target.value),onBlur:()=>{C(!1),d()},onFocusVisible:()=>{C(!0),u(!0)},onMouseDown:()=>{C(!1)}})}),e(M.ComboboxPopover,{gutter:4,sameWidth:!0,open:h,onClose:()=>u(!1),className:Ge("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:i.map(((a,r)=>t(M.ComboboxItem,{className:Ge("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:m(a)?`${a.value??""}`:a,children:[m(a)&&null!=a.icon&&e("span",{className:"mr-2 flex-shrink-0",children:a.icon}),m(a)?a.label:a]},r)))})]})};function Aa({className:t,...a}){return e("div",{className:Ge("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...a})}const Wa=r.forwardRef((({className:t,...a},r)=>e(ve.Root,{className:Ge("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...a,ref:r,children:e(ve.Thumb,{className:Ge("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));Wa.displayName=ve.Root.displayName;const Fa=r.forwardRef((({className:t,...a},r)=>e("div",{className:"relative w-full overflow-auto",children:e("table",{ref:r,className:Ge("w-full caption-bottom text-sm",t),...a})})));Fa.displayName="Table";const $a=r.forwardRef((({className:t,...a},r)=>e("thead",{ref:r,className:Ge("[&_tr]:border-b",t),...a})));$a.displayName="TableHeader";const _a=r.forwardRef((({className:t,...a},r)=>e("tbody",{ref:r,className:Ge("[&_tr:last-child]:border-0",t),...a})));_a.displayName="TableBody";const Ga=r.forwardRef((({className:t,...a},r)=>e("tfoot",{ref:r,className:Ge("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...a})));Ga.displayName="TableFooter";const Ua=r.forwardRef((({className:t,...a},r)=>e("tr",{ref:r,className:Ge("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...a})));Ua.displayName="TableRow";const Ka=r.forwardRef((({className:t,...a},r)=>e("th",{ref:r,className:Ge("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...a})));Ka.displayName="TableHead";const qa=r.forwardRef((({className:t,...a},r)=>e("td",{ref:r,className:Ge("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a})));qa.displayName="TableCell";const Ya=r.forwardRef((({className:t,...a},r)=>e("caption",{ref:r,className:Ge("mt-4 text-sm text-muted-foreground",t),...a})));Ya.displayName="TableCaption";const Xa=xe.Root,Ja=r.forwardRef((({className:t="",...a},r)=>e(xe.List,{ref:r,className:Ge("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...a})));Ja.displayName=xe.List.displayName;const Qa=r.forwardRef((({className:t="",...a},r)=>e(xe.Trigger,{className:Ge("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...a,ref:r})));Qa.displayName=xe.Trigger.displayName;const er=r.forwardRef((({className:t="",...a},r)=>e(xe.Content,{className:Ge("mt-2 rounded-md p-6",t),...a,ref:r})));er.displayName=xe.Content.displayName;const tr=r.forwardRef((({CancelButton:r,LabelNode:s,label:n,onRemove:i,className:o="",labelClassName:l="",...c},d)=>t("div",{ref:d,...c,className:Ge("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",o),children:[t("div",{className:Ge("ml-1 whitespace-pre-wrap px-2 py-1",l),children:[s?t(a,{children:[s," "]}):null,n]}),r||i&&e("button",{onClick:e=>{e.stopPropagation(),i(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${n}`,children:e(K,{className:"m-[1.5px] p-1"})})]})));tr.displayName="Tag";const ar=r.memo(tr),rr=r.forwardRef((({className:t="",...a},r)=>e("textarea",{className:Ge("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:r,...a})));rr.displayName="Textarea";const sr=n(((t,a)=>{const[,r]=c(!1),s=me(Yt).toLowerCase();return m((()=>r(!0)),[]),e(be,{dir:s,...t,ref:a})}));function nr(){const{toast:a,onOpenChange:r}=ra(),s={[Kt.INFO]:"border-gray-500 bg-gray-500",[Kt.SUCCESS]:"border-green-500 bg-green-500",[Kt.WARNING]:"border-orange-500 bg-orange-500",[Kt.ERROR]:"border-red-500 bg-red-500"};return e(ye.Root,{open:a.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:t("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${s[a.severity]}`,children:[a.showIcon&&e("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e(ye.Description,{className:"flex-1 justify-center gap-2",children:e("div",{className:"whitespace-pre-wrap text-left",children:a.message})})]})})})}const ir=n((function({description:a,side:r="top",className:s,role:n,...i},o){const l=M.useTooltipStore({placement:r}),c=M.useStoreState(l,(e=>e.mounted)),m=M.useStoreState(l,(e=>e.placement)),{x:h,y:u}=d((()=>{switch(m.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[m]);return t(M.TooltipProvider,{store:l,hideTimeout:0,children:[e(M.TooltipAnchor,{...i,ref:o,role:n,onKeyDown:e=>{"button"===n&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:Ge("cursor-pointer",s)}),e(Ne,{children:!0===c&&t(M.Tooltip,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e(ke.div,{initial:{opacity:0,x:h,y:u},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:h,y:u}}),children:[e(M.TooltipArrow,{}),a]})})]})})),or=({className:t,...a})=>e("nav",{role:"navigation","aria-label":"pagination",className:Ge("mx-auto flex w-full justify-center",t),...a});or.displayName="Pagination";const lr=r.forwardRef((({className:t,...a},r)=>e("ul",{ref:r,className:Ge("flex flex-row items-center gap-1",t),...a})));lr.displayName="PaginationContent";const cr=r.forwardRef((({className:t,...a},r)=>e("li",{ref:r,className:Ge("",t),...a})));cr.displayName="PaginationItem";const dr=({className:t,isActive:a=!1,size:r="icon",children:s,...n})=>e("a",{"aria-current":a?"page":void 0,className:Ge(xt({variant:a?"outline":"ghost",size:r}),t),...n,children:s||e("span",{className:"sr-only",children:"Page link"})});dr.displayName="PaginationLink";const mr=({className:a,...r})=>t(dr,{"aria-label":"Go to previous page",size:"default",className:Ge("gap-1 pl-2.5",a),...r,children:[e(q,{className:"h-4 w-4"}),e("span",{children:"Previous"})]});mr.displayName="PaginationPrevious";const hr=({className:a,...r})=>t(dr,{"aria-label":"Go to next page",size:"default",className:Ge("gap-1 pr-2.5",a),...r,children:[e("span",{children:"Next"}),e($,{className:"h-4 w-4"})]});hr.displayName="PaginationNext";const ur=({className:a,...r})=>t("span",{"aria-hidden":!0,className:Ge("flex h-9 w-9 items-center justify-center",a),...r,children:[e(_,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More pages"})]});ur.displayName="PaginationEllipsis";const fr=r.forwardRef((({className:t,value:a,...r},s)=>e(Le.Root,{ref:s,className:Ge("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e(Le.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})})));fr.displayName=Le.Root.displayName;const pr=r.forwardRef((({className:t,containerClassName:a,...r},s)=>e(Me,{ref:s,containerClassName:Ge("flex items-center gap-2 has-[:disabled]:opacity-50",a),className:Ge("disabled:cursor-not-allowed",t),...r})));pr.displayName="InputOTP";const gr=r.forwardRef((({className:t,...a},r)=>e("div",{ref:r,className:Ge("flex items-center",t),...a})));gr.displayName="InputOTPGroup";const Cr=r.forwardRef((({index:a,className:s,...n},i)=>{const o=r.useContext(Se),{char:l,hasFakeCaret:c,isActive:d}=o.slots[a];return t("div",{ref:i,className:Ge("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",d&&"z-10 ring-1 ring-ring",s),...n,children:[l,c&&e("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));Cr.displayName="InputOTPSlot";const wr=r.forwardRef((({...t},a)=>e("div",{ref:a,role:"separator",...t,children:e(Y,{})})));function vr({value:a,onChange:r,placeholder:s,className:n=""}){const o=na(),l=i(null),c=h((e=>r(e.target.value)),[r]);return t("div",{className:Ge("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",n),children:[e(X,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e("input",{ref:l,type:"text",value:a??"",onChange:c,placeholder:s??o("com_ui_select_search_model"),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e("button",{className:Ge("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",a?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{r(""),setTimeout((()=>{l.current?.focus()}),0)},tabIndex:0,children:e(K,{"aria-hidden":"true",className:Ge("text-text-secondary-alt",a?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function xr(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function br({availableOptions:t=[],placeholder:a,getTextKeyOverride:r,className:s,disabled:n=!1}){const[i,o]=c(null),l=t.length>10&&!n,m=r||xr,u=d((()=>{const e=i??"";if(!l||!e||!t.length)return t;const a=e.toUpperCase();return t.filter((e=>m(e).includes(a)))}),[t,m,i,l]),f=h((e=>o(e)),[]);return[u,l?e(vr,{value:i,className:s,onChange:f,placeholder:a}):null]}wr.displayName="InputOTPSeparator";const yr=({className:t="",...a})=>e(ze.PanelGroup,{className:Ge("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...a}),Nr=ze.Panel,kr=({withHandle:t,className:a="",...r})=>e(ze.PanelResizeHandle,{className:Ge("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",a),...r,children:t&&e("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e(J,{className:"h-2.5 w-2.5"})})}),Lr=({withHandle:t,className:a="",...r})=>e(ze.PanelResizeHandle,{className:Ge("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",a),...r,children:t&&e("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e(J,{className:"h-2.5 w-2.5"})})});function Mr({icon:a,label:r,id:s,isActive:n=!1,isEditing:i=!1,isDragging:o=!1,isAvailable:l=!0,isInChat:c=!1,onBadgeAction:d,onToggle:m,className:h,...u}){const f=i&&l,p="1"===s&&c;return t(ke.button,{onClick:e=>{if(p)return e.preventDefault(),void e.stopPropagation();!i&&m&&(e.preventDefault(),e.stopPropagation(),m())},className:Ge("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",n?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",f&&"cursor-move",p&&"cursor-not-allowed opacity-50 hover:shadow-sm",h),animate:{scale:o?1.1:1,boxShadow:o?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:o?1.1:p?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...u,children:[a&&e(a,{className:Ge("relative h-5 w-5 md:h-4 md:w-4",!r&&"mx-auto")}),e("span",{className:"relative hidden md:inline",children:r}),i&&!o&&e(ke.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),d?.()},children:e(l?K:Q,{className:"h-3 w-3"})})]})}const Sr=Re.Value,zr=r.forwardRef((({className:a="",children:r,...s},n)=>t(Re.Trigger,{ref:n,className:Ge("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",a),...s,children:[r,e(Re.Icon,{asChild:!0,children:e(x,{className:"h-4 w-4 opacity-50"})})]})));zr.displayName=Re.Trigger.displayName;const Rr=r.forwardRef((({className:t="",...a},r)=>e(Re.ScrollUpButton,{ref:r,className:Ge("flex cursor-default items-center justify-center py-1 dark:text-white",t),...a,children:e(y,{})})));Rr.displayName=Re.ScrollUpButton.displayName;const Vr=r.forwardRef((({className:t="",...a},r)=>e(Re.ScrollDownButton,{ref:r,className:Ge("flex cursor-default items-center justify-center py-1 dark:text-white",t),...a,children:e(C,{})})));Vr.displayName=Re.ScrollDownButton.displayName;r.forwardRef((({className:a="",children:r,position:s="popper",...n},i)=>e(Re.Portal,{children:t(Re.Content,{ref:i,className:Ge("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md 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 dark:border-gray-600","popper"===s?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",a),position:s,...n,children:[e(Rr,{}),e(Re.Viewport,{className:Ge("p-1","popper"===s?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e(Vr,{})]})}))).displayName=Re.Content.displayName;r.forwardRef((({className:t="",...a},r)=>e(Re.Label,{ref:r,className:Ge("px-2 py-1.5 text-sm font-semibold",t),...a}))).displayName=Re.Label.displayName;r.forwardRef((({className:a="",children:r,...s},n)=>t(Re.Item,{ref:n,className:Ge("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",a),...s,children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(Re.ItemIndicator,{children:e(N,{className:"h-4 w-4"})})}),e(Re.ItemText,{children:r})]}))).displayName=Re.Item.displayName;function Ir({selectedValue:a,displayValue:r,items:s,setValue:n,ariaLabel:i,searchPlaceholder:o,selectPlaceholder:l,isCollapsed:c,SelectIcon:d}){const m=(s??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:h,setOpen:f,setSearchValue:p,matches:g}=sa({value:a,options:m});return e(Re.Root,{value:a,onValueChange:n,open:h,onOpenChange:()=>{!0!==h?setTimeout((()=>{f(!h)}),75):f(!1)},children:t(S,{open:h,setOpen:f,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{u((()=>{p(e)}))},children:[e(zr,{"aria-label":i,className:Ge("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",c?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:t(Sr,{placeholder:l,children:[e("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:d||e(C,{})}),e("span",{className:Ge("ml-2",c?"hidden":""),style:{userSelect:"none"},children:a?r??a:l&&l})]})}),e(Re.Portal,{children:t(Re.Content,{role:"dialog","aria-label":i+"s",position:"popper",className:Ge("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md 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 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[t(Re.Viewport,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[t("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-2 px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e(X,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e(z,{autoSelect:!0,placeholder:o,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e(R,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e(V,{className:"overflow-y-auto p-1 py-2",children:g.map((({label:a,value:r,icon:s})=>e(Re.Item,{value:`${r??""}`,asChild:!0,children:t(I,{className:Ge("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{n(`${r??""}`),f(!1)},children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(Re.ItemIndicator,{children:e(N,{className:"h-4 w-4"})})}),e(Re.ItemText,{children:t("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e("div",{className:"assistant-item overflow-hidden rounded-full",children:s&&s}),a]})})]})},r)))})]}),e(Vr,{className:"absolute bottom-0 left-0 right-0"})]})})]})})}r.forwardRef((({className:t="",...a},r)=>e(Re.Separator,{ref:r,className:Ge("-mx-1 my-1 h-px bg-muted",t),...a}))).displayName=Re.Separator.displayName;const Hr=e=>"object"==typeof e&&"divider"in e,Tr=e=>"object"==typeof e&&"value"in e&&"label"in e,Or=({value:a,label:r="",onChange:s,options:n,className:i="",sizeClasses:o,testId:l="dropdown-menu",icon:c,iconOnly:d=!1,renderValue:m,ariaLabel:h,portal:u=!0})=>{const f=Ve.useSelectStore({value:a,setValue:e=>{s(e)}}),p=e=>{if(null!=e&&""!==e)return n.filter((e=>!Hr(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>Tr(t)&&t.value===e))};return t("div",{className:Ge("relative",i),children:[t(Ve.Select,{store:f,className:Ge("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",d?"h-full w-10":"w-fit gap-2",i),"data-testid":l,"aria-label":h,children:[t("div",{className:"flex w-full items-center gap-2",children:[c,!d&&t("span",{className:"block truncate",children:[r,(()=>{const e=p(a);return e&&m?m(e):(e=>{if(null==e||""===e)return"";const t=p(e);return t?t.label:e})(a)})()]})]}),!d&&e(Ve.SelectArrow,{})]}),e(Ve.SelectPopover,{portal:u,store:f,className:Ge("popover-ui",o,i,"max-h-[80vh] overflow-y-auto"),children:n.map(((r,s)=>{if(Hr(r))return e("div",{className:"my-1 border-t border-border-heavy"},`divider-${s}`);const n="string"==typeof r?{value:r,label:r}:r;return Tr(n)?e(Ve.SelectItem,{value:String(n.value),className:"select-item","data-theme":n.value,children:t("div",{className:"flex w-full items-center gap-2",children:[null!=n.icon&&e("span",{children:n.icon}),e("span",{className:"block truncate",children:n.label}),a===n.value&&e("span",{className:"ml-auto pl-2",children:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${s}`):null}))})]})},Br=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]},jr=({text:r="",className:s="",delay:n=100,animationFrom:l={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:d={opacity:1,transform:"translate3d(0,0,0)"},easing:m=(e=>e),threshold:h=.1,rootMargin:u="-100px",textAlign:f="center",onLetterAnimationComplete:p,onLineCountChange:g})=>{const C=r.split(" ").map(Br),w=C.flat(),[v,x]=c(!1),b=i(null),y=i(0),[N]=Ie(w.length,(e=>({from:l,to:v?async e=>{await e(d),y.current+=1,y.current===w.length&&p&&p()}:l,delay:e*n,config:{easing:m}})),[v,r,n,l,d,m,p]);return o((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(x(!0),b.current&&e.unobserve(b.current))}),{threshold:h,rootMargin:u});return b.current&&e.observe(b.current),()=>e.disconnect()}),[h,u]),o((()=>{if(b.current&&v){const e=b.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),a=e.offsetHeight,r=Math.round(a/t);g&&g(r)}),100)}}),[v,r,g]),t(a,{children:[e("span",{className:"sr-only",children:r}),e("p",{ref:b,className:`split-parent inline overflow-hidden ${s}`,style:{textAlign:f,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:C.map(((a,r)=>t("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[a.map(((t,a)=>{const s=C.slice(0,r).reduce(((e,t)=>e+t.length),0)+a;return e(He.span,{style:N[s],className:"inline-block transform transition-opacity will-change-transform",children:t},s)})),r<C.length-1&&e("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r)))})]})};function Dr(e,t,a){let r,s=a.initialDeps??[];function n(){var n,i,o,l;let c;a.key&&(null==(n=a.debug)?void 0:n.call(a))&&(c=Date.now());const d=e();if(!(d.length!==s.length||d.some(((e,t)=>s[t]!==e))))return r;let m;if(s=d,a.key&&(null==(i=a.debug)?void 0:i.call(a))&&(m=Date.now()),r=t(...d),a.key&&(null==(o=a.debug)?void 0:o.call(a))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-m))/100,r=t/16,s=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${s(t,5)} /${s(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==a?void 0:a.key)}return null==(l=null==a?void 0:a.onChange)||l.call(a,r),r}return n.updateDeps=e=>{s=e},n}function Zr(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const Er=(e,t,a)=>{let r;return function(...s){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,s)),a)}},Pr=e=>{const{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},Ar=e=>e,Wr=e=>{const t=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=a;e++)r.push(e);return r},Fr=(e,t)=>{const a=e.scrollElement;if(!a)return;const r=e.targetWindow;if(!r)return;const s=e=>{const{width:a,height:r}=e;t({width:Math.round(a),height:Math.round(r)})};if(s(Pr(a)),!r.ResizeObserver)return()=>{};const n=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void s({width:t.inlineSize,height:t.blockSize})}s(Pr(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return n.observe(a,{box:"border-box"}),()=>{n.unobserve(a)}},$r={passive:!0},_r="undefined"==typeof window||"onscrollend"in window,Gr=(e,t)=>{const a=e.scrollElement;if(!a)return;const r=e.targetWindow;if(!r)return;let s=0;const n=e.options.useScrollendEvent&&_r?()=>{}:Er(r,(()=>{t(s,!1)}),e.options.isScrollingResetDelay),i=r=>()=>{const{horizontal:i,isRtl:o}=e.options;s=i?a.scrollLeft*(o?-1:1):a.scrollTop,n(),t(s,r)},o=i(!0),l=i(!1);l(),a.addEventListener("scroll",o,$r);const c=e.options.useScrollendEvent&&_r;return c&&a.addEventListener("scrollend",l,$r),()=>{a.removeEventListener("scroll",o),c&&a.removeEventListener("scrollend",l)}},Ur=(e,t,a)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[a.options.horizontal?"inlineSize":"blockSize"])}}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},Kr=(e,{adjustments:t=0,behavior:a},r)=>{var s,n;const i=e+t;null==(n=null==(s=r.scrollElement)?void 0:s.scrollTo)||n.call(s,{[r.options.horizontal?"left":"top"]:i,behavior:a})};class qr{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var a;null==(a=t())||a.disconnect(),e=null},observe:e=>{var a;return null==(a=t())?void 0:a.observe(e,{box:"border-box"})},unobserve:e=>{var a;return null==(a=t())?void 0:a.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,a])=>{void 0===a&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ar,rangeExtractor:Wr,onChange:()=>{},measureElement:Ur,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,a;null==(a=(t=this.options).onChange)||a.call(t,this,e)},this.maybeNotify=Dr((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const a=new Map,r=new Map;for(let s=t-1;s>=0;s--){const t=e[s];if(a.has(t.lane))continue;const n=r.get(t.lane);if(null==n||t.end>n.end?r.set(t.lane,t):t.end<n.end&&a.set(t.lane,!0),a.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=Dr((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,a,r,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:a,getItemKey:r,enabled:s})),{key:!1}),this.getMeasurements=Dr((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:a,getItemKey:r,enabled:s},n)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const i=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const o=this.measurementsCache.slice(0,i);for(let s=i;s<e;s++){const e=r(s),i=1===this.options.lanes?o[s-1]:this.getFurthestMeasurement(o,s),l=i?i.end+this.options.gap:t+a,c=n.get(e),d="number"==typeof c?c:this.options.estimateSize(s),m=l+d,h=i?i.lane:s%this.options.lanes;o[s]={index:s,start:l,size:d,end:m,key:e,lane:h}}return this.measurementsCache=o,o}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=Dr((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,a,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:a,lanes:r}){const s=e.length-1,n=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:s};let i=Yr(0,s,n,a),o=i;if(1===r)for(;o<s&&e[o].end<a+t;)o++;else if(r>1){const n=Array(r).fill(0);for(;o<s&&n.some((e=>e<a+t));){const t=e[o];n[t.lane]=t.end,o++}const l=Array(r).fill(a+t);for(;i>=0&&l.some((e=>e>=a));){const t=e[i];l[t.lane]=t.start,i--}i=Math.max(0,i-i%r),o=Math.min(s,o+(r-1-o%r))}return{startIndex:i,endIndex:o}}({measurements:e,outerSize:t,scrollOffset:a,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Dr((()=>{let e=null,t=null;const a=this.calculateRange();return a&&(e=a.startIndex,t=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,a,r,s)=>null===r||null===s?[]:e({startIndex:r,endIndex:s,overscan:t,count:a})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,a=e.getAttribute(t);return a?parseInt(a,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const a=this.indexFromElement(e),r=this.measurementsCache[a];if(!r)return;const s=r.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const a=this.measurementsCache[e];if(!a)return;const r=t-(this.itemSizeCache.get(a.key)??a.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(a,r,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=Dr((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const a=[];for(let r=0,s=e.length;r<s;r++){const s=t[e[r]];a.push(s)}return a}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Zr(t[Yr(0,t.length-1,(e=>Zr(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,a=0)=>{const r=this.getSize(),s=this.getScrollOffset();"auto"===t&&(t=e>=s+r?"end":"start"),"center"===t?e+=(a-r)/2:"end"===t&&(e-=r);const n=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(n,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.measurementsCache[e];if(!a)return;const r=this.getSize(),s=this.getScrollOffset();if("auto"===t)if(a.end>=s+r-this.options.scrollPaddingEnd)t="end";else{if(!(a.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}const n="end"===t?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(n,t,a.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:a}={})=>{"smooth"===a&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:t="auto",behavior:a}={})=>{"smooth"===a&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0;const s=t=>{if(!this.targetWindow)return;const r=this.getOffsetForIndex(e,t);if(!r)return void console.warn("Failed to get offset for index:",e);const[s,i]=r;this._scrollToOffset(s,{adjustments:void 0,behavior:a}),this.targetWindow.requestAnimationFrame((()=>{const t=this.getScrollOffset(),a=this.getOffsetForIndex(e,i);var r,s;a?(r=a[0],s=t,Math.abs(r-s)<1.01||n(i)):console.warn("Failed to get offset for index:",e)}))},n=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame((()=>s(t))):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};s(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let a;if(0===t.length)a=this.options.paddingStart;else if(1===this.options.lanes)a=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some((e=>null===e));){const a=t[r];null===e[a.lane]&&(e[a.lane]=a.end),r--}a=Math.max(...e.filter((e=>null!==e)))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const Yr=(e,t,a,r)=>{for(;e<=t;){const s=(e+t)/2|0,n=a(s);if(n<r)e=s+1;else{if(!(n>r))return s;t=s-1}}return e>0?e-1:0};const Xr="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Jr(e){return function(e){const t=r.useReducer((()=>({})),{})[1],a={...e,onChange:(a,r)=>{var s;r?Te(t):t(),null==(s=e.onChange)||s.call(e,a,r)}},[s]=r.useState((()=>new qr(a)));return s.setOptions(a),Xr((()=>s._didMount()),[]),Xr((()=>s._willUpdate())),s}({observeElementRect:Fr,observeElementOffset:Gr,scrollToFn:Kr,...e})}const Qr=({value:a,onChange:r,isSearching:s,placeholder:n})=>{const i=!0===s,o=null!=a&&a.length>0;return t("div",{className:"relative w-full",children:[e("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:t("div",{className:"relative",children:[e("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e(X,{className:Ge("h-4 w-4 transition-all duration-500 ease-in-out",i&&o?"text-blue-400":"text-gray-400")})}),e("input",{type:"text",value:a,onChange:r,placeholder:n,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${i&&o?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${i&&o?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:t("div",{className:"relative h-2 w-2",children:[e("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${i&&o?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:t("div",{className:"absolute inset-0",children:[e("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${i&&o?"animate-pulse-slow opacity-100":"opacity-0"} `}),e("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${i&&o?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})};function es({className:t="icon-md"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})}function ts({className:a=""}){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:Ge("lucide lucide-blocks",a),children:[e("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})}function as({className:a="",...r}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:Ge("h-4 w-4",a),width:"16",height:"16",strokeWidth:"2",...r,children:t("g",{fill:"currentColor",children:[e("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})}function rs({size:t=25,className:a=""}){return e("svg",{width:t,height:t,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:Ge(a,""),children:e("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})}const ss=s.forwardRef(((t,a)=>{const{className:r="icon-md",size:s="1.2em"}=t;return e("svg",{ref:a,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:s,width:s,className:Ge(r),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function ns({className:t="icon-sm"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})}function is({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})}function os({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})}function ls({className:a="m-auto",size:r=20,color:s="currentColor",bgOpacity:n=.1,speed:i=.75}){const o={"--spinner-speed":`${i}s`};return t("svg",{className:Ge(a,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:o,children:[e("defs",{children:e("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:s,strokeOpacity:n}),e("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:s,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function cs({className:t="icon-md-heavy",size:a="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:a,width:a,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge(t),children:e("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})}function ds({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function ms({className:a=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge(a,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function hs(){return t("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function us({size:a=25,className:r=""}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("lucide lucide-bot",r),children:[e("path",{d:"M12 8V4H8"}),e("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e("path",{d:"M2 14h2"}),e("path",{d:"M20 14h2"}),e("path",{d:"M15 13v2"}),e("path",{d:"M9 13v2"})]})}function fs({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:Ge("h-6 w-6",t),children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})}function ps({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})}function gs({className:a}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ge(a??"","lucide lucide-messages-square"),children:[e("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})}function Cs({className:t=""}){return e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})}function ws({className:t="",size:a="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:a,width:a,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("icon-md-heavy",t),children:e("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})}function vs({className:a=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("h-3 w-3 -rotate-180",a),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e("polygon",{points:"11 19 2 12 11 5 11 19"}),e("polygon",{points:"22 19 13 12 22 5 22 19"})]})}function xs(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})}function bs(){return t("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[t("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e("stop",{offset:0,stopColor:"#0062e0"}),e("stop",{offset:1,stopColor:"#19afff"})]}),e("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})}function ys(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})}function Ns(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})}function ks(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})}function Ls(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})}function Ms(){return e("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:t("g",{fill:"#000000",children:[e("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})}function Ss({size:a=25,className:r=""}){return t("svg",{viewBox:"0 0 24 16",overflow:"visible",width:a,height:a,className:Ge("fill-current text-black",r),children:[e("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})}function zs({size:t=24,className:a=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:Ge("text-white dark:text-black",a),children:e("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Rs(){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})}function Vs({className:a="h-4 w-4 flex-shrink-0 text-gray-500"}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:a,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("circle",{cx:"12",cy:"12",r:"1"}),e("circle",{cx:"19",cy:"12",r:"1"}),e("circle",{cx:"5",cy:"12",r:"1"})]})}const Is=({className:a=""})=>t("svg",{className:a,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]});function Hs({unpin:a=!1}){return a?t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})}function Ts({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}function Os({size:t,className:a="icon-md"}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})}function Bs({size:a=25,className:r="h-4 w-4"}){const s=a,n=a;return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Ge(r,""),width:n,height:s,xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})}function js({className:t="h-4 w-4"}){return e("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})}function Ds(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e("circle",{cx:"12",cy:"5",r:"2"}),e("path",{d:"M12 7v4"}),e("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})}function Zs({className:a=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("h-4 w-4",a),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})}function Es({size:a=25,className:r=""}){return t("svg",{width:a,height:a,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})}function Ps({size:t=25,className:a=""}){return e("svg",{width:t,height:t,className:Ge("dark:fill-white",a),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})}function As({size:a=25,className:r=""}){return t("svg",{width:a,height:a,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e("defs",{children:t("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e("stop",{offset:".325",stopColor:"#FFDDB7"}),e("stop",{offset:".706",stopColor:"#076EFF"})]})})]})}function Ws({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:Ge("h-4 w-4",t),children:e("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})}function Fs(){return e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})}function $s({className:a}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:Ge(a),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})}function _s({className:t="",size:a="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:a,width:a,className:Ge(t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})}function Gs({className:t="",size:a="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:a,width:a,className:Ge(t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})}function Us(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})}function Ks(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})]})}function qs(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function Ys({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Ge("text-black dark:text-white",t),"aria-hidden":!0,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})}function Xs(){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Js({size:t=25,className:a=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:Ge(a,""),children:e("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})}function Qs({className:a=""}){return t("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:Ge("h-9 w-9",a),children:[e("defs",{children:t("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#640a62",offset:"0"}),e("stop",{stopColor:"#852283",offset:".49917"}),e("stop",{stopColor:"#640a62",offset:"1"})]})}),t("g",{children:[e("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),t("g",{fill:"#cfffff",children:[e("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})}function en({className:a="",size:r="1em"}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ge("text-token-secondary h-2/3 w-2/3",a),xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function tn({className:a="",size:r=24}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Ge("icon-md shrink-0",a),children:[e("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})}function an({className:a}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ge(a),children:[e("path",{d:"M2 10v3"}),e("path",{d:"M6 6v11"}),e("path",{d:"M10 3v18"}),e("path",{d:"M14 8v7"}),e("path",{d:"M18 5v13"}),e("path",{d:"M22 10v3"})]})}function rn({size:t="1em",className:a}){return e("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:a,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})}function sn({className:a="icon-md-heavy",size:r="1em"}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Ge(a),children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e("path",{d:"M12 17h.01"})]})}function nn({size:t=25,className:a=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:Ge("fill-current text-black",a),children:e("g",{fill:"currentColor",children:e("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})}function on({className:a="",size:r="1em",bold:s=!1}){return s?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:a,children:[e("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:a,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})}function ln({className:a="",size:r="1em",bold:s=!1}){return s?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:a,children:[e("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:a,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})}function cn({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})}function dn({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})}function mn({className:a}){return t("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[e("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})}function hn({className:t}){return e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})}function un(){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}const fn=f((({checked:t,onChange:a,ariaLabel:r})=>e("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e(yt,{checked:t,onCheckedChange:a,"aria-label":r})})));fn.displayName="SelectionCheckbox";const pn=f((({row:t,isSmallScreen:a,onSelectionChange:r,index:s,isSearching:n})=>{const i=h((e=>{t.toggleSelected(e),r?.(t.id,e)}),[t,r]);return e(Ua,{"data-state":t.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*s+"ms",transform:`translateY(${n?"4px":"0"})`,opacity:n?.5:1},children:t.getVisibleCells().map((r=>"select"===r.column.id?e(qa,{className:"px-2 py-1 transition-all duration-300",children:e(fn,{checked:t.getIsSelected(),onChange:i,ariaLabel:"Select row"})},r.id):e(qa,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:gn(r.column.columnDef,a),children:e("div",{className:"overflow-hidden text-ellipsis",children:Oe(r.column.columnDef.cell,r.getContext())})},r.id)))})}));function gn(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const Cn=f((({onDelete:r,isDeleting:s,disabled:n,isSmallScreen:i})=>r?e(bt,{variant:"outline",onClick:r,disabled:n,className:Ge("min-w-[40px] transition-all duration-200",i&&"px-2 py-1"),children:s?e(ls,{className:"size-4"}):t(a,{children:[e(Ts,{className:"size-3.5 text-red-400 sm:size-4"}),!i&&e("span",{className:"ml-2",children:"Delete"})]})}):null));function wn({columns:a,data:r,onDelete:s,filterColumn:n,defaultSort:l=[],className:m="",isFetchingNextPage:u=!1,hasNextPage:f=!1,fetchNextPage:p,enableRowSelection:g=!0,showCheckboxes:C=!0,onFilterChange:w,filterValue:v,isLoading:x,enableSearch:b=!0}){const y=ia("(max-width: 768px)"),N=i(null),[k,L]=c(!1),[M,S]=c({}),[z,R]=c(l),[V,I]=c([]),[H,T]=c({}),[O,B]=c(v??""),[j,D]=c(!1),Z=d((()=>{if(!g||!C)return a;const t={id:"select",header:({table:t})=>e("div",{className:"flex h-full w-[30px] items-center justify-center",children:e(yt,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e(fn,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...a]}),[a,g,C]),E=Be({data:r,columns:Z,getCoreRowModel:Ze(),getSortedRowModel:De(),getFilteredRowModel:je(),enableRowSelection:g,enableMultiRowSelection:!0,state:{sorting:z,columnFilters:V,columnVisibility:H,rowSelection:M},onSortingChange:R,onColumnFiltersChange:I,onColumnVisibilityChange:T,onRowSelectionChange:S}),{rows:P}=E.getRowModel(),A=Jr({count:P.length,getScrollElement:()=>N.current,estimateSize:h((()=>48),[]),overscan:10}),W=A.getVirtualItems(),F=A.getTotalSize(),$=W.length>0?W[0].start:0,_=W.length>0?F-W[W.length-1].end:0;o((()=>{const e=N.current;if(!e)return;const t=async()=>{if(!f||u)return;const{scrollTop:t,scrollHeight:a,clientHeight:r}=e;if(a-t<=1.5*r)try{await(p?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[f,u,p]),o((()=>{D(!0);const e=setTimeout((()=>{w?.(O),D(!1)}),300);return()=>clearTimeout(e)}),[O,w]);const G=h((async()=>{if(s){L(!0);try{const e=E.getFilteredSelectedRowModel().rows.map((e=>e.original));await s(e),S({})}finally{L(!1)}}}),[s,E]),U=Array.from({length:13},((t,a)=>{const r=Math.floor(241*Math.random())+170,s="select"===Z[0]?.id?1:0;return e(Ua,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:Z.map(((t,a)=>{const n=gn(t,y);return e(qa,{className:"px-2 py-1 sm:px-4 sm:py-2",style:n,children:e(Aa,{className:"h-6",style:a===s?{width:`${r}px`}:{width:"100%"}})},t.id)}))},a)}));return t("div",{className:Ge("flex h-full flex-col gap-4",m),children:[t("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[g&&C&&e(Cn,{onDelete:G,isDeleting:k,disabled:!E.getFilteredSelectedRowModel().rows.length||k,isSmallScreen:y}),void 0!==n&&E.getColumn(n)&&b&&e("div",{className:"relative flex-1",children:e(Qr,{value:O,onChange:e=>B(e.target.value),isSearching:j,placeholder:"Search..."})})]}),e("div",{ref:N,className:Ge("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",j&&"bg-surface-secondary/50",m),children:t(Fa,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e($a,{className:"sticky top-0 z-50 bg-surface-secondary",children:E.getHeaderGroups().map((t=>e(Ua,{className:"border-b border-border-light",children:t.headers.map((t=>e(Ka,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:gn(t.column.columnDef,y),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:Oe(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),t(_a,{children:[$>0&&e("tr",{children:e("td",{style:{height:`${$}px`}})}),x&&U,W.map((t=>{const a=P[t.index];return e(pn,{row:a,isSmallScreen:y,index:t.index,isSearching:j},a.id)})),!W.length&&e(Ua,{className:"hover:bg-transparent",children:e(qa,{colSpan:a.length,className:"p-4 text-center",children:"No data available"})}),_>0&&e("tr",{children:e("td",{style:{height:`${_}px`}})}),(u||f)&&e(Ua,{className:"hover:bg-transparent",children:e(qa,{colSpan:a.length,className:"p-4",children:e("div",{className:"flex h-full items-center justify-center",children:u?e(ls,{className:"size-4"}):f&&e("div",{className:"h-6"})})})})]})]})})]})}function vn({field:a,label:r,labelClass:s,inputClass:n,containerClass:i,labelAdjacent:o,placeholder:l="",type:c="string"}){return t("div",{className:Ge("flex w-full flex-col items-center gap-2",i),children:[t("div",{className:"flex w-full items-center justify-start gap-2",children:[e(Ma,{htmlFor:`${a.name}-input`,className:Ge("text-left text-sm font-semibold text-text-primary",s),children:r}),o]}),e(ka,{id:`${a.name}-input`,value:a.value??"",onChange:e=>{const t=e.target.value;"number"===c?""===t?a.onChange(t):isNaN(Number(t))||a.onChange(Number(t)):a.onChange(t)},placeholder:l,className:Ge("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",n)})]})}class xn{constructor(e,t,a,r,s,n,i,o){this.width=e.width,this.height=e.height,this.ctx=t,this.x=a,this.y=r,this.color=s,this.speed=this.random(.1,.9)*n,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=i,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=o}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const bn=(e,t)=>{const a=parseInt(String(e),10);return a<=0||t?0:a>=100?.1:.001*a},yn=(e,t=0,a=1)=>Math.min(Math.max(e,t),a),Nn={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};function kn({variant:t="default",gap:a,speed:r,colors:s,noFocus:n,className:l="",progress:c,randomness:d=.3,width:m,height:u}){const f=i(null),p=i(null),g=i([]),C=i(),w=i(performance.now()),v=i(c),x=i(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,b=Nn[t],y=a??b.gap,N=r??b.speed,k=s??b.colors,L=n??b.noFocus,M=h((()=>{if(!p.current)return;if(void 0===v.current)return void(p.current.style.opacity="1");const e=v.current>=.9?1-(v.current-.9)/.1:1;p.current.style.opacity=String(yn(e))}),[]),S=h((e=>{C.current=requestAnimationFrame((()=>S(e)));const t=performance.now(),a=t-w.current;if(a<1e3/60)return;w.current=t-a%(1e3/60);const r=p.current?.getContext("2d");if(!r||!p.current)return;r.clearRect(0,0,p.current.width,p.current.height);let s=!0;for(const t of g.current)"appearWithProgress"===e?void 0!==v.current?t.appearWithProgress(v.current):t.isIdle=!0:t[e](),t.isIdle||(s=!1);M(),s&&cancelAnimationFrame(C.current)}),[M]),z=h((e=>{cancelAnimationFrame(C.current),C.current=requestAnimationFrame((()=>S(e)))}),[S]),R=h((()=>{if(!f.current||!p.current)return;const{width:e,height:t}=f.current.getBoundingClientRect(),a=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const r=k.split(","),s=[],n=e/2,i=t/2,o=Math.hypot(n,i);for(let l=0;l<e;l+=y)for(let e=0;e<t;e+=y){const t=r[Math.floor(Math.random()*r.length)],c=Math.hypot(l-n,e-i)/o,m=yn(c*(1-d)+Math.random()*d),h=x?0:c*o;a&&s.push(new xn(p.current,a,l,e,t,bn(N,x),h,m))}g.current=s,void 0!==v.current&&z("appearWithProgress")}),[y,k,N,d,x,z]);o((()=>{v.current=c,void 0!==c&&z("appearWithProgress")}),[c,z]),o((()=>{void 0===c&&cancelAnimationFrame(C.current)}),[c]),o((()=>{R();const e=new ResizeObserver(R);return f.current&&e.observe(f.current),()=>{e.disconnect(),cancelAnimationFrame(C.current)}}),[R]);return e("div",{ref:f,style:{width:m||"100%",height:u||"100%"},children:e("div",{className:Ge("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",l),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===v.current&&z("appear"),onMouseLeave:()=>void 0===v.current&&z("disappear"),onFocus:L?void 0:e=>{L||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||z("appear")},onBlur:L?void 0:e=>{L||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||z("disappear")},tabIndex:L?-1:0,children:e("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:m&&"auto"!==m?parseInt(String(m)):void 0,height:u&&"auto"!==u?parseInt(String(u)):void 0})})})}const Ln=n((({children:r,handleFileChange:s},n)=>t(a,{children:[r,e("input",{ref:n,multiple:!0,type:"file",style:{display:"none"},onChange:s})]})));function Mn(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}function Sn({items:r,label:s,placeholder:n="Select...",onSelectedValuesChange:o,renderSelectedValues:l=Mn,className:c,selectIcon:d,itemClassName:m,labelClassName:h,selectClassName:u,popoverClassName:f,selectItemsClassName:p,selectedValues:g=[],setSelectedValues:C,renderItemContent:w}){const v=i(null);return e("div",{className:c,children:t(H,{value:g,setValue:e=>{C(e),o&&o(e)},children:[s&&e(T,{className:Ge("mb-1 block text-sm text-text-primary",h),children:s}),t(O,{ref:v,className:Ge("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",u,g.length>0&&null!=p&&p),onChange:e=>e.stopPropagation(),children:[d&&d,e("span",{className:"mr-auto hidden truncate md:block",children:l(g,n)}),e(B,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e(j,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:v,className:Ge("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",f),children:r.map((r=>{const s=t(a,{children:[e(D,{className:"text-primary"}),e("span",{className:"truncate",children:r})]}),n=g.includes(r);return e(Z,{value:r,className:Ge("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",m),children:w?w(r,s,n):s},r)}))})]})})}Ln.displayName="FileUpload";const zn=({trigger:a,isOpen:r,setIsOpen:s,focusLoop:n,mountByState:i,...o})=>{const l=M.useMenuStore({open:r,setOpen:s,focusLoop:n});return t(M.MenuProvider,i?{store:l,children:[a,r&&e(Rn,{...o})]}:{store:l,children:[a,e(Rn,{...o})]})},Rn=({items:a,menuId:r,keyPrefix:s,className:n,iconClassName:i,itemClassName:o,modal:l,portal:c,sameWidth:d,gutter:m=8,finalFocus:h,unmountOnHide:u,preserveTabOrder:f})=>{const p=M.useMenuContext();return e(M.Menu,{id:r,modal:l,gutter:m,portal:c,sameWidth:d,finalFocus:h,unmountOnHide:u,preserveTabOrder:f,className:Ge("popover-ui z-50",n),children:a.filter((e=>!1!==e.show)).map(((a,r)=>!0===a.separate?e(M.MenuSeparator,{className:"my-1 h-px bg-white/10"},r):t(M.MenuItem,{id:a.id,className:Ge("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",o),disabled:a.disabled,render:a.render,ref:a.ref,hideOnClick:a.hideOnClick,onClick:e=>{e.preventDefault(),a.onClick&&a.onClick(e),!1!==a.hideOnClick&&p?.hide()},children:[null!=a.icon&&e("span",{className:Ge("mr-2 size-4",i),"aria-hidden":"true",children:a.icon}),a.label,null!=a.kbd&&t("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",a.kbd]})]},`${s??""}${r}-${a.id??""}`)))})},Vn=({delay:e,children:t})=>oa(e)((()=>t)),In=({theme:t,onChange:a})=>{const r={system:e(ae,{}),dark:e(te,{color:"white"}),light:e(ee,{})},s="dark"===t?"light":"dark",n=`Switch to ${s} theme`;return o((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),a(s))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[s,a]),e("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":n,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),a(s)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a(s))},children:r[t]})},Hn=({returnThemeOnly:a})=>{const{theme:r,setTheme:s}=p(ta),[n,i]=c(""),l=h((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,s(e),i("dark"===e?"Dark theme enabled":"Light theme enabled"))}),[s]);return o((()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;s(e?"dark":"light")}}),[r,s]),o((()=>{if(n){const e=setTimeout((()=>i("")),1e3);return()=>clearTimeout(e)}}),[n]),!0===a?e(In,{theme:r,onChange:l}):t("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e("div",{className:"absolute bottom-0 left-0 m-4",children:e(In,{theme:r,onChange:l})}),n&&e("div",{"aria-live":"polite",className:"sr-only",children:n})]})},Tn=r.forwardRef((({icon:a,label:r,setValue:s,className:n,checked:i,defaultChecked:l,isCheckedClassName:c},d)=>{const m=E(),h=P(m,(e=>e?.value));return o((()=>{void 0!==i&&m.setValue(i)}),[i,m]),o((()=>{void 0!==l&&void 0===i&&m.setValue(l)}),[l,i,m]),t(A,{ref:d,store:m,onChange:e=>{e.stopPropagation(),"boolean"==typeof h&&s?.({e:e,value:!h})},className:Ge("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",h&&c&&c,n),render:e("button",{type:"button","aria-label":r}),children:[a&&e("span",{className:"icon-md text-text-primary",children:a}),e("span",{className:"hidden truncate md:block",children:r})]})}));Tn.displayName="CheckboxButton";const On=n(((a,r)=>{const{title:s,description:n,main:i,buttons:o,leftButtons:l,selection:c,className:d,headerClassName:m,footerClassName:h,showCloseButton:u,showCancelButton:f=!0}=a,{selectHandler:p,selectClasses:g,selectText:C}=c||{};return t(ua,{showCloseButton:u,ref:r,className:Ge("shadow-2xl dark:bg-gray-700",d||""),onClick:e=>e.stopPropagation(),children:[t(fa,{className:Ge(m??""),children:[e(ga,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:s}),n&&e(Ca,{className:"text-gray-600 dark:text-gray-300",children:n})]}),e("div",{className:"px-6",children:i||null}),t(pa,{className:h,children:[e("div",{children:l||null}),t("div",{className:"flex h-auto gap-3",children:[f&&e(wa,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),o||null,c?e(wa,{onClick:p,className:`${g||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:C}):null]})]})]})}));function Bn({title:r,value:n,disabled:o,setValue:l,availableValues:c,showAbove:d=!1,showLabel:m=!0,emptyTitle:h=!1,iconSide:u="right",optionIconSide:f="left",placeholder:p,containerClassName:g,optionsListClass:C,optionsClass:w,currentValueClass:v,subContainerClassName:x,className:b,renderOption:y,searchClassName:N,searchPlaceholder:k,showOptionIcon:L=!1}){const M=na(),S={className:"top-full mt-3"};d&&(S.className="bottom-full mb-3");let z=r;h?z="":z||(z=M("com_ui_model"));const R=c??[],[V,I]=br({availableOptions:R,placeholder:k,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:N,disabled:o}),H=null!=I?V:R,T=L&&null!=n&&null!=n.icon,O=i(null);return e("div",{className:Ge("flex items-center justify-center gap-2",g??""),children:e("div",{className:Ge("relative w-full",x??""),children:e(Ee,{value:n,onChange:l,disabled:o,children:({open:r})=>t(a,{children:[t(Pe,{ref:O,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!r&&O.current&&O.current.click())},className:Ge("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",b??""),children:[m&&e(Ae,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:z}),e("span",{className:"inline-flex w-full truncate",children:t("span",{className:Ge("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",m?"":"text-xs",v??""),children:[!m&&!h&&t("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[z,":"]}),T&&"right"!==f&&e("span",{className:"icon-md flex items-center",children:n.icon}),T&&e("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:n.icon}),n?"string"!=typeof n?n.label??"":n:e("span",{className:"text-text-secondary",children:p})]})}),e("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:d?{transform:"scaleY(-1)"}:{},children:e("polyline",{points:"6 9 12 15 18 9"})})})]}),e(We,{show:r,as:s.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...S,children:t(Fe,{className:Ge("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",C??""),children:[y&&e($e,{value:null,className:Ge("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",w??""),children:y()},"listbox-render-option"),I,H.map(((a,r)=>{if(!a)return null;const s="string"==typeof a?a:a.label??a.value??"",i="string"==typeof a?a:a.value??"",o="string"==typeof a?null:a.icon??null;let l=n;return"string"!=typeof l&&(l=l?.value??""),e($e,{value:a,className:({active:e})=>Ge("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",w??""),children:t("span",{className:"flex items-center gap-1.5 truncate",children:[t("span",{className:Ge("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",a===n?"font-semibold":"","left"===u?"ml-4":""),children:[null!=o&&e("span",{className:Ge("mr-1","right"===f?"absolute right-0 pr-2":""),children:o}),s]}),i===l&&e("span",{className:Ge("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===u?"left-0 pl-2":"right-0 pr-3"),children:e(ds,{})})]})},r)}))]})})]})})})})}var jn=s.memo((({label:a="Value",ariaLabel:r="Value",min:s=0,max:n=100,step:l=1,stepClick:d=1,initialValue:m=0,showButtons:u=!0,onChange:f,disabled:p=!1})=>{const g=na(),[C,w]=c(m),[v,x]=c(!1),b=i(null),y=`model-parameter-${r.toLowerCase().replace(/\s+/g,"-")}`,N=a&&a.startsWith("com_")?g(a):a,k=(e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})(l),L=h((e=>{const t=Math.min(Math.max(e,s),n),a=Object.is(t,-0)?0:t;w(a),f?.(a)}),[s,n,f]),M=h((e=>{L(parseFloat(e.target.value))}),[L]),S=h((()=>{L(C+d)}),[C,d,L]),z=h((()=>{L(C-d)}),[C,d,L]),R=h((e=>{"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),S()):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),z())}),[S,z]);return o((()=>{const e=b.current;if(e){const t=(C-s)/(n-s)*100;e.style.backgroundSize=`${t}% 100%`}}),[C,s,n]),t("div",{className:"w-full",children:[t("div",{className:"mb-2 flex items-center justify-between",children:[e("label",{htmlFor:y,className:"text-sm font-medium "+(p?"text-gray-400 dark:text-gray-400":""),children:N}),t("div",{className:"flex items-center gap-2",children:[e("output",{htmlFor:y,className:"select-none text-sm font-medium "+(p?"text-gray-400 dark:text-gray-400":""),"aria-live":"polite",children:C.toFixed(k).replace("-0.00","0.00")}),u&&t("div",{className:"flex items-center gap-1",children:[e("button",{type:"button",onClick:z,className:"rounded-md p-1 transition-colors "+(p?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Decrease ${a}`,disabled:p,children:e(Y,{size:16})}),e("button",{type:"button",onClick:S,className:"rounded-md p-1 transition-colors "+(p?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Increase ${a}`,disabled:p,children:e(Q,{size:16})})]})]})]}),t("div",{className:"relative w-full",children:[e("input",{ref:b,type:"range",id:y,min:s,max:n,step:l,value:C,onChange:M,onKeyDown:R,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),className:"slider-thumb h-2 w-full appearance-none rounded-lg bg-gradient-to-r from-gray-500 to-gray-500 bg-no-repeat focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 "+(p?"cursor-not-allowed opacity-50":"cursor-pointer"),tabIndex:0,style:{backgroundSize:"50% 100%",backgroundPosition:"left"},"aria-valuemin":s,"aria-valuemax":n,"aria-valuenow":C,"aria-valuetext":`${C.toFixed(k).replace("-0.00","0.00")}`,disabled:p}),v?t("div",{className:"trab mt-1 flex justify-between",children:[e("span",{className:"text-xs text-gray-500",children:s}),e("span",{className:"text-xs text-gray-500",children:n})]}):e("div",{className:"mt-1",style:{height:"1rem"}})]})]})}));var Dn=f((function({selectedValue:r,displayValue:s,items:n,setValue:l,ariaLabel:m,searchPlaceholder:h,selectPlaceholder:u,containerClassName:f,isCollapsed:p,SelectIcon:g,showCarat:C,className:w,disabled:v,iconClassName:x,iconSide:b="left",selectId:y}){const[N,k]=c(""),L=i(null),[S,z]=c(null),R=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),V=M.useComboboxStore({defaultItems:n.map(R),resetValueOnHide:!0,value:N,setValue:k}),I=M.useSelectStore({combobox:V,defaultItems:n.map(R),value:r,setValue:l}),H=d((()=>he(n,N,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1}).map(R)),[N,n]);o((()=>{L.current&&!p&&z(L.current.offsetWidth)}),[p]);const T=Ge("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",x),O=Ge("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",x);return t("div",{className:Ge("flex w-full items-center justify-center px-1",f),children:[e(M.SelectLabel,{store:I,className:"sr-only",children:m}),t(M.Select,{ref:L,store:I,id:y,disabled:v,className:Ge("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",p?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",w),children:[null!=g&&"left"===b&&e("div",{className:T,children:g}),!p&&t(a,{children:[e("span",{className:"flex-grow truncate text-left",children:null!=s?s||u:r||u}),null!=g&&"right"===b&&e("div",{className:T,children:g}),C&&e(re,{className:"h-4 w-4 text-text-secondary"})]})]}),t(M.SelectPopover,{store:I,gutter:4,portal:!0,className:Ge("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:p?"300px":S??"300px"},children:[e("div",{className:"py-1.5",children:t("div",{className:"relative",children:[e(X,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e(M.Combobox,{store:V,autoSelect:!0,placeholder:h,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e("div",{className:"max-h-[300px] overflow-auto",children:e(M.ComboboxList,{store:V,children:e(_e,{store:I,items:H,itemSize:36,overscan:5,children:({value:a,icon:r,label:s,...n})=>t(M.ComboboxItem,{...n,className:Ge("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e(M.SelectItem,{value:a}),children:[null!=r&&"left"===b&&e("div",{className:O,children:r}),e("span",{className:"flex-grow truncate text-left",children:s}),null!=r&&"right"===b&&e("div",{className:O,children:r})]},n.id)})})})]})]})}));const Zn=n(((a,r)=>{const s=na(),{title:n,main:i,buttons:o,selection:l,className:c,leftButtons:d,description:m="",mainClassName:h,headerClassName:u,footerClassName:f,showCloseButton:p,overlayClassName:g,showCancelButton:C=!0}=a,{selectHandler:w,selectClasses:v,selectText:x,isLoading:b}=l||{};return t(Ha,{overlayClassName:g,showCloseButton:p,ref:r,className:Ge("w-11/12 border-none bg-background text-foreground",c??""),onClick:e=>e.stopPropagation(),children:[t(Ta,{className:Ge(u??""),children:[e(Ba,{children:n}),m&&e(ja,{className:"items-center justify-center",children:m})]}),e("div",{className:Ge("px-0 py-2",h),children:null!=i?i:null}),t(Oa,{className:f,children:[e("div",{children:null!=d?e("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:d}):null}),t("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[C&&e(Va,{asChild:!0,children:e(bt,{variant:"outline",children:s("com_ui_cancel")})}),null!=o?o:null,l?e(Va,{onClick:w,disabled:b,className:`${v??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===b?e(ls,{className:"size-4 text-white"}):x}):null]})]})]})})),En=r.forwardRef((({className:a,options:s,onSelect:n,...i},o)=>{const[l,c]=r.useState(!1),[d,m]=r.useState(i.value||""),[h,u]=r.useState(-1),f=r.useRef(null),p=e=>{m(e),c(!1),u(-1),n&&n(e),i.onChange&&i.onChange({target:{value:e}})};return r.useEffect((()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&(c(!1),u(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),t("div",{className:"relative",ref:f,children:[t("div",{className:"relative",children:[e(ka,{...i,value:d,onChange:e=>{m(e.target.value),i.onChange&&i.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),l?u((e=>e<s.length-1?e+1:e)):c(!0);break;case"ArrowUp":e.preventDefault(),u((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),l&&-1!==h&&p(s[h]),c(!1);break;case"Escape":c(!1),u(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:Ge("bg-surface-secondary",a??""),ref:o}),e("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>c(!l),"aria-label":l?"Close dropdown":"Open dropdown",children:e("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),l&&e("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:s.map(((t,a)=>e("li",{role:"option","aria-selected":a===h,className:Ge("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",a===h?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>p(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t))},tabIndex:0,children:t},a)))})]})}));En.displayName="InputWithDropdown";const Pn=l({showToast:()=>({})});function An(){return p(Pn)}function Wn({children:t}){const{showToast:a}=ra();return e(Pn.Provider,{value:{showToast:a},children:t})}export{qe as Accordion,Je as AccordionContent,Ye as AccordionItem,Xe as AccordionTrigger,at as AlertDialog,mt as AlertDialogAction,ht as AlertDialogCancel,it as AlertDialogContent,dt as AlertDialogDescription,lt as AlertDialogFooter,ot as AlertDialogHeader,ct as AlertDialogTitle,rt as AlertDialogTrigger,Qr as AnimatedSearchInput,tt as AnimatedTabs,Ss as AnthropicIcon,Fs as AnthropicMinimalIcon,Ls as AppleIcon,es as ArchiveIcon,en as AssistantIcon,ps as AttachmentIcon,Bs as AzureMinimalIcon,Mr as Badge,nn as BedrockIcon,Qs as BirthdayIcon,ts as Blocks,ut as Breadcrumb,vt as BreadcrumbEllipsis,pt as BreadcrumbItem,gt as BreadcrumbLink,ft as BreadcrumbList,Ct as BreadcrumbPage,wt as BreadcrumbSeparator,bt as Button,Ds as ChatGPTMinimalIcon,ds as CheckMark,yt as Checkbox,Tn as CheckboxButton,sn as CircleHelpIcon,cs as Clipboard,Ps as CodeyIcon,Ir as Combobox,vs as ContinueIcon,Dn as ControlCombobox,ms as CrossIcon,us as CustomMinimalIcon,ns as DataIcon,wn as DataTable,Zt as DataTableColumnHeader,Vn as DelayedRender,ca as Dialog,va as DialogButton,wa as DialogClose,ua as DialogContent,Ca as DialogDescription,pa as DialogFooter,fa as DialogHeader,Ia as DialogOverlay,On as DialogTemplate,ga as DialogTitle,da as DialogTrigger,ks as DiscordIcon,Vs as DotsIcon,Or as Dropdown,Nt as DropdownMenu,Tt as DropdownMenuCheckboxItem,It as DropdownMenuContent,Lt as DropdownMenuGroup,Ht as DropdownMenuItem,Bt as DropdownMenuLabel,Mt as DropdownMenuPortal,zt as DropdownMenuRadioGroup,Ot as DropdownMenuRadioItem,jt as DropdownMenuSeparator,Dt as DropdownMenuShortcut,St as DropdownMenuSub,Vt as DropdownMenuSubContent,Rt as DropdownMenuSubTrigger,kt as DropdownMenuTrigger,zn as DropdownPopup,Ut as ESide,ss as EditIcon,Xs as ExperimentIcon,bs as FacebookIcon,Ln as FileUpload,vn as FormInput,rs as GPTIcon,Is as GearIcon,As as GeminiIcon,Ns as GithubIcon,xs as GoogleIcon,Js as GoogleIconChat,Ws as GoogleMinimalIcon,xa as HoverCard,Na as HoverCardContent,ya as HoverCardPortal,ba as HoverCardTrigger,$t as IconContext,ka as Input,Pa as InputCombobox,La as InputNumber,pr as InputOTP,gr as InputOTPGroup,wr as InputOTPSeparator,Cr as InputOTPSlot,En as InputWithDropdown,Ma as Label,fs as LightningIcon,Rs as LinkIcon,$s as ListeningIcon,qs as LockIcon,hs as LogOutIcon,mn as MCPIcon,gs as MessagesSquared,Os as MinimalPlugin,os as MobileSidebar,jn as ModelParameters,Sn as MultiSelect,Ys as NewChatIcon,Kt as NotificationSeverity,Sa as OGDialog,Va as OGDialogClose,Ha as OGDialogContent,ja as OGDialogDescription,Oa as OGDialogFooter,Ta as OGDialogHeader,Ia as OGDialogOverlay,Ra as OGDialogPortal,Zn as OGDialogTemplate,Ba as OGDialogTitle,za as OGDialogTrigger,js as OpenAIMinimalIcon,ys as OpenIDIcon,Es as PaLMIcon,Zs as PaLMinimalIcon,or as Pagination,lr as PaginationContent,ur as PaginationEllipsis,cr as PaginationItem,dr as PaginationLink,hr as PaginationNext,mr as PaginationPrevious,_t as Panel,dn as PersonalizationIcon,Hs as PinIcon,kn as PixelCard,as as Plugin,fr as Progress,Et as PromptsEditorMode,Da as QuestionMark,ws as RegenerateIcon,kr as ResizableHandle,Lr as ResizableHandleAlt,Nr as ResizablePanel,yr as ResizablePanelGroup,Pt as STTEndpoints,Ms as SamlIcon,rn as SaveIcon,Bn as SelectDropDown,zs as SendIcon,Us as SendMessageIcon,Ea as Separator,is as Sidebar,Aa as Skeleton,Za as Slider,tn as Sparkles,an as SpeechIcon,ls as Spinner,jr as SplitText,un as SquirclePlusIcon,Cs as StopGeneratingIcon,Wa as Switch,At as TTSEndpoints,Fa as Table,_a as TableBody,Ya as TableCaption,qa as TableCell,Ga as TableFooter,Ka as TableHead,$a as TableHeader,Ua as TableRow,Xa as Tabs,er as TabsContent,Ja as TabsList,Qa as TabsTrigger,ar as Tag,rr as Textarea,sr as TextareaAutosize,ta as ThemeContext,aa as ThemeProvider,Hn as ThemeSelector,ln as ThumbDownIcon,on as ThumbUpIcon,nr as Toast,Pn as ToastContext,Wn as ToastProvider,ir as TooltipAnchor,Ts as TrashIcon,Ks as UserIcon,hn as VectorIcon,_s as VolumeIcon,Gs as VolumeMuteIcon,cn as XAIcon,Ue as applyFontSize,xt as buttonVariants,Yt as chatDirectionAtom,Ge as cn,Gt as defaultDebouncedDelay,Xt as fontSizeAtom,Ke as getInitialTheme,Ft as globalAudioId,ea as isDark,qt as langAtom,Wt as mainTextareaId,Jt as toastState,sa as useCombobox,oa as useDelayedRender,na as useLocalize,ia as useMediaQuery,br as useMultiSearch,la as useOnClickOutside,ra as useToast,An as useToastContext};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{createContext as i,useMemo as a,createElement as s,useContext as l,useCallback as c,forwardRef as u,Children as d,isValidElement as f,cloneElement as p,Fragment as h,useRef as m,useEffect as g,useState as v,useLayoutEffect as b,useReducer as w,createRef as y,useId as x,useInsertionEffect as C,Component as S,useImperativeHandle as k,startTransition as E,memo as P,useSyncExternalStore as N}from"react";import*as R from"react-dom";import M,{flushSync as A,createPortal as I,unstable_batchedUpdates as T}from"react-dom";import{atom as O,useSetAtom as L,useAtom as D,useAtomValue as F}from"jotai";import{useTranslation as _}from"react-i18next";function V(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}function j(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>i(e)));return function(n){const r=(null==n?void 0:n[e])||t;return a((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=i(r),c=n.length;function u(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][c])||o,u=a((()=>i),Object.values(i));return s(l.Provider,{value:u},r)}return n=[...n,r],u.displayName=t+"Provider",[u,function(n,i){const a=(null==i?void 0:i[e][c])||o,s=l(a);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},H(r,...t)]}function H(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function B(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function $(...e){return c(B(...e),e)}V('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e3e3e3; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.invisible {\n visibility: hidden;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.-inset-8 {\n top: -2rem;\n right: -2rem;\n bottom: -2rem;\n left: -2rem;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.-right-1 {\n right: -0.25rem;\n}\n.-top-1 {\n top: -0.25rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-full {\n bottom: 100%;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-2 {\n left: 0.5rem;\n}\n.left-3 {\n left: 0.75rem;\n}\n.left-\\[50\\%\\] {\n left: 50%;\n}\n.right-0 {\n right: 0px;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-4 {\n right: 1rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-4 {\n top: 1rem;\n}\n.top-\\[1\\.6rem\\] {\n top: 1.6rem;\n}\n.top-\\[50\\%\\] {\n top: 50%;\n}\n.top-full {\n top: 100%;\n}\n.isolate {\n isolation: isolate;\n}\n.-z-10 {\n z-index: -10;\n}\n.-z-20 {\n z-index: -20;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.z-50 {\n z-index: 50;\n}\n.z-\\[1001\\] {\n z-index: 1001;\n}\n.z-\\[999\\] {\n z-index: 999;\n}\n.m-1 {\n margin: 0.25rem;\n}\n.m-4 {\n margin: 1rem;\n}\n.m-\\[1\\.5px\\] {\n margin: 1.5px;\n}\n.m-auto {\n margin: auto;\n}\n.-mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.-ml-3 {\n margin-left: -0.75rem;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-8 {\n margin-right: 2rem;\n}\n.mr-auto {\n margin-right: auto;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-3 {\n margin-top: 0.75rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.\\!table {\n display: table !important;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.size-9 {\n width: 2.25rem;\n height: 2.25rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-2\\.5 {\n height: 0.625rem;\n}\n.h-2\\/3 {\n height: 66.666667%;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3 {\n height: 0.75rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[calc\\(100vh-20rem\\)\\] {\n height: calc(100vh - 20rem);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-px {\n height: 1px;\n}\n.max-h-10 {\n max-height: 2.5rem;\n}\n.max-h-5 {\n max-height: 1.25rem;\n}\n.max-h-60 {\n max-height: 15rem;\n}\n.max-h-8 {\n max-height: 2rem;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[300px\\] {\n max-height: 300px;\n}\n.max-h-\\[52vh\\] {\n max-height: 52vh;\n}\n.max-h-\\[80vh\\] {\n max-height: 80vh;\n}\n.w-0 {\n width: 0px;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-11 {\n width: 2.75rem;\n}\n.w-11\\/12 {\n width: 91.666667%;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-2\\/3 {\n width: 66.666667%;\n}\n.w-3 {\n width: 0.75rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-64 {\n width: 16rem;\n}\n.w-9 {\n width: 2.25rem;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-px {\n width: 1px;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-\\[100px\\] {\n min-width: 100px;\n}\n.min-w-\\[300px\\] {\n min-width: 300px;\n}\n.min-w-\\[40px\\] {\n min-width: 40px;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-0 {\n max-width: 0px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.flex-grow {\n flex-grow: 1;\n}\n.flex-grow-0 {\n flex-grow: 0;\n}\n.grow {\n flex-grow: 1;\n}\n.table-fixed {\n table-layout: fixed;\n}\n.caption-bottom {\n caption-side: bottom;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: 0px 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.origin-\\[--radix-hover-card-content-transform-origin\\] {\n transform-origin: var(--radix-hover-card-content-transform-origin);\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-rotate-180 {\n --tw-rotate: -180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(-180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(0deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-0 {\n --tw-scale-x: 0;\n --tw-scale-y: 0;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes ping {\n\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n.animate-ping {\n animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n}\n@keyframes pulse {\n\n 50% {\n opacity: .5;\n }\n}\n.animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-move {\n cursor: move;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.scroll-m-1 {\n scroll-margin: 0.25rem;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-col-reverse {\n flex-direction: column-reverse;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.place-items-center {\n align-items: center;\n justify-items: center;\n place-items: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * (1 - 0));\n margin-top: calc(0.375rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.375rem * calc(1 - 0));\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * 0);\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.space-y-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * (1 - 0));\n margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * calc(1 - 0));\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * 0);\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.overscroll-contain {\n overscroll-behavior: contain;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n word-wrap: break-word;\n}\n.break-all {\n word-break: break-all;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-\\[0\\.185rem\\] {\n border-radius: 0.185rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n}\n.rounded-md {\n border-radius: calc(0.5rem - 2px);\n border-radius: calc(var(--radius) - 2px);\n}\n.rounded-sm {\n border-radius: calc(0.5rem - 4px);\n border-radius: calc(var(--radius) - 4px);\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.rounded-b-lg {\n border-bottom-right-radius: 0.5rem;\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: 0.5rem;\n border-bottom-left-radius: var(--radius);\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-none {\n border-style: none;\n}\n.border-black\\/10 {\n border-color: rgba(0, 0, 0, 0.1);\n}\n.border-border-heavy {\n border-color: #999696;\n border-color: var(--border-heavy);\n}\n.border-border-light {\n border-color: #e3e3e3;\n border-color: var(--border-light);\n}\n.border-border-medium {\n border-color: #cdcdcd;\n border-color: var(--border-medium);\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgba(236, 236, 236, 1);\n border-color: rgba(236, 236, 236, var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgba(227, 227, 227, 1);\n border-color: rgba(227, 227, 227, var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.border-gray-50 {\n --tw-border-opacity: 1;\n border-color: rgba(247, 247, 248, 1);\n border-color: rgba(247, 247, 248, var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgba(89, 89, 89, 1);\n border-color: rgba(89, 89, 89, var(--tw-border-opacity, 1));\n}\n.border-green-500 {\n --tw-border-opacity: 1;\n border-color: rgba(16, 163, 127, 1);\n border-color: rgba(16, 163, 127, var(--tw-border-opacity, 1));\n}\n.border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgba(18, 110, 107, 1);\n border-color: rgba(18, 110, 107, var(--tw-border-opacity, 1));\n}\n.border-input {\n border-color: hsl(0, 0%, 89.8%);\n border-color: hsl(var(--input));\n}\n.border-orange-500 {\n --tw-border-opacity: 1;\n border-color: rgba(249, 115, 22, 1);\n border-color: rgba(249, 115, 22, var(--tw-border-opacity, 1));\n}\n.border-primary {\n border-color: hsl(0, 0%, 9%);\n border-color: hsl(var(--primary));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgba(239, 68, 68, 1);\n border-color: rgba(239, 68, 68, var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-background {\n background-color: hsl(0, 0%, 100%);\n background-color: hsl(var(--background));\n}\n.bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(59, 130, 246, 1);\n background-color: rgba(59, 130, 246, var(--tw-bg-opacity, 1));\n}\n.bg-blue-500\\/60 {\n background-color: rgba(59, 130, 246, 0.6);\n}\n.bg-border {\n background-color: hsl(0, 0%, 89.8%);\n background-color: hsl(var(--border));\n}\n.bg-border-light {\n background-color: #e3e3e3;\n background-color: var(--border-light);\n}\n.bg-border-medium {\n background-color: #cdcdcd;\n background-color: var(--border-medium);\n}\n.bg-foreground {\n background-color: hsl(0, 0%, 3.9%);\n background-color: hsl(var(--foreground));\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(89, 89, 89, 1);\n background-color: rgba(89, 89, 89, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500\\/90 {\n background-color: rgba(89, 89, 89, 0.9);\n}\n.bg-gray-600\\/65 {\n background-color: rgba(66, 66, 66, 0.65);\n}\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(16, 163, 127, 1);\n background-color: rgba(16, 163, 127, var(--tw-bg-opacity, 1));\n}\n.bg-green-600\\/20 {\n background-color: rgba(18, 110, 107, 0.2);\n}\n.bg-green-600\\/50 {\n background-color: rgba(18, 110, 107, 0.5);\n}\n.bg-muted {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.bg-muted\\/50 {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 115, 22, 1);\n background-color: rgba(249, 115, 22, var(--tw-bg-opacity, 1));\n}\n.bg-primary {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.bg-primary\\/20 {\n background-color: hsla(0, 0%, 9%, 0.2);\n background-color: hsl(var(--primary) / 0.2);\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(239, 68, 68, 1);\n background-color: rgba(239, 68, 68, var(--tw-bg-opacity, 1));\n}\n.bg-secondary {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--secondary));\n}\n.bg-surface-active {\n background-color: #ececec;\n background-color: var(--surface-active);\n}\n.bg-surface-chat {\n background-color: #fff;\n background-color: var(--surface-chat);\n}\n.bg-surface-destructive {\n background-color: #b91c1c;\n background-color: var(--surface-destructive);\n}\n.bg-surface-primary {\n background-color: #fff;\n background-color: var(--surface-primary);\n}\n.bg-surface-secondary {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.bg-surface-secondary-alt {\n background-color: #e3e3e3;\n background-color: var(--surface-secondary-alt);\n}\n.bg-surface-submit {\n background-color: #047857;\n background-color: var(--surface-submit);\n}\n.bg-surface-tertiary {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.bg-white\\/10 {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.bg-gradient-to-r {\n background-image: linear-gradient(to right, var(--tw-gradient-stops));\n}\n.from-blue-500\\/10 {\n --tw-gradient-from: rgba(59, 130, 246, 0.1) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-blue-500\\/20 {\n --tw-gradient-from: rgba(59, 130, 246, 0.2) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-gray-500 {\n --tw-gradient-from: #595959 var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(89, 89, 89, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-purple-500\\/5 {\n --tw-gradient-from: rgba(168, 85, 247, 0.05) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-surface-tertiary-alt {\n --tw-gradient-from: var(--surface-tertiary-alt) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-65\\% {\n --tw-gradient-from-position: 65%;\n}\n.via-blue-500\\/5 {\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(59, 130, 246, 0.05) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/10 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/20 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.to-blue-500\\/10 {\n --tw-gradient-to: rgba(59, 130, 246, 0.1) var(--tw-gradient-to-position);\n}\n.to-blue-500\\/20 {\n --tw-gradient-to: rgba(59, 130, 246, 0.2) var(--tw-gradient-to-position);\n}\n.to-gray-500 {\n --tw-gradient-to: #595959 var(--tw-gradient-to-position);\n}\n.to-purple-500\\/5 {\n --tw-gradient-to: rgba(168, 85, 247, 0.05) var(--tw-gradient-to-position);\n}\n.to-transparent {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n.bg-no-repeat {\n background-repeat: no-repeat;\n}\n.fill-current {\n fill: currentColor;\n}\n.stroke-1 {\n stroke-width: 1;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-1\\.5 {\n padding: 0.375rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-3 {\n padding: 0.75rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-2\\.5 {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n.py-3\\.5 {\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-2\\.5 {\n padding-left: 0.625rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pl-8 {\n padding-left: 2rem;\n}\n.pl-9 {\n padding-left: 2.25rem;\n}\n.pr-10 {\n padding-right: 2.5rem;\n}\n.pr-2 {\n padding-right: 0.5rem;\n}\n.pr-2\\.5 {\n padding-right: 0.625rem;\n}\n.pr-3 {\n padding-right: 0.75rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pr-9 {\n padding-right: 2.25rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-sans {\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-\\[0\\.5rem\\] {\n font-size: 0.5rem;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.text-black\\/50 {\n color: rgba(0, 0, 0, 0.5);\n}\n.text-blue-400 {\n --tw-text-opacity: 1;\n color: rgba(96, 165, 250, 1);\n color: rgba(96, 165, 250, var(--tw-text-opacity, 1));\n}\n.text-destructive-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--destructive-foreground));\n}\n.text-foreground {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgba(66, 66, 66, 1);\n color: rgba(66, 66, 66, var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgba(47, 47, 47, 1);\n color: rgba(47, 47, 47, var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgba(18, 110, 107, 1);\n color: rgba(18, 110, 107, var(--tw-text-opacity, 1));\n}\n.text-muted-foreground {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.text-muted-foreground\\/70 {\n color: hsla(0, 0%, 45.1%, 0.7);\n color: hsl(var(--muted-foreground) / 0.7);\n}\n.text-primary {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--primary));\n}\n.text-primary-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.text-red-400 {\n --tw-text-opacity: 1;\n color: rgba(248, 113, 113, 1);\n color: rgba(248, 113, 113, var(--tw-text-opacity, 1));\n}\n.text-secondary {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.text-secondary-foreground {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--secondary-foreground));\n}\n.text-text-primary {\n color: #212121;\n color: var(--text-primary);\n}\n.text-text-secondary {\n color: #424242;\n color: var(--text-secondary);\n}\n.text-text-secondary-alt {\n color: #595959;\n color: var(--text-secondary-alt);\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.underline {\n text-decoration-line: underline;\n}\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n.placeholder-text-secondary::-moz-placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.placeholder-text-secondary::placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-75 {\n opacity: 0.75;\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-black\\/10 {\n --tw-ring-color: rgba(0, 0, 0, 0.1);\n}\n.ring-ring {\n --tw-ring-color: hsl(var(--ring));\n}\n.ring-ring-primary {\n --tw-ring-color: var(--ring-primary);\n}\n.ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.blur {\n --tw-blur: blur(8px);\n filter: blur(8px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-none {\n --tw-blur: ;\n filter: var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-sm {\n --tw-blur: blur(4px);\n filter: blur(4px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.blur-xl {\n --tw-blur: blur(24px);\n filter: blur(24px) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: blur(4px) 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);\n -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);\n backdrop-filter: blur(4px) 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);\n 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);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-1000 {\n transition-duration: 1000ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-500 {\n transition-duration: 500ms;\n}\n.duration-700 {\n transition-duration: 700ms;\n}\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.will-change-transform {\n will-change: transform;\n}\n@keyframes enter {\n\n from {\n opacity: 1;\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n 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));\n }\n}\n@keyframes exit {\n\n to {\n opacity: 1;\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n 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));\n }\n}\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.fade-in {\n --tw-enter-opacity: 0;\n}\n.fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.fade-in-90 {\n --tw-enter-opacity: 0.9;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.slide-in-from-bottom-10 {\n --tw-enter-translate-y: 2.5rem;\n}\n.slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.duration-100 {\n animation-duration: 100ms;\n}\n.duration-1000 {\n animation-duration: 1000ms;\n}\n.duration-200 {\n animation-duration: 200ms;\n}\n.duration-300 {\n animation-duration: 300ms;\n}\n.duration-500 {\n animation-duration: 500ms;\n}\n.duration-700 {\n animation-duration: 700ms;\n}\n.ease-in {\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n/* Custom Variables */\n:root {\n --white: #fff;\n --black: #000;\n --gray-20: #ececf1;\n --gray-50: #f7f7f8;\n --gray-100: #ececec;\n --gray-200: #e3e3e3;\n --gray-300: #cdcdcd;\n --gray-400: #999696;\n --gray-500: #595959;\n --gray-600: #424242;\n --gray-700: #2f2f2f;\n --gray-800: #212121;\n --gray-850: #171717;\n --gray-900: #0d0d0d;\n --green-50: #ecfdf5;\n --green-100: #d1fae5;\n --green-200: #a7f3d0;\n --green-300: #6ee7b7;\n --green-400: #34d399;\n --green-500: #10b981;\n --green-600: #059669;\n --green-700: #047857;\n --green-800: #065f46;\n --green-900: #064e3b;\n --green-950: #022c22;\n --red-50: #fef2f2;\n --red-100: #fee2e2;\n --red-200: #fecaca;\n --red-300: #fca5a5;\n --red-400: #f87171;\n --red-500: #ef4444;\n --red-600: #dc2626;\n --red-700: #b91c1c;\n --red-800: #991b1b;\n --red-900: #7f1d1d;\n --red-950: #450a0a;\n --amber-50: #fffbeb;\n --amber-100: #fef3c7;\n --amber-200: #fde68a;\n --amber-300: #fcd34d;\n --amber-400: #fbbf24;\n --amber-500: #f59e0b;\n --amber-600: #d97706;\n --amber-700: #b45309;\n --amber-800: #92400e;\n --amber-900: #78350f;\n --amber-950: #451a03;\n}\nhtml {\n --presentation: var(--white);\n --text-primary: var(--gray-800);\n --text-secondary: var(--gray-600);\n --text-secondary-alt: var(--gray-500);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --ring-primary: var(--gray-500);\n --header-primary: var(--white);\n --header-hover: var(--gray-50);\n --header-button-hover: var(--gray-50);\n --surface-active: var(--gray-100);\n --surface-active-alt: var(--gray-200);\n --surface-hover: var(--gray-200);\n --surface-hover-alt: var(--gray-300);\n --surface-primary: var(--white);\n --surface-primary-alt: var(--gray-50);\n --surface-primary-contrast: var(--gray-100);\n --surface-secondary: var(--gray-50);\n --surface-secondary-alt: var(--gray-200);\n --surface-tertiary: var(--gray-100);\n --surface-tertiary-alt: var(--white);\n --surface-dialog: var(--white);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-700);\n --surface-destructive-hover: var(--red-800);\n --surface-chat: var(--white);\n --border-light: var(--gray-200);\n --border-medium-alt: var(--gray-300);\n --border-medium: var(--gray-300);\n --border-heavy: var(--gray-400);\n --border-xheavy: var(--gray-500);\n\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n --switch-unchecked: 0 0% 58%;\n}\n.dark {\n --presentation: var(--gray-800);\n --text-primary: var(--gray-100);\n --text-secondary: var(--gray-300);\n --text-secondary-alt: var(--gray-400);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --header-primary: var(--gray-700);\n --header-hover: var(--gray-600);\n --header-button-hover: var(--gray-700);\n --surface-active: var(--gray-500);\n --surface-active-alt: var(--gray-700);\n --surface-hover: var(--gray-600);\n --surface-hover-alt: var(--gray-600);\n --surface-primary: var(--gray-900);\n --surface-primary-alt: var(--gray-850);\n --surface-primary-contrast: var(--gray-850);\n --surface-secondary: var(--gray-800);\n --surface-secondary-alt: var(--gray-800);\n --surface-tertiary: var(--gray-700);\n --surface-tertiary-alt: var(--gray-700);\n --surface-dialog: var(--gray-850);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-800);\n --surface-destructive-hover: var(--red-900);\n --surface-chat: var(--gray-700);\n --border-light: var(--gray-700);\n --border-medium-alt: var(--gray-600);\n --border-medium: var(--gray-600);\n --border-heavy: var(--gray-500);\n --border-xheavy: var(--gray-400);\n\n --background: 0 0% 7%;\n --foreground: 0 0% 98%;\n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 40.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n --switch-unchecked: 0 0% 40%;\n}\n.placeholder\\:text-gray-400::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-muted-foreground::-moz-placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.placeholder\\:text-muted-foreground::placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n.after\\:inset-y-0::after {\n content: var(--tw-content);\n top: 0px;\n bottom: 0px;\n}\n.after\\:left-1\\/2::after {\n content: var(--tw-content);\n left: 50%;\n}\n.after\\:w-1::after {\n content: var(--tw-content);\n width: 0.25rem;\n}\n.after\\:-translate-x-1\\/2::after {\n content: var(--tw-content);\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.first\\:rounded-l-xl:first-child {\n border-top-left-radius: 0.75rem;\n border-bottom-left-radius: 0.75rem;\n}\n.first\\:border-l:first-child {\n border-left-width: 1px;\n}\n.last\\:rounded-r-xl:last-child {\n border-top-right-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n.hover\\:cursor-pointer:hover {\n cursor: pointer;\n}\n.hover\\:bg-accent:hover {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.hover\\:bg-black\\/\\[0\\.075\\]:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-100\\/50:hover {\n background-color: rgba(236, 236, 236, 0.5);\n}\n.hover\\:bg-gray-20:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 241, 1);\n background-color: rgba(236, 236, 241, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-muted\\/50:hover {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.hover\\:bg-primary\\/90:hover {\n background-color: hsla(0, 0%, 9%, 0.9);\n background-color: hsl(var(--primary) / 0.9);\n}\n.hover\\:bg-secondary\\/80:hover {\n background-color: hsla(0, 0%, 96.1%, 0.8);\n background-color: hsl(var(--secondary) / 0.8);\n}\n.hover\\:bg-surface-destructive-hover:hover {\n background-color: #991b1b;\n background-color: var(--surface-destructive-hover);\n}\n.hover\\:bg-surface-hover:hover {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.hover\\:bg-surface-secondary:hover {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.hover\\:bg-surface-submit-hover:hover {\n background-color: #065f46;\n background-color: var(--surface-submit-hover);\n}\n.hover\\:bg-surface-tertiary:hover {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.hover\\:bg-transparent:hover {\n background-color: transparent;\n}\n.hover\\:text-accent-foreground:hover {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.hover\\:text-foreground:hover {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.hover\\:text-secondary:hover {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.hover\\:text-text-primary:hover {\n color: #212121;\n color: var(--text-primary);\n}\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n.hover\\:shadow-md:hover {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.hover\\:shadow-sm:hover {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.focus\\:bg-accent:focus {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.focus\\:bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.focus\\:bg-surface-hover:focus {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.focus\\:bg-surface-tertiary:focus {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.focus\\:bg-gradient-to-b:focus {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.focus\\:from-surface-primary:focus {\n --tw-gradient-from: var(--surface-primary) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.focus\\:text-accent-foreground:focus {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:ring-0:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-inset:focus {\n --tw-ring-inset: inset;\n}\n.focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.focus\\:ring-gray-700\\/10:focus {\n --tw-ring-color: rgba(47, 47, 47, 0.1);\n}\n.focus\\:ring-ring:focus {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus\\:ring-ring-primary:focus {\n --tw-ring-color: var(--ring-primary);\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-gray-500:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(89, 89, 89, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus-visible\\:ring-ring-primary:focus-visible {\n --tw-ring-color: var(--ring-primary);\n}\n.focus-visible\\:ring-white:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-opacity-75:focus-visible {\n --tw-ring-opacity: 0.75;\n}\n.focus-visible\\:ring-offset-1:focus-visible {\n --tw-ring-offset-width: 1px;\n}\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.active\\:scale-95:active {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(.95) scaleY(.95);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:shadow-inner:active {\n --tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:bg-white:disabled {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n.disabled\\:opacity-80:disabled {\n opacity: 0.8;\n}\n.group:hover .group-hover\\:visible {\n visibility: visible;\n}\n.group:hover .group-hover\\:inline {\n display: inline;\n}\n.group:hover .group-hover\\:hidden {\n display: none;\n}\n.group:focus .group-focus\\:inline {\n display: inline;\n}\n.group:active .group-active\\:visible {\n visibility: visible;\n}\n.peer:focus ~ .peer-focus\\:scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.peer:focus ~ .peer-focus\\:opacity-100 {\n opacity: 1;\n}\n.peer:disabled ~ .peer-disabled\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.peer:disabled ~ .peer-disabled\\:opacity-70 {\n opacity: 0.7;\n}\n.has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {\n opacity: 0.5;\n}\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"] {\n height: 1px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"] {\n width: 100%;\n}\n.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n --tw-translate-y: 0.25rem;\n transform: translate(var(--tw-translate-x), 0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {\n --tw-translate-x: -0.25rem;\n transform: translate(-0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {\n --tw-translate-x: 0.25rem;\n transform: translate(0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {\n --tw-translate-y: -0.25rem;\n transform: translate(var(--tw-translate-x), -0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:translate-x-5[data-state="checked"] {\n --tw-translate-x: 1.25rem;\n transform: translate(1.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes accordion-up {\n\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n}\n.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {\n animation: accordion-up 0.2s ease-out;\n}\n@keyframes accordion-down {\n\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n}\n.data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {\n animation: accordion-down 0.2s ease-out;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction="vertical"] {\n flex-direction: column;\n}\n.data-\\[active-item\\]\\:bg-black\\/\\[0\\.075\\][data-active-item] {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.data-\\[active-item\\]\\:bg-surface-tertiary[data-active-item] {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.data-\\[state\\=active\\]\\:bg-white[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.data-\\[state\\=open\\]\\:bg-gray-100[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.data-\\[state\\=unchecked\\]\\:bg-switch-unchecked[data-state="unchecked"] {\n background-color: hsl(0, 0%, 58%);\n background-color: hsl(var(--switch-unchecked));\n}\n.data-\\[active-item\\]\\:text-text-primary[data-active-item] {\n color: #212121;\n color: var(--text-primary);\n}\n.data-\\[state\\=active\\]\\:text-gray-800[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.data-\\[state\\=open\\]\\:animate-in[data-state="open"] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:fade-out[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-90[data-state="open"] {\n --tw-enter-opacity: 0.9;\n}\n.data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {\n --tw-enter-scale: .95;\n}\n.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {\n --tw-enter-translate-y: -0.5rem;\n}\n.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {\n --tw-enter-translate-x: 0.5rem;\n}\n.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {\n --tw-enter-translate-x: -0.5rem;\n}\n.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {\n --tw-enter-translate-y: 0.5rem;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-bottom-10[data-state="open"] {\n --tw-enter-translate-y: 2.5rem;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {\n --tw-enter-translate-y: -48%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n left: 0px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n height: 0.25rem;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n width: 100%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.dark\\:border-gray-300:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-600:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(66, 66, 66, 1);\n border-color: rgba(66, 66, 66, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-700:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(47, 47, 47, 1);\n border-color: rgba(47, 47, 47, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-800:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(33, 33, 33, 1);\n border-color: rgba(33, 33, 33, var(--tw-border-opacity, 1));\n}\n.dark\\:border-white\\/10:is(.dark *) {\n border-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:bg-black\\/80:is(.dark *) {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.dark\\:bg-gray-100:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-200:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-700:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-800:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-800\\/90:is(.dark *) {\n background-color: rgba(33, 33, 33, 0.9);\n}\n.dark\\:bg-gray-850:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(23, 23, 23, 1);\n background-color: rgba(23, 23, 23, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-900:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-white\\/5:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.dark\\:fill-white:is(.dark *) {\n fill: #fff;\n}\n.dark\\:text-black:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-100:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(236, 236, 236, 1);\n color: rgba(236, 236, 236, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-200:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-50:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(247, 247, 248, 1);\n color: rgba(247, 247, 248, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-500:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-800:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-900:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.dark\\:text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.dark\\:text-white\\/50:is(.dark *) {\n color: rgba(255, 255, 255, 0.5);\n}\n.dark\\:opacity-25:is(.dark *) {\n opacity: 0.25;\n}\n.dark\\:ring-white\\/20:is(.dark *) {\n --tw-ring-color: rgba(255, 255, 255, 0.2);\n}\n.dark\\:hover\\:bg-gray-100:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-200:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-600:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(66, 66, 66, 1);\n background-color: rgba(66, 66, 66, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-700:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-800:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-white\\/10:hover:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:focus\\:bg-gray-800:focus:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:focus\\:bg-gray-900:focus:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:focus\\:ring-gray-200\\/10:focus:is(.dark *) {\n --tw-ring-color: rgba(227, 227, 227, 0.1);\n}\n.dark\\:focus\\:ring-gray-400:focus:is(.dark *) {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.dark\\:focus\\:ring-white:focus:is(.dark *) {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.dark\\:focus\\:ring-offset-gray-700:focus:is(.dark *) {\n --tw-ring-offset-color: #2f2f2f;\n}\n.dark\\:focus\\:ring-offset-gray-900:focus:is(.dark *) {\n --tw-ring-offset-color: #0d0d0d;\n}\n.group:focus-within .dark\\:group-focus-within\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.group:hover .dark\\:group-hover\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark\\:data-\\[active-item\\]\\:bg-white\\/10[data-active-item]:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:data-\\[state\\=active\\]\\:bg-gray-700[data-state="active"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=open\\]\\:bg-gray-800[data-state="open"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state="open"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=active\\]\\:text-gray-200[data-state="active"]:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n@media not all and (min-width: 640px) {\n\n .max-sm\\:order-first {\n order: -9999;\n }\n\n .max-sm\\:w-full {\n width: 100%;\n }\n\n .max-sm\\:flex-col {\n flex-direction: column;\n }\n}\n@media (min-width: 640px) {\n\n .sm\\:order-none {\n order: 0;\n }\n\n .sm\\:mt-0 {\n margin-top: 0px;\n }\n\n .sm\\:size-4 {\n width: 1rem;\n height: 1rem;\n }\n\n .sm\\:flex-row {\n flex-direction: row;\n }\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:justify-end {\n justify-content: flex-end;\n }\n\n .sm\\:gap-2\\.5 {\n gap: 0.625rem;\n }\n\n .sm\\:gap-4 {\n gap: 1rem;\n }\n\n .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n }\n\n .sm\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .sm\\:pt-0 {\n padding-top: 0px;\n }\n\n .sm\\:text-left {\n text-align: left;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:zoom-in-90 {\n --tw-enter-scale: .9;\n }\n\n .sm\\:slide-in-from-bottom-0 {\n --tw-enter-translate-y: 0px;\n }\n}\n@media (min-width: 768px) {\n\n .md\\:m-0 {\n margin: 0px;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:inline {\n display: inline;\n }\n\n .md\\:h-4 {\n height: 1rem;\n }\n\n .md\\:h-5 {\n height: 1.25rem;\n }\n\n .md\\:w-4 {\n width: 1rem;\n }\n\n .md\\:w-5 {\n width: 1.25rem;\n }\n\n .md\\:w-\\[100\\%\\] {\n width: 100%;\n }\n\n .md\\:w-auto {\n width: auto;\n }\n\n .md\\:w-full {\n width: 100%;\n }\n\n .md\\:flex-col {\n flex-direction: column;\n }\n\n .md\\:gap-2 {\n gap: 0.5rem;\n }\n\n .md\\:p-3 {\n padding: 0.75rem;\n }\n\n .md\\:px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .md\\:text-justify {\n text-align: justify;\n }\n}\n.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n padding-right: 0px;\n}\n.\\[\\&\\>span\\]\\:line-clamp-1>span {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.\\[\\&\\>span\\]\\:flex>span {\n display: flex;\n}\n.\\[\\&\\>span\\]\\:w-auto>span {\n width: auto;\n}\n.\\[\\&\\>span\\]\\:w-full>span {\n width: 100%;\n}\n.\\[\\&\\>span\\]\\:items-center>span {\n align-items: center;\n}\n.\\[\\&\\>span\\]\\:gap-1>span {\n gap: 0.25rem;\n}\n.\\[\\&\\>span\\]\\:truncate>span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\[\\&\\>svg\\]\\:hidden>svg {\n display: none;\n}\n.\\[\\&\\>svg\\]\\:size-3\\.5>svg {\n width: 0.875rem;\n height: 0.875rem;\n}\n.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n border-bottom-width: 0px;\n}\n.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(90deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n.\\[\\&_svg\\]\\:text-foreground svg {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n border-width: 0px;\n}\n.\\[\\&_tr\\]\\:border-b tr {\n border-bottom-width: 1px;\n}\n');const W=u(((e,t)=>{const{children:n,...r}=e,o=d.toArray(n),i=o.find(G);if(i){const e=i.props.children,n=o.map((t=>t===i?d.count(e)>1?d.only(null):f(e)?e.props.children:null:t));return s(U,z({},r,{ref:t}),f(e)?p(e,void 0,n):null)}return s(U,z({},r,{ref:t}),n)}));W.displayName="Slot";const U=u(((e,t)=>{const{children:n,...r}=e;return f(n)?p(n,{...q(r,n.props),ref:t?B(t,n.ref):n.ref}):d.count(n)>1?d.only(null):null}));U.displayName="SlotClone";const K=({children:e})=>s(h,null,e);function G(e){return f(e)&&e.type===K}function q(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function X(e){const t=e+"CollectionProvider",[n,r]=j(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=$(t,a(s,n).collectionRef);return o.createElement(W,{ref:i},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,s=o.useRef(null),l=$(t,s),d=a(c,n);return o.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),o.createElement(W,{[u]:"",ref:l},r)}));return[{Provider:e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return o.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:l,ItemSlot:d},function(t){const n=a(e+"CollectionConsumer",t),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Z(e){const t=m(e);return g((()=>{t.current=e})),a((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Q({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=v(e),[r]=n,o=m(r),i=Z(t);return g((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Z(n);return[a,c((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const J=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=u(((e,n)=>{const{asChild:r,...o}=e,i=r?W:t;return g((()=>{window[Symbol.for("radix-ui")]=!0}),[]),s(i,z({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function ee(e,t){e&&A((()=>e.dispatchEvent(t)))}const te=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?b:()=>{};const ne=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=v(),r=m({}),o=m(e),i=m("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return w(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g((()=>{const e=re(r.current);i.current="mounted"===s?e:"none"}),[s]),te((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=re(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),te((()=>{if(t){const e=e=>{const n=re(r.current).includes(e.animationName);e.target===t&&n&&A((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=re(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):d.only(n),i=$(r.ref,o.ref);return"function"==typeof n||r.isPresent?p(o,{ref:i}):null};function re(e){return(null==e?void 0:e.animationName)||"none"}ne.displayName="Presence";const oe=r["useId".toString()]||(()=>{});let ie=0;function ae(e){const[t,n]=r.useState(oe());return te((()=>{n((e=>null!=e?e:String(ie++)))}),[e]),t?`radix-${t}`:""}const se="Collapsible",[le,ce]=j(se),[ue,de]=le(se),fe=u(((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[u=!1,d]=Q({prop:r,defaultProp:o,onChange:a});return s(ue,{scope:n,disabled:i,contentId:ae(),open:u,onOpenToggle:c((()=>d((e=>!e))),[d])},s(J.div,z({"data-state":ve(u),"data-disabled":i?"":void 0},l,{ref:t})))})),pe=u(((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=de("CollapsibleTrigger",n);return s(J.button,z({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ve(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:Y(e.onClick,o.onOpenToggle)}))})),he="CollapsibleContent",me=u(((e,t)=>{const{forceMount:n,...r}=e,o=de(he,e.__scopeCollapsible);return s(ne,{present:n||o.open},(({present:e})=>s(ge,z({},r,{ref:t,present:e}))))})),ge=u(((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=de(he,n),[l,c]=v(r),u=m(null),d=$(t,u),f=m(0),p=f.current,h=m(0),b=h.current,w=a.open||l,y=m(w),x=m();return g((()=>{const e=requestAnimationFrame((()=>y.current=!1));return()=>cancelAnimationFrame(e)}),[]),te((()=>{const e=u.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();f.current=t.height,h.current=t.width,y.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationName=x.current.animationName),c(r)}}),[a.open,r]),s(J.div,z({"data-state":ve(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!w},i,{ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style}}),w&&o)}));function ve(e){return e?"open":"closed"}const be=fe,we=pe,ye=me,xe=i(void 0);function Ce(e){const t=l(xe);return e||t||"ltr"}const Se="Accordion",ke=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ee,Pe,Ne]=X(Se),[Re,Me]=j(Se,[Ne,ce]),Ae=ce(),Ie=o.forwardRef(((e,t)=>{const{type:n,...r}=e,i=r,a=r;return o.createElement(Ee.Provider,{scope:e.__scopeAccordion},"multiple"===n?o.createElement(_e,z({},a,{ref:t})):o.createElement(Fe,z({},i,{ref:t})))}));Ie.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Te,Oe]=Re(Se),[Le,De]=Re(Se,{collapsible:!1}),Fe=o.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=(()=>{}),collapsible:a=!1,...s}=e,[l,c]=Q({prop:n,defaultProp:r,onChange:i});return o.createElement(Te,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:o.useCallback((()=>a&&c("")),[a,c])},o.createElement(Le,{scope:e.__scopeAccordion,collapsible:a},o.createElement(je,z({},s,{ref:t}))))})),_e=o.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=(()=>{}),...a}=e,[s=[],l]=Q({prop:n,defaultProp:r,onChange:i}),c=o.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),u=o.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return o.createElement(Te,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u},o.createElement(Le,{scope:e.__scopeAccordion,collapsible:!0},o.createElement(je,z({},a,{ref:t}))))})),[Ve,ze]=Re(Se),je=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...s}=e,l=$(o.useRef(null),t),c=Pe(n),u="ltr"===Ce(i),d=Y(e.onKeyDown,(e=>{var t;if(!ke.includes(e.key))return;const n=e.target,r=c().filter((e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)})),o=r.findIndex((e=>e.ref.current===n)),i=r.length;if(-1===o)return;e.preventDefault();let s=o;const l=i-1,d=()=>{s=o+1,s>l&&(s=0)},f=()=>{s=o-1,s<0&&(s=l)};switch(e.key){case"Home":s=0;break;case"End":s=l;break;case"ArrowRight":"horizontal"===a&&(u?d():f());break;case"ArrowDown":"vertical"===a&&d();break;case"ArrowLeft":"horizontal"===a&&(u?f():d());break;case"ArrowUp":"vertical"===a&&f()}null===(t=r[s%i].ref.current)||void 0===t||t.focus()}));return o.createElement(Ve,{scope:n,disabled:r,direction:i,orientation:a},o.createElement(Ee.Slot,{scope:n},o.createElement(J.div,z({},s,{"data-orientation":a,ref:l,onKeyDown:r?void 0:d}))))})),He="AccordionItem",[Be,$e]=Re(He),We=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,a=ze(He,n),s=Oe(He,n),l=Ae(n),c=ae(),u=r&&s.value.includes(r)||!1,d=a.disabled||e.disabled;return o.createElement(Be,{scope:n,open:u,disabled:d,triggerId:c},o.createElement(be,z({"data-orientation":a.orientation,"data-state":Xe(u)},l,i,{ref:t,disabled:d,open:u,onOpenChange:e=>{e?s.onItemOpen(r):s.onItemClose(r)}})))})),Ue=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ze(Se,n),a=$e("AccordionHeader",n);return o.createElement(J.h3,z({"data-orientation":i.orientation,"data-state":Xe(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))})),Ke="AccordionTrigger",Ge=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ze(Se,n),a=$e(Ke,n),s=De(Ke,n),l=Ae(n);return o.createElement(Ee.ItemSlot,{scope:n},o.createElement(we,z({"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId},l,r,{ref:t})))})),qe=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ze(Se,n),a=$e("AccordionContent",n),s=Ae(n);return o.createElement(ye,z({role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation},s,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))}));function Xe(e){return e?"open":"closed"}const Ye=Ie,Ze=We,Qe=Ue,Je=Ge,et=qe;function tt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var nt=["color"],rt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,nt);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ot=["color"],it=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ot);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),at=["color"],st=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,at);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),lt=["color"],ct=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,lt);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ut=["color"],dt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ut);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ft=["color"],pt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ft);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),ht=["color"],mt=u((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=tt(e,ht);return s("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),s("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}));function gt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=gt(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gt(e))&&(r&&(r+=" "),r+=t);return r}function bt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wt(e))&&(r&&(r+=" "),r+=t);return r}function wt(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(n&&(n+=" "),n+=t);return n}var yt="-";function xt(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var n=e[0],r=e[1];return[t+n,r]}))):e}))]}))}(Object.entries(e.classGroups),n);return o.forEach((function(e){var n=e[0];kt(e[1],r,n,t)})),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split(yt);return""===n[0]&&1!==n.length&&n.shift(),Ct(n,t)||function(e){if(St.test(e)){var t=St.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&o[e]?[].concat(r,o[e]):r}}}function Ct(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Ct(e.slice(1),r):void 0;if(o)return o;if(0!==t.validators.length){var i=e.join(yt);return t.validators.find((function(e){return(0,e.validator)(i)}))?.classGroupId}}var St=/^\[(.+)\]$/;function kt(e,t,n,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void kt(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var o=e[0];kt(e[1],Et(t,o),n,r)}))}else{(""===e?t:Et(t,e)).classGroupId=n}}))}function Et(e,t){var n=e;return t.split(yt).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Pt(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}var Nt="!";function Rt(e){var t=e.separator||":",n=1===t.length,r=t[0],o=t.length;return function(e){for(var i,a=[],s=0,l=0,c=0;c<e.length;c++){var u=e[c];if(0===s){if(u===r&&(n||e.slice(c,c+o)===t)){a.push(e.slice(l,c)),l=c+o;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}var d=0===a.length?e:e.substring(l),f=d.startsWith(Nt);return{modifiers:a,hasImportantModifier:f,baseClassName:f?d.substring(1):d,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}var Mt=/\s+/;function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=function(e){var n=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),n());return r=function(e){return{cache:Pt(e.cacheSize),splitModifiers:Rt(e),...xt(e)}}(l),o=r.cache.get,i=r.cache.set,a=s,s(e)};function s(e){var t=o(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(Mt).map((function(e){var t=n(e),o=t.modifiers,i=t.hasImportantModifier,a=t.baseClassName,s=t.maybePostfixModifierPosition,l=r(s?a.substring(0,s):a),c=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(a)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)})),t.push.apply(t,n.sort()),t}(o).join(":");return{isTailwindClass:!0,modifierId:i?u+Nt:u,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((function(e){return i.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return i(e,n),n}return function(){return a(bt.apply(null,arguments))}}function It(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var Tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ot=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_t=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Vt(e){return Wt(e)||Lt.has(e)||Ot.test(e)||zt(e)}function zt(e){return Zt(e,"length",Qt)}function jt(e){return Zt(e,"size",Jt)}function Ht(e){return Zt(e,"position",Jt)}function Bt(e){return Zt(e,"url",en)}function $t(e){return Zt(e,"number",Wt)}function Wt(e){return!Number.isNaN(Number(e))}function Ut(e){return e.endsWith("%")&&Wt(e.slice(0,-1))}function Kt(e){return tn(e)||Zt(e,"number",tn)}function Gt(e){return Tt.test(e)}function qt(){return!0}function Xt(e){return Dt.test(e)}function Yt(e){return Zt(e,"",nn)}function Zt(e,t,n){var r=Tt.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function Qt(e){return Ft.test(e)}function Jt(){return!1}function en(e){return e.startsWith("url(")}function tn(e){return Number.isInteger(Number(e))}function nn(e){return _t.test(e)}function rn(){var e=It("colors"),t=It("spacing"),n=It("blur"),r=It("brightness"),o=It("borderColor"),i=It("borderRadius"),a=It("borderSpacing"),s=It("borderWidth"),l=It("contrast"),c=It("grayscale"),u=It("hueRotate"),d=It("invert"),f=It("gap"),p=It("gradientColorStops"),h=It("gradientColorStopPositions"),m=It("inset"),g=It("margin"),v=It("opacity"),b=It("padding"),w=It("saturate"),y=It("scale"),x=It("sepia"),C=It("skew"),S=It("space"),k=It("translate"),E=function(){return["auto",Gt,t]},P=function(){return[Gt,t]},N=function(){return["",Vt]},R=function(){return["auto",Wt,Gt]},M=function(){return["","0",Gt]},A=function(){return[Wt,$t]},I=function(){return[Wt,Gt]};return{cacheSize:500,theme:{colors:[qt],spacing:[Vt],blur:["none","",Xt,Gt],brightness:A(),borderColor:[e],borderRadius:["none","","full",Xt,Gt],borderSpacing:P(),borderWidth:N(),contrast:A(),grayscale:M(),hueRotate:I(),invert:M(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Ut,zt],inset:E(),margin:E(),opacity:A(),padding:P(),saturate:A(),scale:A(),sepia:M(),skew:I(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Gt]}],container:["container"],columns:[{columns:[Xt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Gt])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Gt]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Kt]}],"grid-cols":[{"grid-cols":[qt]}],"col-start-end":[{col:["auto",{span:["full",Kt]},Gt]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[qt]}],"row-start-end":[{row:["auto",{span:[Kt]},Gt]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Gt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Gt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Gt,t]}],"min-w":[{"min-w":["min","max","fit",Gt,Vt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Xt]},Xt,Gt]}],h:[{h:[Gt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Gt,Vt]}],"max-h":[{"max-h":[Gt,t,"min","max","fit"]}],"font-size":[{text:["base",Xt,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[qt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Gt]}],"line-clamp":[{"line-clamp":["none",Wt,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gt,Vt]}],"list-image":[{"list-image":["none",Gt]}],"list-style-type":[{list:["none","disc","decimal",Gt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Vt]}],"underline-offset":[{"underline-offset":["auto",Gt,Vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Gt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Gt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Ht])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[Gt,Vt]}],"outline-w":[{outline:[Vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xt,Yt]}],"shadow-color":[{shadow:[qt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xt,Gt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Gt]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",Gt]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",Gt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[Kt,Gt]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Gt]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Gt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Gt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vt,$t]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var on=At(rn);const an=(...e)=>on(vt(e)),sn=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},ln=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},cn=Ye,un=r.forwardRef((({className:t="",...n},r)=>e(Ze,{ref:r,className:an("border-b",t),...n})));un.displayName="AccordionItem";const dn=r.forwardRef((({className:n="",children:r,...o},i)=>e(Qe,{className:"flex",children:t(Je,{ref:i,className:an("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n),...o,children:[r,e(dt,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));dn.displayName=Je.displayName;const fn=r.forwardRef((({className:t="",children:n,...r},o)=>e(et,{ref:o,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e("div",{className:an("pb-4 pt-0",t),children:n})})));fn.displayName=et.displayName;var pn=Object.defineProperty,hn=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,wn=(e,t,n)=>t in e?pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yn=(e,t)=>{for(var n in t||(t={}))vn.call(t,n)&&wn(e,n,t[n]);if(gn)for(var n of gn(t))bn.call(t,n)&&wn(e,n,t[n]);return e},xn=(e,t)=>hn(e,mn(t)),Cn=(e,t)=>{var n={};for(var r in e)vn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gn)for(var r of gn(e))t.indexOf(r)<0&&bn.call(e,r)&&(n[r]=e[r]);return n},Sn=Object.defineProperty,kn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Mn=(e,t,n)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,An=(e,t)=>{for(var n in t||(t={}))Nn.call(t,n)&&Mn(e,n,t[n]);if(Pn)for(var n of Pn(t))Rn.call(t,n)&&Mn(e,n,t[n]);return e},In=(e,t)=>kn(e,En(t)),Tn=(e,t)=>{var n={};for(var r in e)Nn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Pn)for(var r of Pn(e))t.indexOf(r)<0&&Rn.call(e,r)&&(n[r]=e[r]);return n};function On(...e){}function Ln(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}function Dn(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function Fn(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function _n(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Vn(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function zn(e){return e}function jn(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function Hn(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function Bn(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function $n(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function Wn(...e){for(const t of e)if(void 0!==t)return t}function Un(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Kn(e){if(!function(e){return!!e&&!!f(e)&&("ref"in e.props||"ref"in e)}(e))return null;return yn({},e.props).ref||e.ref}var Gn,qn="undefined"!=typeof window&&!!(null==(Gn=window.document)?void 0:Gn.createElement);function Xn(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function Yn(e){return e?"self"in e?e.self:Xn(e).defaultView||window:self}function Zn(e,t=!1){const{activeElement:n}=Xn(e);if(!(null==n?void 0:n.nodeName))return null;if(Jn(n)&&n.contentDocument)return Zn(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Xn(n).getElementById(e);if(t)return t}}return n}function Qn(e,t){return e===t||e.contains(t)}function Jn(e){return"IFRAME"===e.tagName}function er(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==tr.indexOf(e.type)}var tr=["button","color","file","image","reset","submit"];function nr(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function rr(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function or(e){return e.isContentEditable||rr(e)}function ir(e){let t=0,n=0;if(rr(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=Xn(e).getSelection();if((null==r?void 0:r.rangeCount)&&r.anchorNode&&Qn(e,r.anchorNode)&&r.focusNode&&Qn(e,r.focusNode)){const o=r.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(e),i.setEnd(o.startContainer,o.startOffset),t=i.toString().length,i.setEnd(o.endContainer,o.endOffset),n=i.toString().length}}return{start:t,end:n}}function ar(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function sr(e,t){var n;const r=ar(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem"}[r])?n:t}function lr(e){if(!e)return null;const t=e=>"auto"===e||"scroll"===e;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:n}=getComputedStyle(e);if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:n}=getComputedStyle(e);if(t(n))return e}return lr(e.parentElement)||document.scrollingElement||document.body}function cr(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function ur(e,t){const n=e.map(((e,t)=>[t,e]));let r=!1;return n.sort((([e,n],[o,i])=>{const a=t(n),s=t(i);return a===s?0:a&&s?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(a,s)?(e>o&&(r=!0),-1):(e<o&&(r=!0),1):0})),r?n.map((([e,t])=>t)):e}function dr(){return qn&&!!navigator.maxTouchPoints}function fr(){return!!qn&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function pr(){return qn&&fr()&&/apple/i.test(navigator.vendor)}function hr(e){return Boolean(e.currentTarget&&!Qn(e.currentTarget,e.target))}function mr(e){return e.target===e.currentTarget}function gr(e){const t=e.currentTarget;if(!t)return!1;const n=fr();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||("button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type)}function vr(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||("button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type))}function br(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=In(An({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function wr(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function yr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Qn(n,r)}function xr(e,t,n,r){const o=(e=>{const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function Cr(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Cr(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var Sr=yn({},r),kr=Sr.useId;Sr.useDeferredValue;var Er=Sr.useInsertionEffect,Pr=qn?b:g;function Nr(e){const t=m(e);return Pr((()=>{t.current=e})),t}function Rr(e){const t=m((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Er?Er((()=>{t.current=e})):t.current=e,c(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Mr(e){const[t,n]=v(null);return Pr((()=>{if(null==t)return;if(!e)return;let n=null;return e((e=>(n=e,t))),()=>{e(n)}}),[t,e]),[t,n]}function Ar(...e){return a((()=>{if(e.some(Boolean))return t=>{for(const n of e)Un(n,t)}}),e)}function Ir(e){if(kr){const t=kr();return e||t}const[t,n]=v(e);return Pr((()=>{if(e||t)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)}),[e,t]),e||t}function Tr(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=v((()=>n(t)));return Pr((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function Or(e,t,n){const r=function(e){const[t]=v(e);return t}(n),[o,i]=v(r);return g((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;const o=()=>{const e=n.getAttribute(t);i(null==e?r:e)},a=new MutationObserver(o);return a.observe(n,{attributeFilter:[t]}),o(),()=>a.disconnect()}),[e,t,r]),o}function Lr(e,t){const n=m(!1);g((()=>{if(n.current)return e();n.current=!0}),t),g((()=>()=>{n.current=!1}),[])}function Dr(){return w((()=>[]),[])}function Fr(e){return Rr("function"==typeof e?e:()=>e)}function _r(e,t,n=[]){const r=c((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return xn(yn({},e),{wrapElement:r})}function Vr(e=!1,t){const[n,r]=v(null);return{portalRef:Ar(r,t),portalNode:n,domReady:!e||n}}function zr(e,t,n){const r=e.onLoadedMetadataCapture,o=a((()=>Object.assign((()=>{}),xn(yn({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:o}]}function jr(){g((()=>{Cr("mousemove",Wr,!0),Cr("mousedown",Ur,!0),Cr("mouseup",Ur,!0),Cr("keydown",Ur,!0),Cr("scroll",Ur,!0)}),[]);return Rr((()=>Hr))}var Hr=!1,Br=0,$r=0;function Wr(e){(function(e){const t=e.movementX||e.screenX-Br,n=e.movementY||e.screenY-$r;return Br=e.screenX,$r=e.screenY,t||n||!1})(e)&&(Hr=!0)}function Ur(){Hr=!1}function Kr(e){const t=r.forwardRef(((t,n)=>e(xn(yn({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function Gr(e,t){return r.memo(e,t)}function qr(t,n){const o=n,{wrapElement:i,render:a}=o,s=Cn(o,["wrapElement","render"]),l=Ar(n.ref,Kn(a));let c;if(r.isValidElement(a)){const e=xn(yn({},a.props),{ref:l});c=r.cloneElement(a,function(e,t){const n=yn({},e);for(const r in t){if(!Fn(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?yn(yn({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(s,e))}else c=a?a(s):e(t,yn({},s));return i?i(c):c}function Xr(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function Yr(t=[],n=[]){const o=r.createContext(void 0),i=r.createContext(void 0),a=()=>r.useContext(o),s=n=>t.reduceRight(((t,r)=>e(r,xn(yn({},n),{children:t}))),e(o.Provider,yn({},n)));return{context:o,scopedContext:i,useContext:a,useScopedContext:(e=!1)=>{const t=r.useContext(i),n=a();return e?t:t||n},useProviderContext:()=>{const e=r.useContext(i),t=a();if(!e||e!==t)return t},ContextProvider:s,ScopedContextProvider:t=>e(s,xn(yn({},t),{children:n.reduceRight(((n,r)=>e(r,xn(yn({},t),{children:n}))),e(i.Provider,yn({},t)))}))}}var Zr=Yr();Zr.useContext,Zr.useScopedContext;var Qr=Zr.useProviderContext,Jr=Yr([Zr.ContextProvider],[Zr.ScopedContextProvider]),eo=Jr.useProviderContext,to=Jr.ContextProvider,no=Jr.ScopedContextProvider,ro=i(void 0),oo=i(void 0),io=Yr([to],[no]),ao=io.useContext;io.useScopedContext;var so=io.useProviderContext,lo=io.ContextProvider,co=io.ScopedContextProvider,uo=Yr(),fo=uo.useContext;uo.useScopedContext,uo.useProviderContext;var po=Yr([uo.ContextProvider],[uo.ScopedContextProvider]),ho=po.useContext,mo=po.useProviderContext,go=po.ContextProvider,vo=po.ScopedContextProvider,bo=i(void 0),wo=i(void 0),yo=Yr([lo,go],[co,vo]),xo=yo.useContext,Co=yo.useScopedContext,So=yo.useProviderContext,ko=yo.ContextProvider,Eo=yo.ScopedContextProvider,Po=i(!1),No=i(null);function Ro(e,t){const n=e.__unstableInternals;return jn(n,"Invalid store"),n[t]}function Mo(e,...t){let n=e,r=n,o=Symbol(),i=On;const a=new Set,s=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,p=(e,t,n=c)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),h=(e,i,a=!1)=>{var l;if(!Fn(n,e))return;const p=Dn(i,n[e]);if(p===n[e])return;if(!a)for(const n of t)null==(l=null==n?void 0:n.setState)||l.call(n,e,p);const h=n;n=In(An({},n),{[e]:p});const m=Symbol();o=m,s.add(e);const g=(t,r,o)=>{var i;const a=f.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of c)g(e,h);queueMicrotask((()=>{if(o!==m)return;const e=n;for(const e of u)g(e,r,s);r=e,s.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const s=(c=n,Object.keys(c)).map((e=>_n(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&Fn(r,e))return Oo(t,[e],(t=>{h(e,t[e],!0)}))})))));var c;const u=[];for(const e of l)u.push(e());const d=t.map(Io);return i=_n(...s,...u,...d),o},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,u)),pick:e=>Mo(function(e,t){const n={};for(const r of t)Fn(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>Mo(function(e,t){const n=An({},e);for(const e of t)Fn(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Ao(e,...t){if(e)return Ro(e,"setup")(...t)}function Io(e,...t){if(e)return Ro(e,"init")(...t)}function To(e,...t){if(e)return Ro(e,"subscribe")(...t)}function Oo(e,...t){if(e)return Ro(e,"sync")(...t)}function Lo(e,...t){if(e)return Ro(e,"batch")(...t)}function Do(e,...t){if(e)return Ro(e,"omit")(...t)}function Fo(e,...t){if(e)return Ro(e,"pick")(...t)}function _o(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?Object.assign(e,r):e}),{}),n=Mo(t,...e);return Object.assign({},...e,n)}function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zo={exports:{}},jo={},Ho=o;var Bo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$o=Ho.useState,Wo=Ho.useEffect,Uo=Ho.useLayoutEffect,Ko=Ho.useDebugValue;function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bo(e,n)}catch(e){return!0}}var qo="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=$o({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Uo((function(){o.value=n,o.getSnapshot=t,Go(o)&&i({inst:o})}),[e,n,t]),Wo((function(){return Go(o)&&i({inst:o}),e((function(){Go(o)&&i({inst:o})}))}),[e]),Ko(n),n};jo.useSyncExternalStore=void 0!==Ho.useSyncExternalStore?Ho.useSyncExternalStore:qo,zo.exports=jo;var Xo=Vo(zo.exports),{useSyncExternalStore:Yo}=Xo,Zo=()=>()=>{};function Qo(e,t=zn){const n=r.useCallback((t=>e?To(e,null,t):Zo()),[e]),o=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&Fn(o,n)?o[n]:void 0};return Yo(n,o,o)}function Jo(e,t){const n=r.useRef({}),o=r.useCallback((t=>e?To(e,null,t):Zo()),[e]),i=()=>{const r=null==e?void 0:e.getState();let o=!1;const i=n.current;for(const e in t){const n=t[e];if("function"==typeof n){const t=n(r);t!==i[e]&&(i[e]=t,o=!0)}if("string"==typeof n){if(!r)continue;if(!Fn(r,n))continue;const t=r[n];t!==i[e]&&(i[e]=t,o=!0)}}return o&&(n.current=yn({},i)),n.current};return Yo(o,i,i)}function ei(e,t,n,r){const o=Fn(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=Nr({value:o,setValue:i});Pr((()=>Oo(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),Pr((()=>{if(void 0!==o)return e.setState(n,o),Lo(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function ti(e,t){const[n,o]=r.useState((()=>e(t)));Pr((()=>Io(n)),[n]);const i=r.useCallback((e=>Qo(n,e)),[n]);return[r.useMemo((()=>xn(yn({},n),{useState:i})),[n,i]),Rr((()=>{o((n=>e(yn(yn({},t),n.getState()))))}))]}function ni(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Wn(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Wn(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Mo({items:r,renderedItems:i.renderedItems},a),c=Mo(i,e.store),u=e=>{const t=ur(e,(e=>e.element));l.setState("renderedItems",t),c.setState("renderedItems",t)};Ao(c,(()=>Io(l))),Ao(l,(()=>Lo(l,["items"],(e=>{c.setState("items",e.items)})))),Ao(l,(()=>Lo(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Xn(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=An(An({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},f=e=>d(e,(e=>l.setState("items",e)),!0);return In(An({},c),{registerItem:f,renderItem:e=>_n(f(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=l.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function ri(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function oi(e){const t=[];for(const n of e)t.push(...n);return t}function ii(e){return e.slice().reverse()}var ai={id:null};function si(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function li(e,t){return e.filter((e=>e.rowId===t))}function ci(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function ui(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function di(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=ni(e),o=Wn(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Mo(In(An({},r.getState()),{id:Wn(e.id,null==n?void 0:n.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:o,baseElement:Wn(null==n?void 0:n.baseElement,null),includesBaseElement:Wn(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:Wn(null==n?void 0:n.moves,0),orientation:Wn(e.orientation,null==n?void 0:n.orientation,"both"),rtl:Wn(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:Wn(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:Wn(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:Wn(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:Wn(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Ao(i,(()=>Oo(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=si(e.renderedItems))?void 0:n.id}))}))));const a=(e="next",t={})=>{var n,r;const o=i.getState(),{skip:a=0,activeId:s=o.activeId,focusShift:l=o.focusShift,focusLoop:c=o.focusLoop,focusWrap:u=o.focusWrap,includesBaseElement:d=o.includesBaseElement,renderedItems:f=o.renderedItems,rtl:p=o.rtl}=t,h="up"===e||"down"===e,m="next"===e||"down"===e,g=m?p&&!h:!p||h,v=l&&!a;let b=h?oi(function(e,t,n){const r=ui(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?si(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}(ci(f),s,v)):f;if(b=g?ii(b):b,b=h?function(e){const t=ci(e),n=ui(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(In(An({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}(b):b,null==s)return null==(n=si(b))?void 0:n.id;const w=b.find((e=>e.id===s));if(!w)return null==(r=si(b))?void 0:r.id;const y=b.some((e=>e.rowId)),x=b.indexOf(w),C=b.slice(x+1),S=li(C,w.rowId);if(a){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(S,s),t=e.slice(a)[0]||e[e.length-1];return null==t?void 0:t.id}const k=c&&(h?"horizontal"!==c:"vertical"!==c),E=y&&u&&(h?"horizontal"!==u:"vertical"!==u),P=m?(!y||h)&&k&&d:!!h&&d;if(k){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[ai]:[],...e.slice(0,r)]}(E&&!P?b:li(b,w.rowId),s,P),t=si(e,s);return null==t?void 0:t.id}if(E){const e=si(P?S:C,s);return P?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const N=si(S,s);return!N&&P?null:null==N?void 0:N.id};return In(An(An({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=si(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=si(ii(i.getState().renderedItems)))?void 0:e.id},next:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("next",e)),previous:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("previous",e)),down:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("down",e)),up:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("up",e))})}function fi(e){const t=Ir(e.id);return yn({id:t},e)}function pi(e,t,n){return e=function(e,t,n){return Lr(t,[n.store]),ei(e,n,"items","setItems"),e}(e,t,n),ei(e,n,"activeId","setActiveId"),ei(e,n,"includesBaseElement"),ei(e,n,"virtualFocus"),ei(e,n,"orientation"),ei(e,n,"rtl"),ei(e,n,"focusLoop"),ei(e,n,"focusWrap"),ei(e,n,"focusShift"),e}var hi=i(void 0),mi=Yr([lo,go],[co,vo]),gi=mi.useContext,vi=mi.useScopedContext,bi=mi.useProviderContext,wi=mi.ContextProvider,yi=mi.ScopedContextProvider,xi=i(void 0),Ci=i(!1);function Si(e={}){var t=e,{composite:n,combobox:r}=t,o=Tn(t,["composite","combobox"]);const i=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],a=_o(o.store,Do(n,i),Do(r,i)),s=null==a?void 0:a.getState(),l=di(In(An({},o),{store:a,includesBaseElement:Wn(o.includesBaseElement,null==s?void 0:s.includesBaseElement,!1),orientation:Wn(o.orientation,null==s?void 0:s.orientation,"horizontal"),focusLoop:Wn(o.focusLoop,null==s?void 0:s.focusLoop,!0)})),c=ni(),u=Mo(In(An({},l.getState()),{selectedId:Wn(o.selectedId,null==s?void 0:s.selectedId,o.defaultSelectedId),selectOnMove:Wn(o.selectOnMove,null==s?void 0:s.selectOnMove,!0)}),l,a);Ao(u,(()=>Oo(u,["moves"],(()=>{const{activeId:e,selectOnMove:t}=u.getState();if(!t)return;if(!e)return;const n=l.item(e);n&&(n.dimmed||n.disabled||u.setState("selectedId",n.id))}))));let d=!0;Ao(u,(()=>Lo(u,["selectedId"],((e,t)=>{d?n&&e.selectedId===t.selectedId||u.setState("activeId",e.selectedId):d=!0})))),Ao(u,(()=>Oo(u,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=u.getState(),r=l.item(t);if(!r||r.disabled||r.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));u.setState("selectedId",null==e?void 0:e.id)}else u.setState("selectedId",r.id)})))),Ao(u,(()=>Oo(u,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return Oo(c,["renderedItems"],(e=>{const n=e.renderedItems;n.some((e=>!e.tabId))&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&c.renderItem(In(An({},e),{tabId:r.id}))}))}))}))));let f=null;return Ao(u,(()=>{const e=()=>{f=u.getState().selectedId},t=()=>{d=!1,u.setState("selectedId",f)};return n&&"setSelectElement"in n?_n(Oo(n,["value"],e),Oo(n,["mounted"],t)):r?_n(Oo(r,["selectedValue"],e),Oo(r,["mounted"],t)):void 0})),In(An(An({},l),u),{panels:c,setSelectedId:e=>u.setState("selectedId",e),select:e=>{u.setState("selectedId",e),l.move(e)}})}function ki(e={}){const t=gi(),n=xo()||t;e=xn(yn({},e),{composite:void 0!==e.composite?e.composite:n,combobox:void 0!==e.combobox?e.combobox:t});const[r,o]=ti(Si,e);return function(e,t,n){Lr(t,[n.composite,n.combobox]),ei(e=pi(e,t,n),n,"selectedId","setSelectedId"),ei(e,n,"selectOnMove");const[r,o]=ti((()=>e.panels),{});return Lr(o,[e,o]),Object.assign(a((()=>xn(yn({},e),{panels:r})),[e,r]),{composite:n.composite,combobox:n.combobox})}(r,o,e)}var Ei=Yr([go],[vo]),Pi=Ei.useContext,Ni=Ei.useScopedContext,Ri=Ei.useProviderContext,Mi=Ei.ContextProvider,Ai=Ei.ScopedContextProvider,Ii={id:null};function Ti(e,t){return t&&e.item(t)||null}var Oi=Symbol("FOCUS_SILENTLY");function Li(e,t,n){if(!t)return!1;if(t===n)return!1;return!!e.item(t.id)}var Di=Xr((function(e){var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=zn,element:i}=t,a=Cn(t,["store","shouldRegisterItem","getItem","element"]);const s=fo();n=n||s;const l=Ir(a.id),c=m(i);return g((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),$n(a=xn(yn({},a),{ref:Ar(c,a.ref)}))}));Kr((function(e){return qr("div",Di(e))}));var Fi=i(!0),_i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function Vi(e){return!!e.matches(_i)&&(!!nr(e)&&!e.closest("[inert]"))}function zi(e){if(!Vi(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=Zn(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function ji(e,t){const n=Array.from(e.querySelectorAll(_i));t&&n.unshift(e);const r=n.filter(Vi);return r.forEach(((e,t)=>{if(Jn(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...ji(n))}})),r}function Hi(e,t,n){const r=Array.from(e.querySelectorAll(_i)),o=r.filter(zi);return t&&zi(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Jn(e)&&e.contentDocument){const r=Hi(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Bi(e,t){return function(e,t,n,r){const o=Zn(e),i=ji(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(zi)||(n?i.find(zi):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function $i(e,t){return function(e,t,n,r){const o=Zn(e),i=ji(e,t).reverse(),a=i.indexOf(o);return i.slice(a+1).find(zi)||null}(document.body,!1)}function Wi(e){const t=Zn(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Ui(e){const t=Zn(e);if(!t)return!1;if(Qn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Ki(e){!Ui(e)&&Vi(e)&&e.focus()}function Gi(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var qi=pr(),Xi=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],Yi=Symbol("safariFocusAncestor");function Zi(e,t){e&&(e[Yi]=t)}function Qi(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function Ji(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function ea(e,t){return Rr((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var ta=!0;function na(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(ta=!1))}function ra(e){e.metaKey||e.ctrlKey||e.altKey||(ta=!0)}var oa=Xr((function(e){var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=Cn(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const c=m(null);g((()=>{n&&(Cr("mousedown",na,!0),Cr("keydown",ra,!0))}),[n]),qi&&g((()=>{if(!n)return;const e=c.current;if(!e)return;if(!Qi(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",r);return()=>{for(const e of t)e.removeEventListener("mouseup",r)}}),[n]);const u=n&&Bn(s),d=!!u&&!r,[f,p]=v(!1);g((()=>{n&&d&&f&&p(!1)}),[n,d,f]),g((()=>{if(!n)return;if(!f)return;const e=c.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{Vi(e)||p(!1)}));return t.observe(e),()=>t.disconnect()}),[n,f]);const h=ea(s.onKeyPressCapture,u),b=ea(s.onMouseDownCapture,u),w=ea(s.onClickCapture,u),y=s.onMouseDown,x=Rr((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!qi)return;if(hr(e))return;if(!er(t)&&!Qi(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!Vi(e);)e=e.closest(_i);return e||null}(t.parentElement);Zi(i,!0),xr(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),Zi(i,!1),r||Ki(t)}))})),C=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Wi(r)&&(null==i||i(e),e.defaultPrevented||(r.dataset.focusVisible="true",p(!0)))},S=s.onKeyDownCapture,k=Rr((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;if(f)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!mr(e))return;const t=e.currentTarget;xr(t,"focusout",(()=>C(e,t)))})),E=s.onFocusCapture,P=Rr((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!n)return;if(!mr(e))return void p(!1);const t=e.currentTarget,r=()=>C(e,t);ta||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||("SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):Xi.includes(r)))}(e.target)?xr(e.target,"focusout",r):p(!1)})),N=s.onBlur,R=Rr((e=>{null==N||N(e),n&&yr(e)&&(e.currentTarget.removeAttribute("data-focus-visible"),p(!1))})),M=l(Fi),A=Rr((e=>{n&&o&&e&&M&&queueMicrotask((()=>{Wi(e)||Vi(e)&&e.focus()}))})),I=Tr(c),T=n&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(I),O=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(I),L=s.style,D=a((()=>d?yn({pointerEvents:"none"},L):L),[d,L]);return $n(s=xn(yn({"data-focus-visible":n&&f||void 0,"data-autofocus":o||void 0,"aria-disabled":u||void 0},s),{ref:Ar(c,A,s.ref),style:D,tabIndex:Ji(n,d,T,O,s.tabIndex),disabled:!(!O||!d)||void 0,contentEditable:u?void 0:s.contentEditable,onKeyPressCapture:h,onClickCapture:w,onMouseDownCapture:b,onMouseDown:x,onKeyDownCapture:k,onFocusCapture:P,onBlur:R}))}));Kr((function(e){return qr("div",oa(e))}));function ia(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?er(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(er(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var aa=Symbol("command"),sa=Xr((function(e){var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=Cn(t,["clickOnEnter","clickOnSpace"]);const i=m(null),[a,s]=v(!1);g((()=>{i.current&&s(er(i.current))}),[]);const[l,c]=v(!1),u=m(!1),d=Bn(o),[f,p]=zr(o,aa,!0),h=o.onKeyDown,b=Rr((e=>{null==h||h(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(f)return;if(d)return;if(!mr(e))return;if(rr(t))return;if(t.isContentEditable)return;const o=n&&"Enter"===e.key,i=r&&" "===e.key,a="Enter"===e.key&&!n,s=" "===e.key&&!r;if(a||s)e.preventDefault();else if(o||i){const n=ia(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=Cn(n,["view"]),i=()=>wr(t,o);qn&&/firefox\//i.test(navigator.userAgent)?xr(t,"keyup",i):queueMicrotask(i)}}else i&&(u.current=!0,n||(e.preventDefault(),c(!0)))}})),w=o.onKeyUp,y=Rr((e=>{if(null==w||w(e),e.defaultPrevented)return;if(f)return;if(d)return;if(e.metaKey)return;const t=r&&" "===e.key;if(u.current&&t&&(u.current=!1,!ia(e))){e.preventDefault(),c(!1);const t=e.currentTarget,n=e,{view:r}=n,o=Cn(n,["view"]);queueMicrotask((()=>wr(t,o)))}}));return o=xn(yn(yn({"data-active":l||void 0,type:a?"button":void 0},p),o),{ref:Ar(i,o.ref),onKeyDown:b,onKeyUp:y}),o=oa(o)}));Kr((function(e){return qr("button",sa(e))}));function la(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function ca(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=lr(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=Ti(t,l))?void 0:o.element;if(!a)continue;const u=la(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var ua=Xr((function(t){var n=t,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:s=!0,tabbable:u=!1,getItem:d,"aria-setsize":f,"aria-posinset":p}=n,h=Cn(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const g=ho();r=r||g;const v=Ir(h.id),b=m(null),w=l(wo),y=Bn(h)&&!h.accessibleWhenDisabled,{rowId:x,baseElement:C,isActiveItem:S,ariaSetSize:k,ariaPosInSet:E,isTabbable:P}=Jo(r,{rowId:e=>o||(e&&(null==w?void 0:w.baseElement)&&w.baseElement===e.baseElement?w.id:void 0),baseElement:e=>(null==e?void 0:e.baseElement)||void 0,isActiveItem:e=>!!e&&e.activeId===v,ariaSetSize:e=>null!=f?f:e&&(null==w?void 0:w.ariaSetSize)&&w.baseElement===e.baseElement?w.ariaSetSize:void 0,ariaPosInSet(e){if(null!=p)return p;if(!e)return;if(!(null==w?void 0:w.ariaPosInSet))return;if(w.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===x));return w.ariaPosInSet+t.findIndex((e=>e.id===v))},isTabbable(e){if(!(null==e?void 0:e.renderedItems.length))return!0;if(e.virtualFocus)return!1;if(u)return!0;if(null===e.activeId)return!1;const t=null==r?void 0:r.item(e.activeId);return!!(null==t?void 0:t.disabled)||(!(null==t?void 0:t.element)||e.activeId===v)}}),N=c((e=>{var t;const n=xn(yn({},e),{id:v||e.id,rowId:x,disabled:!!y,children:null==(t=e.element)?void 0:t.textContent});return d?d(n):n}),[v,x,y,d]),R=h.onFocus,M=m(!1),A=Rr((e=>{if(null==R||R(e),e.defaultPrevented)return;if(hr(e))return;if(!v)return;if(!r)return;if(function(e,t){return!mr(e)&&Li(t,e.target)}(e,r))return;const{virtualFocus:t,baseElement:n}=r.getState();if(r.setActiveId(v),or(e.currentTarget)&&function(e,t=!1){if(rr(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=Xn(e).getSelection();null==n||n.selectAllChildren(e),t&&(null==n||n.collapseToEnd())}}(e.currentTarget),!t)return;if(!mr(e))return;if(or(o=e.currentTarget)||"INPUT"===o.tagName&&!er(o))return;var o;if(!(null==n?void 0:n.isConnected))return;pr()&&e.currentTarget.hasAttribute("data-autofocus")&&e.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),M.current=!0;e.relatedTarget===n||Li(r,e.relatedTarget)?function(e){e[Oi]=!0,e.focus({preventScroll:!0})}(n):n.focus()})),I=h.onBlurCapture,T=Rr((e=>{if(null==I||I(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&M.current&&(M.current=!1,e.preventDefault(),e.stopPropagation())})),O=h.onKeyDown,L=Fr(i),D=Fr(s),F=Rr((e=>{if(null==O||O(e),e.defaultPrevented)return;if(!mr(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(v),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l=()=>!!i||(!!s||(!n.baseElement||!rr(n.baseElement))),c={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1)},PageUp:()=>ca(t,r,null==r?void 0:r.up,!0),PageDown:()=>ca(t,r,null==r?void 0:r.down)}[e.key];if(c){if(or(t)){const n=ir(t),r=s&&"ArrowLeft"===e.key,o=s&&"ArrowRight"===e.key,i=a&&"ArrowUp"===e.key,l=a&&"ArrowDown"===e.key;if(o||l){const{length:e}=function(e){if(rr(e))return e.value;if(e.isContentEditable){const t=Xn(e).createRange();return t.selectNodeContents(e),t.toString()}return""}(t);if(n.end!==e)return}else if((r||i)&&0!==n.start)return}const n=c();if(L(e)||void 0!==n){if(!D(e))return;e.preventDefault(),r.move(n)}}})),_=a((()=>({id:v,baseElement:C})),[v,C]);return h=_r(h,(t=>e(bo.Provider,{value:_,children:t})),[_]),h=xn(yn({id:v,"data-active-item":S||void 0},h),{ref:Ar(b,h.ref),tabIndex:P?h.tabIndex:-1,onFocus:A,onBlurCapture:T,onKeyDown:F}),h=sa(h),h=Di(xn(yn({store:r},h),{getItem:N,shouldRegisterItem:!!v&&h.shouldRegisterItem})),$n(xn(yn({},h),{"aria-setsize":k,"aria-posinset":E}))})),da=Gr(Kr((function(e){return qr("button",ua(e))}))),fa=Xr((function(t){var n,r=t,{store:o,getItem:i}=r,a=Cn(r,["store","getItem"]);const s=Ni();jn(o=o||s,!1);const l=Ir(),u=a.id||l,d=Bn(a),f=c((e=>{const t=xn(yn({},e),{dimmed:d});return i?i(t):t}),[d,i]),p=a.onClick,h=Rr((e=>{null==p||p(e),e.defaultPrevented||null==o||o.setSelectedId(u)})),m=o.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===u)))?void 0:t.id})),g=!!l&&a.shouldRegisterItem,v=o.useState((e=>!!u&&e.activeId===u)),b=o.useState((e=>!!u&&e.selectedId===u)),w=o.useState((e=>!!o.item(e.activeId))),y=v||b&&!w,x=b||null==(n=a.accessibleWhenDisabled)||n;if(Qo(o.combobox||o.composite,"virtualFocus")&&(a=xn(yn({},a),{tabIndex:-1})),a=xn(yn({id:u,role:"tab","aria-selected":b,"aria-controls":m||void 0},a),{onClick:h}),o.composite){const t={id:u,accessibleWhenDisabled:x,store:o.composite,shouldRegisterItem:y&&g,rowId:a.rowId,render:a.render};a=xn(yn({},a),{render:e(da,xn(yn({},t),{render:o.combobox&&o.composite!==o.combobox?e(da,xn(yn({},t),{store:o.combobox})):t.render}))})}return a=ua(xn(yn({store:o},a),{accessibleWhenDisabled:x,getItem:f,shouldRegisterItem:g}))})),pa=Gr(Kr((function(e){return qr("button",fa(e))})));function ha(t={}){const n=ki(t);return e(Mi,{value:n,children:t.children})}function ma(e,t,n){return Rr((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!mr(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!rr(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=Ti(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=Cn(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var ga=Xr((function(t){var n=t,{store:r,composite:o=!0,focusOnMove:i=o,moveOnKeyPress:a=!0}=n,s=Cn(n,["store","composite","focusOnMove","moveOnKeyPress"]);const l=mo();jn(r=r||l,!1);const u=m(null),d=m(null),f=function(e){const[t,n]=v(!1),r=c((()=>n(!0)),[]),o=e.useState((t=>Ti(e,t.activeId)));return g((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(r),p=r.useState("moves"),[,h]=Mr(o?r.setBaseElement:null);g((()=>{var e;if(!r)return;if(!p)return;if(!o)return;if(!i)return;const{activeId:t}=r.getState(),n=null==(e=Ti(r,t))?void 0:e.element;n&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(An({block:"nearest",inline:"nearest"},t))):e.focus()}(n)}),[r,p,o,i]),Pr((()=>{if(!r)return;if(!p)return;if(!o)return;const{baseElement:e,activeId:t}=r.getState();if(!(null===t))return;if(!e)return;const n=d.current;d.current=null,n&&br(n,{relatedTarget:e}),Wi(e)||e.focus()}),[r,p,o]);const b=r.useState("activeId"),w=r.useState("virtualFocus");Pr((()=>{var e;if(!r)return;if(!o)return;if(!w)return;const t=d.current;if(d.current=null,!t)return;const n=(null==(e=Ti(r,b))?void 0:e.element)||Zn(t);n!==t&&br(t,{relatedTarget:n})}),[r,b,w,o]);const y=ma(r,s.onKeyDownCapture,d),x=ma(r,s.onKeyUpCapture,d),C=s.onFocusCapture,S=Rr((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!r)return;const{virtualFocus:t}=r.getState();if(!t)return;const n=e.relatedTarget,o=function(e){const t=e[Oi];return delete e[Oi],t}(e.currentTarget);mr(e)&&o&&(e.stopPropagation(),d.current=n)})),k=s.onFocus,E=Rr((e=>{if(null==k||k(e),e.defaultPrevented)return;if(!o)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:n}=r.getState();n?mr(e)&&!Li(r,t)&&queueMicrotask(f):mr(e)&&r.setActiveId(null)})),P=s.onBlurCapture,N=Rr((e=>{var t;if(null==P||P(e),e.defaultPrevented)return;if(!r)return;const{virtualFocus:n,activeId:o}=r.getState();if(!n)return;const i=null==(t=Ti(r,o))?void 0:t.element,a=e.relatedTarget,s=Li(r,a),l=d.current;if(d.current=null,mr(e)&&s)a===i?l&&l!==a&&br(l,e):i?br(i,e):l&&br(l,e),e.stopPropagation();else{!Li(r,e.target)&&i&&br(i,e)}})),R=s.onKeyDown,M=Fr(a),A=Rr((e=>{var t;if(null==R||R(e),e.nativeEvent.isComposing)return;if(e.defaultPrevented)return;if(!r)return;if(!mr(e))return;const{orientation:n,renderedItems:o,activeId:i}=r.getState(),a=Ti(r,i);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const s="horizontal"!==n,l="vertical"!==n,c=o.some((e=>!!e.rowId));if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&rr(e.currentTarget))return;const u={ArrowUp:(c||s)&&(()=>{if(c){const e=function(e){return function(e,t){return e.find((e=>!e.disabled))}(oi(ii(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==r?void 0:r.last()}),ArrowRight:(c||l)&&r.first,ArrowDown:(c||s)&&r.first,ArrowLeft:(c||l)&&r.last,Home:r.first,End:r.last,PageUp:r.first,PageDown:r.last},d=u[e.key];if(d){const t=d();if(void 0!==t){if(!M(e))return;e.preventDefault(),r.move(t)}}}));s=_r(s,(t=>e(go,{value:r,children:t})),[r]);const I=r.useState((e=>{var t;if(r&&o&&e.virtualFocus)return null==(t=Ti(r,e.activeId))?void 0:t.id}));s=xn(yn({"aria-activedescendant":I},s),{ref:Ar(u,h,s.ref),onKeyDownCapture:y,onKeyUpCapture:x,onFocusCapture:S,onFocus:E,onBlurCapture:N,onKeyDown:A});const T=r.useState((e=>o&&(e.virtualFocus||null===e.activeId)));return s=oa(yn({focusable:T},s))}));Kr((function(e){return qr("div",ga(e))}));var va=Xr((function(t){var n=t,{store:r}=n,o=Cn(n,["store"]);const i=Ri();jn(r=r||i,!1);const a=r.useState((e=>"both"===e.orientation?void 0:e.orientation));return o=_r(o,(t=>e(Ai,{value:r,children:t})),[r]),r.composite&&(o=yn({focusable:!1},o)),o=yn({role:"tablist","aria-orientation":a},o),o=ga(yn({store:r},o))})),ba=Kr((function(e){return qr("div",va(e))}));function wa(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function ya(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function xa(e,t,n){return!(n||!1===t||e&&!t)}var Ca=Xr((function(t){var n=t,{store:r,alwaysVisible:o}=n,i=Cn(n,["store","alwaysVisible"]);const s=Qr();jn(r=r||s,!1);const l=m(null),c=Ir(i.id),[u,d]=v(null),f=r.useState("open"),p=r.useState("mounted"),h=r.useState("animated"),g=r.useState("contentElement"),b=Qo(r.disclosure,"contentElement");Pr((()=>{l.current&&(null==r||r.setContentElement(l.current))}),[r]),Pr((()=>{let e;return null==r||r.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==r||r.setState("animated",e))}}),[r]),Pr((()=>{if(h){if(null==g?void 0:g.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{d(f?"enter":p?"leave":null)}));d(null)}}),[h,g,f,p]),Pr((()=>{if(!r)return;if(!h)return;if(!u)return;if(!g)return;const e=()=>null==r?void 0:r.setState("animating",!1),t=()=>A(e);if("leave"===u&&f)return;if("enter"===u&&!f)return;if("number"==typeof h){return wa(h,t)}const{transitionDuration:n,animationDuration:o,transitionDelay:i,animationDelay:a}=getComputedStyle(g),{transitionDuration:s="0",animationDuration:l="0",transitionDelay:c="0",animationDelay:d="0"}=b?getComputedStyle(b):{},p=ya(i,a,c,d)+ya(n,o,s,l);if(!p)return"enter"===u&&r.setState("animated",!1),void e();return wa(Math.max(p-1e3/60,0),t)}),[r,h,g,b,f,u]),i=_r(i,(t=>e(no,{value:r,children:t})),[r]);const w=xa(p,i.hidden,o),y=i.style,x=a((()=>w?xn(yn({},y),{display:"none"}):y),[w,y]);return $n(i=xn(yn({id:c,"data-open":f||void 0,"data-enter":"enter"===u||void 0,"data-leave":"leave"===u||void 0,hidden:w},i),{ref:Ar(c?r.setContentElement:null,l,i.ref),style:x}))})),Sa=Kr((function(e){return qr("div",Ca(e))}));function ka(e={}){const t=_o(e.store,Do(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=Wn(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=Wn(e.animated,null==n?void 0:n.animated,!1),i=Mo({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:Wn(null==n?void 0:n.contentElement,null),disclosureElement:Wn(null==n?void 0:n.disclosureElement,null)},t);return Ao(i,(()=>Oo(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Ao(i,(()=>To(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Ao(i,(()=>Oo(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),In(An({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Ea(e,t,n){return Lr(t,[n.store,n.disclosure]),ei(e,n,"open","setOpen"),ei(e,n,"mounted","setMounted"),ei(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Pa(e={}){const[t,n]=ti(ka,e);return Ea(t,n,e)}Kr((function(t){var n=t,{unmountOnHide:r}=n,o=Cn(n,["unmountOnHide"]);const i=Qr();return!1===Qo(o.store||i,(e=>!r||(null==e?void 0:e.mounted)))?null:e(Sa,yn({},o))}));var Na=Xr((function(t){var n=t,{store:r,unmountOnHide:o,tabId:i,getItem:a,scrollRestoration:s,scrollElement:l}=n,u=Cn(n,["store","unmountOnHide","tabId","getItem","scrollRestoration","scrollElement"]);const d=Ri();jn(r=r||d,!1);const f=m(null),p=Ir(u.id),h=Qo(r.panels,(()=>{var e;return i||(null==(e=null==r?void 0:r.panels.item(p))?void 0:e.tabId)})),b=Pa({open:Qo(r,(e=>!!h&&e.selectedId===h))}),w=Qo(b,"mounted"),y=m(new Map),x=Rr((()=>{const e=f.current;return e?l?"function"==typeof l?l(e):"current"in l?l.current:l:e:null}));g((()=>{var e,t;if(!s)return;if(!w)return;const n=x();if(!n)return;if("reset"===s)return void n.scroll(0,0);if(!h)return;const r=y.current.get(h);n.scroll(null!=(e=null==r?void 0:r.x)?e:0,null!=(t=null==r?void 0:r.y)?t:0);const o=()=>{y.current.set(h,{x:n.scrollLeft,y:n.scrollTop})};return n.addEventListener("scroll",o),()=>{n.removeEventListener("scroll",o)}}),[s,w,h,x,r]);const[C,S]=v(!1);g((()=>{const e=f.current;if(!e)return;const t=Hi(e);S(!!t.length)}),[]);const k=c((e=>{const t=xn(yn({},e),{id:p||e.id,tabId:i});return a?a(t):t}),[p,i,a]),E=u.onKeyDown,P=Rr((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!(null==r?void 0:r.composite))return;const t={ArrowLeft:r.previous,ArrowRight:r.next,Home:r.first,End:r.last}[e.key];if(!t)return;const{selectedId:n}=r.getState(),o=t({activeId:n});o&&(e.preventDefault(),r.move(o))}));return u=_r(u,(t=>e(Ai,{value:r,children:t})),[r]),u=xn(yn({id:p,role:"tabpanel","aria-labelledby":h||void 0},u),{children:o&&!w?null:u.children,ref:Ar(f,u.ref),onKeyDown:P}),u=oa(yn({focusable:!r.composite&&!C},u)),u=Ca(yn({store:b},u)),u=Di(xn(yn({store:r.panels},u),{getItem:k}))})),Ra=Kr((function(e){return qr("div",Na(e))})),Ma=Xr((function(e){var t=e,{orientation:n="horizontal"}=t,r=Cn(t,["orientation"]);return r=yn({role:"separator","aria-orientation":n},r)}));Kr((function(e){return qr("hr",Ma(e))}));var Aa=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=ho();jn(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=Ma(xn(yn({},r),{orientation:i}))}));function Ia(e={}){return ka(e)}function Ta(e,t,n){return Ea(e,t,n)}function Oa(e={}){var t=e,{popover:n}=t,r=Tn(t,["popover"]);const o=_o(r.store,Do(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Ia(In(An({},r),{store:o})),s=Wn(r.placement,null==i?void 0:i.placement,"bottom"),l=Mo(In(An({},a.getState()),{placement:s,currentPlacement:s,anchorElement:Wn(null==i?void 0:i.anchorElement,null),popoverElement:Wn(null==i?void 0:i.popoverElement,null),arrowElement:Wn(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return In(An(An({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}function La(e,t,n){return Lr(t,[n.popover]),ei(e,n,"placement"),Ta(e,t,n)}function Da(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Oa(In(An({},e),{placement:Wn(e.placement,null==n?void 0:n.placement,"bottom")})),o=Wn(e.timeout,null==n?void 0:n.timeout,500),i=Mo(In(An({},r.getState()),{timeout:o,showTimeout:Wn(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:Wn(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:Wn(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return In(An(An({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function Fa(e,t,n){return ei(e,n,"timeout"),ei(e,n,"showTimeout"),ei(e,n,"hideTimeout"),La(e,t,n)}function _a(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Da(In(An({},e),{placement:Wn(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:Wn(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Mo(In(An({},r.getState()),{type:Wn(e.type,null==n?void 0:n.type,"description"),skipTimeout:Wn(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return An(An({},r),o)}function Va(e={}){const[t,n]=ti(_a,e);return function(e,t,n){return ei(e,n,"type"),ei(e,n,"skipTimeout"),Fa(e,t,n)}(t,n,e)}Kr((function(e){return qr("hr",Aa(e))}));var za=Yr([lo],[co]);za.useContext,za.useScopedContext;var ja=za.useProviderContext,Ha=za.ContextProvider,Ba=za.ScopedContextProvider,$a=Yr([Ha],[Ba]),Wa=$a.useContext,Ua=$a.useProviderContext,Ka=$a.ContextProvider,Ga=$a.ScopedContextProvider;function qa(e){return[e.clientX,e.clientY]}function Xa(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[c,u]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r===l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function Ya(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),c=[t];return s?("top"!==l&&c.push(["left"===s?a:o,r]),c.push(["left"===s?o:a,r]),c.push(["left"===s?o:a,i]),"bottom"!==l&&c.push(["left"===s?a:o,i])):"top"===l?(c.push([a,r]),c.push([a,i]),c.push([o,i]),c.push([o,r])):(c.push([a,i]),c.push([a,r]),c.push([o,r]),c.push([o,i])),c}var Za=i(null),Qa=Xr((function(e){return e=xn(yn({},e),{style:yn({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})}));Kr((function(e){return qr("span",Qa(e))}));var Ja=Xr((function(e){return e=xn(yn({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:yn({position:"fixed",top:0,left:0},e.style)}),e=Qa(e)})),es=Kr((function(e){return qr("span",Ja(e))}));function ts(e){queueMicrotask((()=>{null==e||e.focus()}))}var ns=Xr((function(r){var o=r,{preserveTabOrder:i,preserveTabOrderAnchor:a,portalElement:s,portalRef:c,portal:u=!0}=o,d=Cn(o,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const f=m(null),p=Ar(f,d.ref),h=l(Za),[b,w]=v(null),[y,x]=v(null),C=m(null),S=m(null),k=m(null),E=m(null);return Pr((()=>{const e=f.current;if(!e||!u)return void w(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:Xn(e).createElement("div")}(e,s);if(!t)return void w(null);const n=t.isConnected;if(!n){const n=h||function(e){return Xn(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}()),w(t),Un(c,t),n?void 0:()=>{t.remove(),Un(c,null)}}),[u,s,h,c]),Pr((()=>{if(!u)return;if(!i)return;if(!a)return;const e=Xn(a).createElement("span");return e.style.position="fixed",a.insertAdjacentElement("afterend",e),x(e),()=>{e.remove(),x(null)}}),[u,i,a]),g((()=>{if(!b)return;if(!i)return;let e=0;const t=t=>{if(!yr(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}(b);e=requestAnimationFrame((()=>{!function(e,t){const n=Hi(e,t);for(const e of n)Gi(e)}(b,!0)}))};return b.addEventListener("focusin",t,!0),b.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),b.removeEventListener("focusin",t,!0),b.removeEventListener("focusout",t,!0)}}),[b,i]),d=_r(d,(r=>{if(r=e(Za.Provider,{value:b||h,children:r}),!u)return r;if(!b)return e("span",{ref:p,id:d.id,style:{position:"fixed"},hidden:!0});r=t(n,{children:[i&&b&&e(es,{ref:S,"data-focus-trap":d.id,className:"__focus-trap-inner-before",onFocus:e=>{yr(e,b)?ts(Bi()):ts(C.current)}}),r,i&&b&&e(es,{ref:k,"data-focus-trap":d.id,className:"__focus-trap-inner-after",onFocus:e=>{yr(e,b)?ts($i()):ts(E.current)}})]}),b&&(r=I(r,b));let o=t(n,{children:[i&&b&&e(es,{ref:C,"data-focus-trap":d.id,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===E.current)&&yr(e,b)?ts(S.current):ts($i())}}),i&&e("span",{"aria-owns":null==b?void 0:b.id,style:{position:"fixed"}}),i&&b&&e(es,{ref:E,"data-focus-trap":d.id,className:"__focus-trap-outer-after",onFocus:e=>{if(yr(e,b))ts(k.current);else{const e=Bi();if(e===S.current)return void requestAnimationFrame((()=>{var e;return null==(e=Bi())?void 0:e.focus()}));ts(e)}}})]});return y&&i&&(o=I(o,y)),t(n,{children:[o,r]})}),[b,h,u,d.id,i,y]),d=xn(yn({},d),{ref:p})}));Kr((function(e){return qr("div",ns(e))}));var rs=i(0);function os({level:t,children:n}){const r=l(rs),o=Math.max(Math.min(t||r+1,6),1);return e(rs.Provider,{value:o,children:n})}var is=Xr((function(t){var n=t,{autoFocusOnShow:r=!0}=n,o=Cn(n,["autoFocusOnShow"]);return o=_r(o,(t=>e(Fi.Provider,{value:r,children:t})),[r])}));Kr((function(e){return qr("div",is(e))}));var as=new WeakMap;function ss(e,t,n){as.has(e)||as.set(e,new Map);const r=as.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function ls(e,t,n){return ss(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function cs(e,t,n){return ss(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function us(e,t){if(!e)return()=>{};return ss(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var ds=["SCRIPT","STYLE"];function fs(e){return`__ariakit-dialog-snapshot-${e}`}function ps(e,t,n){return!ds.includes(t.tagName)&&(!!function(e,t){const n=Xn(t),r=fs(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Qn(t,e))))}function hs(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),a=Xn(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)ps(e,r,t)&&n(r,s);o=o.parentElement}}}function ms(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}function gs(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function vs(e,t=""){return _n(cs(e,gs("",!0),!0),cs(e,gs(t,!0),!0))}function bs(e,t){if(e[gs(t,!0)])return!0;const n=gs(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function ws(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));hs(e,t,(t=>{ms(t,...r)||n.unshift(function(e,t=""){return _n(cs(e,gs(),!0),cs(e,gs(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(vs(t,e))}));return()=>{for(const e of n)e()}}function ys({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Rr(n),a=Qo(e,"open"),s=m(!1);Pr((()=>{if(!a)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{s.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,a,o]),g((()=>{if(!a)return;return Cr(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Qn(Xn(e).body,e)}(o))return;if(Qn(n,o))return;if(function(e,t){if(!e)return!1;if(Qn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=Xn(e).getElementById(n);if(t)return Qn(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;var a;s.current&&!bs(o,n.id)||((a=o)&&a[Yi]||i(t))}),r)}),[a,r])}function xs(e,t){return"function"==typeof e?e(t):!!e}function Cs(e,t,n){const r=function(e){const t=m();return g((()=>{if(e)return Cr("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(Qo(e,"open")),o={store:e,domReady:n,capture:!0};ys(xn(yn({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&nr(i)&&bs(i,null==o?void 0:o.id)&&xs(t,n)&&e.hide()}})),ys(xn(yn({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==Xn(r)&&xs(t,n)&&e.hide()}})),ys(xn(yn({},o),{type:"contextmenu",listener:n=>{xs(t,n)&&e.hide()}}))}var Ss=i({});function ks(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=Dr(),a=c((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=Xn(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return g((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=Xn(n);if(a())return o.setAttribute(e,t),()=>o.removeAttribute(e);const s=new MutationObserver((()=>A(i)));return s.observe(o,{attributeFilter:[e]}),()=>s.disconnect()}),[o,r,t,n,a,e]),a}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});g((()=>{if(!r())return;if(!e)return;const t=Xn(e),n=Yn(e),{documentElement:o,body:i}=t,a=o.style.getPropertyValue("--scrollbar-width"),s=a?Number.parseInt(a):n.innerWidth-o.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),c=fr()&&!(qn&&navigator.platform.startsWith("Mac")&&!dr());return _n((d="--scrollbar-width",f=`${s}px`,(u=o)?ss(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:a}=n,c=null!=(e=null==a?void 0:a.offsetLeft)?e:0,u=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=us(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo({left:r,top:o,behavior:"instant"})}})():us(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[r,e])}function Es(){return"inert"in HTMLElement.prototype}function Ps(e,t){if(!("style"in e))return On;if(Es())return cs(e,"inert",!0);const n=Hi(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&Qn(t,e))))return On;const n=ss(e,"focus",(()=>(e.focus=On,()=>{delete e.focus})));return _n(ls(e,"tabindex","-1"),n)}));return _n(...n,function(e){return ls(e,"aria-hidden","true")}(e),us(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}Xr((function(e){return e}));var Ns=Kr((function(e){return qr("div",e)}));function Rs({store:t,backdrop:n,alwaysVisible:r,hidden:o}){const i=m(null),a=Pa({disclosure:t}),s=Qo(t,"contentElement");g((()=>{const e=i.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),Pr((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=i.current;return t?vs(t,e):void 0}),[s]);const l=Ca({ref:i,store:a,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:r,hidden:null!=o?o:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!n)return null;if(f(n))return e(Ns,xn(yn({},l),{render:n}));const c="boolean"!=typeof n?n:"div";return e(Ns,xn(yn({},l),{render:e(c,{})}))}Object.assign(Ns,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Kr((function(e){return qr(t,e)})),e)),{}));var Ms=pr();function As(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?Vi(n)?n:null:n:null}var Is=Xr((function(r){var o=r,{store:i,open:s,onClose:u,focusable:d=!0,modal:f=!0,portal:p=!!f,backdrop:h=!!f,hideOnEscape:b=!0,hideOnInteractOutside:w=!0,getPersistentElements:y,preventBodyScroll:x=!!f,autoFocusOnShow:C=!0,autoFocusOnHide:S=!0,initialFocus:k,finalFocus:E,unmountOnHide:P,unstable_treeSnapshotKey:N}=o,R=Cn(o,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const M=eo(),A=m(null),I=function(e={}){const[t,n]=ti(Ia,e);return Ta(t,n,e)}({store:i||M,open:s,setOpen(e){if(e)return;const t=A.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});u&&t.addEventListener("close",u,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&I.setOpen(!0)}}),{portalRef:T,domReady:O}=Vr(p,R.portalRef),L=R.preserveTabOrder,D=Qo(I,(e=>L&&!f&&e.mounted)),F=Ir(R.id),_=Qo(I,"open"),V=Qo(I,"mounted"),z=Qo(I,"contentElement"),j=xa(V,R.hidden,R.alwaysVisible);ks(z,F,x&&!j),Cs(I,w,O);const{wrapElement:H,nestedDialogs:B}=function(t){const n=l(Ss),[r,o]=v([]),i=c((e=>{var t;return o((t=>[...t,e])),_n(null==(t=n.add)?void 0:t.call(n,e),(()=>{o((t=>t.filter((t=>t!==e))))}))}),[n]);Pr((()=>Oo(t,["open","contentElement"],(e=>{var r;if(e.open&&e.contentElement)return null==(r=n.add)?void 0:r.call(n,t)}))),[t,n]);const s=a((()=>({store:t,add:i})),[t,i]);return{wrapElement:c((t=>e(Ss.Provider,{value:s,children:t})),[s]),nestedDialogs:r}}(I);R=_r(R,H,[H]),Pr((()=>{if(!_)return;const e=A.current,t=Zn(e,!0);t&&"BODY"!==t.tagName&&(e&&Qn(e,t)||I.setDisclosureElement(t))}),[I,_]),Ms&&g((()=>{if(!V)return;const{disclosureElement:e}=I.getState();if(!e)return;if(!er(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),xr(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Ki(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[I,V]),g((()=>{if(!V)return;if(!O)return;const e=A.current;if(!e)return;const t=Yn(e),n=t.visualViewport||t,r=()=>{var n,r;const o=null!=(r=null==(n=t.visualViewport)?void 0:n.height)?r:t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[V,O]),g((()=>{if(!f)return;if(!V)return;if(!O)return;const e=A.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=Xn(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,I.hide)}),[I,f,V,O]),Pr((()=>{if(!Es())return;if(_)return;if(!V)return;if(!O)return;const e=A.current;return e?Ps(e):void 0}),[_,V,O]);const $=_&&O;Pr((()=>{if(!F)return;if(!$)return;const e=A.current;return function(e,t){const{body:n}=Xn(t[0]),r=[];return hs(e,t,(t=>{r.push(cs(t,fs(e),!0))})),_n(cs(n,fs(e),!0),(()=>{for(const e of r)e()}))}(F,[e])}),[F,$,N]);const W=Rr(y);Pr((()=>{if(!F)return;if(!$)return;const{disclosureElement:e}=I.getState(),t=[A.current,...W()||[],...B.map((e=>e.getState().contentElement))];return f?_n(ws(F,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return hs(e,t,(e=>{ms(e,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some((e=>n===e)))}(e,...r)||n.unshift(Ps(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&Qn(t,e)))||n.unshift(ls(e,"role","none")))})),()=>{for(const e of n)e()}}(F,t)):ws(F,[e,...t])}),[F,I,$,W,B,f,N]);const U=!!C,K=Fr(C),[G,q]=v(!1);g((()=>{if(!_)return;if(!U)return;if(!O)return;if(!(null==z?void 0:z.isConnected))return;const e=As(k,!0)||z.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=Hi(e,t,n);return r||null}(z,!0,p&&D)||z,t=Vi(e);K(t?e:null)&&(q(!0),queueMicrotask((()=>{e.focus(),Ms&&t&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[_,U,O,z,k,p,D,K]);const X=!!S,Y=Fr(S),[Z,Q]=v(!1);g((()=>{if(_)return Q(!0),()=>Q(!1)}),[_]);const J=c(((e,t=!0)=>{const{disclosureElement:n}=I.getState();if(function(e){const t=Zn();return!(!t||e&&Qn(e,t)||!Vi(t))}(e))return;let r=As(E)||n;if(null==r?void 0:r.id){const e=Xn(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!Vi(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=Xn(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&Vi(r);o||!t?Y(o?r:null)&&o&&(null==r||r.focus({preventScroll:!0})):requestAnimationFrame((()=>J(e,!1)))}),[I,E,Y]),ee=m(!1);Pr((()=>{if(_)return;if(!Z)return;if(!X)return;const e=A.current;ee.current=!0,J(e)}),[_,Z,O,X,J]),g((()=>{if(!Z)return;if(!X)return;const e=A.current;return()=>{ee.current?ee.current=!1:J(e)}}),[Z,X,J]);const te=Fr(b);g((()=>{if(!O)return;if(!V)return;return Cr("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=A.current;if(!t)return;if(bs(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=I.getState();("BODY"===n.tagName||Qn(t,n)||!r||Qn(r,n))&&te(e)&&I.hide()}),!0)}),[I,O,V,te]);const ne=(R=_r(R,(t=>e(os,{level:f?1:void 0,children:t})),[f])).hidden,re=R.alwaysVisible;R=_r(R,(r=>h?t(n,{children:[e(Rs,{store:I,backdrop:h,hidden:ne,alwaysVisible:re}),r]}):r),[I,h,ne,re]);const[oe,ie]=v(),[ae,se]=v();return R=_r(R,(t=>e(no,{value:I,children:e(ro.Provider,{value:ie,children:e(oo.Provider,{value:se,children:t})})})),[I]),R=xn(yn({id:F,"data-dialog":"",role:"dialog",tabIndex:d?-1:void 0,"aria-labelledby":oe,"aria-describedby":ae},R),{ref:Ar(A,R.ref)}),R=is(xn(yn({},R),{autoFocusOnShow:G})),R=Ca(yn({store:I},R)),R=oa(xn(yn({},R),{focusable:d})),R=ns(xn(yn({portal:p},R),{portalRef:T,preserveTabOrder:D}))}));function Ts(t,n=eo){return Kr((function(r){const o=n();return Qo(r.store||o,(e=>!r.unmountOnHide||(null==e?void 0:e.mounted)||!!r.open))?e(t,yn({},r)):null}))}Ts(Kr((function(e){return qr("div",Is(e))})),eo);const Os=["top","right","bottom","left"],Ls=Math.min,Ds=Math.max,Fs=Math.round,_s=Math.floor,Vs=e=>({x:e,y:e}),zs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Hs(e,t,n){return Ds(e,Ls(t,n))}function Bs(e,t){return"function"==typeof e?e(t):e}function $s(e){return e.split("-")[0]}function Ws(e){return e.split("-")[1]}function Us(e){return"x"===e?"y":"x"}function Ks(e){return"y"===e?"height":"width"}function Gs(e){return["top","bottom"].includes($s(e))?"y":"x"}function qs(e){return Us(Gs(e))}function Xs(e){return e.replace(/start|end/g,(e=>js[e]))}function Ys(e){return e.replace(/left|right|bottom|top/g,(e=>zs[e]))}function Zs(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Qs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Js(e,t,n){let{reference:r,floating:o}=e;const i=Gs(t),a=qs(t),s=Ks(a),l=$s(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.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-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ws(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function el(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Bs(t,e),h=Zs(p),m=s[f?"floating"===d?"reference":"floating":d],g=Qs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+h.top)/w.y,bottom:(y.bottom-g.bottom+h.bottom)/w.y,left:(g.left-y.left+h.left)/w.x,right:(y.right-g.right+h.right)/w.x}}function tl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nl(e){return Os.some((t=>e[t]>=0))}function rl(){return"undefined"!=typeof window}function ol(e){return sl(e)?(e.nodeName||"").toLowerCase():"#document"}function il(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function al(e){var t;return null==(t=(sl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function sl(e){return!!rl()&&(e instanceof Node||e instanceof il(e).Node)}function ll(e){return!!rl()&&(e instanceof Element||e instanceof il(e).Element)}function cl(e){return!!rl()&&(e instanceof HTMLElement||e instanceof il(e).HTMLElement)}function ul(e){return!(!rl()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof il(e).ShadowRoot)}function dl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fl(e){return["table","td","th"].includes(ol(e))}function pl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function hl(e){const t=ml(),n=ll(e)?vl(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ml(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gl(e){return["html","body","#document"].includes(ol(e))}function vl(e){return il(e).getComputedStyle(e)}function bl(e){return ll(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wl(e){if("html"===ol(e))return e;const t=e.assignedSlot||e.parentNode||ul(e)&&e.host||al(e);return ul(t)?t.host:t}function yl(e){const t=wl(e);return gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:cl(t)&&dl(t)?t:yl(t)}function xl(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=yl(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=il(o);if(i){const e=Cl(a);return t.concat(a,a.visualViewport||[],dl(o)?o:[],e&&n?xl(e):[])}return t.concat(o,xl(o,[],n))}function Cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sl(e){const t=vl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cl(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Fs(n)!==i||Fs(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function kl(e){return ll(e)?e:e.contextElement}function El(e){const t=kl(e);if(!cl(t))return Vs(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sl(t);let a=(i?Fs(n.width):n.width)/r,s=(i?Fs(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Pl=Vs(0);function Nl(e){const t=il(e);return ml()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pl}function Rl(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=kl(e);let a=Vs(1);t&&(r?ll(r)&&(a=El(r)):a=El(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==il(e))&&t}(i,n,r)?Nl(i):Vs(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=il(i),t=r&&ll(r)?il(r):r;let n=e,o=Cl(n);for(;o&&r&&t!==n;){const e=El(o),t=o.getBoundingClientRect(),r=vl(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=il(o),o=Cl(n)}}return Qs({width:u,height:d,x:l,y:c})}function Ml(e,t){const n=bl(e).scrollLeft;return t?t.left+n:Rl(al(e)).left+n}function Al(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=il(e),r=al(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ml();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=al(e),n=bl(e),r=e.ownerDocument.body,o=Ds(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ds(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ml(e);const s=-n.scrollTop;return"rtl"===vl(r).direction&&(a+=Ds(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(al(e));else if(ll(t))r=function(e,t){const n=Rl(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cl(e)?El(e):Vs(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Nl(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Qs(r)}function Il(e,t){const n=wl(e);return!(n===t||!ll(n)||gl(n))&&("fixed"===vl(n).position||Il(n,t))}function Tl(e,t,n){const r=cl(t),o=al(t),i="fixed"===n,a=Rl(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Vs(0);if(r||!r&&!i)if(("body"!==ol(t)||dl(o))&&(s=bl(t)),r){const e=Rl(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ml(o));let c=0,u=0;if(o&&!r&&!i){const e=o.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Ml(o,e)}return{x:a.left+s.scrollLeft-l.x-c,y:a.top+s.scrollTop-l.y-u,width:a.width,height:a.height}}function Ol(e){return"static"===vl(e).position}function Ll(e,t){if(!cl(e)||"fixed"===vl(e).position)return null;if(t)return t(e);let n=e.offsetParent;return al(e)===n&&(n=n.ownerDocument.body),n}function Dl(e,t){const n=il(e);if(pl(e))return n;if(!cl(e)){let t=wl(e);for(;t&&!gl(t);){if(ll(t)&&!Ol(t))return t;t=wl(t)}return n}let r=Ll(e,t);for(;r&&fl(r)&&Ol(r);)r=Ll(r,t);return r&&gl(r)&&Ol(r)&&!hl(r)?n:r||function(e){let t=wl(e);for(;cl(t)&&!gl(t);){if(hl(t))return t;if(pl(t))return null;t=wl(t)}return null}(e)||n}const Fl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=al(r),s=!!t&&pl(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Vs(1);const u=Vs(0),d=cl(r);if((d||!d&&!i)&&(("body"!==ol(r)||dl(a))&&(l=bl(r)),cl(r))){const e=Rl(r);c=El(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:al,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?pl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=xl(e,[],!1).filter((e=>ll(e)&&"body"!==ol(e))),o=null;const i="fixed"===vl(e).position;let a=i?wl(e):e;for(;ll(a)&&!gl(a);){const t=vl(a),n=hl(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||dl(a)&&!n&&Il(e,a))?r=r.filter((e=>e!==a)):o=t,a=wl(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Al(t,n,o);return e.top=Ds(r.top,e.top),e.right=Ls(r.right,e.right),e.bottom=Ls(r.bottom,e.bottom),e.left=Ds(r.left,e.left),e}),Al(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Dl,getElementRects:async function(e){const t=this.getOffsetParent||Dl,n=this.getDimensions,r=await n(e.floating);return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Sl(e);return{width:t,height:n}},getScale:El,isElement:ll,isRTL:function(e){return"rtl"===vl(e).direction}};function _l(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=kl(e),u=o||i?[...c?xl(c):[],...xl(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=al(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-_s(u)+"px "+-_s(o.clientWidth-(c+d))+"px "+-_s(o.clientHeight-(u+f))+"px "+-_s(c)+"px",threshold:Ds(0,Ls(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Rl(e):null;return l&&function t(){const r=Rl(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Vl=el,zl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$s(n),s=Ws(n),l="y"===Gs(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Bs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},jl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Bs(e,t),c={x:n,y:r},u=await el(t,l),d=Gs($s(o)),f=Us(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=Hs(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=Hs(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Hl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Bs(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=$s(o),b=$s(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=f||(b||!m?[Ys(s)]:function(e){const t=Ys(e);return[Xs(e),t,Xs(t)]}(s));f||"none"===h||y.push(...function(e,t,n,r){const o=Ws(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}($s(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Xs)))),i}(s,m,h,w));const x=[s,...y],C=await el(t,g),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ws(e),o=qs(e),i=Ks(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ys(a)),[a,Ys(a)]}(o,a,w);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,P;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(P=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Bl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Bs(e,t),l=await el(t,s),c=$s(n),u=Ws(n),d="y"===Gs(n),{width:f,height:p}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=p-l[h],v=f-l[m],b=!t.middlewareData.shift;let w=g,y=v;if(d){const e=f-l.left-l.right;y=u||b?Ls(v,e):e}else{const e=p-l.top-l.bottom;w=u||b?Ls(g,e):e}if(b&&!u){const e=Ds(l.left,0),t=Ds(l.right,0),n=Ds(l.top,0),r=Ds(l.bottom,0);d?y=f-2*(0!==e||0!==t?e+t:Ds(l.left,l.right)):w=p-2*(0!==n||0!==r?n+r:Ds(l.top,l.bottom))}await a({...t,availableWidth:y,availableHeight:w});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},$l=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Bs(e,t);switch(r){case"referenceHidden":{const e=tl(await el(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:nl(e)}}}case"escaped":{const e=tl(await el(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:nl(e)}}}default:return{}}}}},Wl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Bs(e,t)||{};if(null==c)return{};const d=Zs(u),f={x:n,y:r},p=qs(o),h=Ks(p),m=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=C?C[w]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=s.floating[w]||i.floating[h]);const k=y/2-x/2,E=S/2-m[h]/2-1,P=Ls(d[v],E),N=Ls(d[b],E),R=P,M=S-m[h]-N,A=S/2-m[h]/2+k,I=Hs(R,A,M),T=!l.arrow&&null!=Ws(o)&&A!==I&&i.reference[h]/2-(A<R?P:N)-m[h]/2<0,O=T?A<R?A-R:A-M:0;return{[p]:f[p]+O,data:{[p]:I,centerOffset:A-I-O,...T&&{alignmentOffset:O}},reset:T}}}),Ul=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Bs(e,t),u={x:n,y:r},d=Gs(o),f=Us(d);let p=u[f],h=u[d];const m=Bs(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes($s(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Kl=(e,t,n)=>{const r=new Map,o={platform:Fl,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Js(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:b,reset:w}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Js(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};function Gl(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return xn(yn({},o),{toJSON:()=>o})}function ql(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return Gl();const{x:t,y:n,width:r,height:o}=e;return Gl(t,n,r,o)}(r):n.getBoundingClientRect()}}}function Xl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Yl(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Zl(e,t){return zl((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Ql(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return jn(!t||t.every(Xl),!1),Hl({padding:e.overflowPadding,fallbackPlacements:t})}function Jl(e){if(e.slide||e.overlap)return jl({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Ul()})}function ec(e){return Bl({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function tc(e,t){if(e)return Wl({element:e,padding:t.arrowPadding})}var nc=Xr((function(t){var n=t,{store:r,modal:o=!1,portal:i=!!o,preserveTabOrder:a=!0,autoFocusOnShow:s=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:p=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:b,arrowPadding:w=4,overflowPadding:y=8,getAnchorRect:x,updatePosition:C}=n,S=Cn(n,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const k=so();jn(r=r||k,!1);const E=r.useState("arrowElement"),P=r.useState("anchorElement"),N=r.useState("disclosureElement"),R=r.useState("popoverElement"),M=r.useState("contentElement"),A=r.useState("placement"),I=r.useState("mounted"),T=r.useState("rendered"),O=m(null),[L,D]=v(!1),{portalRef:F,domReady:_}=Vr(i,S.portalRef),V=Rr(x),z=Rr(C),j=!!C;Pr((()=>{if(!(null==R?void 0:R.isConnected))return;R.style.setProperty("--popover-overflow-padding",`${y}px`);const e=ql(P,V),t=async()=>{if(!I)return;E||(O.current=O.current||document.createElement("div"));const t=E||O.current,n=[Zl(t,{gutter:b,shift:d}),Ql({flip:u,overflowPadding:y}),Jl({slide:f,overlap:p,overflowPadding:y}),tc(t,{arrowPadding:w}),ec({sameWidth:h,fitViewport:g,overflowPadding:y})],o=await Kl(e,R,{placement:A,strategy:c?"fixed":"absolute",middleware:n});null==r||r.setState("currentPlacement",o.placement),D(!0);const i=Yl(o.x),a=Yl(o.y);if(Object.assign(R.style,{top:"0",left:"0",transform:`translate3d(${i}px,${a}px,0)`}),t&&o.middlewareData.arrow){const{x:e,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],i=t.clientWidth/2,a=t.clientHeight/2,s=null!=e?e+i:-i,l=null!=n?n+a:-a;R.style.setProperty("--popover-transform-origin",{top:`${s}px calc(100% + ${a}px)`,bottom:`${s}px ${-a}px`,left:`calc(100% + ${i}px) ${l}px`,right:`${-i}px ${l}px`}[r]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},n=_l(e,R,(async()=>{j?(await z({updatePosition:t}),D(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{D(!1),n()}}),[r,T,R,E,P,R,A,I,_,c,u,d,f,p,h,g,b,w,y,V,j,z]),Pr((()=>{if(!I)return;if(!_)return;if(!(null==R?void 0:R.isConnected))return;if(!(null==M?void 0:M.isConnected))return;const e=()=>{R.style.zIndex=getComputedStyle(M).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[I,_,R,M]);const H=c?"fixed":"absolute";return S=_r(S,(t=>e("div",xn(yn({},l),{style:yn({position:H,top:0,left:0,width:"max-content"},null==l?void 0:l.style),ref:null==r?void 0:r.setPopoverElement,children:t}))),[r,H,l]),S=_r(S,(t=>e(co,{value:r,children:t})),[r]),S=xn(yn({"data-placing":!L||void 0},S),{style:yn({position:"relative"},S.style)}),S=Is(xn(yn({store:r,modal:o,portal:i,preserveTabOrder:a,preserveTabOrderAnchor:N||P,autoFocusOnShow:L&&s},S),{portalRef:F}))}));Ts(Kr((function(e){return qr("div",nc(e))})),so);function rc(e,t,n,r){return!!Ui(t)||!!e&&(!!Qn(t,e)||(!(!n||!Qn(n,e))||!!(null==r?void 0:r.some((t=>rc(e,t,n))))))}var oc=i(null),ic=Xr((function(t){var n=t,{store:r,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:u=!!s}=n,d=Cn(n,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const f=ja();jn(r=r||f,!1);const p=m(null),[h,b]=v([]),w=m(0),y=m(null),{portalRef:x,domReady:C}=Vr(i,d.portalRef),S=jr(),k=!!s,E=Fr(s),P=!!u,N=Fr(u),R=r.useState("open"),M=r.useState("mounted");g((()=>{if(!C)return;if(!M)return;if(!k&&!P)return;const e=p.current;if(!e)return;return _n(Cr("mousemove",(t=>{if(!r)return;if(!S())return;const{anchorElement:n,hideTimeout:o,timeout:i}=r.getState(),a=y.current,[s]=t.composedPath(),l=n;if(rc(s,e,l,h))return y.current=s&&l&&Qn(l,s)?qa(t):null,window.clearTimeout(w.current),void(w.current=0);if(!w.current){if(a){const n=qa(t);if(Xa(n,Ya(e,a))){if(y.current=n,!N(t))return;return t.preventDefault(),void t.stopPropagation()}}E(t)&&(w.current=window.setTimeout((()=>{w.current=0,null==r||r.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(w.current)))}),[r,S,C,M,k,P,h,N,E]),g((()=>{if(!C)return;if(!M)return;if(!P)return;const e=e=>{const t=p.current;if(!t)return;const n=y.current;if(!n)return;const r=Ya(t,n);if(Xa(qa(e),r)){if(!N(e))return;e.preventDefault(),e.stopPropagation()}};return _n(Cr("mouseenter",e,!0),Cr("mouseover",e,!0),Cr("mouseout",e,!0),Cr("mouseleave",e,!0))}),[C,M,P,N]),g((()=>{C&&(R||null==r||r.setAutoFocusOnShow(!1))}),[r,C,R]);const A=Nr(R);g((()=>{if(C)return()=>{A.current||null==r||r.setAutoFocusOnShow(!1)}}),[r,C]);const I=l(oc);Pr((()=>{if(o)return;if(!i)return;if(!M)return;if(!C)return;const e=p.current;return e?null==I?void 0:I(e):void 0}),[o,i,M,C]);const T=c((e=>{b((t=>[...t,e]));const t=null==I?void 0:I(e);return()=>{b((t=>t.filter((t=>t!==e)))),null==t||t()}}),[I]);d=_r(d,(t=>e(Ba,{value:r,children:e(oc.Provider,{value:T,children:t})})),[r,T]),d=xn(yn({},d),{ref:Ar(p,d.ref)}),d=function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const[o,i]=v(!1),a=n.useState("mounted");g((()=>{a||i(!1)}),[a]);const s=r.onFocus,l=Rr((e=>{null==s||s(e),e.defaultPrevented||i(!0)})),c=m(null);return g((()=>Oo(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),xn(yn({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l})}(yn({store:r},d));const O=r.useState((e=>o||e.autoFocusOnShow));return d=nc(xn(yn({store:r,modal:o,portal:i,autoFocusOnShow:O},d),{portalRef:x,hideOnEscape:e=>!Hn(a,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==r||r.hide()}))})),!0)}))}));Ts(Kr((function(e){return qr("div",ic(e))})),ja);var ac=Xr((function(t){var n=t,{store:r,portal:o=!0,gutter:i=8,preserveTabOrder:a=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:l=!0}=n,c=Cn(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=Ua();jn(r=r||u,!1),c=_r(c,(t=>e(Ga,{value:r,children:t})),[r]);const d=r.useState((e=>"description"===e.type?"tooltip":"none"));return c=yn({role:d},c),c=ic(xn(yn({},c),{store:r,portal:o,gutter:i,preserveTabOrder:a,hideOnHoverOutside(e){if(Hn(s,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(Hn(l,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!Qn(t,e.target)}}))})),sc=Ts(Kr((function(e){return qr("div",ac(e))})),Ua);function lc(t={}){const n=Va(t);return e(Ka,{value:n,children:t.children})}var cc=Xr((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Cn(t,["store","showOnHover"]);const i=ja();jn(n=n||i,!1);const a=Bn(o),s=m(0);g((()=>()=>window.clearTimeout(s.current)),[]),g((()=>Cr("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(s.current),s.current=0)}),!0)),[n]);const l=o.onMouseMove,u=Fr(r),d=jr(),f=Rr((e=>{if(null==l||l(e),a)return;if(!n)return;if(e.defaultPrevented)return;if(s.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{s.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},c=null!=r?r:o;0===c?i():s.current=window.setTimeout(i,c)})),p=o.onClick,h=Rr((e=>{null==p||p(e),n&&(window.clearTimeout(s.current),s.current=0)})),v=c((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=xn(yn({},o),{ref:Ar(v,o.ref),onMouseMove:f,onClick:h}),o=oa(o)}));Kr((function(e){return qr("a",cc(e))}));var uc=Mo({activeStore:null});function dc(e){return()=>{const{activeStore:t}=uc.getState();t===e&&uc.setState("activeStore",null)}}var fc=Xr((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Cn(t,["store","showOnHover"]);const i=Ua();jn(n=n||i,!1);const a=m(!1);g((()=>Oo(n,["mounted"],(e=>{e.mounted||(a.current=!1)}))),[n]),g((()=>{if(n)return _n(dc(n),Oo(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=uc.getState();return e!==n&&(null==e||e.hide()),uc.setState("activeStore",n)}const t=setTimeout(dc(n),e.skipTimeout);return()=>clearTimeout(t)})))}),[n]);const s=o.onMouseEnter,l=Rr((e=>{null==s||s(e),a.current=!0})),c=o.onFocusVisible,u=Rr((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,f=Rr((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=uc.getState();a.current=!1,t===n&&uc.setState("activeStore",null)})),p=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=xn(yn({"aria-labelledby":"label"===p?h:void 0},o),{onMouseEnter:l,onFocusVisible:u,onBlur:f}),o=cc(yn({store:n,showOnHover(e){if(!a.current)return!1;if(Hn(r,e))return!1;const{activeStore:t}=uc.getState();return!t||(null==n||n.show(),!1)}},o))})),pc=Kr((function(e){return qr("div",fc(e))})),hc="M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z",mc=30,gc=mc/2,vc={top:`rotate(180 ${gc} ${gc})`,right:`rotate(-90 ${gc} ${gc})`,bottom:`rotate(0 ${gc} ${gc})`,left:`rotate(90 ${gc} ${gc})`};var bc=Xr((function(n){var r=n,{store:o,size:i=mc,borderWidth:s}=r,l=Cn(r,["store","size","borderWidth"]);const c=ao();jn(o=o||c,!1);const u=Qo(o,(e=>e.currentPlacement.split("-")[0])),d=Ir(),f=function(e){const[t,n]=v(),r=Qo(e,"contentElement");return Pr((()=>{if(!r)return;const e=Yn(r).getComputedStyle(r);n(e)}),[r]),t}(o),p=(null==f?void 0:f.getPropertyValue("background-color"))||"none",h=(null==f?void 0:f.getPropertyValue(`border-${u}-color`))||"none",m=a((()=>{if(null!=s)return s;if(!f)return 0;const e=function(e){var t;if(!e)return;return null==(t=e.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/))?void 0:t[1]}(f);if(e)return Number.parseInt(e);const t=f.getPropertyValue(`border-${u}-width`);return t?Number.parseInt(t):0}),[s,f,u]),g=2*m*(mc/i),b=vc[u],w=a((()=>e("svg",{display:"block",viewBox:"0 0 30 30",children:t("g",{transform:b,children:[e("path",{fill:"none",d:hc,mask:`url(#${d})`}),e("path",{stroke:"none",d:hc}),e("mask",{id:d,maskUnits:"userSpaceOnUse",children:e("rect",{x:"-15",y:"0",width:"60",height:"30",fill:"white",stroke:"black"})})]})})),[b,d]);return $n(l=xn(yn({children:w,"aria-hidden":!0},l),{ref:Ar(o.setArrowElement,l.ref),style:yn({position:"absolute",fontSize:i,width:"1em",height:"1em",pointerEvents:"none",fill:`var(--ak-layer, ${p})`,stroke:`var(--ak-layer-border, ${h})`,strokeWidth:g},l.style)}))}));Gr(Kr((function(e){return qr("div",bc(e))})));var wc=Xr((function(e){var t=e,{store:n,size:r=16}=t,o=Cn(t,["store","size"]);const i=Wa();return jn(n=n||i,!1),o=bc(yn({store:n,size:r},o))})),yc=Kr((function(e){return qr("div",wc(e))})),xc=Yr([go],[vo]),Cc=xc.useContext,Sc=xc.useScopedContext;i(void 0);var kc=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=so();return n=n||o,r=xn(yn({},r),{ref:Ar(null==n?void 0:n.setAnchorElement,r.ref)})}));Kr((function(e){return qr("div",kc(e))}));var Ec={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},Pc=Xr((function(t){var n=t,{store:r,placement:o}=n,i=Cn(n,["store","placement"]);const s=ao();jn(r=r||s,!1);const l=r.useState((e=>o||e.placement)).split("-")[0],c=Ec[l],u=a((()=>e("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:e("polyline",{points:c})})),[c]);return $n(i=xn(yn({children:u,"aria-hidden":!0},i),{style:yn({width:"1em",height:"1em",pointerEvents:"none"},i.style)}))}));Kr((function(e){return qr("span",Pc(e))}));var Nc="button",Rc=Xr((function(e){const t=m(null),n=Tr(t,Nc),[r,o]=v((()=>!!n&&er({tagName:n,type:e.type})));return g((()=>{t.current&&o(er(t.current))}),[]),e=xn(yn({role:r||"a"===n?void 0:"button"},e),{ref:Ar(t,e.ref)}),e=sa(e)}));Kr((function(e){const t=Rc(e);return qr(Nc,t)}));var Mc=Symbol("disclosure"),Ac=Xr((function(e){var t=e,{store:n,toggleOnClick:r=!0}=t,o=Cn(t,["store","toggleOnClick"]);const i=Qr();jn(n=n||i,!1);const a=m(null),[s,l]=v(!1),c=n.useState("disclosureElement"),u=n.useState("open");g((()=>{let e=c===a.current;(null==c?void 0:c.isConnected)||(null==n||n.setDisclosureElement(a.current),e=!0),l(u&&e)}),[c,n,u]);const d=o.onClick,f=Fr(r),[p,h]=zr(o,Mc,!0),b=Rr((e=>{null==d||d(e),e.defaultPrevented||p||f(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),w=n.useState("contentElement");return o=xn(yn(yn({"aria-expanded":s,"aria-controls":null==w?void 0:w.id},h),o),{ref:Ar(a,o.ref),onClick:b}),o=Rc(o)}));Kr((function(e){return qr("button",Ac(e))}));var Ic=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=eo();jn(n=n||o,!1);const i=n.useState("contentElement");return r=yn({"aria-haspopup":ar(i,"dialog")},r),r=Ac(yn({store:n},r))}));Kr((function(e){return qr("button",Ic(e))}));var Tc=Xr((function(t){var n=t,{store:r}=n,o=Cn(n,["store"]);const i=so();jn(r=r||i,!1);const a=o.onClick,s=Rr((e=>{null==r||r.setAnchorElement(e.currentTarget),null==a||a(e)}));return o=_r(o,(t=>e(co,{value:r,children:t})),[r]),o=xn(yn({},o),{onClick:s}),o=kc(yn({store:r},o)),o=Ic(yn({store:r},o))}));function Oc(e={}){var t=e,{combobox:n}=t,r=Tn(t,["combobox"]);const o=_o(r.store,Do(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o.getState(),a=di(In(An({},r),{store:o,virtualFocus:Wn(r.virtualFocus,i.virtualFocus,!0),includesBaseElement:Wn(r.includesBaseElement,i.includesBaseElement,!1),activeId:Wn(r.activeId,i.activeId,r.defaultActiveId,null),orientation:Wn(r.orientation,i.orientation,"vertical")})),s=Oa(In(An({},r),{store:o,placement:Wn(r.placement,i.placement,"bottom-start")})),l=new String(""),c=In(An(An({},a.getState()),s.getState()),{value:Wn(r.value,i.value,r.defaultValue,l),setValueOnMove:Wn(r.setValueOnMove,i.setValueOnMove,!1),labelElement:Wn(i.labelElement,null),selectElement:Wn(i.selectElement,null),listElement:Wn(i.listElement,null)}),u=Mo(c,a,s,o);return Ao(u,(()=>Oo(u,["value","items"],(e=>{if(e.value!==l)return;if(!e.items.length)return;const t=e.items.find((e=>!e.disabled&&null!=e.value));null!=(null==t?void 0:t.value)&&u.setState("value",t.value)})))),Ao(u,(()=>Oo(u,["mounted"],(e=>{e.mounted||u.setState("activeId",c.activeId)})))),Ao(u,(()=>Oo(u,["mounted","items","value"],(e=>{if(n)return;if(e.mounted)return;const t=ri(e.value),r=t[t.length-1];if(null==r)return;const o=e.items.find((e=>!e.disabled&&e.value===r));o&&u.setState("activeId",o.id)})))),Ao(u,(()=>Lo(u,["setValueOnMove","moves"],(e=>{const{mounted:t,value:n,activeId:r}=u.getState();if(!e.setValueOnMove&&t)return;if(Array.isArray(n))return;if(!e.moves)return;if(!r)return;const o=a.item(r);o&&!o.disabled&&null!=o.value&&u.setState("value",o.value)})))),In(An(An(An({},a),s),u),{combobox:n,setValue:e=>u.setState("value",e),setLabelElement:e=>u.setState("labelElement",e),setSelectElement:e=>u.setState("selectElement",e),setListElement:e=>u.setState("listElement",e)})}function Lc(e={}){e=function(e){const t=bi();return fi(e=xn(yn({},e),{combobox:void 0!==e.combobox?e.combobox:t}))}(e);const[t,n]=ti(Oc,e);return function(e,t,n){return Lr(t,[n.combobox]),ei(e,n,"value","setValue"),ei(e,n,"setValueOnMove"),Object.assign(La(pi(e,t,n),t,n),{combobox:n.combobox})}(t,n,e)}Kr((function(e){return qr("button",Tc(e))}));var Dc=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=xo();return r=Pc(yn({store:n=n||o},r))})),Fc=Kr((function(e){return qr("span",Dc(e))})),_c="";function Vc(){_c=""}function zc(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children||"value"in e&&e.value;return!!r&&Vn(r).trim().toLowerCase().startsWith(t.toLowerCase())}function jc(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&zc(r,t)?_c!==t&&zc(r,_c)?e:(_c=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Ii]:[],...e.slice(0,r)]}(e.filter((e=>zc(e,_c))),n).filter((e=>e.id!==n))):e}var Hc=Xr((function(e){var t=e,{store:n,typeahead:r=!0}=t,o=Cn(t,["store","typeahead"]);const i=ho();jn(n=n||i,!1);const a=o.onKeyDownCapture,s=m(0),l=Rr((e=>{if(null==a||a(e),e.defaultPrevented)return;if(!r)return;if(!n)return;if(!function(e){const t=e.target;return(!t||!rr(t))&&(!(" "!==e.key||!_c.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Vc();const{renderedItems:t,items:o,activeId:i,id:l}=n.getState();let c=function(e){return e.filter((e=>!e.disabled))}(o.length>t.length?o:t);const u=`[data-offscreen-id="${l}"]`,d=Xn(e.currentTarget).querySelectorAll(u);for(const e of d){const t="true"===e.ariaDisabled||"disabled"in e&&!!e.disabled;c.push({id:e.id,element:e,disabled:t})}if(d.length&&(c=ur(c,(e=>e.element))),!function(e,t){if(mr(e))return!0;const n=e.target;return!!n&&t.some((e=>e.element===n))}(e,c))return Vc();e.preventDefault(),window.clearTimeout(s.current),s.current=window.setTimeout((()=>{_c=""}),500);const f=e.key.toLowerCase();_c+=f,c=jc(c,f,i);const p=c.find((e=>zc(e,_c)));p?n.move(p.id):Vc()}));return $n(o=xn(yn({},o),{onKeyDownCapture:l}))}));Kr((function(e){return qr("div",Hc(e))}));function Bc(e,t){return()=>{const n=t();if(!n)return;let r=0,o=e.item(n);const i=o;for(;o&&null==o.value;){const n=t(++r);if(!n)return;if(o=e.item(n),o===i)break}return null==o?void 0:o.id}}var $c=Xr((function(r){var o=r,{store:i,name:s,form:l,required:c,showOnKeyDown:u=!0,moveOnKeyDown:d=!0,toggleOnPress:f=!0,toggleOnClick:p=f}=o,h=Cn(o,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const b=So();jn(i=i||b,!1);const w=h.onKeyDown,y=Fr(u),x=Fr(d),C=i.useState("placement").split("-")[0],S=i.useState("value"),k=Array.isArray(S),E=Rr((e=>{var t;if(null==w||w(e),e.defaultPrevented)return;if(!i)return;const{orientation:n,items:r,activeId:o}=i.getState(),a="horizontal"!==n,s="vertical"!==n,l=!!(null==(t=r.find((e=>!e.disabled&&null!=e.value)))?void 0:t.rowId),c={ArrowUp:(l||a)&&Bc(i,i.up),ArrowRight:(l||s)&&Bc(i,i.next),ArrowDown:(l||a)&&Bc(i,i.down),ArrowLeft:(l||s)&&Bc(i,i.previous)}[e.key];c&&x(e)&&(e.preventDefault(),i.move(c()));const u="top"===C||"bottom"===C;({ArrowDown:u,ArrowUp:u,ArrowLeft:"left"===C,ArrowRight:"right"===C})[e.key]&&y(e)&&(e.preventDefault(),i.move(o),xr(e.currentTarget,"keyup",i.show))}));h=_r(h,(t=>e(Eo,{value:i,children:t})),[i]);const[P,N]=v(!1),R=m(!1);g((()=>{const e=R.current;R.current=!1,e||N(!1)}),[S]);const M=i.useState((e=>{var t;return null==(t=e.labelElement)?void 0:t.id})),A=h["aria-label"],I=h["aria-labelledby"]||M,T=i.useState((e=>{if(s)return e.items})),O=a((()=>[...new Set(null==T?void 0:T.map((e=>e.value)).filter((e=>null!=e)))]),[T]);h=_r(h,(r=>s?t(n,{children:[t("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":A,"aria-labelledby":I,name:s,form:l,required:c,disabled:h.disabled,value:S,multiple:k,onFocus:()=>{var e;return null==(e=null==i?void 0:i.getState().selectElement)?void 0:e.focus()},onChange:e=>{var t;R.current=!0,N(!0),null==i||i.setValue(k?(t=e.target,Array.from(t.selectedOptions).map((e=>e.value))):e.target.value)},children:[ri(S).map((t=>null==t||O.includes(t)?null:e("option",{value:t,children:t},t))),O.map((t=>e("option",{value:t,children:t},t)))]}),r]}):r),[i,A,I,s,l,c,S,k,O,h.disabled]);const L=t(n,{children:[S,e(Fc,{})]}),D=i.useState("contentElement");return h=xn(yn({role:"combobox","aria-autocomplete":"none","aria-labelledby":M,"aria-haspopup":ar(D,"listbox"),"data-autofill":P||void 0,"data-name":s,children:L},h),{ref:Ar(i.setSelectElement,h.ref),onKeyDown:E}),h=Tc(yn({store:i,toggleOnClick:p},h)),h=Hc(yn({store:i},h))})),Wc=Kr((function(e){return qr("button",$c(e))}));function Uc(t={}){const n=Lc(t);return e(ko,{value:n,children:t.children})}var Kc=i(!1),Gc=e("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:e("polyline",{points:"4,8 7,12 12,4"})});var qc=Xr((function(e){var t=e,{store:n,checked:r}=t,o=Cn(t,["store","checked"]);const i=l(Kc),a=function(e){return e.checked?e.children||Gc:"function"==typeof e.children?e.children:null}({checked:r=null!=r?r:i,children:o.children});return $n(o=xn(yn({"aria-hidden":!0},o),{children:a,style:yn({width:"1em",height:"1em",pointerEvents:"none"},o.style)}))}));Kr((function(e){return qr("span",qc(e))}));var Xc=Xr((function(e){var t=e,{store:n,checked:r}=t,o=Cn(t,["store","checked"]);const i=l(Po);return r=null!=r?r:i,o=qc(xn(yn({},o),{checked:r}))})),Yc=Kr((function(e){return qr("span",Xc(e))}));function Zc(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Qc=Symbol("composite-hover");var Jc=Xr((function(e){var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:o=!!r}=t,i=Cn(t,["store","focusOnHover","blurOnHoverEnd"]);const a=ho();jn(n=n||a,!1);const s=jr(),l=i.onMouseMove,u=Fr(r),d=Rr((e=>{if(null==l||l(e),!e.defaultPrevented&&s()&&u(e)){if(!Ui(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Wi(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),f=i.onMouseLeave,p=Fr(o),h=Rr((e=>{var t;null==f||f(e),e.defaultPrevented||s()&&(function(e){const t=Zc(e);return!!t&&Qn(e.currentTarget,t)}(e)||function(e){let t=Zc(e);if(!t)return!1;do{if(Fn(t,Qc)&&t[Qc])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&p(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),m=c((e=>{e&&(e[Qc]=!0)}),[]);return $n(i=xn(yn({},i),{ref:Ar(m,i.ref),onMouseMove:d,onMouseLeave:h}))}));Gr(Kr((function(e){return qr("div",Jc(e))})));var eu=Xr((function(t){var n,r=t,{store:o,value:i,getItem:a,hideOnClick:s,setValueOnClick:l=null!=i,preventScrollOnKeyDown:u=!0,focusOnHover:d=!0}=r,f=Cn(r,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]);const p=Co();jn(o=o||p,!1);const h=Ir(f.id),m=Bn(f),{listElement:g,multiSelectable:v,selected:b,autoFocus:w}=Jo(o,{listElement:"listElement",multiSelectable:e=>Array.isArray(e.value),selected:e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.value,i),autoFocus:e=>null!=i&&(null!=e.value&&((e.activeId===h||!(null==o?void 0:o.item(e.activeId)))&&(Array.isArray(e.value)?e.value[e.value.length-1]===i:e.value===i)))}),y=c((e=>{const t=xn(yn({},e),{value:m?void 0:i,children:i});return a?a(t):t}),[m,i,a]);s=null!=s?s:null!=i&&!v;const x=f.onClick,C=Fr(l),S=Fr(s),k=Rr((e=>{null==x||x(e),e.defaultPrevented||vr(e)||gr(e)||(C(e)&&null!=i&&(null==o||o.setValue((e=>Array.isArray(e)?e.includes(i)?e.filter((e=>e!==i)):[...e,i]:i))),S(e)&&(null==o||o.hide()))}));f=_r(f,(t=>e(Po.Provider,{value:null!=b&&b,children:t})),[b]),f=xn(yn({id:h,role:sr(g),"aria-selected":b,children:i},f),{autoFocus:null!=(n=f.autoFocus)?n:w,onClick:k}),f=ua(yn({store:o,getItem:y,preventScrollOnKeyDown:u},f));const E=Fr(d);return f=Jc(xn(yn({store:o},f),{focusOnHover(e){if(!E(e))return!1;const t=null==o?void 0:o.getState();return!!(null==t?void 0:t.open)}}))})),tu=Gr(Kr((function(e){return qr("div",eu(e))}))),nu=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=So();jn(n=n||o,!1);const i=Ir(r.id),a=r.onClick,s=Rr((e=>{null==a||a(e),e.defaultPrevented||queueMicrotask((()=>{const e=null==n?void 0:n.getState().selectElement;null==e||e.focus()}))}));return $n(r=xn(yn({id:i},r),{ref:Ar(n.setLabelElement,r.ref),onClick:s,style:yn({cursor:"default"},r.style)}))})),ru=Gr(Kr((function(e){return qr("div",nu(e))}))),ou=i(null),iu=Xr((function(t){var n=t,{store:r,resetOnEscape:o=!0,hideOnEnter:i=!0,focusOnMove:s=!0,composite:c,alwaysVisible:u}=n,d=Cn(n,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const f=xo();jn(r=r||f,!1);const p=Ir(d.id),h=r.useState("value"),m=Array.isArray(h),[b,w]=v(h),y=r.useState("mounted");g((()=>{y||w(h)}),[y,h]),o=o&&!m;const x=d.onKeyDown,C=Fr(o),S=Fr(i),k=Rr((e=>{null==x||x(e),e.defaultPrevented||("Escape"===e.key&&C(e)&&(null==r||r.setValue(b))," "!==e.key&&"Enter"!==e.key||mr(e)&&S(e)&&(e.preventDefault(),null==r||r.hide()))})),E=l(No),P=v(),[N,R]=E||P,M=a((()=>[N,R]),[N]),[A,I]=v(null),T=l(ou);g((()=>{if(T)return T(r),()=>T(null)}),[T,r]),d=_r(d,(t=>e(Eo,{value:r,children:e(ou.Provider,{value:I,children:e(No.Provider,{value:M,children:t})})})),[r,M]);const O=!!r.combobox;c=null!=c?c:!O&&A!==r;const[L,D]=Mr(c?r.setListElement:null),F=Or(L,"role",d.role),_=(c||("listbox"===F||"menu"===F||"tree"===F||"grid"===F))&&m||void 0,V=xa(y,d.hidden,u),z=V?xn(yn({},d.style),{display:"none"}):d.style;c&&(d=yn({role:"listbox","aria-multiselectable":_},d));const j=r.useState((e=>{var t;return N||(null==(t=e.labelElement)?void 0:t.id)}));return d=xn(yn({id:p,"aria-labelledby":j,hidden:V},d),{ref:Ar(D,d.ref),style:z,onKeyDown:k}),d=ga(xn(yn({store:r},d),{composite:c})),d=Hc(yn({store:r,typeahead:!O},d))}));Kr((function(e){return qr("div",iu(e))}));var au=Xr((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Cn(t,["store","alwaysVisible"]);const i=So();return o=iu(yn({store:n=n||i,alwaysVisible:r},o)),o=nc(yn({store:n,alwaysVisible:r},o))})),su=Ts(Kr((function(e){return qr("div",au(e))})),So);function lu(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Mo({value:Wn(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return In(An({},r),{setValue:e=>r.setState("value",e)})}function cu(e={}){const[t,n]=ti(lu,e);return function(e,t,n){return Lr(t,[n.store]),ei(e,n,"value","setValue"),e}(t,n,e)}var uu=Yr().useContext,du="input";function fu(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function pu(e){return Array.isArray(e)?e.toString():e}var hu=Xr((function(t){var n=t,{store:r,name:o,value:i,checked:a,defaultChecked:s}=n,l=Cn(n,["store","name","value","checked","defaultChecked"]);const c=uu();r=r||c;const[u,d]=v(null!=s&&s),f=Qo(r,(e=>{if(void 0!==a)return a;if(void 0===(null==e?void 0:e.value))return u;if(null!=i){if(Array.isArray(e.value)){const t=pu(i);return e.value.includes(t)}return e.value===i}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),p=m(null),h=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Tr(p,du),l.type),b=f?"mixed"===f:void 0,w="mixed"!==f&&f,y=Bn(l),[x,C]=Dr();g((()=>{const e=p.current;e&&(fu(e,b),h||(e.checked=w,void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[x,b,h,w,o,i]);const S=l.onChange,k=Rr((e=>{if(y)return e.stopPropagation(),void e.preventDefault();if(fu(e.currentTarget,b),h||(e.currentTarget.checked=!e.currentTarget.checked,C()),null==S||S(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==r||r.setValue((e=>{if(null==i)return t;const n=pu(i);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),E=l.onClick,P=Rr((e=>{null==E||E(e),e.defaultPrevented||h||k(e)}));return l=_r(l,(t=>e(Kc.Provider,{value:w,children:t})),[w]),l=xn(yn({role:h?void 0:"checkbox",type:h?"checkbox":void 0,"aria-checked":f},l),{ref:Ar(p,l.ref),onChange:k,onClick:P}),l=sa(yn({clickOnEnter:!h},l)),$n(yn({name:h?o:void 0,value:h?i:void 0,checked:w},l))})),mu=Kr((function(e){const t=hu(e);return qr(du,t)})),gu=Yr([go,Ha],[vo,Ba]),vu=gu.useContext,bu=gu.useScopedContext,wu=gu.useProviderContext,yu=gu.ContextProvider,xu=gu.ScopedContextProvider;function Cu(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=Tn(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=_o(i.store,Fo(r,["values"]),Do(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=di(In(An({},i),{store:s,orientation:Wn(i.orientation,l.orientation,"vertical")})),u=Da(In(An({},i),{store:s,placement:Wn(i.placement,l.placement,"bottom-start"),timeout:Wn(i.timeout,l.timeout,a?0:150),hideTimeout:Wn(i.hideTimeout,l.hideTimeout,0)})),d=Mo(In(An(An({},c.getState()),u.getState()),{initialFocus:Wn(l.initialFocus,"container"),values:Wn(i.values,l.values,i.defaultValues,{})}),c,u,s);return Ao(d,(()=>Oo(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Ao(d,(()=>Oo(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),In(An(An(An({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=Dn(t,r);return o===r?n:In(An({},n),{[e]:void 0!==o&&o})})))}})}function Su(e={}){const t=vu(),n=Cc(),r=bi();e=xn(yn({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=ti(Cu,e);return function(e,t,n){return Lr(t,[n.combobox,n.parent,n.menubar]),ei(e,n,"values","setValues"),Object.assign(Fa(pi(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}i(void 0);var ku=Xr((function(t){var n=t,{store:r,alwaysVisible:o,composite:i}=n,a=Cn(n,["store","alwaysVisible","composite"]);const s=wu();jn(r=r||s,!1);const l=r.parent,c=r.menubar,u=!!l,d=Ir(a.id),f=a.onKeyDown,p=r.useState((e=>e.placement.split("-")[0])),h=r.useState((e=>"both"===e.orientation?void 0:e.orientation)),m="vertical"!==h,b=Qo(c,(e=>!!e&&"vertical"!==e.orientation)),w=Rr((e=>{if(null==f||f(e),!e.defaultPrevented){if(u||c&&!m){const t={ArrowRight:()=>"left"===p&&!m,ArrowLeft:()=>"right"===p&&!m,ArrowUp:()=>"bottom"===p&&m,ArrowDown:()=>"top"===p&&m}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==r?void 0:r.hide()}if(c){const t={ArrowRight:()=>{if(b)return c.next()},ArrowLeft:()=>{if(b)return c.previous()},ArrowDown:()=>{if(!b)return c.next()},ArrowUp:()=>{if(!b)return c.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),c.move(n))}}}));a=_r(a,(t=>e(xu,{value:r,children:t})),[r]);const y=function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const[o,i]=v(void 0),a=r["aria-label"],s=Qo(n,"disclosureElement"),l=Qo(n,"contentElement");return g((()=>{const e=s;e&&l&&(a||l.hasAttribute("aria-label")?i(void 0):e.id&&i(e.id))}),[a,s,l]),o}(yn({store:r},a)),x=xa(r.useState("mounted"),a.hidden,o),C=x?xn(yn({},a.style),{display:"none"}):a.style;a=xn(yn({id:d,"aria-labelledby":y,hidden:x},a),{ref:Ar(d?r.setContentElement:null,a.ref),style:C,onKeyDown:w});const S=!!r.combobox;return(i=null!=i?i:!S)&&(a=yn({role:"menu","aria-orientation":h},a)),a=ga(yn({store:r,composite:i},a)),a=Hc(yn({store:r,typeahead:!S},a))}));Kr((function(e){return qr("div",ku(e))}));var Eu=Xr((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:c}=t,u=Cn(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=wu();jn(n=n||d,!1);const f=m(null),p=n.parent,h=n.menubar,b=!!p,w=!!h&&!b;u=xn(yn({},u),{ref:Ar(f,u.ref)});const x=ku(yn({store:n,alwaysVisible:c},u)),{"aria-labelledby":C}=x;u=Cn(x,["aria-labelledby"]);const[S,k]=v(),E=n.useState("autoFocusOnShow"),P=n.useState("initialFocus"),N=n.useState("baseElement"),R=n.useState("renderedItems");g((()=>{let e=!1;return k((t=>{var n,r,o;if(e)return;if(!E)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const i=y();switch(P){case"first":i.current=(null==(r=R.find((e=>!e.disabled&&e.element)))?void 0:r.element)||null;break;case"last":i.current=(null==(o=[...R].reverse().find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;default:i.current=N}return i})),()=>{e=!0}}),[n,E,P,R,N]);const M=!b&&r,A=!!s,I=!!S||!!u.initialFocus||!!M,T=Qo(n.combobox||n,"contentElement"),O=Qo((null==p?void 0:p.combobox)||p,"contentElement"),L=a((()=>{if(!O)return;if(!T)return;const e=T.getAttribute("role"),t=O.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?O:void 0}),[T,O]);return void 0!==L&&(u=yn({preserveTabOrderAnchor:L},u)),u=ic(xn(yn({store:n,alwaysVisible:c,initialFocus:S,autoFocusOnShow:A?I&&s:E||!!M},u),{hideOnEscape:e=>!Hn(i,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside(e){const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:b||w&&(!t||!Ui(t)))&&(!!e.defaultPrevented||(!b||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Ui(t)||(requestAnimationFrame((()=>{Ui(t)||null==n||n.hide()})),!1)))))},modal:M,portal:o,backdrop:!b&&u.backdrop})),u=yn({"aria-labelledby":C},u)})),Pu=Ts(Kr((function(e){return qr("div",Eu(e))})),wu);function Nu(t={}){const n=Su(t);return e(yu,{value:n,children:t.children})}var Ru=Xr((function(e){var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=Cn(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=bu(!0),c=Sc();jn(n=n||l||c,!1);const u=s.onClick,d=Fr(r),f="hideAll"in n?n.hideAll:void 0,p=!!f,h=Rr((e=>{if(null==u||u(e),e.defaultPrevented)return;if(vr(e))return;if(gr(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),m=sr(Qo(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=xn(yn({role:m},s),{onClick:h}),s=ua(yn({store:n,preventScrollOnKeyDown:o},s)),s=Jc(xn(yn({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return p?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Ui(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=Xn(e).getElementById(i);return!(!a||!Ui(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:p})),s})),Mu=Gr(Kr((function(e){return qr("div",Ru(e))}))),Au=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=vu();return r=Aa(yn({store:n=n||o},r))})),Iu=Kr((function(e){return qr("hr",Au(e))}));i(null),i(null);var Tu=Yr([go],[vo]).useContext,Ou=pr()&&dr();function Lu(e={}){var t=e,{tag:n}=t,r=Tn(t,["tag"]);const o=_o(r.store,Fo(n,["value","rtl"])),i=null==n?void 0:n.getState(),a=null==o?void 0:o.getState(),s=Wn(r.activeId,null==a?void 0:a.activeId,r.defaultActiveId,null),l=di(In(An({},r),{activeId:s,includesBaseElement:Wn(r.includesBaseElement,null==a?void 0:a.includesBaseElement,!0),orientation:Wn(r.orientation,null==a?void 0:a.orientation,"vertical"),focusLoop:Wn(r.focusLoop,null==a?void 0:a.focusLoop,!0),focusWrap:Wn(r.focusWrap,null==a?void 0:a.focusWrap,!0),virtualFocus:Wn(r.virtualFocus,null==a?void 0:a.virtualFocus,!0)})),c=Oa(In(An({},r),{placement:Wn(r.placement,null==a?void 0:a.placement,"bottom-start")})),u=Wn(r.value,null==a?void 0:a.value,r.defaultValue,""),d=Wn(r.selectedValue,null==a?void 0:a.selectedValue,null==i?void 0:i.values,r.defaultSelectedValue,""),f=Array.isArray(d),p=In(An(An({},l.getState()),c.getState()),{value:u,selectedValue:d,resetValueOnSelect:Wn(r.resetValueOnSelect,null==a?void 0:a.resetValueOnSelect,f),resetValueOnHide:Wn(r.resetValueOnHide,null==a?void 0:a.resetValueOnHide,f&&!n),activeValue:null==a?void 0:a.activeValue}),h=Mo(p,l,c,o);return Ou&&Ao(h,(()=>Oo(h,["virtualFocus"],(()=>{h.setState("virtualFocus",!1)})))),Ao(h,(()=>{if(n)return _n(Oo(h,["selectedValue"],(e=>{Array.isArray(e.selectedValue)&&n.setValues(e.selectedValue)})),Oo(n,["values"],(e=>{h.setState("selectedValue",e.values)})))})),Ao(h,(()=>Oo(h,["resetValueOnHide","mounted"],(e=>{e.resetValueOnHide&&(e.mounted||h.setState("value",u))})))),Ao(h,(()=>Oo(h,["open"],(e=>{e.open||(h.setState("activeId",s),h.setState("moves",0))})))),Ao(h,(()=>Oo(h,["moves","activeId"],((e,t)=>{e.moves===t.moves&&h.setState("activeValue",void 0)})))),Ao(h,(()=>Lo(h,["moves","renderedItems"],((e,t)=>{if(e.moves===t.moves)return;const{activeId:n}=h.getState(),r=l.item(n);h.setState("activeValue",null==r?void 0:r.value)})))),In(An(An(An({},c),l),h),{tag:n,setValue:e=>h.setState("value",e),resetValue:()=>h.setState("value",p.value),setSelectedValue:e=>h.setState("selectedValue",e)})}function Du(e={}){e=function(e){const t=Tu();return fi(e=xn(yn({},e),{tag:void 0!==e.tag?e.tag:t}))}(e);const[t,n]=ti(Lu,e);return function(e,t,n){return Lr(t,[n.tag]),ei(e,n,"value","setValue"),ei(e,n,"selectedValue","setSelectedValue"),ei(e,n,"resetValueOnHide"),ei(e,n,"resetValueOnSelect"),Object.assign(pi(La(e,t,n),t,n),{tag:n.tag})}(t,n,e)}function Fu(e,t,n){if(!n)return!1;const r=e.find((e=>!e.disabled&&e.value));return(null==r?void 0:r.value)===t}function _u(e,t){return!!t&&(null!=e&&(e=Vn(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}var Vu=Xr((function(e){var t=e,{store:n,focusable:r=!0,autoSelect:o=!1,getAutoSelectId:i,setValueOnChange:s,showMinLength:l=0,showOnChange:c,showOnMouseDown:u,showOnClick:d=u,showOnKeyDown:f,showOnKeyPress:p=f,blurActiveItemOnClick:h,setValueOnClick:b=!0,moveOnKeyPress:w=!0,autoComplete:y="list"}=t,x=Cn(t,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);const C=bi();jn(n=n||C,!1);const S=m(null),[k,E]=Dr(),P=m(!1),N=m(!1),R=n.useState((e=>e.virtualFocus&&o)),M="inline"===y||"both"===y,[A,I]=v(M);!function(e,t){const n=m(!1);Pr((()=>{if(n.current)return e();n.current=!0}),t),Pr((()=>()=>{n.current=!1}),[])}((()=>{M&&I(!0)}),[M]);const T=n.useState("value"),O=m();g((()=>Oo(n,["selectedValue","activeId"],((e,t)=>{O.current=t.selectedValue}))),[]);const L=n.useState((e=>{var t;if(M&&A){if(e.activeValue&&Array.isArray(e.selectedValue)){if(e.selectedValue.includes(e.activeValue))return;if(null==(t=O.current)?void 0:t.includes(e.activeValue))return}return e.activeValue}})),D=n.useState("renderedItems"),F=n.useState("open"),_=n.useState("contentElement"),V=a((()=>{if(!M)return T;if(!A)return T;if(Fu(D,L,R)){if(_u(T,L)){const e=(null==L?void 0:L.slice(T.length))||"";return T+e}return T}return L||T}),[M,A,D,L,R,T]);g((()=>{const e=S.current;if(!e)return;const t=()=>I(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),g((()=>{if(!M)return;if(!A)return;if(!L)return;if(!Fu(D,L,R))return;if(!_u(T,L))return;let e=On;return queueMicrotask((()=>{const t=S.current;if(!t)return;const{start:n,end:r}=ir(t),o=T.length,i=L.length;cr(t,o,i),e=()=>{if(!Wi(t))return;const{start:e,end:a}=ir(t);e===o&&a===i&&cr(t,n,r)}})),()=>e()}),[k,M,A,L,D,R,T]);const z=m(null),j=Rr(i),H=m(null);g((()=>{if(!F)return;if(!_)return;const e=lr(_);if(!e)return;z.current=e;const t=()=>{P.current=!1},r=()=>{if(!n)return;if(!P.current)return;const{activeId:e}=n.getState();null!==e&&e!==H.current&&(P.current=!1)},o={passive:!0,capture:!0};return e.addEventListener("wheel",t,o),e.addEventListener("touchmove",t,o),e.addEventListener("scroll",r,o),()=>{e.removeEventListener("wheel",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("scroll",r,!0)}}),[F,_,n]),Pr((()=>{T&&(N.current||(P.current=!0))}),[T]),Pr((()=>{"always"!==R&&F||(P.current=F)}),[R,F]);const B=n.useState("resetValueOnSelect");Lr((()=>{var e,t;const r=P.current;if(!n)return;if(!F)return;if(!r&&!B)return;const{baseElement:o,contentElement:i,activeId:a}=n.getState();if(!o||Wi(o)){if(null==i?void 0:i.hasAttribute("data-placing")){const e=new MutationObserver(E);return e.observe(i,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(R&&r){const t=j(D),r=void 0!==t?t:null!=(e=function(e){const t=e.find((e=>{var t;return!e.disabled&&"tab"!==(null==(t=e.element)?void 0:t.getAttribute("role"))}));return null==t?void 0:t.id}(D))?e:n.first();H.current=r,n.move(null!=r?r:null)}else{const e=null==(t=n.item(a||n.first()))?void 0:t.element;e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[n,F,k,T,R,B,j,D]),g((()=>{if(!M)return;const e=S.current;if(!e)return;const t=[e,_].filter((e=>!!e)),r=e=>{t.every((t=>yr(e,t)))&&(null==n||n.setValue(V))};for(const e of t)e.addEventListener("focusout",r);return()=>{for(const e of t)e.removeEventListener("focusout",r)}}),[M,_,n,V]);const $=e=>e.currentTarget.value.length>=l,W=x.onChange,U=Fr(null!=c?c:$),K=Fr(null!=s?s:!n.tag),G=Rr((e=>{if(null==W||W(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget,{value:r,selectionStart:o,selectionEnd:i}=t,a=e.nativeEvent;if(P.current=!0,function(e){return"input"===e.type}(a)&&(a.isComposing&&(P.current=!1,N.current=!0),M)){const e="insertText"===a.inputType||"insertCompositionText"===a.inputType,t=o===r.length;I(e&&t)}if(K(e)){const e=r===n.getState().value;n.setValue(r),queueMicrotask((()=>{cr(t,o,i)})),M&&R&&e&&E()}U(e)&&n.show(),R&&P.current||n.setActiveId(null)})),q=x.onCompositionEnd,X=Rr((e=>{P.current=!0,N.current=!1,null==q||q(e),e.defaultPrevented||R&&E()})),Y=x.onMouseDown,Z=Fr(null!=h?h:()=>!!(null==n?void 0:n.getState().includesBaseElement)),Q=Fr(b),J=Fr(null!=d?d:$),ee=Rr((e=>{null==Y||Y(e),e.defaultPrevented||e.button||e.ctrlKey||n&&(Z(e)&&n.setActiveId(null),Q(e)&&n.setValue(V),J(e)&&xr(e.currentTarget,"mouseup",n.show))})),te=x.onKeyDown,ne=Fr(null!=p?p:$),re=Rr((e=>{if(null==te||te(e),e.repeat||(P.current=!1),e.defaultPrevented)return;if(e.ctrlKey)return;if(e.altKey)return;if(e.shiftKey)return;if(e.metaKey)return;if(!n)return;const{open:t}=n.getState();t||"ArrowUp"!==e.key&&"ArrowDown"!==e.key||ne(e)&&(e.preventDefault(),n.show())})),oe=x.onBlur,ie=Rr((e=>{P.current=!1,null==oe||oe(e),e.defaultPrevented})),ae=Ir(x.id),se=function(e){return"inline"===e||"list"===e||"both"===e||"none"===e}(y)?y:void 0,le=n.useState((e=>null===e.activeId));return x=xn(yn({id:ae,role:"combobox","aria-autocomplete":se,"aria-haspopup":ar(_,"listbox"),"aria-expanded":F,"aria-controls":null==_?void 0:_.id,"data-active-item":le||void 0,value:V},x),{ref:Ar(S,x.ref),onChange:G,onCompositionEnd:X,onMouseDown:ee,onKeyDown:re,onBlur:ie}),x=ga(xn(yn({store:n,focusable:r},x),{moveOnKeyPress:e=>!Hn(w,e)&&(M&&I(!0),!0)})),x=kc(yn({store:n},x)),yn({autoComplete:"off"},x)})),zu=Kr((function(e){return qr("input",Vu(e))}));function ju(t={}){const n=Du(t);return e(wi,{value:n,children:t.children})}var Hu=t("svg",{"aria-hidden":"true",display:"block",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,width:"1em",height:"1em",pointerEvents:"none",children:[e("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),e("line",{x1:"5",y1:"11",x2:"11",y2:"5"})]}),Bu=Xr((function(t){var n=t,{store:r,hideWhenEmpty:o}=n,i=Cn(n,["store","hideWhenEmpty"]);const a=bi();jn(r=r||a,!1);const s=i.onClick,l=Rr((e=>{null==s||s(e),e.defaultPrevented||(null==r||r.setValue(""),null==r||r.move(null))})),c=r.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id})),u=r.useState((e=>""===e.value));return i=_r(i,(t=>o&&u?e(h,{}):t),[o,u]),i=xn(yn({children:Hu,"aria-label":"Clear input","aria-controls":c},i),{onClick:l}),i=Rc(i)})),$u=Kr((function(e){return qr("button",Bu(e))}));function Wu(e){var t;return null!=(t={menu:"menuitem",listbox:"option",tree:"treeitem"}[e])?t:"option"}var Uu=Xr((function(t){var n,r=t,{store:o,value:i,hideOnClick:a,setValueOnClick:s,selectValueOnClick:u=!0,resetValueOnSelect:d,focusOnHover:f=!1,moveOnKeyPress:p=!0,getItem:h}=r,m=Cn(r,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]);const g=vi();jn(o=o||g,!1);const{resetValueOnSelectState:v,multiSelectable:b,selected:w}=Jo(o,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable:e=>Array.isArray(e.selectedValue),selected:e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.selectedValue,i)}),y=c((e=>{const t=xn(yn({},e),{value:i});return h?h(t):t}),[i,h]);s=null!=s?s:!b,a=null!=a?a:null!=i&&!b;const x=m.onClick,C=Fr(s),S=Fr(u),k=Fr(null!=(n=null!=d?d:v)?n:b),E=Fr(a),P=Rr((e=>{null==x||x(e),e.defaultPrevented||vr(e)||gr(e)||(null!=i&&(S(e)&&(k(e)&&(null==o||o.resetValue()),null==o||o.setSelectedValue((e=>Array.isArray(e)?e.includes(i)?e.filter((e=>e!==i)):[...e,i]:i))),C(e)&&(null==o||o.setValue(i))),E(e)&&(null==o||o.hide()))})),N=m.onKeyDown,R=Rr((e=>{if(null==N||N(e),e.defaultPrevented)return;const t=null==o?void 0:o.getState().baseElement;if(!t)return;if(Wi(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask((()=>t.focus())),rr(t)&&(null==o||o.setValue(t.value)))}));b&&null!=w&&(m=yn({"aria-selected":w},m)),m=_r(m,(t=>e(xi.Provider,{value:i,children:e(Ci.Provider,{value:null!=w&&w,children:t})})),[i,w]);const M=l(hi);m=xn(yn({role:Wu(M),children:i},m),{onClick:P,onKeyDown:R});const A=Fr(p);return m=ua(xn(yn({store:o},m),{getItem:y,moveOnKeyPress:e=>{if(!A(e))return!1;const t=new Event("combobox-item-move"),n=null==o?void 0:o.getState().baseElement;return null==n||n.dispatchEvent(t),!0}})),m=Jc(yn({store:o,focusOnHover:f},m))})),Ku=Gr(Kr((function(e){return qr("div",Uu(e))}))),Gu=Xr((function(e){var t=e,{store:n}=t,r=Cn(t,["store"]);const o=bi();jn(n=n||o,!1);const i=n.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id}));return $n(r=yn({htmlFor:i},r))})),qu=Gr(Kr((function(e){return qr("label",Gu(e))}))),Xu=Xr((function(t){var n=t,{store:r,alwaysVisible:o}=n,i=Cn(n,["store","alwaysVisible"]);const a=vi(!0),s=gi(),l=!!(r=r||s)&&r===a;jn(r,!1);const c=m(null),u=Ir(i.id),d=r.useState("mounted"),f=xa(d,i.hidden,o),p=f?xn(yn({},i.style),{display:"none"}):i.style,h=r.useState((e=>Array.isArray(e.selectedValue))),g=Or(c,"role",i.role),b=("listbox"===g||"tree"===g||"grid"===g)&&h||void 0,[w,y]=v(!1),x=r.useState("contentElement");Pr((()=>{if(!d)return;const e=c.current;if(!e)return;if(x!==e)return;const t=()=>{y(!!e.querySelector("[role='listbox']"))},n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,attributeFilter:["role"]}),t(),()=>n.disconnect()}),[d,x]),w||(i=yn({role:"listbox","aria-multiselectable":b},i)),i=_r(i,(t=>e(yi,{value:r,children:e(hi.Provider,{value:g,children:t})})),[r,g]);const C=!u||a&&l?null:r.setContentElement;return $n(i=xn(yn({id:u,hidden:f},i),{ref:Ar(C,c,i.ref),style:p}))})),Yu=Kr((function(e){return qr("div",Xu(e))}));var Zu=Xr((function(e){var t=e,{store:n,modal:r,tabIndex:o,alwaysVisible:i,autoFocusOnHide:a=!0,hideOnInteractOutside:s=!0}=t,l=Cn(t,["store","modal","tabIndex","alwaysVisible","autoFocusOnHide","hideOnInteractOutside"]);const c=bi();jn(n=n||c,!1);const u=n.useState("baseElement"),d=m(!1),f=Qo(n.tag,(e=>null==e?void 0:e.renderedItems.length));return l=Xu(yn({store:n,alwaysVisible:i},l)),l=nc(xn(yn({store:n,modal:r,alwaysVisible:i,backdrop:!1,autoFocusOnShow:!1,finalFocus:u,preserveTabOrderAnchor:null,unstable_treeSnapshotKey:f},l),{getPersistentElements(){var e;const t=(null==(e=l.getPersistentElements)?void 0:e.call(l))||[];if(!r)return t;if(!n)return t;const{contentElement:o,baseElement:i}=n.getState();if(!i)return t;const a=Xn(i),s=[];if((null==o?void 0:o.id)&&s.push(`[aria-controls~="${o.id}"]`),(null==i?void 0:i.id)&&s.push(`[aria-controls~="${i.id}"]`),!s.length)return[...t,i];const c=s.join(","),u=a.querySelectorAll(c);return[...t,...u]},autoFocusOnHide:e=>!Hn(a,e)&&(!d.current||(d.current=!1,!1)),hideOnInteractOutside(e){var t,r;const o=null==n?void 0:n.getState(),i=null==(t=null==o?void 0:o.contentElement)?void 0:t.id,a=null==(r=null==o?void 0:o.baseElement)?void 0:r.id;if(function(e,...t){if(!e)return!1;if("id"in e){const n=t.filter(Boolean).map((e=>`[aria-controls~="${e}"]`)).join(", ");return!!n&&e.matches(n)}return!1}(e.target,i,a))return!1;const l="function"==typeof s?s(e):s;return l&&(d.current="click"===e.type),l}})),l})),Qu=Ts(Kr((function(e){return qr("div",Zu(e))})),bi);V("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: 0;\n left: var(--tab-left, 0);\n width: 0;\n width: var(--tab-width, 0);\n}\n.animated-tab {\n position: relative;\n}\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const Ju=u((function(t,n){const r=m(null);return g((()=>{const e=r.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>n.disconnect()}),[]),e(pa,{ref:e=>{r.current=e,"function"==typeof n?n(e):n&&(n.current=e)},...t,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${t.className||""}`})})),ed=u((function(t,n){const r=function(e){const t=m(void 0);return g((()=>{t.current=e}),[e]),t.current}(Qo(Pi(),"selectedId")),o=t.tabId&&r===t.tabId;return e(Ra,{ref:n,...t,"data-was-open":o||void 0,className:`animated-tab-panel max-w-full ${t.className||""}`})}));function td({tabs:n,className:r="",tabListClassName:o="",tabClassName:i="",tabPanelClassName:a="",containerClassName:s="",tabListProps:l={},defaultSelectedId:c}){const u=n.map(((e,t)=>e.id||`tab-${t}`)),d=c||u[0],f=m(null);return g((()=>{const e=f.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>n.disconnect()}),[n]),e("div",{className:`w-full ${r}`,children:t(ha,{defaultSelectedId:d,children:[e(ba,{ref:f,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${o}`,...l,children:n.map(((t,n)=>e(Ju,{id:u[n],disabled:t.disabled,className:i,"data-state":u[n]===d?"active":"inactive",children:t.label},u[n])))}),e("div",{className:an("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",s),children:n.map(((t,n)=>e(ed,{id:`panel-${u[n]}`,tabId:u[n],className:a,children:t.content},`panel-${u[n]}`)))})]})})}const nd="dismissableLayer.update",rd="dismissableLayer.pointerDownOutside",od="dismissableLayer.focusOutside";let id;const ad=i({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sd=u(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...d}=e,f=l(ad),[p,h]=v(null),b=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,w]=v({}),y=$(t,(e=>h(e))),x=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(C),k=p?x.indexOf(p):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,P=k>=S,N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Z(e),r=m(!1),o=m((()=>{}));return g((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){cd(rd,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));P&&!n&&(null==i||i(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b),R=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Z(e),r=m(!1);return g((()=>{const e=e=>{if(e.target&&!r.current){cd(od,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==u||u())}),b);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Z(e);g((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===f.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),b),g((()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(id=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),ld(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=id)}}),[p,b,r,f]),g((()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),ld())}),[p,f]),g((()=>{const e=()=>w({});return document.addEventListener(nd,e),()=>document.removeEventListener(nd,e)}),[]),s(J.div,z({},d,{ref:y,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function ld(){const e=new CustomEvent(nd);document.dispatchEvent(e)}function cd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ee(o,i):o.dispatchEvent(i)}const ud=sd,dd="focusScope.autoFocusOnMount",fd="focusScope.autoFocusOnUnmount",pd={bubbles:!1,cancelable:!0},hd=u(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=v(null),d=Z(o),f=Z(i),p=m(null),h=$(t,(e=>u(e))),b=m({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g((()=>{if(r){function e(e){if(b.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:bd(p.current,{select:!0})}function t(e){if(b.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||bd(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bd(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,l,b.paused]),g((()=>{if(l){wd.add(b);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(dd,pd);l.addEventListener(dd,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bd(r,{select:t}),document.activeElement!==n)return}((e=md(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bd(l))}return()=>{l.removeEventListener(dd,d),setTimeout((()=>{const e=new CustomEvent(fd,pd);l.addEventListener(fd,f),l.dispatchEvent(e),e.defaultPrevented||bd(null!=t?t:document.body,{select:!0}),l.removeEventListener(fd,f),wd.remove(b)}),0)}}var e}),[l,d,f,b]);const w=c((e=>{if(!n&&!r)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=md(e),n=gd(t,e),r=gd(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&bd(i,{select:!0})):(e.preventDefault(),n&&bd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,b.paused]);return s(J.div,z({tabIndex:-1},a,{ref:h,onKeyDown:w}))}));function md(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gd(e,t){for(const n of e)if(!vd(n,{upTo:t}))return n}function vd(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const wd=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yd(e,t),e.unshift(t)},remove(t){var n;e=yd(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function yd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const xd=u(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?M.createPortal(s(J.div,z({},o,{ref:t})),r):null}));let Cd=0;function Sd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var kd=function(){return kd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kd.apply(this,arguments)};function Ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pd(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Nd="right-scroll-bar-position",Rd="width-before-scroll-bar";function Md(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ad="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Id=new WeakMap;function Td(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach((function(e){return Md(e,t)}))},(o=v((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return Ad((function(){var t=Id.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||Md(e,null)})),r.forEach((function(e){n.has(e)||Md(e,o)}))}Id.set(i,e)}),[e]),i}function Od(e){return e}function Ld(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Od);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=kd({async:!0,ssr:!1},e),t}var Dd=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,kd({},n))};function Fd(e,t){return e.useMedium(t),Dd}Dd.isSideCarExport=!0;var _d=Ld(),Vd=function(){},zd=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:Vd,onWheelCapture:Vd,onTouchMoveCapture:Vd}),i=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,w=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=p,x=Td([n,t]),C=kd(kd({},w),i);return r.createElement(r.Fragment,null,d&&r.createElement(y,{sideCar:_d,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?r.cloneElement(r.Children.only(l),kd(kd({},C),{ref:x})):r.createElement(b,kd({},C,{className:c,ref:x}),l))}));zd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zd.classNames={fullWidth:Rd,zeroRight:Nd};function jd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Hd=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=jd())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bd=function(){var e,t=(e=Hd(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},$d={left:0,top:0,right:0,gap:0},Wd=function(e){return parseInt(e||"",10)||0},Ud=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return $d;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Wd(n),Wd(r),Wd(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Kd=Bd(),Gd="data-scroll-locked",qd=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Gd,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Nd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Rd," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Nd," .").concat(Nd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Rd," .").concat(Rd," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Gd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Xd=function(){var e=parseInt(document.body.getAttribute(Gd)||"0",10);return isFinite(e)?e:0},Yd=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(Gd,(Xd()+1).toString()),function(){var e=Xd()-1;e<=0?document.body.removeAttribute(Gd):document.body.setAttribute(Gd,e.toString())}}),[]);var a=r.useMemo((function(){return Ud(i)}),[i]);return r.createElement(Kd,{styles:qd(a,!t,i,n?"":"!important")})},Zd=!1;if("undefined"!=typeof window)try{var Qd=Object.defineProperty({},"passive",{get:function(){return Zd=!0,!0}});window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch(e){Zd=!1}var Jd=!!Zd&&{passive:!1},ef=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},tf=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nf(e,n)){var r=rf(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nf=function(e,t){return"v"===e?function(e){return ef(e,"overflowY")}(t):function(e){return ef(e,"overflowX")}(t)},rf=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},of=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},af=function(e){return[e.deltaX,e.deltaY]},sf=function(e){return e&&"current"in e?e.current:e},lf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cf=0,uf=[];var df=Fd(_d,(function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(cf++)[0],a=r.useState((function(){return Bd()}))[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Pd([e.lockRef.current],(e.shards||[]).map(sf),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,i=of(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=tf(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=tf(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=rf(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&nf(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return u&&0===d?c=!0:u||0!==f||(c=!0),c}(p,t,e,"h"===p?l:c)}),[]),c=r.useCallback((function(e){var n=e;if(uf.length&&uf[uf.length-1]===a){var r="deltaY"in n?af(n):of(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(sf).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=of(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,af(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,of(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return uf.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Jd),document.addEventListener("touchmove",c,Jd),document.addEventListener("touchstart",d,Jd),function(){uf=uf.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Jd),document.removeEventListener("touchmove",c,Jd),document.removeEventListener("touchstart",d,Jd)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(a,{styles:lf(i)}):null,h?r.createElement(Yd,{gapMode:"margin"}):null)})),ff=r.forwardRef((function(e,t){return r.createElement(zd,kd({},e,{ref:t,sideCar:df}))}));ff.classNames=zd.classNames;var pf=new WeakMap,hf=new WeakMap,mf={},gf=0,vf=function(e){return e&&(e.host||vf(e.parentNode))},bf=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=vf(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);mf[n]||(mf[n]=new WeakMap);var i=mf[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(pf.get(e)||0)+1,c=(i.get(e)||0)+1;pf.set(e,l),i.set(e,c),a.push(e),1===l&&o&&hf.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),gf++,function(){a.forEach((function(e){var t=pf.get(e)-1,o=i.get(e)-1;pf.set(e,t),i.set(e,o),t||(hf.has(e)||e.removeAttribute(r),hf.delete(e)),o||e.removeAttribute(n)})),--gf||(pf=new WeakMap,pf=new WeakMap,hf=new WeakMap,mf={})}},wf=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bf(r,o,n,"aria-hidden")):function(){return null}};const yf="Dialog",[xf,Cf]=j(yf),[Sf,kf]=xf(yf),Ef=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf("DialogTrigger",n),i=$(t,o.triggerRef);return s(J.button,z({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$f(o.open)},r,{ref:i,onClick:Y(e.onClick,o.onOpenToggle)}))})),Pf="DialogPortal",[Nf,Rf]=xf(Pf,{forceMount:void 0}),Mf="DialogOverlay",Af=u(((e,t)=>{const n=Rf(Mf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=kf(Mf,e.__scopeDialog);return i.modal?s(ne,{present:r||i.open},s(If,z({},o,{ref:t}))):null})),If=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(Mf,n);return s(ff,{as:W,allowPinchZoom:!0,shards:[o.contentRef]},s(J.div,z({"data-state":$f(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Tf="DialogContent",Of=u(((e,t)=>{const n=Rf(Tf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=kf(Tf,e.__scopeDialog);return s(ne,{present:r||i.open},i.modal?s(Lf,z({},o,{ref:t})):s(Df,z({},o,{ref:t})))})),Lf=u(((e,t)=>{const n=kf(Tf,e.__scopeDialog),r=m(null),o=$(t,n.contentRef,r);return g((()=>{const e=r.current;if(e)return wf(e)}),[]),s(Ff,z({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Y(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Y(e.onFocusOutside,(e=>e.preventDefault()))}))})),Df=u(((e,t)=>{const n=kf(Tf,e.__scopeDialog),r=m(!1),o=m(!1);return s(Ff,z({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Ff=u(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=kf(Tf,n),c=$(t,m(null));return g((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Sd()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Sd()),Cd++,()=>{1===Cd&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Cd--}}),[]),s(h,null,s(hd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},s(sd,z({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":$f(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),_f="DialogTitle",Vf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(_f,n);return s(J.h2,z({id:o.titleId},r,{ref:t}))})),zf="DialogDescription",jf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(zf,n);return s(J.p,z({id:o.descriptionId},r,{ref:t}))})),Hf="DialogClose",Bf=u(((e,t)=>{const{__scopeDialog:n,...r}=e,o=kf(Hf,n);return s(J.button,z({type:"button"},r,{ref:t,onClick:Y(e.onClick,(()=>o.onOpenChange(!1)))}))}));function $f(e){return e?"open":"closed"}const[Wf,Uf]=function(e,t){const n=i(t);function r(e){const{children:t,...r}=e,o=a((()=>r),Object.values(r));return s(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=l(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:Tf,titleName:_f,docsSlug:"dialog"}),Kf=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=m(null),u=m(null),[d=!1,f]=Q({prop:r,defaultProp:o,onChange:i});return s(Sf,{scope:t,triggerRef:l,contentRef:u,contentId:ae(),titleId:ae(),descriptionId:ae(),open:d,onOpenChange:f,onOpenToggle:c((()=>f((e=>!e))),[f]),modal:a},n)},Gf=Ef,qf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=kf(Pf,t);return s(Nf,{scope:t,forceMount:n},d.map(r,(e=>s(ne,{present:n||i.open},s(xd,{asChild:!0,container:o},e)))))},Xf=Af,Yf=Of,Zf=Vf,Qf=jf,Jf=Bf,[ep,tp]=j("AlertDialog",[Cf]),np=Cf(),rp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Gf,z({},o,r,{ref:t}))})),op=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Xf,z({},o,r,{ref:t}))})),ip="AlertDialogContent",[ap,sp]=ep(ip),lp=u(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=np(n),a=$(t,m(null)),l=m(null);return s(Wf,{contentName:ip,titleName:cp,docsSlug:"alert-dialog"},s(ap,{scope:n,cancelRef:l},s(Yf,z({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:Y(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=l.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),s(K,null,r),!1)))})),cp="AlertDialogTitle",up=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Zf,z({},o,r,{ref:t}))})),dp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Qf,z({},o,r,{ref:t}))})),fp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=np(n);return s(Jf,z({},o,r,{ref:t}))})),pp=u(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sp("AlertDialogCancel",n),i=np(n),a=$(t,o);return s(Jf,z({},i,r,{ref:a}))})),hp=e=>{const{__scopeAlertDialog:t,...n}=e,r=np(t);return s(Kf,z({},r,n,{modal:!0}))},mp=e=>{const{__scopeAlertDialog:t,...n}=e,r=np(t);return s(qf,z({},r,n))},gp=op,vp=lp,bp=fp,wp=pp,yp=up,xp=dp,Cp=hp,Sp=rp,kp=({className:t="",children:n,...r})=>e(mp,{className:an(t),...r,children:e("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:n})});kp.displayName=mp.displayName;const Ep=r.forwardRef((({className:t="",...n},r)=>e(gp,{className:an("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...n,ref:r})));Ep.displayName=gp.displayName;const Pp=r.forwardRef((({className:n="",...r},o)=>t(kp,{children:[e(Ep,{}),e(vp,{ref:o,className:an("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",n),...r})]})));Pp.displayName=vp.displayName;const Np=({className:t="",...n})=>e("div",{className:an("flex flex-col space-y-2 text-center sm:text-left",t),...n});Np.displayName="AlertDialogHeader";const Rp=({className:t="",...n})=>e("div",{className:an("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Rp.displayName="AlertDialogFooter";const Mp=r.forwardRef((({className:t="",...n},r)=>e(yp,{ref:r,className:an("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...n})));Mp.displayName=yp.displayName;const Ap=r.forwardRef((({className:t="",...n},r)=>e(xp,{ref:r,className:an("text-sm text-gray-500","dark:text-gray-400",t),...n})));Ap.displayName=xp.displayName;const Ip=r.forwardRef((({className:t="",...n},r)=>e(bp,{ref:r,className:an("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...n})));Ip.displayName=bp.displayName;const Tp=r.forwardRef((({className:t="",...n},r)=>e(wp,{ref:r,className:an("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...n})));function Op(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Lp(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Op(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Op(e[t],null)}}}}function Dp(...e){return r.useCallback(Lp(...e),e)}function Fp(t){const n=Vp(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(jp);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}Tp.displayName=wp.displayName;var _p=Fp("Slot");function Vp(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}
2
+ /**
3
+ * @license lucide-react v0.394.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Lp(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var zp=Symbol("radix.slottable");function jp(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===zp}const Hp=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ")
8
+ /**
9
+ * @license lucide-react v0.394.0 - ISC
10
+ *
11
+ * This source code is licensed under the ISC license.
12
+ * See the LICENSE file in the root directory of this source tree.
13
+ */;var Bp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
14
+ /**
15
+ * @license lucide-react v0.394.0 - ISC
16
+ *
17
+ * This source code is licensed under the ISC license.
18
+ * See the LICENSE file in the root directory of this source tree.
19
+ */const $p=u((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},c)=>s("svg",{ref:c,...Bp,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Hp("lucide",o),...l},[...a.map((([e,t])=>s(e,t))),...Array.isArray(i)?i:[i]]))),Wp=(e,t)=>{const n=u((({className:n,...r},o)=>{return s($p,{ref:o,iconNode:t,className:Hp(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},Up=Wp("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Kp=Wp("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Gp=Wp("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),qp=Wp("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Xp=Wp("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Yp=Wp("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Zp=Wp("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Qp=Wp("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Jp=Wp("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),eh=Wp("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),th=Wp("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),nh=Wp("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),rh=Wp("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),oh=Wp("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ih=r.forwardRef((({...t},n)=>e("nav",{ref:n,"aria-label":"breadcrumb",...t})));
20
+ /**
21
+ * @license lucide-react v0.394.0 - ISC
22
+ *
23
+ * This source code is licensed under the ISC license.
24
+ * See the LICENSE file in the root directory of this source tree.
25
+ */ih.displayName="Breadcrumb";const ah=r.forwardRef((({className:t,...n},r)=>e("ol",{ref:r,className:an("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...n})));ah.displayName="BreadcrumbList";const sh=r.forwardRef((({className:t,...n},r)=>e("li",{ref:r,className:an("inline-flex items-center gap-1.5",t),...n})));sh.displayName="BreadcrumbItem";const lh=r.forwardRef((({asChild:t,className:n,...r},o)=>e(t?_p:"a",{ref:o,className:an("transition-colors hover:text-foreground",n),...r})));lh.displayName="BreadcrumbLink";const ch=r.forwardRef((({className:t,...n},r)=>e("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:an("font-normal text-foreground",t),...n})));ch.displayName="BreadcrumbPage";const uh=({children:t,className:n,...r})=>e("li",{role:"presentation","aria-hidden":"true",className:an("[&>svg]:size-3.5",n),...r,children:t??e(qp,{})});uh.displayName="BreadcrumbSeparator";const dh=({className:n,...r})=>t("span",{role:"presentation","aria-hidden":"true",className:an("flex h-9 w-9 items-center justify-center",n),...r,children:[e(Yp,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More"})]});dh.displayName="BreadcrumbElipssis";const fh=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,ph=vt,hh=((e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return ph(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=fh(t)||fh(r);return o[e][a]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return ph(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),mh=r.forwardRef((({className:t,variant:n,size:r,asChild:o=!1,...i},a)=>e(o?_p:"button",{className:an(hh({variant:n,size:r,className:t})),ref:a,...i})));function gh(e){const[t,n]=v(void 0);return te((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}mh.displayName="Button";const vh="Checkbox",[bh,wh]=j(vh),[yh,xh]=bh(vh),Ch=u(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=e,[f,p]=v(null),h=$(t,(e=>p(e))),b=m(!1),w=!f||Boolean(f.closest("form")),[y=!1,x]=Q({prop:o,defaultProp:i,onChange:u}),C=m(y);return g((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>x(C.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,x]),s(yh,{scope:n,state:y,disabled:l},s(J.button,z({type:"button",role:"checkbox","aria-checked":Eh(y)?"mixed":y,"aria-required":a,"data-state":Ph(y),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:h,onKeyDown:Y(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Y(e.onClick,(e=>{x((e=>!!Eh(e)||!e)),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))})),w&&s(kh,{control:f,bubbles:!b.current,name:r,value:c,checked:y,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))})),Sh=u(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=xh("CheckboxIndicator",n);return s(ne,{present:r||Eh(i.state)||!0===i.state},s(J.span,z({"data-state":Ph(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),kh=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=m(null),l=function(e){const t=m({value:e,previous:e});return a((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),c=gh(t);return g((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Eh(n),o.call(e,!Eh(n)&&n),e.dispatchEvent(t)}}),[l,n,r]),s("input",z({type:"checkbox","aria-hidden":!0,defaultChecked:!Eh(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Eh(e){return"indeterminate"===e}function Ph(e){return Eh(e)?"indeterminate":e?"checked":"unchecked"}const Nh=Ch,Rh=Sh,Mh=r.forwardRef((({className:t="",...n},r)=>e(Nh,{ref:r,className:an("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e(Rh,{className:an("flex items-center justify-center"),children:e(Up,{className:"h-4 w-4"})})})));function Ah(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Ih(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}Mh.displayName=Nh.displayName;var Th=globalThis?.document?r.useLayoutEffect:()=>{},Oh=r[" useInsertionEffect ".trim().toString()]||Th;function Lh({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return Oh((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}var Dh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=Fp(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});var Fh=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=_h(o.current);a.current="mounted"===l?e:"none"}),[l]),Th((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=_h(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),Th((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=_h(o.current).includes(r.animationName);if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(a.current=_h(o.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=Dp(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function _h(e){return e?.animationName||"none"}Fh.displayName="Presence";var Vh=r[" useId ".trim().toString()]||(()=>{}),zh=0;function jh(e){const[t,n]=r.useState(Vh());return Th((()=>{n((e=>e??String(zh++)))}),[e]),e||(t?`radix-${t}`:"")}var Hh="Collapsible",[Bh,$h]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},Ih(i,...n)]}(Hh),[Wh,Uh]=Bh(Hh),Kh=r.forwardRef(((t,n)=>{const{__scopeCollapsible:o,open:i,defaultOpen:a,disabled:s,onOpenChange:l,...c}=t,[u,d]=Lh({prop:i,defaultProp:a??!1,onChange:l,caller:Hh});return e(Wh,{scope:o,disabled:s,contentId:jh(),open:u,onOpenToggle:r.useCallback((()=>d((e=>!e))),[d]),children:e(Dh.div,{"data-state":Qh(u),"data-disabled":s?"":void 0,...c,ref:n})})}));Kh.displayName=Hh;var Gh="CollapsibleTrigger",qh=r.forwardRef(((t,n)=>{const{__scopeCollapsible:r,...o}=t,i=Uh(Gh,r);return e(Dh.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Qh(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:Ah(t.onClick,i.onOpenToggle)})}));qh.displayName=Gh;var Xh="CollapsibleContent",Yh=r.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=Uh(Xh,t.__scopeCollapsible);return e(Fh,{present:r||i.open,children:({present:t})=>e(Zh,{...o,ref:n,present:t})})}));Yh.displayName=Xh;var Zh=r.forwardRef(((t,n)=>{const{__scopeCollapsible:o,present:i,children:a,...s}=t,l=Uh(Xh,o),[c,u]=r.useState(i),d=r.useRef(null),f=Dp(n,d),p=r.useRef(0),h=p.current,m=r.useRef(0),g=m.current,v=l.open||c,b=r.useRef(v),w=r.useRef(void 0);return r.useEffect((()=>{const e=requestAnimationFrame((()=>b.current=!1));return()=>cancelAnimationFrame(e)}),[]),Th((()=>{const e=d.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,m.current=t.width,b.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),u(i)}}),[l.open,i]),e(Dh.div,{"data-state":Qh(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:v&&a})}));function Qh(e){return e?"open":"closed"}const Jh=Kh,em=qh,tm=Yh;function nm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function rm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function om(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function im(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}function am({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,i=r.useRef(o),a=im(t);return r.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o,l=im(n);return[s,r.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}var sm=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),s=a.find(um);if(s){const t=s.props.children,o=a.map((e=>e===s?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(lm,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(lm,{...i,ref:n,children:o})}));sm.displayName="Slot";var lm=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return r.cloneElement(n,{...dm(o,n.props),ref:t?rm(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null}));lm.displayName="SlotClone";var cm=({children:t})=>e(n,{children:t});function um(e){return r.isValidElement(e)&&e.type===cm}function dm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var fm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?sm:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});function pm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function hm(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;function l(n){const{scope:o,children:i,...l}=n,c=o?.[t][s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})}return o=[...o,i],l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t][s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},mm(i,...n)]}function mm(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function gm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function vm(...e){return r.useCallback(gm(...e),e)}var bm=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),s=a.find(xm);if(s){const t=s.props.children,o=a.map((e=>e===s?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(wm,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(wm,{...i,ref:n,children:o})}));bm.displayName="Slot";var wm=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return r.cloneElement(n,{...Cm(o,n.props),ref:t?gm(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null}));wm.displayName="SlotClone";var ym=({children:t})=>e(n,{children:t});function xm(e){return r.isValidElement(e)&&e.type===ym}function Cm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Sm(t){const n=t+"CollectionProvider",[r,i]=hm(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,i=o.useRef(null),s=o.useRef(new Map).current;return e(a,{scope:n,itemMap:s,collectionRef:i,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=vm(n,s(c,r).collectionRef);return e(bm,{ref:i,children:o})}));u.displayName=c;const d=t+"CollectionItemSlot",f="data-radix-collection-item",p=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,l=o.useRef(null),c=vm(n,l),u=s(d,r);return o.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e(bm,{[f]:"",ref:c,children:i})}));return p.displayName=d,[{Provider:l,Slot:u,ItemSlot:p},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}var km=r.createContext(void 0);function Em(e){const t=r.useContext(km);return e||t||"ltr"}var Pm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?bm:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});function Nm(e,t){e&&R.flushSync((()=>e.dispatchEvent(t)))}function Rm(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}var Mm,Am="dismissableLayer.update",Im="dismissableLayer.pointerDownOutside",Tm="dismissableLayer.focusOutside",Om=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lm=r.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=r.useContext(Om),[f,p]=r.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=r.useState({}),g=vm(n,(e=>p(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),y=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=function(e,t=globalThis?.document){const n=Rm(e),o=r.useRef(!1),i=r.useRef((()=>{}));return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let r=function(){_m(Im,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(a?.(e),l?.(e),e.defaultPrevented||c?.())}),h),k=function(e,t=globalThis?.document){const n=Rm(e),o=r.useRef(!1);return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){_m(Tm,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||c?.())}),h);return function(e,t=globalThis?.document){const n=Rm(e);r.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{y===d.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),r.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Mm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Fm(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Mm)}}),[f,h,o,d]),r.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Fm())}),[f,d]),r.useEffect((()=>{const e=()=>m({});return document.addEventListener(Am,e),()=>document.removeEventListener(Am,e)}),[]),e(Pm.div,{...u,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:pm(t.onFocusCapture,k.onFocusCapture),onBlurCapture:pm(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pm(t.onPointerDownCapture,S.onPointerDownCapture)})}));Lm.displayName="DismissableLayer";var Dm=r.forwardRef(((t,n)=>{const o=r.useContext(Om),i=r.useRef(null),a=vm(n,i);return r.useEffect((()=>{const e=i.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}}),[o.branches]),e(Pm.div,{...t,ref:a})}));function Fm(){const e=new CustomEvent(Am);document.dispatchEvent(e)}function _m(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Nm(o,i):o.dispatchEvent(i)}Dm.displayName="DismissableLayerBranch";var Vm=0;function zm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var jm="focusScope.autoFocusOnMount",Hm="focusScope.autoFocusOnUnmount",Bm={bubbles:!1,cancelable:!0},$m=r.forwardRef(((t,n)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=t,[c,u]=r.useState(null),d=Rm(a),f=Rm(s),p=r.useRef(null),h=vm(n,(e=>u(e))),m=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>{if(i){let e=function(e){if(m.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Gm(p.current,{select:!0})},t=function(e){if(m.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Gm(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Gm(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[i,c,m.paused]),r.useEffect((()=>{if(c){qm.add(m);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(jm,Bm);c.addEventListener(jm,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Gm(r,{select:t}),document.activeElement!==n)return}((e=Wm(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Gm(c))}return()=>{c.removeEventListener(jm,d),setTimeout((()=>{const e=new CustomEvent(Hm,Bm);c.addEventListener(Hm,f),c.dispatchEvent(e),e.defaultPrevented||Gm(t??document.body,{select:!0}),c.removeEventListener(Hm,f),qm.remove(m)}),0)}}var e}),[c,d,f,m]);const g=r.useCallback((e=>{if(!o&&!i)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=Wm(e),n=Um(t,e),r=Um(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&Gm(i,{select:!0})):(e.preventDefault(),o&&Gm(r,{select:!0})):n===t&&e.preventDefault()}}),[o,i,m.paused]);return e(Pm.div,{tabIndex:-1,...l,ref:h,onKeyDown:g})}));function Wm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Um(e,t){for(const n of e)if(!Km(n,{upTo:t}))return n}function Km(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Gm(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}$m.displayName="FocusScope";var qm=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xm(e,t),e.unshift(t)},remove(t){e=Xm(e,t),e[0]?.resume()}}}();function Xm(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ym=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{},Zm=r["useId".toString()]||(()=>{}),Qm=0;function Jm(e){const[t,n]=r.useState(Zm());return Ym((()=>{n((e=>e??String(Qm++)))}),[e]),t?`radix-${t}`:""}var eg="undefined"!=typeof document?b:g;function tg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!tg(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ng(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rg(e,t){const n=ng(e);return Math.round(t*n)/n}function og(e){const t=r.useRef(e);return eg((()=>{t.current=e})),t}function ig(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);tg(p,o)||h(o);const[m,g]=r.useState(null),[v,b]=r.useState(null),w=r.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),y=r.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),x=a||m,C=s||v,S=r.useRef(null),k=r.useRef(null),E=r.useRef(d),P=null!=c,N=og(c),M=og(i),A=r.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};M.current&&(e.platform=M.current),Kl(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};I.current&&!tg(E.current,t)&&(E.current=t,R.flushSync((()=>{f(t)})))}))}),[p,t,n,M]);eg((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const I=r.useRef(!1);eg((()=>(I.current=!0,()=>{I.current=!1})),[]),eg((()=>{if(x&&(S.current=x),C&&(k.current=C),x&&C){if(N.current)return N.current(x,C,A);A()}}),[x,C,A,N,P]);const T=r.useMemo((()=>({reference:S,floating:k,setReference:w,setFloating:y})),[w,y]),O=r.useMemo((()=>({reference:x,floating:C})),[x,C]),L=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=rg(O.floating,d.x),r=rg(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ng(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:A,refs:T,elements:O,floatingStyles:L})),[d,A,T,O,L])}const ag=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Wl({element:n.current,padding:r}).fn(t):{}:n?Wl({element:n,padding:r}).fn(t):{};var o}}),sg=(e,t)=>({...zl(e),options:[e,t]}),lg=(e,t)=>({...jl(e),options:[e,t]}),cg=(e,t)=>({...Ul(e),options:[e,t]}),ug=(e,t)=>({...Hl(e),options:[e,t]}),dg=(e,t)=>({...Bl(e),options:[e,t]}),fg=(e,t)=>({...$l(e),options:[e,t]}),pg=(e,t)=>({...ag(e),options:[e,t]});var hg=r.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e(Pm.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e("polygon",{points:"0,0 30,0 15,10"})})}));hg.displayName="Arrow";var mg=hg;var gg="Popper",[vg,bg]=hm(gg),[wg,yg]=vg(gg),xg=t=>{const{__scopePopper:n,children:o}=t,[i,a]=r.useState(null);return e(wg,{scope:n,anchor:i,onAnchorChange:a,children:o})};xg.displayName=gg;var Cg="PopperAnchor",Sg=r.forwardRef(((t,n)=>{const{__scopePopper:o,virtualRef:i,...a}=t,s=yg(Cg,o),l=r.useRef(null),c=vm(n,l);return r.useEffect((()=>{s.onAnchorChange(i?.current||l.current)})),i?null:e(Pm.div,{...a,ref:c})}));Sg.displayName=Cg;var kg="PopperContent",[Eg,Pg]=vg(kg),Ng=r.forwardRef(((t,n)=>{const{__scopePopper:o,side:i="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=t,b=yg(kg,o),[w,y]=r.useState(null),x=vm(n,(e=>y(e))),[C,S]=r.useState(null),k=function(e){const[t,n]=r.useState(void 0);return Ym((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(C),E=k?.width??0,P=k?.height??0,N=i+("center"!==s?"-"+s:""),R="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(d)?d:[d],A=M.length>0,I={padding:R,boundary:M.filter(Ig),altBoundary:A},{refs:T,floatingStyles:O,placement:L,isPositioned:D,middlewareData:F}=ig({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>_l(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[sg({mainAxis:a+P,alignmentAxis:l}),u&&lg({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?cg():void 0,...I}),u&&ug({...I}),dg({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&pg({element:C,padding:c}),Tg({arrowWidth:E,arrowHeight:P}),h&&fg({strategy:"referenceHidden",...I})]}),[_,V]=Og(L),z=Rm(g);Ym((()=>{D&&z?.()}),[D,z]);const j=F.arrow?.x,H=F.arrow?.y,B=0!==F.arrow?.centerOffset,[$,W]=r.useState();return Ym((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:D?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e(Eg,{scope:o,placedSide:_,onArrowChange:S,arrowX:j,arrowY:H,shouldHideArrow:B,children:e(Pm.div,{"data-side":_,"data-align":V,...v,ref:x,style:{...v.style,animation:D?void 0:"none"}})})})}));Ng.displayName=kg;var Rg="PopperArrow",Mg={top:"bottom",right:"left",bottom:"top",left:"right"},Ag=r.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Pg(Rg,r),a=Mg[i.placedSide];return e("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:e(mg,{...o,ref:n,style:{...o.style,display:"block"}})})}));function Ig(e){return null!==e}Ag.displayName=Rg;var Tg=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=Og(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=i?u:`${d}px`,h=-s+"px"):"top"===l?(p=i?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function Og(e){const[t,n="center"]=e.split("-");return[t,n]}var Lg=xg,Dg=Sg,Fg=Ng,_g=Ag,Vg=r.forwardRef(((t,n)=>{const{container:o,...i}=t,[a,s]=r.useState(!1);Ym((()=>s(!0)),[]);const l=o||a&&globalThis?.document?.body;return l?M.createPortal(e(Pm.div,{...i,ref:n}),l):null}));Vg.displayName="Portal";var zg=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef({}),i=r.useRef(e),a=r.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=jg(o.current);a.current="mounted"===l?e:"none"}),[l]),Ym((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=jg(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),Ym((()=>{if(t){const e=e=>{const n=jg(o.current).includes(e.animationName);e.target===t&&n&&R.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=jg(o.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=vm(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function jg(e){return e?.animationName||"none"}function Hg({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,i=r.useRef(o),a=Rm(t);return r.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o,l=Rm(n);return[s,r.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}zg.displayName="Presence";var Bg="rovingFocusGroup.onEntryFocus",$g={bubbles:!1,cancelable:!0},Wg="RovingFocusGroup",[Ug,Kg,Gg]=Sm(Wg),[qg,Xg]=hm(Wg,[Gg]),[Yg,Zg]=qg(Wg),Qg=r.forwardRef(((t,n)=>e(Ug.Provider,{scope:t.__scopeRovingFocusGroup,children:e(Ug.Slot,{scope:t.__scopeRovingFocusGroup,children:e(Jg,{...t,ref:n})})})));Qg.displayName=Wg;var Jg=r.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,h=r.useRef(null),m=vm(n,h),g=Em(s),[v=null,b]=Hg({prop:l,defaultProp:c,onChange:u}),[w,y]=r.useState(!1),x=Rm(d),C=Kg(o),S=r.useRef(!1),[k,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(Bg,x),()=>e.removeEventListener(Bg,x)}),[x]),e(Yg,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:v,onItemFocus:r.useCallback((e=>b(e)),[b]),onItemShiftTab:r.useCallback((()=>y(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:e(Pm.div,{tabIndex:w||0===k?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:pm(t.onMouseDown,(()=>{S.current=!0})),onFocus:pm(t.onFocus,(e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(Bg,$g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter((e=>e.focusable));rv([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}S.current=!1})),onBlur:pm(t.onBlur,(()=>y(!1)))})})})),ev="RovingFocusGroupItem",tv=r.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:s,...l}=t,c=Jm(),u=s||c,d=Zg(ev,o),f=d.currentTabStopId===u,p=Kg(o),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return r.useEffect((()=>{if(i)return h(),()=>m()}),[i,h,m]),e(Ug.ItemSlot,{scope:o,id:u,focusable:i,active:a,children:e(Pm.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:n,onMouseDown:pm(t.onMouseDown,(e=>{i?d.onItemFocus(u):e.preventDefault()})),onFocus:pm(t.onFocus,(()=>d.onItemFocus(u))),onKeyDown:pm(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:nv[r]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>rv(o)))}var n,r}))})})}));tv.displayName=ev;var nv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rv(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var ov=Qg,iv=tv,av=["Enter"," "],sv=["ArrowUp","PageDown","End"],lv=["ArrowDown","PageUp","Home",...sv],cv={ltr:[...av,"ArrowRight"],rtl:[...av,"ArrowLeft"]},uv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dv="Menu",[fv,pv,hv]=Sm(dv),[mv,gv]=hm(dv,[hv,bg,Xg]),vv=bg(),bv=Xg(),[wv,yv]=mv(dv),[xv,Cv]=mv(dv),Sv=t=>{const{__scopeMenu:n,open:o=!1,children:i,dir:a,onOpenChange:s,modal:l=!0}=t,c=vv(n),[u,d]=r.useState(null),f=r.useRef(!1),p=Rm(s),h=Em(a);return r.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.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})}}),[]),e(Lg,{...c,children:e(wv,{scope:n,open:o,onOpenChange:p,content:u,onContentChange:d,children:e(xv,{scope:n,onClose:r.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:h,modal:l,children:i})})})};Sv.displayName=dv;var kv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=vv(r);return e(Dg,{...i,...o,ref:n})}));kv.displayName="MenuAnchor";var Ev="MenuPortal",[Pv,Nv]=mv(Ev,{forceMount:void 0}),Rv=t=>{const{__scopeMenu:n,forceMount:r,children:o,container:i}=t,a=yv(Ev,n);return e(Pv,{scope:n,forceMount:r,children:e(zg,{present:r||a.open,children:e(Vg,{asChild:!0,container:i,children:o})})})};Rv.displayName=Ev;var Mv="MenuContent",[Av,Iv]=mv(Mv),Tv=r.forwardRef(((t,n)=>{const r=Nv(Mv,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=yv(Mv,t.__scopeMenu),s=Cv(Mv,t.__scopeMenu);return e(fv.Provider,{scope:t.__scopeMenu,children:e(zg,{present:o||a.open,children:e(fv.Slot,{scope:t.__scopeMenu,children:s.modal?e(Ov,{...i,ref:n}):e(Lv,{...i,ref:n})})})})})),Ov=r.forwardRef(((t,n)=>{const o=yv(Mv,t.__scopeMenu),i=r.useRef(null),a=vm(n,i);return r.useEffect((()=>{const e=i.current;if(e)return wf(e)}),[]),e(Dv,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:pm(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})})),Lv=r.forwardRef(((t,n)=>{const r=yv(Mv,t.__scopeMenu);return e(Dv,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),Dv=r.forwardRef(((t,n)=>{const{__scopeMenu:o,loop:i=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...v}=t,b=yv(Mv,o),w=Cv(Mv,o),y=vv(o),x=bv(o),C=pv(o),[S,k]=r.useState(null),E=r.useRef(null),P=vm(n,E,b.onContentChange),N=r.useRef(0),R=r.useRef(""),M=r.useRef(0),A=r.useRef(null),I=r.useRef("right"),T=r.useRef(0),O=g?ff:r.Fragment,L=g?{as:bm,allowPinchZoom:!0}:void 0,D=e=>{const t=R.current+e,n=C().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;1===o.length&&(a=a.filter((e=>e!==n)));const c=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}(n.map((e=>e.textValue)),t,o),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){R.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};r.useEffect((()=>()=>window.clearTimeout(N.current)),[]),r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zm()),document.body.insertAdjacentElement("beforeend",e[1]??zm()),Vm++,()=>{1===Vm&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Vm--}}),[]);const F=r.useCallback((e=>I.current===A.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,A.current?.area)),[]);return e(Av,{scope:o,searchRef:R,onItemEnter:r.useCallback((e=>{F(e)&&e.preventDefault()}),[F]),onItemLeave:r.useCallback((e=>{F(e)||(E.current?.focus(),k(null))}),[F]),onTriggerLeave:r.useCallback((e=>{F(e)&&e.preventDefault()}),[F]),pointerGraceTimerRef:M,onPointerGraceIntentChange:r.useCallback((e=>{A.current=e}),[]),children:e(O,{...L,children:e($m,{asChild:!0,trapped:a,onMountAutoFocus:pm(s,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:e(Lm,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,children:e(ov,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:i,currentTabStopId:S,onCurrentTabStopIdChange:k,onEntryFocus:pm(u,(e=>{w.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:e(Fg,{role:"menu","aria-orientation":"vertical","data-state":cb(b.open),"data-radix-menu-content":"",dir:w.dir,...y,...v,ref:P,style:{outline:"none",...v.style},onKeyDown:pm(v.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=E.current;if(e.target!==o)return;if(!lv.includes(e.key))return;e.preventDefault();const i=C().filter((e=>!e.disabled)).map((e=>e.ref.current));sv.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:pm(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),R.current="")})),onPointerMove:pm(t.onPointerMove,fb((e=>{const t=e.target,n=T.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>T.current?"right":"left";I.current=t,T.current=e.clientX}})))})})})})})})}));Tv.displayName=Mv;var Fv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e(Pm.div,{role:"group",...o,ref:n})}));Fv.displayName="MenuGroup";var _v=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e(Pm.div,{...o,ref:n})}));_v.displayName="MenuLabel";var Vv="MenuItem",zv="menu.itemSelect",jv=r.forwardRef(((t,n)=>{const{disabled:o=!1,onSelect:i,...a}=t,s=r.useRef(null),l=Cv(Vv,t.__scopeMenu),c=Iv(Vv,t.__scopeMenu),u=vm(n,s),d=r.useRef(!1);return e(Hv,{...a,ref:u,disabled:o,onClick:pm(t.onClick,(()=>{const e=s.current;if(!o&&e){const t=new CustomEvent(zv,{bubbles:!0,cancelable:!0});e.addEventListener(zv,(e=>i?.(e)),{once:!0}),Nm(e,t),t.defaultPrevented?d.current=!1:l.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:pm(t.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:pm(t.onKeyDown,(e=>{const t=""!==c.searchRef.current;o||t&&" "===e.key||av.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));jv.displayName=Vv;var Hv=r.forwardRef(((t,n)=>{const{__scopeMenu:o,disabled:i=!1,textValue:a,...s}=t,l=Iv(Vv,o),c=bv(o),u=r.useRef(null),d=vm(n,u),[f,p]=r.useState(!1),[h,m]=r.useState("");return r.useEffect((()=>{const e=u.current;e&&m((e.textContent??"").trim())}),[s.children]),e(fv.ItemSlot,{scope:o,disabled:i,textValue:a??h,children:e(iv,{asChild:!0,...c,focusable:!i,children:e(Pm.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:d,onPointerMove:pm(t.onPointerMove,fb((e=>{if(i)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:pm(t.onPointerLeave,fb((e=>l.onItemLeave(e)))),onFocus:pm(t.onFocus,(()=>p(!0))),onBlur:pm(t.onBlur,(()=>p(!1)))})})})})),Bv=r.forwardRef(((t,n)=>{const{checked:r=!1,onCheckedChange:o,...i}=t;return e(Yv,{scope:t.__scopeMenu,checked:r,children:e(jv,{role:"menuitemcheckbox","aria-checked":ub(r)?"mixed":r,...i,ref:n,"data-state":db(r),onSelect:pm(i.onSelect,(()=>o?.(!!ub(r)||!r)),{checkForDefaultPrevented:!1})})})}));Bv.displayName="MenuCheckboxItem";var $v="MenuRadioGroup",[Wv,Uv]=mv($v,{value:void 0,onValueChange:()=>{}}),Kv=r.forwardRef(((t,n)=>{const{value:r,onValueChange:o,...i}=t,a=Rm(o);return e(Wv,{scope:t.__scopeMenu,value:r,onValueChange:a,children:e(Fv,{...i,ref:n})})}));Kv.displayName=$v;var Gv="MenuRadioItem",qv=r.forwardRef(((t,n)=>{const{value:r,...o}=t,i=Uv(Gv,t.__scopeMenu),a=r===i.value;return e(Yv,{scope:t.__scopeMenu,checked:a,children:e(jv,{role:"menuitemradio","aria-checked":a,...o,ref:n,"data-state":db(a),onSelect:pm(o.onSelect,(()=>i.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));qv.displayName=Gv;var Xv="MenuItemIndicator",[Yv,Zv]=mv(Xv,{checked:!1}),Qv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,forceMount:o,...i}=t,a=Zv(Xv,r);return e(zg,{present:o||ub(a.checked)||!0===a.checked,children:e(Pm.span,{...i,ref:n,"data-state":db(a.checked)})})}));Qv.displayName=Xv;var Jv=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e(Pm.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})}));Jv.displayName="MenuSeparator";var eb=r.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=vv(r);return e(_g,{...i,...o,ref:n})}));eb.displayName="MenuArrow";var tb="MenuSub",[nb,rb]=mv(tb),ob=t=>{const{__scopeMenu:n,children:o,open:i=!1,onOpenChange:a}=t,s=yv(tb,n),l=vv(n),[c,u]=r.useState(null),[d,f]=r.useState(null),p=Rm(a);return r.useEffect((()=>(!1===s.open&&p(!1),()=>p(!1))),[s.open,p]),e(Lg,{...l,children:e(wv,{scope:n,open:i,onOpenChange:p,content:d,onContentChange:f,children:e(nb,{scope:n,contentId:Jm(),triggerId:Jm(),trigger:c,onTriggerChange:u,children:o})})})};ob.displayName=tb;var ib="MenuSubTrigger",ab=r.forwardRef(((t,n)=>{const o=yv(ib,t.__scopeMenu),i=Cv(ib,t.__scopeMenu),a=rb(ib,t.__scopeMenu),s=Iv(ib,t.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:t.__scopeMenu},f=r.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return r.useEffect((()=>f),[f]),r.useEffect((()=>{const e=c.current;return()=>{window.clearTimeout(e),u(null)}}),[c,u]),e(kv,{asChild:!0,...d,children:e(Hv,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":a.contentId,"data-state":cb(o.open),...t,ref:gm(n,a.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:pm(t.onPointerMove,fb((e=>{s.onItemEnter(e),e.defaultPrevented||t.disabled||o.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{o.onOpenChange(!0),f()}),100))}))),onPointerLeave:pm(t.onPointerLeave,fb((e=>{f();const t=o.content?.getBoundingClientRect();if(t){const n=o.content?.dataset.side,r="right"===n,i=r?-5:5,a=t[r?"left":"right"],l=t[r?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:a,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>s.onPointerGraceIntentChange(null)),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}}))),onKeyDown:pm(t.onKeyDown,(e=>{const n=""!==s.searchRef.current;t.disabled||n&&" "===e.key||cv[i.dir].includes(e.key)&&(o.onOpenChange(!0),o.content?.focus(),e.preventDefault())}))})})}));ab.displayName=ib;var sb="MenuSubContent",lb=r.forwardRef(((t,n)=>{const o=Nv(Mv,t.__scopeMenu),{forceMount:i=o.forceMount,...a}=t,s=yv(Mv,t.__scopeMenu),l=Cv(Mv,t.__scopeMenu),c=rb(sb,t.__scopeMenu),u=r.useRef(null),d=vm(n,u);return e(fv.Provider,{scope:t.__scopeMenu,children:e(zg,{present:i||s.open,children:e(fv.Slot,{scope:t.__scopeMenu,children:e(Dv,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:d,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:pm(t.onFocusOutside,(e=>{e.target!==c.trigger&&s.onOpenChange(!1)})),onEscapeKeyDown:pm(t.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:pm(t.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=uv[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function cb(e){return e?"open":"closed"}function ub(e){return"indeterminate"===e}function db(e){return ub(e)?"indeterminate":e?"checked":"unchecked"}function fb(e){return t=>"mouse"===t.pointerType?e(t):void 0}lb.displayName=sb;var pb=Sv,hb=kv,mb=Rv,gb=Tv,vb=Fv,bb=_v,wb=jv,yb=Bv,xb=Kv,Cb=qv,Sb=Qv,kb=Jv,Eb=eb,Pb=ob,Nb=ab,Rb=lb,Mb=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{},Ab=r["useId".toString()]||(()=>{}),Ib=0;function Tb(e){const[t,n]=r.useState(Ab());return Mb((()=>{n((e=>e??String(Ib++)))}),[e]),e||(t?`radix-${t}`:"")}var Ob="DropdownMenu",[Lb,Db]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;function l(n){const{scope:o,children:i,...l}=n,c=o?.[t][s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})}return o=[...o,i],l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t][s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},om(i,...n)]}(Ob,[gv]),Fb=gv(),[_b,Vb]=Lb(Ob),zb=t=>{const{__scopeDropdownMenu:n,children:o,dir:i,open:a,defaultOpen:s,onOpenChange:l,modal:c=!0}=t,u=Fb(n),d=r.useRef(null),[f=!1,p]=am({prop:a,defaultProp:s,onChange:l});return e(_b,{scope:n,triggerId:Tb(),triggerRef:d,contentId:Tb(),open:f,onOpenChange:p,onOpenToggle:r.useCallback((()=>p((e=>!e))),[p]),modal:c,children:e(pb,{...u,open:f,onOpenChange:p,dir:i,modal:c,children:o})})};zb.displayName=Ob;var jb="DropdownMenuTrigger",Hb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,a=Vb(jb,r),s=Fb(r);return e(hb,{asChild:!0,...s,children:e(fm.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":o?"":void 0,disabled:o,...i,ref:rm(n,a.triggerRef),onPointerDown:nm(t.onPointerDown,(e=>{o||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:nm(t.onKeyDown,(e=>{o||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Hb.displayName=jb;var Bb=t=>{const{__scopeDropdownMenu:n,...r}=t,o=Fb(n);return e(mb,{...o,...r})};Bb.displayName="DropdownMenuPortal";var $b="DropdownMenuContent",Wb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:o,...i}=t,a=Vb($b,o),s=Fb(o),l=r.useRef(!1);return e(gb,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...i,ref:n,onCloseAutoFocus:nm(t.onCloseAutoFocus,(e=>{l.current||a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:nm(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(l.current=!0)})),style:{...t.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)"}})}));Wb.displayName=$b;var Ub=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(vb,{...i,...o,ref:n})}));Ub.displayName="DropdownMenuGroup";var Kb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(bb,{...i,...o,ref:n})}));Kb.displayName="DropdownMenuLabel";var Gb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(wb,{...i,...o,ref:n})}));Gb.displayName="DropdownMenuItem";var qb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(yb,{...i,...o,ref:n})}));qb.displayName="DropdownMenuCheckboxItem";var Xb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(xb,{...i,...o,ref:n})}));Xb.displayName="DropdownMenuRadioGroup";var Yb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(Cb,{...i,...o,ref:n})}));Yb.displayName="DropdownMenuRadioItem";var Zb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(Sb,{...i,...o,ref:n})}));Zb.displayName="DropdownMenuItemIndicator";var Qb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(kb,{...i,...o,ref:n})}));Qb.displayName="DropdownMenuSeparator";var Jb=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(Eb,{...i,...o,ref:n})}));Jb.displayName="DropdownMenuArrow";var ew=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(Nb,{...i,...o,ref:n})}));ew.displayName="DropdownMenuSubTrigger";var tw=r.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Fb(r);return e(Rb,{...i,...o,ref:n,style:{...t.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)"}})}));tw.displayName="DropdownMenuSubContent";var nw=Bb,rw=Wb,ow=Kb,iw=Gb,aw=qb,sw=Yb,lw=Zb,cw=Qb,uw=t=>{const{__scopeDropdownMenu:n,children:r,open:o,onOpenChange:i,defaultOpen:a}=t,s=Fb(n),[l=!1,c]=am({prop:o,defaultProp:a,onChange:i});return e(Pb,{...s,open:l,onOpenChange:c,children:r})},dw=ew,fw=tw;const pw=zb,hw=Hb,mw=Ub,gw=nw,vw=uw,bw=Xb,ww=r.forwardRef((({className:n="",inset:r,children:o,...i},a)=>t(dw,{ref:a,className:an("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",r?"pl-8":"",n),...i,children:[o,e(qp,{className:"ml-auto h-4 w-4"})]})));ww.displayName=dw.displayName;const yw=r.forwardRef((({className:t="",...n},r)=>e(fw,{ref:r,className:an("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...n})));yw.displayName=fw.displayName;const xw=r.forwardRef((({className:t="",sideOffset:n=4,...r},o)=>e(nw,{children:e(rw,{ref:o,sideOffset:n,className:an("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in 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 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})})));xw.displayName=rw.displayName;const Cw=r.forwardRef((({className:t="",inset:n,...r},o)=>e(iw,{ref:o,className:an("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",n?"pl-8":"",t),...r})));Cw.displayName=iw.displayName;const Sw=r.forwardRef((({className:n="",children:r,checked:o,...i},a)=>t(aw,{ref:a,className:an("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",n),checked:o,...i,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(lw,{children:e(Up,{className:"h-4 w-4"})})}),r]})));Sw.displayName=aw.displayName;const kw=r.forwardRef((({className:n="",children:r,...o},i)=>t(sw,{ref:i,className:an(n,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...o,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(lw,{children:e(Xp,{className:"h-2 w-2 fill-current"})})}),r]})));kw.displayName=sw.displayName;const Ew=r.forwardRef((({className:t="",inset:n,...r},o)=>e(ow,{ref:o,className:an("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",n?"pl-8":"",t),...r})));Ew.displayName=ow.displayName;const Pw=r.forwardRef((({className:t="",...n},r)=>e(cw,{ref:r,className:an("-mx-1 my-1 h-px bg-border-medium",t),...n})));Pw.displayName=cw.displayName;const Nw=({className:t="",...n})=>e("span",{className:an("ml-auto text-xs tracking-widest text-gray-500",t),...n});function Rw({column:n,title:r,className:o=""}){return n.getCanSort()?e("div",{className:an("flex items-center space-x-2",o),children:t(pw,{children:[e(hw,{asChild:!0,children:t(mh,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e("span",{children:r}),"desc"===n.getIsSorted()?e(rt,{className:"ml-2 h-4 w-4"}):"asc"===n.getIsSorted()?e(it,{className:"ml-2 h-4 w-4"}):e(st,{className:"ml-2 h-4 w-4"})]})}),t(xw,{align:"start",className:"z-[1001]",children:[t(Cw,{onClick:()=>n.toggleSorting(!1),children:[e(it,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),t(Cw,{onClick:()=>n.toggleSorting(!0),children:[e(rt,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e(Pw,{}),t(Cw,{onClick:()=>n.toggleVisibility(!1),children:[e(mt,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e("div",{className:an(o),children:r})}var Mw;Nw.displayName="DropdownMenuShortcut",function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(Mw||(Mw={}));const Aw=O("en"),Iw=O("ltr"),Tw=O("text-base"),Ow=O({open:!1,message:"",severity:Mw.SUCCESS,showIcon:!0}),Lw=i({theme:"light",setTheme:()=>{}}),Dw=({initialTheme:t,children:n})=>{const[r,o]=v((()=>t??ln())),i=L(Tw);return g((()=>{const e=document.documentElement,t="system"===r?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===r;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",r)}),[r]),g((()=>{if("system"!==r)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>o(e.matches?"dark":"light");return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}),[r]),g((()=>{const e=localStorage.getItem("fontSize")||"text-base";sn(e),i(e)}),[i]),e(Lw.Provider,{value:{theme:r,setTheme:o},children:n})};function Fw(e=100){const[t,n]=D(Ow),r=m(null),o=m(null);g((()=>()=>{null!==r.current&&clearTimeout(r.current),null!==o.current&&clearTimeout(o.current)}),[]);return{toast:t,onOpenChange:e=>n({...t,open:e}),showToast:({message:t,severity:i=Mw.SUCCESS,showIcon:a=!0,duration:s=3e3,status:l})=>{null!==r.current&&clearTimeout(r.current),null!==o.current&&clearTimeout(o.current),r.current=window.setTimeout((()=>{n({open:!0,message:t,severity:l??i,showIcon:a}),o.current=window.setTimeout((()=>{n((e=>({...e,open:!1})))}),s)}),e)}}}var _w={exports:{}},Vw={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ả":"A","Ạ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ẻ":"E","Ẽ":"E","Ẹ":"E","Ể":"E","Ễ":"E","Ệ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ỉ":"I","Ị":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ỏ":"O","Ọ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ớ":"O","Ợ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ủ":"U","Ụ":"U","Ử":"U","Ữ":"U","Ự":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ả":"a","ạ":"a","ẩ":"a","ẫ":"a","ậ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ẻ":"e","ẽ":"e","ẹ":"e","ể":"e","ễ":"e","ệ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ỉ":"i","ị":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ỏ":"o","ọ":"o","ổ":"o","ỗ":"o","ộ":"o","ờ":"o","ở":"o","ỡ":"o","ớ":"o","ợ":"o","ù":"u","ú":"u","û":"u","ü":"u","ủ":"u","ụ":"u","ử":"u","ữ":"u","ự":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},zw=Object.keys(Vw).join("|"),jw=new RegExp(zw,"g"),Hw=new RegExp(zw,"");function Bw(e){return Vw[e]}var $w=function(e){return e.replace(jw,Bw)};_w.exports=$w,_w.exports.has=function(e){return!!e.match(Hw)},_w.exports.remove=$w;var Ww=Vo(_w.exports);
26
+ /**
27
+ * @name match-sorter
28
+ * @license MIT license.
29
+ * @copyright (c) 2020 Kent C. Dodds
30
+ * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
31
+ */
32
+ const Uw={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Kw=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Gw(e,t,n){void 0===n&&(n={});const{keys:r,threshold:o=Uw.MATCHES,baseSort:i=Kw,sorter:a=(e=>e.sort(((e,t)=>Xw(e,t,i))))}=n,s=e.reduce((function(e,i,a){const s=function(e,t,n,r){if(!t){return{rankedValue:e,rank:qw(e,n,r),keyIndex:-1,keyThreshold:r.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],i=Jw(o),a=Zw(e,o);for(let e=0,t=a.length;e<t;e++)n.push({itemValue:a[e],attributes:i})}return n}(e,t);return o.reduce(((e,t,o)=>{let{rank:i,rankedValue:a,keyIndex:s,keyThreshold:l}=e,{itemValue:c,attributes:u}=t,d=qw(c,n,r),f=a;const{minRanking:p,maxRanking:h,threshold:m}=u;return d<p&&d>=Uw.MATCHES?d=p:d>h&&(d=h),d>i&&(i=d,s=o,l=m,f=c),{rankedValue:f,rank:i,keyIndex:s,keyThreshold:l}}),{rankedValue:e,rank:Uw.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(i,r,t,n),{rank:l,keyThreshold:c=o}=s;l>=c&&e.push({...s,item:i,index:a});return e}),[]);return a(s).map((e=>{let{item:t}=e;return t}))}function qw(e,t,n){return e=Yw(e,n),(t=Yw(t,n)).length>e.length?Uw.NO_MATCH:e===t?Uw.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?Uw.EQUAL:e.startsWith(t)?Uw.STARTS_WITH:e.includes(` ${t}`)?Uw.WORD_STARTS_WITH:e.includes(t)?Uw.CONTAINS:1===t.length?Uw.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Uw.ACRONYM:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const r=1/e,o=n/t.length;return Uw.MATCHES+o*r}const a=o(t[0],e,0);if(a<0)return Uw.NO_MATCH;r=a;for(let n=1,i=t.length;n<i;n++){r=o(t[n],e,r);if(!(r>-1))return Uw.NO_MATCH}return i(r-a)}(e,t)}function Xw(e,t,n){const{rank:r,keyIndex:o}=e,{rank:i,keyIndex:a}=t;return r===i?o===a?n(e,t):o<a?-1:1:r>i?-1:1}function Yw(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Ww(e)),e}function Zw(e,t){let n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){const n=e.split(".");let r=[t];for(let e=0,t=n.length;e<t;e++){const t=n[e];let o=[];for(let e=0,n=r.length;e<n;e++){const n=r[e];if(null!=n)if(Object.hasOwnProperty.call(n,t)){const e=n[t];null!=e&&o.push(e)}else"*"===t&&(o=o.concat(n))}r=o}if(Array.isArray(r[0])){return[].concat(...r)}return r}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}Gw.rankings=Uw;const Qw={maxRanking:1/0,minRanking:-1/0};function Jw(e){return"string"==typeof e?Qw:{...Qw,...e}}function ey({value:e,options:t}){const[n,r]=v(!1),[o,i]=v(""),s=a((()=>{if(!o)return t;const n=Gw(t,o,{keys:["label","value"]}),r=t.find((t=>t.value===e));return r&&!n.includes(r)&&n.push(r),n}),[o,e,t]);return{open:n,setOpen:r,searchValue:o,setSearchValue:i,matches:s}}function ty(){const e=F(Aw),{t:t,i18n:n}=_();return g((()=>{n.language!==e&&n.changeLanguage(e)}),[e,n]),(e,n)=>t(e,n)}function ny(e){const[t,n]=v(!1);return g((()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const o=()=>n(r.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}),[t,e]),t}const ry=e=>{const[t,n]=v(!0),r=m(null);return g((()=>{if(t){const t=new Promise((t=>{const r=setTimeout((()=>{n(!1),t()}),e);return()=>{clearTimeout(r)}}));r.current=t}return()=>{r.current=null}}),[e,t]),e=>{if(t&&r.current)throw r.current;return e()}};function oy(e,t,n,r){g((()=>{const o=o=>{const i=o.target;i&&"id"in i&&n.includes(i.id)||i?.parentNode&&"id"in i.parentNode&&n.includes(i.parentNode.id)||r&&r(i)||e.current&&!e.current.contains(i)&&t()};return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}}),[e,t])}const iy=Kf,ay=Gf,sy=({className:t="",children:n,...r})=>e(qf,{className:an(t),...r,children:e("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:n})});sy.displayName=qf.displayName;const ly=r.forwardRef((({className:t,...n},r)=>e(Xf,{className:an("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...n,ref:r})));ly.displayName=Xf.displayName;const cy=r.forwardRef((({className:n,children:r=!0,showCloseButton:o=!0,disableScroll:i=!1,...a},s)=>{const l=ny("(max-width: 768px)");return t(sy,{children:[e(ly,{}),t(Yf,{ref:s,className:an("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",l?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",i?"overflow-hidden":"",n??""),...a,children:[r,o&&t(Jf,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e(oh,{className:"h-5 w-5 text-black dark:text-white"}),e("span",{className:"sr-only",children:"Close"})]})]})]})}));cy.displayName=Yf.displayName;const uy=({className:t,...n})=>e("div",{className:an("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...n});uy.displayName="DialogHeader";const dy=({className:t,...n})=>e("div",{className:an("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...n});dy.displayName="DialogFooter";const fy=r.forwardRef((({className:t,...n},r)=>e(Zf,{ref:r,className:an("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...n})));fy.displayName=Zf.displayName;const py=r.forwardRef((({className:t,...n},r)=>e(Qf,{ref:r,className:an("text-sm text-gray-500","dark:text-gray-400",t??""),...n})));py.displayName=Qf.displayName;const hy=r.forwardRef((({className:t,...n},r)=>e(Jf,{ref:r,className:an("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n})));hy.displayName=Zf.displayName;const my=r.forwardRef((({className:t,...n},r)=>e(mh,{ref:r,variant:"outline",className:an("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n})));my.displayName=Zf.displayName;const gy="Popper",[vy,by]=j(gy),[wy,yy]=vy(gy),xy=u(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=yy("PopperAnchor",n),a=m(null),l=$(t,a);return g((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:s(J.div,z({},o,{ref:l}))})),Cy="PopperContent",[Sy,ky]=vy(Cy),Ey=u(((e,t)=>{var n,r,o,i,a,l,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:k,...E}=e,P=yy(Cy,d),[N,R]=v(null),M=$(t,(e=>R(e))),[A,I]=v(null),T=gh(A),O=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,L=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,D=f+("center"!==h?"-"+h:""),F="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},_=Array.isArray(w)?w:[w],V=_.length>0,j={padding:F,boundary:_.filter(Py),altBoundary:V},{refs:H,floatingStyles:B,placement:W,isPositioned:U,middlewareData:K}=ig({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>_l(...e,{animationFrame:"always"===S}),elements:{reference:P.anchor},middleware:[sg({mainAxis:p+L,alignmentAxis:m}),b&&lg({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?cg():void 0,...j}),b&&ug({...j}),dg({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),A&&pg({element:A,padding:g}),Ny({arrowWidth:O,arrowHeight:L}),C&&fg({strategy:"referenceHidden",...j})]}),[G,q]=Ry(W),X=Z(k);te((()=>{U&&(null==X||X())}),[U,X]);const Y=null===(o=K.arrow)||void 0===o?void 0:o.x,Q=null===(i=K.arrow)||void 0===i?void 0:i.y,ee=0!==(null===(a=K.arrow)||void 0===a?void 0:a.centerOffset),[ne,re]=v();return te((()=>{N&&re(window.getComputedStyle(N).zIndex)}),[N]),s("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:U?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(l=K.transformOrigin)||void 0===l?void 0:l.x,null===(c=K.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},s(Sy,{scope:d,placedSide:G,onArrowChange:I,arrowX:Y,arrowY:Q,shouldHideArrow:ee},s(J.div,z({"data-side":G,"data-align":q},E,{ref:M,style:{...E.style,animation:U?void 0:"none",opacity:null!==(u=K.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))}));function Py(e){return null!==e}const Ny=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,h]=Ry(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",w="";return"bottom"===p?(b=u?m:`${g}px`,w=-f+"px"):"top"===p?(b=u?m:`${g}px`,w=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",w=u?m:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,w=u?m:`${v}px`),{data:{x:b,y:w}}}});function Ry(e){const[t,n="center"]=e.split("-");return[t,n]}const My=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v(null);return s(wy,{scope:t,anchor:r,onAnchorChange:o},n)},Ay=xy,Iy=Ey;let Ty;const Oy="HoverCard",[Ly,Dy]=j(Oy,[by]),Fy=by(),[_y,Vy]=Ly(Oy),zy=u(((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Vy("HoverCardTrigger",n),i=Fy(n);return s(Ay,z({asChild:!0},i),s(J.a,z({"data-state":o.open?"open":"closed"},r,{ref:t,onPointerEnter:Y(e.onPointerEnter,Ky(o.onOpen)),onPointerLeave:Y(e.onPointerLeave,Ky(o.onClose)),onFocus:Y(e.onFocus,o.onOpen),onBlur:Y(e.onBlur,o.onClose),onTouchStart:Y(e.onTouchStart,(e=>e.preventDefault()))})))})),jy="HoverCardPortal",[Hy,By]=Ly(jy,{forceMount:void 0}),$y="HoverCardContent",Wy=u(((e,t)=>{const n=By($y,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Vy($y,e.__scopeHoverCard);return s(ne,{present:r||i.open},s(Uy,z({"data-state":i.open?"open":"closed"},o,{onPointerEnter:Y(e.onPointerEnter,Ky(i.onOpen)),onPointerLeave:Y(e.onPointerLeave,Ky(i.onClose)),ref:t})))})),Uy=u(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...l}=e,c=Vy($y,n),u=Fy(n),d=m(null),f=$(t,d),[p,h]=v(!1);return g((()=>{if(p){const e=document.body;return Ty=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Ty,e.style.webkitUserSelect=Ty}}}),[p]),g((()=>{if(d.current){const e=()=>{h(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),g((()=>{if(d.current){(function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(d.current).forEach((e=>e.setAttribute("tabindex","-1")))}})),s(sd,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Y(i,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},s(Iy,z({},u,l,{onPointerDown:Y(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&h(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:f,style:{...l.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function Ky(e){return t=>"touch"===t.pointerType?void 0:e()}const Gy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:l=300}=e,u=Fy(t),d=m(0),f=m(0),p=m(!1),h=m(!1),[v=!1,b]=Q({prop:r,defaultProp:o,onChange:i}),w=c((()=>{clearTimeout(f.current),d.current=window.setTimeout((()=>b(!0)),a)}),[a,b]),y=c((()=>{clearTimeout(d.current),p.current||h.current||(f.current=window.setTimeout((()=>b(!1)),l))}),[l,b]),x=c((()=>b(!1)),[b]);return g((()=>()=>{clearTimeout(d.current),clearTimeout(f.current)}),[]),s(_y,{scope:t,open:v,onOpenChange:b,onOpen:w,onClose:y,onDismiss:x,hasSelectionRef:p,isPointerDownOnContentRef:h},s(My,u,n))},qy=e=>{const{__scopeHoverCard:t,forceMount:n,children:r,container:o}=e,i=Vy(jy,t);return s(Hy,{scope:t,forceMount:n},s(ne,{present:n||i.open},s(xd,{asChild:!0,container:o},r)))},Xy=Wy,Yy=Gy,Zy=zy,Qy=qy,Jy=r.forwardRef((({className:t="",align:n="center",sideOffset:r=6,disabled:o=!1,...i},a)=>o?null:e(Xy,{ref:a,align:n,sideOffset:r,className:an("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none 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",t),...i})));Jy.displayName=Xy.displayName;const ex=r.forwardRef((({className:t,...n},r)=>e("input",{className:an("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:r,...n})));function tx(e){"@babel/helpers - typeof";return tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tx(e)}function nx(e){var t=function(e,t){if("object"!=tx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=tx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tx(t)?t:t+""}function rx(e,t,n){return(t=nx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ox(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ix(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ox(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ox(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ax(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}ex.displayName="Input";var sx,lx={exports:{}};
33
+ /*!
34
+ Copyright (c) 2018 Jed Watson.
35
+ Licensed under the MIT License (MIT), see
36
+ http://jedwatson.github.io/classnames
37
+ */sx=lx,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}sx.exports?(t.default=t,sx.exports=t):window.classNames=t}();var cx=Vo(lx.exports),ux={ENTER:13,UP:38,DOWN:40};var dx,fx="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,px=function(e,t){var n=r.useRef(!0);fx((function(){return e(n.current)}),t),fx((function(){return n.current=!1,function(){n.current=!0}}),[])},hx=function(e,t){px((function(t){if(!t)return e()}),t)},mx={},gx=Symbol.for("react.element"),vx=Symbol.for("react.portal"),bx=Symbol.for("react.fragment"),wx=Symbol.for("react.strict_mode"),yx=Symbol.for("react.profiler"),xx=Symbol.for("react.provider"),Cx=Symbol.for("react.context"),Sx=Symbol.for("react.server_context"),kx=Symbol.for("react.forward_ref"),Ex=Symbol.for("react.suspense"),Px=Symbol.for("react.suspense_list"),Nx=Symbol.for("react.memo"),Rx=Symbol.for("react.lazy"),Mx=Symbol.for("react.offscreen");function Ax(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gx:switch(e=e.type){case bx:case yx:case wx:case Ex:case Px:return e;default:switch(e=e&&e.$$typeof){case Sx:case Cx:case kx:case Rx:case Nx:case xx:return e;default:return t}}case vx:return t}}}function Ix(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===tx(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function Tx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ox(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nx(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lx(){return"function"==typeof BigInt}function Dx(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Fx(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function _x(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Vx(e){var t=String(e);if(_x(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&jx(t)?t.length-t.indexOf(".")-1:0}function zx(e){var t=String(e);if(_x(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Lx()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Lx()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Vx(t))}return Fx(t).fullStr}function jx(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}dx=Symbol.for("react.module.reference"),mx.ContextConsumer=Cx,mx.ContextProvider=xx,mx.Element=gx,mx.ForwardRef=kx,mx.Fragment=bx,mx.Lazy=Rx,mx.Memo=Nx,mx.Portal=vx,mx.Profiler=yx,mx.StrictMode=wx,mx.Suspense=Ex,mx.SuspenseList=Px,mx.isAsyncMode=function(){return!1},mx.isConcurrentMode=function(){return!1},mx.isContextConsumer=function(e){return Ax(e)===Cx},mx.isContextProvider=function(e){return Ax(e)===xx},mx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gx},mx.isForwardRef=function(e){return Ax(e)===kx},mx.isFragment=function(e){return Ax(e)===bx},mx.isLazy=function(e){return Ax(e)===Rx},mx.isMemo=function(e){return Ax(e)===Nx},mx.isPortal=function(e){return Ax(e)===vx},mx.isProfiler=function(e){return Ax(e)===yx},mx.isStrictMode=function(e){return Ax(e)===wx},mx.isSuspense=function(e){return Ax(e)===Ex},mx.isSuspenseList=function(e){return Ax(e)===Px},mx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bx||e===yx||e===wx||e===Ex||e===Px||e===Mx||"object"==typeof e&&null!==e&&(e.$$typeof===Rx||e.$$typeof===Nx||e.$$typeof===xx||e.$$typeof===Cx||e.$$typeof===kx||e.$$typeof===dx||void 0!==e.getModuleId)},mx.typeOf=Ax;var Hx=function(){function e(t){if(Tx(this,e),rx(this,"origin",""),rx(this,"negative",void 0),rx(this,"integer",void 0),rx(this,"decimal",void 0),rx(this,"decimalLen",void 0),rx(this,"empty",void 0),rx(this,"nan",void 0),Dx(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(_x(n)&&(n=Number(n)),jx(n="string"==typeof n?n:zx(n))){var r=Fx(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return Ox(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=Fx(i),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Fx("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Bx=function(){function e(t){Tx(this,e),rx(this,"origin",""),rx(this,"number",void 0),rx(this,"empty",void 0),Dx(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ox(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Vx(this.number),Vx(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Vx(this.number),Vx(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":zx(this.number):this.origin}}]),e}();function $x(e){return Lx()?new Hx(e):new Bx(e)}function Wx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Fx(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);return u>=5&&!r?Wx($x(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}var Ux=function(){var e=ix(v(!1),2),t=e[0],n=e[1];return px((function(){n(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]),t};function Kx(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,a=e.downDisabled,s=e.onStep,l=r.useRef(),c=r.useRef();c.current=s;var u=function(e,t){e.preventDefault(),c.current(t),l.current=setTimeout((function e(){c.current(t),l.current=setTimeout(e,200)}),600)},d=function(){clearTimeout(l.current)};if(r.useEffect((function(){return d}),[]),Ux())return null;var f="".concat(t,"-handler"),p=cx(f,"".concat(f,"-up"),rx({},"".concat(f,"-up-disabled"),i)),h=cx(f,"".concat(f,"-down"),rx({},"".concat(f,"-down-disabled"),a)),m={unselectable:"on",role:"button",onMouseUp:d,onMouseLeave:d};return r.createElement("div",{className:"".concat(f,"-wrap")},r.createElement("span",z({},m,{onMouseDown:function(e){u(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:p}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",z({},m,{onMouseDown:function(e){u(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:h}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Gx(e){var t="number"==typeof e?zx(e):Fx(e).fullStr;return t.includes(".")?Fx(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var qx={};function Xx(e,t){}function Yx(e,t){}function Zx(e,t,n){t||qx[n]||(e(!1,n),qx[n]=!0)}function Qx(e,t){Zx(Xx,e,t)}Qx.preMessage=function(e){},Qx.resetWarned=function(){qx={}},Qx.noteOnce=function(e,t){Zx(Yx,e,t)};var Jx=function(e){return+setTimeout(e,16)},eC=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Jx=function(e){return window.requestAnimationFrame(e)},eC=function(e){return window.cancelAnimationFrame(e)});var tC=0,nC=new Map;function rC(e){nC.delete(e)}var oC=function(e){var t=tC+=1;return function n(r){if(0===r)rC(t),e();else{var o=Jx((function(){n(r-1)}));nC.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};oC.cancel=function(e){var t=nC.get(e);return rC(e),eC(t)};var iC=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],aC=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},sC=function(e){var t=$x(e);return t.isInvalidate()?null:t},lC=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=void 0===o?"rc-input-number":o,a=e.className,s=e.style,l=e.min,c=e.max,u=e.step,d=void 0===u?1:u,f=e.defaultValue,p=e.value,h=e.disabled,v=e.readOnly,b=e.upHandler,w=e.downHandler,y=e.keyboard,x=e.controls,C=void 0===x||x,S=e.stringMode,k=e.parser,E=e.formatter,P=e.precision,N=e.decimalSeparator,R=e.onChange,M=e.onInput,A=e.onPressEnter,I=e.onStep,T=function(e,t){if(null==e)return{};var n,r,o=ax(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,iC),O="".concat(i,"-input"),L=r.useRef(null),D=ix(r.useState(!1),2),F=D[0],_=D[1],V=r.useRef(!1),j=r.useRef(!1),H=r.useRef(!1),B=ix(r.useState((function(){return $x(null!=p?p:f)})),2),$=B[0],W=B[1];var U=r.useCallback((function(e,t){if(!t)return P>=0?P:Math.max(Vx(e),Vx(d))}),[P,d]),K=r.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return N&&(n=n.replace(N,".")),n.replace(/[^\w.-]+/g,"")}),[k,N]),G=r.useRef(""),q=r.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(G.current)});var n="number"==typeof e?zx(e):e;if(!t){var r=U(n,t);if(jx(n)&&(N||r>=0))n=Wx(n,N||".",r)}return n}),[E,U,N]),X=ix(r.useState((function(){var e=null!=f?f:p;return $.isInvalidate()&&["string","number"].includes(tx(e))?Number.isNaN(e)?"":e:q($.toString(),!1)})),2),Y=X[0],Z=X[1];function Q(e,t){Z(q(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}G.current=Y;var J,ee,te,ne,re,oe=r.useMemo((function(){return sC(c)}),[c,P]),ie=r.useMemo((function(){return sC(l)}),[l,P]),ae=r.useMemo((function(){return!(!oe||!$||$.isInvalidate())&&oe.lessEquals($)}),[oe,$]),se=r.useMemo((function(){return!(!ie||!$||$.isInvalidate())&&$.lessEquals(ie)}),[ie,$]),le=(J=L.current,ee=F,te=m(null),[function(){try{var e=J.selectionStart,t=J.selectionEnd,n=J.value,r=n.substring(0,e),o=n.substring(t);te.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(J&&te.current&&ee)try{var e=J.value,t=te.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-te.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],s=e.indexOf(a,o-1);-1!==s&&(i=s+1)}J.setSelectionRange(i,i)}catch(e){Qx(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),ce=ix(le,2),ue=ce[0],de=ce[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!v&&!h&&o){var i=r.toString(),a=U(i,t);return a>=0&&(r=$x(Wx(i,".",a)),pe(r)||(r=$x(Wx(i,".",a,!0)))),r.equals($)||(n=r,void 0===p&&W(n),null==R||R(r.isEmpty()?null:aC(S,r)),void 0===p&&Q(r,t)),r}return $},me=(ne=m(0),re=function(){oC.cancel(ne.current)},g((function(){return re}),[]),function(e){re(),ne.current=oC((function(){e()}))}),ge=function e(t){if(ue(),Z(t),!j.current){var n=$x(K(t));n.isNaN()||he(n,!0)}null==M||M(t),me((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ve=function(e){var t;if(!(e&&ae||!e&&se)){V.current=!1;var n=$x(H.current?Gx(d):d);e||(n=n.negate());var r=($||$x(0)).add(n.toString()),o=he(r,!1);null==I||I(aC(S,o),{offset:H.current?Gx(d):d,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},be=function(e){var t=$x(K(Y)),n=t;n=t.isNaN()?$:he(t,e),void 0!==p?Q($,!1):n.isNaN()||Q(n,!1)};return hx((function(){$.isInvalidate()||Q($,!1)}),[P]),hx((function(){var e=$x(p);W(e);var t=$x(K(Y));e.equals(t)&&V.current&&!E||Q(e,V.current)}),[p]),hx((function(){E&&de()}),[Y]),r.createElement("div",{className:cx(i,a,(n={},rx(n,"".concat(i,"-focused"),F),rx(n,"".concat(i,"-disabled"),h),rx(n,"".concat(i,"-readonly"),v),rx(n,"".concat(i,"-not-a-number"),$.isNaN()),rx(n,"".concat(i,"-out-of-range"),!$.isInvalidate()&&!pe($)),n)),style:s,onFocus:function(){_(!0)},onBlur:function(){be(!1),_(!1),V.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;V.current=!0,H.current=!!n,t===ux.ENTER&&(j.current||(V.current=!1),be(!1),null==A||A(e)),!1!==y&&!j.current&&[ux.UP,ux.DOWN].includes(t)&&(ve(ux.UP===t),e.preventDefault())},onKeyUp:function(){V.current=!1,H.current=!1},onCompositionStart:function(){j.current=!0},onCompositionEnd:function(){j.current=!1,ge(L.current.value)},onBeforeInput:function(){V.current=!0}},C&&r.createElement(Kx,{prefixCls:i,upNode:b,downNode:w,upDisabled:ae,downDisabled:se,onStep:ve}),r.createElement("div",{className:"".concat(O,"-wrap")},r.createElement("input",z({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":$.isInvalidate()?null:$.toString(),step:d},T,{ref:Ix(L,t),className:O,value:Y,onChange:function(e){ge(e.target.value)},disabled:h,readOnly:v}))))}));lC.displayName="InputNumber";const cC=r.forwardRef((({className:t,...n},r)=>e(lC,{className:an("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:r,...n})));function uC(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function dC(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=uC(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():uC(e[t],null)}}}}(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}cC.displayName="Input";var fC=Symbol("radix.slottable");function pC(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===fC}var hC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=function(t){const n=dC(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(pC);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{}),mC=r.forwardRef(((t,n)=>e(hC.label,{...t,ref:n,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}})));mC.displayName="Label";var gC=mC;const vC=r.forwardRef((({className:t="",...n},r)=>e(gC,{ref:r,...n,className:an("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)})));vC.displayName=gC.displayName;const bC=r.forwardRef((({children:t,triggerRef:n,triggerRefs:r,onOpenChange:o,...i},a)=>e(Kf,{...i,onOpenChange:e=>{!e&&n?.current&&setTimeout((()=>{n.current?.focus()}),0),r?.length&&r.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),o?.(e)},children:t}))),wC=Gf,yC=qf,xC=Jf,CC=r.forwardRef((({className:t,...n},r)=>e(Xf,{ref:r,className:an("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})));CC.displayName=Xf.displayName;const SC=r.forwardRef((({className:n,overlayClassName:r,showCloseButton:o=!0,children:i,...a},s)=>t(yC,{children:[e(CC,{className:r}),t(Yf,{ref:s,className:an("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...a,children:[i,o&&t(Jf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e(oh,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]})]})));SC.displayName=Yf.displayName;const kC=({className:t,...n})=>e("div",{className:an("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});kC.displayName="DialogHeader";const EC=({className:t,...n})=>e("div",{className:an("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});EC.displayName="DialogFooter";const PC=r.forwardRef((({className:t,...n},r)=>e(Zf,{ref:r,className:an("text-lg font-semibold leading-none tracking-tight",t),...n})));PC.displayName=Zf.displayName;const NC=r.forwardRef((({className:t,...n},r)=>e(Qf,{ref:r,className:an("text-sm text-muted-foreground",t),...n})));NC.displayName=Qf.displayName;const RC=({className:t=""})=>e("span",{children:e("div",{className:an("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})});function MC(e,[t,n]){return Math.min(n,Math.max(t,e))}function AC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function IC(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function TC(...e){return t=>{let n=!1;const r=e.map((e=>{const r=IC(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():IC(e[t],null)}}}}function OC(...e){return r.useCallback(TC(...e),e)}function LC(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},DC(i,...n)]}function DC(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}var FC=globalThis?.document?r.useLayoutEffect:()=>{},_C=r[" useInsertionEffect ".trim().toString()]||FC;function VC({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return _C((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}var zC=r.createContext(void 0);function jC(t){const n=HC(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find($C);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}function HC(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?TC(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var BC=Symbol("radix.slottable");function $C(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===BC}var WC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=jC(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});var UC=["PageUp","PageDown"],KC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GC={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},qC="Slider",[XC,YC,ZC]=function(t){const n=t+"CollectionProvider",[r,i]=LC(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,i=o.useRef(null),s=o.useRef(new Map).current;return e(a,{scope:n,itemMap:s,collectionRef:i,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=jC(c),d=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=OC(n,s(c,r).collectionRef);return e(u,{ref:i,children:o})}));d.displayName=c;const f=t+"CollectionItemSlot",p="data-radix-collection-item",h=jC(f),m=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,l=o.useRef(null),c=OC(n,l),u=s(f,r);return o.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:l,Slot:d,ItemSlot:m},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}(qC),[QC,JC]=LC(qC,[ZC]),[eS,tS]=QC(qC),nS=r.forwardRef(((t,n)=>{const{name:o,min:i=0,max:a=100,step:s=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:d=[i],value:f,onValueChange:p=(()=>{}),onValueCommit:h=(()=>{}),inverted:m=!1,form:g,...v}=t,b=r.useRef(new Set),w=r.useRef(0),y="horizontal"===l?iS:aS,[x=[],C]=VC({prop:f,defaultProp:d,onChange:e=>{const t=[...b.current];t[w.current]?.focus(),p(e)}}),S=r.useRef(x);function k(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),o=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-i)/s)*s+i,r),l=MC(o,[i,a]);C(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,u*s)){w.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&h(r),t?r:e}return e}))}return e(eS,{scope:t.__scopeSlider,name:o,disabled:c,min:i,max:a,valueIndexToChangeRef:w,thumbs:b.current,values:x,orientation:l,form:g,children:e(XC.Provider,{scope:t.__scopeSlider,children:e(XC.Slot,{scope:t.__scopeSlider,children:e(y,{"aria-disabled":c,"data-disabled":c?"":void 0,...v,ref:n,onPointerDown:AC(v.onPointerDown,(()=>{c||(S.current=x)})),min:i,max:a,inverted:m,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(x,e);k(e,t)},onSlideMove:c?void 0:function(e){k(e,w.current)},onSlideEnd:c?void 0:function(){const e=S.current[w.current];x[w.current]!==e&&h(x)},onHomeKeyDown:()=>!c&&k(i,0,{commit:!0}),onEndKeyDown:()=>!c&&k(a,x.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const n=UC.includes(e.key)||e.shiftKey&&KC.includes(e.key)?10:1,r=w.current;k(x[r]+s*n*t,r,{commit:!0})}}})})})})}));nS.displayName=qC;var[rS,oS]=QC(qC,{startEdge:"left",endEdge:"right",size:"width",direction:1}),iS=r.forwardRef(((t,n)=>{const{min:o,max:i,dir:a,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:d,...f}=t,[p,h]=r.useState(null),m=OC(n,(e=>h(e))),g=r.useRef(void 0),v=function(e){const t=r.useContext(zC);return e||t||"ltr"}(a),b="ltr"===v,w=b&&!s||!b&&s;function y(e){const t=g.current||p.getBoundingClientRect(),n=vS([0,t.width],w?[o,i]:[i,o]);return g.current=t,n(e-t.left)}return e(rS,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:e(sS,{dir:v,"data-orientation":"horizontal",...f,ref:m,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=y(e.clientX);l?.(t)},onSlideMove:e=>{const t=y(e.clientX);c?.(t)},onSlideEnd:()=>{g.current=void 0,u?.()},onStepKeyDown:e=>{const t=GC[w?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),aS=r.forwardRef(((t,n)=>{const{min:o,max:i,inverted:a,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=t,f=r.useRef(null),p=OC(n,f),h=r.useRef(void 0),m=!a;function g(e){const t=h.current||f.current.getBoundingClientRect(),n=vS([0,t.height],m?[i,o]:[o,i]);return h.current=t,n(e-t.top)}return e(rS,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:e(sS,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);s?.(t)},onSlideMove:e=>{const t=g(e.clientY);l?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{const t=GC[m?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),sS=r.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:c,...u}=t,d=tS(qC,r);return e(WC.span,{...u,ref:n,onKeyDown:AC(t.onKeyDown,(e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):UC.concat(KC).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:AC(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:AC(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:AC(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))})})),lS="SliderTrack",cS=r.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=tS(lS,r);return e(WC.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...o,ref:n})}));cS.displayName=lS;var uS="SliderRange",dS=r.forwardRef(((t,n)=>{const{__scopeSlider:o,...i}=t,a=tS(uS,o),s=oS(uS,o),l=OC(n,r.useRef(null)),c=a.values.length,u=a.values.map((e=>gS(e,a.min,a.max))),d=c>1?Math.min(...u):0,f=100-Math.max(...u);return e(WC.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...i,ref:l,style:{...t.style,[s.startEdge]:d+"%",[s.endEdge]:f+"%"}})}));dS.displayName=uS;var fS="SliderThumb",pS=r.forwardRef(((t,n)=>{const o=YC(t.__scopeSlider),[i,a]=r.useState(null),s=OC(n,(e=>a(e))),l=r.useMemo((()=>i?o().findIndex((e=>e.ref.current===i)):-1),[o,i]);return e(hS,{...t,ref:s,index:l})})),hS=r.forwardRef(((n,o)=>{const{__scopeSlider:i,index:a,name:s,...l}=n,c=tS(fS,i),u=oS(fS,i),[d,f]=r.useState(null),p=OC(o,(e=>f(e))),h=!d||(c.form||!!d.closest("form")),m=function(e){const[t,n]=r.useState(void 0);return FC((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(d),g=c.values[a],v=void 0===g?0:gS(g,c.min,c.max),b=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,c.values.length),w=m?.[u.size],y=w?function(e,t,n){const r=e/2,o=vS([0,50],[0,r]);return(r-o(t)*n)*n}(w,v,u.direction):0;return r.useEffect((()=>{if(d)return c.thumbs.add(d),()=>{c.thumbs.delete(d)}}),[d,c.thumbs]),t("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${v}% + ${y}px)`},children:[e(XC.ItemSlot,{scope:n.__scopeSlider,children:e(WC.span,{role:"slider","aria-label":n["aria-label"]||b,"aria-valuemin":c.min,"aria-valuenow":g,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...l,ref:p,style:void 0===g?{display:"none"}:n.style,onFocus:AC(n.onFocus,(()=>{c.valueIndexToChangeRef.current=a}))})}),h&&e(mS,{name:s??(c.name?c.name+(c.values.length>1?"[]":""):void 0),form:c.form,value:g},a)]})}));pS.displayName=fS;var mS=r.forwardRef((({__scopeSlider:t,value:n,...o},i)=>{const a=r.useRef(null),s=OC(a,i),l=function(e){const t=r.useRef({value:e,previous:e});return r.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return r.useEffect((()=>{const e=a.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[l,n]),e(WC.input,{style:{display:"none"},...o,ref:s,defaultValue:n})}));function gS(e,t,n){return MC(100/(n-t)*(e-t),[0,100])}function vS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}mS.displayName="RadioBubbleInput";var bS=nS,wS=cS,yS=dS,xS=pS;const CS=r.forwardRef((({className:n,onDoubleClick:r,...o},i)=>t(bS,{ref:i,...o,className:an("relative flex w-full cursor-pointer touch-none select-none items-center",n),onDoubleClick:r,children:[e(wS,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e(yS,{className:"absolute h-full bg-primary"})}),e(xS,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));function SS(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function kS(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=SS(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():SS(e[t],null)}}}}(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}CS.displayName=bS.displayName;var ES=Symbol("radix.slottable");function PS(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ES}var NS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=function(t){const n=kS(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(PS);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{}),RS="horizontal",MS=["horizontal","vertical"],AS=r.forwardRef(((t,n)=>{const{decorative:r,orientation:o=RS,...i}=t,a=function(e){return MS.includes(e)}(o)?o:RS,s=r?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return e(NS.div,{"data-orientation":a,...s,...i,ref:n})}));AS.displayName="Separator";var IS=AS;const TS=r.forwardRef((({className:t="",orientation:n="horizontal",decorative:r=!0,...o},i)=>e(IS,{ref:i,...o,decorative:r,orientation:n,className:an("shrink-0 bg-border-light","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t)})));TS.displayName=IS.displayName;const OS=({label:n,labelClassName:r,placeholder:i="Select an option",options:a,className:s,value:l,onChange:c,onBlur:u})=>{const d=e=>null!=e&&"object"==typeof e&&"value"in e,[f,p]=o.useState(!1),[h,m]=o.useState(l),[g,v]=o.useState(!1);o.useEffect((()=>{m(l)}),[l]);const b=e=>{m(e),c(e)};return t(ju,{value:h,setValue:b,children:[null!=n&&e(qu,{className:an("mb-2 block text-sm font-medium text-text-primary",r??""),children:n}),e("div",{className:an("relative",g?"rounded-md ring-2 ring-ring-primary":""),children:e(zu,{placeholder:i,className:an("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",s),onChange:e=>b(e.target.value),onBlur:()=>{v(!1),u()},onFocusVisible:()=>{v(!0),p(!0)},onMouseDown:()=>{v(!1)}})}),e(Qu,{gutter:4,sameWidth:!0,open:f,onClose:()=>p(!1),className:an("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:a.map(((n,r)=>t(Ku,{className:an("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:d(n)?`${n.value??""}`:n,children:[d(n)&&null!=n.icon&&e("span",{className:"mr-2 flex-shrink-0",children:n.icon}),d(n)?n.label:n]},r)))})]})};function LS({className:t,...n}){return e("div",{className:an("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...n})}function DS(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function FS(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function _S(...e){return t=>{let n=!1;const r=e.map((e=>{const r=FS(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():FS(e[t],null)}}}}function VS(...e){return r.useCallback(_S(...e),e)}function zS(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}var jS=globalThis?.document?r.useLayoutEffect:()=>{},HS=r[" useInsertionEffect ".trim().toString()]||jS;function BS({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return HS((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}function $S(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?_S(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var WS=Symbol("radix.slottable");function US(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===WS}var KS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=function(t){const n=$S(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(US);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{}),GS="Switch",[qS,XS]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},zS(i,...n)]}(GS),[YS,ZS]=qS(GS),QS=r.forwardRef(((n,o)=>{const{__scopeSwitch:i,name:a,checked:s,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:f,form:p,...h}=n,[m,g]=r.useState(null),v=VS(o,(e=>g(e))),b=r.useRef(!1),w=!m||(p||!!m.closest("form")),[y,x]=BS({prop:s,defaultProp:l??!1,onChange:f,caller:GS});return t(YS,{scope:i,checked:y,disabled:u,children:[e(KS.button,{type:"button",role:"switch","aria-checked":y,"aria-required":c,"data-state":nk(y),"data-disabled":u?"":void 0,disabled:u,value:d,...h,ref:v,onClick:DS(n.onClick,(e=>{x((e=>!e)),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))}),w&&e(tk,{control:m,bubbles:!b.current,name:a,value:d,checked:y,required:c,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})}));QS.displayName=GS;var JS="SwitchThumb",ek=r.forwardRef(((t,n)=>{const{__scopeSwitch:r,...o}=t,i=ZS(JS,r);return e(KS.span,{"data-state":nk(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n})}));ek.displayName=JS;var tk=r.forwardRef((({__scopeSwitch:t,control:n,checked:o,bubbles:i=!0,...a},s)=>{const l=r.useRef(null),c=VS(l,s),u=function(e){const t=r.useRef({value:e,previous:e});return r.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(o),d=function(e){const[t,n]=r.useState(void 0);return jS((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(n);return r.useEffect((()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==o&&n){const t=new Event("click",{bubbles:i});n.call(e,o),e.dispatchEvent(t)}}),[u,o,i]),e("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...a,tabIndex:-1,ref:c,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})}));function nk(e){return e?"checked":"unchecked"}tk.displayName="SwitchBubbleInput";var rk=QS,ok=ek;const ik=r.forwardRef((({className:t,...n},r)=>e(rk,{className:an("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...n,ref:r,children:e(ok,{className:an("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));ik.displayName=rk.displayName;const ak=r.forwardRef((({className:t,...n},r)=>e("div",{className:"relative w-full overflow-auto",children:e("table",{ref:r,className:an("w-full caption-bottom text-sm",t),...n})})));ak.displayName="Table";const sk=r.forwardRef((({className:t,...n},r)=>e("thead",{ref:r,className:an("[&_tr]:border-b",t),...n})));sk.displayName="TableHeader";const lk=r.forwardRef((({className:t,...n},r)=>e("tbody",{ref:r,className:an("[&_tr:last-child]:border-0",t),...n})));lk.displayName="TableBody";const ck=r.forwardRef((({className:t,...n},r)=>e("tfoot",{ref:r,className:an("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n})));ck.displayName="TableFooter";const uk=r.forwardRef((({className:t,...n},r)=>e("tr",{ref:r,className:an("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n})));uk.displayName="TableRow";const dk=r.forwardRef((({className:t,...n},r)=>e("th",{ref:r,className:an("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n})));dk.displayName="TableHead";const fk=r.forwardRef((({className:t,...n},r)=>e("td",{ref:r,className:an("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n})));fk.displayName="TableCell";const pk=r.forwardRef((({className:t,...n},r)=>e("caption",{ref:r,className:an("mt-4 text-sm text-muted-foreground",t),...n})));pk.displayName="TableCaption";const hk="rovingFocusGroup.onEntryFocus",mk={bubbles:!1,cancelable:!0},gk="RovingFocusGroup",[vk,bk,wk]=X(gk),[yk,xk]=j(gk,[wk]),[Ck,Sk]=yk(gk),kk=u(((e,t)=>s(vk.Provider,{scope:e.__scopeRovingFocusGroup},s(vk.Slot,{scope:e.__scopeRovingFocusGroup},s(Ek,z({},e,{ref:t})))))),Ek=u(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,p=m(null),h=$(t,p),b=Ce(i),[w=null,y]=Q({prop:a,defaultProp:l,onChange:u}),[x,C]=v(!1),S=Z(d),k=bk(n),E=m(!1),[P,N]=v(0);return g((()=>{const e=p.current;if(e)return e.addEventListener(hk,S),()=>e.removeEventListener(hk,S)}),[S]),s(Ck,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:w,onItemFocus:c((e=>y(e)),[y]),onItemShiftTab:c((()=>C(!0)),[]),onFocusableItemAdd:c((()=>N((e=>e+1))),[]),onFocusableItemRemove:c((()=>N((e=>e-1))),[])},s(J.div,z({tabIndex:x||0===P?-1:0,"data-orientation":r},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,(()=>{E.current=!0})),onFocus:Y(e.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(hk,mk);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Rk([e.find((e=>e.active)),e.find((e=>e.id===w)),...e].filter(Boolean).map((e=>e.ref.current)))}}E.current=!1})),onBlur:Y(e.onBlur,(()=>C(!1)))})))})),Pk=u(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=ae(),c=i||l,u=Sk("RovingFocusGroupItem",n),d=u.currentTabStopId===c,f=bk(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return g((()=>{if(r)return p(),()=>h()}),[r,p,h]),s(vk.ItemSlot,{scope:n,id:c,focusable:r,active:o},s(J.span,z({tabIndex:d?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Y(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:Y(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:Y(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Nk[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Rk(o)))}var n,r}))})))})),Nk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rk(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Mk=kk,Ak=Pk,Ik="Tabs",[Tk,Ok]=j(Ik,[xk]),Lk=xk(),[Dk,Fk]=Tk(Ik),_k=u(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=Ce(l),[f,p]=Q({prop:r,onChange:o,defaultProp:i});return s(Dk,{scope:n,baseId:ae(),value:f,onValueChange:p,orientation:a,dir:d,activationMode:c},s(J.div,z({dir:d,"data-orientation":a},u,{ref:t})))})),Vk=u(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Fk("TabsList",n),a=Lk(n);return s(Mk,z({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),s(J.div,z({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),zk=u(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Fk("TabsTrigger",n),l=Lk(n),c=Hk(a.baseId,r),u=Bk(a.baseId,r),d=r===a.value;return s(Ak,z({asChild:!0},l,{focusable:!o,active:d}),s(J.button,z({type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c},i,{ref:t,onMouseDown:Y(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:Y(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:Y(e.onFocus,(()=>{const e="manual"!==a.activationMode;d||o||!e||a.onValueChange(r)}))})))})),jk=u(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=Fk("TabsContent",n),c=Hk(l.baseId,r),u=Bk(l.baseId,r),d=r===l.value,f=m(d);return g((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),s(ne,{present:o||d},(({present:n})=>s(J.div,z({"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&i)))}));function Hk(e,t){return`${e}-trigger-${t}`}function Bk(e,t){return`${e}-content-${t}`}const $k=Vk,Wk=zk,Uk=jk,Kk=_k,Gk=r.forwardRef((({className:t="",...n},r)=>e($k,{ref:r,className:an("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...n})));Gk.displayName=$k.displayName;const qk=r.forwardRef((({className:t="",...n},r)=>e(Wk,{className:an("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...n,ref:r})));qk.displayName=Wk.displayName;const Xk=r.forwardRef((({className:t="",...n},r)=>e(Uk,{className:an("mt-2 rounded-md p-6",t),...n,ref:r})));Xk.displayName=Uk.displayName;const Yk=r.forwardRef((({CancelButton:r,LabelNode:o,label:i,onRemove:a,className:s="",labelClassName:l="",...c},u)=>t("div",{ref:u,...c,className:an("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",s),children:[t("div",{className:an("ml-1 whitespace-pre-wrap px-2 py-1",l),children:[o?t(n,{children:[o," "]}):null,i]}),r||a&&e("button",{onClick:e=>{e.stopPropagation(),a(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${i}`,children:e(oh,{className:"m-[1.5px] p-1"})})]})));Yk.displayName="Tag";const Zk=r.memo(Yk),Qk=r.forwardRef((({className:t="",...n},r)=>e("textarea",{className:an("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:r,...n})));Qk.displayName="Textarea";var Jk=b,eE=function(e,t){"function"!=typeof e?e.current=t:e(t)},tE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},nE=function(e){Object.keys(tE).forEach((function(t){e.style.setProperty(t,tE[t],"important")}))},rE=null,oE=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var iE=function(){},aE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],sE=!!document.documentElement.currentStyle,lE=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=function(e,t){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}(aE,t),r=n.boxSizing;return""===r?null:(sE&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})};function cE(e,t,n){var o,i,a=(o=n,i=r.useRef(o),Jk((function(){i.current=o})),i);r.useLayoutEffect((function(){var n=function(e){return a.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var uE=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],dE=function(e,t){var n=e.cacheMeasurements,o=e.maxRows,i=e.minRows,a=e.onChange,s=void 0===a?iE:a,l=e.onHeightChange,u=void 0===l?iE:l,d=ax(e,uE),f=void 0!==d.value,p=r.useRef(null),h=function(e,t){var n=m();return c((function(r){e.current=r,n.current&&eE(n.current,null),n.current=t,t&&eE(t,r)}),[t])}(p,t),g=r.useRef(0),v=r.useRef(),b=function(){var e=p.current,t=n&&v.current?v.current:lE(e);if(t){v.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),rE||((rE=document.createElement("textarea")).setAttribute("tabindex","-1"),rE.setAttribute("aria-hidden","true"),nE(rE)),null===rE.parentNode&&document.body.appendChild(rE);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;rE.style[t]=a[t]})),nE(rE),rE.value=t;var l=oE(rE,e);rE.value=t,l=oE(rE,e),rE.value="x";var c=rE.scrollHeight-o,u=c*n;"border-box"===s&&(u=u+o+i),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",i,o),a=r[0],s=r[1];g.current!==a&&(g.current=a,e.style.setProperty("height",a+"px","important"),u(a,{rowHeight:s}))}};return r.useLayoutEffect(b),cE(window,"resize",b),function(e){cE(document.fonts,"loadingdone",e)}(b),r.createElement("textarea",z({},d,{onChange:function(e){f||b(),s(e)},ref:h}))},fE=r.forwardRef(dE);const pE=u(((t,n)=>{const[,r]=v(!1),o=F(Iw).toLowerCase();return b((()=>r(!0)),[]),e(fE,{dir:o,...t,ref:n})})),hE=u(((e,t)=>s(J.span,z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),mE="ToastProvider",[gE,vE,bE]=X("Toast"),[wE,yE]=j("Toast",[bE]),[xE,CE]=wE(mE),SE="toast.viewportPause",kE="toast.viewportResume",EE="Toast",PE=u(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[l=!0,c]=Q({prop:r,defaultProp:o,onChange:i});return s(ne,{present:n||l},s(ME,z({open:l},a,{ref:t,onClose:()=>c(!1),onPause:Z(e.onPause),onResume:Z(e.onResume),onSwipeStart:Y(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Y(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:Y(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:Y(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)}))})))})),[NE,RE]=wE(EE,{onClose(){}}),ME=u(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:b,onSwipeCancel:w,onSwipeEnd:y,...x}=e,C=CE(EE,n),[S,k]=v(null),E=$(t,(e=>k(e))),P=m(null),N=m(null),R=o||C.duration,M=m(0),A=m(R),T=m(0),{onToastAdd:O,onToastRemove:L}=C,D=Z((()=>{var e;(null==S?void 0:S.contains(document.activeElement))&&(null===(e=C.viewport)||void 0===e||e.focus()),l()})),F=c((e=>{e&&e!==1/0&&(window.clearTimeout(T.current),M.current=(new Date).getTime(),T.current=window.setTimeout(D,e))}),[D]);g((()=>{const e=C.viewport;if(e){const t=()=>{F(A.current),null==f||f()},n=()=>{const e=(new Date).getTime()-M.current;A.current=A.current-e,window.clearTimeout(T.current),null==d||d()};return e.addEventListener(SE,n),e.addEventListener(kE,t),()=>{e.removeEventListener(SE,n),e.removeEventListener(kE,t)}}}),[C.viewport,R,d,f,F]),g((()=>{i&&!C.isClosePausedRef.current&&F(R)}),[i,R,C.isClosePausedRef,F]),g((()=>(O(),()=>L())),[O,L]);const _=a((()=>S?DE(S):null),[S]);return C.viewport?s(h,null,_&&s(AE,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},_),s(NE,{scope:n,onClose:D},I(s(gE.ItemSlot,{scope:n},s(ud,{asChild:!0,onEscapeKeyDown:Y(u,(()=>{C.isFocusedToastEscapeKeyDownRef.current||D(),C.isFocusedToastEscapeKeyDownRef.current=!1}))},s(J.li,z({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":C.swipeDirection},x,{ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Y(e.onKeyDown,(e=>{"Escape"===e.key&&(null==u||u(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,D()))})),onPointerDown:Y(e.onPointerDown,(e=>{0===e.button&&(P.current={x:e.clientX,y:e.clientY})})),onPointerMove:Y(e.onPointerMove,(e=>{if(!P.current)return;const t=e.clientX-P.current.x,n=e.clientY-P.current.y,r=Boolean(N.current),o=["left","right"].includes(C.swipeDirection),i=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,c={x:a,y:s},u={originalEvent:e,delta:c};r?(N.current=c,FE("toast.swipeMove",b,u,{discrete:!1})):_E(c,C.swipeDirection,l)?(N.current=c,FE("toast.swipeStart",p,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(P.current=null)})),onPointerUp:Y(e.onPointerUp,(e=>{const t=N.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),N.current=null,P.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};_E(t,C.swipeDirection,C.swipeThreshold)?FE("toast.swipeEnd",y,r,{discrete:!0}):FE("toast.swipeCancel",w,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),C.viewport))):null}));ME.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${EE}\`. Expected \`foreground | background\`.`)}return null}};const AE=e=>{const{__scopeToast:t,children:n,...r}=e,o=CE(EE,t),[i,a]=v(!1),[l,c]=v(!1);return function(e=(()=>{})){const t=Z(e);te((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>a(!0))),g((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:s(xd,{asChild:!0},s(hE,r,i&&s(h,null,o.label," ",n)))},IE=u(((e,t)=>{const{__scopeToast:n,...r}=e;return s(J.div,z({},r,{ref:t}))})),TE=u(((e,t)=>{const{altText:n,...r}=e;return n?s(LE,{altText:n,asChild:!0},s(OE,z({},r,{ref:t}))):null}));TE.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const OE=u(((e,t)=>{const{__scopeToast:n,...r}=e,o=RE("ToastClose",n);return s(LE,{asChild:!0},s(J.button,z({type:"button"},r,{ref:t,onClick:Y(e.onClick,o.onClose)})))})),LE=u(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return s(J.div,z({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function DE(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...DE(e))}})),t}function FE(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ee(o,i):o.dispatchEvent(i)}const _E=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};const VE=PE,zE=IE;function jE(){const{toast:n,onOpenChange:r}=Fw(),o={[Mw.INFO]:"border-gray-500 bg-gray-500",[Mw.SUCCESS]:"border-green-500 bg-green-500",[Mw.WARNING]:"border-orange-500 bg-orange-500",[Mw.ERROR]:"border-red-500 bg-red-500"};return e(VE,{open:n.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:t("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${o[n.severity]}`,children:[n.showIcon&&e("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e(zE,{className:"flex-1 justify-center gap-2",children:e("div",{className:"whitespace-pre-wrap text-left",children:n.message})})]})})})}const HE=i({});function BE(e){const t=m(null);return null===t.current&&(t.current=e()),t.current}const $E=i(null),WE=i({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class UE extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function KE({children:t,isPresent:n}){const o=x(),i=m(null),a=m({width:0,height:0,top:0,left:0}),{nonce:s}=l(WE);return C((()=>{const{width:e,height:t,top:r,left:l}=a.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=o;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${r}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[n]),e(UE,{isPresent:n,childRef:i,sizeRef:a,children:r.cloneElement(t,{ref:i})})}const GE=({children:t,initial:n,isPresent:o,onExitComplete:i,custom:s,presenceAffectsLayout:l,mode:u})=>{const d=BE(qE),f=x(),p=c((e=>{d.set(e,!0);for(const e of d.values())if(!e)return;i&&i()}),[d,i]),h=a((()=>({id:f,initial:n,isPresent:o,custom:s,onExitComplete:p,register:e=>(d.set(e,!1),()=>d.delete(e))})),l?[Math.random(),p]:[o,p]);return a((()=>{d.forEach(((e,t)=>d.set(t,!1)))}),[o]),r.useEffect((()=>{!o&&!d.size&&i&&i()}),[o]),"popLayout"===u&&(t=e(KE,{isPresent:o,children:t})),e($E.Provider,{value:h,children:t})};function qE(){return new Map}function XE(e=!0){const t=l($E);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=x();g((()=>{e&&o(i)}),[e]);const a=c((()=>e&&r&&r(i)),[i,r,e]);return!n&&r?[!1,a]:[!0]}const YE=e=>e.key||"";function ZE(e){const t=[];return d.forEach(e,(e=>{f(e)&&t.push(e)})),t}const QE="undefined"!=typeof window,JE=QE?b:g,eP=({children:t,custom:r,initial:o=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:c="sync",propagate:u=!1})=>{const[d,f]=XE(u),p=a((()=>ZE(t)),[t]),h=u&&!d?[]:p.map(YE),g=m(!0),b=m(p),w=BE((()=>new Map)),[y,x]=v(p),[C,S]=v(p);JE((()=>{g.current=!1,b.current=p;for(let e=0;e<C.length;e++){const t=YE(C[e]);h.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}}),[C,h.length,h.join("-")]);const k=[];if(p!==y){let e=[...p];for(let t=0;t<C.length;t++){const n=C[t],r=YE(n);h.includes(r)||(e.splice(t,0,n),k.push(n))}return"wait"===c&&k.length&&(e=k),S(ZE(e)),void x(p)}const{forceRender:E}=l(HE);return e(n,{children:C.map((t=>{const n=YE(t),a=!(u&&!d)&&(p===C||h.includes(n));return e(GE,{isPresent:a,initial:!(g.current&&!o)&&void 0,custom:a?void 0:r,presenceAffectsLayout:s,mode:c,onExitComplete:a?void 0:()=>{if(!w.has(n))return;w.set(n,!0);let e=!0;w.forEach((t=>{t||(e=!1)})),e&&(null==E||E(),S(b.current),u&&(null==f||f()),i&&i())},children:t},n)}))})},tP=e=>e;let nP=tP;function rP(e){let t;return()=>(void 0===t&&(t=e()),t)}const oP=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},iP=e=>1e3*e,aP=e=>e/1e3,sP=!1;const lP=["read","resolveKeyframes","update","preRender","render","postRender"];function cP(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=lP.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=a,p=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:lP.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<lP.length;t++)a[lP[t]].cancel(e)},state:o,steps:a}}const{schedule:uP,cancel:dP,state:fP,steps:pP}=cP("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tP,!0),hP=i({strict:!1}),mP={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gP={};for(const e in mP)gP[e]={isEnabled:t=>mP[e].some((e=>!!t[e]))};const vP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bP(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vP.has(e)}let wP=e=>!bP(e);try{(yP=require("@emotion/is-prop-valid").default)&&(wP=e=>e.startsWith("on")?!bP(e):yP(e))}catch(Gn){}var yP;function xP(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const CP=i({});function SP(e){return"string"==typeof e||Array.isArray(e)}function kP(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const EP=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],PP=["initial",...EP];function NP(e){return kP(e.animate)||PP.some((t=>SP(e[t])))}function RP(e){return Boolean(NP(e)||e.variants)}function MP(e){const{initial:t,animate:n}=function(e,t){if(NP(e)){const{initial:t,animate:n}=e;return{initial:!1===t||SP(t)?t:void 0,animate:SP(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,l(CP));return a((()=>({initial:t,animate:n})),[AP(t),AP(n)])}function AP(e){return Array.isArray(e)?e.join(" "):e}const IP=Symbol.for("motionComponentSymbol");function TP(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function OP(e,t,n){return c((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):TP(n)&&(n.current=r))}),[t])}const LP=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),DP="data-"+LP("framerAppearId"),{schedule:FP}=cP(queueMicrotask,!1),_P=i({});function VP(e,t,n,r,o){var i,a;const{visualElement:s}=l(CP),c=l(hP),u=l($E),d=l(WE).reducedMotion,f=m(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const p=f.current,h=l(_P);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zP(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&TP(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(f.current,n,o,h);const v=m(!1);C((()=>{p&&v.current&&p.update(n,u)}));const b=n[DP],w=m(Boolean(b)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,b))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,b)));return JE((()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),FP.render(p.render),w.current&&p.animationState&&p.animationState.animateChanges())})),g((()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,b)})),w.current=!1))})),p}function zP(e){if(e)return!1!==e.options.allowProjection?e.projection:zP(e.parent)}function jP({preloadedFeatures:n,createVisualElement:r,useRender:o,useVisualState:i,Component:a}){var s,c;function d(n,s){let c;const u={...l(WE),...n,layoutId:HP(n)},{isStatic:d}=u,f=MP(n),p=i(n,d);if(!d&&QE){l(hP).strict;const e=function(e){const{drag:t,layout:n}=gP;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);c=e.MeasureLayout,f.visualElement=VP(a,p,u,r,e.ProjectionNode)}return t(CP.Provider,{value:f,children:[c&&f.visualElement?e(c,{visualElement:f.visualElement,...u}):null,o(a,n,OP(p,f.visualElement,s),p,d,f.visualElement)]})}n&&function(e){for(const t in e)gP[t]={...gP[t],...e[t]}}(n),d.displayName=`motion.${"string"==typeof a?a:`create(${null!==(c=null!==(s=a.displayName)&&void 0!==s?s:a.name)&&void 0!==c?c:""})`}`;const f=u(d);return f[IP]=a,f}function HP({layoutId:e}){const t=l(HE).id;return t&&void 0!==e?t+"-"+e:e}const BP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $P(e){return"string"==typeof e&&!e.includes("-")&&!!(BP.indexOf(e)>-1||/[A-Z]/u.test(e))}function WP(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function UP(e,t,n,r){if("function"==typeof t){const[o,i]=WP(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=WP(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const KP=e=>Array.isArray(e),GP=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),qP=e=>KP(e)?e[e.length-1]||0:e,XP=e=>Boolean(e&&e.getVelocity);function YP(e){const t=XP(e)?e.get():e;return GP(t)?t.toValue():t}const ZP=e=>(t,n)=>{const r=l(CP),o=l($E),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:QP(r,o,i,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a}(e,t,r,o);return n?i():BE(i)};function QP(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=YP(i[e]);let{initial:a,animate:s}=e;const l=NP(e),c=RP(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!kP(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=UP(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const JP=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],eN=new Set(JP),tN=e=>t=>"string"==typeof t&&t.startsWith(e),nN=tN("--"),rN=tN("var(--"),oN=e=>!!rN(e)&&iN.test(e.split("/*")[0].trim()),iN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,aN=(e,t)=>t&&"number"==typeof e?t.transform(e):e,sN=(e,t,n)=>n>t?t:n<e?e:n,lN={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},cN={...lN,transform:e=>sN(0,1,e)},uN={...lN,default:1},dN=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),fN=dN("deg"),pN=dN("%"),hN=dN("px"),mN=dN("vh"),gN=dN("vw"),vN={...pN,parse:e=>pN.parse(e)/100,transform:e=>pN.transform(100*e)},bN={borderWidth:hN,borderTopWidth:hN,borderRightWidth:hN,borderBottomWidth:hN,borderLeftWidth:hN,borderRadius:hN,radius:hN,borderTopLeftRadius:hN,borderTopRightRadius:hN,borderBottomRightRadius:hN,borderBottomLeftRadius:hN,width:hN,maxWidth:hN,height:hN,maxHeight:hN,top:hN,right:hN,bottom:hN,left:hN,padding:hN,paddingTop:hN,paddingRight:hN,paddingBottom:hN,paddingLeft:hN,margin:hN,marginTop:hN,marginRight:hN,marginBottom:hN,marginLeft:hN,backgroundPositionX:hN,backgroundPositionY:hN},wN={rotate:fN,rotateX:fN,rotateY:fN,rotateZ:fN,scale:uN,scaleX:uN,scaleY:uN,scaleZ:uN,skew:fN,skewX:fN,skewY:fN,distance:hN,translateX:hN,translateY:hN,translateZ:hN,x:hN,y:hN,z:hN,perspective:hN,transformPerspective:hN,opacity:cN,originX:vN,originY:vN,originZ:hN},yN={...lN,transform:Math.round},xN={...bN,...wN,zIndex:yN,size:hN,fillOpacity:cN,strokeOpacity:cN,numOctaves:yN},CN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SN=JP.length;function kN(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(eN.has(e))a=!0;else if(nN(e))o[e]=n;else{const t=aN(n,xN[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<SN;i++){const a=JP[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=aN(s,xN[a]);l||(o=!1,r+=`${CN[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const EN={offset:"stroke-dashoffset",array:"stroke-dasharray"},PN={offset:"strokeDashoffset",array:"strokeDasharray"};function NN(e,t,n){return"string"==typeof e?e:hN.transform(t+n*e)}function RN(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(kN(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${NN(t,e.x,e.width)} ${NN(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?EN:PN;e[i.offset]=hN.transform(-r);const a=hN.transform(t),s=hN.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const MN=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),AN=()=>({...MN(),attrs:{}}),IN=e=>"string"==typeof e&&"svg"===e.toLowerCase();function TN(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const ON=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function LN(e,t,n,r){TN(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(ON.has(n)?n:LP(n),t.attrs[n])}const DN={};function FN(e,{layout:t,layoutId:n}){return eN.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!DN[e]||"opacity"===e)}function _N(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(XP(o[a])||t.style&&XP(t.style[a])||FN(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(i[a]=o[a]);return i}function VN(e,t,n){const r=_N(e,t,n);for(const n in e)if(XP(e[n])||XP(t[n])){r[-1!==JP.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const zN=["x","y","width","height","cx","cy","r"],jN={useVisualState:ZP({scrapeMotionValuesFromProps:VN,createRenderState:AN,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(eN.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let n=0;n<zN.length;n++){const r=zN[n];e[r]!==t[r]&&(a=!0)}a&&uP.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),uP.render((()=>{RN(r,o,IN(n.tagName),e.transformTemplate),LN(n,r)}))}))}})},HN={useVisualState:ZP({scrapeMotionValuesFromProps:_N,createRenderState:MN})};function BN(e,t,n){for(const r in t)XP(t[r])||FN(r,n)||(e[r]=t[r])}function $N(e,t){const n={};return BN(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return a((()=>{const n=MN();return kN(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}function WN(e,t){const n={},r=$N(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function UN(e,t,n,r){const o=a((()=>{const n=AN();return RN(n,t,IN(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};BN(t,e.style,e),o.style={...t,...o.style}}return o}function KN(e=!1){return(t,n,r,{latestValues:o},i)=>{const l=($P(t)?UN:WN)(n,o,i,t),c=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(wP(o)||!0===n&&bP(o)||!t&&!bP(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u=t!==h?{...c,...l,ref:r}:{},{children:d}=n,f=a((()=>XP(d)?d.get():d),[d]);return s(t,{...u,children:f})}}function GN(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return jP({...$P(n)?jN:HN,preloadedFeatures:e,useRender:KN(r),createVisualElement:t,Component:n})}}function qN(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function XN(e,t,n){const r=e.getProps();return UP(r,t,void 0!==n?n:r.custom,e)}const YN=rP((()=>void 0!==window.ScrollTimeline));class ZN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>YN()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class QN extends ZN{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function JN(e,t){return e?e[t]||e.default||e:void 0}const eR=2e4;function tR(e){let t=0;let n=e.next(t);for(;!n.done&&t<eR;)t+=50,n=e.next(t);return t>=eR?1/0:t}function nR(e){return"function"==typeof e}function rR(e,t){e.timeline=t,e.onfinish=null}const oR=e=>Array.isArray(e)&&"number"==typeof e[0],iR={linearEasing:void 0};function aR(e,t){const n=rP(e);return()=>{var e;return null!==(e=iR[t])&&void 0!==e?e:n()}}const sR=aR((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),lR=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(oP(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function cR(e){return Boolean("function"==typeof e&&sR()||!e||"string"==typeof e&&(e in dR||sR())||oR(e)||Array.isArray(e)&&e.every(cR))}const uR=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uR([0,.65,.55,1]),circOut:uR([.55,0,1,.45]),backIn:uR([.31,.01,.66,-.59]),backOut:uR([.33,1.53,.69,.99])};function fR(e,t){return e?"function"==typeof e&&sR()?lR(e,t):oR(e)?uR(e):Array.isArray(e)?e.map((e=>fR(e,t)||dR.easeOut)):dR[e]:void 0}const pR={x:!1,y:!1};function hR(){return pR.x||pR.y}function mR(e,t){const n=function(e,t,n){if(e instanceof Element)return[e];if("string"==typeof e){const t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function gR(e){return t=>{"touch"===t.pointerType||hR()||e(t)}}const vR=(e,t)=>!!t&&(e===t||vR(e,t.parentElement)),bR=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,wR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const yR=new WeakSet;function xR(e){return t=>{"Enter"===t.key&&e(t)}}function CR(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function SR(e){return bR(e)&&!hR()}function kR(e,t,n={}){const[r,o,i]=mR(e,n),a=e=>{const r=e.currentTarget;if(!SR(e)||yR.has(r))return;yR.add(r);const i=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),SR(e)&&yR.has(r)&&(yR.delete(r),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,n.useGlobalTarget||vR(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return wR.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=xR((()=>{if(yR.has(n))return;CR(n,"down");const e=xR((()=>{CR(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>CR(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}const ER=new Set(["width","height","top","left","right","bottom",...JP]);let PR;function NR(){PR=void 0}const RR={now:()=>(void 0===PR&&RR.set(fP.isProcessing||sP?fP.timestamp:performance.now()),PR),set:e=>{PR=e,queueMicrotask(NR)}};function MR(e,t){-1===e.indexOf(t)&&e.push(t)}function AR(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class IR{constructor(){this.subscriptions=[]}add(e){return MR(this.subscriptions,e),()=>AR(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function TR(e,t){return t?e*(1e3/t):0}class OR{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=RR.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=RR.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new IR);const n=this.events[e].add(t);return"change"===e?()=>{n(),uP.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=RR.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return TR(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function LR(e,t){return new OR(e,t)}function DR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,LR(n))}function FR(e,t){const n=e.getValue("willChange");if(r=n,Boolean(XP(r)&&r.add))return n.add(t);var r}function _R(e){return e.props[DP]}const VR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zR=1e-7,jR=12;function HR(e,t,n,r){if(e===t&&n===r)return tP;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=VR(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>zR&&++s<jR);return a}(t,0,1,e,n);return e=>0===e||1===e?e:VR(o(e),t,r)}const BR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$R=e=>t=>1-e(1-t),WR=HR(.33,1.53,.69,.99),UR=$R(WR),KR=BR(UR),GR=e=>(e*=2)<1?.5*UR(e):.5*(2-Math.pow(2,-10*(e-1))),qR=e=>1-Math.sin(Math.acos(e)),XR=$R(qR),YR=BR(qR),ZR=e=>/^0[^.\s]+$/u.test(e);const QR=e=>Math.round(1e5*e)/1e5,JR=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const eM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tM=(e,t)=>n=>Boolean("string"==typeof n&&eM.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),nM=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(JR);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},rM={...lN,transform:e=>Math.round((e=>sN(0,255,e))(e))},oM={test:tM("rgb","red"),parse:nM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rM.transform(e)+", "+rM.transform(t)+", "+rM.transform(n)+", "+QR(cN.transform(r))+")"};const iM={test:tM("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:oM.transform},aM={test:tM("hsl","hue"),parse:nM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pN.transform(QR(t))+", "+pN.transform(QR(n))+", "+QR(cN.transform(r))+")"},sM={test:e=>oM.test(e)||iM.test(e)||aM.test(e),parse:e=>oM.test(e)?oM.parse(e):aM.test(e)?aM.parse(e):iM.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?oM.transform(e):aM.transform(e)},lM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const cM="number",uM="color",dM="var",fM="var(",pM="${}",hM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mM(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(hM,(e=>(sM.test(e)?(r.color.push(i),o.push(uM),n.push(sM.parse(e))):e.startsWith(fM)?(r.var.push(i),o.push(dM),n.push(e)):(r.number.push(i),o.push(cM),n.push(parseFloat(e))),++i,pM))).split(pM);return{values:n,split:a,indexes:r,types:o}}function gM(e){return mM(e).values}function vM(e){const{split:t,types:n}=mM(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===cM?QR(e[i]):t===uM?sM.transform(e[i]):e[i]}return o}}const bM=e=>"number"==typeof e?0:e;const wM={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(JR))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(lM))||void 0===n?void 0:n.length)||0)>0},parse:gM,createTransformer:vM,getAnimatableNone:function(e){const t=gM(e);return vM(e)(t.map(bM))}},yM=new Set(["brightness","contrast","saturate","opacity"]);function xM(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(JR)||[];if(!r)return e;const o=n.replace(r,"");let i=yM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const CM=/\b([a-z-]*)\(.*?\)/gu,SM={...wM,getAnimatableNone:e=>{const t=e.match(CM);return t?t.map(xM).join(" "):e}},kM={...xN,color:sM,backgroundColor:sM,outlineColor:sM,fill:sM,stroke:sM,borderColor:sM,borderTopColor:sM,borderRightColor:sM,borderBottomColor:sM,borderLeftColor:sM,filter:SM,WebkitFilter:SM},EM=e=>kM[e];function PM(e,t){let n=EM(e);return n!==SM&&(n=wM),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const NM=new Set(["auto","none","0"]);const RM=e=>e===lN||e===hN,MM=(e,t)=>parseFloat(e.split(", ")[t]),AM=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return MM(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?MM(t[1],e):0}},IM=new Set(["x","y","z"]),TM=JP.filter((e=>!IM.has(e)));const OM={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:AM(4,13),y:AM(5,14)};OM.translateX=OM.x,OM.translateY=OM.y;const LM=new Set;let DM=!1,FM=!1;function _M(){if(FM){const e=Array.from(LM).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return TM.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}FM=!1,DM=!1,LM.forEach((e=>e.complete())),LM.clear()}function VM(){LM.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(FM=!0)}))}class zM{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(LM.add(this),DM||(DM=!0,uP.read(VM),uP.resolveKeyframes(_M))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),LM.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,LM.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const jM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),HM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BM(e,t,n=1){const[r,o]=function(e){const t=HM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return jM(e)?parseFloat(e):e}return oN(o)?BM(o,t,n+1):o}const $M=e=>t=>t.test(e),WM=[lN,hN,pN,fN,gN,mN,{test:e=>"auto"===e,parse:e=>e}],UM=e=>WM.find($M(e));class KM extends zM{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),oN(r))){const o=BM(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ER.has(n)||2!==e.length)return;const[r,o]=e,i=UM(r),a=UM(o);if(i!==a)if(RM(i)&&RM(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||ZR(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!NM.has(t)&&mM(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=PM(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=OM[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=OM[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const GM=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!wM.test(e)&&"0"!==e||e.startsWith("url(")));function qM(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=GM(o,t),s=GM(i,t);return!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||nR(n))&&r)}const XM=e=>null!==e;function YM(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(XM),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class ZM{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=RR.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(VM(),_M()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=RR.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!qM(e,n,r,o)){if(!i)return s&&s(YM(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const QM=(e,t,n)=>e+(t-e)*n;function JM(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eA(e,t){return n=>n>0?t:e}const tA=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},nA=[iM,oM,aM];function rA(e){const t=(e=>nA.find((t=>t.test(e))))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===aM&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=JM(s,r,e+1/3),i=JM(s,r,e),a=JM(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const oA=(e,t)=>{const n=rA(e),r=rA(t);if(!n||!r)return eA(e,t);const o={...n};return e=>(o.red=tA(n.red,r.red,e),o.green=tA(n.green,r.green,e),o.blue=tA(n.blue,r.blue,e),o.alpha=QM(n.alpha,r.alpha,e),oM.transform(o))},iA=(e,t)=>n=>t(e(n)),aA=(...e)=>e.reduce(iA),sA=new Set(["none","hidden"]);function lA(e,t){return n=>QM(e,t,n)}function cA(e){return"number"==typeof e?lA:"string"==typeof e?oN(e)?eA:sM.test(e)?oA:fA:Array.isArray(e)?uA:"object"==typeof e?sM.test(e)?oA:dA:eA}function uA(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>cA(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function dA(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=cA(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const fA=(e,t)=>{const n=wM.createTransformer(t),r=mM(e),o=mM(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?sA.has(e)&&!o.values.length||sA.has(t)&&!r.values.length?function(e,t){return sA.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):aA(uA(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):eA(e,t)};function pA(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return QM(e,t,n);return cA(e)(e,t)}const hA=5;function mA(e,t,n){const r=Math.max(t-hA,0);return TR(n-e(r),t-r)}const gA={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},vA=.001;function bA({duration:e=gA.duration,bounce:t=gA.bounce,velocity:n=gA.velocity,mass:r=gA.mass}){let o,i,a=1-t;a=sN(gA.minDamping,gA.maxDamping,a),e=sN(gA.minDuration,gA.maxDuration,aP(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=yA(t,a),l=Math.exp(-o);return vA-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=yA(Math.pow(t,2),a);return(-o(t)+vA>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<wA;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=iP(e),isNaN(s))return{stiffness:gA.stiffness,damping:gA.damping,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const wA=12;function yA(e,t){return e*Math.sqrt(1-t*t)}const xA=["duration","bounce"],CA=["stiffness","damping","mass"];function SA(e,t){return t.some((t=>void 0!==e[t]))}function kA(e=gA.visualDuration,t=gA.bounce){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:gA.velocity,stiffness:gA.stiffness,damping:gA.damping,mass:gA.mass,isResolvedFromDuration:!1,...e};if(!SA(e,CA)&&SA(e,xA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*sN(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:gA.mass,stiffness:o,damping:i}}else{const n=bA(e);t={...t,...n,mass:gA.mass},t.isResolvedFromDuration=!0}return t}({...n,velocity:-aP(n.velocity||0)}),h=f||0,m=c/(2*Math.sqrt(l*u)),g=a-i,v=aP(Math.sqrt(l/u)),b=Math.abs(g)<5;let w;if(r||(r=b?gA.restSpeed.granular:gA.restSpeed.default),o||(o=b?gA.restDelta.granular:gA.restDelta.default),m<1){const e=yA(v,m);w=t=>{const n=Math.exp(-m*v*t);return a-n*((h+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)w=e=>a-Math.exp(-v*e)*(g+(h+v*g)*e);else{const e=v*Math.sqrt(m*m-1);w=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return a-n*((h+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const y={calculatedDuration:p&&d||null,next:e=>{const t=w(e);if(p)s.done=e>=d;else{let n=0;m<1&&(n=0===e?iP(h):mA(w,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(tR(y),eR),t=lR((t=>y.next(e*t).value),e,30);return e+"ms "+t}};return y}function EA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/r),b=e=>g+v(e),w=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let y,x;const C=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(y=e,x=kA({keyframes:[f.value,p(f.value)],velocity:mA(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==y||(t=!0,w(e),C(e)),void 0!==y&&e>=y?x.next(e-y):(!t&&w(e),f)}}}const PA=HR(.42,0,1,1),NA=HR(0,0,.58,1),RA=HR(.42,0,.58,1),MA={linear:tP,easeIn:PA,easeInOut:RA,easeOut:NA,circIn:qR,circInOut:YR,circOut:XR,backIn:UR,backInOut:KR,backOut:WR,anticipate:GR},AA=e=>{if(oR(e)){nP(4===e.length);const[t,n,r,o]=e;return HR(t,n,r,o)}return"string"==typeof e?MA[e]:e};function IA(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(nP(i===t.length),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||pA,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||tP:t;i=aA(e,i)}r.push(i)}return r}(t,r,o),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=oP(e[r],e[r+1],n);return s[r](o)};return n?t=>c(sN(e[0],e[i-1],t)):c}function TA(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=oP(0,t,r);e.push(QM(n,1,o))}}(t,e.length-1),t}function OA({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(AA):AA(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:TA(t),e),s=IA(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||RA)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const LA=e=>{const t=({timestamp:t})=>e(t);return{start:()=>uP.update(t,!0),stop:()=>dP(t),now:()=>fP.isProcessing?fP.timestamp:RR.now()}},DA={decay:EA,inertia:EA,tween:OA,keyframes:OA,spring:kA},FA=e=>e/100;class _A extends ZM{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||zM;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=nR(t)?t:DA[t]||OA;let s,l;a!==OA&&"number"!=typeof e[0]&&(s=aA(FA,pA(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=tR(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,w=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===p?(n=1-n,h&&(n-=h/u)):"mirror"===p&&(w=i)),b=sN(0,1,n)*u}const y=v?{done:!1,value:s[0]}:w.next(b);a&&(y.value=a(y.value));let{done:x}=y;v||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return C&&void 0!==r&&(y.value=YM(s,this.options,r)),m&&m(y.value),C&&this.finish(),y}get duration(){const{resolved:e}=this;return e?aP(e.calculatedDuration):0}get time(){return aP(this.currentTime)}set time(e){e=iP(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=aP(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=LA,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const VA=new Set(["opacity","clipPath","filter","transform"]);function zA(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=fR(s,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}const jA=rP((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const HA={anticipate:GR,backInOut:KR,circInOut:YR};class BA extends ZM{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new KM(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&sR()&&o in HA&&(o=HA[o]),function(e){return nR(e.type)||"spring"===e.type||!cR(e.ease)}(this.options)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new _A({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}const c=zA(a.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(rR(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(YM(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return aP(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return aP(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=iP(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return tP;const{animation:n}=t;rR(n,e)}else this.pendingTimeline=e;return tP}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new _A({...c,keyframes:n,duration:r,type:o,ease:i,times:a,isGenerator:!0}),d=iP(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return jA()&&n&&VA.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const $A={type:"spring",stiffness:500,damping:25,restSpeed:10},WA={type:"keyframes",duration:.8},UA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},KA=(e,{keyframes:t})=>t.length>2?WA:eN.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:$A:UA;const GA=(e,t,n,r={},o,i)=>a=>{const s=JN(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=iP(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...KA(e,u)}),u.duration&&(u.duration=iP(u.duration)),u.repeatDelay&&(u.repeatDelay=iP(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=YM(u.keyframes,s);if(void 0!==e)return uP.update((()=>{u.onUpdate(e),u.onComplete()})),new QN([])}return!i&&BA.supports(u)?new BA(u):new _A(u)};function qA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function XA(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&qA(u,t))continue;const s={delay:n,...JN(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=_R(e);if(n){const e=window.MotionHandoffAnimation(n,t,uP);null!==e&&(s.startTime=e,d=!0)}}FR(e,t),r.start(GA(t,r,o,e.shouldReduceMotion&&ER.has(t)?{type:!1}:s,e,d));const f=r.animation;f&&c.push(f)}return s&&Promise.all(c).then((()=>{uP.update((()=>{s&&function(e,t){const n=XN(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)DR(e,t,qP(i[t]))}(e,s)}))})),c}function YA(e,t,n={}){var r;const o=XN(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(XA(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(ZA).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(YA(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function ZA(e,t){return e.sortNodePosition(t)}const QA=PP.length;function JA(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&JA(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<QA;n++){const r=PP[n],o=e.props[r];(SP(o)||!1===o)&&(t[r]=o)}return t}const eI=[...EP].reverse(),tI=EP.length;function nI(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>YA(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=YA(e,t,n);else{const o="function"==typeof t?XN(e,t,n.custom):t;r=Promise.all(XA(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function rI(e){let t=nI(e),n=aI(),r=!0;const o=t=>(n,r)=>{var o;const i=XN(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=JA(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<tI;t++){const f=eI[t],p=n[f],h=void 0!==a[f]?a[f]:s[f],m=SP(h),g=f===i?p.isActive:null;!1===g&&(d=t);let v=h===s[f]&&h!==a[f]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===g||!h&&!p.prevProp||kP(h)||"boolean"==typeof h)continue;const b=oI(p.prevProp,h);let w=b||f===i&&p.isActive&&!v&&m||t>d&&m,y=!1;const x=Array.isArray(h)?h:[h];let C=x.reduce(o(f),{});!1===g&&(C={});const{prevResolvedValues:S={}}=p,k={...S,...C},E=t=>{w=!0,c.has(t)&&(y=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=C[e],n=S[e];if(u.hasOwnProperty(e))continue;let r=!1;r=KP(t)&&KP(n)?!qN(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=h,p.prevResolvedValues=C,p.isActive&&(u={...u,...C}),r&&e.blockInitialAnimation&&(w=!1);w&&(!(v&&b)||y)&&l.push(...x.map((e=>({animation:e,options:{type:f}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=aI(),r=!0}}}function oI(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!qN(t,e)}function iI(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aI(){return{animate:iI(!0),whileInView:iI(),whileHover:iI(),whileTap:iI(),whileDrag:iI(),whileFocus:iI(),exit:iI()}}class sI{constructor(e){this.isMounted=!1,this.node=e}update(){}}let lI=0;const cI={animation:{Feature:class extends sI{constructor(e){super(e),e.animationState||(e.animationState=rI(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();kP(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends sI{constructor(){super(...arguments),this.id=lI++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function uI(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function dI(e){return{point:{x:e.pageX,y:e.pageY}}}function fI(e,t,n,r){return uI(e,t,(e=>t=>bR(t)&&e(t,dI(t)))(n),r)}const pI=(e,t)=>Math.abs(e-t);class hI{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=vI(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=pI(e.x,t.x),r=pI(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=fP;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=mI(t,this.transformPagePoint),uP.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=vI("pointercancel"===e.type?this.lastMoveEventInfo:mI(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!bR(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=mI(dI(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=fP;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,vI(i,this.history)),this.removeListeners=aA(fI(this.contextWindow,"pointermove",this.handlePointerMove),fI(this.contextWindow,"pointerup",this.handlePointerUp),fI(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),dP(this.updatePoint)}}function mI(e,t){return t?{point:t(e.point)}:e}function gI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vI({point:e},t){return{point:e,delta:gI(e,wI(t)),offset:gI(e,bI(t)),velocity:yI(t,.1)}}function bI(e){return e[0]}function wI(e){return e[e.length-1]}function yI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wI(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>iP(t)));)n--;if(!r)return{x:0,y:0};const i=aP(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const xI=.9999,CI=1.0001,SI=-.01,kI=.01;function EI(e){return e.max-e.min}function PI(e,t,n,r=.5){e.origin=r,e.originPoint=QM(t.min,t.max,e.origin),e.scale=EI(n)/EI(t),e.translate=QM(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xI&&e.scale<=CI||isNaN(e.scale))&&(e.scale=1),(e.translate>=SI&&e.translate<=kI||isNaN(e.translate))&&(e.translate=0)}function NI(e,t,n,r){PI(e.x,t.x,n.x,r?r.originX:void 0),PI(e.y,t.y,n.y,r?r.originY:void 0)}function RI(e,t,n){e.min=n.min+t.min,e.max=e.min+EI(t)}function MI(e,t,n){e.min=t.min-n.min,e.max=e.min+EI(t)}function AI(e,t,n){MI(e.x,t.x,n.x),MI(e.y,t.y,n.y)}function II(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function TI(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const OI=.35;function LI(e,t,n){return{min:DI(e,t),max:DI(e,n)}}function DI(e,t){return"number"==typeof e?e:e[t]||0}const FI=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),_I=()=>({x:{min:0,max:0},y:{min:0,max:0}});function VI(e){return[e("x"),e("y")]}function zI({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function jI(e){return void 0===e||1===e}function HI({scale:e,scaleX:t,scaleY:n}){return!jI(e)||!jI(t)||!jI(n)}function BI(e){return HI(e)||$I(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $I(e){return WI(e.x)||WI(e.y)}function WI(e){return e&&"0%"!==e}function UI(e,t,n){return n+t*(e-n)}function KI(e,t,n,r,o){return void 0!==o&&(e=UI(e,o,r)),UI(e,n,r)+t}function GI(e,t=0,n=1,r,o){e.min=KI(e.min,t,n,r,o),e.max=KI(e.max,t,n,r,o)}function qI(e,{x:t,y:n}){GI(e.x,t.translate,t.scale,t.originPoint),GI(e.y,n.translate,n.scale,n.originPoint)}const XI=.999999999999,YI=1.0000000000001;function ZI(e,t){e.min=e.min+t,e.max=e.max+t}function QI(e,t,n,r,o=.5){GI(e,t,n,QM(e.min,e.max,o),r)}function JI(e,t){QI(e.x,t.x,t.scaleX,t.scale,t.originX),QI(e.y,t.y,t.scaleY,t.scale,t.originY)}function eT(e,t){return zI(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const tT=({current:e})=>e?e.ownerDocument.defaultView:null,nT=new WeakMap;class rT{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_I(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new hI(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(dI(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?pR[i]?null:(pR[i]=!0,()=>{pR[i]=!1}):pR.x||pR.y?null:(pR.x=pR.y=!0,()=>{pR.x=pR.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),VI((e=>{let t=this.getAxisMotionValue(e).get()||0;if(pN.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=EI(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&uP.postRender((()=>o(e,t))),FR(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>VI((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:tT(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&uP.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!oT(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?QM(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?QM(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&TP(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:II(e.x,n,o),y:II(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=OI){return!1===e?e=0:!0===e&&(e=OI),{x:LI(e,"left","right"),y:LI(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&VI((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!TP(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=eT(e,n),{scroll:o}=t;return o&&(ZI(r.x,o.offset.x),ZI(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:TI(e.x,t.x),y:TI(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=zI(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=VI((a=>{if(!oT(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return FR(this.visualElement,e),n.start(GA(e,n,0,t,this.visualElement,!1))}stopAnimation(){VI((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){VI((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){VI((t=>{const{drag:n}=this.getProps();if(!oT(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-QM(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!TP(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};VI((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=EI(e),o=EI(t);return o>r?n=oP(t.min,t.max-r,e.min):r>o&&(n=oP(e.min,e.max-o,t.min)),sN(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),VI((t=>{if(!oT(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(QM(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;nT.set(this.visualElement,this);const e=fI(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();TP(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),uP.read(t);const o=uI(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(VI((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=OI,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function oT(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const iT=e=>(t,n)=>{e&&uP.postRender((()=>e(t,n)))};const aT={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lT={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!hN.test(e))return e;e=parseFloat(e)}return`${sT(e,t.target.x)}% ${sT(e,t.target.y)}%`}},cT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=wM.parse(e);if(o.length>5)return r;const i=wM.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=QM(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class uT extends S{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=fT,Object.assign(DN,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),aT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||uP.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),FP.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function dT(t){const[n,r]=XE(),o=l(HE);return e(uT,{...t,layoutGroup:o,switchLayoutGroup:l(_P),isPresent:n,safeToRemove:r})}const fT={borderRadius:{...lT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lT,borderTopRightRadius:lT,borderBottomLeftRadius:lT,borderBottomRightRadius:lT,boxShadow:cT};const pT=(e,t)=>e.depth-t.depth;class hT{constructor(){this.children=[],this.isDirty=!1}add(e){MR(this.children,e),this.isDirty=!0}remove(e){AR(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pT),this.isDirty=!1,this.children.forEach(e)}}const mT=["TopLeft","TopRight","BottomLeft","BottomRight"],gT=mT.length,vT=e=>"string"==typeof e?parseFloat(e):e,bT=e=>"number"==typeof e||hN.test(e);function wT(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const yT=CT(0,.5,XR),xT=CT(.5,.95,tP);function CT(e,t,n){return r=>r<e?0:r>t?1:n(oP(e,t,r))}function ST(e,t){e.min=t.min,e.max=t.max}function kT(e,t){ST(e.x,t.x),ST(e.y,t.y)}function ET(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function PT(e,t,n,r,o){return e=UI(e-=t,1/n,r),void 0!==o&&(e=UI(e,1/o,r)),e}function NT(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){pN.test(t)&&(t=parseFloat(t),t=QM(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=QM(i.min,i.max,r);e===i&&(s-=t),e.min=PT(e.min,t,n,s,o),e.max=PT(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const RT=["x","scaleX","originX"],MT=["y","scaleY","originY"];function AT(e,t,n,r){NT(e.x,t,RT,n?n.x:void 0,r?r.x:void 0),NT(e.y,t,MT,n?n.y:void 0,r?r.y:void 0)}function IT(e){return 0===e.translate&&1===e.scale}function TT(e){return IT(e.x)&&IT(e.y)}function OT(e,t){return e.min===t.min&&e.max===t.max}function LT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function DT(e,t){return LT(e.x,t.x)&&LT(e.y,t.y)}function FT(e){return EI(e.x)/EI(e.y)}function _T(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class VT{constructor(){this.members=[]}add(e){MR(this.members,e),e.scheduleRender()}remove(e){if(AR(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const zT={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},jT="undefined"!=typeof window&&void 0!==window.MotionDebug,HT=["","X","Y","Z"],BT={visibility:"hidden"};let $T=0;function WT(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function UT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_R(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",uP,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&UT(r)}function KT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=$T++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,jT&&(zT.totalNodes=zT.resolvedTargetDeltas=zT.recalculatedProjection=0),this.nodes.forEach(XT),this.nodes.forEach(nO),this.nodes.forEach(rO),this.nodes.forEach(YT),jT&&window.MotionDebug.record(zT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new hT)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new IR),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=RR.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(dP(r),e(i-t))};return uP.read(r,!0),()=>dP(r)}(r,250),aT.hasAnimatedSinceResize&&(aT.hasAnimatedSinceResize=!1,this.nodes.forEach(tO))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||cO,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!DT(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...JN(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||tO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dP(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oO),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&UT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(QT);this.isUpdating||this.nodes.forEach(JT),this.isUpdating=!1,this.nodes.forEach(eO),this.nodes.forEach(GT),this.nodes.forEach(qT),this.clearAllSnapshots();const e=RR.now();fP.delta=sN(0,1e3/60,e-fP.timestamp),fP.timestamp=e,fP.isProcessing=!0,pP.update.process(fP),pP.preRender.process(fP),pP.render.process(fP),fP.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,FP.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZT),this.sharedNodes.forEach(iO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uP.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uP.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_I(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!TT(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||BI(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),fO((r=n).x),fO(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return _I();const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(hO))){const{scroll:e}=this.root;e&&(ZI(n.x,e.offset.x),ZI(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=_I();if(kT(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&kT(n,e),ZI(n.x,o.offset.x),ZI(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n=_I();kT(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&JI(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),BI(r.latestValues)&&JI(n,r.latestValues)}return BI(this.latestValues)&&JI(n,this.latestValues),n}removeTransform(e){const t=_I();kT(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!BI(n.latestValues))continue;HI(n.latestValues)&&n.updateSnapshot();const r=_I();kT(r,n.measurePageBox()),AT(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return BI(this.latestValues)&&AT(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fP.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=fP.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_I(),this.relativeTargetOrigin=_I(),AI(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),kT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=_I(),this.targetWithTransforms=_I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,RI(a.x,s.x,l.x),RI(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):kT(this.target,this.layout.layoutBox),qI(this.target,this.targetDelta)):kT(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_I(),this.relativeTargetOrigin=_I(),AI(this.relativeTargetOrigin,this.target,e.target),kT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}jT&&zT.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!HI(this.parent.latestValues)&&!$I(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===fP.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;kT(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&JI(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,qI(e,a)),r&&BI(i.latestValues)&&JI(e,i.latestValues))}t.x<YI&&t.x>XI&&(t.x=1),t.y<YI&&t.y>XI&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=_I());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(ET(this.prevProjectionDelta.x,this.projectionDelta.x),ET(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),NI(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&_T(this.projectionDelta.x,this.prevProjectionDelta.x)&&_T(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),jT&&zT.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=FI(),this.projectionDelta=FI(),this.projectionDeltaWithTransform=FI()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=FI();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=_I(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(lO));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;aO(i.x,e.x,n),aO(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(AI(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){sO(e.x,t.x,n.x,r),sO(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return OT(e.x,t.x)&&OT(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=_I()),kT(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=QM(0,void 0!==n.opacity?n.opacity:1,yT(r)),e.opacityExit=QM(void 0!==t.opacity?t.opacity:1,0,xT(r))):i&&(e.opacity=QM(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<gT;o++){const i=`border${mT[o]}Radius`;let a=wT(t,i),s=wT(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||bT(a)===bT(s)?(e[i]=Math.max(QM(vT(a),vT(s),r),0),(pN.test(s)||pN.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=QM(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dP(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uP.update((()=>{aT.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=XP(e)?e:LR(e);return r.start(GA("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&pO(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||_I();const t=EI(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=EI(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}kT(t,n),JI(t,o),NI(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new VT);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&WT("z",e,r,this.animationValues);for(let t=0;t<HT.length;t++)WT(`rotate${HT[t]}`,e,r,this.animationValues),WT(`skew${HT[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return BT;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=YP(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=YP(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!BI(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in DN){if(void 0===a[e])continue;const{correct:t,applyTo:n}=DN[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?YP(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(QT),this.root.sharedNodes.clear()}}}function GT(e){e.updateLayout()}function qT(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?VI((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=EI(r);r.min=t[e].min,r.max=r.min+o})):pO(o,n.layoutBox,t)&&VI((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=EI(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=FI();NI(a,t,n.layoutBox);const s=FI();i?NI(s,e.applyTransform(r,!0),n.measuredBox):NI(s,t,n.layoutBox);const l=!TT(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=_I();AI(a,n.layoutBox,o.layoutBox);const s=_I();AI(s,t,i.layoutBox),DT(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function XT(e){jT&&zT.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function YT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZT(e){e.clearSnapshot()}function QT(e){e.clearMeasurements()}function JT(e){e.isLayoutDirty=!1}function eO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nO(e){e.resolveTargetDelta()}function rO(e){e.calcProjection()}function oO(e){e.resetSkewAndRotation()}function iO(e){e.removeLeadSnapshot()}function aO(e,t,n){e.translate=QM(t.translate,0,n),e.scale=QM(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sO(e,t,n,r){e.min=QM(t.min,n.min,r),e.max=QM(t.max,n.max,r)}function lO(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const cO={duration:.45,ease:[.4,0,.1,1]},uO=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dO=uO("applewebkit/")&&!uO("chrome/")?Math.round:tP;function fO(e){e.min=dO(e.min),e.max=dO(e.max)}function pO(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=FT(t),o=FT(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function hO(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const mO=KT({attachResizeListener:(e,t)=>uI(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gO={current:void 0},vO=KT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gO.current){const e=new mO({});e.mount(window),e.setOptions({layoutScroll:!0}),gO.current=e}return gO.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),bO={pan:{Feature:class extends sI{constructor(){super(...arguments),this.removePointerDownListener=tP}onPointerDown(e){this.session=new hI(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tT(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iT(e),onStart:iT(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&uP.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=fI(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends sI{constructor(e){super(e),this.removeGroupControls=tP,this.removeListeners=tP,this.controls=new rT(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tP}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:vO,MeasureLayout:dT}};function wO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&uP.postRender((()=>o(t,dI(t))))}function yO(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&uP.postRender((()=>o(t,dI(t))))}const xO=new WeakMap,CO=new WeakMap,SO=e=>{const t=xO.get(e.target);t&&t(e)},kO=e=>{e.forEach(SO)};function EO(e,t,n){const r=function({root:e,...t}){const n=e||document;CO.has(n)||CO.set(n,{});const r=CO.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(kO,{root:e,...t})),r[o]}(t);return xO.set(e,n),r.observe(e),()=>{xO.delete(e),r.unobserve(e)}}const PO={some:0,all:1};const NO={inView:{Feature:class extends sI{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:PO[r]};return EO(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends sI{mount(){const{current:e}=this.node;e&&(this.unmount=kR(e,(e=>(yO(this.node,e,"Start"),(e,{success:t})=>yO(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends sI{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=aA(uI(this.node.current,"focus",(()=>this.onFocus())),uI(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends sI{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=mR(e,n),a=gR((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=gR((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,(e=>(wO(this.node,e,"Start"),e=>wO(this.node,e,"End")))))}unmount(){}}}},RO={layout:{ProjectionNode:vO,MeasureLayout:dT}},MO={current:null},AO={current:!1};const IO=[...WM,sM,wM],TO=new WeakMap;const OO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class LO{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zM,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=RR.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uP.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=NP(t),this.isVariantNode=RP(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&XP(t)&&t.set(s[e],!1)}}mount(e){this.current=e,TO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),AO.current||function(){if(AO.current=!0,QE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>MO.current=e.matches;e.addListener(t),t()}else MO.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||MO.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TO.delete(this.current),this.projection&&this.projection.unmount(),dP(this.notifyUpdate),dP(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=eN.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&uP.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in gP){const t=gP[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<OO.length;t++){const n=OO[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(XP(o))e.addValue(r,o);else if(XP(i))e.addValue(r,LR(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,LR(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=LR(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(jM(r)||ZR(r))?r=parseFloat(r):!(e=>IO.find($M(e)))(r)&&wM.test(t)&&(r=PM(e,t)),this.setBaseTarget(e,XP(r)?r.get():r)),XP(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=UP(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||XP(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new IR),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class DO extends LO{constructor(){super(...arguments),this.KeyframeResolver=KM}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;XP(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class FO extends DO{constructor(){super(...arguments),this.type="html",this.renderInstance=TN}readValueFromInstance(e,t){if(eN.has(t)){const e=EM(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(nN(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return eT(e,t)}build(e,t,n){kN(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return _N(e,t,n)}}class _O extends DO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_I}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(eN.has(t)){const e=EM(t);return e&&e.default||0}return t=ON.has(t)?t:LP(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return VN(e,t,n)}build(e,t,n){RN(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){LN(e,t,0,r)}mount(e){this.isSVGTag=IN(e.tagName),super.mount(e)}}const VO=(e,t)=>$P(e)?new _O(t):new FO(t,{allowProjection:e!==h}),zO=xP(GN({...cI,...NO,...bO,...RO},VO)),jO=u((function({description:n,side:r="top",className:o,role:i,...s},l){const c=Va({placement:r}),u=Qo(c,(e=>e.mounted)),d=Qo(c,(e=>e.placement)),{x:f,y:p}=a((()=>{switch(d.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[d]);return t(lc,{store:c,hideTimeout:0,children:[e(pc,{...s,ref:l,role:i,onKeyDown:e=>{"button"===i&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:an("cursor-pointer",o)}),e(eP,{children:!0===u&&t(sc,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e(zO.div,{initial:{opacity:0,x:f,y:p},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:f,y:p}}),children:[e(yc,{}),n]})})]})})),HO=({className:t,...n})=>e("nav",{role:"navigation","aria-label":"pagination",className:an("mx-auto flex w-full justify-center",t),...n});HO.displayName="Pagination";const BO=r.forwardRef((({className:t,...n},r)=>e("ul",{ref:r,className:an("flex flex-row items-center gap-1",t),...n})));BO.displayName="PaginationContent";const $O=r.forwardRef((({className:t,...n},r)=>e("li",{ref:r,className:an("",t),...n})));$O.displayName="PaginationItem";const WO=({className:t,isActive:n=!1,size:r="icon",children:o,...i})=>e("a",{"aria-current":n?"page":void 0,className:an(hh({variant:n?"outline":"ghost",size:r}),t),...i,children:o||e("span",{className:"sr-only",children:"Page link"})});WO.displayName="PaginationLink";const UO=({className:n,...r})=>t(WO,{"aria-label":"Go to previous page",size:"default",className:an("gap-1 pl-2.5",n),...r,children:[e(Gp,{className:"h-4 w-4"}),e("span",{children:"Previous"})]});UO.displayName="PaginationPrevious";const KO=({className:n,...r})=>t(WO,{"aria-label":"Go to next page",size:"default",className:an("gap-1 pr-2.5",n),...r,children:[e("span",{children:"Next"}),e(qp,{className:"h-4 w-4"})]});KO.displayName="PaginationNext";const GO=({className:n,...r})=>t("span",{"aria-hidden":!0,className:an("flex h-9 w-9 items-center justify-center",n),...r,children:[e(Yp,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"More pages"})]});function qO(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function XO(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}GO.displayName="PaginationEllipsis";var YO=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),s=a.find(JO);if(s){const t=s.props.children,o=a.map((e=>e===s?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(ZO,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(ZO,{...i,ref:n,children:o})}));YO.displayName="Slot";var ZO=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=XO(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():XO(e[t],null)}}}}(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));ZO.displayName="SlotClone";var QO=({children:t})=>e(n,{children:t});function JO(e){return r.isValidElement(e)&&e.type===QO}var eL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?YO:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),tL="Progress",nL=100,[rL,oL]=function(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},qO(i,...n)]}(tL),[iL,aL]=rL(tL),sL=r.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o=null,max:i,getValueLabel:a=uL,...s}=t;!i&&0!==i||pL(i)||console.error(`Invalid prop \`max\` of value \`${`${i}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const l=pL(i)?i:nL;null===o||hL(o,l)||console.error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${o}`,"Progress"));const c=hL(o,l)?o:null,u=fL(c)?a(c,l):void 0;return e(iL,{scope:r,value:c,max:l,children:e(eL.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":fL(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":dL(c,l),"data-value":c??void 0,"data-max":l,...s,ref:n})})}));sL.displayName=tL;var lL="ProgressIndicator",cL=r.forwardRef(((t,n)=>{const{__scopeProgress:r,...o}=t,i=aL(lL,r);return e(eL.div,{"data-state":dL(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...o,ref:n})}));function uL(e,t){return`${Math.round(e/t*100)}%`}function dL(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function fL(e){return"number"==typeof e}function pL(e){return fL(e)&&!isNaN(e)&&e>0}function hL(e,t){return fL(e)&&!isNaN(e)&&e<=t&&e>=0}cL.displayName=lL;var mL=sL,gL=cL;const vL=r.forwardRef((({className:t,value:n,...r},o)=>e(mL,{ref:o,className:an("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e(gL,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})})));vL.displayName=mL.displayName;var bL=Object.defineProperty,wL=Object.defineProperties,yL=Object.getOwnPropertyDescriptors,xL=Object.getOwnPropertySymbols,CL=Object.prototype.hasOwnProperty,SL=Object.prototype.propertyIsEnumerable,kL=(e,t,n)=>t in e?bL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var EL=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var PL=r.createContext({}),NL=r.forwardRef(((e,t)=>{var n,o,i,a,s,l=e,{value:c,onChange:u,maxLength:d,textAlign:f="left",pattern:p,placeholder:h,inputMode:m="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:b,containerClassName:w,noScriptCSSFallback:y=ML,render:x,children:C}=l,S=((e,t)=>{var n={};for(var r in e)CL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xL)for(var r of xL(e))t.indexOf(r)<0&&SL.call(e,r)&&(n[r]=e[r]);return n})(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[k,E]=r.useState("string"==typeof S.defaultValue?S.defaultValue:""),P=null!=c?c:k,N=function(e){let t=r.useRef();return r.useEffect((()=>{t.current=e})),t.current}(P),R=r.useCallback((e=>{null==u||u(e),E(e)}),[u]),M=r.useMemo((()=>p?"string"==typeof p?new RegExp(p):p:null),[p]),A=r.useRef(null),I=r.useRef(null),T=r.useRef({value:P,onChange:R,isIOS:"undefined"!=typeof window&&(null==(o=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:o.call(n,"-webkit-touch-callout","none"))}),O=r.useRef({prev:[null==(i=A.current)?void 0:i.selectionStart,null==(a=A.current)?void 0:a.selectionEnd,null==(s=A.current)?void 0:s.selectionDirection]});r.useImperativeHandle(t,(()=>A.current),[]),r.useEffect((()=>{let e=A.current,t=I.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return z(null),void H(null);let t,n=e.selectionStart,r=e.selectionEnd,o=e.selectionDirection,i=e.maxLength,a=e.value,s=O.current.prev,l=-1,c=-1;if(0!==a.length&&null!==n&&null!==r){let e=n===r,o=n===a.length&&a.length<i;if(e&&!o){let e=n;if(0===e)l=0,c=1,t="forward";else if(e===i)l=e-1,c=e,t="backward";else if(i>1&&a.length>1){let n=0;if(null!==s[0]&&null!==s[1]){t=e<s[1]?"backward":"forward";let r=s[0]===s[1]&&s[0]<i;"backward"===t&&!r&&(n=-1)}l=n+e,c=n+e+1}}-1!==l&&-1!==c&&l!==c&&A.current.setSelectionRange(l,c,t)}let u=-1!==l?l:n,d=-1!==c?c:r,f=null!=t?t:o;z(u),H(d),O.current.prev=[u,d,f]}if(T.current.value!==e.value&&T.current.onChange(e.value),O.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&_(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";RL(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),RL(e.sheet,`[data-input-otp]:autofill { ${t} }`),RL(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),RL(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),RL(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let o=new ResizeObserver(r);return o.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),o.disconnect()}}),[]);let[L,D]=r.useState(!1),[F,_]=r.useState(!1),[V,z]=r.useState(null),[j,H]=r.useState(null);r.useEffect((()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}((()=>{var e,t,n,r;null==(e=A.current)||e.dispatchEvent(new Event("input"));let o=null==(t=A.current)?void 0:t.selectionStart,i=null==(n=A.current)?void 0:n.selectionEnd,a=null==(r=A.current)?void 0:r.selectionDirection;null!==o&&null!==i&&(z(o),H(i),O.current.prev=[o,i,a])}))}),[P,F]),r.useEffect((()=>{void 0!==N&&P!==N&&N.length<d&&P.length===d&&(null==g||g(P))}),[d,g,N,P]);let B=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:o}){let[i,a]=r.useState(!1),[s,l]=r.useState(!1),[c,u]=r.useState(!1),d=r.useMemo((()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&i&&s),[i,s,n]),f=r.useCallback((()=>{let r=e.current,o=t.current;if(!r||!o||c||"none"===n)return;let i=r,s=i.getBoundingClientRect().left+i.offsetWidth-18,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll(EL).length&&document.elementFromPoint(s,l)===r||(a(!0),u(!0))}),[e,t,c,n]);return r.useEffect((()=>{let t=e.current;if(!t||"none"===n)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}}),[e,n]),r.useEffect((()=>{let e=o||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(f,0),i=setTimeout(f,2e3),a=setTimeout(f,5e3),s=setTimeout((()=>{u(!0)}),6e3);return()=>{clearTimeout(r),clearTimeout(i),clearTimeout(a),clearTimeout(s)}}),[t,o,n,f]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:I,inputRef:A,pushPasswordManagerStrategy:v,isFocused:F}),$=r.useCallback((e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&M&&!M.test(t)?e.preventDefault():("string"==typeof N&&t.length<N.length&&document.dispatchEvent(new Event("selectionchange")),R(t))}),[d,R,N,M]),W=r.useCallback((()=>{var e;if(A.current){let t=Math.min(A.current.value.length,d-1),n=A.current.value.length;null==(e=A.current)||e.setSelectionRange(t,n),z(t),H(n)}_(!0)}),[d]),U=r.useCallback((e=>{var t,n;let r=A.current;if(!(b||T.current.isIOS&&e.clipboardData&&r))return;let o=e.clipboardData.getData("text/plain"),i=b?b(o):o;e.preventDefault();let a=null==(t=A.current)?void 0:t.selectionStart,s=null==(n=A.current)?void 0:n.selectionEnd,l=(a!==s?P.slice(0,a)+i+P.slice(s):P.slice(0,a)+i+P.slice(a)).slice(0,d);if(l.length>0&&M&&!M.test(l))return;r.value=l,R(l);let c=Math.min(l.length,d-1),u=l.length;r.setSelectionRange(c,u),z(c),H(u)}),[d,R,M,P]),K=r.useMemo((()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"})),[S.disabled]),G=r.useMemo((()=>({position:"absolute",inset:0,width:B.willPushPWMBadge?`calc(100% + ${B.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:B.willPushPWMBadge?`inset(0 ${B.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:f,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"})),[B.PWM_BADGE_SPACE_WIDTH,B.willPushPWMBadge,f]),q=r.useMemo((()=>r.createElement("input",((e,t)=>wL(e,yL(t)))(((e,t)=>{for(var n in t||(t={}))CL.call(t,n)&&kL(e,n,t[n]);if(xL)for(var n of xL(t))SL.call(t,n)&&kL(e,n,t[n]);return e})({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===P.length||void 0,"data-input-otp-mss":V,"data-input-otp-mse":j,inputMode:m,pattern:null==M?void 0:M.source,"aria-placeholder":h,style:G,maxLength:d,value:P,ref:A,onPaste:e=>{var t;U(e),null==(t=S.onPaste)||t.call(S,e)},onChange:$,onMouseOver:e=>{var t;D(!0),null==(t=S.onMouseOver)||t.call(S,e)},onMouseLeave:e=>{var t;D(!1),null==(t=S.onMouseLeave)||t.call(S,e)},onFocus:e=>{var t;W(),null==(t=S.onFocus)||t.call(S,e)},onBlur:e=>{var t;_(!1),null==(t=S.onBlur)||t.call(S,e)}}))),[$,W,U,m,G,d,j,V,S,null==M?void 0:M.source,P]),X=r.useMemo((()=>({slots:Array.from({length:d}).map(((e,t)=>{var n;let r=F&&null!==V&&null!==j&&(V===j&&t===V||t>=V&&t<j),o=void 0!==P[t]?P[t]:null;return{char:o,placeholderChar:void 0!==P[0]?null:null!=(n=null==h?void 0:h[t])?n:null,isActive:r,hasFakeCaret:r&&null===o}})),isFocused:F,isHovering:!S.disabled&&L})),[F,L,d,j,V,S.disabled,P]),Y=r.useMemo((()=>x?x(X):r.createElement(PL.Provider,{value:X},C)),[C,X,x]);return r.createElement(r.Fragment,null,null!==y&&r.createElement("noscript",null,r.createElement("style",null,y)),r.createElement("div",{ref:I,"data-input-otp-container":!0,style:K,className:w},Y,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},q)))}));function RL(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}NL.displayName="Input";var ML="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const AL=r.forwardRef((({className:t,containerClassName:n,...r},o)=>e(NL,{ref:o,containerClassName:an("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:an("disabled:cursor-not-allowed",t),...r})));AL.displayName="InputOTP";const IL=r.forwardRef((({className:t,...n},r)=>e("div",{ref:r,className:an("flex items-center",t),...n})));IL.displayName="InputOTPGroup";const TL=r.forwardRef((({index:n,className:o,...i},a)=>{const s=r.useContext(PL),{char:l,hasFakeCaret:c,isActive:u}=s.slots[n];return t("div",{ref:a,className:an("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",u&&"z-10 ring-1 ring-ring",o),...i,children:[l,c&&e("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));TL.displayName="InputOTPSlot";const OL=r.forwardRef((({...t},n)=>e("div",{ref:n,role:"separator",...t,children:e(Qp,{})})));function LL({value:n,onChange:r,placeholder:o,className:i=""}){const a=ty(),s=m(null),l=c((e=>r(e.target.value)),[r]);return t("div",{className:an("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",i),children:[e(nh,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e("input",{ref:s,type:"text",value:n??"",onChange:l,placeholder:o??a("com_ui_select_search_model"),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e("button",{className:an("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{r(""),setTimeout((()=>{s.current?.focus()}),0)},tabIndex:0,children:e(oh,{"aria-hidden":"true",className:an("text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function DL(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function FL({availableOptions:t=[],placeholder:n,getTextKeyOverride:r,className:o,disabled:i=!1}){const[s,l]=v(null),u=t.length>10&&!i,d=r||DL,f=a((()=>{const e=s??"";if(!u||!e||!t.length)return t;const n=e.toUpperCase();return t.filter((e=>d(e).includes(n)))}),[t,d,s,u]),p=c((e=>l(e)),[]);return[f,u?e(LL,{value:s,className:o,onChange:p,placeholder:n}):null]}OL.displayName="InputOTPSeparator";const _L=i(null);_L.displayName="PanelGroupContext";const VL={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},zL=10,jL=b,HL=r["useId".toString()],BL="function"==typeof HL?HL:()=>null;let $L=0;function WL(e=null){const t=BL(),n=m(e||t||null);return null===n.current&&(n.current=""+$L++),null!=e?e:n.current}function UL({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:i,id:a,maxSize:c,minSize:u,onCollapse:d,onExpand:f,onResize:p,order:h,style:g,tagName:v="div",...b}){const w=l(_L);if(null===w)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:x,getPanelSize:C,getPanelStyle:S,groupId:E,isPanelCollapsed:P,reevaluatePanelConstraints:N,registerPanel:R,resizePanel:M,unregisterPanel:A}=w,I=WL(a),T=m({callbacks:{onCollapse:d,onExpand:f,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:c,minSize:u},id:I,idIsFromProps:void 0!==a,order:h});m({didLogMissingDefaultSizeWarning:!1}),jL((()=>{const{callbacks:e,constraints:t}=T.current,i={...t};T.current.id=I,T.current.idIsFromProps=void 0!==a,T.current.order=h,e.onCollapse=d,e.onExpand=f,e.onResize=p,t.collapsedSize=n,t.collapsible=r,t.defaultSize=o,t.maxSize=c,t.minSize=u,i.collapsedSize===t.collapsedSize&&i.collapsible===t.collapsible&&i.maxSize===t.maxSize&&i.minSize===t.minSize||N(T.current,i)})),jL((()=>{const e=T.current;return R(e),()=>{A(e)}}),[h,I,R,A]),k(i,(()=>({collapse:()=>{y(T.current)},expand:e=>{x(T.current,e)},getId:()=>I,getSize:()=>C(T.current),isCollapsed:()=>P(T.current),isExpanded:()=>!P(T.current),resize:e=>{M(T.current,e)}})),[y,x,C,P,I,M]);const O=S(T.current,o);return s(v,{...b,children:e,className:t,id:I,style:{...O,...g},[VL.groupId]:E,[VL.panel]:"",[VL.panelCollapsible]:r||void 0,[VL.panelId]:I,[VL.panelSize]:parseFloat(""+O.flexGrow).toFixed(1)})}const KL=u(((e,t)=>s(UL,{...e,forwardedRef:t})));UL.displayName="Panel",KL.displayName="forwardRef(Panel)";let GL=null,qL=-1,XL=null;function YL(e,t){var n,r;const o=function(e,t){if(t){const e=0!=(t&cD),n=0!=(t&uD);if(0!=(t&sD))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&lD))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);if(GL!==o){var i;if(GL=o,null===XL&&(XL=document.createElement("style"),document.head.appendChild(XL)),qL>=0)null===(i=XL.sheet)||void 0===i||i.removeRule(qL);qL=null!==(n=null===(r=XL.sheet)||void 0===r?void 0:r.insertRule(`*{cursor: ${o} !important;}`))&&void 0!==n?n:-1}}function ZL(e){return"keydown"===e.type}function QL(e){return e.type.startsWith("pointer")}function JL(e){return e.type.startsWith("mouse")}function eD(e){if(QL(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(JL(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const tD=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function nD(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=aD(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!tD.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function rD(e){let t=e.length;for(;t--;){const n=e[t];if(ND(n,"Missing node"),nD(n))return n}return null}function oD(e){return e&&Number(getComputedStyle(e).zIndex)||0}function iD(e){const t=[];for(;e;)t.push(e),e=aD(e);return t}function aD(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const sD=1,lD=2,cD=4,uD=8,dD="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let fD=[],pD=!1,hD=new Map,mD=new Map;const gD=new Set;function vD(e){const{target:t}=e,{x:n,y:r}=eD(e);pD=!0,xD({target:t,x:n,y:r}),ED(),fD.length>0&&(PD("down",e),e.preventDefault(),yD(t)||e.stopImmediatePropagation())}function bD(e){const{x:t,y:n}=eD(e);if(pD&&0===e.buttons&&(pD=!1,PD("up",e)),!pD){const{target:r}=e;xD({target:r,x:t,y:n})}PD("move",e),SD(),fD.length>0&&e.preventDefault()}function wD(e){const{target:t}=e,{x:n,y:r}=eD(e);mD.clear(),pD=!1,fD.length>0&&(e.preventDefault(),yD(t)||e.stopImmediatePropagation()),PD("up",e),xD({target:t,x:n,y:r}),SD(),ED()}function yD(e){let t=e;for(;t;){if(t.hasAttribute(VL.resizeHandle))return!0;t=t.parentElement}return!1}function xD({target:e,x:t,y:n}){fD.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),gD.forEach((e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=dD?i.coarse:i.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:iD(e),b:iD(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ND(r,"Stacking order can only be calculated for elements with a common ancestor");const o=oD(rD(n.a)),i=oD(rD(n.b));if(o===i){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let o=e.length;for(;o--;){const n=e[o];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(o-i)}(r,o)>0){let e=r,t=!1;for(;e&&!e.contains(o);){if(f=e.getBoundingClientRect(),p=a,f.x<p.x+p.width&&f.x+f.width>p.x&&f.y<p.y+p.height&&f.y+f.height>p.y){t=!0;break}e=e.parentElement}if(t)return}fD.push(e)}var f,p}))}function CD(e,t){mD.set(e,t)}function SD(){let e=!1,t=!1;fD.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;mD.forEach((e=>{n|=e})),e&&t?YL("intersection",n):e?YL("horizontal",n):t?YL("vertical",n):null!==XL&&(document.head.removeChild(XL),GL=null,XL=null,qL=-1)}let kD;function ED(){var e;null===(e=kD)||void 0===e||e.abort(),kD=new AbortController;const t={capture:!0,signal:kD.signal};gD.size&&(pD?(fD.length>0&&hD.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",wD,t),r.addEventListener("pointerleave",bD,t),r.addEventListener("pointermove",bD,t))})),hD.forEach(((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",wD,t),r.addEventListener("pointercancel",wD,t)}))):hD.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",vD,t),r.addEventListener("pointermove",bD,t))})))}function PD(e,t){gD.forEach((n=>{const{setResizeHandlerState:r}=n,o=fD.includes(n);r(e,o,t)}))}function ND(e,t){if(!e)throw console.error(t),Error(t)}function RD(e,t,n=zL){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function MD(e,t,n=zL){return 0===RD(e,t,n)}function AD(e,t,n){return 0===RD(e,t,n)}function ID({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ND(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(RD(n,s)<0)if(i){n=RD(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(zL))}function TD({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(AD(e,0))return t;const a=[...t],[s,l]=r;ND(null!=s,"Invalid first pivot index"),ND(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];ND(o,`Panel constraints not found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(ND(null!=n,`Previous layout not found for panel index ${r}`),AD(n,i)){const t=c-n;RD(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];ND(o,`No panel constraints found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(ND(null!=n,`Previous layout not found for panel index ${r}`),AD(n,c)){const t=n-i;RD(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let o=e<0?l:s,i=0;for(;;){const e=t[o];ND(null!=e,`Previous layout not found for panel index ${o}`);if(i+=ID({panelConstraints:n,panelIndex:o,size:100})-e,o+=r,o<0||o>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const o=Math.abs(e)-Math.abs(c),i=t[r];ND(null!=i,`Previous layout not found for panel index ${r}`);const s=ID({panelConstraints:n,panelIndex:r,size:i-o});if(!AD(i,s)&&(c+=i-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!AD(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];ND(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,u=ID({panelConstraints:n,panelIndex:r,size:i});if(a[r]=u,!AD(u,i)){let t=i-u;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];ND(null!=o,`Previous layout not found for panel index ${r}`);const i=ID({panelConstraints:n,panelIndex:r,size:o+t});if(AD(o,i)||(t-=i-o,a[r]=i),AD(t,0))break;e>0?r--:r++}}}const u=a.reduce(((e,t)=>t+e),0);return AD(u,100)?a:o}function OD({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];ND(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,o=l):(i+=c,a+=l)}));return{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-a),valueNow:e[s]}}function LD(e,t=document){return Array.from(t.querySelectorAll(`[${VL.resizeHandleId}][data-panel-group-id="${e}"]`))}function DD(e,t,n=document){const r=LD(e,n).findIndex((e=>e.getAttribute(VL.resizeHandleId)===t));return null!=r?r:null}function FD(e,t,n){const r=DD(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function _D(e,t=document){if(((n=t)instanceof HTMLElement||"object"==typeof n&&null!==n&&"tagName"in n&&"getAttribute"in n)&&t.dataset.panelGroupId==e)return t;var n;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function VD(e,t=document){const n=t.querySelector(`[${VL.resizeHandleId}="${e}"]`);return n||null}function zD({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:a}){m({didWarnAboutMissingResizeHandle:!1}),jL((()=>{if(!i)return;const e=LD(n,i);for(let t=0;t<o.length-1;t++){const{valueMax:n,valueMin:i,valueNow:a}=OD({layout:r,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=o[t];ND(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(i)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,o,i]),g((()=>{if(!i)return;const e=t.current;ND(e,"Eager values not found");const{panelDataArray:o}=e;ND(null!=_D(n,i),`No group found for id "${n}"`);const s=LD(n,i);ND(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute(VL.resizeHandleId);ND(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var o,i,a,s;const l=VD(t,r),c=LD(e,r),u=l?c.indexOf(l):-1;return[null!==(o=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,o,i);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=o.findIndex((e=>e.id===s));if(l>=0){const e=o[l];ND(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=TD({delta:AD(s,c)?d-c:c-s,initialLayout:r,panelConstraints:o.map((e=>e.constraints)),pivotIndices:FD(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[i,e,t,n,r,o,a])}function jD(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function HD(e,t){const n="horizontal"===e,{x:r,y:o}=eD(t);return n?r:o}function BD(e,t,n,r,o,i){if(ZL(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){const i="horizontal"===n,a=VD(t,o);ND(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute(VL.groupId);ND(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=HD(n,e),u=_D(s,o);ND(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}function $D(e,t,n){t.forEach(((t,r)=>{const o=e[r];ND(o,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,u),c&&(e||r)&&(!r||null!=u&&!MD(u,l)||MD(t,l)||r(),!e||null!=u&&MD(u,l)||!MD(t,l)||e())}}))}function WD(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function UD(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function KD(e){return`react-resizable-panels:${e}`}function GD(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function qD(e,t){try{const n=KD(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function XD(e,t,n,r,o){var i;const a=KD(e),s=GD(t),l=null!==(i=qD(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function YD({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!AD(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];ND(null!=t,`No layout data found for index ${e}`);const o=100/r*t;n[e]=o}let o=0;for(let e=0;e<t.length;e++){const r=n[e];ND(null!=r,`No layout data found for index ${e}`);const i=ID({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!AD(o,0))for(let e=0;e<t.length;e++){const r=n[e];ND(null!=r,`No layout data found for index ${e}`);const i=ID({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,AD(o,0)))break}return n}const ZD={getItem:e=>(UD(ZD),ZD.getItem(e)),setItem:(e,t)=>{UD(ZD),ZD.setItem(e,t)}},QD={};function JD({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:i=null,onLayout:l=null,keyboardResizeBy:u=null,storage:d=ZD,style:f,tagName:p="div",...h}){const b=WL(i),w=m(null),[y,x]=v(null),[C,S]=v([]),E=function(){const[e,t]=v(0);return c((()=>t((e=>e+1))),[])}(),P=m({}),N=m(new Map),R=m(0),M=m({autoSaveId:e,direction:r,dragState:y,id:b,keyboardResizeBy:u,onLayout:l,storage:d}),A=m({layout:C,panelDataArray:[],panelDataArrayChanged:!1});m({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k(o,(()=>({getId:()=>M.current.id,getLayout:()=>{const{layout:e}=A.current;return e},setLayout:e=>{const{onLayout:t}=M.current,{layout:n,panelDataArray:r}=A.current,o=YD({layout:e,panelConstraints:r.map((e=>e.constraints))});jD(n,o)||(S(o),A.current.layout=o,t&&t(o),$D(r,o,P.current))}})),[]),jL((()=>{M.current.autoSaveId=e,M.current.direction=r,M.current.dragState=y,M.current.id=b,M.current.onLayout=l,M.current.storage=d})),zD({committedValuesRef:M,eagerValuesRef:A,groupId:b,layout:C,panelDataArray:A.current.panelDataArray,setLayout:S,panelGroupElement:w.current}),g((()=>{const{panelDataArray:t}=A.current;if(e){if(0===C.length||C.length!==t.length)return;let n=QD[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(XD,100),QD[e]=n);const r=[...t],o=new Map(N.current);n(e,r,o,C,d)}}),[e,C,d]),g((()=>{}));const I=c((e=>{const{onLayout:t}=M.current,{layout:n,panelDataArray:r}=A.current;if(e.constraints.collapsible){const o=r.map((e=>e.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=nF(r,e,n);if(ND(null!=a,`Panel size not found for panel "${e.id}"`),!MD(a,i)){N.current.set(e.id,a);const l=TD({delta:tF(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});WD(n,l)||(S(l),A.current.layout=l,t&&t(l),$D(r,l,P.current))}}}),[]),T=c(((e,t)=>{const{onLayout:n}=M.current,{layout:r,panelDataArray:o}=A.current;if(e.constraints.collapsible){const i=o.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=nF(o,e,r),u=null!=t?t:l;if(MD(s,a)){const t=N.current.get(e.id),a=null!=t&&t>=u?t:u,l=TD({delta:tF(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});WD(r,l)||(S(l),A.current.layout=l,n&&n(l),$D(o,l,P.current))}}}),[]),O=c((e=>{const{layout:t,panelDataArray:n}=A.current,{panelSize:r}=nF(n,e,t);return ND(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),L=c(((e,t)=>{const{panelDataArray:n}=A.current,r=tF(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:i=3}){const a=n[o];let s;return s=null==a?null!=e?e.toPrecision(i):"1":1===r.length?"1":a.toPrecision(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:y,layout:C,panelData:n,panelIndex:r})}),[y,C]),D=c((e=>{const{layout:t,panelDataArray:n}=A.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=nF(n,e,t);return ND(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&MD(i,r)}),[]),F=c((e=>{const{layout:t,panelDataArray:n}=A.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=nF(n,e,t);return ND(null!=i,`Panel size not found for panel "${e.id}"`),!o||RD(i,r)>0}),[]),_=c((e=>{const{panelDataArray:t}=A.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),A.current.panelDataArrayChanged=!0,E()}),[E]);jL((()=>{if(A.current.panelDataArrayChanged){A.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=M.current,{layout:r,panelDataArray:o}=A.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=qD(e,n))&&void 0!==r?r:{})[GD(t)])&&void 0!==o?o:null}(e,o,n);t&&(N.current=new Map(Object.entries(t.expandToSizes)),i=t.layout)}null==i&&(i=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,o=100;for(let i=0;i<e.length;i++){const e=n[i];ND(e,`Panel constraints not found for index ${i}`);const{defaultSize:a}=e;null!=a&&(r++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){const a=n[i];ND(a,`Panel constraints not found for index ${i}`);const{defaultSize:s}=a;if(null!=s)continue;const l=o/(e.length-r);r++,t[i]=l,o-=l}return t}({panelDataArray:o}));const a=YD({layout:i,panelConstraints:o.map((e=>e.constraints))});jD(r,a)||(S(a),A.current.layout=a,t&&t(a),$D(o,a,P.current))}})),jL((()=>{const e=A.current;return()=>{e.layout=[]}}),[]);const V=c((e=>{let t=!1;const n=w.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=w.current;if(!r)return()=>null;const{direction:o,dragState:i,id:a,keyboardResizeBy:s,onLayout:l}=M.current,{layout:c,panelDataArray:u}=A.current,{initialLayout:d}=null!=i?i:{},f=FD(a,e,r);let p=BD(n,e,o,i,s,r);const h="horizontal"===o;h&&t&&(p=-p);const m=TD({delta:p,initialLayout:null!=d?d:c,panelConstraints:u.map((e=>e.constraints)),pivotIndices:f,prevLayout:c,trigger:ZL(n)?"keyboard":"mouse-or-touch"}),g=!WD(c,m);(QL(n)||JL(n))&&R.current!=p&&(R.current=p,CD(e,g||0===p?0:h?p<0?sD:lD:p<0?cD:uD)),g&&(S(m),A.current.layout=m,l&&l(m),$D(u,m,P.current))}}),[]),z=c(((e,t)=>{const{onLayout:n}=M.current,{layout:r,panelDataArray:o}=A.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=nF(o,e,r);ND(null!=a,`Panel size not found for panel "${e.id}"`);const l=TD({delta:tF(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});WD(r,l)||(S(l),A.current.layout=l,n&&n(l),$D(o,l,P.current))}),[]),j=c(((e,t)=>{const{layout:n,panelDataArray:r}=A.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=nF(r,e,n);null!=u&&(i&&s&&MD(u,o)?MD(o,a)||z(e,a):u<c?z(e,c):u>l&&z(e,l))}),[z]),H=c(((e,t)=>{const{direction:n}=M.current,{layout:r}=A.current;if(!w.current)return;const o=VD(e,w.current);ND(o,`Drag handle element not found for id "${e}"`);const i=HD(n,t);x({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),B=c((()=>{x(null)}),[]),$=c((e=>{const{panelDataArray:t}=A.current,n=tF(t,e);n>=0&&(t.splice(n,1),delete P.current[e.id],A.current.panelDataArrayChanged=!0,E())}),[E]),W=a((()=>({collapsePanel:I,direction:r,dragState:y,expandPanel:T,getPanelSize:O,getPanelStyle:L,groupId:b,isPanelCollapsed:D,isPanelExpanded:F,reevaluatePanelConstraints:j,registerPanel:_,registerResizeHandle:V,resizePanel:z,startDragging:H,stopDragging:B,unregisterPanel:$,panelGroupElement:w.current})),[I,y,r,T,O,L,b,D,F,j,_,V,z,H,B,$]),U={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return s(_L.Provider,{value:W},s(p,{...h,children:t,className:n,id:i,ref:w,style:{...U,...f},[VL.group]:"",[VL.groupDirection]:r,[VL.groupId]:b}))}const eF=u(((e,t)=>s(JD,{...e,forwardedRef:t})));function tF(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function nF(e,t,n){const r=tF(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function rF({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:i,onClick:a,onDragging:c,onFocus:u,onPointerDown:d,onPointerUp:f,style:p={},tabIndex:h=0,tagName:b="div",...w}){var y,x;const C=m(null),S=m({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});g((()=>{S.current.onClick=a,S.current.onDragging=c,S.current.onPointerDown=d,S.current.onPointerUp=f}));const k=l(_L);if(null===k)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:E,groupId:P,registerResizeHandle:N,startDragging:R,stopDragging:M,panelGroupElement:A}=k,I=WL(o),[T,O]=v("inactive"),[L,D]=v(!1),[F,_]=v(null),V=m({state:T});jL((()=>{V.current.state=T})),g((()=>{if(n)_(null);else{const e=N(I);_((()=>e))}}),[n,I,N]);const z=null!==(y=null==r?void 0:r.coarse)&&void 0!==y?y:15,j=null!==(x=null==r?void 0:r.fine)&&void 0!==x?x:5;g((()=>{if(n||null==F)return;const e=C.current;ND(e,"Element ref not attached");let t=!1;return function(e,t,n,r,o){var i;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=null!==(i=hD.get(a))&&void 0!==i?i:0;return hD.set(a,l+1),gD.add(s),ED(),function(){var t;mD.delete(e),gD.delete(s);const n=null!==(t=hD.get(a))&&void 0!==t?t:1;if(hD.set(a,n-1),ED(),1===n&&hD.delete(a),fD.includes(s)){const e=fD.indexOf(s);e>=0&&fD.splice(e,1),SD(),o("up",!0,null)}}}(I,e,E,{coarse:z,fine:j},((e,n,r)=>{if(n)switch(e){case"down":{O("drag"),t=!1,ND(r,'Expected event to be defined for "down" action'),R(I,r);const{onDragging:e,onPointerDown:n}=S.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=V.current;t=!0,"drag"!==e&&O("hover"),ND(r,'Expected event to be defined for "move" action'),F(r);break}case"up":{O("hover"),M();const{onClick:e,onDragging:n,onPointerUp:r}=S.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else O("inactive")}))}),[z,E,n,j,N,I,F,R,M]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){g((()=>{if(e||null==n||null==r)return;const o=VD(t,r);if(null==o)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=o.getAttribute(VL.groupId);ND(n,`No group element found for id "${n}"`);const i=LD(n,r),a=DD(n,t,r);ND(null!==a,`No resize element found for id "${t}"`),i[e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return o.addEventListener("keydown",i),()=>{o.removeEventListener("keydown",i)}}),[r,e,t,n])}({disabled:n,handleId:I,resizeHandler:F,panelGroupElement:A});return s(b,{...w,children:e,className:t,id:o,onBlur:()=>{D(!1),null==i||i()},onFocus:()=>{D(!0),null==u||u()},ref:C,role:"separator",style:{touchAction:"none",userSelect:"none",...p},tabIndex:h,[VL.groupDirection]:E,[VL.groupId]:P,[VL.resizeHandle]:"",[VL.resizeHandleActive]:"drag"===T?"pointer":L?"keyboard":void 0,[VL.resizeHandleEnabled]:!n,[VL.resizeHandleId]:I,[VL.resizeHandleState]:T})}JD.displayName="PanelGroup",eF.displayName="forwardRef(PanelGroup)",rF.displayName="PanelResizeHandle";const oF=({className:t="",...n})=>e(eF,{className:an("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...n}),iF=KL,aF=({withHandle:t,className:n="",...r})=>e(rF,{className:an("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e(Zp,{className:"h-2.5 w-2.5"})})}),sF=({withHandle:t,className:n="",...r})=>e(rF,{className:an("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e(Zp,{className:"h-2.5 w-2.5"})})});function lF({icon:n,label:r,id:o,isActive:i=!1,isEditing:a=!1,isDragging:s=!1,isAvailable:l=!0,isInChat:c=!1,onBadgeAction:u,onToggle:d,className:f,...p}){const h=a&&l,m="1"===o&&c;return t(zO.button,{onClick:e=>{if(m)return e.preventDefault(),void e.stopPropagation();!a&&d&&(e.preventDefault(),e.stopPropagation(),d())},className:an("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",i?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",h&&"cursor-move",m&&"cursor-not-allowed opacity-50 hover:shadow-sm",f),animate:{scale:s?1.1:1,boxShadow:s?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:s?1.1:m?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...p,children:[n&&e(n,{className:an("relative h-5 w-5 md:h-4 md:w-4",!r&&"mx-auto")}),e("span",{className:"relative hidden md:inline",children:r}),a&&!s&&e(zO.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),u?.()},children:e(l?oh:th,{className:"h-3 w-3"})})]})}function cF(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function uF(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),s=o.length;o=[...o,i];const l=n=>{const{scope:o,children:i,...l}=n,c=o?.[t]?.[s]||a,u=r.useMemo((()=>l),Object.values(l));return e(c.Provider,{value:u,children:i})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},dF(i,...n)]}function dF(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function fF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pF(...e){return t=>{let n=!1;const r=e.map((e=>{const r=fF(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():fF(e[t],null)}}}}function hF(...e){return r.useCallback(pF(...e),e)}function mF(t){const n=gF(t),o=r.forwardRef(((t,o)=>{const{children:i,...a}=t,s=r.Children.toArray(i),l=s.find(bF);if(l){const t=l.props.children,i=s.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(n,{...a,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return e(n,{...a,ref:o,children:i})}));return o.displayName=`${t}.Slot`,o}function gF(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?pF(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var vF=Symbol("radix.slottable");function bF(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===vF}var wF=r.createContext(void 0);var yF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const o=mF(`Primitive.${n}`),i=r.forwardRef(((t,r)=>{const{asChild:i,...a}=t,s=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...t,[n]:i}}),{});function xF(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}var CF,SF="dismissableLayer.update",kF="dismissableLayer.pointerDownOutside",EF="dismissableLayer.focusOutside",PF=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NF=r.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=r.useContext(PF),[f,p]=r.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=r.useState({}),g=hF(n,(e=>p(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),y=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=function(e,t=globalThis?.document){const n=xF(e),o=r.useRef(!1),i=r.useRef((()=>{}));return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let r=function(){AF(kF,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(a?.(e),l?.(e),e.defaultPrevented||c?.())}),h),k=function(e,t=globalThis?.document){const n=xF(e),o=r.useRef(!1);return r.useEffect((()=>{const e=e=>{if(e.target&&!o.current){AF(EF,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||c?.())}),h);return function(e,t=globalThis?.document){const n=xF(e);r.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{y===d.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),h),r.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(CF=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),MF(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=CF)}}),[f,h,o,d]),r.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),MF())}),[f,d]),r.useEffect((()=>{const e=()=>m({});return document.addEventListener(SF,e),()=>document.removeEventListener(SF,e)}),[]),e(yF.div,{...u,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:cF(t.onFocusCapture,k.onFocusCapture),onBlurCapture:cF(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:cF(t.onPointerDownCapture,S.onPointerDownCapture)})}));NF.displayName="DismissableLayer";var RF=r.forwardRef(((t,n)=>{const o=r.useContext(PF),i=r.useRef(null),a=hF(n,i);return r.useEffect((()=>{const e=i.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}}),[o.branches]),e(yF.div,{...t,ref:a})}));function MF(){const e=new CustomEvent(SF);document.dispatchEvent(e)}function AF(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&R.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}RF.displayName="DismissableLayerBranch";var IF=0;function TF(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var OF="focusScope.autoFocusOnMount",LF="focusScope.autoFocusOnUnmount",DF={bubbles:!1,cancelable:!0},FF=r.forwardRef(((t,n)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=t,[c,u]=r.useState(null),d=xF(a),f=xF(s),p=r.useRef(null),h=hF(n,(e=>u(e))),m=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>{if(i){let e=function(e){if(m.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:jF(p.current,{select:!0})},t=function(e){if(m.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||jF(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&jF(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[i,c,m.paused]),r.useEffect((()=>{if(c){HF.add(m);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(OF,DF);c.addEventListener(OF,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jF(r,{select:t}),document.activeElement!==n)return}((e=_F(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&jF(c))}return()=>{c.removeEventListener(OF,d),setTimeout((()=>{const e=new CustomEvent(LF,DF);c.addEventListener(LF,f),c.dispatchEvent(e),e.defaultPrevented||jF(t??document.body,{select:!0}),c.removeEventListener(LF,f),HF.remove(m)}),0)}}var e}),[c,d,f,m]);const g=r.useCallback((e=>{if(!o&&!i)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=_F(e),n=VF(t,e),r=VF(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&jF(i,{select:!0})):(e.preventDefault(),o&&jF(r,{select:!0})):n===t&&e.preventDefault()}}),[o,i,m.paused]);return e(yF.div,{tabIndex:-1,...l,ref:h,onKeyDown:g})}));function _F(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function VF(e,t){for(const n of e)if(!zF(n,{upTo:t}))return n}function zF(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function jF(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}FF.displayName="FocusScope";var HF=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=BF(e,t),e.unshift(t)},remove(t){e=BF(e,t),e[0]?.resume()}}}();function BF(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var $F=globalThis?.document?r.useLayoutEffect:()=>{},WF=r[" useId ".trim().toString()]||(()=>{}),UF=0;function KF(e){const[t,n]=r.useState(WF());return $F((()=>{n((e=>e??String(UF++)))}),[e]),t?`radix-${t}`:""}var GF=r.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e(yF.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e("polygon",{points:"0,0 30,0 15,10"})})}));GF.displayName="Arrow";var qF=GF;var XF="Popper",[YF,ZF]=uF(XF),[QF,JF]=YF(XF),e_=t=>{const{__scopePopper:n,children:o}=t,[i,a]=r.useState(null);return e(QF,{scope:n,anchor:i,onAnchorChange:a,children:o})};e_.displayName=XF;var t_="PopperAnchor",n_=r.forwardRef(((t,n)=>{const{__scopePopper:o,virtualRef:i,...a}=t,s=JF(t_,o),l=r.useRef(null),c=hF(n,l);return r.useEffect((()=>{s.onAnchorChange(i?.current||l.current)})),i?null:e(yF.div,{...a,ref:c})}));n_.displayName=t_;var r_="PopperContent",[o_,i_]=YF(r_),a_=r.forwardRef(((t,n)=>{const{__scopePopper:o,side:i="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=t,b=JF(r_,o),[w,y]=r.useState(null),x=hF(n,(e=>y(e))),[C,S]=r.useState(null),k=function(e){const[t,n]=r.useState(void 0);return $F((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(C),E=k?.width??0,P=k?.height??0,N=i+("center"!==s?"-"+s:""),R="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(d)?d:[d],A=M.length>0,I={padding:R,boundary:M.filter(u_),altBoundary:A},{refs:T,floatingStyles:O,placement:L,isPositioned:D,middlewareData:F}=ig({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>_l(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[sg({mainAxis:a+P,alignmentAxis:l}),u&&lg({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?cg():void 0,...I}),u&&ug({...I}),dg({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&pg({element:C,padding:c}),d_({arrowWidth:E,arrowHeight:P}),h&&fg({strategy:"referenceHidden",...I})]}),[_,V]=f_(L),z=xF(g);$F((()=>{D&&z?.()}),[D,z]);const j=F.arrow?.x,H=F.arrow?.y,B=0!==F.arrow?.centerOffset,[$,W]=r.useState();return $F((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:D?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e(o_,{scope:o,placedSide:_,onArrowChange:S,arrowX:j,arrowY:H,shouldHideArrow:B,children:e(yF.div,{"data-side":_,"data-align":V,...v,ref:x,style:{...v.style,animation:D?void 0:"none"}})})})}));a_.displayName=r_;var s_="PopperArrow",l_={top:"bottom",right:"left",bottom:"top",left:"right"},c_=r.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=i_(s_,r),a=l_[i.placedSide];return e("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:e(qF,{...o,ref:n,style:{...o.style,display:"block"}})})}));function u_(e){return null!==e}c_.displayName=s_;var d_=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=f_(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=i?u:`${d}px`,h=-s+"px"):"top"===l?(p=i?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function f_(e){const[t,n="center"]=e.split("-");return[t,n]}var p_=e_,h_=n_,m_=a_,g_=c_,v_=r.forwardRef(((t,n)=>{const{container:o,...i}=t,[a,s]=r.useState(!1);$F((()=>s(!0)),[]);const l=o||a&&globalThis?.document?.body;return l?M.createPortal(e(yF.div,{...i,ref:n}),l):null}));v_.displayName="Portal";var b_=r[" useInsertionEffect ".trim().toString()]||$F;function w_({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:o}){const[i,a,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return b_((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,o])}const u=r.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)}),[l,e,a,s]);return[c,u]}var y_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),x_=r.forwardRef(((t,n)=>e(yF.span,{...t,ref:n,style:{...y_,...t.style}})));x_.displayName="VisuallyHidden";var C_=Ld(),S_=function(){},k_=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:S_,onWheelCapture:S_,onTouchMoveCapture:S_}),i=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,y=e.gapMode,x=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,S=Td([n,t]),k=kd(kd({},x),i);return r.createElement(r.Fragment,null,d&&r.createElement(C,{sideCar:C_,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:y}),s?r.cloneElement(r.Children.only(l),kd(kd({},k),{ref:S})):r.createElement(w,kd({},k,{className:c,ref:S}),l))}));k_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},k_.classNames={fullWidth:Rd,zeroRight:Nd};var E_=!1;if("undefined"!=typeof window)try{var P_=Object.defineProperty({},"passive",{get:function(){return E_=!0,!0}});window.addEventListener("test",P_,P_),window.removeEventListener("test",P_,P_)}catch(e){E_=!1}var N_=!!E_&&{passive:!1},R_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},M_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),A_(e,r)){var o=I_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},A_=function(e,t){return"v"===e?function(e){return R_(e,"overflowY")}(t):function(e){return R_(e,"overflowX")}(t)},I_=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},T_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},O_=function(e){return[e.deltaX,e.deltaY]},L_=function(e){return e&&"current"in e?e.current:e},D_=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},F_=0,__=[];function V_(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var z_=Fd(C_,(function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(F_++)[0],a=r.useState(Bd)[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Pd([e.lockRef.current],(e.shards||[]).map(L_),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=T_(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=M_(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=M_(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var p=I_(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&A_(e,s)&&(d+=m,f+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c}(p,t,e,"h"===p?l:c)}),[]),c=r.useCallback((function(e){var n=e;if(__.length&&__[__.length-1]===a){var r="deltaY"in n?O_(n):T_(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(L_).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:V_(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=T_(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,O_(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,T_(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return __.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,N_),document.addEventListener("touchmove",c,N_),document.addEventListener("touchstart",d,N_),function(){__=__.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,N_),document.removeEventListener("touchmove",c,N_),document.removeEventListener("touchstart",d,N_)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(a,{styles:D_(i)}):null,h?r.createElement(Yd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)})),j_=r.forwardRef((function(e,t){return r.createElement(k_,kd({},e,{ref:t,sideCar:z_}))}));j_.classNames=k_.classNames;var H_=[" ","Enter","ArrowUp","ArrowDown"],B_=[" ","Enter"],$_="Select",[W_,U_,K_]=function(t){const n=t+"CollectionProvider",[r,i]=uF(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,i=o.useRef(null),s=o.useRef(new Map).current;return e(a,{scope:n,itemMap:s,collectionRef:i,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=mF(c),d=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=hF(n,s(c,r).collectionRef);return e(u,{ref:i,children:o})}));d.displayName=c;const f=t+"CollectionItemSlot",p="data-radix-collection-item",h=mF(f),m=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,l=o.useRef(null),c=hF(n,l),u=s(f,r);return o.useEffect((()=>(u.itemMap.set(l,{ref:l,...a}),()=>{u.itemMap.delete(l)}))),e(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:l,Slot:d,ItemSlot:m},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}($_),[G_,q_]=uF($_,[K_,ZF]),X_=ZF(),[Y_,Z_]=G_($_),[Q_,J_]=G_($_),eV=n=>{const{__scopeSelect:o,children:i,open:a,defaultOpen:s,onOpenChange:l,value:c,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:h,disabled:m,required:g,form:v}=n,b=X_(o),[w,y]=r.useState(null),[x,C]=r.useState(null),[S,k]=r.useState(!1),E=function(e){const t=r.useContext(wF);return e||t||"ltr"}(f),[P,N]=w_({prop:a,defaultProp:s??!1,onChange:l,caller:$_}),[R,M]=w_({prop:c,defaultProp:u,onChange:d,caller:$_}),A=r.useRef(null),I=!w||(v||!!w.closest("form")),[T,O]=r.useState(new Set),L=Array.from(T).map((e=>e.props.value)).join(";");return e(p_,{...b,children:t(Y_,{required:g,scope:o,trigger:w,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:KF(),value:R,onValueChange:M,open:P,onOpenChange:N,dir:E,triggerPointerDownPosRef:A,disabled:m,children:[e(W_.Provider,{scope:o,children:e(Q_,{scope:n.__scopeSelect,onNativeOptionAdd:r.useCallback((e=>{O((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:r.useCallback((e=>{O((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:i})}),I?t(BV,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:h,value:R,onChange:e=>M(e.target.value),disabled:m,form:v,children:[void 0===R?e("option",{value:""}):null,Array.from(T)]},L):null]})})};eV.displayName=$_;var tV="SelectTrigger",nV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,disabled:i=!1,...a}=t,s=X_(o),l=Z_(tV,o),c=l.disabled||i,u=hF(n,l.onTriggerChange),d=U_(o),f=r.useRef("touch"),[p,h,m]=WV((e=>{const t=d().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=UV(t,e,n);void 0!==r&&l.onValueChange(r.value)})),g=e=>{c||(l.onOpenChange(!0),m()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return e(h_,{asChild:!0,...s,children:e(yF.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":$V(l.value)?"":void 0,...a,ref:u,onClick:cF(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)})),onPointerDown:cF(a.onPointerDown,(e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())})),onKeyDown:cF(a.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||H_.includes(e.key)&&(g(),e.preventDefault())}))})})}));nV.displayName=tV;var rV="SelectValue",oV=r.forwardRef(((t,r)=>{const{__scopeSelect:o,className:i,style:a,children:s,placeholder:l="",...c}=t,u=Z_(rV,o),{onValueNodeHasChildrenChange:d}=u,f=void 0!==s,p=hF(r,u.onValueNodeChange);return $F((()=>{d(f)}),[d,f]),e(yF.span,{...c,ref:p,style:{pointerEvents:"none"},children:$V(u.value)?e(n,{children:l}):s})}));oV.displayName=rV;var iV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e(yF.span,{"aria-hidden":!0,...i,ref:n,children:o||"▼"})}));iV.displayName="SelectIcon";var aV=t=>e(v_,{asChild:!0,...t});aV.displayName="SelectPortal";var sV="SelectContent",lV=r.forwardRef(((t,n)=>{const o=Z_(sV,t.__scopeSelect),[i,a]=r.useState();if($F((()=>{a(new DocumentFragment)}),[]),!o.open){const n=i;return n?R.createPortal(e(uV,{scope:t.__scopeSelect,children:e(W_.Slot,{scope:t.__scopeSelect,children:e("div",{children:t.children})})}),n):null}return e(pV,{...t,ref:n})}));lV.displayName=sV;var cV=10,[uV,dV]=G_(sV),fV=mF("SelectContent.RemoveScroll"),pV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:v,avoidCollisions:b,...w}=t,y=Z_(sV,o),[x,C]=r.useState(null),[S,k]=r.useState(null),E=hF(n,(e=>C(e))),[P,N]=r.useState(null),[R,M]=r.useState(null),A=U_(o),[I,T]=r.useState(!1),O=r.useRef(!1);r.useEffect((()=>{if(x)return wf(x)}),[x]),r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??TF()),document.body.insertAdjacentElement("beforeend",e[1]??TF()),IF++,()=>{1===IF&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),IF--}}),[]);const L=r.useCallback((e=>{const[t,...n]=A().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==o)return}}),[A,S]),D=r.useCallback((()=>L([P,x])),[L,P,x]);r.useEffect((()=>{I&&D()}),[I,D]);const{onOpenChange:F,triggerPointerDownPosRef:_}=y;r.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(_.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(_.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),_.current=null};return null!==_.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,F,_]),r.useEffect((()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[F]);const[V,z]=WV((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=UV(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=r.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&(N(e),r&&(O.current=!0))}),[y.value]),H=r.useCallback((()=>x?.focus()),[x]),B=r.useCallback(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&M(e)}),[y.value]),$="popper"===i?mV:hV,W=$===mV?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:v,avoidCollisions:b}:{};return e(uV,{scope:o,content:x,viewport:S,onViewportChange:k,itemRefCallback:j,selectedItem:P,onItemLeave:H,itemTextRefCallback:B,focusSelectedItem:D,selectedItemText:R,position:i,isPositioned:I,searchRef:V,children:e(j_,{as:fV,allowPinchZoom:!0,children:e(FF,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:cF(a,(e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:e(NF,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:e($,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...w,...W,onPlaced:()=>T(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:cF(w.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>L(t))),e.preventDefault()}}))})})})})})}));pV.displayName="SelectContentImpl";var hV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,onPlaced:i,...a}=t,s=Z_(sV,o),l=dV(sV,o),[c,u]=r.useState(null),[d,f]=r.useState(null),p=hF(n,(e=>f(e))),h=U_(o),m=r.useRef(!1),g=r.useRef(!0),{viewport:v,selectedItem:b,selectedItemText:w,focusSelectedItem:y}=l,x=r.useCallback((()=>{if(s.trigger&&s.valueNode&&c&&d&&v&&b&&w){const e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-cV,d=MC(i,[cV,Math.max(cV,u-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-cV,d=MC(i,[cV,Math.max(cV,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const o=h(),a=window.innerHeight-2*cV,l=v.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),y=f+p+l+parseInt(u.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),C=window.getComputedStyle(v),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),E=e.top+e.height/2-cV,P=a-E,N=b.offsetHeight/2,R=f+p+(b.offsetTop+N),M=y-R;if(R<=E){const e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-v.offsetTop-v.offsetHeight,n=R+Math.max(P,N+(e?k:0)+t+g);c.style.height=n+"px"}else{const e=o.length>0&&b===o[0].ref.current;c.style.top="0px";const t=Math.max(E,f+v.offsetTop+(e?S:0)+N)+M;c.style.height=t+"px",v.scrollTop=R-E+v.offsetTop}c.style.margin=`${cV}px 0`,c.style.minHeight=x+"px",c.style.maxHeight=a+"px",i?.(),requestAnimationFrame((()=>m.current=!0))}}),[h,s.trigger,s.valueNode,c,d,v,b,w,s.dir,i]);$F((()=>x()),[x]);const[C,S]=r.useState();$F((()=>{d&&S(window.getComputedStyle(d).zIndex)}),[d]);const k=r.useCallback((e=>{e&&!0===g.current&&(x(),y?.(),g.current=!1)}),[x,y]);return e(gV,{scope:o,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:e("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e(yF.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));hV.displayName="SelectItemAlignedPosition";var mV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=cV,...a}=t,s=X_(r);return e(m_,{...s,...a,ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));mV.displayName="SelectPopperPosition";var[gV,vV]=G_(sV,{}),bV="SelectViewport",wV=r.forwardRef(((o,i)=>{const{__scopeSelect:a,nonce:s,...l}=o,c=dV(bV,a),u=vV(bV,a),d=hF(i,c.onViewportChange),f=r.useRef(0);return t(n,{children:[e("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),e(W_.Slot,{scope:a,children:e(yF.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:cF(l.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if(r?.current&&n){const e=Math.abs(f.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*cV,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop}))})})]})}));wV.displayName=bV;var yV="SelectGroup",[xV,CV]=G_(yV),SV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=KF();return e(xV,{scope:r,id:i,children:e(yF.div,{role:"group","aria-labelledby":i,...o,ref:n})})}));SV.displayName=yV;var kV="SelectLabel",EV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=CV(kV,r);return e(yF.div,{id:i.id,...o,ref:n})}));EV.displayName=kV;var PV="SelectItem",[NV,RV]=G_(PV),MV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,value:i,disabled:a=!1,textValue:s,...l}=t,c=Z_(PV,o),u=dV(PV,o),d=c.value===i,[f,p]=r.useState(s??""),[h,m]=r.useState(!1),g=hF(n,(e=>u.itemRefCallback?.(e,i,a))),v=KF(),b=r.useRef("touch"),w=()=>{a||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e(NV,{scope:o,value:i,disabled:a,textId:v,isSelected:d,onItemTextChange:r.useCallback((e=>{p((t=>t||(e?.textContent??"").trim()))}),[]),children:e(W_.ItemSlot,{scope:o,value:i,disabled:a,textValue:f,children:e(yF.div,{role:"option","aria-labelledby":v,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:g,onFocus:cF(l.onFocus,(()=>m(!0))),onBlur:cF(l.onBlur,(()=>m(!1))),onClick:cF(l.onClick,(()=>{"mouse"!==b.current&&w()})),onPointerUp:cF(l.onPointerUp,(()=>{"mouse"===b.current&&w()})),onPointerDown:cF(l.onPointerDown,(e=>{b.current=e.pointerType})),onPointerMove:cF(l.onPointerMove,(e=>{b.current=e.pointerType,a?u.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:cF(l.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()})),onKeyDown:cF(l.onKeyDown,(e=>{""!==u.searchRef?.current&&" "===e.key||(B_.includes(e.key)&&w()," "===e.key&&e.preventDefault())}))})})})}));MV.displayName=PV;var AV="SelectItemText",IV=r.forwardRef(((o,i)=>{const{__scopeSelect:a,className:s,style:l,...c}=o,u=Z_(AV,a),d=dV(AV,a),f=RV(AV,a),p=J_(AV,a),[h,m]=r.useState(null),g=hF(i,(e=>m(e)),f.onItemTextChange,(e=>d.itemTextRefCallback?.(e,f.value,f.disabled))),v=h?.textContent,b=r.useMemo((()=>e("option",{value:f.value,disabled:f.disabled,children:v},f.value)),[f.disabled,f.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=p;return $F((()=>(w(b),()=>y(b))),[w,y,b]),t(n,{children:[e(yF.span,{id:f.textId,...c,ref:g}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?R.createPortal(c.children,u.valueNode):null]})}));IV.displayName=AV;var TV="SelectItemIndicator",OV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return RV(TV,r).isSelected?e(yF.span,{"aria-hidden":!0,...o,ref:n}):null}));OV.displayName=TV;var LV="SelectScrollUpButton",DV=r.forwardRef(((t,n)=>{const o=dV(LV,t.__scopeSelect),i=vV(LV,t.__scopeSelect),[a,s]=r.useState(!1),l=hF(n,i.onScrollButtonChange);return $F((()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[o.viewport,o.isPositioned]),a?e(VV,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));DV.displayName=LV;var FV="SelectScrollDownButton",_V=r.forwardRef(((t,n)=>{const o=dV(FV,t.__scopeSelect),i=vV(FV,t.__scopeSelect),[a,s]=r.useState(!1),l=hF(n,i.onScrollButtonChange);return $F((()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[o.viewport,o.isPositioned]),a?e(VV,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));_V.displayName=FV;var VV=r.forwardRef(((t,n)=>{const{__scopeSelect:o,onAutoScroll:i,...a}=t,s=dV("SelectScrollButton",o),l=r.useRef(null),c=U_(o),u=r.useCallback((()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[]);return r.useEffect((()=>()=>u()),[u]),$F((()=>{const e=c().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[c]),e(yF.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:cF(a.onPointerDown,(()=>{null===l.current&&(l.current=window.setInterval(i,50))})),onPointerMove:cF(a.onPointerMove,(()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(i,50))})),onPointerLeave:cF(a.onPointerLeave,(()=>{u()}))})})),zV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return e(yF.div,{"aria-hidden":!0,...o,ref:n})}));zV.displayName="SelectSeparator";var jV="SelectArrow",HV=r.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=X_(r),a=Z_(jV,r),s=dV(jV,r);return a.open&&"popper"===s.position?e(g_,{...i,...o,ref:n}):null}));HV.displayName=jV;var BV=r.forwardRef((({__scopeSelect:t,value:n,...o},i)=>{const a=r.useRef(null),s=hF(i,a),l=function(e){const t=r.useRef({value:e,previous:e});return r.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return r.useEffect((()=>{const e=a.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[l,n]),e(yF.select,{...o,style:{...y_,...o.style},ref:s,defaultValue:n})}));function $V(e){return""===e||void 0===e}function WV(e){const t=xF(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback((e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(r)}),[t]),a=r.useCallback((()=>{n.current="",window.clearTimeout(o.current)}),[]);return r.useEffect((()=>()=>window.clearTimeout(o.current)),[]),[n,i,a]}function UV(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}BV.displayName="SelectBubbleInput";var KV=eV,GV=nV,qV=iV,XV=aV,YV=lV,ZV=wV,QV=EV,JV=MV,ez=IV,tz=OV,nz=DV,rz=_V,oz=zV;const iz=oV,az=r.forwardRef((({className:n="",children:r,...o},i)=>t(GV,{ref:i,className:an("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",n),...o,children:[r,e(qV,{asChild:!0,children:e(st,{className:"h-4 w-4 opacity-50"})})]})));az.displayName=GV.displayName;const sz=r.forwardRef((({className:t="",...n},r)=>e(nz,{ref:r,className:an("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e(pt,{})})));sz.displayName=nz.displayName;const lz=r.forwardRef((({className:t="",...n},r)=>e(rz,{ref:r,className:an("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e(dt,{})})));lz.displayName=rz.displayName;const cz=r.forwardRef((({className:n="",children:r,position:o="popper",...i},a)=>e(XV,{children:t(YV,{ref:a,className:an("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md 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 dark:border-gray-600","popper"===o?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",n),position:o,...i,children:[e(sz,{}),e(ZV,{className:an("p-1","popper"===o?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e(lz,{})]})})));cz.displayName=YV.displayName;const uz=r.forwardRef((({className:t="",...n},r)=>e(QV,{ref:r,className:an("px-2 py-1.5 text-sm font-semibold",t),...n})));uz.displayName=QV.displayName;const dz=r.forwardRef((({className:n="",children:r,...o},i)=>t(JV,{ref:i,className:an("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",n),...o,children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(tz,{children:e(ct,{className:"h-4 w-4"})})}),e(ez,{children:r})]})));dz.displayName=JV.displayName;const fz=r.forwardRef((({className:t="",...n},r)=>e(oz,{ref:r,className:an("-mx-1 my-1 h-px bg-muted",t),...n})));function pz({selectedValue:n,displayValue:r,items:o,setValue:i,ariaLabel:a,searchPlaceholder:s,selectPlaceholder:l,isCollapsed:c,SelectIcon:u}){const d=(o??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:f,setOpen:p,setSearchValue:h,matches:m}=ey({value:n,options:d});return e(KV,{value:n,onValueChange:i,open:f,onOpenChange:()=>{!0!==f?setTimeout((()=>{p(!f)}),75):p(!1)},children:t(ju,{open:f,setOpen:p,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{E((()=>{h(e)}))},children:[e(az,{"aria-label":a,className:an("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",c?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:t(iz,{placeholder:l,children:[e("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:u||e(dt,{})}),e("span",{className:an("ml-2",c?"hidden":""),style:{userSelect:"none"},children:n?r??n:l&&l})]})}),e(XV,{children:t(YV,{role:"dialog","aria-label":a+"s",position:"popper",className:an("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 shadow-md 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 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[t(ZV,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[t("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-2 px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e(nh,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e(zu,{autoSelect:!0,placeholder:s,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e($u,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e(Yu,{className:"overflow-y-auto p-1 py-2",children:m.map((({label:n,value:r,icon:o})=>e(JV,{value:`${r??""}`,asChild:!0,children:t(Ku,{className:an("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${r??""}`),p(!1)},children:[e("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e(tz,{children:e(ct,{className:"h-4 w-4"})})}),e(ez,{children:t("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e("div",{className:"assistant-item overflow-hidden rounded-full",children:o&&o}),n]})})]})},r)))})]}),e(lz,{className:"absolute bottom-0 left-0 right-0"})]})})]})})}fz.displayName=oz.displayName;const hz=e=>"object"==typeof e&&"divider"in e,mz=e=>"object"==typeof e&&"value"in e&&"label"in e,gz=({value:n,label:r="",onChange:o,options:i,className:a="",sizeClasses:s,testId:l="dropdown-menu",icon:c,iconOnly:u=!1,renderValue:d,ariaLabel:f,portal:p=!0})=>{const h=Lc({value:n,setValue:e=>{o(e)}}),m=e=>{if(null!=e&&""!==e)return i.filter((e=>!hz(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>mz(t)&&t.value===e))};return t("div",{className:an("relative",a),children:[t(Wc,{store:h,className:an("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",u?"h-full w-10":"w-fit gap-2",a),"data-testid":l,"aria-label":f,children:[t("div",{className:"flex w-full items-center gap-2",children:[c,!u&&t("span",{className:"block truncate",children:[r,(()=>{const e=m(n);return e&&d?d(e):(e=>{if(null==e||""===e)return"";const t=m(e);return t?t.label:e})(n)})()]})]}),!u&&e(Fc,{})]}),e(su,{portal:p,store:h,className:an("popover-ui",s,a,"max-h-[80vh] overflow-y-auto"),children:i.map(((r,o)=>{if(hz(r))return e("div",{className:"my-1 border-t border-border-heavy"},`divider-${o}`);const i="string"==typeof r?{value:r,label:r}:r;return mz(i)?e(tu,{value:String(i.value),className:"select-item","data-theme":i.value,children:t("div",{className:"flex w-full items-center gap-2",children:[null!=i.icon&&e("span",{children:i.icon}),e("span",{className:"block truncate",children:i.label}),n===i.value&&e("span",{className:"ml-auto pl-2",children:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${o}`):null}))})]})};var vz=Oz(),bz=e=>Mz(e,vz),wz=Oz();bz.write=e=>Mz(e,wz);var yz=Oz();bz.onStart=e=>Mz(e,yz);var xz=Oz();bz.onFrame=e=>Mz(e,xz);var Cz=Oz();bz.onFinish=e=>Mz(e,Cz);var Sz=[];bz.setTimeout=(e,t)=>{const n=bz.now()+t,r=()=>{const e=Sz.findIndex((e=>e.cancel==r));~e&&Sz.splice(e,1),Nz-=~e?1:0},o={time:n,handler:e,cancel:r};return Sz.splice(kz(n),0,o),Nz+=1,Az(),o};var kz=e=>~(~Sz.findIndex((t=>t.time>e))||~Sz.length);bz.cancel=e=>{yz.delete(e),xz.delete(e),Cz.delete(e),vz.delete(e),wz.delete(e)},bz.sync=e=>{Rz=!0,bz.batchedUpdates(e),Rz=!1},bz.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,bz.onStart(n)}return r.handler=e,r.cancel=()=>{yz.delete(n),t=null},r};var Ez="undefined"!=typeof window?window.requestAnimationFrame:()=>{};bz.use=e=>Ez=e,bz.now="undefined"!=typeof performance?()=>performance.now():Date.now,bz.batchedUpdates=e=>e(),bz.catch=console.error,bz.frameLoop="always",bz.advance=()=>{"demand"!==bz.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Tz()};var Pz=-1,Nz=0,Rz=!1;function Mz(e,t){Rz?(t.delete(e),e(0)):(t.add(e),Az())}function Az(){Pz<0&&(Pz=0,"demand"!==bz.frameLoop&&Ez(Iz))}function Iz(){~Pz&&(Ez(Iz),bz.batchedUpdates(Tz))}function Tz(){const e=Pz;Pz=bz.now();const t=kz(Pz);t&&(Lz(Sz.splice(0,t),(e=>e.handler())),Nz-=t),Nz?(yz.flush(),vz.flush(e?Math.min(64,Pz-e):16.667),xz.flush(),wz.flush(),Cz.flush()):Pz=-1}function Oz(){let e=new Set,t=e;return{add(n){Nz+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Nz-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Nz-=t.size,Lz(t,(t=>t(n)&&e.add(t))),Nz+=e.size,t=e)}}}function Lz(e,t){e.forEach((e=>{try{t(e)}catch(e){bz.catch(e)}}))}var Dz=Object.defineProperty,Fz={};function _z(){}((e,t)=>{for(var n in t)Dz(e,n,{get:t[n],enumerable:!0})})(Fz,{assign:()=>Zz,colors:()=>qz,createStringInterpolator:()=>Wz,skipAnimation:()=>Xz,to:()=>Uz,willAdvance:()=>Yz});var Vz={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function zz(e,t){if(Vz.arr(e)){if(!Vz.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var jz=(e,t)=>e.forEach(t);function Hz(e,t,n){if(Vz.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Bz=e=>Vz.und(e)?[]:Vz.arr(e)?e:[e];function $z(e,t){if(e.size){const n=Array.from(e);e.clear(),jz(n,t)}}var Wz,Uz,Kz=(e,...t)=>$z(e,(e=>e(...t))),Gz=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),qz=null,Xz=!1,Yz=_z,Zz=e=>{e.to&&(Uz=e.to),e.now&&(bz.now=e.now),void 0!==e.colors&&(qz=e.colors),null!=e.skipAnimation&&(Xz=e.skipAnimation),e.createStringInterpolator&&(Wz=e.createStringInterpolator),e.requestAnimationFrame&&bz.use(e.requestAnimationFrame),e.batchedUpdates&&(bz.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Yz=e.willAdvance),e.frameLoop&&(bz.frameLoop=e.frameLoop)},Qz=new Set,Jz=[],ej=[],tj=0,nj={get idle(){return!Qz.size&&!Jz.length},start(e){tj>e.priority?(Qz.add(e),bz.onStart(rj)):(oj(e),bz(aj))},advance:aj,sort(e){if(tj)bz.onFrame((()=>nj.sort(e)));else{const t=Jz.indexOf(e);~t&&(Jz.splice(t,1),ij(e))}},clear(){Jz=[],Qz.clear()}};function rj(){Qz.forEach(oj),Qz.clear(),bz(aj)}function oj(e){Jz.includes(e)||ij(e)}function ij(e){Jz.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Jz,(t=>t.priority>e.priority)),0,e)}function aj(e){const t=ej;for(let n=0;n<Jz.length;n++){const r=Jz[n];tj=r.priority,r.idle||(Yz(r),r.advance(e),r.idle||t.push(r))}return tj=0,(ej=Jz).length=0,(Jz=t).length>0}var sj="[-+]?\\d*\\.?\\d+",lj=sj+"%";function cj(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var uj=new RegExp("rgb"+cj(sj,sj,sj)),dj=new RegExp("rgba"+cj(sj,sj,sj,sj)),fj=new RegExp("hsl"+cj(sj,lj,lj)),pj=new RegExp("hsla"+cj(sj,lj,lj,sj)),hj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gj=/^#([0-9a-fA-F]{6})$/,vj=/^#([0-9a-fA-F]{8})$/;function bj(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wj(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=bj(o,r,e+1/3),a=bj(o,r,e),s=bj(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function yj(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function xj(e){return(parseFloat(e)%360+360)%360/360}function Cj(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Sj(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function kj(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gj.exec(e))?parseInt(t[1]+"ff",16)>>>0:qz&&void 0!==qz[e]?qz[e]:(t=uj.exec(e))?(yj(t[1])<<24|yj(t[2])<<16|yj(t[3])<<8|255)>>>0:(t=dj.exec(e))?(yj(t[1])<<24|yj(t[2])<<16|yj(t[3])<<8|Cj(t[4]))>>>0:(t=hj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=vj.exec(e))?parseInt(t[1],16)>>>0:(t=mj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=fj.exec(e))?(255|wj(xj(t[1]),Sj(t[2]),Sj(t[3])))>>>0:(t=pj.exec(e))?(wj(xj(t[1]),Sj(t[2]),Sj(t[3]))|Cj(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ej=(e,t,n)=>{if(Vz.fun(e))return e;if(Vz.arr(e))return Ej({range:e,output:t,extrapolate:n});if(Vz.str(e.output[0]))return Wz(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var Pj=Symbol.for("FluidValue.get"),Nj=Symbol.for("FluidValue.observers"),Rj=e=>Boolean(e&&e[Pj]),Mj=e=>e&&e[Pj]?e[Pj]():e,Aj=e=>e[Nj]||null;function Ij(e,t){const n=e[Nj];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Tj=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Oj(this,e)}},Oj=(e,t)=>_j(e,Pj,t);function Lj(e,t){if(e[Pj]){let n=e[Nj];n||_j(e,Nj,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Dj(e,t){const n=e[Nj];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Nj]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Fj,_j=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Vj=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,zj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,jj=new RegExp(`(${Vj.source})(%|[a-z]+)`,"i"),Hj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Bj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,$j=e=>{const[t,n]=Wj(e);if(!t||Gz())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Bj.test(n)?$j(n):n||e},Wj=e=>{const t=Bj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Uj=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Kj=e=>{Fj||(Fj=qz?new RegExp(`(${Object.keys(qz).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Mj(e).replace(Bj,$j).replace(zj,kj).replace(Fj,kj))),n=t.map((e=>e.match(Vj).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>Ej({...e,output:t})));return e=>{const n=!jj.test(t[0])&&t.find((e=>jj.test(e)))?.replace(Vj,"");let r=0;return t[0].replace(Vj,(()=>`${o[r++](e)}${n||""}`)).replace(Hj,Uj)}},Gj="react-spring: ",qj=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Gj}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Xj=qj(console.warn);var Yj=qj(console.warn);function Zj(e){return Vz.str(e)&&("#"==e[0]||/\d/.test(e)||!Gz()&&Bj.test(e)||e in(qz||{}))}var Qj=Gz()?g:b,Jj=()=>{const e=m(!1);return Qj((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function eH(){const e=v()[1],t=Jj();return()=>{t.current&&e(Math.random())}}var tH=e=>g(e,nH),nH=[];function rH(e){const t=m();return g((()=>{t.current=e})),t.current}var oH=Symbol.for("Animated:node"),iH=e=>e&&e[oH],aH=(e,t)=>{return n=e,r=oH,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},sH=e=>e&&e[oH]&&e[oH].getPayload(),lH=class{constructor(){aH(this,this)}getPayload(){return this.payload||[]}},cH=class extends lH{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Vz.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new cH(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Vz.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Vz.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},uH=class extends cH{constructor(e){super(0),this._string=null,this._toString=Ej({output:[e,e]})}static create(e){return new uH(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Vz.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ej({output:[this.getValue(),e]})),this._value=0,super.reset()}},dH={dependencies:null},fH=class extends lH{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Hz(this.source,((n,r)=>{var o;(o=n)&&o[oH]===o?t[r]=n.getValue(e):Rj(n)?t[r]=Mj(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&jz(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Hz(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){dH.dependencies&&Rj(e)&&dH.dependencies.add(e);const t=sH(e);t&&jz(t,(e=>this.add(e)))}},pH=class extends fH{constructor(e){super(e)}static create(e){return new pH(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(hH)),!0)}};function hH(e){return(Zj(e)?uH:cH).create(e)}function mH(e){const t=iH(e);return t?t.constructor:Vz.arr(e)?pH:Zj(e)?uH:cH}var gH=(e,t)=>{const n=!Vz.fun(e)||e.prototype&&e.prototype.isReactComponent;return u(((o,i)=>{const a=m(null),s=n&&c((e=>{a.current=function(e,t){e&&(Vz.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,u]=function(e,t){const n=new Set;dH.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new fH(e),dH.dependencies=null,[e,n]}(o,t),d=eH(),f=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},p=new vH(f,u),h=m();Qj((()=>(h.current=p,jz(u,(e=>Lj(e,p))),()=>{h.current&&(jz(h.current.deps,(e=>Dj(e,h.current))),bz.cancel(h.current.update))}))),g(f,[]),tH((()=>()=>{const e=h.current;jz(e.deps,(t=>Dj(t,e)))}));const v=t.getComponentProps(l.getValue());return r.createElement(e,{...v,ref:s})}))},vH=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&bz.write(this.update)}};var bH=Symbol.for("AnimatedComponent"),wH=e=>Vz.str(e)?e:e&&Vz.str(e.displayName)?e.displayName:Vz.fun(e)&&e.name||null;function yH(e,...t){return Vz.fun(e)?e(...t):e}var xH=(e,t)=>!0===e||!!(t&&e&&(Vz.fun(e)?e(t):Bz(e).includes(t))),CH=(e,t)=>Vz.obj(e)?t&&e[t]:e,SH=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,kH=e=>e,EH=(e,t=kH)=>{let n=PH;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);Vz.und(n)||(r[o]=n)}return r},PH=["config","onProps","onStart","onChange","onPause","onResume","onRest"],NH={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function RH(e){const t=function(e){const t={};let n=0;if(Hz(e,((e,r)=>{NH[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Hz(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function MH(e){return e=Mj(e),Vz.arr(e)?e.map(MH):Zj(e)?Fz.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function AH(e){return Vz.fun(e)||Vz.arr(e)&&Vz.obj(e[0])}var IH={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},TH=class{constructor(){this.velocity=0,Object.assign(this,IH)}};function OH(e,t){if(Vz.und(t.decay)){const n=!Vz.und(t.tension)||!Vz.und(t.friction);!n&&Vz.und(t.frequency)&&Vz.und(t.damping)&&Vz.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var LH=[],DH=class{constructor(){this.changed=!1,this.values=LH,this.toValues=null,this.fromValues=LH,this.config=new TH,this.immediate=!1}};function FH(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=xH(n.cancel??r?.cancel,t);if(u)p();else{Vz.und(n.pause)||(o.paused=xH(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||xH(e,t)),l=yH(n.delay||0,t),e?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(c),c.cancel(),l=c.time-bz.now()}function f(){l>0&&!Fz.skipAnimation?(o.delayed=!0,c=bz.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var _H=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?jH(e.get()):t.every((e=>e.noop))?VH(e.get()):zH(e.get(),t.every((e=>e.finished))),VH=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),zH=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),jH=e=>({value:e,cancelled:!0,finished:!1});function HH(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=EH(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const f=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=o<=(n.cancelId||0)&&jH(r)||o!==n.asyncId&&zH(r,!1);if(t)throw e.result=t,d(e),e},h=(e,t)=>{const i=new $H,a=new WH;return(async()=>{if(Fz.skipAnimation)throw BH(n),a.result=zH(r,!1),d(a),a;p(i);const s=Vz.obj(e)?{...e}:{...t,to:e};s.parentId=o,Hz(c,((e,t)=>{Vz.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(Fz.skipAnimation)return BH(n),zH(r,!1);try{let t;t=Vz.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(u),f]),m=zH(r.get(),!0,!1)}catch(e){if(e instanceof $H)m=e.result;else{if(!(e instanceof WH))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Vz.fun(a)&&bz.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function BH(e,t){$z(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $H=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},WH=class extends Error{constructor(){super("SkipAnimationSignal")}},UH=e=>e instanceof GH,KH=1,GH=class extends Tj{constructor(){super(...arguments),this.id=KH++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=iH(this);return e&&e.getValue()}to(...e){return Fz.to(this,e)}interpolate(...e){return Xj(`${Gj}The "interpolate" function is deprecated in v9 (use "to" instead)`),Fz.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ij(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nj.sort(this),Ij(this,{type:"priority",parent:this,priority:e})}},qH=Symbol.for("SpringPhase"),XH=e=>(1&e[qH])>0,YH=e=>(2&e[qH])>0,ZH=e=>(4&e[qH])>0,QH=(e,t)=>t?e[qH]|=3:e[qH]&=-3,JH=(e,t)=>t?e[qH]|=4:e[qH]&=-5,eB=class extends GH{constructor(e,t){if(super(),this.animation=new DH,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Vz.und(e)||!Vz.und(t)){const n=Vz.obj(e)?{...e}:{...t,from:e};Vz.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(YH(this)||this._state.asyncTo)||ZH(this)}get goal(){return Mj(this.animation.to)}get velocity(){const e=iH(this);return e instanceof cH?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return XH(this)}get isAnimating(){return YH(this)}get isPaused(){return ZH(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=sH(r.to);!a&&Rj(r.to)&&(o=Bz(Mj(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==uH?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Vz.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const f=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Vz.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=f,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||f/10,r=i.clamp?0:i.bounce,l=!Vz.und(r),p=n==c?s.v0>0:n<c;let h,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(h=Math.abs(a)>t,h||(u=Math.abs(c-d)<=f,!u));++e){l&&(m=d==c||d>c==p,m&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=iH(this),l=s.getValue();if(t){const e=Mj(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return bz.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(YH(this)){const{to:e,config:t}=this.animation;bz.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Vz.und(e)?(n=this.queue||[],this.queue=[]):n=[Vz.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>_H(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),BH(this._state,e&&this._lastCallId),bz.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Vz.obj(n)?n[t]:n,(null==n||AH(n))&&(n=void 0),r=Vz.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return XH(this)||(e.reverse&&([n,r]=[r,n]),r=Mj(r),Vz.und(r)?iH(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,EH(e,((e,t)=>/^on/.test(t)?CH(e,n):e))),sB(this,e,"onProps"),lB(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return FH(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ZH(this)||(JH(this,!0),Kz(i.pauseQueue),lB(this,"onPause",zH(this,tB(this,this.animation.to)),this))},resume:()=>{ZH(this)&&(JH(this,!1),YH(this)&&this._resume(),Kz(i.resumeQueue),lB(this,"onResume",zH(this,tB(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=nB(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(jH(this));const r=!Vz.und(e.to),o=!Vz.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(jH(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!Vz.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!zz(d,c);f&&(s.from=d),d=Mj(d);const p=!zz(u,l);p&&this._focus(u);const h=AH(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!h&&function(e,t,n){n&&(OH(n={...n},t),t={...n,...t}),OH(e,t),Object.assign(e,t);for(const t in IH)null==e[t]&&(e[t]=IH[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;Vz.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(m,yH(t.config,i),t.config!==a.config?yH(a.config,i):void 0);let b=iH(this);if(!b||Vz.und(u))return n(zH(this,!0));const w=Vz.und(t.reset)?o&&!t.default:!Vz.und(d)&&xH(t.reset,i),y=w?d:this.get(),x=MH(u),C=Vz.num(x)||Vz.arr(x)||Zj(x),S=!h&&(!C||xH(a.immediate||t.immediate,i));if(p){const e=mH(u);if(e!==b.constructor){if(!S)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(x)}}const k=b.constructor;let E=Rj(u),P=!1;if(!E){const e=w||!XH(this)&&f;(p||e)&&(P=zz(MH(y),x),E=!P),(zz(s.immediate,S)||S)&&zz(m.decay,g)&&zz(m.velocity,v)||(E=!0)}if(P&&YH(this)&&(s.changed&&!w?E=!0:E||this._stop(l)),!h&&((E||Rj(l))&&(s.values=b.getPayload(),s.toValues=Rj(u)?null:k==uH?[1]:Bz(x)),s.immediate!=S&&(s.immediate=S,S||w||this._set(l)),E)){const{onRest:e}=s;jz(aB,(e=>sB(this,t,e)));const r=zH(this,tB(this,l));Kz(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&bz.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?yH(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(y),h?n(HH(t.to,t,this._state,this)):E?this._start():YH(this)&&!p?this._pendingCalls.add(n):n(VH(y))}_focus(e){const t=this.animation;e!==t.to&&(Aj(this)&&this._detach(),t.to=e,Aj(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Rj(t)&&(Lj(t,this),UH(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Rj(e)&&Dj(e,this)}_set(e,t=!0){const n=Mj(e);if(!Vz.und(n)){const e=iH(this);if(!e||!zz(n,e.getValue())){const r=mH(n);e&&e.constructor==r?e.setValue(n):aH(this,r.create(n)),e&&bz.batchedUpdates((()=>{this._onChange(n,t)}))}}return iH(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,lB(this,"onStart",zH(this,tB(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yH(this.animation.onChange,e,this)),yH(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;iH(this).reset(Mj(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),YH(this)||(QH(this,!0),ZH(this)||this._resume())}_resume(){Fz.skipAnimation?this.finish():nj.start(this)}_stop(e,t){if(YH(this)){QH(this,!1);const n=this.animation;jz(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ij(this,{type:"idle",parent:this});const r=t?jH(this.get()):zH(this.get(),tB(this,e??n.to));Kz(this._pendingCalls,r),n.changed&&(n.changed=!1,lB(this,"onRest",r,this))}}};function tB(e,t){const n=MH(t);return zz(MH(e.get()),n)}function nB(e,t=e.loop,n=e.to){const r=yH(t);if(r){const o=!0!==r&&RH(r),i=(o||e).reverse,a=!o||o.reset;return rB({...e,loop:t,default:!1,pause:void 0,to:!i||AH(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function rB(e){const{to:t,from:n}=e=RH(e),r=new Set;return Vz.obj(t)&&iB(t,r),Vz.obj(n)&&iB(n,r),e.keys=r.size?Array.from(r):null,e}function oB(e){const t=rB(e);return Vz.und(t.default)&&(t.default=EH(t)),t}function iB(e,t){Hz(e,((e,n)=>null!=e&&t.add(n)))}var aB=["onStart","onRest","onChange","onPause","onResume"];function sB(e,t,n){e.animation[n]=t[n]!==SH(t,n)?CH(t[n],e.key):void 0}function lB(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var cB=["onStart","onChange","onRest"],uB=1,dB=class{constructor(e,t){this.id=uB++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Vz.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(rB(e)),this}start(e){let{queue:t}=this;return e?t=Bz(e).map(rB):this.queue=[],this._flush?this._flush(this,t):(bB(this,t),fB(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;jz(Bz(t),(t=>n[t].stop(!!e)))}else BH(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Vz.und(e))this.start({pause:!0});else{const t=this.springs;jz(Bz(e),(e=>t[e].pause()))}return this}resume(e){if(Vz.und(e))this.start({pause:!1});else{const t=this.springs;jz(Bz(e),(e=>t[e].resume()))}return this}each(e){Hz(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,$z(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&$z(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,$z(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}bz.onFrame(this._onFrame)}};function fB(e,t){return Promise.all(t.map((t=>pB(e,t)))).then((t=>_H(e,t)))}async function pB(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Vz.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Vz.arr(o)||Vz.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):jz(cB,(n=>{const r=t[n];if(Vz.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Kz(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===SH(t,"cancel");(u||p&&d.asyncId)&&f.push(FH(++e._lastAsyncId,{props:t,state:d,actions:{pause:_z,resume:_z,start(t,n){p?(BH(d,e._lastAsyncId),n(jH(e))):(t.onRest=s,n(HH(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const h=_H(e,await Promise.all(f));if(a&&h.finished&&(!n||!h.noop)){const n=nB(t,a,o);if(n)return bB(e,[n]),pB(e,n,!0)}return l&&bz.batchedUpdates((()=>l(h,e,e.item))),h}function hB(e,t){const n={...e.springs};return t&&jz(Bz(t),(e=>{Vz.und(e.keys)&&(e=rB(e)),Vz.obj(e.to)||(e={...e,to:void 0}),vB(n,e,(e=>gB(e)))})),mB(e,n),n}function mB(e,t){Hz(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Lj(t,e))}))}function gB(e,t){const n=new eB;return n.key=e,t&&Lj(n,t),n}function vB(e,t,n){t.keys&&jz(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function bB(e,t){jz(t,(t=>{vB(e.springs,t,(t=>gB(t,e)))}))}var wB=({children:e,...t})=>{const n=l(yB),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=v((()=>({inputs:t,result:e()}))),r=m(),o=r.current;let i=o;if(i){const n=Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs));n||(i={inputs:t,result:e()})}else i=n;return g((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=yB;return r.createElement(a,{value:t},e)},yB=function(e,t){return Object.assign(e,r.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(wB,{});wB.Provider=yB.Provider,wB.Consumer=yB.Consumer;var xB=()=>{const e=[],t=function(t){Yj(`${Gj}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return jz(e,((e,o)=>{if(Vz.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return jz(e,(e=>e.pause(...arguments))),this},t.resume=function(){return jz(e,(e=>e.resume(...arguments))),this},t.set=function(t){jz(e,((e,n)=>{const r=Vz.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return jz(e,((e,r)=>{if(Vz.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return jz(e,(e=>e.stop(...arguments))),this},t.update=function(t){return jz(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Vz.fun(e)?e(n,t):e};return t._getProps=n,t};var CB=class extends GH{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ej(...t);const n=this._get(),r=mH(n);aH(this,r.create(n))}advance(e){const t=this._get();zz(t,this.get())||(iH(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&kB(this._active)&&EB(this)}_get(){const e=Vz.arr(this.source)?this.source.map(Mj):Bz(Mj(this.source));return this.calc(...e)}_start(){this.idle&&!kB(this._active)&&(this.idle=!1,jz(sH(this),(e=>{e.done=!1})),Fz.skipAnimation?(bz.batchedUpdates((()=>this.advance())),EB(this)):nj.start(this))}_attach(){let e=1;jz(Bz(this.source),(t=>{Rj(t)&&Lj(t,this),UH(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){jz(Bz(this.source),(e=>{Rj(e)&&Dj(e,this)})),this._active.clear(),EB(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Bz(this.source).reduce(((e,t)=>Math.max(e,(UH(t)?t.priority:0)+1)),0))}};function SB(e){return!1!==e.idle}function kB(e){return!e.size||Array.from(e).every(SB)}function EB(e){e.idle||(e.idle=!0,jz(sH(e),(e=>{e.done=!0})),Ij(e,{type:"idle",parent:e}))}Fz.assign({createStringInterpolator:Kj,to:(e,t)=>new CB(e,t)});var PB=/^--/;function NB(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||PB.test(e)||MB.hasOwnProperty(e)&&MB[e]?(""+t).trim():t+"px"}var RB={};var MB={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},AB=["Webkit","Ms","Moz","O"];MB=Object.keys(MB).reduce(((e,t)=>(AB.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),MB);var IB=/^(matrix|translate|scale|rotate|skew)/,TB=/^(translate)/,OB=/^(rotate|skew)/,LB=(e,t)=>Vz.num(e)&&0!==e?e+t:e,DB=(e,t)=>Vz.arr(e)?e.every((e=>DB(e,t))):Vz.num(e)?e===t:parseFloat(e)===t,FB=class extends fH{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>LB(e,"px"))).join(",")})`,DB(e,0)]))),Hz(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(IB.test(t)){if(delete r[t],Vz.und(e))return;const n=TB.test(t)?"px":OB.test(t)?"deg":"";o.push(Bz(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${LB(o,n)})`,DB(o,0)]:e=>[`${t}(${e.map((e=>LB(e,n))).join(",")})`,DB(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new _B(o,i)),super(r)}},_B=class extends Tj{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return jz(this.inputs,((n,r)=>{const o=Mj(n[0]),[i,a]=this.transforms[r](Vz.arr(o)?o:n.map(Mj));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&jz(this.inputs,(e=>jz(e,(e=>Rj(e)&&Lj(e,this)))))}observerRemoved(e){0==e&&jz(this.inputs,(e=>jz(e,(e=>Rj(e)&&Dj(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ij(this,e)}};Fz.assign({batchedUpdates:T,createStringInterpolator:Kj,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var VB=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new fH(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=wH(e)||"Anonymous";return(e=Vz.str(e)?i[e]||(i[e]=gH(e,o)):e[bH]||(e[bH]=gH(e,o))).displayName=`Animated(${t})`,e};return Hz(e,((t,n)=>{Vz.arr(e)&&(n=wH(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:o,children:i,scrollTop:a,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:RB[t]||(RB[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(const t in o)if(o.hasOwnProperty(t)){const n=NB(t,o[t]);PB.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new FB(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),zB=VB.animated;const jB=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]},HB=({text:r="",className:o="",delay:i=100,animationFrom:s={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:c={opacity:1,transform:"translate3d(0,0,0)"},easing:u=(e=>e),threshold:d=.1,rootMargin:f="-100px",textAlign:p="center",onLetterAnimationComplete:h,onLineCountChange:b})=>{const w=r.split(" ").map(jB),y=w.flat(),[x,C]=v(!1),S=m(null),k=m(0),[E]=function(e,t,n){const r=Vz.fun(t)&&t;r&&!n&&(n=[]);const o=a((()=>r||3==arguments.length?xB():void 0),[]),i=m(0),s=eH(),c=a((()=>({ctrls:[],queue:[],flush(e,t){const n=hB(e,t);return i.current>0&&!c.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?fB(e,t):new Promise((r=>{mB(e,n),c.queue.push((()=>{r(fB(e,t))})),s()}))}})),[]),u=m([...c.ctrls]),d=[],f=rH(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=u.current[o]||(u.current[o]=new dB(null,c.flush)),n=r?r(o,e):t[o];n&&(d[o]=oB(n))}}a((()=>{jz(u.current.slice(e,f),(e=>{!function(e,t){e.ref?.delete(e),t?.delete(e)}(e,o),e.stop(!0)})),u.current.length=e,p(f,e)}),[e]),a((()=>{p(0,Math.min(f,e))}),n);const h=u.current.map(((e,t)=>hB(e,d[t]))),g=l(wB),v=rH(g),b=g!==v&&function(e){for(const t in e)return!0;return!1}(g);Qj((()=>{i.current++,c.ctrls=u.current;const{queue:e}=c;e.length&&(c.queue=[],jz(e,(e=>e()))),jz(u.current,((e,t)=>{o?.add(e),b&&e.start({default:g});const n=d[t];n&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),tH((()=>()=>{jz(c.ctrls,(e=>e.stop(!0)))}));const w=h.map((e=>({...e})));return o?[w,o]:w}(y.length,(e=>({from:s,to:x?async e=>{await e(c),k.current+=1,k.current===y.length&&h&&h()}:s,delay:e*i,config:{easing:u}})),[x,r,i,s,c,u,h]);return g((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(C(!0),S.current&&e.unobserve(S.current))}),{threshold:d,rootMargin:f});return S.current&&e.observe(S.current),()=>e.disconnect()}),[d,f]),g((()=>{if(S.current&&x){const e=S.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),n=e.offsetHeight,r=Math.round(n/t);b&&b(r)}),100)}}),[x,r,b]),t(n,{children:[e("span",{className:"sr-only",children:r}),e("p",{ref:S,className:`split-parent inline overflow-hidden ${o}`,style:{textAlign:p,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:w.map(((n,r)=>t("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[n.map(((t,n)=>{const o=w.slice(0,r).reduce(((e,t)=>e+t.length),0)+n;return e(zB.span,{style:E[o],className:"inline-block transform transition-opacity will-change-transform",children:t},o)})),r<w.length-1&&e("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r)))})]})};function BB(e,t,n){let r,o=n.initialDeps??[];function i(){var i,a,s,l;let c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some(((e,t)=>o[t]!==e));if(!d)return r;let f;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-f))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return i.updateDeps=e=>{o=e},i}function $B(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const WB=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,o)),n)}},UB=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},KB=e=>e,GB=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},qB=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(UB(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(UB(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},XB={passive:!0},YB="undefined"==typeof window||"onscrollend"in window,ZB=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&YB?()=>{}:WB(r,(()=>{t(o,!1)}),e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;o=a?n.scrollLeft*(s?-1:1):n.scrollTop,i(),t(o,r)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,XB);const c=e.options.useScrollendEvent&&YB;return c&&n.addEventListener("scrollend",l,XB),()=>{n.removeEventListener("scroll",s),c&&n.removeEventListener("scrollend",l)}},QB=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},JB=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const a=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class e${constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:KB,rangeExtractor:GB,onChange:()=>{},measureElement:QB,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=BB((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=BB((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o})),{key:!1}),this.getMeasurements=BB((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o},i)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,a);for(let o=a;o<e;o++){const e=r(o),a=1===this.options.lanes?s[o-1]:this.getFurthestMeasurement(s,o),l=a?a.end+this.options.gap:t+n,c=i.get(e),u="number"==typeof c?c:this.options.estimateSize(o),d=l+u,f=a?a.lane:o%this.options.lanes;s[o]={index:o,start:l,size:u,end:d,key:e,lane:f}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=BB((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1,i=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:o};let a=t$(0,o,i,n),s=a;if(1===r)for(;s<o&&e[s].end<n+t;)s++;else if(r>1){const i=Array(r).fill(0);for(;s<o&&i.some((e=>e<n+t));){const t=e[s];i[t.lane]=t.end,s++}const l=Array(r).fill(n+t);for(;a>=0&&l.some((e=>e>=n));){const t=e[a];l[t.lane]=t.start,a--}a=Math.max(0,a-a%r),s=Math.min(o,s+(r-1-s%r))}return{startIndex:a,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=BB((()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=BB((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return $B(t[t$(0,t.length-1,(e=>$B(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}const i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0;const o=t=>{if(!this.targetWindow)return;const r=this.getOffsetForIndex(e,t);if(!r)return void console.warn("Failed to get offset for index:",e);const[o,a]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame((()=>{const t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?((e,t)=>Math.abs(e-t)<1.01)(n[0],t)||i(a):console.warn("Failed to get offset for index:",e)}))},i=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame((()=>o(t))):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};o(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some((e=>null===e));){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter((e=>null!==e)))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const t$=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0};const n$="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function r$(e){return function(e){const t=r.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var o;r?A(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[o]=r.useState((()=>new e$(n)));return o.setOptions(n),n$((()=>o._didMount()),[]),n$((()=>o._willUpdate())),o}({observeElementRect:qB,observeElementOffset:ZB,scrollToFn:JB,...e})}
38
+ /**
39
+ * table-core
40
+ *
41
+ * Copyright (c) TanStack
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE.md file in the root directory of this source tree.
45
+ *
46
+ * @license MIT
47
+ */function o$(e,t){return"function"==typeof e?e(t):e}function i$(e,t){return n=>{t.setState((t=>({...t,[e]:o$(n,t[e])})))}}function a$(e){return e instanceof Function}function s$(e,t,n){let r,o=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(),s=a.length!==o.length||a.some(((e,t)=>o[t]!==e));if(!s)return r;let l;if(o=a,n.key&&n.debug&&(l=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function l$(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const c$={createTable:e=>{e.getHeaderGroups=s$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var i,a;const s=null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return u$(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=s$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>u$(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=s$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return u$(t,i,e,"left")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=s$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return u$(t,i,e,"right")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=s$((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=s$((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=s$((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=s$((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=s$((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=s$((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=s$((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=s$((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=s$((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=s$((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=s$((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=s$((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function u$(e,t,n,r){var o,i;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let l=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const o=l$(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${i.filter((e=>e.column===s)).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),l.push(o),t>0&&c(i,t-1)},u=t.map(((e,t)=>l$(n,e,{depth:a,index:t})));c(u,a-1),l.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}const d$={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},f$={getDefaultColumnDef:()=>d$,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:i$("columnSizing",e),onColumnSizingInfoChange:i$("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:d$.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:d$.size),null!=(o=e.columnDef.maxSize)?o:d$.maxSize)},e.getStart=n=>{const r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex((t=>t.id===e.id));if(o>0){const e=r[o-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),h$(i)&&i.touches&&i.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],l=h$(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100})),{...e,deltaOffset:a,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof p$)return p$;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return p$=e,p$}()&&{passive:!1};h$(i)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let p$=null;function h$(e){return"touchstart"===e.type}const m$={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:i$("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},g$=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};g$.autoRemove=e=>P$(e);const v$=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};v$.autoRemove=e=>P$(e);const b$=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};b$.autoRemove=e=>P$(e);const w$=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};w$.autoRemove=e=>P$(e)||!(null!=e&&e.length);const y$=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));y$.autoRemove=e=>P$(e)||!(null!=e&&e.length);const x$=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));x$.autoRemove=e=>P$(e)||!(null!=e&&e.length);const C$=(e,t,n)=>e.getValue(t)===n;C$.autoRemove=e=>P$(e);const S$=(e,t,n)=>e.getValue(t)==n;S$.autoRemove=e=>P$(e);const k$=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};k$.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},k$.autoRemove=e=>P$(e)||P$(e[0])&&P$(e[1]);const E$={includesString:g$,includesStringSensitive:v$,equalsString:b$,arrIncludes:w$,arrIncludesAll:y$,arrIncludesSome:x$,equals:C$,weakEquals:S$,inNumberRange:k$};function P$(e){return null==e||""===e}const N$={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:i$("columnFilters",e),onGlobalFilterChange:i$("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?E$.includesString:"number"==typeof r?E$.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?E$.equals:Array.isArray(r)?E$.arrIncludes:E$.weakEquals},e.getFilterFn=()=>{var n,r;return a$(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:E$[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),i=o$(n,o?o.value:void 0);var a;if(R$(r,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var l;return o?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?l:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>E$.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return a$(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:E$[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=o$(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(R$(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function R$(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const M$={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},A$={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:i$("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?M$.sum:"[object Date]"===Object.prototype.toString.call(r)?M$.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return a$(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:M$[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const I$={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:i$("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=s$((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),{key:!1})}},T$={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:i$("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>o$(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=o$(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,o$(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=o$(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=s$((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},O$={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:i$("columnPinning",e),onRowPinningChange:i$("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],s=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=s&&s.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=s&&s.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1},e.getCenterVisibleCells=s$((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=s$((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=s$((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=s$((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=s$((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=s$((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=t=>s$((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=r?r:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=r?r:[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=s$((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},L$={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:i$("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{D$(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=s$((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?F$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=s$((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?F$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=s$((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?F$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((i=>{var a;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return D$(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return _$(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===V$(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===V$(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},D$=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>D$(e,t.id,n,r,o)))};function F$(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map((e=>{var t;const a=_$(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function _$(e,t){var n;return null!=(n=t[e.id])&&n}function V$(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach((e=>{if((!i||o)&&(e.getCanSelect()&&(_$(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=V$(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const z$=/([0-9]+)/gm;function j$(e,t){return e===t?0:e>t?1:-1}function H$(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function B$(e,t){const n=e.split(z$).filter(Boolean),r=t.split(z$).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const $$={alphanumeric:(e,t,n)=>B$(H$(e.getValue(n)).toLowerCase(),H$(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>B$(H$(e.getValue(n)),H$(t.getValue(n))),text:(e,t,n)=>j$(H$(e.getValue(n)).toLowerCase(),H$(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>j$(H$(e.getValue(n)),H$(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>j$(e.getValue(n),t.getValue(n))},W$={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:i$("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return $$.datetime;if("string"==typeof n&&(r=!0,n.split(z$).length>1))return $$.alphanumeric}return r?$$.text:$$.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return a$(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:$$[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((a=>{const s=null==a?void 0:a.find((t=>t.id===e.id)),l=null==a?void 0:a.findIndex((t=>t.id===e.id));let c,u=[],d=i?n:"desc"===o;var f;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},U$={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:i$("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=s$((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=s$((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>s$((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},K$=[c$,U$,I$,O$,N$,W$,A$,m$,T$,L$,f$];function G$(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:K$};const r=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let o={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o}));const i=[];let a=!1;const s={_features:K$,options:{...r,...e},initialState:o,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=o$(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw new Error;return r},_getDefaultColumnDef:s$((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:s$((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(o=null!=(i=a.id)?i:s?s.replace(".","_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:s$((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:s$((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(n,e,o,r),a=e;return i.columns=a.columns?t(a.columns,i,o+1):[],i}))};return t(e)}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:s$((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:s$((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:s$((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,s);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const q$=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(s.subRows,(e=>e.subRows)),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:s$((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:s$((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,s,t,t.id)))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:s$((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s};function X$(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const f=q$(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&r<a){if(f.subRows=s(d.subRows,r+1),d=f,t(d)&&!f.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}if(t(d)||f.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}}else d=f,t(d)&&(l.push(d),i[d.id]=d,o.push(d))}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n):function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&r<a){const e=q$(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),o.push(d),i[d.id]=d}}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n)}
48
+ /**
49
+ * react-table
50
+ *
51
+ * Copyright (c) TanStack
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE.md file in the root directory of this source tree.
55
+ *
56
+ * @license MIT
57
+ */
58
+ function Y$(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?r.createElement(e,t):e:null;var n}const Z$=({value:n,onChange:r,isSearching:o,placeholder:i})=>{const a=!0===o,s=null!=n&&n.length>0;return t("div",{className:"relative w-full",children:[e("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:t("div",{className:"relative",children:[e("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e(nh,{className:an("h-4 w-4 transition-all duration-500 ease-in-out",a&&s?"text-blue-400":"text-gray-400")})}),e("input",{type:"text",value:n,onChange:r,placeholder:i,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${a&&s?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${a&&s?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:t("div",{className:"relative h-2 w-2",children:[e("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${a&&s?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:t("div",{className:"absolute inset-0",children:[e("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${a&&s?"animate-pulse-slow opacity-100":"opacity-0"} `}),e("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${a&&s?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})};function Q$({className:t="icon-md"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})}function J$({className:n=""}){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:an("lucide lucide-blocks",n),children:[e("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})}function eW({className:n="",...r}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:an("h-4 w-4",n),width:"16",height:"16",strokeWidth:"2",...r,children:t("g",{fill:"currentColor",children:[e("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})}function tW({size:t=25,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:an(n,""),children:e("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})}const nW=o.forwardRef(((t,n)=>{const{className:r="icon-md",size:o="1.2em"}=t;return e("svg",{ref:n,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:o,width:o,className:an(r),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function rW({className:t="icon-sm"}){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})}function oW({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})}function iW({className:t}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})}function aW({className:n="m-auto",size:r=20,color:o="currentColor",bgOpacity:i=.1,speed:a=.75}){const s={"--spinner-speed":`${a}s`};return t("svg",{className:an(n,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:s,children:[e("defs",{children:e("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:o,strokeOpacity:i}),e("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:o,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function sW({className:t="icon-md-heavy",size:n="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an(t),children:e("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})}function lW({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function cW({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an(n,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function uW(){return t("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function dW({size:n=25,className:r=""}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an("lucide lucide-bot",r),children:[e("path",{d:"M12 8V4H8"}),e("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e("path",{d:"M2 14h2"}),e("path",{d:"M20 14h2"}),e("path",{d:"M15 13v2"}),e("path",{d:"M9 13v2"})]})}function fW({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:an("h-6 w-6",t),children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})}function pW({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})}function hW({className:n}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an(n??"","lucide lucide-messages-square"),children:[e("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})}function mW({className:t=""}){return e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})}function gW({className:t="",size:n="1em"}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("icon-md-heavy",t),children:e("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})}function vW({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-3 w-3 -rotate-180",n),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e("polygon",{points:"11 19 2 12 11 5 11 19"}),e("polygon",{points:"22 19 13 12 22 5 22 19"})]})}function bW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})}function wW(){return t("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[t("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e("stop",{offset:0,stopColor:"#0062e0"}),e("stop",{offset:1,stopColor:"#19afff"})]}),e("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})}function yW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})}function xW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})}function CW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})}function SW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})}function kW(){return e("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:t("g",{fill:"#000000",children:[e("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})}function EW({size:n=25,className:r=""}){return t("svg",{viewBox:"0 0 24 16",overflow:"visible",width:n,height:n,className:an("fill-current text-black",r),children:[e("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})}function PW({size:t=24,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:an("text-white dark:text-black",n),children:e("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function NW(){return e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})}function RW({className:n="h-4 w-4 flex-shrink-0 text-gray-500"}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:n,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("circle",{cx:"12",cy:"12",r:"1"}),e("circle",{cx:"19",cy:"12",r:"1"}),e("circle",{cx:"5",cy:"12",r:"1"})]})}const MW=({className:n=""})=>t("svg",{className:n,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]});function AW({unpin:n=!1}){return n?t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})}function IW({className:t=""}){return e("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}function TW({size:t,className:n="icon-md"}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})}function OW({size:n=25,className:r="h-4 w-4"}){const o=n,i=n;return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:an(r,""),width:i,height:o,xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})}function LW({className:t="h-4 w-4"}){return e("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})}function DW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e("circle",{cx:"12",cy:"5",r:"2"}),e("path",{d:"M12 7v4"}),e("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})}function FW({className:n=""}){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:an("h-4 w-4",n),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})}function _W({size:n=25,className:r=""}){return t("svg",{width:n,height:n,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})}function VW({size:t=25,className:n=""}){return e("svg",{width:t,height:t,className:an("dark:fill-white",n),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})}function zW({size:n=25,className:r=""}){return t("svg",{width:n,height:n,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e("defs",{children:t("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e("stop",{offset:".325",stopColor:"#FFDDB7"}),e("stop",{offset:".706",stopColor:"#076EFF"})]})})]})}function jW({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:an("h-4 w-4",t),children:e("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})}function HW(){return e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})}function BW({className:n}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:an(n),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})}function $W({className:t="",size:n="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:an(t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})}function WW({className:t="",size:n="1em"}){return e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:an(t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})}function UW(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})}function KW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})]})}function GW(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function qW({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:an("text-black dark:text-white",t),"aria-hidden":!0,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})}function XW(){return t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function YW({size:t=25,className:n=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:an(n,""),children:e("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})}function ZW({className:n=""}){return t("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:an("h-9 w-9",n),children:[e("defs",{children:t("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#640a62",offset:"0"}),e("stop",{stopColor:"#852283",offset:".49917"}),e("stop",{stopColor:"#640a62",offset:"1"})]})}),t("g",{children:[e("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),t("g",{fill:"#cfffff",children:[e("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})}function QW({className:n="",size:r="1em"}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an("text-token-secondary h-2/3 w-2/3",n),xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function JW({className:n="",size:r=24}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:an("icon-md shrink-0",n),children:[e("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})}function eU({className:n}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an(n),children:[e("path",{d:"M2 10v3"}),e("path",{d:"M6 6v11"}),e("path",{d:"M10 3v18"}),e("path",{d:"M14 8v7"}),e("path",{d:"M18 5v13"}),e("path",{d:"M22 10v3"})]})}function tU({size:t="1em",className:n}){return e("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:n,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})}function nU({className:n="icon-md-heavy",size:r="1em"}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:an(n),children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e("path",{d:"M12 17h.01"})]})}function rU({size:t=25,className:n=""}){return e("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:an("fill-current text-black",n),children:e("g",{fill:"currentColor",children:e("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})}function oU({className:n="",size:r="1em",bold:o=!1}){return o?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:[e("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})}function iU({className:n="",size:r="1em",bold:o=!1}){return o?t("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:[e("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:n,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})}function aU({className:t=""}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})}function sU({className:t=""}){return e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})}function lU({className:n}){return t("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:[e("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})}function cU({className:t}){return e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})}function uU(){return t("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}const dU=P((({checked:t,onChange:n,ariaLabel:r})=>e("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e(Mh,{checked:t,onCheckedChange:n,"aria-label":r})})));dU.displayName="SelectionCheckbox";const fU=P((({row:t,isSmallScreen:n,onSelectionChange:r,index:o,isSearching:i})=>{const a=c((e=>{t.toggleSelected(e),r?.(t.id,e)}),[t,r]);return e(uk,{"data-state":t.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*o+"ms",transform:`translateY(${i?"4px":"0"})`,opacity:i?.5:1},children:t.getVisibleCells().map((r=>"select"===r.column.id?e(fk,{className:"px-2 py-1 transition-all duration-300",children:e(dU,{checked:t.getIsSelected(),onChange:a,ariaLabel:"Select row"})},r.id):e(fk,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:pU(r.column.columnDef,n),children:e("div",{className:"overflow-hidden text-ellipsis",children:Y$(r.column.columnDef.cell,r.getContext())})},r.id)))})}));function pU(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const hU=P((({onDelete:r,isDeleting:o,disabled:i,isSmallScreen:a})=>r?e(mh,{variant:"outline",onClick:r,disabled:i,className:an("min-w-[40px] transition-all duration-200",a&&"px-2 py-1"),children:o?e(aW,{className:"size-4"}):t(n,{children:[e(IW,{className:"size-3.5 text-red-400 sm:size-4"}),!a&&e("span",{className:"ml-2",children:"Delete"})]})}):null));function mU({columns:n,data:o,onDelete:i,filterColumn:s,defaultSort:l=[],className:u="",isFetchingNextPage:d=!1,hasNextPage:f=!1,fetchNextPage:p,enableRowSelection:h=!0,showCheckboxes:b=!0,onFilterChange:w,filterValue:y,isLoading:x,enableSearch:C=!0}){const S=ny("(max-width: 768px)"),k=m(null),[E,P]=v(!1),[N,R]=v({}),[M,A]=v(l),[I,T]=v([]),[O,L]=v({}),[D,F]=v(y??""),[_,V]=v(!1),z=a((()=>{if(!h||!b)return n;const t={id:"select",header:({table:t})=>e("div",{className:"flex h-full w-[30px] items-center justify-center",children:e(Mh,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e(dU,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...n]}),[n,h,b]),j=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({current:G$(t)}))),[o,i]=r.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({data:o,columns:z,getCoreRowModel:e=>s$((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const a=[];for(let l=0;l<t.length;l++){const c=q$(e,e._getRowId(t[l],l,i),t[l],l,o,void 0,null==i?void 0:i.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return a};return n.rows=r(t),n}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>s$((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],i=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const s=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<i.length;r+=1){var n;const o=i[r],s=a[o.id],l=null!=(n=null==o?void 0:o.desc)&&n;let c=0;if(s.sortUndefined){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);(n||r)&&(c=n&&r?0:n?s.sortUndefined:-s.sortUndefined)}if(0===c&&(c=s.sortingFn(e,t,o.id)),0!==c)return l&&(c*=-1),s.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))})),t};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getFilteredRowModel:e=>s$((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const o=[],i=[];(null!=n?n:[]).forEach((t=>{var n;const r=e.getColumn(t.id);if(!r)return;const i=r.getFilterFn();i&&o.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value})}));const a=n.map((e=>e.id)),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,u;r&&s&&l.length&&(a.push("__global__"),l.forEach((e=>{var t;i.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},o.length)for(let e=0;e<o.length;e++){c=o[e];const t=c.id;n.columnFilters[t]=c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){u=i[e];const t=u.id;if(u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return X$(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),enableRowSelection:h,enableMultiRowSelection:!0,state:{sorting:M,columnFilters:I,columnVisibility:O,rowSelection:N},onSortingChange:A,onColumnFiltersChange:T,onColumnVisibilityChange:L,onRowSelectionChange:R}),{rows:H}=j.getRowModel(),B=r$({count:H.length,getScrollElement:()=>k.current,estimateSize:c((()=>48),[]),overscan:10}),$=B.getVirtualItems(),W=B.getTotalSize(),U=$.length>0?$[0].start:0,K=$.length>0?W-$[$.length-1].end:0;g((()=>{const e=k.current;if(!e)return;const t=async()=>{if(!f||d)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;if(n-t<=1.5*r)try{await(p?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[f,d,p]),g((()=>{V(!0);const e=setTimeout((()=>{w?.(D),V(!1)}),300);return()=>clearTimeout(e)}),[D,w]);const G=c((async()=>{if(i){P(!0);try{const e=j.getFilteredSelectedRowModel().rows.map((e=>e.original));await i(e),R({})}finally{P(!1)}}}),[i,j]),q=Array.from({length:13},((t,n)=>{const r=Math.floor(241*Math.random())+170,o="select"===z[0]?.id?1:0;return e(uk,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:z.map(((t,n)=>{const i=pU(t,S);return e(fk,{className:"px-2 py-1 sm:px-4 sm:py-2",style:i,children:e(LS,{className:"h-6",style:n===o?{width:`${r}px`}:{width:"100%"}})},t.id)}))},n)}));return t("div",{className:an("flex h-full flex-col gap-4",u),children:[t("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[h&&b&&e(hU,{onDelete:G,isDeleting:E,disabled:!j.getFilteredSelectedRowModel().rows.length||E,isSmallScreen:S}),void 0!==s&&j.getColumn(s)&&C&&e("div",{className:"relative flex-1",children:e(Z$,{value:D,onChange:e=>F(e.target.value),isSearching:_,placeholder:"Search..."})})]}),e("div",{ref:k,className:an("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",_&&"bg-surface-secondary/50",u),children:t(ak,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e(sk,{className:"sticky top-0 z-50 bg-surface-secondary",children:j.getHeaderGroups().map((t=>e(uk,{className:"border-b border-border-light",children:t.headers.map((t=>e(dk,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:pU(t.column.columnDef,S),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:Y$(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),t(lk,{children:[U>0&&e("tr",{children:e("td",{style:{height:`${U}px`}})}),x&&q,$.map((t=>{const n=H[t.index];return e(fU,{row:n,isSmallScreen:S,index:t.index,isSearching:_},n.id)})),!$.length&&e(uk,{className:"hover:bg-transparent",children:e(fk,{colSpan:n.length,className:"p-4 text-center",children:"No data available"})}),K>0&&e("tr",{children:e("td",{style:{height:`${K}px`}})}),(d||f)&&e(uk,{className:"hover:bg-transparent",children:e(fk,{colSpan:n.length,className:"p-4",children:e("div",{className:"flex h-full items-center justify-center",children:d?e(aW,{className:"size-4"}):f&&e("div",{className:"h-6"})})})})]})]})})]})}function gU({field:n,label:r,labelClass:o,inputClass:i,containerClass:a,labelAdjacent:s,placeholder:l="",type:c="string"}){return t("div",{className:an("flex w-full flex-col items-center gap-2",a),children:[t("div",{className:"flex w-full items-center justify-start gap-2",children:[e(vC,{htmlFor:`${n.name}-input`,className:an("text-left text-sm font-semibold text-text-primary",o),children:r}),s]}),e(ex,{id:`${n.name}-input`,value:n.value??"",onChange:e=>{const t=e.target.value;"number"===c?""===t?n.onChange(t):isNaN(Number(t))||n.onChange(Number(t)):n.onChange(t)},placeholder:l,className:an("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",i)})]})}class vU{constructor(e,t,n,r,o,i,a,s){this.width=e.width,this.height=e.height,this.ctx=t,this.x=n,this.y=r,this.color=o,this.speed=this.random(.1,.9)*i,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=a,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=s}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const bU=(e,t)=>{const n=parseInt(String(e),10);return n<=0||t?0:n>=100?.1:.001*n},wU=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),yU={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};function xU({variant:t="default",gap:n,speed:r,colors:o,noFocus:i,className:a="",progress:s,randomness:l=.3,width:u,height:d}){const f=m(null),p=m(null),h=m([]),v=m(),b=m(performance.now()),w=m(s),y=m(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,x=yU[t],C=n??x.gap,S=r??x.speed,k=o??x.colors,E=i??x.noFocus,P=c((()=>{if(!p.current)return;if(void 0===w.current)return void(p.current.style.opacity="1");const e=w.current>=.9?1-(w.current-.9)/.1:1;p.current.style.opacity=String(wU(e))}),[]),N=c((e=>{v.current=requestAnimationFrame((()=>N(e)));const t=performance.now(),n=t-b.current;if(n<1e3/60)return;b.current=t-n%(1e3/60);const r=p.current?.getContext("2d");if(!r||!p.current)return;r.clearRect(0,0,p.current.width,p.current.height);let o=!0;for(const t of h.current)"appearWithProgress"===e?void 0!==w.current?t.appearWithProgress(w.current):t.isIdle=!0:t[e](),t.isIdle||(o=!1);P(),o&&cancelAnimationFrame(v.current)}),[P]),R=c((e=>{cancelAnimationFrame(v.current),v.current=requestAnimationFrame((()=>N(e)))}),[N]),M=c((()=>{if(!f.current||!p.current)return;const{width:e,height:t}=f.current.getBoundingClientRect(),n=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const r=k.split(","),o=[],i=e/2,a=t/2,s=Math.hypot(i,a);for(let c=0;c<e;c+=C)for(let e=0;e<t;e+=C){const t=r[Math.floor(Math.random()*r.length)],u=Math.hypot(c-i,e-a)/s,d=wU(u*(1-l)+Math.random()*l),f=y?0:u*s;n&&o.push(new vU(p.current,n,c,e,t,bU(S,y),f,d))}h.current=o,void 0!==w.current&&R("appearWithProgress")}),[C,k,S,l,y,R]);g((()=>{w.current=s,void 0!==s&&R("appearWithProgress")}),[s,R]),g((()=>{void 0===s&&cancelAnimationFrame(v.current)}),[s]),g((()=>{M();const e=new ResizeObserver(M);return f.current&&e.observe(f.current),()=>{e.disconnect(),cancelAnimationFrame(v.current)}}),[M]);return e("div",{ref:f,style:{width:u||"100%",height:d||"100%"},children:e("div",{className:an("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",a),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===w.current&&R("appear"),onMouseLeave:()=>void 0===w.current&&R("disappear"),onFocus:E?void 0:e=>{E||e.currentTarget.contains(e.relatedTarget)||void 0!==w.current||R("appear")},onBlur:E?void 0:e=>{E||e.currentTarget.contains(e.relatedTarget)||void 0!==w.current||R("disappear")},tabIndex:E?-1:0,children:e("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:u&&"auto"!==u?parseInt(String(u)):void 0,height:d&&"auto"!==d?parseInt(String(d)):void 0})})})}const CU=u((({children:r,handleFileChange:o},i)=>t(n,{children:[r,e("input",{ref:i,multiple:!0,type:"file",style:{display:"none"},onChange:o})]})));function SU(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}function kU({items:r,label:o,placeholder:i="Select...",onSelectedValuesChange:a,renderSelectedValues:s=SU,className:l,selectIcon:c,itemClassName:u,labelClassName:d,selectClassName:f,popoverClassName:p,selectItemsClassName:h,selectedValues:g=[],setSelectedValues:v,renderItemContent:b}){const w=m(null);return e("div",{className:l,children:t(Uc,{value:g,setValue:e=>{v(e),a&&a(e)},children:[o&&e(ru,{className:an("mb-1 block text-sm text-text-primary",d),children:o}),t(Wc,{ref:w,className:an("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",f,g.length>0&&null!=h&&h),onChange:e=>e.stopPropagation(),children:[c&&c,e("span",{className:"mr-auto hidden truncate md:block",children:s(g,i)}),e(Fc,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e(su,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:w,className:an("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",p),children:r.map((r=>{const o=t(n,{children:[e(Yc,{className:"text-primary"}),e("span",{className:"truncate",children:r})]}),i=g.includes(r);return e(tu,{value:r,className:an("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",u),children:b?b(r,o,i):o},r)}))})]})})}CU.displayName="FileUpload";const EU=({trigger:n,isOpen:r,setIsOpen:o,focusLoop:i,mountByState:a,...s})=>{const l=Su({open:r,setOpen:o,focusLoop:i});return t(Nu,a?{store:l,children:[n,r&&e(PU,{...s})]}:{store:l,children:[n,e(PU,{...s})]})},PU=({items:n,menuId:r,keyPrefix:o,className:i,iconClassName:a,itemClassName:s,modal:l,portal:c,sameWidth:u,gutter:d=8,finalFocus:f,unmountOnHide:p,preserveTabOrder:h})=>{const m=vu();return e(Pu,{id:r,modal:l,gutter:d,portal:c,sameWidth:u,finalFocus:f,unmountOnHide:p,preserveTabOrder:h,className:an("popover-ui z-50",i),children:n.filter((e=>!1!==e.show)).map(((n,r)=>!0===n.separate?e(Iu,{className:"my-1 h-px bg-white/10"},r):t(Mu,{id:n.id,className:an("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",s),disabled:n.disabled,render:n.render,ref:n.ref,hideOnClick:n.hideOnClick,onClick:e=>{e.preventDefault(),n.onClick&&n.onClick(e),!1!==n.hideOnClick&&m?.hide()},children:[null!=n.icon&&e("span",{className:an("mr-2 size-4",a),"aria-hidden":"true",children:n.icon}),n.label,null!=n.kbd&&t("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",n.kbd]})]},`${o??""}${r}-${n.id??""}`)))})},NU=({delay:e,children:t})=>ry(e)((()=>t)),RU=({theme:t,onChange:n})=>{const r={system:e(Jp,{}),dark:e(eh,{color:"white"}),light:e(rh,{})},o="dark"===t?"light":"dark",i=`Switch to ${o} theme`;return g((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),n(o))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[o,n]),e("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":i,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),n(o)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(o))},children:r[t]})},MU=({returnThemeOnly:n})=>{const{theme:r,setTheme:o}=l(Lw),[i,a]=v(""),s=c((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,o(e),a("dark"===e?"Dark theme enabled":"Light theme enabled"))}),[o]);return g((()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;o(e?"dark":"light")}}),[r,o]),g((()=>{if(i){const e=setTimeout((()=>a("")),1e3);return()=>clearTimeout(e)}}),[i]),!0===n?e(RU,{theme:r,onChange:s}):t("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e("div",{className:"absolute bottom-0 left-0 m-4",children:e(RU,{theme:r,onChange:s})}),i&&e("div",{"aria-live":"polite",className:"sr-only",children:i})]})},AU=r.forwardRef((({icon:n,label:r,setValue:o,className:i,checked:a,defaultChecked:s,isCheckedClassName:l},c)=>{const u=cu(),d=Qo(u,(e=>e?.value));return g((()=>{void 0!==a&&u.setValue(a)}),[a,u]),g((()=>{void 0!==s&&void 0===a&&u.setValue(s)}),[s,a,u]),t(mu,{ref:c,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof d&&o?.({e:e,value:!d})},className:an("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",d&&l&&l,i),render:e("button",{type:"button","aria-label":r}),children:[n&&e("span",{className:"icon-md text-text-primary",children:n}),e("span",{className:"hidden truncate md:block",children:r})]})}));AU.displayName="CheckboxButton";const IU=u(((n,r)=>{const{title:o,description:i,main:a,buttons:s,leftButtons:l,selection:c,className:u,headerClassName:d,footerClassName:f,showCloseButton:p,showCancelButton:h=!0}=n,{selectHandler:m,selectClasses:g,selectText:v}=c||{};return t(cy,{showCloseButton:p,ref:r,className:an("shadow-2xl dark:bg-gray-700",u||""),onClick:e=>e.stopPropagation(),children:[t(uy,{className:an(d??""),children:[e(fy,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:o}),i&&e(py,{className:"text-gray-600 dark:text-gray-300",children:i})]}),e("div",{className:"px-6",children:a||null}),t(dy,{className:f,children:[e("div",{children:l||null}),t("div",{className:"flex h-auto gap-3",children:[h&&e(hy,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),s||null,c?e(hy,{onClick:m,className:`${g||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:v}):null]})]})]})})),TU="undefined"!=typeof document?o.useLayoutEffect:()=>{};const OU=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},LU=e=>{if(e&&"window"in e&&e.window===e)return e;return OU(e).defaultView||window};function DU(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}let FU=!1;function _U(){return FU}function VU(e,t){if(!_U())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:DU(n)?n.host:n.parentNode}return!1}const zU=(e=document)=>{var t;if(!_U())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function jU(e){return _U()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function HU(e){let t=null;return()=>(null==t&&(t=e()),t)}const BU=HU((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}(/^Mac/i)})),$U=HU((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)}));function WU(){let e=m(new Map),t=c(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)}),[]),n=c(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=c((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return g((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function UU(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function KU(e){let t=m({isFocused:!1,observer:null});TU((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=m(null);return TU((()=>{t.current=e}),[e]),c(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{if(t.current.isFocused=!1,r.disabled){let t=UU(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let GU=!1,qU=null,XU=new Set,YU=new Map,ZU=!1,QU=!1;const JU={Tab:!0,Escape:!0};function eK(e,t){for(let n of XU)n(e,t)}function tK(e){ZU=!0,function(e){return!(e.metaKey||!BU()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(qU="keyboard",eK("keyboard",e))}function nK(e){qU="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ZU=!0,eK("pointer",e))}function rK(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||($U()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(ZU=!0,qU="virtual")}function oK(e){e.target!==window&&e.target!==document&&!GU&&e.isTrusted&&(ZU||QU||(qU="virtual",eK("virtual",e)),ZU=!1,QU=!1)}function iK(){ZU=!1,QU=!0}function aK(e){if("undefined"==typeof window||"undefined"==typeof document||YU.get(LU(e)))return;const t=LU(e),n=OU(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ZU=!0,r.apply(this,arguments)},n.addEventListener("keydown",tK,!0),n.addEventListener("keyup",tK,!0),n.addEventListener("click",rK,!0),t.addEventListener("focus",oK,!0),t.addEventListener("blur",iK,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",nK,!0),n.addEventListener("pointermove",nK,!0),n.addEventListener("pointerup",nK,!0)),t.addEventListener("beforeunload",(()=>{sK(e)}),{once:!0}),YU.set(t,{focus:r})}const sK=(e,t)=>{const n=LU(e),r=OU(e);t&&r.removeEventListener("DOMContentLoaded",t),YU.has(n)&&(n.HTMLElement.prototype.focus=YU.get(n).focus,r.removeEventListener("keydown",tK,!0),r.removeEventListener("keyup",tK,!0),r.removeEventListener("click",rK,!0),n.removeEventListener("focus",oK,!0),n.removeEventListener("blur",iK,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",nK,!0),r.removeEventListener("pointermove",nK,!0),r.removeEventListener("pointerup",nK,!0)),YU.delete(n))};function lK(){return"pointer"!==qU}"undefined"!=typeof document&&function(e){const t=OU(e);let n;"loading"!==t.readyState?aK(e):(n=()=>{aK(e)},t.addEventListener("DOMContentLoaded",n))}();const cK=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function uK(e,t,n){aK(),g((()=>{let t=(t,r)=>{(function(e,t,n){let r=OU(null==n?void 0:n.target);const o="undefined"!=typeof window?LU(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?LU(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?LU(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?LU(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!cK.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!JU[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(lK())};return XU.add(t),()=>{XU.delete(t)}}),t)}function dK(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=m({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=WU(),l=c((e=>{e.currentTarget.contains(e.target)&&i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(e),o&&o(!1))}),[n,o,i,s]),u=KU(l),d=c((e=>{if(!e.currentTarget.contains(e.target))return;const t=OU(e.target),n=zU(t);if(!i.current.isFocusWithin&&n===jU(e.nativeEvent)){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,u(e);let n=e.currentTarget;a(t,"focus",(e=>{if(i.current.isFocusWithin&&!VU(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let o=UU(r);l(o)}}),{capture:!0})}}),[r,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}let fK=!1,pK=0;function hK(e){"touch"===e.pointerType&&(fK=!0,setTimeout((()=>{fK=!1}),50))}function mK(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",hK),pK++,()=>{pK--,pK>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",hK)}}function gK(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=v(!1),l=m({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g(mK,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=WU(),{hoverProps:d,triggerHoverEnd:f}=a((()=>{let e=(e,t)=>{let o=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&o&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),s(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=r=>{fK&&"mouse"===r.pointerType||((r,i)=>{if(l.pointerType=i,o||"touch"===i||l.isHovered||!r.currentTarget.contains(r.target))return;l.isHovered=!0;let a=r.currentTarget;l.target=a,c(OU(r.target),"pointerover",(t=>{l.isHovered&&l.target&&!VU(l.target,t.target)&&e(t,t.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:i}),n&&n(!0),s(!0)})(r,r.pointerType)},i.onPointerLeave=t=>{!o&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}}),[t,n,r,o,l,c,u]);return g((()=>{o&&f({currentTarget:l.target},l.pointerType)}),[o]),{hoverProps:d,isHovered:i}}function vK(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=m({isFocused:!1,isFocusVisible:t||lK()}),[i,a]=v(!1),[s,l]=v((()=>o.current.isFocused&&o.current.isFocusVisible)),u=c((()=>l(o.current.isFocused&&o.current.isFocusVisible)),[]),d=c((e=>{o.current.isFocused=e,a(e),u()}),[u]);uK((e=>{o.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:f}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=c((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=KU(i),s=c((e=>{const t=OU(e.target),r=t?zU(t):zU();e.target===e.currentTarget&&r===jU(e.nativeEvent)&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=dK({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}var bK=Object.defineProperty,wK=(e,t,n)=>(((e,t,n)=>{t in e?bK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let yK=new class{constructor(){wK(this,"current",this.detect()),wK(this,"handoffState","pending"),wK(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function xK(e){var t,n;return yK.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}function CK(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function SK(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return CK((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=SK();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function kK(){let[e]=v(SK);return g((()=>()=>e.dispose()),[e]),e}let EK=(e,t)=>{yK.isServer?g(e,t):b(e,t)};function PK(e){let t=m(e);return EK((()=>{t.current=e}),[e]),t}let NK=function(e){let t=PK(e);return o.useCallback(((...e)=>t.current(...e)),[t])};let RK=i(void 0);function MK(){return l(RK)}function AK(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function IK(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,IK),r}var TK=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(TK||{}),OK=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(OK||{});function LK(){let e=function(){let e=m([]),t=c((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return c((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:FK;let l=_K(t,e);if(i)return DK(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return DK(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return IK(e?0:1,{0:()=>null,1:()=>DK({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return DK(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function DK(e,t={},n,r,o){let{as:i=n,children:a,refName:l="ref",...c}=HK(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let m={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){m["data-headlessui-state"]=n.join(" ");for(let e of n)m[`data-${e}`]=""}}if(i===h&&(Object.keys(jK(c)).length>0||Object.keys(jK(m)).length>0)){if(f(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>AK(t(...e),c.className):AK(t,c.className),r=n?{className:n}:{},i=_K(d.props,jK(HK(c,["ref"])));for(let e in m)e in i&&delete m[e];return p(d,Object.assign({},i,m,u,{ref:o(BK(d),u.ref)},r))}if(Object.keys(jK(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(jK(c)).concat(Object.keys(jK(m))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return s(i,Object.assign({},HK(c,["ref"]),i!==h&&u,i!==h&&m),d)}function FK(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function _K(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function VK(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function zK(e){var t;return Object.assign(u(e),{displayName:null!=(t=e.displayName)?t:e.name})}function jK(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function HK(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function BK(e){return o.version.split(".")[0]>="19"?e.props.ref:e.ref}function $K(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))UK(n,WK(t,r),o);return n}function WK(e,t){return e?e+"["+t+"]":t}function UK(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())UK(e,WK(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):$K(n,t,e)}var KK=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(KK||{});let GK=zK((function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:4==(4&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}};return LK()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})),qK=i(null);function XK({children:e}){let t=l(qK);if(!t)return o.createElement(o.Fragment,null,e);let{target:n}=t;return n?I(o.createElement(o.Fragment,null,e),n):null}function YK({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[a,s]=v(null),l=kK();return g((()=>{if(r&&a)return l.addEventListener(a,"reset",r)}),[a,t,r]),o.createElement(XK,null,o.createElement(ZK,{setForm:s,formId:t}),$K(e).map((([e,r])=>o.createElement(GK,{features:KK.Hidden,...jK({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...i})}))))}function ZK({setForm:e,formId:t}){return g((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:o.createElement(GK,{features:KK.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}let QK=i(void 0);function JK(){return l(QK)}function eG(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function tG(e){return eG(e)&&"tagName"in e}function nG(e){return tG(e)&&"accessKey"in e}function rG(e){return tG(e)&&"tabIndex"in e}function oG(e){return nG(e)&&"INPUT"===e.nodeName}function iG(e){return nG(e)&&"LABEL"===e.nodeName}function aG(e){return nG(e)&&"FIELDSET"===e.nodeName}function sG(e){return nG(e)&&"LEGEND"===e.nodeName}function lG(e){let t=e.parentElement,n=null;for(;t&&!aG(t);)sG(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(sG(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}let cG=Symbol();function uG(...e){let t=m(e);g((()=>{t.current=e}),[e]);let n=NK((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[cG])))?void 0:n}let dG=i(null);function fG(){let e=l(dG);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,fG),e}return e}dG.displayName="DescriptionContext";let pG=zK((function(e,t){let n=x(),r=MK(),{id:o=`headlessui-description-${n}`,...i}=e,s=fG(),l=uG(t);EK((()=>s.register(o)),[o,s.register]);let c=r||!1,u=a((()=>({...s.slot,disabled:c})),[s.slot,c]),d={ref:l,...s.props,id:o};return LK()({ourProps:d,theirProps:i,slot:u,defaultTag:"p",name:s.name||"Description"})}));Object.assign(pG,{});var hG=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(hG||{});let mG=i(null);function gG(){let e=l(mG);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gG),e}return e}function vG(e){var t,n,r;let o=null!=(n=null==(t=l(mG))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function bG({inherit:e=!1}={}){let t=vG(),[n,r]=v([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,a((()=>function(e){let t=NK((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=a((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return o.createElement(mG.Provider,{value:n},e.children)}),[r])]}mG.displayName="LabelContext";let wG=zK((function(e,t){var n;let r=x(),o=gG(),i=JK(),s=MK(),{id:l=`headlessui-label-${r}`,htmlFor:c=(null!=i?i:null==(n=o.props)?void 0:n.htmlFor),passive:u=!1,...d}=e,f=uG(t);EK((()=>o.register(l)),[l,o.register]);let p=NK((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!tG(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(iG(t)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),iG(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(oG(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),h=s||!1,m=a((()=>({...o.slot,disabled:h})),[o.slot,h]),g={ref:f,...o.props,id:l,htmlFor:c,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),LK()({ourProps:g,theirProps:d,slot:m,defaultTag:c?"label":"div",name:o.name||"Label"})})),yG=Object.assign(wG,{});function xG(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function CG(e,t=!1){let[n,r]=w((()=>({})),{}),o=a((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return EK((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let SG=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};var kG,EG,PG,NG=Object.defineProperty,RG=(e,t,n)=>(((e,t,n)=>{t in e?NG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n),MG=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},AG=(e,t,n)=>(MG(e,t,"read from private field"),n?n.call(e):t.get(e)),IG=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},TG=(e,t,n,r)=>(MG(e,t,"write to private field"),t.set(e,n),n);let OG=class{constructor(e){IG(this,kG,{}),IG(this,EG,new SG((()=>new Set))),IG(this,PG,new Set),RG(this,"disposables",SK()),TG(this,kG,e)}dispose(){this.disposables.dispose()}get state(){return AG(this,kG)}subscribe(e,t){let n={selector:e,callback:t,current:e(AG(this,kG))};return AG(this,PG).add(n),this.disposables.add((()=>{AG(this,PG).delete(n)}))}on(e,t){return AG(this,EG).get(e).add(t),this.disposables.add((()=>{AG(this,EG).get(e).delete(t)}))}send(e){let t=this.reduce(AG(this,kG),e);if(t!==AG(this,kG)){TG(this,kG,t);for(let e of AG(this,PG)){let t=e.selector(AG(this,kG));LG(e.current,t)||(e.current=t,e.callback(t))}for(let t of AG(this,EG).get(e.type))t(AG(this,kG),e)}}};function LG(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&DG(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&DG(e.entries(),t.entries()):!(!FG(e)||!FG(t))&&DG(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function DG(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function FG(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function _G(e){let[t,n]=e(),r=SK();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}}kG=new WeakMap,EG=new WeakMap,PG=new WeakMap;var VG=Object.defineProperty,zG=(e,t,n)=>(((e,t,n)=>{t in e?VG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),jG=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(jG||{});let HG={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},BG=class e extends OG{constructor(){super(...arguments),zG(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),zG(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return IK(t.type,HG,e,t)}};const $G=new SG((()=>BG.new()));var WG={exports:{}},UG={},KG=o;var GG="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},qG=KG.useSyncExternalStore,XG=KG.useRef,YG=KG.useEffect,ZG=KG.useMemo,QG=KG.useDebugValue;UG.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=XG(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=ZG((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,GG(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var s=qG(e,i[0],i[1]);return YG((function(){a.hasValue=!0,a.value=s}),[s]),QG(s),s},WG.exports=UG;var JG=WG.exports;function eq(e,t,n=LG){return JG.useSyncExternalStoreWithSelector(NK((t=>e.subscribe(tq,t))),NK((()=>e.state)),NK((()=>e.state)),NK(t),n)}function tq(e){return e}function nq(e,t){let n=x(),r=$G.get(t),[o,i]=eq(r,c((e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)]),[r,n]));return EK((()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)}),[r,e,n]),!!e&&(!i||o)}let rq=new Map,oq=new Map;function iq(e){var t;let n=null!=(t=oq.get(e))?t:0;return oq.set(e,n+1),0!==n||(rq.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>aq(e)}function aq(e){var t;let n=null!=(t=oq.get(e))?t:1;if(1===n?oq.delete(e):oq.set(e,n-1),1!==n)return;let r=rq.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,rq.delete(e))}let sq=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),lq=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var cq=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(cq||{}),uq=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(uq||{}),dq=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(dq||{});function fq(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(sq)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var pq=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(pq||{});function hq(e,t=0){var n;return e!==(null==(n=xK(e))?void 0:n.body)&&IK(t,{0:()=>e.matches(sq),1(){let t=e;for(;null!==t;){if(t.matches(sq))return!0;t=t.parentElement}return!1}})}var mq=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(mq||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let gq=["textarea","input"].join(",");function vq(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function bq(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?vq(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(lq)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):fq(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,gq))&&n}(s)&&s.select(),2}(fq(),t,{relativeTo:e})}function wq(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function yq(){return wq()||/Android/gi.test(window.navigator.userAgent)}function xq(e,t,n,r){let o=PK(n);g((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}}),[e,t,r])}const Cq=30;function Sq(e,t,n){let r=PK(n),o=c((function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!hq(o,pq.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r.current(e,o)}),[r,t]),i=m(null);xq(e,"pointerdown",(e=>{var t,n;yq()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),xq(e,"pointerup",(e=>{if(yq()||!i.current)return;let t=i.current;return i.current=null,o(e,(()=>t))}),!0);let a=m({x:0,y:0});xq(e,"touchstart",(e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY}),!0),xq(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=Cq||Math.abs(n-a.current.y)>=Cq))return o(e,(()=>rG(e.target)?e.target:null))}),!0),function(e,t,n,r){let o=PK(n);g((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}}),[e,t,r])}(e,"blur",(e=>o(e,(()=>function(e){return nG(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function kq(...e){return a((()=>xK(...e)),[...e])}var Eq=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(Eq||{});const Pq={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},Nq=200;function Rq(e,{trigger:t,action:n,close:r,select:o}){let i=m(null);xq(e&&null!==t,"pointerdown",(e=>{eG(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(i.current=new Date)})),xq(e&&null!==t,"pointerup",(e=>{if(null===i.current||!rG(e.target))return;let t=n(e),a=(new Date).getTime()-i.current.getTime();switch(i.current=null,t.kind){case 0:return;case 1:a>Nq&&(o(t.target),r());break;case 2:r()}}),{capture:!0})}function Mq(e,t){return a((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Aq(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Iq(){return wq()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=SK();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(rG(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);rG(a)&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(rG(e.target)&&function(e){return tG(e)&&"style"in e}(e.target))if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(rG(e.target)){if(oG(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{}}function Tq(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Oq=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:SK(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Tq(n)},o=[Iq(),Aq(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Lq(e,t,n=(()=>({containers:[]}))){let r=function(e){return N(e.subscribe,e.getSnapshot,e.getSnapshot)}(Oq),o=t?r.get(t):void 0,i=!!o&&o.count>0;return EK((()=>{if(t&&e)return Oq.dispatch("PUSH",t,n),()=>Oq.dispatch("POP",t,n)}),[e,t]),i}function Dq(e){return[e.screenX,e.screenY]}function Fq(){let e=m([-1,-1]);return{wasMoved(t){let n=Dq(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Dq(t)}}}var _q,Vq;Oq.subscribe((()=>{let e=Oq.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Oq.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Oq.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(_q=null==process?void 0:process.env)?void 0:_q.NODE_ENV)&&void 0===(null==(Vq=null==Element?void 0:Element.prototype)?void 0:Vq.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var zq=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(zq||{});function jq(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Hq(e,t,n,r){let[o,i]=v(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=v(e),r=c((e=>n(e)),[t]),o=c((e=>n((t=>t|e))),[t]),i=c((e=>(t&e)===e),[t]),a=c((e=>n((t=>t&~e))),[n]),s=c((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(e&&o?3:0),u=m(!1),d=m(!1),f=kK();return EK((()=>{var o;if(e)return n&&i(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=SK();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{n(),i.requestAnimationFrame((()=>{i.add(function(e,t){var n,r;let o=SK();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,r))}))})),i.dispose}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;d.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))}),[e,n,t,f]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}const Bq={...r},$q=Bq.useInsertionEffect||(e=>e());function Wq(e){const t=r.useRef((()=>{}));return $q((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Uq="undefined"!=typeof document?b:g;let Kq=!1,Gq=0;const qq=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Gq++;const Xq=Bq.useId||function(){const[e,t]=r.useState((()=>Kq?qq():void 0));return Uq((()=>{null==e&&t(qq())}),[]),r.useEffect((()=>{Kq=!0}),[]),e};const Yq=r.createContext(null),Zq=r.createContext(null),Qq=()=>{var e;return(null==(e=r.useContext(Yq))?void 0:e.id)||null},Jq=()=>r.useContext(Zq);function eX(e){const{open:t=!1,onOpenChange:n,elements:o}=e,i=Xq(),a=r.useRef({}),[s]=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=Qq(),[c,u]=r.useState(o.reference),d=Wq(((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=r.useMemo((()=>({setPositionReference:u})),[]),p=r.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);return r.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f})),[t,d,p,s,i,f])}const tX="active",nX="selected";function rX(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[tX]:t,[nX]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[tX,nX].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function oX(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const iX=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=Bs(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[a];if(!p)return{};const h={...t,...await sg(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},m=(null==c?void 0:c.current)||f,g=await Vl(oX(h,m.scrollHeight),u),v=await Vl(h,{...u,elementContext:"reference"}),b=Math.max(0,g.top),w=h.y+b,y=Math.max(0,m.scrollHeight-b-Math.max(0,g.bottom));return m.style.maxHeight=y+"px",m.scrollTop=b,o&&(m.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||v.top>=-l||v.bottom>=-l?R.flushSync((()=>o(!0))):R.flushSync((()=>o(!1)))),r&&(r.current=await Vl(oX({...h,y:w},m.offsetHeight),u)),{y:w}}});function aX(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:s,onChange:l}=t,c=Wq(l),u=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),R.flushSync((()=>{c((e=>e+Math[l](n,i*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(f.current={...a.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,s,c]);const p=r.useMemo((()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(a.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&R.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}})),[o.floating,c,a,s]);return r.useMemo((()=>i?{floating:p}:{}),[i,p])}let sX=i({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});sX.displayName="FloatingContext";let lX=i(null);function cX(){return l(sX).setReference}function uX(){return l(sX).getReferenceProps}function dX(){let{getFloatingProps:e,slot:t}=l(sX);return c(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}function fX(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=l(lX),n=a((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);EK((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=l(sX);return a((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}lX.displayName="PlacementContext";let pX=4;function hX({children:e,enabled:t=!0}){let[n,o]=v(null),[i,s]=v(0),l=m(null),[c,u]=v(null);!function(e){EK((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(c);let d=t&&null!==n&&null!==c,{to:f="bottom",gap:p=0,offset:h=0,padding:g=0,inner:b}=function(e,t){var n,r,o;let i=mX(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=mX(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=mX(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(n,c),[w,y="center"]=f.split(" ");EK((()=>{d&&s(0)}),[d]);let{refs:x,floatingStyles:C,context:S}=function(e){void 0===e&&(e={});const{nodeId:t}=e,n=eX({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[a,s]=r.useState(null),[l,c]=r.useState(null),u=(null==i?void 0:i.reference)||a,d=r.useRef(null),f=Jq();Uq((()=>{u&&(d.current=u)}),[u]);const p=ig({...e,elements:{...i,...l&&{reference:l}}}),h=r.useCallback((e=>{const t=ll(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=r.useCallback((e=>{(ll(e)||null===e)&&(d.current=e,s(e)),(ll(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ll(e))&&p.refs.setReference(e)}),[p.refs]),g=r.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d})),[p.refs,m,h]),v=r.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),b=r.useMemo((()=>({...p,...o,refs:g,elements:v,nodeId:t})),[p,g,v,t,o]);return Uq((()=>{o.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),r.useMemo((()=>({...p,context:b,refs:g,elements:v})),[p,g,v,b])}({open:d,placement:"selection"===w?"center"===y?"bottom":`bottom-${y}`:"center"===y?`${w}`:`${w}-${y}`,strategy:"absolute",transform:!1,middleware:[sg({mainAxis:"selection"===w?0:p,crossAxis:h}),lg({padding:g}),"selection"!==w&&ug({padding:g}),"selection"===w&&b?iX({...b,padding:g,overflowRef:l,offset:i,minItemsVisible:pX,referenceOverflowThreshold:g,onFallbackChange(e){var t,n;if(!e)return;let r=S.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(pX,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=S.elements.floating)?void 0:t.childNodes)?n:[])if(nG(e)){let t=e.offsetTop,n=t+e.clientHeight+o,s=r.scrollTop,c=s+r.clientHeight;if(!(t>=s&&n<=c)){l=Math.max(0,Math.min(n,c)-Math.max(t,s)),a=e.clientHeight;break}i--}i>=1&&s((e=>{let t=a*i-l+o;return e>=t?e:t}))}}):null,dg({padding:g,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:_l}),[k=w,E=y]=S.placement.split("-");"selection"===w&&(k="selection");let P=a((()=>({anchor:[k,E].filter(Boolean).join(" ")})),[k,E]),N=aX(S,{overflowRef:l,onChange:s}),{getReferenceProps:R,getFloatingProps:M}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),i=r.useCallback((t=>rX(t,e,"reference")),t),a=r.useCallback((t=>rX(t,e,"floating")),n),s=r.useCallback((t=>rX(t,e,"item")),o);return r.useMemo((()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s})),[i,a,s])}([N]),A=NK((e=>{u(e),x.setFloating(e)}));return r.createElement(lX.Provider,{value:o},r.createElement(sX.Provider,{value:{setFloating:A,setReference:x.setReference,styles:C,getReferenceProps:R,getFloatingProps:M,slot:P}},e))}function mX(e,t,n=void 0){let r=kK(),o=NK(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=vX(e,t);return[o,n=>{let i=gX(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=vX(e,t);o!==c&&(n(c),o=c)}))}return r.dispose}]}return[n,null]})),i=a((()=>o(e,t)[0]),[e,t]),[s=i,l]=v();return EK((()=>{let[n,r]=o(e,t);if(l(n),r)return r(l)}),[e,t]),s}function gX(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...gX(r)]:[n]}return[]}function vX(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let bX=i(null);bX.displayName="OpenClosedContext";var wX=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(wX||{});function yX(){return l(bX)}function xX({value:e,children:t}){return o.createElement(bX.Provider,{value:e},t)}var CX=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(CX||{});function SX(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function kX(e){let t=NK(e),n=m(!1);g((()=>(n.current=!1,()=>{n.current=!0,CK((()=>{n.current&&t()}))})),[t])}function EX(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in r&&r.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(yK.isHandoffComplete);return t&&!1===yK.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>yK.handoff()),[]),!e&&t}let PX=i(!1);function NX(){return l(PX)}let RX=h,MX=zK((function(e,t){let{ownerDocument:n=null,...r}=e,o=m(null),i=uG(function(e,t=!0){return Object.assign(e,{[cG]:t})}((e=>{o.current=e})),t),a=kq(o),s=null!=n?n:a,c=function(e){let t=NX(),n=l(IX),[r,o]=v((()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(yK.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return g((()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))}),[r,e]),g((()=>{t||null!==n&&o(n.current)}),[n,o,t]),r}(s),[u]=v((()=>{var e;return yK.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),d=l(TX),f=EX();EK((()=>{!c||!u||c.contains(u)||(u.setAttribute("data-headlessui-portal",""),c.appendChild(u))}),[c,u]),EK((()=>{if(u&&d)return d.register(u)}),[d,u]),kX((()=>{var e;!c||!u||(eG(u)&&c.contains(u)&&c.removeChild(u),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}));let p=LK();return f&&c&&u?I(p({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:RX,name:"Portal"}),u):null}));let AX=h,IX=i(null);let TX=i(null),OX=zK((function(e,t){let n=uG(t),{enabled:r=!0,ownerDocument:i,...a}=e,s=LK();return r?o.createElement(MX,{...a,ownerDocument:i,ref:n}):s({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:RX,name:"Portal"})})),LX=zK((function(e,t){let{target:n,...r}=e,i={ref:uG(t)},a=LK();return o.createElement(IX.Provider,{value:n},a({ourProps:i,theirProps:r,defaultTag:AX,name:"Popover.Group"}))})),DX=Object.assign(OX,{Group:LX});function FX(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:BX)!==h||1===o.Children.count(e.children)}let _X=i(null);_X.displayName="TransitionContext";var VX=(e=>(e.Visible="visible",e.Hidden="hidden",e))(VX||{});let zX=i(null);function jX(e){return"children"in e?jX(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function HX(e,t){let n=PK(e),r=m([]),o=function(){let e=m(!1);return EK((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),i=kK(),s=NK(((e,t=OK.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(IK(t,{[OK.Unmount](){r.current.splice(a,1)},[OK.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!jX(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),l=NK((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,OK.Unmount)})),c=m([]),u=m(Promise.resolve()),d=m({enter:[],leave:[]}),f=NK(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=NK(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return a((()=>({children:r,register:l,unregister:s,onStart:f,onStop:p,wait:u,chains:d})),[l,s,r,f,p,d,u])}zX.displayName="NestingContext";let BX=h,$X=TK.RenderStrategy;let WX=zK((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...s}=e,l=m(null),c=uG(...FX(e)?[l,t]:null===t?[]:[t]);EX();let u=yX();if(void 0===n&&null!==u&&(n=(u&wX.Open)===wX.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=v(n?"visible":"hidden"),p=HX((()=>{n||f("hidden")})),[g,b]=v(!0),w=m([n]);EK((()=>{!1!==g&&w.current[w.current.length-1]!==n&&(w.current.push(n),b(!1))}),[w,n]);let y=a((()=>({show:n,appear:r,initial:g})),[n,r,g]);EK((()=>{n?f("visible"):!jX(p)&&null!==l.current&&f("hidden")}),[n,p]);let x={unmount:i},C=NK((()=>{var t;g&&b(!1),null==(t=e.beforeEnter)||t.call(e)})),S=NK((()=>{var t;g&&b(!1),null==(t=e.beforeLeave)||t.call(e)})),k=LK();return o.createElement(zX.Provider,{value:p},o.createElement(_X.Provider,{value:y},k({ourProps:{...x,as:h,children:o.createElement(UX,{ref:c,...x,...s,beforeEnter:C,beforeLeave:S})},theirProps:{},defaultTag:h,features:$X,visible:"visible"===d,name:"Transition"})))})),UX=zK((function(e,t){var n,r;let{transition:i=!0,beforeEnter:a,afterEnter:s,beforeLeave:c,afterLeave:u,enter:d,enterFrom:f,enterTo:p,entered:h,leave:b,leaveFrom:w,leaveTo:y,...x}=e,[C,S]=v(null),k=m(null),E=FX(e),P=uG(...E?[k,t,S]:null===t?[]:[t]),N=null==(n=x.unmount)||n?OK.Unmount:OK.Hidden,{show:R,appear:M,initial:A}=function(){let e=l(_X);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[I,T]=v(R?"visible":"hidden"),O=function(){let e=l(zX);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:L,unregister:D}=O;EK((()=>L(k)),[L,k]),EK((()=>{if(N===OK.Hidden&&k.current)return R&&"visible"!==I?void T("visible"):IK(I,{hidden:()=>D(k),visible:()=>L(k)})}),[I,k,L,D,R,N]);let F=EX();EK((()=>{if(E&&F&&"visible"===I&&null===k.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[k,I,F,E]);let _=A&&!M,V=M&&R&&A,z=m(!1),j=HX((()=>{z.current||(T("hidden"),D(k))}),O),H=NK((e=>{z.current=!0;let t=e?"enter":"leave";j.onStart(k,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==c||c())}))})),B=NK((e=>{let t=e?"enter":"leave";z.current=!1,j.onStop(k,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==u||u())})),"leave"===t&&!jX(j)&&(T("hidden"),D(k))}));g((()=>{E&&i||(H(R),B(R))}),[R,E,i]);let $=!(!i||!E||!F||_),[,W]=Hq($,C,R,{start:H,end:B}),U=jK({ref:P,className:(null==(r=AK(x.className,V&&d,V&&f,W.enter&&d,W.enter&&W.closed&&f,W.enter&&!W.closed&&p,W.leave&&b,W.leave&&!W.closed&&w,W.leave&&W.closed&&y,!W.transition&&R&&h))?void 0:r.trim())||void 0,...jq(W)}),K=0;"visible"===I&&(K|=wX.Open),"hidden"===I&&(K|=wX.Closed),R&&"hidden"===I&&(K|=wX.Opening),!R&&"visible"===I&&(K|=wX.Closing);let G=LK();return o.createElement(zX.Provider,{value:j},o.createElement(xX,{value:K},G({ourProps:U,theirProps:x,defaultTag:BX,features:$X,visible:"visible"===I,name:"Transition.Child"})))})),KX=zK((function(e,t){let n=null!==l(_X),r=null!==yX();return o.createElement(o.Fragment,null,!n&&r?o.createElement(WX,{ref:t,...e}):o.createElement(UX,{ref:t,...e}))})),GX=Object.assign(WX,{Child:KX,Root:WX});let qX=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function XX(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!nG(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return qX.test(a)&&(a=a.replace(qX,"")),a}function YX(e){let t=m(""),n=m("");return NK((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():XX(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return XX(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var ZX=Object.defineProperty,QX=(e,t,n)=>(((e,t,n)=>{t in e?ZX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),JX=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(JX||{}),eY=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(eY||{}),tY=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(tY||{}),nY=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOptions=5]="RegisterOptions",e[e.UnregisterOptions=6]="UnregisterOptions",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e[e.SortOptions=9]="SortOptions",e))(nY||{});function rY(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=vq(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let oY={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:CX.Nothing},listboxState:1,__demoMode:!1},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==o&&(n=o),{...e,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1}},2(e,t){var n,r,o,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===CX.Nothing)return{...s,activeOptionIndex:null};if(t.focus===CX.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===CX.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=SX(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...s,activeOptionIndex:a}}}}else if(t.focus===CX.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=SX(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeOptionIndex:o}}}}let l=rY(e),c=SX(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==CX.Nothing&&(r=SX(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex((e=>null==t?void 0:t(e.dataRef.current.value)));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:CX.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0){n=n.slice();for(let e of r.reverse())n.splice(e,1)}return{...e,options:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},9:e=>e.pendingShouldSort?{...e,...rY(e),pendingShouldSort:!1}:e};class iY extends OG{constructor(e){super(e),QX(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return IK(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex((t=>n(t,e)));return-1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:_G((()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,options:e.splice(0)}))]})),unregisterOption:_G((()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]})),goToOption:_G((()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]})),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{if(null!==this.state.activeOptionIndex){let{dataRef:e,id:t}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(e.current.value),this.send({type:2,focus:CX.Specific,id:t})}},selectOption:e=>{let t=this.state.options.find((t=>t.id===e));t&&this.actions.onChange(t.dataRef.current.value)},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:7,element:e})},setOptionsElement:e=>{this.send({type:8,element:e})}}),QX(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,(()=>{requestAnimationFrame((()=>{this.send({type:9})}))}));{let e=this.state.id,t=$G.get(null);this.disposables.add(t.on(jG.Push,(n=>{!t.selectors.isTop(n,e)&&0===this.state.listboxState&&this.actions.closeListbox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new({id:e,__demoMode:t=!1}){return new iY({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:CX.Nothing},__demoMode:t})}reduce(e,t){return IK(t.type,oY,e,t)}}const aY=i(null);function sY(e){let t=l(aY);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,lY),t}return t}function lY({id:e,__demoMode:t=!1}){let n=a((()=>iY.new({id:e,__demoMode:t})),[]);return kX((()=>n.dispose())),n}let cY=i(null);function uY(e){let t=l(cY);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,uY),t}return t}cY.displayName="ListboxDataContext";let dY=h;let fY=i(!1),pY=TK.RenderStrategy|TK.Static;let hY=h;let mY=zK((function(e,t){let n=x(),r=MK(),{value:i,defaultValue:s,form:l,name:u,onChange:d,by:f,invalid:p=!1,disabled:h=r||!1,horizontal:g=!1,multiple:b=!1,__demoMode:w=!1,...y}=e;const C=g?"horizontal":"vertical";let S=uG(t),k=function(e){let[t]=v(e);return t}(s),[E=(b?[]:void 0),P]=function(e,t,n){let[r,o]=v(n),i=void 0!==e,a=m(i),s=m(!1),l=m(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,NK((e=>(i||o(e),null==t?void 0:t(e))))]}(i,d,k),N=lY({id:n,__demoMode:w}),R=m({static:!1,hold:!1}),M=m(new Map),A=function(e=xG){return c(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}(f),I=c((e=>IK(T.mode,{[eY.Multi]:()=>E.some((t=>A(t,e))),[eY.Single]:()=>A(E,e)})),[E]),T=a((()=>({value:E,disabled:h,invalid:p,mode:b?eY.Multi:eY.Single,orientation:C,onChange:P,compare:A,isSelected:I,optionsPropsRef:R,listRef:M})),[E,h,p,b,C,P,A,I,R,M]);EK((()=>{N.state.dataRef.current=T}),[T]);let O=eq(N,(e=>e.listboxState)),L=$G.get(null),D=eq(L,c((e=>L.selectors.isTop(e,n)),[L,n])),[F,_]=eq(N,(e=>[e.buttonElement,e.optionsElement]));Sq(D,[F,_],((e,t)=>{N.send({type:nY.CloseListbox}),hq(t,pq.Loose)||(e.preventDefault(),null==F||F.focus())}));let V=a((()=>({open:O===JX.Open,disabled:h,invalid:p,value:E})),[O,h,p,E]),[z,j]=bG({inherit:!0}),H={ref:S},B=c((()=>{if(void 0!==k)return null==P?void 0:P(k)}),[P,k]),$=LK();return o.createElement(j,{value:z,props:{htmlFor:null==F?void 0:F.id},slot:{open:O===JX.Open,disabled:h}},o.createElement(hX,null,o.createElement(aY.Provider,{value:N},o.createElement(cY.Provider,{value:T},o.createElement(xX,{value:IK(O,{[JX.Open]:wX.Open,[JX.Closed]:wX.Closed})},null!=u&&null!=E&&o.createElement(YK,{disabled:h,data:{[u]:E},form:l,onReset:B}),$({ourProps:H,theirProps:y,slot:V,defaultTag:dY,name:"Listbox"}))))))})),gY=zK((function(e,t){let n=x(),r=JK(),o=uY("Listbox.Button"),i=sY("Listbox.Button"),{id:s=r||`headlessui-listbox-button-${n}`,disabled:u=o.disabled||!1,autoFocus:d=!1,...f}=e,p=uG(t,cX(),i.actions.setButtonElement),h=uX(),[g,b,w]=eq(i,(e=>[e.listboxState,e.buttonElement,e.optionsElement]));Rq(g===JX.Open,{trigger:b,action:c((e=>{if(null!=b&&b.contains(e.target))return Pq.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return nG(t)?Pq.Select(t):null!=w&&w.contains(e.target)?Pq.Ignore:Pq.Close}),[b,w]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let y=NK((e=>{switch(e.key){case hG.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case hG.Space:case hG.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:o.value?CX.Nothing:CX.First});break;case hG.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:o.value?CX.Nothing:CX.Last})}})),C=NK((e=>{if(e.key===hG.Space)e.preventDefault()})),S=NK((e=>{var t;if(0===e.button){if(lG(e.currentTarget))return e.preventDefault();i.state.listboxState===JX.Open?(A((()=>i.actions.closeListbox())),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:CX.Nothing}))}})),k=NK((e=>e.preventDefault())),E=vG([s]),P=function(){var e,t;return null!=(t=null==(e=l(dG))?void 0:e.value)?t:void 0}(),{isFocusVisible:N,focusProps:R}=vK({autoFocus:d}),{isHovered:M,hoverProps:I}=gK({isDisabled:u}),{pressed:T,pressProps:O}=function({disabled:e=!1}={}){let t=m(null),[n,r]=v(!1),o=kK(),i=NK((()=>{t.current=null,r(!1),o.dispose()})),a=NK((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=xK(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(n,"pointercancel",i,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}({disabled:u}),L=a((()=>({open:g===JX.Open,active:T||g===JX.Open,disabled:u,invalid:o.invalid,value:o.value,hover:M,focus:N,autofocus:d})),[g,o.value,u,M,N,T,o.invalid,d]),D=eq(i,(e=>e.listboxState===JX.Open)),F=VK(h(),{ref:p,id:s,type:Mq(e,b),"aria-haspopup":"listbox","aria-controls":null==w?void 0:w.id,"aria-expanded":D,"aria-labelledby":E,"aria-describedby":P,disabled:u||void 0,autoFocus:d,onKeyDown:y,onKeyUp:C,onKeyPress:k,onPointerDown:S},R,I,O);return LK()({ourProps:F,theirProps:f,slot:L,defaultTag:"button",name:"Listbox.Button"})})),vY=yG,bY=zK((function(e,t){let n=x(),{id:r=`headlessui-listbox-options-${n}`,anchor:i,portal:s=!1,modal:l=!0,transition:u=!1,...d}=e,f=function(e){return a((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(i),[p,h]=v(null);f&&(s=!0);let b=uY("Listbox.Options"),w=sY("Listbox.Options"),[y,C,S,k]=eq(w,(e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode])),E=kq(C),P=kq(S),N=yX(),[R,M]=Hq(u,p,null!==N?(N&wX.Open)===wX.Open:y===JX.Open);!function(e,t,n){let r=PK((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));g((()=>{if(!e)return;let n=null===t?null:nG(t)?t:t.current;if(!n)return;let o=SK();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),o.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),o.add((()=>e.disconnect()))}return()=>o.dispose()}),[t,r,e])}(R,C,w.actions.closeListbox),function(e,t,n=(()=>[document.body])){Lq(nq(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(!k&&(l&&y===JX.Open),P),function(e,{allowed:t,disallowed:n}={}){let r=nq(e,"inert-others");EK((()=>{var e,o;if(!r)return;let i=SK();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(iq(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let e of a){if(!e)continue;let t=xK(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(iq(e));n=n.parentElement}}return i.dispose}),[r,t,n])}(!k&&(l&&y===JX.Open),{allowed:c((()=>[C,S]),[C,S])});let I=!function(e,t){let n=m({left:0,top:0});if(EK((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(y!==JX.Open,C)&&R,T=function(e,t){let[n,r]=v(t);return!e&&n!==t&&r(t),e?n:t}(R&&y===JX.Closed,b.value),O=NK((e=>b.compare(T,e))),L=eq(w,(e=>{var t;if(null==f||null==(t=null==f?void 0:f.to)||!t.includes("selection"))return null;let n=e.options.findIndex((e=>O(e.dataRef.current.value)));return-1===n&&(n=0),n})),D=(()=>{if(null==f)return;if(null===L)return{...f,inner:void 0};let e=Array.from(b.listRef.current.values());return{...f,inner:{listRef:{current:e},index:L}}})(),[F,_]=fX(D),V=dX(),z=uG(t,f?F:null,w.actions.setOptionsElement,h),j=kK();g((()=>{var e;let t=S;t&&y===JX.Open&&t!==(null==(e=xK(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[y,S]);let H=NK((e=>{var t,n;switch(j.dispose(),e.key){case hG.Space:if(""!==w.state.searchQuery)return e.preventDefault(),e.stopPropagation(),w.actions.search(e.key);case hG.Enter:if(e.preventDefault(),e.stopPropagation(),null!==w.state.activeOptionIndex){let{dataRef:e}=w.state.options[w.state.activeOptionIndex];w.actions.onChange(e.current.value)}b.mode===eY.Single&&(A((()=>w.actions.closeListbox())),null==(t=w.state.buttonElement)||t.focus({preventScroll:!0}));break;case IK(b.orientation,{vertical:hG.ArrowDown,horizontal:hG.ArrowRight}):return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:CX.Next});case IK(b.orientation,{vertical:hG.ArrowUp,horizontal:hG.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:CX.Previous});case hG.Home:case hG.PageUp:return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:CX.First});case hG.End:case hG.PageDown:return e.preventDefault(),e.stopPropagation(),w.actions.goToOption({focus:CX.Last});case hG.Escape:return e.preventDefault(),e.stopPropagation(),A((()=>w.actions.closeListbox())),void(null==(n=w.state.buttonElement)||n.focus({preventScroll:!0}));case hG.Tab:e.preventDefault(),e.stopPropagation(),A((()=>w.actions.closeListbox())),bq(w.state.buttonElement,e.shiftKey?cq.Previous:cq.Next);break;default:1===e.key.length&&(w.actions.search(e.key),j.setTimeout((()=>w.actions.clearSearch()),350))}})),B=eq(w,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),$=a((()=>({open:y===JX.Open})),[y]),W=VK(f?V():{},{id:r,ref:z,"aria-activedescendant":eq(w,w.selectors.activeDescendantId),"aria-multiselectable":b.mode===eY.Multi||void 0,"aria-labelledby":B,"aria-orientation":b.orientation,onKeyDown:H,role:"listbox",tabIndex:y===JX.Open?0:void 0,style:{...d.style,..._,"--button-width":CG(C,!0).width},...jq(M)}),U=LK(),K=a((()=>b.mode===eY.Multi?b:{...b,isSelected:O}),[b,O]);return o.createElement(DX,{enabled:!!s&&(e.static||R),ownerDocument:E},o.createElement(cY.Provider,{value:K},U({ourProps:W,theirProps:d,slot:$,defaultTag:"div",features:pY,visible:I,name:"Listbox.Options"})))})),wY=zK((function(e,t){let n=x(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...s}=e,c=!0===l(fY),u=uY("Listbox.Option"),d=sY("Listbox.Option"),f=eq(d,(e=>d.selectors.isActive(e,r))),p=u.isSelected(i),h=m(null),g=YX(h),v=PK({disabled:o,value:i,domRef:h,get textValue(){return g()}}),b=uG(t,h,(e=>{e?u.listRef.current.set(r,e):u.listRef.current.delete(r)})),w=eq(d,(e=>d.selectors.shouldScrollIntoView(e,r)));EK((()=>{if(w)return SK().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[w,h]),EK((()=>{if(!c)return d.actions.registerOption(r,v),()=>d.actions.unregisterOption(r)}),[v,r,c]);let y=NK((e=>{var t;if(o)return e.preventDefault();d.actions.onChange(i),u.mode===eY.Single&&(A((()=>d.actions.closeListbox())),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0}))})),C=NK((()=>{if(o)return d.actions.goToOption({focus:CX.Nothing});d.actions.goToOption({focus:CX.Specific,id:r})})),S=Fq(),k=NK((e=>{S.update(e),!o&&(f||d.actions.goToOption({focus:CX.Specific,id:r},tY.Pointer))})),E=NK((e=>{S.wasMoved(e)&&(o||f||d.actions.goToOption({focus:CX.Specific,id:r},tY.Pointer))})),P=NK((e=>{S.wasMoved(e)&&(o||f&&d.actions.goToOption({focus:CX.Nothing}))})),N=a((()=>({active:f,focus:f,selected:p,disabled:o,selectedOption:p&&c})),[f,p,o,c]),R=c?{}:{id:r,ref:b,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:C,onPointerEnter:k,onMouseEnter:k,onPointerMove:E,onMouseMove:E,onPointerLeave:P,onMouseLeave:P},M=LK();return!p&&c?null:M({ourProps:R,theirProps:s,slot:N,defaultTag:"div",name:"Listbox.Option"})})),yY=zK((function(e,t){let{options:n,placeholder:r,...i}=e,s={ref:uG(t)},l=uY("ListboxSelectedOption"),c=a((()=>({})),[]),u=void 0===l.value||null===l.value||l.mode===eY.Multi&&Array.isArray(l.value)&&0===l.value.length,d=LK();return o.createElement(fY.Provider,{value:!0},d({ourProps:s,theirProps:{...i,children:o.createElement(o.Fragment,null,r&&u?r:n)},slot:c,defaultTag:hY,name:"ListboxSelectedOption"}))})),xY=Object.assign(mY,{Button:gY,Label:vY,Options:bY,Option:wY,SelectedOption:yY});function CY({title:r,value:i,disabled:a,setValue:s,availableValues:l,showAbove:c=!1,showLabel:u=!0,emptyTitle:d=!1,iconSide:f="right",optionIconSide:p="left",placeholder:h,containerClassName:g,optionsListClass:v,optionsClass:b,currentValueClass:w,subContainerClassName:y,className:x,renderOption:C,searchClassName:S,searchPlaceholder:k,showOptionIcon:E=!1}){const P=ty(),N={className:"top-full mt-3"};c&&(N.className="bottom-full mb-3");let R=r;d?R="":R||(R=P("com_ui_model"));const M=l??[],[A,I]=FL({availableOptions:M,placeholder:k,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:S,disabled:a}),T=null!=I?A:M,O=E&&null!=i&&null!=i.icon,L=m(null);return e("div",{className:an("flex items-center justify-center gap-2",g??""),children:e("div",{className:an("relative w-full",y??""),children:e(xY,{value:i,onChange:s,disabled:a,children:({open:r})=>t(n,{children:[t(gY,{ref:L,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!r&&L.current&&L.current.click())},className:an("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",x??""),children:[u&&e(yG,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:R}),e("span",{className:"inline-flex w-full truncate",children:t("span",{className:an("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",u?"":"text-xs",w??""),children:[!u&&!d&&t("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[R,":"]}),O&&"right"!==p&&e("span",{className:"icon-md flex items-center",children:i.icon}),O&&e("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:i.icon}),i?"string"!=typeof i?i.label??"":i:e("span",{className:"text-text-secondary",children:h})]})}),e("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:c?{transform:"scaleY(-1)"}:{},children:e("polyline",{points:"6 9 12 15 18 9"})})})]}),e(GX,{show:r,as:o.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...N,children:t(bY,{className:an("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",v??""),children:[C&&e(wY,{value:null,className:an("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",b??""),children:C()},"listbox-render-option"),I,T.map(((n,r)=>{if(!n)return null;const o="string"==typeof n?n:n.label??n.value??"",a="string"==typeof n?n:n.value??"",s="string"==typeof n?null:n.icon??null;let l=i;return"string"!=typeof l&&(l=l?.value??""),e(wY,{value:n,className:({active:e})=>an("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",b??""),children:t("span",{className:"flex items-center gap-1.5 truncate",children:[t("span",{className:an("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",n===i?"font-semibold":"","left"===f?"ml-4":""),children:[null!=s&&e("span",{className:an("mr-1","right"===p?"absolute right-0 pr-2":""),children:s}),o]}),a===l&&e("span",{className:an("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===f?"left-0 pl-2":"right-0 pr-3"),children:e(lW,{})})]})},r)}))]})})]})})})})}var SY=o.memo((({label:n="Value",ariaLabel:r="Value",min:o=0,max:i=100,step:a=1,stepClick:s=1,initialValue:l=0,showButtons:u=!0,onChange:d,disabled:f=!1})=>{const p=ty(),[h,b]=v(l),[w,y]=v(!1),x=m(null),C=`model-parameter-${r.toLowerCase().replace(/\s+/g,"-")}`,S=n&&n.startsWith("com_")?p(n):n,k=(e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})(a),E=c((e=>{const t=Math.min(Math.max(e,o),i),n=Object.is(t,-0)?0:t;b(n),d?.(n)}),[o,i,d]),P=c((e=>{E(parseFloat(e.target.value))}),[E]),N=c((()=>{E(h+s)}),[h,s,E]),R=c((()=>{E(h-s)}),[h,s,E]),M=c((e=>{"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),N()):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),R())}),[N,R]);return g((()=>{const e=x.current;if(e){const t=(h-o)/(i-o)*100;e.style.backgroundSize=`${t}% 100%`}}),[h,o,i]),t("div",{className:"w-full",children:[t("div",{className:"mb-2 flex items-center justify-between",children:[e("label",{htmlFor:C,className:"text-sm font-medium "+(f?"text-gray-400 dark:text-gray-400":""),children:S}),t("div",{className:"flex items-center gap-2",children:[e("output",{htmlFor:C,className:"select-none text-sm font-medium "+(f?"text-gray-400 dark:text-gray-400":""),"aria-live":"polite",children:h.toFixed(k).replace("-0.00","0.00")}),u&&t("div",{className:"flex items-center gap-1",children:[e("button",{type:"button",onClick:R,className:"rounded-md p-1 transition-colors "+(f?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Decrease ${n}`,disabled:f,children:e(Qp,{size:16})}),e("button",{type:"button",onClick:N,className:"rounded-md p-1 transition-colors "+(f?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Increase ${n}`,disabled:f,children:e(th,{size:16})})]})]})]}),t("div",{className:"relative w-full",children:[e("input",{ref:x,type:"range",id:C,min:o,max:i,step:a,value:h,onChange:P,onKeyDown:M,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),className:"slider-thumb h-2 w-full appearance-none rounded-lg bg-gradient-to-r from-gray-500 to-gray-500 bg-no-repeat focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 "+(f?"cursor-not-allowed opacity-50":"cursor-pointer"),tabIndex:0,style:{backgroundSize:"50% 100%",backgroundPosition:"left"},"aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":h,"aria-valuetext":`${h.toFixed(k).replace("-0.00","0.00")}`,disabled:f}),w?t("div",{className:"trab mt-1 flex justify-between",children:[e("span",{className:"text-xs text-gray-500",children:o}),e("span",{className:"text-xs text-gray-500",children:i})]}):e("div",{className:"mt-1",style:{height:"1rem"}})]})]})})),kY=i(null);function EY(){let e=0;return{run:t=>{e||(e=requestAnimationFrame((()=>{e=0,t()})))},cancel:()=>{cancelAnimationFrame(e),e=0}}}function PY(e){return"number"==typeof e?e:e.length}function NY(e){return e&&"object"==typeof e?e:{value:e}}function RY(e,t,n){var r;jn(n,"CollectionRenderer must be given an `id` prop.");const o=`${n}/${t}`;return null!=(r=NY(e).id)?r:o}function MY(e,t){if("number"==typeof e)return t>=e?null:{};const n=e[t];return n?"object"==typeof n?n:{value:n}:null}function AY(e,t,n){var r,o,i,a,s;const l=NY(e),c=(t="horizontal"===l.orientation||t)?"width":"height",u=l.style;if(u){const e=u[c];if("number"==typeof e)return e}const d=l.items;if(null==d?void 0:d.length){const e=!l.orientation||t&&"horizontal"===l.orientation||!t&&"vertical"===l.orientation,n=null!=(o=null!=(r=l.paddingStart)?r:l.padding)?o:0,c=null!=(a=null!=(i=l.paddingEnd)?i:l.padding)?a:0,u=e?n+c:0,f=(null!=(s=l.gap)?s:0)*(d.length-1)+u;if(e&&l.itemSize)return f+l.itemSize*d.length;const p=d.reduce(((e,n)=>e+AY(n,t)),f);if(p!==f)return p}const f=!1!==n?l.element||n:null;return(null==f?void 0:f.isConnected)?f.getBoundingClientRect()[c]:0}function IY(e,t){return"scrollX"in e?t?e.scrollX:e.scrollY:t?e.scrollLeft:e.scrollTop}function TY(e){const{defaultView:t,documentElement:n}=e.ownerDocument;return e===n?t:e}function OY(e,t,n){const r=IY(t,n),o=function(e,t,n){const r=Yn(e),o=null==r?void 0:r.document.documentElement,i=e.getBoundingClientRect(),a=n?i.left:i.top;if(t===o)return IY(r,n)+a;const s=t.getBoundingClientRect();return a-(n?s.left:s.top)+IY(t,n)}(e,t,n),i=r-o;return{start:i,end:i+(n?t.clientWidth:t.clientHeight)}}function LY(e){var t;const n=PY(e.items);let r,o=e.paddingStart;const i=function(e){const t=PY(e.items);let n=0,r=e.estimatedItemSize;const o=e=>{const t=n;n+=1,r=(r*t+e)/n};for(let n=0;n<t;n+=1){const t=MY(e.items,n),r=RY(t,n,e.baseId),i=e.data.get(r),a=e.elements.get(r),s=AY(t,e.horizontal,a);s?o(s):(null==i?void 0:i.rendered)&&o(i.end-i.start)}return r}(e);for(let a=0;a<n;a+=1){const n=MY(e.items,a),s=RY(n,a,e.baseId),l=e.data.get(s),c=null!=(t=null==l?void 0:l.rendered)&&t,u=(t,n=c)=>{o=o?o+e.gap:o;const i=o+t;Ln(l,{index:a,rendered:n,start:o,end:i})||(r||(r=new Map(e.data)),r.set(s,{index:a,rendered:n,start:o,end:i})),o=i},d=AY(n,e.horizontal,e.elements.get(s));d?u(d,!0):(null==l?void 0:l.rendered)?u(l.end-l.start,!0):u(i)}return r}function DY(t){var n,r,o=t,{store:i,items:s,initialItems:u=0,gap:d=0,itemSize:f,estimatedItemSize:p=40,overscan:h,orientation:b,padding:w=0,paddingStart:y=w,paddingEnd:x=w,persistentIndices:C,renderOnScroll:S=!0,renderOnResize:k=!!S,children:E}=o,P=Cn(o,["store","items","initialItems","gap","itemSize","estimatedItemSize","overscan","orientation","padding","paddingStart","paddingEnd","persistentIndices","renderOnScroll","renderOnResize","children"]);const N=fo(),R=Qo(i=i||N,(e=>null!=s?s:null==e?void 0:e.items));jn(null!=R,!1);let M=l(kY);i&&(null==M?void 0:M.store)!==i&&(M=null);const I=null==M?void 0:M.childrenData,T=null!=(n=null!=b?b:null==M?void 0:M.orientation)?n:"vertical",O=null!=(r=null!=h?h:null==M?void 0:M.overscan)?r:1,L=m(null),D=Ir(P.id),F="horizontal"===T,_=a((()=>new Map),[]),[V,z]=Dr(),[j,H]=v((()=>{if(!u)return[];const e=PY(R),t=Math.min(e,Math.abs(u));return Array.from({length:t},((t,n)=>u<0?e-n-1:n))})),B=a((()=>{if(!C)return j;const e=j.slice();for(const t of C)t<0||e.includes(t)||e.push(t);return e.sort(((e,t)=>e-t)),Ln(j,e)?j:e}),[j,C]),[$,W]=v((()=>{if(!D)return new Map;const e=(null==I?void 0:I.get(D))||new Map;if(null!=f)return e;if(!R)return e;return LY({baseId:D,items:R,data:e,gap:d,elements:_,horizontal:F,paddingStart:y,estimatedItemSize:p})||e})),U=a((()=>function(e){const t=PY(e.items),n=e.paddingStart+e.paddingEnd;if(!t)return n;const r=t-1,o=r*e.gap;if(null!=e.itemSize)return t*e.itemSize+o+n;const i=t*e.estimatedItemSize+o+n;if(!e.baseId)return i;const a=RY(MY(e.items,r),r,e.baseId),s=e.data.get(a);if(null==s?void 0:s.end)return s.end+e.paddingEnd;if(!Array.isArray(e.items))return i;const l=e.items.reduce(((t,n)=>t+AY(n,e.horizontal,!1)),0);return l?l+o+n:i}({baseId:D,items:R,data:$,gap:d,horizontal:F,itemSize:f,estimatedItemSize:p,paddingStart:y,paddingEnd:x})),[D,R,$,d,F,f,p,y,x]);g((()=>{D&&(null==I||I.set(D,$))}),[D,I,$]),g((()=>{if(null!=f)return;if(!D)return;if(!R)return;const e=LY({baseId:D,items:R,data:$,gap:d,elements:_,horizontal:F,paddingStart:y,estimatedItemSize:p});e&&W(e)}),[V,f,D,R,$,d,_,F,y,p]);const K=function(e){const[t,n]=v(null);return g((()=>{const t=null==e?void 0:e.current;if(!t)return;const r=lr(t);r&&n(r)}),[e]),t}(R?L:null),G=m({start:0,end:0}),q=c((()=>{const e=G.current;if(!R)return;if(!D)return;if(!e.end)return;if(!$.size&&!f)return;const t=PY(R),n=(e,t="start")=>{var n;if(f){const n=f*e+d*e+y;return"start"===t?n:n+f}const r=RY(MY(R,e),e,D),o=$.get(r);return null!=(n=null==o?void 0:o[t])?n:0},r=function(e,t,n){let r=0,o=PY(e)-1;for(;r<=o;){const e=(r+o)/2|0,i=n(e);if(i===t)return e;i<t?r=e+1:o=e-1}return r>0?r-1:0}(R,e.start,n);let o=r;for(;o<t&&n(o)<e.end;)o+=1;const i=o-r?O:0,a=Math.max(r-i,0),s=Math.min(o+i,t),l=Array.from({length:s-a},((e,t)=>t+a));H((e=>Ln(e,l)?e:l))}),[V,R,D,$,f,d,y,O]);g(q,[q]);const X=Rr(q);g((()=>{const e=L.current;e&&K&&(G.current=OY(e,K,F),X())}),[K,F,X]);const Y=!!S,Z=Fr(S);g((()=>{if(!Y)return;const e=L.current;if(!e)return;if(!K)return;const t=TY(K);if(!t)return;const n=EY(),r=t=>{n.run((()=>{Z(t)&&(G.current=OY(e,K,F),X())}))};return t.addEventListener("scroll",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("scroll",r)}}),[Y,K,Z,F,X]);const Q=!!k,J=Fr(k);g((()=>{if(!Q)return;const e=L.current;if(!e)return;if(!K)return;const t=TY(K);if(!t)return;const n=EY();if(t===K){if("function"!=typeof ResizeObserver)return;let t=!0;const r=new ResizeObserver((()=>{t?t=!1:n.run((()=>{J(K)&&(G.current=OY(e,K,F),X())}))}));return r.observe(K),()=>{n.cancel(),r.disconnect()}}const r=()=>{n.run((()=>{J(K)&&(G.current=OY(e,K,F),X())}))};return t.addEventListener("resize",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("resize",r)}}),[Q,K,J,F,X]),g((()=>{if("function"!=typeof IntersectionObserver)return;const e=L.current;if(!e)return;if(!K)return;const t=TY(K);if(!t)return;const n=new IntersectionObserver((()=>{G.current=OY(e,K,F),X()}),{root:K===t?K:null});return n.observe(e),()=>{n.disconnect()}}),[K,X]);const ee=a((()=>{if("function"==typeof ResizeObserver)return new ResizeObserver((()=>{A(z)}))}),[z]),te=c((e=>{e&&(f||(z(),_.set(e.id,e),null==ee||ee.observe(e)))}),[f,_,z,ee]),ne=c(((e,t)=>{var n,r;const o=RY(e,t,D),i=f?y+f*t+d*t:null!=(r=null==(n=$.get(o))?void 0:n.start)?r:0,a={id:o,ref:te,index:t,style:{position:"absolute",left:F?i:0,top:F?0:i}};if(f&&(a.style[F?"width":"height"]=f),null==e)return a;const s=NY(e);return xn(yn(yn({},s),a),{style:yn(yn({},s.style),a.style)})}),[D,$,f,y,d,F,te]),re=a((()=>B.map((e=>{if(e<0)return;const t=MY(R,e);return t?ne(t,e):void 0})).filter((e=>null!=e))),[R,B,ne]),oe=null==re?void 0:re.map((e=>null==E?void 0:E(e))),ie=P.style,ae=F?"width":"height",se=a((()=>yn({flex:"none",position:"relative",[ae]:U},ie)),[ie,ae,U]),le=a((()=>new Map),[]),ce=a((()=>({store:i,orientation:T,overscan:O,childrenData:le})),[i,T,O,le]);return P=_r(P,(t=>e(kY.Provider,{value:ce,children:t})),[ce]),P=xn(yn({id:D},P),{style:se,ref:Ar(L,P.ref)}),xn(yn({},P),{children:oe})}Kr((function(e){return qr("div",DY(e))}));var FY=RY;function _Y(e){return e&&"object"==typeof e?e:{value:e}}function VY(e){return e?"number"==typeof e?Array.from({length:e},((e,t)=>t+1)):e.reduce(((e,t,n)=>{var r,o;const i=_Y(t);if(i.items,!i.items)return e[n]=n+1,e;const a=null!=(r=e[n-1])?r:0,s=null!=(o=VY(i.items)[i.items.length-1])?o:0;return e[n]=a+s,e}),[]):[0]}function zY(e,t=1){for(let n=t>0?0:e.length-1;n>=0&&n<e.length;n+=t){const r=_Y(e[n]);if(r.items&&-1!==zY(r.items,t))return n;if(!r.disabled)return n}return-1}function jY(e,t,n){return e.findIndex(((e,r)=>{var o;const i=FY(e,r,n);if(i===t)return!0;const a=_Y(e);if(null==(o=a.items)?void 0:o.length)return-1!==jY(a.items,t,i);const s=t.split("/");return 1!==s.length&&s.some((e=>i===e))}))}function HY(e){var t=e,{store:n,orientation:r,persistentIndices:o,children:i,"aria-setsize":s,"aria-posinset":l=1}=t,c=Cn(t,["store","orientation","persistentIndices","children","aria-setsize","aria-posinset"]);const u=ho(),d=Qo(n=n||u,(e=>(null!=r?r:"both"===(null==e?void 0:e.orientation))?"vertical":null==e?void 0:e.orientation)),f=Qo(n,(e=>{var t;return e?"mounted"in e&&!e.mounted?0:null!=(t=c.items)?t:e.items:c.items})),p=Ir(c.id),h=a((()=>VY(f)),[f]),m=a((()=>{var e;return null!=(e=null!=s?s:h[h.length-1])?e:0}),[s,h]),g=a((()=>f?"number"==typeof f?0:f.length?zY(f):-1:-1),[f]),v=a((()=>f?"number"==typeof f?f-1:f.length?function(e){return zY(e,-1)}(f):-1:-1),[f]),b=Qo(n,"activeId"),w=a((()=>p&&f?null==b||"number"==typeof f?-1:f.length?jY(f,b,p):-1:-1),[p,f,b]),y=a((()=>{const e=[g,w,v].filter((e=>e>=0));return o?[...o,...e]:e}),[g,w,v,o]);return DY(xn(yn({id:p,store:n,orientation:d,persistentIndices:y},c),{children:e=>{var t;const n=xn(yn({},e),{"aria-setsize":m,"aria-posinset":l+(null!=(t=h[e.index-1])?t:0)});return null==i?void 0:i(n)}}))}Kr((function(e){return qr("div",HY(e))}));function BY(e){return e&&"object"==typeof e?e:{value:`${e}`}}function $Y(e,t){var n;const r=ri(t),o=[];for(const[i,a]of e.entries()){if(o.length===r.length)break;const e=BY(a);if(null!=e.value&&r.includes(e.value))o.push(i);else if(null==(n=e.items)?void 0:n.length){$Y(e.items,t).length&&o.push(i)}}return o}function WY(e){var t=e,{store:n,orientation:r,persistentIndices:o,items:i,value:s}=t,l=Cn(t,["store","orientation","persistentIndices","items","value"]);const c=xo(),u=Qo(n=n||c,(e=>e?e.mounted?null!=i?i:e.items:0:i)),d=Qo(n,(e=>null!=s?s:null==e?void 0:e.value)),f=a((()=>u?null==d||"number"==typeof u?[]:u.length?$Y(u,d):[]:[]),[u,d]),p=a((()=>o?[...o,...f]:f),[f,o]);return HY(yn({store:n,items:u,persistentIndices:p},l))}var UY=Kr((function(e){return qr("div",WY(e))}));var KY=P((function({selectedValue:r,displayValue:o,items:i,setValue:s,ariaLabel:l,searchPlaceholder:c,selectPlaceholder:u,containerClassName:d,isCollapsed:f,SelectIcon:p,showCarat:h,className:b,disabled:w,iconClassName:y,iconSide:x="left",selectId:C}){const[S,k]=v(""),E=m(null),[P,N]=v(null),R=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),M=Du({defaultItems:i.map(R),resetValueOnHide:!0,value:S,setValue:k}),A=Lc({combobox:M,defaultItems:i.map(R),value:r,setValue:s}),I=a((()=>{const e=Gw(i,S,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(R)}),[S,i]);g((()=>{E.current&&!f&&N(E.current.offsetWidth)}),[f]);const T=an("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",y),O=an("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",y);return t("div",{className:an("flex w-full items-center justify-center px-1",d),children:[e(ru,{store:A,className:"sr-only",children:l}),t(Wc,{ref:E,store:A,id:C,disabled:w,className:an("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",f?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",b),children:[null!=p&&"left"===x&&e("div",{className:T,children:p}),!f&&t(n,{children:[e("span",{className:"flex-grow truncate text-left",children:null!=o?o||u:r||u}),null!=p&&"right"===x&&e("div",{className:T,children:p}),h&&e(Kp,{className:"h-4 w-4 text-text-secondary"})]})]}),t(su,{store:A,gutter:4,portal:!0,className:an("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:f?"300px":P??"300px"},children:[e("div",{className:"py-1.5",children:t("div",{className:"relative",children:[e(nh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e(zu,{store:M,autoSelect:!0,placeholder:c,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e("div",{className:"max-h-[300px] overflow-auto",children:e(Yu,{store:M,children:e(UY,{store:A,items:I,itemSize:36,overscan:5,children:({value:n,icon:r,label:o,...i})=>t(Ku,{...i,className:an("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e(tu,{value:n}),children:[null!=r&&"left"===x&&e("div",{className:O,children:r}),e("span",{className:"flex-grow truncate text-left",children:o}),null!=r&&"right"===x&&e("div",{className:O,children:r})]},i.id)})})})]})]})}));const GY=u(((n,r)=>{const o=ty(),{title:i,main:a,buttons:s,selection:l,className:c,leftButtons:u,description:d="",mainClassName:f,headerClassName:p,footerClassName:h,showCloseButton:m,overlayClassName:g,showCancelButton:v=!0}=n,{selectHandler:b,selectClasses:w,selectText:y,isLoading:x}=l||{};return t(SC,{overlayClassName:g,showCloseButton:m,ref:r,className:an("w-11/12 border-none bg-background text-foreground",c??""),onClick:e=>e.stopPropagation(),children:[t(kC,{className:an(p??""),children:[e(PC,{children:i}),d&&e(NC,{className:"items-center justify-center",children:d})]}),e("div",{className:an("px-0 py-2",f),children:null!=a?a:null}),t(EC,{className:h,children:[e("div",{children:null!=u?e("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:u}):null}),t("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[v&&e(xC,{asChild:!0,children:e(mh,{variant:"outline",children:o("com_ui_cancel")})}),null!=s?s:null,l?e(xC,{onClick:b,disabled:x,className:`${w??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===x?e(aW,{className:"size-4 text-white"}):y}):null]})]})]})})),qY=r.forwardRef((({className:n,options:o,onSelect:i,...a},s)=>{const[l,c]=r.useState(!1),[u,d]=r.useState(a.value||""),[f,p]=r.useState(-1),h=r.useRef(null),m=e=>{d(e),c(!1),p(-1),i&&i(e),a.onChange&&a.onChange({target:{value:e}})};return r.useEffect((()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&(c(!1),p(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),t("div",{className:"relative",ref:h,children:[t("div",{className:"relative",children:[e(ex,{...a,value:u,onChange:e=>{d(e.target.value),a.onChange&&a.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),l?p((e=>e<o.length-1?e+1:e)):c(!0);break;case"ArrowUp":e.preventDefault(),p((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),l&&-1!==f&&m(o[f]),c(!1);break;case"Escape":c(!1),p(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:an("bg-surface-secondary",n??""),ref:s}),e("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>c(!l),"aria-label":l?"Close dropdown":"Open dropdown",children:e("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),l&&e("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:o.map(((t,n)=>e("li",{role:"option","aria-selected":n===f,className:an("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",n===f?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>m(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),m(t))},tabIndex:0,children:t},n)))})]})}));qY.displayName="InputWithDropdown";const XY=i({showToast:()=>({})});function YY(){return l(XY)}function ZY({children:t}){const{showToast:n}=Fw();return e(XY.Provider,{value:{showToast:n},children:t})}export{cn as Accordion,fn as AccordionContent,un as AccordionItem,dn as AccordionTrigger,Cp as AlertDialog,Ip as AlertDialogAction,Tp as AlertDialogCancel,Pp as AlertDialogContent,Ap as AlertDialogDescription,Rp as AlertDialogFooter,Np as AlertDialogHeader,Mp as AlertDialogTitle,Sp as AlertDialogTrigger,Z$ as AnimatedSearchInput,td as AnimatedTabs,EW as AnthropicIcon,HW as AnthropicMinimalIcon,SW as AppleIcon,Q$ as ArchiveIcon,QW as AssistantIcon,pW as AttachmentIcon,OW as AzureMinimalIcon,lF as Badge,rU as BedrockIcon,ZW as BirthdayIcon,J$ as Blocks,ih as Breadcrumb,dh as BreadcrumbEllipsis,sh as BreadcrumbItem,lh as BreadcrumbLink,ah as BreadcrumbList,ch as BreadcrumbPage,uh as BreadcrumbSeparator,mh as Button,DW as ChatGPTMinimalIcon,lW as CheckMark,Mh as Checkbox,AU as CheckboxButton,nU as CircleHelpIcon,sW as Clipboard,VW as CodeyIcon,Jh as Collapsible,tm as CollapsibleContent,em as CollapsibleTrigger,pz as Combobox,vW as ContinueIcon,KY as ControlCombobox,cW as CrossIcon,dW as CustomMinimalIcon,rW as DataIcon,mU as DataTable,Rw as DataTableColumnHeader,NU as DelayedRender,iy as Dialog,my as DialogButton,hy as DialogClose,cy as DialogContent,py as DialogDescription,dy as DialogFooter,uy as DialogHeader,CC as DialogOverlay,IU as DialogTemplate,fy as DialogTitle,ay as DialogTrigger,CW as DiscordIcon,RW as DotsIcon,gz as Dropdown,pw as DropdownMenu,Sw as DropdownMenuCheckboxItem,xw as DropdownMenuContent,mw as DropdownMenuGroup,Cw as DropdownMenuItem,Ew as DropdownMenuLabel,gw as DropdownMenuPortal,bw as DropdownMenuRadioGroup,kw as DropdownMenuRadioItem,Pw as DropdownMenuSeparator,Nw as DropdownMenuShortcut,vw as DropdownMenuSub,yw as DropdownMenuSubContent,ww as DropdownMenuSubTrigger,hw as DropdownMenuTrigger,EU as DropdownPopup,nW as EditIcon,XW as ExperimentIcon,wW as FacebookIcon,CU as FileUpload,gU as FormInput,tW as GPTIcon,MW as GearIcon,zW as GeminiIcon,xW as GithubIcon,bW as GoogleIcon,YW as GoogleIconChat,jW as GoogleMinimalIcon,Yy as HoverCard,Jy as HoverCardContent,Qy as HoverCardPortal,Zy as HoverCardTrigger,ex as Input,OS as InputCombobox,cC as InputNumber,AL as InputOTP,IL as InputOTPGroup,OL as InputOTPSeparator,TL as InputOTPSlot,qY as InputWithDropdown,vC as Label,fW as LightningIcon,NW as LinkIcon,BW as ListeningIcon,GW as LockIcon,uW as LogOutIcon,lU as MCPIcon,hW as MessagesSquared,TW as MinimalPlugin,iW as MobileSidebar,SY as ModelParameters,kU as MultiSelect,qW as NewChatIcon,Mw as NotificationSeverity,bC as OGDialog,xC as OGDialogClose,SC as OGDialogContent,NC as OGDialogDescription,EC as OGDialogFooter,kC as OGDialogHeader,CC as OGDialogOverlay,yC as OGDialogPortal,GY as OGDialogTemplate,PC as OGDialogTitle,wC as OGDialogTrigger,LW as OpenAIMinimalIcon,yW as OpenIDIcon,_W as PaLMIcon,FW as PaLMinimalIcon,HO as Pagination,BO as PaginationContent,GO as PaginationEllipsis,$O as PaginationItem,WO as PaginationLink,KO as PaginationNext,UO as PaginationPrevious,sU as PersonalizationIcon,AW as PinIcon,xU as PixelCard,eW as Plugin,vL as Progress,RC as QuestionMark,gW as RegenerateIcon,aF as ResizableHandle,sF as ResizableHandleAlt,iF as ResizablePanel,oF as ResizablePanelGroup,kW as SamlIcon,tU as SaveIcon,CY as SelectDropDown,PW as SendIcon,UW as SendMessageIcon,TS as Separator,oW as Sidebar,LS as Skeleton,CS as Slider,JW as Sparkles,eU as SpeechIcon,aW as Spinner,HB as SplitText,uU as SquirclePlusIcon,mW as StopGeneratingIcon,ik as Switch,ak as Table,lk as TableBody,pk as TableCaption,fk as TableCell,ck as TableFooter,dk as TableHead,sk as TableHeader,uk as TableRow,Kk as Tabs,Xk as TabsContent,Gk as TabsList,qk as TabsTrigger,Zk as Tag,Qk as Textarea,pE as TextareaAutosize,Lw as ThemeContext,Dw as ThemeProvider,MU as ThemeSelector,iU as ThumbDownIcon,oU as ThumbUpIcon,jE as Toast,XY as ToastContext,ZY as ToastProvider,jO as TooltipAnchor,IW as TrashIcon,KW as UserIcon,cU as VectorIcon,$W as VolumeIcon,WW as VolumeMuteIcon,aU as XAIcon,sn as applyFontSize,hh as buttonVariants,Iw as chatDirectionAtom,an as cn,Tw as fontSizeAtom,ln as getInitialTheme,Aw as langAtom,Ow as toastState,ey as useCombobox,ry as useDelayedRender,ty as useLocalize,ny as useMediaQuery,FL as useMultiSearch,oy as useOnClickOutside,Fw as useToast,YY as useToastContext};
2
59
  //# sourceMappingURL=index.es.js.map