jinn-cli 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/engines/mock.d.ts +16 -0
- package/dist/src/engines/mock.d.ts.map +1 -0
- package/dist/src/engines/mock.js +47 -0
- package/dist/src/engines/mock.js.map +1 -0
- package/dist/src/gateway/__tests__/costs.test.d.ts +2 -0
- package/dist/src/gateway/__tests__/costs.test.d.ts.map +1 -0
- package/dist/src/gateway/__tests__/costs.test.js +32 -0
- package/dist/src/gateway/__tests__/costs.test.js.map +1 -0
- package/dist/src/gateway/api.d.ts.map +1 -1
- package/dist/src/gateway/api.js +112 -1
- package/dist/src/gateway/api.js.map +1 -1
- package/dist/src/gateway/budgets.d.ts +16 -0
- package/dist/src/gateway/budgets.d.ts.map +1 -0
- package/dist/src/gateway/budgets.js +39 -0
- package/dist/src/gateway/budgets.js.map +1 -0
- package/dist/src/gateway/costs.d.ts +19 -0
- package/dist/src/gateway/costs.d.ts.map +1 -0
- package/dist/src/gateway/costs.js +39 -0
- package/dist/src/gateway/costs.js.map +1 -0
- package/dist/src/gateway/goals.d.ts +11 -0
- package/dist/src/gateway/goals.d.ts.map +1 -0
- package/dist/src/gateway/goals.js +72 -0
- package/dist/src/gateway/goals.js.map +1 -0
- package/dist/src/sessions/manager.d.ts.map +1 -1
- package/dist/src/sessions/manager.js +25 -0
- package/dist/src/sessions/manager.js.map +1 -1
- package/dist/src/sessions/registry.d.ts.map +1 -1
- package/dist/src/sessions/registry.js +26 -0
- package/dist/src/sessions/registry.js.map +1 -1
- package/dist/src/shared/types.d.ts +13 -0
- package/dist/src/shared/types.d.ts.map +1 -1
- package/dist/web/404.html +1 -1
- package/dist/web/_next/static/1HnqYp-z0yEkKBQwXlWh1/_buildManifest.js +1 -0
- package/dist/web/_next/static/1HnqYp-z0yEkKBQwXlWh1/_ssgManifest.js +1 -0
- package/dist/web/_next/static/chunks/144-548cab85cf18301a.js +1 -0
- package/dist/web/_next/static/chunks/155-592ad81a5c00a38a.js +1 -0
- package/dist/web/_next/static/chunks/192-bd69b67fd03b9f3d.js +1 -0
- package/dist/web/_next/static/chunks/458-85ba1833ffcc2e6c.js +1 -0
- package/dist/web/_next/static/chunks/51-ea7256657692ba90.js +1 -0
- package/dist/web/_next/static/chunks/625-93dc90080662b8f4.js +1 -0
- package/dist/web/_next/static/chunks/6d25620b-d9f90746a7f2178c.js +1 -0
- package/dist/web/_next/static/chunks/7273c211.7ff69b7844551452.js +1 -0
- package/dist/web/_next/static/chunks/743.588b42b673795913.js +1 -0
- package/dist/web/_next/static/chunks/865-b4eb9a132b937321.js +1 -0
- package/dist/web/_next/static/chunks/943.1c6d37432bcad8e8.js +1 -0
- package/dist/web/_next/static/chunks/app/_not-found/page-22b69e9fb96ef3fc.js +1 -0
- package/dist/web/_next/static/chunks/app/chat/page-28df51d87ba7e82b.js +1 -0
- package/dist/web/_next/static/chunks/app/cron/page-4ede68bcdb3e76ca.js +1 -0
- package/dist/web/_next/static/chunks/app/kanban/page-0e1b2a66378b8a6b.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-ab9ba2b24a88513d.js +1 -0
- package/dist/web/_next/static/chunks/app/logs/page-b2ea0e6b92c54706.js +1 -0
- package/dist/web/_next/static/chunks/app/org/page-05c8d33b3bf07d3d.js +1 -0
- package/dist/web/_next/static/chunks/app/page-57dcf41f8ef011a7.js +1 -0
- package/dist/web/_next/static/chunks/app/sessions/page-17f8dfdb90a924a7.js +1 -0
- package/dist/web/_next/static/chunks/app/settings/page-2903a5e9b8b0fc4a.js +1 -0
- package/dist/web/_next/static/chunks/app/skills/page-971feac69b3a1383.js +1 -0
- package/dist/web/_next/static/chunks/framework-33aa4529cc42a877.js +1 -0
- package/dist/web/_next/static/chunks/main-app-72a2d12a170701ef.js +1 -0
- package/dist/web/_next/static/chunks/main-c1296ca5f4362ccd.js +1 -0
- package/dist/web/_next/static/chunks/pages/_app-033e463982aa0ffc.js +1 -0
- package/dist/web/_next/static/chunks/pages/_error-de3b15b767c34e44.js +1 -0
- package/dist/web/_next/static/chunks/webpack-440561fa60ef8a8f.js +1 -0
- package/dist/web/_next/static/css/e79d77e53f783583.css +1 -0
- package/dist/web/chat.html +1 -1
- package/dist/web/chat.txt +12 -12
- package/dist/web/cron.html +1 -1
- package/dist/web/cron.txt +12 -12
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +12 -12
- package/dist/web/kanban.html +1 -1
- package/dist/web/kanban.txt +12 -12
- package/dist/web/logs.html +2 -2
- package/dist/web/logs.txt +12 -12
- package/dist/web/org.html +1 -1
- package/dist/web/org.txt +12 -12
- package/dist/web/sessions.html +1 -1
- package/dist/web/sessions.txt +10 -10
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +12 -12
- package/dist/web/skills.html +1 -1
- package/dist/web/skills.txt +12 -12
- package/dist/web.bak/404.html +1 -0
- package/dist/web.bak/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/web.bak/chat.html +1 -0
- package/dist/web.bak/chat.txt +20 -0
- package/dist/web.bak/cron.html +1 -0
- package/dist/web.bak/cron.txt +20 -0
- package/dist/web.bak/index.html +1 -0
- package/dist/web.bak/index.txt +20 -0
- package/dist/web.bak/kanban.html +1 -0
- package/dist/web.bak/kanban.txt +20 -0
- package/dist/web.bak/logs.html +7 -0
- package/dist/web.bak/logs.txt +20 -0
- package/dist/web.bak/org.html +1 -0
- package/dist/web.bak/org.txt +20 -0
- package/dist/web.bak/sessions.html +1 -0
- package/dist/web.bak/sessions.txt +17 -0
- package/dist/web.bak/settings.html +1 -0
- package/dist/web.bak/settings.txt +20 -0
- package/dist/web.bak/skills.html +1 -0
- package/dist/web.bak/skills.txt +20 -0
- package/package.json +5 -3
- /package/dist/{web → web.bak}/_next/static/QrKxazgwMrykF2yLwDvUM/_buildManifest.js +0 -0
- /package/dist/{web → web.bak}/_next/static/QrKxazgwMrykF2yLwDvUM/_ssgManifest.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/184-5a617386af9a1dd3.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/198-fd91406a158c5c25.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/517.62389e8d3c929c43.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/534-17c49c944e0d0fe1.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/573-070537ec2452d03e.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/590-2c34156c7417317e.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/700-ad04a2a5b3c8880f.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/7273c211.06e3b6021d90b73f.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/743-5bb03adbb0e4ddec.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/874.97d5a27895061057.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/8e6518bb-c26e82767f1faf66.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/_not-found/page-7d43a486b7014af3.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/chat/page-36edb6fc1d1e880b.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/costs/page-6c5cd46a6b3cde21.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/cron/page-210d9d333a7eed94.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/kanban/page-c32370bcd6a7c841.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/layout-3ad6b73a0904c24b.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/logs/page-7322a6789e16dca4.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/org/page-02263c5702e0fd3e.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/page-b68dcf7b8802c704.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/sessions/page-bf7ad2fac281c7d6.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/settings/page-d3b89563c42be2e5.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/app/skills/page-194f4e97f29ab581.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/framework-077b27ad7787463c.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/main-app-0c65af8a0fd99888.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/main-f1c74cefd4965abf.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/pages/_app-77a85fe7d6bca671.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/pages/_error-68febf4b34900064.js +0 -0
- /package/dist/{web → web.bak}/_next/static/chunks/webpack-0f39b7e91dce9791.js +0 -0
- /package/dist/{web → web.bak}/_next/static/css/b809b6af2d241fc8.css +0 -0
- /package/dist/{web → web.bak}/costs.html +0 -0
- /package/dist/{web → web.bak}/costs.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{129:(e,t,a)=>{a.d(t,{r:()=>g});var r=a(4130),s=a(7946),n=a(9919),l=a(4052),i=a(262),o=a(4641),c=a(9152),d=a(4139),x=a(8574),u=a(4723),p=a(6960),m=a(6063);let h={success:n.A,error:l.A,warning:i.A,info:o.A},v={success:"text-[var(--system-green)]",error:"text-[var(--system-red)]",warning:"text-[var(--system-orange)]",info:"text-[var(--system-blue)]"};function g(){let{notifications:e,unreadCount:t,markAllRead:a,markRead:n,clearAll:l}=(0,u.E)(),[i,o]=(0,s.useState)(!1),g=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){g.current&&!g.current.contains(e.target)&&o(!1)}},[i]),(0,r.jsxs)("div",{ref:g,className:"relative",children:[(0,r.jsxs)(p.$,{onClick:()=>o(e=>!e),"aria-label":"Notifications".concat(t>0?" (".concat(t," unread)"):""),variant:"ghost",size:"icon-sm",className:"relative text-muted-foreground",children:[(0,r.jsx)(c.A,{size:18}),t>0&&(0,r.jsx)("span",{className:"absolute right-0.5 top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-[var(--system-red)] px-1 text-[10px] font-bold leading-none text-white",children:t>99?"99+":t})]}),i&&(0,r.jsxs)("div",{className:"animate-scale-up absolute right-0 top-[calc(100%+8px)] z-[200] flex max-h-[480px] w-[360px] max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-[var(--radius-lg)] border border-border bg-[var(--material-thick)] shadow-[var(--shadow-overlay)] backdrop-blur-[40px]",children:[(0,r.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-3",children:[(0,r.jsx)("span",{className:"text-[15px] font-semibold text-foreground",children:"Notifications"}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[t>0&&(0,r.jsxs)("button",{onClick:a,title:"Mark all as read",className:"flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-[var(--system-blue)] transition-colors hover:bg-accent",children:[(0,r.jsx)(d.A,{size:14}),"Read all"]}),e.length>0&&(0,r.jsx)("button",{onClick:()=>{l(),o(!1)},title:"Clear all",className:"flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,r.jsx)(x.A,{size:14})})]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===e.length?(0,r.jsx)("div",{className:"px-4 py-8 text-center text-[13px] text-muted-foreground",children:"No notifications yet"}):e.map(e=>{let t=h[e.type];return(0,r.jsxs)("div",{onClick:()=>n(e.id),className:(0,m.cn)("flex cursor-pointer items-start gap-2.5 border-b border-border px-4 py-2.5 transition-colors hover:bg-accent",e.read?"bg-transparent":"bg-[var(--material-ultra-thin)]"),children:[(0,r.jsx)(t,{size:16,className:(0,m.cn)("mt-0.5 shrink-0",v[e.type])}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("div",{className:(0,m.cn)("text-[13px] leading-[1.3] text-foreground",e.read?"font-normal":"font-semibold"),children:e.title}),(0,r.jsx)("div",{className:"mt-0.5 truncate text-xs leading-[1.3] text-[var(--text-secondary)]",children:e.message})]}),(0,r.jsx)("span",{className:"mt-0.5 shrink-0 whitespace-nowrap text-[11px] text-[var(--text-quaternary)]",children:function(e){let t=Math.floor((Date.now()-e)/1e3);return t<60?"just now":t<3600?"".concat(Math.floor(t/60),"m ago"):t<86400?"".concat(Math.floor(t/3600),"h ago"):"".concat(Math.floor(t/86400),"d ago")}(e.timestamp)}),!e.read&&(0,r.jsx)("span",{className:"mt-[5px] size-2 shrink-0 rounded-full bg-[var(--system-blue)]"})]},e.id)})})]})]})}},280:(e,t,a)=>{a.d(t,{z:()=>r});let r=[{id:"dark",label:"Dark",emoji:"\uD83C\uDF11"},{id:"glass",label:"Glass",emoji:"\uD83E\uDE9F"},{id:"color",label:"Color",emoji:"\uD83C\uDFA8"},{id:"light",label:"Light",emoji:"☀️"},{id:"system",label:"System",emoji:"⚙️"}]},3160:(e,t,a)=>{a.d(t,{Q6:()=>d,tS:()=>c,te:()=>o});var r=a(7459),s=a(7122),n=a(8045),l=a(5465),i=a(6654);function o(){return(0,r.I)({queryKey:l.l.sessions.all,queryFn:()=>i.F.getSessions()})}function c(){let e=(0,s.jE)();return(0,n.n)({mutationFn:e=>i.F.deleteSession(e),onSuccess:()=>e.invalidateQueries({queryKey:l.l.sessions.all})})}function d(){let e=(0,s.jE)();return(0,n.n)({mutationFn:e=>i.F.bulkDeleteSessions(e),onSuccess:()=>e.invalidateQueries({queryKey:l.l.sessions.all})})}},6063:(e,t,a)=>{a.d(t,{cn:()=>n});var r=a(451),s=a(1287);function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}},6960:(e,t,a)=>{a.d(t,{$:()=>o});var r=a(4130);a(7946);var s=a(4322),n=a(1271),l=a(6063);let i=(0,s.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:a="default",size:s="default",asChild:o=!1,...c}=e,d=o?n.bL:"button";return(0,r.jsx)(d,{"data-slot":"button","data-variant":a,"data-size":s,className:(0,l.cn)(i({variant:a,size:s,className:t})),...c})}},7192:(e,t,a)=>{a.d(t,{M:()=>e_,v:()=>eE});var r=a(4130),s=a(7053),n=a.n(s),l=a(7946),i=a(5233),o=a.n(i),c=a(2467),d=a(4722),x=a(597),u=a(1360),p=a(208),m=a(2231),h=a(8838),v=a(280),g=a(483),f=a(1004),b=a(8831),j=a(5254),y=a(4481),N=a(216),k=a(6088),w=a(1428);let A=[{href:"/",label:"Home",icon:g.A},{href:"/chat",label:"Chat",icon:f.A},{href:"/org",label:"Organization",icon:b.A},{href:"/kanban",label:"Kanban",icon:j.A},{href:"/cron",label:"Cron",icon:y.A},{href:"/logs",label:"Activity",icon:N.A},{href:"/skills",label:"Skills",icon:k.A},{href:"/settings",label:"Settings",icon:w.A}];var z=a(6063);function C(e){let{theme:t}=e;switch(t){case"light":return(0,r.jsx)(x.A,{size:18});case"dark":return(0,r.jsx)(u.A,{size:18});default:return(0,r.jsx)(p.A,{size:18})}}function S(){var e,t;let a=(0,c.usePathname)(),{theme:s,setTheme:n}=(0,h.D)(),{settings:i}=(0,d.t0)(),[o,x]=(0,l.useState)(!1),[u,p]=(0,l.useState)([]),[g,f]=(0,l.useState)(!1),b=null!=(e=i.portalEmoji)?e:"\uD83E\uDD16",j=null!=(t=i.portalName)?t:"Jinn";return(0,l.useEffect)(()=>{fetch("/api/instances").then(e=>e.json()).then(p).catch(()=>{})},[]),(0,r.jsxs)("aside",{onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),className:(0,z.cn)("fixed inset-y-0 left-0 z-[60] hidden overflow-hidden border-r border-border bg-[var(--bg-secondary)] transition-[width] duration-200 ease-out lg:flex lg:flex-col",o?"w-[200px]":"w-14"),children:[(0,r.jsxs)("div",{className:"flex min-h-14 shrink-0 items-center gap-2.5 px-3.5 pb-3 pt-4",children:[(0,r.jsx)("span",{className:"w-7 shrink-0 text-center text-2xl leading-none",children:b}),(0,r.jsx)("span",{className:(0,z.cn)("whitespace-nowrap text-[17px] font-semibold text-foreground transition-opacity duration-200",o?"opacity-100":"opacity-0"),children:j})]}),(0,r.jsx)("nav",{className:"flex flex-1 flex-col gap-0.5 px-2",children:A.map(e=>{let t="/"===e.href?"/"===a:a.startsWith(e.href),s=e.icon;return(0,r.jsxs)("a",{href:e.href,className:(0,z.cn)("group flex h-10 items-center gap-2.5 rounded-md px-3 text-[13px] whitespace-nowrap transition-colors",t?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),"aria-label":e.label,"aria-current":t?"page":void 0,children:[(0,r.jsx)(s,{size:18,className:"shrink-0"}),(0,r.jsx)("span",{className:(0,z.cn)("transition-opacity duration-200",o?"opacity-100":"opacity-0"),children:e.label})]},e.href)})}),u.length>1&&(0,r.jsxs)("div",{className:"relative shrink-0 px-2 pt-1",children:[(0,r.jsxs)("button",{onClick:()=>f(e=>!e),"aria-label":"Switch instance",className:"flex h-10 w-full items-center gap-2.5 rounded-md px-3 text-[13px] text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,r.jsx)(m.A,{size:18,className:"shrink-0"}),(0,r.jsx)("span",{className:(0,z.cn)("transition-opacity duration-200",o?"opacity-100":"opacity-0"),children:"Switch"})]}),g&&o&&(0,r.jsx)("div",{className:"absolute bottom-full left-2 z-100 mb-1 min-w-[180px] rounded-xl border border-border bg-[var(--material-thick)] p-1 shadow-[var(--shadow-overlay)] backdrop-blur-xl",children:u.map(e=>(0,r.jsxs)("button",{onClick:()=>{!e.current&&e.running&&(window.location.href="http://localhost:".concat(e.port,"/chat")),f(!1)},className:(0,z.cn)("flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-[13px] transition-colors",e.current?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":e.running?"text-foreground hover:bg-accent":"cursor-default text-[var(--text-quaternary)]"),children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsx)("span",{className:"size-2 shrink-0 rounded-full",style:{background:e.running?"var(--system-green)":"var(--text-quaternary)"}})]},e.port))})]}),(0,r.jsx)("div",{className:"shrink-0 px-2 pb-3 pt-2",children:(0,r.jsxs)("button",{onClick:function(){let e=v.z.map(e=>e.id),t=e.indexOf(s);n(e[(t+1)%e.length])},"aria-label":"Theme: ".concat(s,". Click to cycle."),className:"flex h-10 w-full items-center gap-2.5 rounded-md px-3 text-[13px] text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,r.jsx)("span",{className:"shrink-0",children:(0,r.jsx)(C,{theme:s})}),(0,r.jsx)("span",{className:(0,z.cn)("capitalize transition-opacity duration-200",o?"opacity-100":"opacity-0"),children:s})]})})]})}var E=a(7103),F=a(6532),_=a(9309),L=a(841),B=a(1977),D=a(6429),I=a(7632);function q(e){let{className:t,...a}=e;return(0,r.jsx)(B.uB,{"data-slot":"command",className:(0,z.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...a})}function R(e){let{className:t,...a}=e;return(0,r.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,r.jsx)(D.A,{className:"size-4 shrink-0 opacity-50"}),(0,r.jsx)(B.uB.Input,{"data-slot":"command-input",className:(0,z.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...a})]})}function W(e){let{className:t,...a}=e;return(0,r.jsx)(B.uB.List,{"data-slot":"command-list",className:(0,z.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...a})}function K(e){let{...t}=e;return(0,r.jsx)(B.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function J(e){let{className:t,...a}=e;return(0,r.jsx)(B.uB.Group,{"data-slot":"command-group",className:(0,z.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...a})}function O(e){let{className:t,...a}=e;return(0,r.jsx)(B.uB.Separator,{"data-slot":"command-separator",className:(0,z.cn)("-mx-1 h-px bg-border",t),...a})}function P(e){let{className:t,...a}=e;return(0,r.jsx)(B.uB.Item,{"data-slot":"command-item",className:(0,z.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",t),...a})}var G=a(7459),M=a(5465),T=a(6654),H=a(3160);let Y="jinn-command-recent";function $(){try{let e=localStorage.getItem(Y);return e?JSON.parse(e):[]}catch(e){return[]}}let Q=[{id:"page-home",label:"Dashboard",icon:g.A,href:"/"},{id:"page-chat",label:"Chat",icon:f.A,href:"/chat"},{id:"page-org",label:"Organization",icon:b.A,href:"/org"},{id:"page-kanban",label:"Kanban",icon:j.A,href:"/kanban"},{id:"page-cron",label:"Cron",icon:y.A,href:"/cron"},{id:"page-costs",label:"Costs",icon:E.A,href:"/costs"},{id:"page-logs",label:"Activity",icon:N.A,href:"/logs"},{id:"page-skills",label:"Skills",icon:k.A,href:"/skills"},{id:"page-settings",label:"Settings",icon:w.A,href:"/settings"},{id:"page-goals",label:"Goals",icon:F.A,href:"/goals"}];function V(){var e;let{settings:t}=(0,d.t0)(),a=null!=(e=t.portalName)?e:"Jinn",[s,n]=(0,l.useState)(!1),[i,o]=(0,l.useState)([]),x=(0,c.useRouter)(),{data:u}=(0,G.I)({queryKey:M.l.org.all,queryFn:()=>T.F.getOrg()}),{data:p}=(0,G.I)({queryKey:M.l.cron.all,queryFn:()=>T.F.getCronJobs()}),{data:m}=(0,H.te)(),{data:h}=(0,G.I)({queryKey:M.l.skills.all,queryFn:()=>T.F.getSkills()});(0,l.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),n(e=>!e))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,l.useEffect)(()=>{s&&o($())},[s]);let v=(0,l.useCallback)((e,t)=>{let a=$().filter(e=>e.id!==t.id);a.unshift(t),localStorage.setItem(Y,JSON.stringify(a.slice(0,5))),n(!1),x.push(e)},[x]),g=Array.isArray(null==u?void 0:u.employees)?u.employees:[],j=Array.isArray(p)?p:[],N=Array.isArray(m)?m.slice(0,10):[],w=Array.isArray(h)?h.slice(0,10):[];return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(I.lG,{open:s,onOpenChange:n,children:(0,r.jsx)(I.Cf,{className:"p-0 gap-0 max-w-[560px]",children:(0,r.jsxs)(q,{className:"rounded-lg",children:[(0,r.jsx)(R,{placeholder:"Search ".concat(a,"...")}),(0,r.jsxs)(W,{children:[(0,r.jsx)(K,{children:"No results found."}),i.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(J,{heading:"Recent",children:i.map(e=>(0,r.jsxs)(P,{onSelect:()=>v(e.href,e),children:[(0,r.jsx)(_.A,{size:16,className:"mr-2 opacity-50"}),e.label]},e.id))}),(0,r.jsx)(O,{})]}),(0,r.jsx)(J,{heading:"Pages",children:Q.map(e=>(0,r.jsxs)(P,{onSelect:()=>v(e.href,{id:e.id,label:e.label,href:e.href,type:"page"}),children:[(0,r.jsx)(e.icon,{size:16,className:"mr-2 opacity-50"}),e.label]},e.id))}),(0,r.jsx)(J,{heading:"Actions",children:(0,r.jsxs)(P,{onSelect:()=>{n(!1),x.push("/chat")},children:[(0,r.jsx)(L.A,{size:16,className:"mr-2 opacity-50"}),"New Chat"]})}),g.length>0&&(0,r.jsx)(J,{heading:"Employees",children:g.slice(0,8).map(e=>(0,r.jsxs)(P,{onSelect:()=>v("/org",{id:"emp-".concat(e),label:e,href:"/org",type:"employee"}),children:[(0,r.jsx)(b.A,{size:16,className:"mr-2 opacity-50"}),e]},e))}),N.length>0&&(0,r.jsx)(J,{heading:"Recent Sessions",children:N.map(e=>{var t,a,s;let n=String(null!=(t=e.id)?t:""),l=String(null!=(s=null!=(a=e.title)?a:e.id)?s:"").slice(0,50);return(0,r.jsxs)(P,{onSelect:()=>v("/chat",{id:"session-".concat(n),label:l,href:"/chat",type:"session"}),children:[(0,r.jsx)(f.A,{size:16,className:"mr-2 opacity-50"}),l]},n)})}),j.length>0&&(0,r.jsx)(J,{heading:"Cron Jobs",children:j.slice(0,6).map(e=>{var t,a;let s=String(null!=(t=e.id)?t:""),n=String(null!=(a=e.name)?a:s);return(0,r.jsxs)(P,{onSelect:()=>v("/cron",{id:"cron-".concat(s),label:n,href:"/cron",type:"cron"}),children:[(0,r.jsx)(y.A,{size:16,className:"mr-2 opacity-50"}),n]},s)})}),w.length>0&&(0,r.jsx)(J,{heading:"Skills",children:w.map(e=>{var t;let a=String(null!=(t=e.name)?t:"");return(0,r.jsxs)(P,{onSelect:()=>v("/skills",{id:"skill-".concat(a),label:a,href:"/skills",type:"skill"}),children:[(0,r.jsx)(k.A,{size:16,className:"mr-2 opacity-50"}),a]},a)})})]})]})})})})}var U=a(9864),Z=a(1362),X=a(4535),ee=a(2845),et=a(8064);let ea="open-live-stream",er={info:{bg:"rgba(48,209,88,0.12)",color:"var(--system-green)",label:"INF"},warn:{bg:"rgba(255,159,10,0.12)",color:"var(--system-orange)",label:"WRN"},error:{bg:"rgba(255,69,58,0.12)",color:"var(--system-red)",label:"ERR"},debug:{bg:"var(--fill-secondary)",color:"var(--text-tertiary)",label:"DBG"}};function es(e){return"[".concat(e.timestamp,"] [").concat(e.level.toUpperCase(),"] ").concat(e.message)}function en(e){var t;let{entry:a}=e,[s,n]=(0,l.useState)(!1),i=null!=(t=er[a.level])?t:er.debug,o=a.message.length>100;return(0,r.jsxs)("div",{className:"border-b border-[var(--separator)] ".concat("error"===a.level?"bg-[rgba(255,69,58,0.03)]":""),children:[(0,r.jsxs)("button",{onClick:()=>o&&n(e=>!e),className:"flex items-center w-full px-3 py-[5px] gap-2 border-none bg-transparent text-left ".concat(o?"cursor-pointer":"cursor-default"),children:[o?(0,r.jsx)("span",{className:"text-[10px] text-[var(--text-tertiary)] shrink-0 inline-block transition-transform duration-150 ".concat(s?"rotate-90":"rotate-0"),children:"›"}):(0,r.jsx)("span",{className:"w-[10px] shrink-0"}),(0,r.jsx)("span",{className:"font-mono text-[var(--text-tertiary)] text-[10px] shrink-0 min-w-[58px]",children:function(e){if(!e)return"";let t=e.split(" ");return t.length>1?t[1]:e}(a.timestamp)}),(0,r.jsx)("span",{className:"text-[9px] font-bold tracking-wide px-[5px] py-px rounded-[3px] shrink-0 leading-[14px]",style:{background:i.bg,color:i.color},children:i.label}),(0,r.jsx)("span",{className:"font-mono text-[10px] leading-snug overflow-hidden text-ellipsis whitespace-nowrap flex-1 min-w-0 ".concat("error"===a.level?"text-[var(--system-red)]":"text-[var(--text-secondary)]"),children:a.message})]}),s&&o&&(0,r.jsx)("div",{className:"px-3 pt-1.5 pb-2 pl-[30px] border-t border-[var(--separator)] bg-[var(--fill-secondary)]",children:(0,r.jsx)("pre",{className:"font-mono text-[9px] leading-normal text-[var(--text-secondary)] whitespace-pre-wrap break-words m-0",children:a.message})})]})}function el(){let[e,t]=(0,l.useState)("hidden"),[a,s]=(0,l.useState)([]),[n,i]=(0,l.useState)(!0),[o,c]=(0,l.useState)(!1),[d,x]=(0,l.useState)(null),u=(0,l.useRef)(null),p=(0,l.useRef)(0),{events:m}=(0,ee.G)();(0,l.useEffect)(()=>{n&&u.current&&(u.current.scrollTop=u.current.scrollHeight)},[a,n]);let h=(0,l.useCallback)(()=>{if(!u.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:a}=u.current;t-e-a<40?i(!0):i(!1)},[]);(0,l.useEffect)(()=>{"expanded"===e&&T.F.getLogs(50).then(e=>{var t;s((null!=(t=e.lines)?t:[]).map(et.w)),x(null)}).catch(e=>{x(e instanceof Error?e.message:"Failed to load logs")})},[e]),(0,l.useEffect)(()=>{if("hidden"===e||0===m.length)return;let t=m[m.length-1];if("log"===t.event&&"object"==typeof t.payload&&null!==t.payload){let e=t.payload,a=e.line||e.message||JSON.stringify(t.payload),r=(0,et.w)(a,p.current++);s(e=>[...e,r].slice(-500))}},[m,e]);let v=(0,l.useCallback)(()=>{t("hidden")},[]),g=(0,l.useCallback)(async()=>{let e=a.map(es).join("\n");await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),1500)},[a]);return((0,l.useEffect)(()=>{function e(){t("expanded")}return window.addEventListener(ea,e),()=>window.removeEventListener(ea,e)},[]),"hidden"===e)?null:"collapsed"===e?(0,r.jsxs)("button",{onClick:()=>t("expanded"),className:"focus-ring flex items-center fixed bottom-5 right-5 z-50 px-3.5 py-2 rounded-[var(--radius-pill)] border border-[var(--separator)] bg-[var(--material-regular)] cursor-pointer gap-2 backdrop-blur-[40px] backdrop-saturate-[1.8] shadow-[0_4px_24px_rgba(0,0,0,0.25)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,r.jsx)("span",{className:"w-2 h-2 rounded-full bg-[var(--system-green)] shrink-0 animate-[lsw-pulse_2s_ease-in-out_infinite]"}),(0,r.jsx)("span",{className:"text-[length:var(--text-caption1)] text-[var(--text-secondary)] font-[var(--weight-medium)]",children:"Live Stream"}),a.length>0&&(0,r.jsx)("span",{className:"text-[length:var(--text-caption2)] text-[var(--text-tertiary)] bg-[var(--fill-secondary)] px-1.5 py-px rounded-[var(--radius-sm)]",children:a.length}),(0,r.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]}):(0,r.jsxs)("div",{className:"panel-slide-in fixed bottom-5 right-5 z-50 w-[440px] h-[400px] rounded-[var(--radius-lg)] border border-[var(--separator)] bg-[var(--material-regular)] flex flex-col overflow-hidden backdrop-blur-[40px] backdrop-saturate-[1.8] shadow-[0_8px_40px_rgba(0,0,0,0.35)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,r.jsxs)("div",{className:"flex items-center shrink-0 px-3.5 py-2.5 border-b border-[var(--separator)] gap-2",children:[(0,r.jsx)("span",{className:"w-2 h-2 rounded-full bg-[var(--system-green)] shrink-0 animate-[lsw-pulse_2s_ease-in-out_infinite]"}),(0,r.jsx)("span",{className:"text-[length:var(--text-footnote)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:"Live Stream"}),a.length>0&&(0,r.jsxs)("span",{className:"text-[length:var(--text-caption2)] text-[var(--text-tertiary)]",children:[a.length," line",1!==a.length?"s":""]}),(0,r.jsxs)("div",{className:"ml-auto flex gap-1",children:[(0,r.jsx)("button",{onClick:g,title:"Copy all logs",disabled:0===a.length,className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none transition-all duration-150 ".concat(o?"bg-[var(--accent-fill)] text-[var(--accent)]":"bg-transparent text-[var(--text-tertiary)]"," ").concat(0===a.length?"cursor-default opacity-30":"cursor-pointer opacity-100"),children:(0,r.jsx)(U.A,{size:14})}),(0,r.jsx)("button",{onClick:()=>t("collapsed"),className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none bg-transparent text-[var(--text-tertiary)] cursor-pointer transition-colors duration-150",title:"Minimize",children:(0,r.jsx)(Z.A,{size:14})}),(0,r.jsx)("button",{onClick:v,className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none bg-transparent text-[var(--text-tertiary)] cursor-pointer transition-colors duration-150",title:"Close",children:(0,r.jsx)(X.A,{size:14})})]})]}),d&&(0,r.jsx)("div",{className:"px-3.5 py-1.5 bg-[rgba(255,69,58,0.06)] border-b border-[rgba(255,69,58,0.15)] text-[length:var(--text-caption2)] text-[var(--system-red)] shrink-0",children:d}),(0,r.jsx)("div",{ref:u,onScroll:h,className:"flex-1 min-h-0 overflow-y-auto overflow-x-hidden",children:0===a.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-[var(--text-secondary)] gap-[var(--space-2)] p-[var(--space-4)]",children:[(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:(0,r.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),(0,r.jsx)("span",{className:"text-[length:var(--text-caption1)] font-[var(--weight-medium)]",children:"Waiting for log data..."})]}):(0,r.jsx)("div",{children:a.map(e=>(0,r.jsx)(en,{entry:e},e.id))})}),(0,r.jsx)("div",{className:"flex items-center shrink-0 px-3.5 py-2 border-t border-[var(--separator)] gap-2",children:!n&&a.length>0&&(0,r.jsx)("button",{onClick:()=>i(!0),className:"focus-ring px-2.5 py-1 rounded-[var(--radius-sm)] border-none cursor-pointer text-[length:var(--text-caption2)] font-[var(--weight-medium)] bg-[var(--fill-secondary)] text-[var(--text-secondary)]",children:"Scroll to bottom"})}),(0,r.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]})}var ei=a(9444),eo=a(4139),ec=a(1100),ed=a(9357),ex=a(9605);let eu=[{label:"Red",value:"#EF4444"},{label:"Orange",value:"#F97316"},{label:"Amber",value:"#F59E0B"},{label:"Yellow",value:"#EAB308"},{label:"Lime",value:"#84CC16"},{label:"Green",value:"#22C55E"},{label:"Emerald",value:"#10B981"},{label:"Cyan",value:"#06B6D4"},{label:"Blue",value:"#3B82F6"},{label:"Indigo",value:"#6366F1"},{label:"Violet",value:"#8B5CF6"},{label:"Pink",value:"#EC4899"}],ep=[{icon:f.A,name:"Chat",desc:"Direct conversations with any employee"},{icon:b.A,name:"Organization",desc:"Visual org chart of your AI team"},{icon:ei.A,name:"Kanban",desc:"Task boards for work management"},{icon:y.A,name:"Cron",desc:"Scheduled jobs with status monitoring"},{icon:E.A,name:"Costs",desc:"Token usage and cost tracking"},{icon:N.A,name:"Activity",desc:"Real-time logs and event stream"}];function em(e){var t;let{forceOpen:a,onClose:s}=e,{settings:n,setPortalName:i,setOperatorName:o,setAccentColor:x,setLanguage:u}=(0,d.t0)(),{theme:p,setTheme:m}=(0,h.D)(),g=(0,c.useRouter)(),[f,b]=(0,l.useState)(!1),[j,y]=(0,l.useState)(0),[N,k]=(0,l.useState)("forward"),[w,A]=(0,l.useState)(""),[z,C]=(0,l.useState)(""),[S,E]=(0,l.useState)(null!=(t=n.language)?t:"English");(0,l.useEffect)(()=>{if(a){var e,t;A(null!=(e=n.portalName)?e:""),C(null!=(t=n.operatorName)?t:""),b(!0);return}localStorage.getItem("jinn-onboarded")||b(!0)},[a]);let F=(0,l.useCallback)(()=>{0===j&&(i(w||null),o(z||null),u(S||"English")),j<3?(k("forward"),y(j+1)):(T.F.completeOnboarding({portalName:w||void 0,operatorName:z||void 0,language:S||void 0}).catch(()=>{}),a||localStorage.setItem("jinn-onboarded","true"),b(!1),null==s||s(),g.push("/chat"))},[j,w,z,a,s,i,o,g]),_=(0,l.useCallback)(()=>{j>0&&(k("back"),y(j-1))},[j]);return f?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",style:{backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:(0,r.jsxs)("div",{className:"animate-fade-in w-full max-w-[520px] mx-[var(--space-4)] bg-[var(--material-regular)] rounded-[var(--radius-lg)] border border-[var(--separator)] overflow-hidden flex flex-col max-h-[90vh]",style:{boxShadow:"0 24px 48px rgba(0,0,0,0.3)"},children:[(0,r.jsx)("div",{className:"flex justify-center gap-2 pt-[var(--space-4)] px-[var(--space-4)]",children:Array.from({length:4}).map((e,t)=>(0,r.jsx)("div",{className:"h-2 rounded-full transition-all duration-200",style:{width:t===j?24:8,background:t===j||t<j?"var(--accent)":"var(--fill-tertiary)",opacity:t<j?.5:1}},t))}),(0,r.jsxs)("div",{className:"px-[var(--space-5)] pt-[var(--space-5)] pb-[var(--space-4)] overflow-y-auto flex-1",children:[0===j&&(0,r.jsxs)("div",{className:"animate-fade-in text-center",children:[(0,r.jsx)("div",{className:"text-[56px] mb-[var(--space-3)] leading-none",children:"\ud83e\udd16"}),(0,r.jsxs)("h2",{className:"text-[length:var(--text-large-title)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-2)]",children:["Welcome to ",w||"Jinn"]}),(0,r.jsx)("p",{className:"text-[length:var(--text-body)] text-[var(--text-secondary)] leading-[var(--leading-relaxed)] max-w-[400px] mx-auto mb-[var(--space-5)]",children:"Your AI team management portal. Let's get you set up."}),(0,r.jsxs)("div",{className:"flex flex-col gap-[var(--space-3)] text-left",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"Portal Name"}),(0,r.jsx)("input",{type:"text",className:"apple-input w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)]",placeholder:"Jinn",value:w,onChange:e=>A(e.target.value),autoFocus:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"What should we call you?"}),(0,r.jsx)("input",{type:"text",className:"apple-input w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)]",placeholder:"Your Name",value:z,onChange:e=>C(e.target.value)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"Preferred Language"}),(0,r.jsxs)("select",{value:S,onChange:e=>E(e.target.value),className:"w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)] cursor-pointer",children:[(0,r.jsx)("option",{value:"English",children:"English"}),(0,r.jsx)("option",{value:"Spanish",children:"Spanish"}),(0,r.jsx)("option",{value:"French",children:"French"}),(0,r.jsx)("option",{value:"German",children:"German"}),(0,r.jsx)("option",{value:"Portuguese",children:"Portuguese"}),(0,r.jsx)("option",{value:"Italian",children:"Italian"}),(0,r.jsx)("option",{value:"Dutch",children:"Dutch"}),(0,r.jsx)("option",{value:"Russian",children:"Russian"}),(0,r.jsx)("option",{value:"Chinese",children:"Chinese"}),(0,r.jsx)("option",{value:"Japanese",children:"Japanese"}),(0,r.jsx)("option",{value:"Korean",children:"Korean"}),(0,r.jsx)("option",{value:"Arabic",children:"Arabic"}),(0,r.jsx)("option",{value:"Hindi",children:"Hindi"}),(0,r.jsx)("option",{value:"Bulgarian",children:"Bulgarian"})]})]})]})]},"step-0"),1===j&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"Choose your theme"}),(0,r.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"Pick the look that suits you. This applies live."}),(0,r.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(130px,1fr))] gap-[var(--space-3)]",children:v.z.map(e=>{let t=p===e.id;return(0,r.jsxs)("button",{onClick:()=>m(e.id),className:"flex flex-col items-center gap-[var(--space-2)] px-[var(--space-3)] py-[var(--space-4)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] cursor-pointer transition-all duration-150",style:{border:t?"2px solid var(--accent)":"2px solid var(--separator)"},children:[(0,r.jsx)("span",{className:"text-[28px]",children:e.emoji}),(0,r.jsx)("span",{className:"text-[length:var(--text-footnote)]",style:{fontWeight:t?"var(--weight-semibold)":"var(--weight-medium)",color:t?"var(--accent)":"var(--text-secondary)"},children:e.label})]},e.id)})})]},"step-1"),2===j&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"Pick an accent color"}),(0,r.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"Personalize with your favorite color."}),(0,r.jsx)("div",{className:"grid grid-cols-6 gap-[var(--space-3)] justify-items-center",children:eu.map(e=>{let t=n.accentColor===e.value;return(0,r.jsx)("button",{onClick:()=>x(e.value),"aria-label":e.label,title:e.label,className:"w-10 h-10 rounded-full border-none cursor-pointer flex items-center justify-center transition-all duration-100",style:{background:e.value,outline:t?"3px solid ".concat(e.value):"none",outlineOffset:3},children:t&&(0,r.jsx)(eo.A,{size:18,color:"#fff",strokeWidth:3})},e.value)})})]},"step-2"),3===j&&(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"You're all set!"}),(0,r.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"Here's what you can do."}),(0,r.jsx)("div",{className:"flex flex-col gap-[var(--space-2)]",children:ep.map(e=>{let t=e.icon;return(0,r.jsxs)("div",{className:"flex items-center gap-[var(--space-3)] p-[var(--space-3)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] border border-[var(--separator)]",children:[(0,r.jsx)("div",{className:"w-9 h-9 rounded-lg bg-[var(--accent-fill)] flex items-center justify-center shrink-0",children:(0,r.jsx)(t,{size:18,className:"text-[var(--accent)]"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:e.name}),(0,r.jsx)("div",{className:"text-[length:var(--text-caption1)] text-[var(--text-tertiary)]",children:e.desc})]})]},e.name)})})]},"step-3")]}),(0,r.jsxs)("div",{className:"flex justify-between items-center px-[var(--space-5)] pb-[var(--space-5)] pt-[var(--space-3)] gap-[var(--space-3)]",children:[j>0?(0,r.jsxs)("button",{onClick:_,className:"px-[var(--space-4)] py-[var(--space-2)] rounded-[var(--radius-md)] bg-[var(--fill-tertiary)] text-[var(--text-secondary)] border-none cursor-pointer text-[length:var(--text-subheadline)] font-[var(--weight-medium)] transition-all duration-150 inline-flex items-center gap-1.5",children:[(0,r.jsx)(ec.A,{size:16}),"Back"]}):(0,r.jsx)("div",{}),(0,r.jsxs)("button",{onClick:F,className:"px-[var(--space-6)] py-[var(--space-2)] rounded-[var(--radius-md)] bg-[var(--accent)] text-[var(--accent-contrast)] border-none cursor-pointer text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] transition-all duration-150 inline-flex items-center gap-1.5",children:[0===j?"Next":3===j?"Get Started":"Next",3===j?(0,r.jsx)(ed.A,{size:16}):(0,r.jsx)(ex.A,{size:16})]})]})]})}):null}var eh=a(129),ev=a(4723),eg=a(9919),ef=a(4052),eb=a(262),ej=a(4641);let ey={success:eg.A,error:ef.A,warning:eb.A,info:ej.A},eN={success:"var(--system-green)",error:"var(--system-red)",warning:"var(--system-orange)",info:"var(--system-blue)"};function ek(){let{toasts:e,dismissToast:t}=(0,ev.E)();return 0===e.length?null:(0,r.jsx)("div",{className:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 max-w-[380px] w-full pointer-events-none",children:e.map(e=>{let a=ey[e.type],s=eN[e.type];return(0,r.jsxs)("div",{className:"animate-slide-down pointer-events-auto flex items-start gap-2.5 px-3.5 py-3 bg-[var(--material-thick)] backdrop-blur-[40px] backdrop-saturate-[1.8] border border-[var(--separator)] rounded-[var(--radius-md)] shadow-[var(--shadow-overlay)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,r.jsx)(a,{size:18,className:"shrink-0 mt-px",style:{color:s}}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("div",{className:"text-[13px] font-semibold text-[var(--text-primary)] leading-[1.3]",children:e.title}),(0,r.jsx)("div",{className:"text-xs text-[var(--text-secondary)] mt-0.5 leading-[1.3] overflow-hidden text-ellipsis whitespace-nowrap",children:e.message}),(0,r.jsx)("div",{className:"text-[11px] text-[var(--text-quaternary)] mt-1",children:new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),(0,r.jsx)("button",{onClick:()=>t(e.id),"aria-label":"Dismiss",className:"bg-transparent border-none cursor-pointer text-[var(--text-tertiary)] p-0.5 shrink-0",children:(0,r.jsx)(X.A,{size:14})})]},e.id)})})}var ew=a(9327),eA=a(8565);function ez(){let{items:e}=(0,eA.i)();return 0===e.length?null:1===e.length?(0,r.jsx)("h1",{className:"text-lg font-semibold text-[var(--text-primary)] tracking-tight",children:e[0].label}):(0,r.jsx)("nav",{className:"flex items-center gap-1.5 text-sm","aria-label":"Breadcrumb",children:e.map((t,a)=>{let s=a===e.length-1;return(0,r.jsxs)("span",{className:"flex items-center gap-1.5",children:[a>0&&(0,r.jsx)(ew.A,{size:14,className:"text-[var(--text-quaternary)]"}),s||!t.href?(0,r.jsx)("span",{className:s?"text-[var(--text-primary)] font-medium":"text-[var(--text-tertiary)]",children:t.label}):(0,r.jsx)(o(),{href:t.href,className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)] transition-colors",children:t.label})]},a)})})}var eC=a(3198);function eS(e){var t,a;let{actions:s}=e,[i,x]=(0,l.useState)(!1),u=(0,c.usePathname)(),{settings:p}=(0,d.t0)(),m=null!=(t=p.portalEmoji)?t:"\uD83E\uDD16",h=null!=(a=p.portalName)?a:"Jinn";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"jsx-906cbf20b7aa1777 relative z-60 flex h-12 shrink-0 items-center border-b border-border bg-[var(--material-thick)] px-3 lg:hidden",children:[(0,r.jsx)("button",{onClick:()=>x(!0),"aria-label":"Open menu",className:"jsx-906cbf20b7aa1777 inline-flex size-9 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent",children:(0,r.jsx)(eC.A,{size:20})}),(0,r.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex flex-1 items-center justify-center text-center",children:[(0,r.jsx)("span",{className:"jsx-906cbf20b7aa1777 mr-1.5 text-lg",children:m}),(0,r.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-sm font-semibold text-foreground",children:h})]}),(0,r.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center gap-1",children:[s,(0,r.jsx)(eh.r,{})]})]}),i&&(0,r.jsxs)("div",{className:"jsx-906cbf20b7aa1777 fixed inset-0 z-100 lg:hidden",children:[(0,r.jsx)("div",{onClick:()=>x(!1),className:"jsx-906cbf20b7aa1777 absolute inset-0 bg-black/50 backdrop-blur-[1px]"}),(0,r.jsxs)("nav",{className:"jsx-906cbf20b7aa1777 absolute inset-y-0 left-0 flex w-[260px] animate-slide-in flex-col border-r border-border bg-[var(--bg-secondary)]",children:[(0,r.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center justify-between border-b border-border px-3.5 py-3",children:[(0,r.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center gap-2",children:[(0,r.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-[22px]",children:m}),(0,r.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-base font-semibold text-foreground",children:h})]}),(0,r.jsx)("button",{onClick:()=>x(!1),"aria-label":"Close menu",className:"jsx-906cbf20b7aa1777 inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,r.jsx)(X.A,{size:18})})]}),(0,r.jsx)("div",{className:"jsx-906cbf20b7aa1777 flex flex-1 flex-col gap-1 p-2",children:A.map(e=>{let t="/"===e.href?"/"===u:u.startsWith(e.href),a=e.icon;return(0,r.jsxs)(o(),{href:e.href,onClick:()=>x(!1),className:(0,z.cn)("flex h-11 items-center gap-3 rounded-[10px] px-3.5 text-[15px] transition-colors",t?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[(0,r.jsx)(a,{size:18,className:"jsx-906cbf20b7aa1777 shrink-0"}),e.label]},e.href)})})]})]}),(0,r.jsx)(n(),{id:"906cbf20b7aa1777",children:"@keyframes slideInLeft{from{transform:translatex(-100%)}to{transform:translatex(0)}}"})]})}function eE(e){let{children:t}=e;return(0,r.jsxs)("div",{className:"hidden items-center gap-2 lg:flex",children:[t,(0,r.jsx)(eh.r,{})]})}function eF(){let{items:e}=(0,eA.i)();return 0===e.length?null:(0,r.jsx)("div",{className:"hidden h-12 shrink-0 items-center border-b border-border bg-[var(--material-thick)] px-5 lg:flex",children:(0,r.jsx)(ez,{})})}function e_(e){let{children:t,mobileHeaderActions:a}=e;return(0,r.jsxs)("div",{className:"flex h-dvh overflow-hidden bg-background",children:[(0,r.jsx)(S,{}),(0,r.jsx)(V,{}),(0,r.jsxs)("main",{className:"flex-1 overflow-hidden flex flex-col lg:ml-[56px]",children:[(0,r.jsx)(eS,{actions:a}),(0,r.jsx)(eF,{}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:t})]}),(0,r.jsx)(ek,{}),(0,r.jsx)(el,{}),(0,r.jsx)(em,{})]})}},7632:(e,t,a)=>{a.d(t,{Cf:()=>x,Es:()=>p,L3:()=>m,c7:()=>u,lG:()=>o,rr:()=>h});var r=a(4130);a(7946);var s=a(4535),n=a(2535),l=a(6063),i=a(6960);function o(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"dialog",...t})}function c(e){let{...t}=e;return(0,r.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,l.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t),...a})}function x(e){let{className:t,children:a,showCloseButton:i=!0,...o}=e;return(0,r.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,r.jsx)(d,{}),(0,r.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,l.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",t),...o,children:[a,i&&(0,r.jsxs)(n.bm,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,r.jsx)(s.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,l.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function p(e){let{className:t,showCloseButton:a=!1,children:s,...o}=e;return(0,r.jsxs)("div",{"data-slot":"dialog-footer",className:(0,l.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...o,children:[s,a&&(0,r.jsx)(n.bm,{asChild:!0,children:(0,r.jsx)(i.$,{variant:"outline",children:"Close"})})]})}function m(e){let{className:t,...a}=e;return(0,r.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,l.cn)("text-lg leading-none font-semibold",t),...a})}function h(e){let{className:t,...a}=e;return(0,r.jsx)(n.VY,{"data-slot":"dialog-description",className:(0,l.cn)("text-sm text-muted-foreground",t),...a})}},8064:(e,t,a)=>{a.d(t,{b:()=>c,w:()=>o});var r=a(4130),s=a(7946);let n={info:"var(--system-green)",warn:"var(--system-orange)",error:"var(--system-red)",debug:"var(--text-tertiary)"},l={info:"rgba(48,209,88,0.12)",warn:"rgba(255,159,10,0.12)",error:"rgba(255,69,58,0.12)",debug:"var(--fill-secondary)"},i=[{key:"all",label:"All"},{key:"info",label:"Info"},{key:"warn",label:"Warn"},{key:"error",label:"Errors"}];function o(e,t){let a=e.match(/^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s+\[(\w+)\]\s*(.*)$/);return a?{id:"log-".concat(t),timestamp:a[1],level:a[2].toLowerCase(),message:a[3]}:{id:"log-".concat(t),timestamp:"",level:"info",message:e}}function c(e){let{lines:t}=e,[a,c]=(0,s.useState)("all"),[d,x]=(0,s.useState)(""),[u,p]=(0,s.useState)(null),m=t.map(o),h=m.filter(e=>("all"===a||e.level===a)&&(!d||!!e.message.toLowerCase().includes(d.toLowerCase()))),v={all:m.length,info:m.filter(e=>"info"===e.level).length,warn:m.filter(e=>"warn"===e.level).length,error:m.filter(e=>"error"===e.level).length};return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center flex-wrap gap-[var(--space-2)] mb-[var(--space-3)]",children:[i.map(e=>{let t=a===e.key;return(0,r.jsxs)("button",{onClick:()=>c(e.key),className:"focus-ring flex items-center flex-shrink-0 rounded-[20px] py-[6px] px-[14px] text-[length:var(--text-footnote)] font-[var(--weight-medium)] border-none cursor-pointer gap-[var(--space-2)] transition-all duration-200 ease-[var(--ease-smooth)]",style:{...t?{background:"var(--accent-fill)",color:"var(--accent)",boxShadow:"0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)"}:{background:"var(--fill-secondary)",color:"var(--text-primary)"}},children:[(0,r.jsx)("span",{children:e.label}),(0,r.jsx)("span",{className:"font-[var(--weight-semibold)]",style:{color:t?"var(--accent)":"var(--text-secondary)"},children:v[e.key]})]},e.key)}),(0,r.jsx)("input",{type:"text",placeholder:"Search logs...",value:d,onChange:e=>x(e.target.value),className:"focus-ring ml-auto py-[6px] px-3 text-[length:var(--text-footnote)] rounded-[var(--radius-sm)] border border-[var(--separator)] bg-[var(--fill-secondary)] text-[var(--text-primary)] outline-none min-w-40 max-w-60"})]}),0===h.length?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center h-[200px] text-[var(--text-secondary)] gap-[var(--space-2)]",children:[(0,r.jsx)("span",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-medium)]",children:0===m.length?"No log entries found":"No entries match this filter"}),(0,r.jsx)("span",{className:"text-[length:var(--text-footnote)] text-[var(--text-tertiary)]",children:0===m.length?"Log entries will appear here when available":"Try adjusting your filter or search"})]}):(0,r.jsx)("div",{className:"rounded-[var(--radius-md)] overflow-hidden bg-[var(--material-regular)]",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:h.map((e,t)=>{var a,s;let i=u===e.id,o=null!=(a=n[e.level])?a:"var(--text-tertiary)",c=e.message.length>120;return(0,r.jsxs)("div",{children:[t>0&&(0,r.jsx)("div",{className:"h-px bg-[var(--separator)] mx-[var(--space-4)]"}),(0,r.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":c?i:void 0,onClick:()=>c&&p(i?null:e.id),onKeyDown:t=>{c&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),p(i?null:e.id))},className:"flex items-center hover-bg focus-ring min-h-11 px-[var(--space-4)]",style:{cursor:c?"pointer":"default",background:"error"===e.level?"rgba(255,69,58,0.06)":void 0},children:[(0,r.jsx)("span",{className:"flex-shrink-0 rounded-full w-2 h-2",style:{background:o}}),e.timestamp&&(0,r.jsx)("span",{className:"flex-shrink-0 font-mono text-[length:var(--text-caption1)] text-[var(--text-tertiary)] ml-[var(--space-3)] min-w-[130px]",children:e.timestamp}),(0,r.jsx)("span",{className:"flex-shrink-0 text-[length:var(--text-caption2)] font-[var(--weight-semibold)] py-px px-1.5 rounded ml-[var(--space-2)] tracking-[0.04em] uppercase",style:{background:null!=(s=l[e.level])?s:"var(--fill-secondary)",color:o},children:e.level}),(0,r.jsx)("span",{className:"truncate text-[length:var(--text-footnote)] text-[var(--text-primary)] ml-[var(--space-3)] flex-1 min-w-0",children:c&&!i?e.message.slice(0,117)+"...":e.message}),c&&(0,r.jsx)("span",{"aria-hidden":"true",className:"text-[length:var(--text-footnote)] text-[var(--text-tertiary)] inline-block ml-[var(--space-2)] transition-transform duration-200 ease-[var(--ease-smooth)]",style:{transform:i?"rotate(90deg)":"rotate(0deg)"},children:"›"})]}),i&&c&&(0,r.jsx)("div",{className:"animate-slide-down px-[var(--space-4)] pb-[var(--space-4)]",children:(0,r.jsx)("div",{className:"rounded-[var(--radius-sm)] bg-[var(--fill-secondary)] p-[var(--space-3)] mt-[var(--space-2)]",children:(0,r.jsx)("pre",{className:"font-mono text-[length:var(--text-caption2)] text-[var(--text-secondary)] whitespace-pre-wrap break-words m-0 max-h-[300px] overflow-auto leading-[var(--leading-relaxed)]",children:e.message})})})]},e.id)})})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[458],{3188:(e,t,r)=>{function i(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function n(e,t){var r=i(e,t,"get");return r.get?r.get.call(e):r.value}function s(e,t,r){var n=i(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}r.d(t,{N:()=>h});var l,o=r(7946),u=r(5773),a=r(9289),f=r(1271),c=r(4130);function h(e){let t=e+"CollectionProvider",[r,i]=(0,u.A)(t),[n,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,i=o.useRef(null),s=o.useRef(new Map).current;return(0,c.jsx)(n,{scope:t,itemMap:s,collectionRef:i,children:r})};l.displayName=t;let h=e+"CollectionSlot",d=(0,f.TL)(h),p=o.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=s(h,r),l=(0,a.s)(t,n.collectionRef);return(0,c.jsx)(d,{ref:l,children:i})});p.displayName=h;let v=e+"CollectionItemSlot",y="data-radix-collection-item",m=(0,f.TL)(v),w=o.forwardRef((e,t)=>{let{scope:r,children:i,...n}=e,l=o.useRef(null),u=(0,a.s)(t,l),f=s(v,r);return o.useEffect(()=>(f.itemMap.set(l,{ref:l,...n}),()=>void f.itemMap.delete(l))),(0,c.jsx)(m,{...{[y]:""},ref:u,children:i})});return w.displayName=v,[{Provider:l,Slot:p,ItemSlot:w},function(t){let r=s(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},i]}var d=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,i=v(t),n=i>=0?i:r+i;return n<0||n>=r?-1:n}(e,t);return -1===r?void 0:e[r]}function v(e){return e!=e||0===e?0:Math.trunc(e)}l=new WeakMap,class e extends Map{set(e,t){return d.get(this)&&(this.has(e)?n(this,l)[n(this,l).indexOf(e)]=e:n(this,l).push(e)),super.set(e,t),this}insert(e,t,r){let i,s=this.has(t),o=n(this,l).length,u=v(e),a=u>=0?u:o+u,f=a<0||a>=o?-1:a;if(f===this.size||s&&f===this.size-1||-1===f)return this.set(t,r),this;let c=this.size+ +!s;u<0&&a++;let h=[...n(this,l)],d=!1;for(let e=a;e<c;e++)if(a===e){let n=h[e];h[e]===t&&(n=h[e+1]),s&&this.delete(t),i=this.get(n),this.set(t,r)}else{d||h[e-1]!==t||(d=!0);let r=h[d?e:e-1],n=i;i=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,i){let n=new e(this);return n.insert(t,r,i),n}before(e){let t=n(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=n(this,l).indexOf(e);return -1===i?this:this.insert(i,t,r)}after(e){let t=n(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let i=n(this,l).indexOf(e);return -1===i?this:this.insert(i+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return s(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&n(this,l).splice(n(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(n(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(n(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return n(this,l).indexOf(e)}keyAt(e){return p(n(this,l),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],n=0;for(let e of this)Reflect.apply(t,r,[e,n,this])&&i.push(e),n++;return new e(i)}map(t,r){let i=[],n=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,n,this])]),n++;return new e(i)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[i,n]=t,s=0,l=null!=n?n:this.at(0);for(let e of this)l=0===s&&1===t.length?e:Reflect.apply(i,this,[l,e,s,this]),s++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[i,n]=t,s=null!=n?n:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);s=e===this.size-1&&1===t.length?r:Reflect.apply(i,this,[s,r,e,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),i=this.get(r);t.set(r,i)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];let n=[...this.entries()];return n.splice(...r),new e(n)}slice(t,r){let i=new e,n=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==r&&r>0&&(n=r-1);for(let e=t;e<=n;e++){let t=this.keyAt(e),r=this.get(t);i.set(t,r)}return i}every(e,t){let r=0;for(let i of this){if(!Reflect.apply(e,t,[i,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,l,{writable:!0,value:void 0}),s(this,l,[...super.keys()]),d.set(this,!0)}}},7058:(e,t,r)=>{r.d(t,{jH:()=>s});var i=r(7946);r(4130);var n=i.createContext(void 0);function s(e){let t=i.useContext(n);return e||t||"ltr"}},9458:(e,t,r)=>{r.d(t,{RG:()=>R,bL:()=>T,q7:()=>z});var i=r(7946),n=r(3397),s=r(3188),l=r(9289),o=r(5773),u=r(5380),a=r(5822),f=r(3316),c=r(4068),h=r(7058),d=r(4130),p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[m,w,g]=(0,s.N)(y),[A,R]=(0,o.A)(y,[g]),[x,b]=A(y),k=i.forwardRef((e,t)=>(0,d.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(C,{...e,ref:t})})}));k.displayName=y;var C=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:s,loop:o=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:A,onEntryFocus:R,preventScrollOnEntryFocus:b=!1,...k}=e,C=i.useRef(null),E=(0,l.s)(t,C),F=(0,h.jH)(u),[I,T]=(0,c.i)({prop:m,defaultProp:null!=g?g:null,onChange:A,caller:y}),[z,M]=i.useState(!1),j=(0,f.c)(R),K=w(r),O=i.useRef(!1),[D,L]=i.useState(0);return i.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(p,j),()=>e.removeEventListener(p,j)},[j]),(0,d.jsx)(x,{scope:r,orientation:s,dir:F,loop:o,currentTabStopId:I,onItemFocus:i.useCallback(e=>T(e),[T]),onItemShiftTab:i.useCallback(()=>M(!0),[]),onFocusableItemAdd:i.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>L(e=>e-1),[]),children:(0,d.jsx)(a.sG.div,{tabIndex:z||0===D?-1:0,"data-orientation":s,...k,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,n.mK)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,n.mK)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!z){let t=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=K().filter(e=>e.focusable);S([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),b)}}O.current=!1}),onBlur:(0,n.mK)(e.onBlur,()=>M(!1))})})}),E="RovingFocusGroupItem",F=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:s=!0,active:l=!1,tabStopId:o,children:f,...c}=e,h=(0,u.B)(),p=o||h,v=b(E,r),y=v.currentTabStopId===p,g=w(r),{onFocusableItemAdd:A,onFocusableItemRemove:R,currentTabStopId:x}=v;return i.useEffect(()=>{if(s)return A(),()=>R()},[s,A,R]),(0,d.jsx)(m.ItemSlot,{scope:r,id:p,focusable:s,active:l,children:(0,d.jsx)(a.sG.span,{tabIndex:y?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:(0,n.mK)(e.onMouseDown,e=>{s?v.onItemFocus(p):e.preventDefault()}),onFocus:(0,n.mK)(e.onFocus,()=>v.onItemFocus(p)),onKeyDown:(0,n.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let n=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return I[n]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let i=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,i)=>e[(t+i)%e.length])}(r,i+1):r.slice(i+1)}setTimeout(()=>S(r))}}),children:"function"==typeof f?f({isCurrentTabStop:y,hasTabStop:null!=x}):f})})});F.displayName=E;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}var T=k,z=F}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51],{39:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},208:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},216:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},262:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},344:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(7946),o=globalThis?.document?n.useLayoutEffect:()=>{}},451:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n})},483:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},597:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("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"}]])},841:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},1004:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},1100:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},1164:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(7946),o=r(9289),i=r(5822),s=r(3316),a=r(4130),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:y,...g}=e,[b,w]=n.useState(null),k=(0,s.c)(v),x=(0,s.c)(y),E=n.useRef(null),S=(0,o.s)(t,e=>w(e)),R=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(R.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:p(E.current,{select:!0})},t=function(e){if(R.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,b,R.paused]),n.useEffect(()=>{if(b){m.add(R);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,k),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(p(n,{select:t}),document.activeElement!==r)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(l,k),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,x),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,x),m.remove(R)},0)}}},[b,k,x,R]);let C=n.useCallback(e=>{if(!r&&!d||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[h(t,e),h(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&p(i,{select:!0})):(e.preventDefault(),r&&p(o,{select:!0})):n===t&&e.preventDefault()}},[r,d,R.paused]);return(0,a.jsx)(i.sG.div,{tabIndex:-1,...g,ref:S,onKeyDown:C})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let 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(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=v(e,t)).unshift(t)},remove(t){var r;null==(r=(e=v(e,t))[0])||r.resume()}}}();function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},1271:(e,t,r)=>{"use strict";r.d(t,{TL:()=>s,bL:()=>a});var n=r(7946),o=r(9289),i=r(4130);function s(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var s;let e,a,l=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...s}=e,a=n.Children.toArray(o),l=a.find(u);if(l){let e=l.props.children,o=a.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...s,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var a=s("Slot"),l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},1287:(e,t,r)=>{"use strict";r.d(t,{QP:()=>ef});let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),o=[],i=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=i(e,t+1,o);if(r)return r}let s=r.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),l=s.length;for(let e=0;e<l;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},s=(e,t)=>{let r=n();for(let n in e)a(e[n],r,n,t);return r},a=(e,t,r,n)=>{let o=e.length;for(let i=0;i<o;i++)l(e[i],t,r,n)},l=(e,t,r,n)=>"string"==typeof e?void u(e,t,r):"function"==typeof e?void c(e,t,r,n):void d(e,t,r,n),u=(e,t,r)=>{(""===e?t:f(t,e)).classGroupId=r},c=(e,t,r,n)=>{if(h(e))return void a(e(n),t,r,n);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e})},d=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){let[i,s]=o[e];a(s,f(t,i),r,n)}},f=(e,t)=>{let r=e,o=t.split("-"),i=o.length;for(let e=0;e<i;e++){let t=o[e],i=r.nextPart.get(t);i||(i=n(),r.nextPart.set(t,i)),r=i}return r},h=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],m=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),v=/\s+/,y=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=y(e[n]))&&(r&&(r+=" "),r+=t);return r},g=[],b=e=>{let t=t=>t[e]||g;return t.isThemeGetter=!0,t},w=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S=/\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$/,R=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>x.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),j=e=>e.endsWith("%")&&O(e.slice(0,-1)),I=e=>E.test(e),N=()=>!0,P=e=>S.test(e)&&!R.test(e),T=()=>!1,z=e=>C.test(e),F=e=>A.test(e),L=e=>!Q(e)&&!V(e),D=e=>er(e,es,T),Q=e=>w.test(e),U=e=>er(e,ea,P),W=e=>er(e,el,O),q=e=>er(e,ec,N),B=e=>er(e,eu,T),$=e=>er(e,eo,T),K=e=>er(e,ei,F),G=e=>er(e,ed,z),V=e=>k.test(e),H=e=>en(e,ea),Z=e=>en(e,eu),X=e=>en(e,eo),Y=e=>en(e,es),J=e=>en(e,ei),ee=e=>en(e,ed,!0),et=e=>en(e,ec,!0),er=(e,t,r)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},en=(e,t,r=!1)=>{let n=k.exec(e);return!!n&&(n[1]?t(n[1]):r)},eo=e=>"position"===e||"percentage"===e,ei=e=>"image"===e||"url"===e,es=e=>"length"===e||"size"===e||"bg-size"===e,ea=e=>"length"===e,el=e=>"number"===e,eu=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,ed=e=>"shadow"===e;Symbol.toStringTag;let ef=((e,...t)=>{let r,n,a,l,u=e=>{let t=n(e);if(t)return t;let o=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(v),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let p=!!h,m=n(p?f.substring(0,h):f);if(!m){if(!p||!(m=n(f))){l=t+(l.length>0?" "+l:l);continue}p=!1}let v=0===c.length?"":1===c.length?c[0]:i(c).join(":"),y=d?v+"!":v,g=y+m;if(s.indexOf(g)>-1)continue;s.push(g);let b=o(m,p);for(let e=0;e<b.length;++e){let t=b[e];s.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return a(e,o),o};return l=c=>(n=(r=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(o,i)=>{r[o]=i,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,o=0,i=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===n&&0===o){if(":"===s){r.push(e.slice(i,a)),i=a+1;continue}if("/"===s){t=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}let a=0===r.length?e:e.slice(i),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),m(r,u,l,t&&t>i?t-i:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):m(p,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(e),sortModifiers:(e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{let r=[],n=[];for(let o=0;o<e.length;o++){let i=e[o],s="["===i[0],a=t.has(i);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}})(e),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return s(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})())(e);let r=e.split("-"),n=+(""===r[0]&&r.length>1);return i(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],i=r[e];return t?i?((e,t)=>{let r=Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(i,t):t:i||o}return r[e]||o}}})(e)}))(t.reduce((e,t)=>t(e),e()))).cache.get,a=r.cache.set,l=u,u(c)),(...e)=>l(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=y(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{let e=b("color"),t=b("font"),r=b("text"),n=b("font-weight"),o=b("tracking"),i=b("leading"),s=b("breakpoint"),a=b("container"),l=b("spacing"),u=b("radius"),c=b("shadow"),d=b("inset-shadow"),f=b("text-shadow"),h=b("drop-shadow"),p=b("blur"),m=b("perspective"),v=b("aspect"),y=b("ease"),g=b("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...k(),V,Q],E=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],R=()=>[V,Q,l],C=()=>[_,"full","auto",...R()],A=()=>[M,"none","subgrid",V,Q],P=()=>["auto",{span:["full",M,V,Q]},M,V,Q],T=()=>[M,"auto",V,Q],z=()=>["auto","min","max","fr",V,Q],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...R()],eo=()=>[_,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],ei=()=>[_,"screen","full","dvw","lvw","svw","min","max","fit",...R()],es=()=>[_,"screen","full","lh","dvh","lvh","svh","min","max","fit",...R()],ea=()=>[e,V,Q],el=()=>[...k(),X,$,{position:[V,Q]}],eu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ec=()=>["auto","cover","contain",Y,D,{size:[V,Q]}],ed=()=>[j,H,U],ef=()=>["","none","full",u,V,Q],eh=()=>["",O,H,U],ep=()=>["solid","dashed","dotted","double"],em=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ev=()=>[O,j,X,$],ey=()=>["","none",p,V,Q],eg=()=>["none",O,V,Q],eb=()=>["none",O,V,Q],ew=()=>[O,V,Q],ek=()=>[_,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[I],breakpoint:[I],color:[N],container:[I],"drop-shadow":[I],ease:["in","out","in-out"],font:[L],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[I],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[I],shadow:[I],spacing:["px",O],text:[I],"text-shadow":[I],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_,Q,V,v]}],container:["container"],columns:[{columns:[O,Q,V,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",V,Q]}],basis:[{basis:[_,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,_,"auto","initial","none",Q]}],grow:[{grow:["",O,V,Q]}],shrink:[{shrink:["",O,V,Q]}],order:[{order:[M,"first","last","none",V,Q]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pbs:[{pbs:R()}],pbe:[{pbe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:eo()}],"inline-size":[{inline:["auto",...ei()]}],"min-inline-size":[{"min-inline":["auto",...ei()]}],"max-inline-size":[{"max-inline":["none",...ei()]}],"block-size":[{block:["auto",...es()]}],"min-block-size":[{"min-block":["auto",...es()]}],"max-block-size":[{"max-block":["none",...es()]}],w:[{w:[a,"screen",...eo()]}],"min-w":[{"min-w":[a,"screen","none",...eo()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...eo()]}],h:[{h:["screen","lh",...eo()]}],"min-h":[{"min-h":["screen","lh","none",...eo()]}],"max-h":[{"max-h":["screen","lh",...eo()]}],"font-size":[{text:["base",r,H,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,et,q]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",j,Q]}],"font-family":[{font:[Z,B,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,V,Q]}],"line-clamp":[{"line-clamp":[O,"none",V,W]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",V,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ea()}],"text-color":[{text:ea()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ep(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",V,U]}],"text-decoration-color":[{decoration:ea()}],"underline-offset":[{"underline-offset":[O,"auto",V,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V,Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:el()}],"bg-repeat":[{bg:eu()}],"bg-size":[{bg:ec()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,V,Q],radial:["",V,Q],conic:[M,V,Q]},J,K]}],"bg-color":[{bg:ea()}],"gradient-from-pos":[{from:ed()}],"gradient-via-pos":[{via:ed()}],"gradient-to-pos":[{to:ed()}],"gradient-from":[{from:ea()}],"gradient-via":[{via:ea()}],"gradient-to":[{to:ea()}],rounded:[{rounded:ef()}],"rounded-s":[{"rounded-s":ef()}],"rounded-e":[{"rounded-e":ef()}],"rounded-t":[{"rounded-t":ef()}],"rounded-r":[{"rounded-r":ef()}],"rounded-b":[{"rounded-b":ef()}],"rounded-l":[{"rounded-l":ef()}],"rounded-ss":[{"rounded-ss":ef()}],"rounded-se":[{"rounded-se":ef()}],"rounded-ee":[{"rounded-ee":ef()}],"rounded-es":[{"rounded-es":ef()}],"rounded-tl":[{"rounded-tl":ef()}],"rounded-tr":[{"rounded-tr":ef()}],"rounded-br":[{"rounded-br":ef()}],"rounded-bl":[{"rounded-bl":ef()}],"border-w":[{border:eh()}],"border-w-x":[{"border-x":eh()}],"border-w-y":[{"border-y":eh()}],"border-w-s":[{"border-s":eh()}],"border-w-e":[{"border-e":eh()}],"border-w-bs":[{"border-bs":eh()}],"border-w-be":[{"border-be":eh()}],"border-w-t":[{"border-t":eh()}],"border-w-r":[{"border-r":eh()}],"border-w-b":[{"border-b":eh()}],"border-w-l":[{"border-l":eh()}],"divide-x":[{"divide-x":eh()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eh()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ep(),"hidden","none"]}],"divide-style":[{divide:[...ep(),"hidden","none"]}],"border-color":[{border:ea()}],"border-color-x":[{"border-x":ea()}],"border-color-y":[{"border-y":ea()}],"border-color-s":[{"border-s":ea()}],"border-color-e":[{"border-e":ea()}],"border-color-bs":[{"border-bs":ea()}],"border-color-be":[{"border-be":ea()}],"border-color-t":[{"border-t":ea()}],"border-color-r":[{"border-r":ea()}],"border-color-b":[{"border-b":ea()}],"border-color-l":[{"border-l":ea()}],"divide-color":[{divide:ea()}],"outline-style":[{outline:[...ep(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,V,Q]}],"outline-w":[{outline:["",O,H,U]}],"outline-color":[{outline:ea()}],shadow:[{shadow:["","none",c,ee,G]}],"shadow-color":[{shadow:ea()}],"inset-shadow":[{"inset-shadow":["none",d,ee,G]}],"inset-shadow-color":[{"inset-shadow":ea()}],"ring-w":[{ring:eh()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ea()}],"ring-offset-w":[{"ring-offset":[O,U]}],"ring-offset-color":[{"ring-offset":ea()}],"inset-ring-w":[{"inset-ring":eh()}],"inset-ring-color":[{"inset-ring":ea()}],"text-shadow":[{"text-shadow":["none",f,ee,G]}],"text-shadow-color":[{"text-shadow":ea()}],opacity:[{opacity:[O,V,Q]}],"mix-blend":[{"mix-blend":[...em(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":em()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":ev()}],"mask-image-linear-to-pos":[{"mask-linear-to":ev()}],"mask-image-linear-from-color":[{"mask-linear-from":ea()}],"mask-image-linear-to-color":[{"mask-linear-to":ea()}],"mask-image-t-from-pos":[{"mask-t-from":ev()}],"mask-image-t-to-pos":[{"mask-t-to":ev()}],"mask-image-t-from-color":[{"mask-t-from":ea()}],"mask-image-t-to-color":[{"mask-t-to":ea()}],"mask-image-r-from-pos":[{"mask-r-from":ev()}],"mask-image-r-to-pos":[{"mask-r-to":ev()}],"mask-image-r-from-color":[{"mask-r-from":ea()}],"mask-image-r-to-color":[{"mask-r-to":ea()}],"mask-image-b-from-pos":[{"mask-b-from":ev()}],"mask-image-b-to-pos":[{"mask-b-to":ev()}],"mask-image-b-from-color":[{"mask-b-from":ea()}],"mask-image-b-to-color":[{"mask-b-to":ea()}],"mask-image-l-from-pos":[{"mask-l-from":ev()}],"mask-image-l-to-pos":[{"mask-l-to":ev()}],"mask-image-l-from-color":[{"mask-l-from":ea()}],"mask-image-l-to-color":[{"mask-l-to":ea()}],"mask-image-x-from-pos":[{"mask-x-from":ev()}],"mask-image-x-to-pos":[{"mask-x-to":ev()}],"mask-image-x-from-color":[{"mask-x-from":ea()}],"mask-image-x-to-color":[{"mask-x-to":ea()}],"mask-image-y-from-pos":[{"mask-y-from":ev()}],"mask-image-y-to-pos":[{"mask-y-to":ev()}],"mask-image-y-from-color":[{"mask-y-from":ea()}],"mask-image-y-to-color":[{"mask-y-to":ea()}],"mask-image-radial":[{"mask-radial":[V,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ev()}],"mask-image-radial-to-pos":[{"mask-radial-to":ev()}],"mask-image-radial-from-color":[{"mask-radial-from":ea()}],"mask-image-radial-to-color":[{"mask-radial-to":ea()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":ev()}],"mask-image-conic-to-pos":[{"mask-conic-to":ev()}],"mask-image-conic-from-color":[{"mask-conic-from":ea()}],"mask-image-conic-to-color":[{"mask-conic-to":ea()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:el()}],"mask-repeat":[{mask:eu()}],"mask-size":[{mask:ec()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V,Q]}],filter:[{filter:["","none",V,Q]}],blur:[{blur:ey()}],brightness:[{brightness:[O,V,Q]}],contrast:[{contrast:[O,V,Q]}],"drop-shadow":[{"drop-shadow":["","none",h,ee,G]}],"drop-shadow-color":[{"drop-shadow":ea()}],grayscale:[{grayscale:["",O,V,Q]}],"hue-rotate":[{"hue-rotate":[O,V,Q]}],invert:[{invert:["",O,V,Q]}],saturate:[{saturate:[O,V,Q]}],sepia:[{sepia:["",O,V,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",V,Q]}],"backdrop-blur":[{"backdrop-blur":ey()}],"backdrop-brightness":[{"backdrop-brightness":[O,V,Q]}],"backdrop-contrast":[{"backdrop-contrast":[O,V,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,V,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,V,Q]}],"backdrop-invert":[{"backdrop-invert":["",O,V,Q]}],"backdrop-opacity":[{"backdrop-opacity":[O,V,Q]}],"backdrop-saturate":[{"backdrop-saturate":[O,V,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",O,V,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",V,Q]}],ease:[{ease:["linear","initial",y,V,Q]}],delay:[{delay:[O,V,Q]}],animate:[{animate:["none",g,V,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,V,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:eg()}],"rotate-x":[{"rotate-x":eg()}],"rotate-y":[{"rotate-y":eg()}],"rotate-z":[{"rotate-z":eg()}],scale:[{scale:eb()}],"scale-x":[{"scale-x":eb()}],"scale-y":[{"scale-y":eb()}],"scale-z":[{"scale-z":eb()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[V,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ek()}],"translate-x":[{"translate-x":ek()}],"translate-y":[{"translate-y":ek()}],"translate-z":[{"translate-z":ek()}],"translate-none":["translate-none"],accent:[{accent:ea()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ea()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V,Q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mbs":[{"scroll-mbs":R()}],"scroll-mbe":[{"scroll-mbe":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pbs":[{"scroll-pbs":R()}],"scroll-pbe":[{"scroll-pbe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V,Q]}],fill:[{fill:["none",...ea()]}],"stroke-w":[{stroke:[O,H,U,W]}],stroke:[{stroke:["none",...ea()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},1360:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},1362:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},1428:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},1977:(e,t,r)=>{"use strict";r.d(t,{uB:()=>D});var n=/[\\\/_+.#"@\[\(\{&]/,o=/[\\\/_+.#"@\[\(\{&]/g,i=/[\s-]/,s=/[\s-]/g;function a(e){return e.toLowerCase().replace(s," ")}var l=r(2535),u=r(7946),c=r.t(u,2);r(1383);var d=r(9289),f=r(4130),h=Symbol.for("react.lazy"),p=c[" use ".trim().toString()];function m(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var v=Symbol("radix.slottable");function y(e){return u.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=u.forwardRef((e,t)=>{let{children:r,...n}=e;if(m(r)&&"function"==typeof p&&(r=p(r._payload)),u.isValidElement(r)){var o;let e,i,s=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==u.Fragment&&(a.ref=t?(0,d.t)(t,s):s),u.cloneElement(r,a)}return u.Children.count(r)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=u.forwardRef((e,r)=>{let{children:n,...o}=e;m(n)&&"function"==typeof p&&(n=p(n._payload));let i=u.Children.toArray(n),s=i.find(y);if(s){let e=s.props.children,n=i.map(t=>t!==s?t:u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...o,ref:r,children:u.isValidElement(e)?u.cloneElement(e,void 0,n):null})}return(0,f.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),n=u.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(o?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),b=r(5380),w='[cmdk-group=""]',k='[cmdk-group-items=""]',x='[cmdk-item=""]',E="".concat(x,':not([aria-disabled="true"])'),S="cmdk-item-select",R="data-value",C=(e,t,r)=>(function(e,t,r){return function e(t,r,a,l,u,c,d){if(c===r.length)return u===t.length?1:.99;var f=`${u},${c}`;if(void 0!==d[f])return d[f];for(var h,p,m,v,y=l.charAt(c),g=a.indexOf(y,u),b=0;g>=0;)(h=e(t,r,a,l,g+1,c+1,d))>b&&(g===u?h*=1:n.test(t.charAt(g-1))?(h*=.8,(m=t.slice(u,g-1).match(o))&&u>0&&(h*=Math.pow(.999,m.length))):i.test(t.charAt(g-1))?(h*=.9,(v=t.slice(u,g-1).match(s))&&u>0&&(h*=Math.pow(.999,v.length))):(h*=.17,u>0&&(h*=Math.pow(.999,g-u))),t.charAt(g)!==r.charAt(c)&&(h*=.9999)),(h<.1&&a.charAt(g-1)===l.charAt(c+1)||l.charAt(c+1)===l.charAt(c)&&a.charAt(g-1)!==l.charAt(c))&&.1*(p=e(t,r,a,l,g+1,c+2,d))>h&&(h=.1*p),h>b&&(b=h),g=a.indexOf(y,g+1);return d[f]=b,b}(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,a(e),a(t),0,0,{})})(e,t,r),A=u.createContext(void 0),_=()=>u.useContext(A),O=u.createContext(void 0),M=()=>u.useContext(O),j=u.createContext(void 0),I=u.forwardRef((e,t)=>{let r=W(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=W(()=>new Set),o=W(()=>new Map),i=W(()=>new Map),s=W(()=>new Set),a=Q(e),{label:l,children:c,value:d,onValueChange:f,filter:h,shouldFilter:p,loop:m,disablePointerSelection:v=!1,vimBindings:y=!0,..._}=e,M=(0,b.B)(),j=(0,b.B)(),I=(0,b.B)(),N=u.useRef(null),P=$();U(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,T.emit()}},[d]),U(()=>{P(6,B)},[]);let T=u.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,i,s,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)q(),L(),P(1,D);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(I);e?e.focus():null==(o=document.getElementById(M))||o.focus()}if(P(7,()=>{var e;r.current.selectedItemId=null==(e=V())?void 0:e.id,T.emit()}),n||P(5,B),(null==(i=a.current)?void 0:i.value)!==void 0){null==(l=(s=a.current).onValueChange)||l.call(s,null!=t?t:"");return}}T.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),z=u.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,F(t,n)),P(2,()=>{L(),T.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),P(3,()=>{q(),L(),r.current.value||D(),T.emit()}),()=>{i.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=V();P(4,()=>{q(),(null==t?void 0:t.getAttribute("id"))===e&&D(),T.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:M,inputId:I,labelId:j,listInnerRef:N}),[]);function F(e,t){var n,o;let i=null!=(o=null==(n=a.current)?void 0:n.filter)?o:C;return e?i(e,r.current.search,t):0}function L(){if(!r.current.search||!1===a.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let n=N.current;H().sort((t,r)=>{var n,o;let i=t.getAttribute("id"),s=r.getAttribute("id");return(null!=(n=e.get(s))?n:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(k);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(k," > *"))):n.appendChild(e.parentElement===n?e:e.closest("".concat(k," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=N.current)?void 0:t.querySelector("".concat(w,"[").concat(R,'="').concat(encodeURIComponent(e[0]),'"]'));null==r||r.parentElement.appendChild(r)})}function D(){let e=H().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(R);T.setState("value",t||void 0)}function q(){var e,t,s,l;if(!r.current.search||!1===a.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let o of n.current){let n=F(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(s=i.current.get(o))?void 0:s.keywords)?l:[]);r.current.filtered.items.set(o,n),n>0&&u++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function B(){var e,t,r;let n=V();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(w))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function V(){var e;return null==(e=N.current)?void 0:e.querySelector("".concat(x,'[aria-selected="true"]'))}function H(){var e;return Array.from((null==(e=N.current)?void 0:e.querySelectorAll(E))||[])}function Z(e){let t=H()[e];t&&T.setState("value",t.getAttribute(R))}function X(e){var t;let r=V(),n=H(),o=n.findIndex(e=>e===r),i=n[o+e];null!=(t=a.current)&&t.loop&&(i=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),i&&T.setState("value",i.getAttribute(R))}function Y(e){let t=V(),r=null==t?void 0:t.closest(w),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,w):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,w))?void 0:r.querySelector(E);n?T.setState("value",n.getAttribute(R)):X(e)}let J=()=>Z(H().length-1),ee=e=>{e.preventDefault(),e.metaKey?J():e.altKey?Y(1):X(1)},et=e=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?Y(-1):X(-1)};return u.createElement(g.div,{ref:t,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=_.onKeyDown)||t.call(_,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":y&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":y&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Z(0);break;case"End":e.preventDefault(),J();break;case"Enter":{e.preventDefault();let t=V();if(t){let e=new Event(S);t.dispatchEvent(e)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:G},l),K(e,e=>u.createElement(O.Provider,{value:T},u.createElement(A.Provider,{value:z},e))))}),N=u.forwardRef((e,t)=>{var r,n;let o=(0,b.B)(),i=u.useRef(null),s=u.useContext(j),a=_(),l=Q(e),c=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;U(()=>{if(!c)return a.item(o,null==s?void 0:s.id)},[c]);let f=B(o,i,[e.value,e.children,i],e.keywords),h=M(),p=q(e=>e.value&&e.value===f.current),m=q(e=>!!c||!1===a.filter()||!e.search||e.filtered.items.get(o)>0);function v(){var e,t;y(),null==(t=(e=l.current).onSelect)||t.call(e,f.current)}function y(){h.setState("value",f.current,!0)}if(u.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(S,v),()=>t.removeEventListener(S,v)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:w,value:k,onSelect:x,forceMount:E,keywords:R,...C}=e;return u.createElement(g.div,{ref:(0,d.t)(i,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!p,"data-disabled":!!w,"data-selected":!!p,onPointerMove:w||a.getDisablePointerSelection()?void 0:y,onClick:w?void 0:v},e.children)}),P=u.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=(0,b.B)(),a=u.useRef(null),l=u.useRef(null),c=(0,b.B)(),f=_(),h=q(e=>!!o||!1===f.filter()||!e.search||e.filtered.groups.has(s));U(()=>f.group(s),[]),B(s,a,[e.value,e.heading,l]);let p=u.useMemo(()=>({id:s,forceMount:o}),[o]);return u.createElement(g.div,{ref:(0,d.t)(a,t),...i,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),K(e,e=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},u.createElement(j.Provider,{value:p},e))))}),T=u.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=u.useRef(null),i=q(e=>!e.search);return r||i?u.createElement(g.div,{ref:(0,d.t)(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),z=u.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,i=M(),s=q(e=>e.search),a=q(e=>e.selectedItemId),l=_();return u.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),u.createElement(g.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":a,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),F=u.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=u.useRef(null),s=u.useRef(null),a=q(e=>e.selectedItemId),l=_();return u.useEffect(()=>{if(s.current&&i.current){let e=s.current,t=i.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),u.createElement(g.div,{ref:(0,d.t)(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":n,id:l.listId},K(e,e=>u.createElement("div",{ref:(0,d.t)(s,l.listInnerRef),"cmdk-list-sizer":""},e)))}),L=u.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...a}=e;return u.createElement(l.bL,{open:r,onOpenChange:n},u.createElement(l.ZL,{container:s},u.createElement(l.hJ,{"cmdk-overlay":"",className:o}),u.createElement(l.UC,{"aria-label":e.label,"cmdk-dialog":"",className:i},u.createElement(I,{ref:t,...a}))))}),D=Object.assign(I,{List:F,Item:N,Input:z,Group:P,Separator:T,Dialog:L,Empty:u.forwardRef((e,t)=>q(e=>0===e.filtered.count)?u.createElement(g.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:u.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return u.createElement(g.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},K(e,e=>u.createElement("div",{"aria-hidden":!0},e)))})});function Q(e){let t=u.useRef(e);return U(()=>{t.current=e}),t}var U="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function W(e){let t=u.useRef();return void 0===t.current&&(t.current=e()),t}function q(e){let t=M(),r=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,r,r)}function B(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=u.useRef(),i=_();return U(()=>{var s;let a=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=n.map(e=>e.trim());i.value(e,a,l),null==(s=t.current)||s.setAttribute(R,a),o.current=a}),o}var $=()=>{let[e,t]=u.useState(),r=W(()=>new Map);return U(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function K(e,t){let r,{asChild:n,children:o}=e;return n&&u.isValidElement(o)?u.cloneElement("function"==typeof(r=o.type)?r(o.props):"render"in r?r.render(o.props):o,{ref:o.ref},t(o.props.children)):t(o)}var G={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},2231:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]])},2275:()=>{},2467:(e,t,r)=>{"use strict";var n=r(299);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},2535:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ee,VY:()=>er,ZL:()=>Y,bL:()=>X,bm:()=>en,hE:()=>et,hJ:()=>J});var n=r(7946),o=r(3397),i=r(9289),s=r(5773),a=r(5380),l=r(4068),u=r(4753),c=r(1164),d=r(6406),f=r(4127),h=r(5822),p=r(3526),m=r(6722),v=r(7377),y=r(1271),g=r(4130),b="Dialog",[w,k]=(0,s.A)(b),[x,E]=w(b),S=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[f,h]=(0,l.i)({prop:o,defaultProp:null!=i&&i,onChange:s,caller:b});return(0,g.jsx)(x,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),modal:u,children:r})};S.displayName=b;var R="DialogTrigger";n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,s=E(R,r),a=(0,i.s)(t,s.triggerRef);return(0,g.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":$(s.open),...n,ref:a,onClick:(0,o.mK)(e.onClick,s.onOpenToggle)})}).displayName=R;var C="DialogPortal",[A,_]=w(C,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:i}=e,s=E(C,t);return(0,g.jsx)(A,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,g.jsx)(f.C,{present:r||s.open,children:(0,g.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};O.displayName=C;var M="DialogOverlay",j=n.forwardRef((e,t)=>{let r=_(M,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=E(M,e.__scopeDialog);return i.modal?(0,g.jsx)(f.C,{present:n||i.open,children:(0,g.jsx)(N,{...o,ref:t})}):null});j.displayName=M;var I=(0,y.TL)("DialogOverlay.RemoveScroll"),N=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(M,r);return(0,g.jsx)(m.A,{as:I,allowPinchZoom:!0,shards:[o.contentRef],children:(0,g.jsx)(h.sG.div,{"data-state":$(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),P="DialogContent",T=n.forwardRef((e,t)=>{let r=_(P,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=E(P,e.__scopeDialog);return(0,g.jsx)(f.C,{present:n||i.open,children:i.modal?(0,g.jsx)(z,{...o,ref:t}):(0,g.jsx)(F,{...o,ref:t})})});T.displayName=P;var z=n.forwardRef((e,t)=>{let r=E(P,e.__scopeDialog),s=n.useRef(null),a=(0,i.s)(t,r.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,v.Eq)(e)},[]),(0,g.jsx)(L,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),F=n.forwardRef((e,t)=>{let r=E(P,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,g.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(o.current||null==(s=r.triggerRef.current)||s.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,s;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(s=r.triggerRef.current)?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),L=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,d=E(P,r),f=n.useRef(null),h=(0,i.s)(t,f);return(0,p.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,g.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":$(d.open),...l,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(H,{titleId:d.titleId}),(0,g.jsx)(Z,{contentRef:f,descriptionId:d.descriptionId})]})]})}),D="DialogTitle",Q=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(D,r);return(0,g.jsx)(h.sG.h2,{id:o.titleId,...n,ref:t})});Q.displayName=D;var U="DialogDescription",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(U,r);return(0,g.jsx)(h.sG.p,{id:o.descriptionId,...n,ref:t})});W.displayName=U;var q="DialogClose",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(q,r);return(0,g.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});function $(e){return e?"open":"closed"}B.displayName=q;var K="DialogTitleWarning",[G,V]=(0,s.q)(K,{contentName:P,titleName:D,docsSlug:"dialog"}),H=e=>{let{titleId:t}=e,r=V(K),o="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},Z=e=>{let{contentRef:t,descriptionId:r}=e,o=V("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return n.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(i))},[i,t,r]),null},X=S,Y=O,J=j,ee=T,et=Q,er=W,en=B},3010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(7946);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3198:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},3250:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(7946);let o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={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"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...s,width:i,height:i,stroke:r,strokeWidth:l?24*Number(a)/Number(i):a,className:o("lucide",u),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(f)&&{"aria-hidden":"true"},...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,n.forwardRef)((r,s)=>{let{className:l,...u}=r;return(0,n.createElement)(a,{ref:s,iconNode:t,className:o("lucide-".concat(i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...u})});return r.displayName=i(e),r}},3316:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(7946);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},3397:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},3526:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>i});var n=r(7946),o=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:s()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:s()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function s(){let 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}},3968:(e,t,r)=>{"use strict";var n=r(9865);r(2275);var o=r(7946),i=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(o),s=void 0!==n&&n.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,o=t.optimizeForSpeed,i=void 0===o?s:o;u(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var o=document.head||document.getElementsByTagName("head")[0];return r?o.insertBefore(n,r):o.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,o=t.optimizeForSpeed,i=void 0!==o&&o;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),n&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,o=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var i=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=i,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var o=f(n,r);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return h(o,e)}):[h(o,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=o.createContext(null);m.displayName="StyleSheetContext";var v=i.default.useInsertionEffect||i.default.useLayoutEffect,y="undefined"!=typeof window?new p:void 0;function g(e){var t=y||o.useContext(m);return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}g.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=g},4052:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},4068:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n,o=r(7946),i=r(344),s=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function a({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,a,l]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),i=o.useRef(r),a=o.useRef(t);return s(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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=u},[u,n])}return[c,o.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[u,e,a,l])]}Symbol("RADIX:SYNC_STATE")},4127:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(7946),o=r(9289),i=r(344),s=e=>{let{present:t,children:r}=e,s=function(e){var t,r;let[o,s]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=a(l.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t,r=null!=(e=o.ownerDocument.defaultView)?e:window,n=e=>{let n=a(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&n&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(t),l="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),u=(0,o.s)(s.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||s.isPresent?n.cloneElement(l,{ref:u}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},4139:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},4322:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(451);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.$,s=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let i=o(t)||o(n);return s[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):({...a,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},4481:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},4535:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4641:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},4753:(e,t,r)=>{"use strict";r.d(t,{qW:()=>f});var n,o=r(7946),i=r(3397),s=r(5822),a=r(9289),l=r(3316),u=r(4130),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...k}=e,x=o.useContext(d),[E,S]=o.useState(null),R=null!=(f=null==E?void 0:E.ownerDocument)?f:null==(r=globalThis)?void 0:r.document,[,C]=o.useState({}),A=(0,a.s)(t,e=>S(e)),_=Array.from(x.layers),[O]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),M=_.indexOf(O),j=E?_.indexOf(E):-1,I=x.layersWithOutsidePointerEventsDisabled.size>0,N=j>=M,P=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),i=o.useRef(!1),s=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){p("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",s.current),s.current=t,r.addEventListener("click",s.current,{once:!0})):t()}else r.removeEventListener("click",s.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",s.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));N&&!r&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},R),T=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},R);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{j===x.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},R),o.useEffect(()=>{if(E)return m&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(E)),x.layers.add(E),h(),()=>{m&&1===x.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=n)}},[E,R,m,x]),o.useEffect(()=>()=>{E&&(x.layers.delete(E),x.layersWithOutsidePointerEventsDisabled.delete(E),h())},[E,x]),o.useEffect(()=>{let e=()=>C({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.sG.div,{...k,ref:A,style:{pointerEvents:I?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,P.onPointerDownCapture)})});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?(0,s.hO)(i,a):i.dispatchEvent(a)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let r=o.useContext(d),n=o.useRef(null),i=(0,a.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(s.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},5233:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},useLinkStatus:function(){return g}});let n=r(5122),o=r(4130),i=n._(r(7946)),s=r(5881),a=r(4351),l=r(3010),u=r(9651),c=r(1533);r(1106);let d=r(4158),f=r(8236),h=r(7510);r(5656);let p=r(3809);function m(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function v(e){var t;let r,n,s,[v,g]=(0,i.useOptimistic)(d.IDLE_LINK_STATUS),b=(0,i.useRef)(null),{href:w,as:k,children:x,prefetch:E=null,passHref:S,replace:R,shallow:C,scroll:A,onClick:_,onMouseEnter:O,onTouchStart:M,legacyBehavior:j=!1,onNavigate:I,ref:N,unstable_dynamicOnHover:P,...T}=e;r=x,j&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let z=i.default.useContext(a.AppRouterContext),F=!1!==E,L=!1!==E?null===(t=E)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:D,as:Q}=i.default.useMemo(()=>{let e=m(w);return{href:e,as:k?m(k):e}},[w,k]);j&&(n=i.default.Children.only(r));let U=j?n&&"object"==typeof n&&n.ref:N,W=i.default.useCallback(e=>(null!==z&&(b.current=(0,d.mountLinkInstance)(e,D,z,L,F,g)),()=>{b.current&&((0,d.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,d.unmountPrefetchableInstance)(e)}),[F,D,z,L,g]),q={ref:(0,l.useMergedRef)(W,U),onClick(e){j||"function"!=typeof _||_(e),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),z&&(e.defaultPrevented||function(e,t,r,n,o,s,a){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}i.default.startTransition(()=>{(0,h.dispatchNavigateAction)(r||t,o?"replace":"push",null==s||s,n.current)})}}(e,D,Q,b,R,A,I))},onMouseEnter(e){j||"function"!=typeof O||O(e),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),z&&F&&(0,d.onNavigationIntent)(e.currentTarget,!0===P)},onTouchStart:function(e){j||"function"!=typeof M||M(e),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),z&&F&&(0,d.onNavigationIntent)(e.currentTarget,!0===P)}};return(0,u.isAbsoluteUrl)(Q)?q.href=Q:j&&!S&&("a"!==n.type||"href"in n.props)||(q.href=(0,c.addBasePath)(Q)),s=j?i.default.cloneElement(n,q):(0,o.jsx)("a",{...T,...q,children:r}),(0,o.jsx)(y.Provider,{value:v,children:s})}let y=(0,i.createContext)(d.IDLE_LINK_STATUS),g=()=>(0,i.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5254:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},5380:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,o=r(7946),i=r(344),s=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function l(e){let[t,r]=o.useState(s());return(0,i.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},5656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},5773:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,q:()=>i});var n=r(7946),o=r(4130);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,s=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:s,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function s(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let s=n.createContext(i),a=r.length;r=[...r,i];let l=t=>{let{scope:r,children:i,...l}=t,u=r?.[e]?.[a]||s,c=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(r,o){let l=o?.[e]?.[a]||s,u=n.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},5822:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>a});var n=r(7946),o=r(1383),i=r(1271),s=r(4130),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?r:t,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},5881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return a},urlObjectKeys:function(){return s}});let n=r(5122)._(r(39)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,i=e.protocol||"",s=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return i(e)}},6088:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},6406:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(7946),o=r(1383),i=r(5822),s=r(344),a=r(4130),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[d,f]=n.useState(!1);(0,s.N)(()=>f(!0),[]);let h=u||d&&(null==(l=globalThis)||null==(r=l.document)?void 0:r.body);return h?o.createPortal((0,a.jsx)(i.sG.div,{...c,ref:t}),h):null});l.displayName="Portal"},6429:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},6532:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},6722:(e,t,r)=>{"use strict";r.d(t,{A:()=>K});var n,o,i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,r(7946)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function h(e){return e}var p=function(e){void 0===e&&(e={});var t,r,n,o=(void 0===t&&(t=h),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}});return o.options=i({async:!0,ssr:!1},e),o}(),m=function(){},v=a.forwardRef(function(e,t){var r,n,o,l,u=a.useRef(null),h=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),v=h[0],y=h[1],g=e.forwardProps,b=e.children,w=e.className,k=e.removeScrollBar,x=e.enabled,E=e.shards,S=e.sideCar,R=e.noRelative,C=e.noIsolation,A=e.inert,_=e.allowPinchZoom,O=e.as,M=e.gapMode,j=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=(r=[u,t],n=function(e){return r.forEach(function(t){return c(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,l=o.facade,d(function(){var e=f.get(l);if(e){var t=new Set(e),n=new Set(r),o=l.current;t.forEach(function(e){n.has(e)||c(e,null)}),n.forEach(function(e){t.has(e)||c(e,o)})}f.set(l,r)},[r]),l),N=i(i({},j),v);return a.createElement(a.Fragment,null,x&&a.createElement(S,{sideCar:p,removeScrollBar:k,shards:E,noRelative:R,noIsolation:C,inert:A,setCallbacks:y,allowPinchZoom:!!_,lockRef:u,gapMode:M}),g?a.cloneElement(a.Children.only(b),i(i({},N),{ref:I})):a.createElement(void 0===O?"div":O,i({},N,{className:w,ref:I}),b))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:u,zeroRight:l};var y=function(e){var t=e.sideCar,r=s(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,i({},r))};y.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,s;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),s=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=g();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},w=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},k={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(r),x(n),x(o)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return k;var t=E(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},R=w(),C="data-scroll-locked",A=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(a,"px ").concat(n,";\n }\n body[").concat(C,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(C,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},_=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},O=function(){a.useEffect(function(){return document.body.setAttribute(C,(_()+1).toString()),function(){var e=_()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[])},M=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;O();var i=a.useMemo(function(){return S(o)},[o]);return a.createElement(R,{styles:A(i,!t,o,r?"":"!important")})},j=!1;if("undefined"!=typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){return j=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(e){j=!1}var N=!!j&&{passive:!1},P=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},T=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),z(e,n)){var o=F(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},z=function(e,t){return"v"===e?P(t,"overflowY"):P(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=function(e,t,r,n,o){var i,s=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=s*n,l=r.target,u=t.contains(l),c=!1,d=a>0,f=0,h=0;do{if(!l)break;var p=F(e,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&z(e,l)&&(f+=v,h+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},D=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Q=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},W=0,q=[];let B=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(W++)[0],i=a.useState(w)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(U),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=D(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===c||h.contains(c)))return!1;var p=T(d,c);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=T(d,c)),!p)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=o),!o)return!0;var m=n.current||o;return L(m,t,e,"h"===m?l:u,!0)},[]),u=a.useCallback(function(e){if(q.length&&q[q.length-1]===i){var r="deltaY"in e?Q(e):D(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(s.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=a.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a.useCallback(function(e){r.current=D(e),n.current=void 0},[]),f=a.useCallback(function(t){c(t.type,Q(t),t.target,l(t,e.lockRef.current))},[]),h=a.useCallback(function(t){c(t.type,D(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return q.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,N),document.addEventListener("touchmove",u,N),document.addEventListener("touchstart",d,N),function(){q=q.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,N),document.removeEventListener("touchmove",u,N),document.removeEventListener("touchstart",d,N)}},[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?a.createElement(M,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(n),y);var $=a.forwardRef(function(e,t){return a.createElement(v,i({},e,{ref:t,sideCar:B}))});$.classNames=v.classNames;let K=$},7053:(e,t,r)=>{"use strict";e.exports=r(3968).style},7103:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},7377:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,o=new WeakMap,i={},s=0,a=function(e){return e&&(e.host||a(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=a(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,h=new Set(u),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,s=(n.get(e)||0)+1,a=(c.get(e)||0)+1;n.set(e,s),c.set(e,a),d.push(e),1===s&&i&&o.set(e,!0),1===a&&e.setAttribute(r,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),s++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--s||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),l(n,o,r,"aria-hidden")):function(){return null}}},7459:(e,t,r)=>{"use strict";r.d(t,{I:()=>w});var n=r(6714),o=r(7991),i=r(9747),s=r(5632),a=r(2694),l=r(426),u=r(1351),c=class extends s.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,a.T)(),this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#o=void 0;#i=void 0;#s;#a;#r;#t;#l;#u;#c;#d;#f;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),d(this.#n,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#g(),this.#n.removeObserver(this)}setOptions(e){let t=this.options,r=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Eh)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#n.setOptions(this.options),t._defaulted&&!(0,l.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let n=this.hasListeners();n&&h(this.#n,r,this.options,t)&&this.#m(),this.updateResult(),n&&(this.#n!==r||(0,l.Eh)(this.options.enabled,this.#n)!==(0,l.Eh)(t.enabled,this.#n)||(0,l.d2)(this.options.staleTime,this.#n)!==(0,l.d2)(t.staleTime,this.#n))&&this.#w();let o=this.#k();n&&(this.#n!==r||(0,l.Eh)(this.options.enabled,this.#n)!==(0,l.Eh)(t.enabled,this.#n)||o!==this.#h)&&this.#x(o)}getOptimisticResult(e){var t,r;let n=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(n,e);return t=this,r=o,(0,l.f8)(t.getCurrentResult(),r)||(this.#i=o,this.#a=this.options,this.#s=this.#n.state),o}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#m(e){this.#b();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.lQ)),t}#w(){this.#y();let e=(0,l.d2)(this.options.staleTime,this.#n);if(l.S$||this.#i.isStale||!(0,l.gn)(e))return;let t=(0,l.j3)(this.#i.dataUpdatedAt,e);this.#d=u.zs.setTimeout(()=>{this.#i.isStale||this.updateResult()},t+1)}#k(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#x(e){this.#g(),this.#h=e,!l.S$&&!1!==(0,l.Eh)(this.options.enabled,this.#n)&&(0,l.gn)(this.#h)&&0!==this.#h&&(this.#f=u.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#m()},this.#h))}#v(){this.#w(),this.#x(this.#k())}#y(){this.#d&&(u.zs.clearTimeout(this.#d),this.#d=void 0)}#g(){this.#f&&(u.zs.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let r,n=this.#n,o=this.options,s=this.#i,u=this.#s,c=this.#a,f=e!==n?e.state:this.#o,{state:m}=e,v={...m},y=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&d(e,t),a=r&&h(e,n,t,o);(s||a)&&(v={...v,...(0,i.k)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:w}=v;r=v.data;let k=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===w){let e;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=s.data,k=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(w="success",r=(0,l.pl)(s?.data,e,t),y=!0)}if(t.select&&void 0!==r&&!k)if(s&&r===u?.data&&t.select===this.#l)r=this.#u;else try{this.#l=t.select,r=t.select(r),r=(0,l.pl)(s?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(g=this.#t,r=this.#u,b=Date.now(),w="error");let x="fetching"===v.fetchStatus,E="pending"===w,S="error"===w,R=E&&x,C=void 0!==r,A={status:w,fetchStatus:v.fetchStatus,isPending:E,isSuccess:"success"===w,isError:S,isInitialLoading:R,isLoading:R,data:r,dataUpdatedAt:v.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>f.dataUpdateCount||v.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!E,isLoadingError:S&&!C,isPaused:"paused"===v.fetchStatus,isPlaceholderData:y,isRefetchError:S&&C,isStale:p(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,l.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==A.data,r="error"===A.status&&!t,o=e=>{r?e.reject(A.error):t&&e.resolve(A.data)},i=()=>{o(this.#r=A.promise=(0,a.T)())},s=this.#r;switch(s.status){case"pending":e.queryHash===n.queryHash&&o(s);break;case"fulfilled":(r||A.data!==s.value)&&i();break;case"rejected":r&&A.error===s.reason||i()}}return A}updateResult(){let e=this.#i,t=this.createResult(this.#n,this.options);if(this.#s=this.#n.state,this.#a=this.options,void 0!==this.#s.data&&(this.#c=this.#n),(0,l.f8)(t,e))return;this.#i=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#p.size)return!0;let n=new Set(r??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#i).some(t=>this.#i[t]!==e[t]&&n.has(t))};this.#E({listeners:r()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#E(e){o.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,l.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,r){if(!1!==(0,l.Eh)(t.enabled,e)&&"static"!==(0,l.d2)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&p(e,t)}return!1}function h(e,t,r,n){return(e!==t||!1===(0,l.Eh)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,l.Eh)(t.enabled,e)&&e.isStaleByTime((0,l.d2)(t.staleTime,e))}var m=r(7946),v=r(7122);r(4130);var y=m.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),g=m.createContext(!1);g.Provider;var b=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function w(e,t){return function(e,t,r){var n,i,s,a;let u=m.useContext(g),c=m.useContext(y),d=(0,v.jE)(r),f=d.defaultQueryOptions(e);null==(i=d.getDefaultOptions().queries)||null==(n=i._experimental_beforeQuery)||n.call(i,f);let h=d.getQueryCache().get(f.queryHash);if(f._optimisticResults=u?"isRestoring":"optimistic",f.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=f.staleTime;f.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof f.gcTime&&(f.gcTime=Math.max(f.gcTime,1e3))}let p=(null==h?void 0:h.state.error)&&"function"==typeof f.throwOnError?(0,l.GU)(f.throwOnError,[h.state.error,h]):f.throwOnError;(f.suspense||f.experimental_prefetchInRender||p)&&!c.isReset()&&(f.retryOnMount=!1),m.useEffect(()=>{c.clearReset()},[c]);let w=!d.getQueryCache().get(f.queryHash),[k]=m.useState(()=>new t(d,f)),x=k.getOptimisticResult(f),E=!u&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=E?k.subscribe(o.jG.batchCalls(e)):l.lQ;return k.updateResult(),t},[k,E]),()=>k.getCurrentResult(),()=>k.getCurrentResult()),m.useEffect(()=>{k.setOptions(f)},[f,k]),f?.suspense&&x.isPending)throw b(f,k,c);if((e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:o,suspense:i}=e;return t.isError&&!r.isReset()&&!t.isFetching&&o&&(i&&void 0===t.data||(0,l.GU)(n,[t.error,o]))})({result:x,errorResetBoundary:c,throwOnError:f.throwOnError,query:h,suspense:f.suspense}))throw x.error;if(null==(a=d.getDefaultOptions().queries)||null==(s=a._experimental_afterQuery)||s.call(a,f,x),f.experimental_prefetchInRender&&!l.S$&&x.isLoading&&x.isFetching&&!u){let e=w?b(f,k,c):null==h?void 0:h.promise;null==e||e.catch(l.lQ).finally(()=>{k.updateResult()})}return f.notifyOnChangeProps?x:k.trackResult(x)}(e,c,t)}},8045:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var n=r(7946),o=r(5094),i=r(7991),s=r(5632),a=r(426),l=class extends s.Q{#e;#i=void 0;#S;#R;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#C()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#S,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#S?.state.status==="pending"&&this.#S.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#S?.removeObserver(this)}onMutationUpdate(e){this.#C(),this.#E(e)}getCurrentResult(){return this.#i}reset(){this.#S?.removeObserver(this),this.#S=void 0,this.#C(),this.#E()}mutate(e,t){return this.#R=t,this.#S?.removeObserver(this),this.#S=this.#e.getMutationCache().build(this.#e,this.options),this.#S.addObserver(this),this.#S.execute(e)}#C(){let e=this.#S?.state??(0,o.$)();this.#i={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#E(e){i.jG.batch(()=>{if(this.#R&&this.hasListeners()){let t=this.#i.variables,r=this.#i.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#R.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#R.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#R.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#R.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#i)})})}},u=r(7122);function c(e,t){let r=(0,u.jE)(t),[o]=n.useState(()=>new l(r,e));n.useEffect(()=>{o.setOptions(e)},[o,e]);let s=n.useSyncExternalStore(n.useCallback(e=>o.subscribe(i.jG.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=n.useCallback((e,t)=>{o.mutate(e,t).catch(a.lQ)},[o]);if(s.error&&(0,a.GU)(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}},8236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=r(9651),o=r(3058);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},8574:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},8831:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},9152:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},9289:(e,t,r)=>{"use strict";r.d(t,{s:()=>s,t:()=>i});var n=r(7946);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}function s(...e){return n.useCallback(i(...e),e)}},9309:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]])},9327:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},9357:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},9444:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},9605:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},9651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return s},getURL:function(){return a},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function a(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},9864:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9919:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(3250).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[625],{426:(t,e,i)=>{i.d(e,{Cp:()=>y,EN:()=>f,Eh:()=>h,F$:()=>p,GU:()=>P,MK:()=>l,S$:()=>r,ZM:()=>j,ZZ:()=>F,Zw:()=>a,d2:()=>c,f8:()=>m,gn:()=>o,hT:()=>T,j3:()=>u,lQ:()=>n,nJ:()=>d,ox:()=>E,pl:()=>C,y9:()=>O,yy:()=>S});var s=i(1351),r="undefined"==typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function c(t,e){return"function"==typeof t?t(e):t}function h(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:i="all",exact:s,fetchStatus:r,predicate:n,queryKey:a,stale:o}=t;if(a){if(s){if(e.queryHash!==p(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==i){let t=e.isActive();if("active"===i&&!t||"inactive"===i&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!r||r===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:i,status:s,predicate:r,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(i){if(f(e.options.mutationKey)!==f(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!s||e.state.status===s)&&(!r||!!r(e))}function p(t,e){return(e?.queryKeyHashFn||f)(t)}function f(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,i)=>(t[i]=e[i],t),{}):e)}function y(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(i=>y(t[i],e[i]))}var v=Object.prototype.hasOwnProperty;function m(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let i in t)if(t[i]!==e[i])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!w(t))return!1;let e=t.constructor;if(void 0===e)return!0;let i=e.prototype;return!!w(i)&&!!i.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function w(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return new Promise(e=>{s.zs.setTimeout(e,t)})}function C(t,e,i){return"function"==typeof i.structuralSharing?i.structuralSharing(t,e):!1!==i.structuralSharing?function t(e,i,s=0){if(e===i)return e;if(s>500)return i;let r=b(e)&&b(i);if(!r&&!(g(e)&&g(i)))return i;let n=(r?e:Object.keys(e)).length,a=r?i:Object.keys(i),o=a.length,u=r?Array(o):{},c=0;for(let h=0;h<o;h++){let o=r?h:a[h],l=e[o],d=i[o];if(l===d){u[o]=l,(r?h<n:v.call(e,o))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){u[o]=d;continue}let p=t(l,d,s+1);u[o]=p,p===l&&c++}return n===o&&c===n?e:u}(t,e):e}function O(t,e,i=0){let s=[...t,e];return i&&s.length>i?s.slice(1):s}function F(t,e,i=0){let s=[e,...t];return i&&s.length>i?s.slice(0,-1):s}var T=Symbol();function j(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==T?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function P(t,e){return"function"==typeof t?t(...e):!!t}function E(t,e,i){let s,r=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??=e(),r||(r=!0,s.aborted?i():s.addEventListener("abort",i,{once:!0})),s)}),t}},542:(t,e,i)=>{i.d(e,{k:()=>n});var s=i(1351),r=i(426),n=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.gcTime)&&(this.#t=s.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(r.S$?1/0:3e5))}clearGcTimeout(){this.#t&&(s.zs.clearTimeout(this.#t),this.#t=void 0)}}},1351:(t,e,i)=>{i.d(e,{Zq:()=>n,zs:()=>r});var s={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},r=new class{#e=s;#i=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}};function n(t){setTimeout(t,0)}},2201:(t,e,i)=>{i.d(e,{t:()=>n});var s=i(5632),r=i(426),n=new class extends s.Q{#s=!0;#r;#n;constructor(){super(),this.#n=t=>{if(!r.S$&&window.addEventListener){let e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#r||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(t){this.#n=t,this.#r?.(),this.#r=t(this.setOnline.bind(this))}setOnline(t){this.#s!==t&&(this.#s=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#s}}},2694:(t,e,i)=>{i.d(e,{T:()=>s});function s(){let t,e,i=new Promise((i,s)=>{t=i,e=s});function s(t){Object.assign(i,t),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=e=>{s({status:"fulfilled",value:e}),t(e)},i.reject=t=>{s({status:"rejected",reason:t}),e(t)},i}},5094:(t,e,i)=>{i.d(e,{$:()=>o,s:()=>a});var s=i(7991),r=i(542),n=i(9406),a=class extends r.k{#a;#o;#u;#c;constructor(t){super(),this.#a=t.client,this.mutationId=t.mutationId,this.#u=t.mutationCache,this.#o=[],this.state=t.state||o(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#o.includes(t)||(this.#o.push(t),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#o=this.#o.filter(e=>e!==t),this.scheduleGc(),this.#u.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#o.length||("pending"===this.state.status?this.scheduleGc():this.#u.remove(this))}continue(){return this.#c?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#h({type:"continue"})},i={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#c=(0,n.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#h({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#h({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#u.canRun(this)});let s="pending"===this.state.status,r=!this.#c.canStart();try{if(s)e();else{this.#h({type:"pending",variables:t,isPaused:r}),this.#u.config.onMutate&&await this.#u.config.onMutate(t,this,i);let e=await this.options.onMutate?.(t,i);e!==this.state.context&&this.#h({type:"pending",context:e,variables:t,isPaused:r})}let n=await this.#c.start();return await this.#u.config.onSuccess?.(n,t,this.state.context,this,i),await this.options.onSuccess?.(n,t,this.state.context,i),await this.#u.config.onSettled?.(n,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(n,null,t,this.state.context,i),this.#h({type:"success",data:n}),n}catch(e){try{await this.#u.config.onError?.(e,t,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,i)}catch(t){Promise.reject(t)}try{await this.#u.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,i)}catch(t){Promise.reject(t)}throw this.#h({type:"error",error:e}),e}finally{this.#u.runNext(this)}}#h(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.jG.batch(()=>{this.#o.forEach(e=>{e.onMutationUpdate(t)}),this.#u.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},5632:(t,e,i)=>{i.d(e,{Q:()=>s});var s=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},6714:(t,e,i)=>{i.d(e,{m:()=>n});var s=i(5632),r=i(426),n=new class extends s.Q{#l;#r;#n;constructor(){super(),this.#n=t=>{if(!r.S$&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#r||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(t){this.#n=t,this.#r?.(),this.#r=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#l!==t&&(this.#l=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#l?this.#l:globalThis.document?.visibilityState!=="hidden"}}},7122:(t,e,i)=>{i.d(e,{Ht:()=>o,jE:()=>a});var s=i(7946),r=i(4130),n=s.createContext(void 0),a=t=>{let e=s.useContext(n);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},o=t=>{let{client:e,children:i}=t;return s.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(n.Provider,{value:e,children:i})}},7991:(t,e,i)=>{i.d(e,{jG:()=>r});var s=i(1351).Zq,r=function(){let t=[],e=0,i=t=>{t()},r=t=>{t()},n=s,a=s=>{e?t.push(s):n(()=>{i(s)})};return{batch:s=>{let a;e++;try{a=s()}finally{--e||(()=>{let e=t;t=[],e.length&&n(()=>{r(()=>{e.forEach(t=>{i(t)})})})})()}return a},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{i=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{n=t}}}()},9406:(t,e,i)=>{i.d(e,{II:()=>h,cc:()=>c,v_:()=>u});var s=i(6714),r=i(2201),n=i(2694),a=i(426);function o(t){return Math.min(1e3*2**t,3e4)}function u(t){return(t??"online")!=="online"||r.t.isOnline()}var c=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function h(t){let e,i=!1,h=0,l=(0,n.T)(),d=()=>s.m.isFocused()&&("always"===t.networkMode||r.t.isOnline())&&t.canRun(),p=()=>u(t.networkMode)&&t.canRun(),f=t=>{"pending"===l.status&&(e?.(),l.resolve(t))},y=t=>{"pending"===l.status&&(e?.(),l.reject(t))},v=()=>new Promise(i=>{e=t=>{("pending"!==l.status||d())&&i(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===l.status&&t.onContinue?.()}),m=()=>{let e;if("pending"!==l.status)return;let s=0===h?t.initialPromise:void 0;try{e=s??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(f).catch(e=>{if("pending"!==l.status)return;let s=t.retry??3*!a.S$,r=t.retryDelay??o,n="function"==typeof r?r(h,e):r,u=!0===s||"number"==typeof s&&h<s||"function"==typeof s&&s(h,e);if(i||!u)return void y(e);h++,t.onFail?.(h,e),(0,a.yy)(n).then(()=>d()?void 0:v()).then(()=>{i?y(e):m()})})};return{promise:l,status:()=>l.status,cancel:e=>{if("pending"===l.status){let i=new c(e);y(i),t.onCancel?.(i)}},continue:()=>(e?.(),l),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:p,start:()=>(p()?m():v().then(m),l)}}},9747:(t,e,i)=>{i.d(e,{X:()=>o,k:()=>u});var s=i(426),r=i(7991),n=i(9406),a=i(542),o=class extends a.k{#d;#p;#f;#a;#c;#y;#v;constructor(t){super(),this.#v=!1,this.#y=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#f=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#d=h(this.options),this.state=t.state??this.#d,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#c?.promise}setOptions(t){if(this.options={...this.#y,...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=h(this.options);void 0!==t.data&&(this.setState(c(t.data,t.dataUpdatedAt)),this.#d=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#f.remove(this)}setData(t,e){let i=(0,s.pl)(this.state.data,t,this.options);return this.#h({data:i,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),i}setState(t,e){this.#h({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#c?.promise;return this.#c?.cancel(t),e?e.then(s.lQ).catch(s.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#d)}isActive(){return this.observers.some(t=>!1!==(0,s.Eh)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===s.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,s.d2)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,s.j3)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#f.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#c&&(this.#v?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#f.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(t,e){if("idle"!==this.state.fetchStatus&&this.#c?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let i=new AbortController,r=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#v=!0,i.signal)})},a=()=>{let t=(0,s.ZM)(this.options,e),i=(()=>{let t={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(t),t})();return(this.#v=!1,this.options.persister)?this.options.persister(t,i,this):t(i)},o=(()=>{let t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(t),t})();this.options.behavior?.onFetch(o,this),this.#p=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#h({type:"fetch",meta:o.fetchOptions?.meta}),this.#c=(0,n.II)({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:t=>{t instanceof n.cc&&t.revert&&this.setState({...this.#p,fetchStatus:"idle"}),i.abort()},onFail:(t,e)=>{this.#h({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let t=await this.#c.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#f.config.onSuccess?.(t,this),this.#f.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.cc){if(t.silent)return this.#c.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#h({type:"error",error:t}),this.#f.config.onError?.(t,this),this.#f.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#h(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...u(e.data,this.options),fetchMeta:t.meta??null};case"success":let i={...e,...c(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#p=t.manual?i:void 0,i;case"error":let s=t.error;return{...e,error:s,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),r.jG.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#f.notify({query:this,type:"updated",action:t})})}};function u(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function c(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,i=void 0!==e,s=i?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}}}]);
|