PageSourceSearch

https://community-scripts.org/_next/static/chunks/0qkhg5pj2o8mc.js

js community-scripts.org collected 2026-10-03 23:01:36 UTC 75,391 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,779083,e=>{"use strict";var t=e.i(714918),r=e.i(914125),n=e.i(862415),o=e.i(8116),a=e.i(71345),s=e.i(511356),l=e.i(812878),i=e.i(630374),c=e.i(279175),d=e.i(394657),u=e.i(196717),m=e.i(647163);let p=null;function f({open:e,onOpenChange:r}){let[m,h]=(0,n.useState)(null),[g,x]=(0,n.useState)(!1),[b,v]=(0,n.useState)(null),y=(0,n.useCallback)(async()=>{let e=p?Date.now()-p.fetchedAt>36e5?(p=null,null):p.data:null;if(e?.length){h(e),v(null);return}let t=(0,d.parseGitHubRepoUrl)(c.siteConfig.repo);if(!t)return void v("Invalid repo URL");x(!0),v(null);try{let e=await fetch(`https://api.github.com/repos/${encodeURIComponent(t.owner)}/${encodeURIComponent(t.repo)}/releases?per_page=10`,{headers:{Accept:"application/vnd.github+json","X-GitHub-Api-Version":"2022-11-28"}});if(!e.ok)throw Error(`HTTP ${e.status}`);let r=await e.json();if(!Array.isArray(r))throw Error("Invalid response");let n=r.map(e=>({tag_name:e.tag_name??"",name:e.name??null,published_at:e.published_at??null,body:e.body??null,html_url:e.html_url??`https://github.com/${t.owner}/${t.repo}/releases`}));p={data:n,fetchedAt:Date.now()},h(n)}catch(e){v(e instanceof Error?e.message:"Failed to load releases"),h(null)}finally{x(!1)}},[]);return(0,n.useEffect)(()=>{e&&y()},[e,y]),(0,t.jsx)(i.Dialog,{open:e,onOpenChange:r,children:(0,t.jsxs)(i.DialogContent,{showCloseButton:!0,className:"p-0",children:[(0,t.jsx)(i.DialogHeader,{children:(0,t.jsx)(i.DialogTitle,{children:"Changelog"})}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-4 pb-6",children:[g&&(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)("div",{className:"size-8 animate-spin rounded-full border-2 border-muted-foreground/30 border-t-foreground"})}),b&&!g&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 py-6 text-center text-sm text-muted-foreground",children:[(0,t.jsx)("p",{children:b}),(0,t.jsx)("a",{href:`${c.siteConfig.repo}/releases`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary underline-offset-4 hover:underline",children:"View releases on GitHub"})]}),m&&m.length>0&&!g&&(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[m.map(e=>(0,t.jsxs)("article",{className:"border-b border-border/50 pb-6 last:border-0 last:pb-0",children:[(0,t.jsxs)("header",{className:"mb-2",children:[(0,t.jsx)("a",{href:e.html_url,target:"_blank",rel:"noopener noreferrer",className:"text-base font-semibold text-foreground underline-offset-4 hover:underline",children:e.name||e.tag_name}),e.published_at&&(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:function(e){if(!e)return"";try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}(e.published_at)})]}),e.body?(0,t.jsx)("div",{className:u.changelogProseClasses,children:(0,t.jsx)(o.default,{remarkPlugins:[l.default],rehypePlugins:[a.default,s.default],children:e.body})}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No release notes."})]},e.tag_name)),(0,t.jsx)("div",{className:"pt-2",children:(0,t.jsx)("a",{href:c.siteConfig.changelog,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-primary underline-offset-4 hover:underline",children:"View full changelog"})})]}),m&&0===m.length&&!g&&!b&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 py-6 text-center text-sm text-muted-foreground",children:[(0,t.jsx)("p",{children:"No releases found."}),(0,t.jsx)("a",{href:`${c.siteConfig.repo}/releases`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary underline-offset-4 hover:underline",children:"View on GitHub"})]})]})]})})}e.s(["ChangelogModal",0,f,"ChangelogModalTrigger",0,function(e){let o,a,s,l,i,c=(0,r.c)(11),{children:d,className:u}=e,[p,h]=(0,n.useState)(!1);return c[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>h(!0),c[0]=o):o=c[0],c[1]!==u?(a=(0,m.cn)("inline-block text-left text-[0.8125rem] text-muted-foreground transition-colors hover:text-foreground m-0 border-0 bg-transparent p-0 font-inherit cursor-pointer appearance-none self-start",u),c[1]=u,c[2]=a):a=c[2],c[3]!==d||c[4]!==a?(s=(0,t.jsx)("button",{type:"button",onClick:o,className:a,children:d}),c[3]=d,c[4]=a,c[5]=s):s=c[5],c[6]!==p?(l=(0,t.jsx)(f,{open:p,onOpenChange:h}
1),c[6]=p,c[7]=l):l=c[7],c[8]!==s||c[9]!==l?(i=(0,t.jsxs)(t.Fragment,{children:[s,l]}),c[8]=s,c[9]=l,c[10]=i):i=c[10],i}])},393539,e=>{"use strict";var t=e.i(714918),r=e.i(914125),n=e.i(197546),o=e.i(846326),a=e.i(251041),s=e.i(848317),l=e.i(862415),i=e.i(167881),c=e.i(463415),d=e.i(647163);let u=()=>()=>{},m=()=>!0,p=()=>!1;e.s(["ThemeToggle",0,function(e){let f,h,g,x,b,v,y,w,j,k,S,M,D,C,N,_=(0,r.c)(42);_[0]!==e?(f=void 0===e?{}:e,_[0]=e,_[1]=f):f=_[1];let{className:I,iconClassName:R,menuAlign:O}=f,E=void 0===O?"end":O,P=(0,l.useSyncExternalStore)(u,m,p),{theme:z,setTheme:T}=(0,s.useTheme)();if(!P){let e,r,n,o;return _[2]!==I?(e=(0,d.cn)("size-8",I),_[2]=I,_[3]=e):e=_[3],_[4]!==R?(r=(0,d.cn)("size-4",R),_[4]=R,_[5]=r):r=_[5],_[6]!==r?(n=(0,t.jsx)("span",{className:r,"aria-hidden":!0}),_[6]=r,_[7]=n):n=_[7],_[8]!==e||_[9]!==n?(o=(0,t.jsx)(i.Button,{variant:"ghost",size:"icon-sm","aria-label":"Theme",className:e,children:n}),_[8]=e,_[9]=n,_[10]=o):o=_[10],o}return _[11]!==I?(h=(0,d.cn)("size-8",I),_[11]=I,_[12]=h):h=_[12],_[13]!==R||_[14]!==z?(g="dark"===z?(0,t.jsx)(o.IconMoon,{className:(0,d.cn)("size-4",R),"aria-hidden":!0}):"light"===z?(0,t.jsx)(a.IconSun,{className:(0,d.cn)("size-4",R),"aria-hidden":!0}):(0,t.jsx)(n.IconDeviceDesktop,{className:(0,d.cn)("size-4",R),"aria-hidden":!0}),_[13]=R,_[14]=z,_[15]=g):g=_[15],_[16]!==h||_[17]!==g?(x=(0,t.jsx)(c.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(i.Button,{variant:"ghost",size:"icon-sm","aria-label":"Toggle theme",className:h,children:g})}),_[16]=h,_[17]=g,_[18]=x):x=_[18],_[19]!==T?(b=()=>T("light"),_[19]=T,_[20]=b):b=_[20],_[21]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(a.IconSun,{className:"mr-2 size-4"}),_[21]=v):v=_[21],_[22]!==b?(y=(0,t.jsxs)(c.DropdownMenuItem,{onClick:b,children:[v,"Light"]}),_[22]=b,_[23]=y):y=_[23],_[24]!==T?(w=()=>T("dark"),_[24]=T,_[25]=w):w=_[25],_[26]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(o.IconMoon,{className:"mr-2 size-4"}),_[26]=j):j=_[26],_[27]!==w?(k=(0,t.jsxs)(c.DropdownMenuItem,{onClick:w,children:[j,"Dark"]}),_[27]=w,_[28]=k):k=_[28],_[29]!==T?(S=()=>T("system"),_[29]=T,_[30]=S):S=_[30],_[31]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)(n.IconDeviceDesktop,{className:"mr-2 size-4"}),_[31]=M):M=_[31],_[32]!==S?(D=(0,t.jsxs)(c.DropdownMenuItem,{onClick:S,children:[M,"System"]}),_[32]=S,_[33]=D):D=_[33],_[34]!==E||_[35]!==k||_[36]!==D||_[37]!==y?(C=(0,t.jsxs)(c.DropdownMenuContent,{align:E,children:[y,k,D]}),_[34]=E,_[35]=k,_[36]=D,_[37]=y,_[38]=C):C=_[38],_[39]!==C||_[40]!==x?(N=(0,t.jsxs)(c.DropdownMenu,{children:[x,C]}),_[39]=C,_[40]=x,_[41]=N):N=_[41],N}])},54848,688528,e=>{"use strict";var t=e.i(714918),r=e.i(914125),n=e.i(855862),o=e.i(362975),a=e.i(428267),s=e.i(900109),l=e.i(399455),i=e.i(114672),c=e.i(554353),d=e.i(375465),u=e.i(238128),m=e.i(24012),p=e.i(874719),f=e.i(624397),h=e.i(408154),g=e.i(862415),x=e.i(560261),b=e.i(181847),v=e.i(496732),y=e.i(197546);let w=(0,e.i(984106).default)("outline","layout-align-center","LayoutAlignCenter",[["path",{d:"M12 4l0 5",key:"svg-0"}],["path",{d:"M12 15l0 5",key:"svg-1"}],["path",{d:"M6 11a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -2",key:"svg-2"}]]);var j=e.i(846326),k=e.i(620299),S=e.i(418223),M=e.i(251041),D=e.i(848317),C=e.i(210750),N=e.i(167881),_=e.i(463415),I=e.i(647163);let R=()=>()=>{},O=()=>!0,E=()=>!1,P=[{value:"small",label:"Small",description:"Compact",sampleClassName:"text-[0.6875rem]"},{value:"medium",label:"Medium",description:"Balanced",sampleClassName:"text-[0.8125rem]"},{value:"large",label:"Large",description:"Easier to scan",sampleClassName:"text-[0.9375rem]"}],z=[{value:"default",label:"Current",description:"Site font",sampleStyle:{fontFamily:"var(--font-manrope)"}},{value:"system",label:"System",description:"Device font",sampleStyle:{fontFamily:"var(--font-system)"}},{value:"opendyslexic",label:"OpenDyslexic",description:"Accessible",sampleStyle:{fontFamily:"var(--font-opendyslexic)"}}],T=[{value:"light",label:"Light",description:"Bright",icon:(0,t.jsx)(M.IconSun,{className:"size-3.5 text-amber-500","aria-hidden":!0})},{value:"dark",label:"Dark",description:"Low glare",icon:(0,t.jsx)(j.IconMoon,{className:"size-3.5 text-sky-500","aria-hidden":!0})},{value:"system",label:"System",description:"Auto",icon:(0,t.jsx)(y.IconDeviceDesktop,{className:"size-3.5 text-muted-foreground","aria-hidden":!0})}
1],A=[{value:"fixed",label:"Fixed",description:"1440px",icon:(0,t.jsx)(w,{className:"size-3.5 text-muted-foreground","aria-hidden":!0})},{value:"full",label:"Wide",description:"1800px",icon:(0,t.jsx)(v.IconArrowsMaximize,{className:"size-3.5 text-muted-foreground","aria-hidden":!0})}],L=[{value:"pve",label:"Proxmox VE",description:"pct / qm",icon:(0,t.jsx)(k.IconServer,{className:"size-3.5 text-muted-foreground","aria-hidden":!0})},{value:"incus",label:"Incus",description:"incus CLI",icon:(0,t.jsx)(S.IconServer2,{className:"size-3.5 text-muted-foreground","aria-hidden":!0})}];function H(e){let n,o,a,s,l,i=(0,r.c)(28),{label:c,value:d,onChange:u,options:m,columns:p,clampSampleText:f,clampLabelText:h,clampDescriptionText:g,descriptionNoWrap:x}=e,b=void 0!==f&&f,v=void 0!==h&&h,y=void 0!==g&&g,w=void 0!==x&&x;i[0]!==c?(n=(0,t.jsx)("div",{className:"px-1 text-[0.65rem] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:c}),i[0]=c,i[1]=n):n=i[1];let j=2===p?"grid-cols-2":"grid-cols-3";if(i[2]!==j?(o=(0,I.cn)("grid gap-1.5",j),i[2]=j,i[3]=o):o=i[3],i[4]!==y||i[5]!==v||i[6]!==b||i[7]!==w||i[8]!==c||i[9]!==u||i[10]!==m||i[11]!==d){let e;i[13]!==y||i[14]!==v||i[15]!==b||i[16]!==w||i[17]!==c||i[18]!==u||i[19]!==d?(e=e=>{let r=e.value===d;return(0,t.jsxs)("button",{type:"button",role:"option","aria-checked":r,onPointerDown:t=>{t.preventDefault(),u(e.value)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),u(e.value))},className:(0,I.cn)("flex min-h-[72px] flex-col items-center justify-center gap-1 rounded-[14px] border px-2 py-2 text-center transition-colors outline-none","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",r?"border-primary/50 bg-primary/10 text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.35)]":"border-border/70 bg-muted/20 text-muted-foreground hover:border-primary/30 hover:bg-muted/40 hover:text-foreground"),children:[(0,t.jsx)("div",{className:"flex h-5 items-center justify-center",children:e.icon?e.icon:(0,t.jsx)("span",{className:(0,I.cn)(b?"text-[clamp(0.75rem,2vw,0.95rem)] font-semibold leading-none":"text-sm font-semibold leading-none",e.sampleClassName,r?"text-foreground":"text-foreground/85"),style:e.sampleStyle,"aria-hidden":!0,children:"Text size"===c?"A":"Ag"})}),(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:(0,I.cn)("font-semibold leading-[0.95] text-foreground",v?"text-[clamp(0.58rem,1.45vw,0.78rem)] tracking-[-0.015em]":"text-[0.8rem]"),children:e.label}),e.description?(0,t.jsx)("div",{className:(0,I.cn)("leading-tight text-muted-foreground",y?"text-[clamp(0.54rem,1.35vw,0.66rem)]":"text-[0.68rem]",w&&"whitespace-nowrap"),children:e.description}):null]})]},e.value)},i[13]=y,i[14]=v,i[15]=b,i[16]=w,i[17]=c,i[18]=u,i[19]=d,i[20]=e):e=i[20],a=m.map(e),i[4]=y,i[5]=v,i[6]=b,i[7]=w,i[8]=c,i[9]=u,i[10]=m,i[11]=d,i[12]=a}else a=i[12];return i[21]!==c||i[22]!==o||i[23]!==a?(s=(0,t.jsx)("div",{role:"radiogroup","aria-label":c,className:o,children:a}),i[21]=c,i[22]=o,i[23]=a,i[24]=s):s=i[24],i[25]!==n||i[26]!==s?(l=(0,t.jsxs)("div",{className:"space-y-2",children:[n,s]}),i[25]=n,i[26]=s,i[27]=l):l=i[27],l}function F(){let e,n,o,a,s,l,i,c,d,u,m,p,f,h,v=(0,r.c)(29),y=(0,g.useSyncExternalStore)(R,O,E),{theme:w,setTheme:j}=(0,D.useTheme)(),{fontPreference:k,setFontPreference:S,textSize:M,setTextSize:I,layoutWidth:F,setLayoutWidth:B}=(0,C.useDisplayPreferences)(),{host:U,setHost:G}=(0,x.useHostPlatform)();v[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(_.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(N.Button,{type:"button",variant:"outline",size:"icon-lg",className:"rounded-[10px] border-[1.5px] bg-card text-muted-foreground hover:border-primary hover:bg-primary/10 hover:text-primary","aria-label":"Open appearance settings",children:(0,t.jsx)(b.IconAdjustmentsHorizontal,{className:"size-[18px]","aria-hidden":!0})})}),v[0]=e):e=v[0],v[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("div",{className:"flex size-8 items-center justify-center rounded-[11px] border border-border/70 bg-muted/60 text-foreground",children:(0,t.jsx)(b.IconAdjustmentsHorizontal,{className:"size-3.5","aria-hidden":!0})}),v[1]=n):n=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(_.DropdownMenuLabel,{className:"px-3 pt-2 pb-1.5",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[n,(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:"font-semibold text-foreground",children:"Appearance"}),(0,t.jsx)("div",{className:"text-[0.72rem] leading-snug text-muted-foreground",children:"Theme, font, and reading size."})]})]})}),a=(0,t.jsx)(_.DropdownMenuSeparator,{className:"mx-1 bg-border/70"}),v[2]=o,v[3]=a):(o=v[2],a=v[3]);let V=y?w??"system":"system";return v[4]!==j||v[5]!==V?(s=(0,t.jsx)(H,{label:"Theme",value:V,onChange:j,options:T}),v[4]=j,v[5]=V,v[6]=s):s=v[6],v[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(_.DropdownMenuSeparator,{className:"bg-border/70"}),v[7]=l):l=v[7],v[8]!==U||v[9]!==G?(i=(0,t.jsx)(H,{label:"Host",value:U,onChange:G,options:L}),v[8]=U,v[9]=G,v[10]=i):i=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(_.DropdownMenuSeparator,{className:"bg-border/70"}),v[11]=c):c=v[11],v[12]!==k||v[13]!==S?(d=(0,t.jsx)(H,{label:"Font",value:k,onChange:S,options:z,clampSampleText:!0,clampLabelText:!0}),v[12]=k,v[13]=S,v[14]=d):d=v[14],v[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(_.DropdownMenuSeparator,{className:"bg-border/70"}),v[15]=u):u=v[15],v[16]!==I||v[17]!==M?(m=(0,t.jsx)(H,{label:"Text size",value:M,onChange:I,options:P,clampDescriptionText:!0,descriptionNoWrap:!0}),v[16]=I,v[17]=M,v[18]=m):m=v[18],v[19]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(_.DropdownMenuSeparator,{className:"hidden min-[1024px]:block bg-border/70"}),v[19]=p):p=v[19],v[20]!==F||v[21]!==B?(f=(0,t.jsx)("div",{className:"hidden min-[1024px]:block",children:(0,t.jsx)(H,{label:"Layout",value:F,onChange:B,options:A,columns:2})}),v[20]=F,v[21]=B,v[22]=f):f=v[22],v[23]!==m||v[24]!==f||v[25]!==s||v[26]!==i||v[27]!==d?(h=(0,t.jsxs)(_.DropdownMenu,{children:[e,(0,t.jsxs)(_.DropdownMenuContent,{align:"end",sideOffset:10,className:"w-[min(19rem,calc(100vw-1rem))] rounded-[18px] border border-border/80 bg-background/95 p-1.5 shadow-[0_24px_60px_-24px_rgba(0,0,0,0.45)] backdrop-blur-xl",children:[o,a,(0,t.jsxs)("div",{className:"space-y-3 px-2 py-2",children:[s,l,i,c,d,u,m,p,f]})]})]}),v[23]=m,v[24]=f,v[25]=s,v[26]=i,v[27]=d,v[28]=h):h=v[28],h}var B=e.i(827053),U=e.i(150364);function G(e){let n,o,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(o=(0,t.jsx)(U.Dialog.Root,{"data-slot":"sheet",...n}),a[2]=n,a[3]=o):o=a[3],o}function V(e){let n,o,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(o=(0,t.jsx)(U.Dialog.Trigger,{"data-slot":"sheet-trigger",...n}),a[2]=n,a[3]=o):o=a[3],o}function K(e){let n,o,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(o=(0,t.jsx)(U.Dialog.Portal,{"data-slot":"sheet-portal",...n}),a[2]=n,a[3]=o):o=a[3],o}function $(e){let n,o,a,s,l=(0,r.c)(8);return l[0]!==e?({className:n,...o}=e,l[0]=e,l[1]=n,l[2]=o):(n=l[1],o=l[2]),l[3]!==n?(a=(0,I.cn)("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 text-sm/relaxed duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",n),l[3]=n,l[4]=a):a=l[4],l[5]!==o||l[6]!==a?(s=(0,t.jsx)(U.Dialog.Overlay,{"data-slot":"sheet-overlay",className:a,...o}),l[5]=o,l[6]=a,l[7]=s):s=l[7],s}function q(e){let n,o,a,s,l,i,c,d,u,m=(0,r.c)(17);m[0]!==e?({className:o,children:n,side:s,showCloseButton:l,...a}=e,m[0]=e,m[1]=n,m[2]=o,m[3]=a,m[4]=s,m[5]=l):(n=m[1],o=m[2],a=m[3],s=m[4],l=m[5]);let p=void 0===s?"right":s,f=void 0===l||l;return m[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)($,{}),m[6]=i):i=m[6],m[7]!==o?(c=(0,I.cn)("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:sli
1de-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-sm/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",o),m[7]=o,m[8]=c):c=m[8],m[9]!==f?(d=f&&(0,t.jsx)(U.Dialog.Close,{"data-slot":"sheet-close",asChild:!0,children:(0,t.jsxs)(N.Button,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[(0,t.jsx)(B.IconX,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})}),m[9]=f,m[10]=d):d=m[10],m[11]!==n||m[12]!==a||m[13]!==p||m[14]!==c||m[15]!==d?(u=(0,t.jsxs)(K,{children:[i,(0,t.jsxs)(U.Dialog.Content,{"data-slot":"sheet-content","data-side":p,className:c,...a,children:[n,d]})]}),m[11]=n,m[12]=a,m[13]=p,m[14]=c,m[15]=d,m[16]=u):u=m[16],u}function W(e){let n,o,a,s,l=(0,r.c)(8);return l[0]!==e?({className:n,...o}=e,l[0]=e,l[1]=n,l[2]=o):(n=l[1],o=l[2]),l[3]!==n?(a=(0,I.cn)("text-foreground text-base font-medium",n),l[3]=n,l[4]=a):a=l[4],l[5]!==o||l[6]!==a?(s=(0,t.jsx)(U.Dialog.Title,{"data-slot":"sheet-title",className:a,...o}),l[5]=o,l[6]=a,l[7]=s):s=l[7],s}var Q=e.i(279175),X=e.i(44215),J=e.i(987386);let Y=h.parseAsString.withDefault("").withOptions({clearOnDefault:!0,scroll:!1}),Z=(0,h.parseAsStringLiteral)(["all","popular","new","updated","unpopular","vm","addon","dev","arm"]).withDefault("all").withOptions({clearOnDefault:!0,scroll:!1}),ee=(0,h.parseAsStringLiteral)(["category","popular","new","updated","unpopular","name"]).withDefault("category").withOptions({clearOnDefault:!0,scroll:!1}),et=(0,h.parseAsArrayOf)((0,h.parseAsStringLiteral)(["ct","vm","addon","pve"]),",").withDefault([]).withOptions({clearOnDefault:!0,scroll:!1}),er=h.parseAsBoolean.withDefault(!1).withOptions({clearOnDefault:!0,scroll:!1}),en=h.parseAsString.withDefault("").withOptions({clearOnDefault:!0,scroll:!1}),eo=h.parseAsString.withDefault("").withOptions({clearOnDefault:!0,scroll:!1}),ea={q:Y,sort:ee,type:et,arm:er,incus:er,testing:er,preview:eo,filter:Z},es=(0,h.createSerializer)(ea),el=(0,h.createSerializer)({q:Y,preview:eo}),ei={category:h.parseAsString.withDefault("").withOptions({clearOnDefault:!0,scroll:!1}),preview:eo,q:Y};(0,h.createSerializer)(ei);let ec={from:(0,h.parseAsStringLiteral)(["home","scripts","pinned","disabled-deleted","breaking-changes"]).withOptions({clearOnDefault:!0,scroll:!1}),fromQ:Y,fromSort:ee,fromType:et,fromArm:er,fromTesting:er},ed=(0,h.createSerializer)(ec);function eu(){let e=(0,f.usePathname)(),r=(0,f.useRouter)(),[n,o]=(0,h.useQueryState)("q",Y),[a,s]=(0,g.useState)(n),{suggestions:l,loading:i,hasQuery:c}=function(e){let t=e.trim(),{host:r}=(0,x.useHostPlatform)(),[n,o]=(0,g.useState)([]),[a,s]=(0,g.useState)(!1),l=(0,g.useRef)(null),i=(0,g.useCallback)(async e=>{if(!e)return void o([]);l.current?.abort();let t=new AbortController;l.current=t,s(!0);try{o(await (0,X.fetchScriptSuggestions)(e,5,{signal:t.signal,host:r}))}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;o([])}finally{t.signal.aborted||s(!1)}},[r]);return(0,g.useEffect)(()=>{if(!t){o([]),s(!1),l.current?.abort();return}s(!0);let e=setTimeout(()=>i(t),200);return()=>clearTimeout(e)},[t,i]),{suggestions:n,loading:!!t&&a,hasQuery:!!t}}(a),[d,m]=(0,g.useState)(!1),[p,b]=(0,g.useState)(-1),v=(0,g.useRef)(null),y=(0,g.useRef)(null),w=(0,g.useRef)(null),j=(0,g.useRef)(null),k=(0,g.useRef)(new Map);(0,g.useEffect)(()=>{b(-1)},[]),(0,g.useEffect)(()=>
1{if(p<0)return;let e=k.current.get(p);e?.scrollIntoView({block:"nearest"})},[p]),(0,g.useEffect)(()=>{document.activeElement!==w.current&&s(n)},[n]),(0,g.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),w.current?.focus(),w.current?.select())}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,g.useEffect)(()=>{function e(e){y.current&&!y.current.contains(e.target)&&m(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,g.useEffect)(()=>()=>{v.current&&clearTimeout(v.current)},[]);let S="/"===e||"/scripts"===e||"/categories"===e,M=(0,g.useCallback)(e=>{v.current&&(clearTimeout(v.current),v.current=null);let t=e.trim();m(!1),r.push(es("/scripts",{q:t||null}))},[r]),D=(0,g.useCallback)(e=>{s(e),e.trim()&&m(!0),S&&(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{v.current=null,o(e.trim()?e:"",{history:"replace"})},300))},[o,S]),C=(0,g.useCallback)(e=>{m(!1),b(-1),r.push(`/scripts/${e}`)},[r]),N=l.length,_=(0,g.useRef)(d);_.current=d;let I=(0,g.useRef)(c);I.current=c;let R=(0,g.useRef)(p);R.current=p;let O=(0,g.useRef)(l);O.current=l;let E=(0,g.useRef)(N);E.current=N;let P=(0,g.useRef)(a);return P.current=a,(0,g.useEffect)(()=>{let e=w.current;if(!e)return;let t=e=>{if(!_.current||!I.current)return;let t=R.current,r=O.current,n=E.current,o=r.length;switch(e.key){case"ArrowDown":e.preventDefault(),b(e=>e<n?e+1:0);break;case"ArrowUp":e.preventDefault(),b(e=>e>0?e-1:n);break;case"Enter":t>=0&&t<o?(e.preventDefault(),C(r[t].slug)):t===o&&(e.preventDefault(),M(P.current));break;case"Escape":e.preventDefault(),m(!1),b(-1)}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[C,M]),(0,t.jsxs)("form",{className:"relative min-w-0 w-full max-w-xs",ref:y,onSubmit:e=>{e.preventDefault(),M(a)},children:[(0,t.jsx)(u.IconSearch,{className:"pointer-events-none absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)("input",{ref:w,type:"search",placeholder:"Search scripts…",className:"w-full rounded-[10px] border-[1.5px] border-border bg-card py-2 pl-9 pr-4 text-[0.8125rem] text-foreground outline-none transition-all placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/20 dark:bg-card sm:pr-14",value:a,onChange:e=>D(e.target.value),onFocus:()=>{c&&(m(!0),b(-1))},autoComplete:"off",role:"combobox","aria-expanded":d,"aria-controls":"search-suggestions-list","aria-activedescendant":p>=0&&p<N?`search-option-${p}`:p===N?"search-option-all":void 0}),(0,t.jsxs)("kbd",{className:"pointer-events-none absolute right-3 top-1/2 hidden -translate-y-1/2 select-none items-center gap-0.5 rounded-md border border-border bg-muted/60 px-1.5 py-0.5 text-[0.625rem] font-medium text-muted-foreground sm:inline-flex",children:[(0,t.jsx)("span",{className:"text-[0.6875rem]",children:"⌘"}),"K"]}),d&&c&&(0,t.jsx)("div",{id:"search-suggestions-list",ref:j,role:"listbox",className:"absolute inset-x-0 top-full z-50 mt-1 max-h-56 overflow-auto rounded-xl border border-border bg-card py-1 shadow-lg",children:i?(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"Loading…"}):0===l.length?(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No scripts match"}):(0,t.jsxs)(t.Fragment,{children:[l.map((e,r)=>{let n=(0,J.getScriptTypeStyle)(e.type_slug);return(0,t.jsxs)("button",{id:`search-option-${r}`,type:"button",role:"option",ref:e=>{e?k.current.set(r,e):k.current.delete(r)},"aria-selected":p===r,className:`flex w-full items-center justify-between gap-2 px-3 py-2 text-left text-sm transition-colors focus:outline-none ${p===r?"bg-primary/10 text-primary":"text-foreground hover:bg-muted focus:bg-muted"}`,onClick:()=>C(e.slug),onMouseEnter:()=>b(-1),children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),n&&(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-1.5 py-0.5 text-[0.625rem] font-semibold leading-none ${n.className}`,children:n.label})]},e.slug)}),(0,t.jsxs)("button",{id:"search-option-all",type:"submit",ref:e=>{e?k.current.set(N,e):k.current.delete(N)},className:`flex w-full items-center gap-2 border-t border-border px-3 py-2 text-left text-sm font-medium transition-colors focus:outline-none ${p===N?"bg-primary/10 text-primary":"text-primary hover:bg-muted focus:bg-muted"}`,onMouseEnter:()=>b(-1),children:[(0,t.jsx)(u.IconSearch,{className:"size-3.5 shrink-0"}),(0,t.jsxs)("span",{className:"truncate",children:['Search all scripts for "',a.trim(),'"']})]})]})})]})}
1(0,h.createSerializer)({script:en}),e.s(["categoriesPageUrlState",0,ei,"filterStateFromLegacy",0,function(e){let t={sort:"category",types:[],arm:!1,incus:!1,testing:!1};switch(e){case"popular":case"new":case"updated":case"unpopular":return{...t,sort:e};case"vm":return{...t,sort:"new",types:["vm"]};case"addon":return{...t,sort:"new",types:["addon"]};case"arm":return{...t,sort:"new",arm:!0};case"dev":return{...t,sort:"new",testing:!0};default:return t}},"generatorScriptParser",0,en,"scriptDetailUrlState",0,ec,"scriptPreviewParser",0,eo,"scriptsPageUrlState",0,ea,"searchQueryParser",0,Y,"serializeHomeUrl",0,el,"serializeScriptDetailUrl",0,ed,"serializeScriptsUrl",0,es],688528);let em=[{href:"/pinned",label:"Pinned"},{href:"/disabled-deleted",label:"Disabled & Deleted"},{href:"/breaking-changes",label:"Breaking changes"},{href:"/maintainers",label:"Maintainers"}];function ep(e){let n,o,a,s,l,i,c,d=(0,r.c)(11),{isAllScripts:u,isPinned:m,isDisabledDeleted:f,isBreakingChanges:h}=e,[x,b]=(0,g.useState)(!1),v=(0,g.useRef)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{v.current&&clearTimeout(v.current),v.current=setTimeout(()=>b(!0),400)},d[0]=n):n=d[0];let y=n;d[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{v.current&&clearTimeout(v.current),v.current=setTimeout(()=>b(!1),200)},d[1]=o):o=d[1];let w=o;d[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>()=>{v.current&&clearTimeout(v.current)},s=[],d[2]=a,d[3]=s):(a=d[2],s=d[3]),(0,g.useEffect)(a,s);let j=`inline-flex items-center rounded-lg px-3.5 py-1.5 text-[0.8125rem] font-semibold transition-colors ${u||m||f||h?"bg-foreground text-background dark:bg-primary dark:text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`;return d[4]!==j?(l=(0,t.jsx)(p.default,{href:"/scripts",className:j,children:"All Scripts"}),d[4]=j,d[5]=l):l=d[5],d[6]!==x?(i=x&&(0,t.jsx)("div",{className:"absolute left-0 top-full z-50 pt-1",children:(0,t.jsx)("div",{className:"min-w-[180px] rounded-xl border border-border bg-card py-1 shadow-lg",children:em.map(e=>{let{href:r,label:n}=e;return(0,t.jsx)(p.default,{href:r,onClick:()=>b(!1),className:"flex items-center gap-2 px-3.5 py-2 text-[0.8125rem] font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:n},r)})})}),d[6]=x,d[7]=i):i=d[7],d[8]!==l||d[9]!==i?(c=(0,t.jsxs)("nav",{className:"relative flex items-center",onMouseEnter:y,onMouseLeave:w,children:[l,i]}),d[8]=l,d[9]=i,d[10]=c):c=d[10],c}let ef=[{id:"news",label:"News",icon:d.IconNews},{id:"faq",label:"FAQ",icon:i.IconHelpCircle},{id:"shoutouts",label:"Shoutouts",icon:s.IconHeart},{id:"sponsoring",label:"Sponsoring",icon:l.IconHeartHandshake}],eh=[{href:"/analytics",label:"Analytics",icon:a.IconChartBar}];function eg(e){let n,o,a,s,l,i,c,d=(0,r.c)(12),{isCommunity:u}=e,[m,h]=(0,g.useState)(!1),x=(0,g.useRef)(null),b=(0,f.usePathname)();d[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>h(!0),400)},d[0]=n):n=d[0];let v=n;d[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>h(!1),200)},d[1]=o):o=d[1];let y=o;d[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>()=>{x.current&&clearTimeout(x.current)},s=[],d[2]=a,d[3]=s):(a=d[2],s=d[3]),(0,g.useEffect)(a,s);let w=`inline-flex items-center rounded-lg px-3.5 py-1.5 text-[0.8125rem] font-semibold transition-colors ${u?"bg-foreground text-background dark:bg-primary dark:text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`;return d[4]!==w?(l=(0,t.jsx)(p.default,{href:"/community",className:w,children:"Community"}),d[4]=w,d[5]=l):l=d[5],d[6]!==m||d[7]!==b?(i=m&&(0,t.jsx)("div",{className:"absolute left-0 top-full z-50 pt-1",children:(0,t.jsxs)("div",{className:"min-w-[160px] rounded-xl border border-border bg-card py-1 shadow-lg",children:[ef.map(e=>{let{id:r,label:n,icon:o}=e;return(0,t.jsxs)(p.default,{href:`/community#${r}`,onClick:e=>{h(!1),"/community"===b&&(e.preventDefault(),window.location.hash=r,window.dispatchEvent(new HashChangeEvent("hashchange")))},className:"flex items-center gap-2 px-3.5 py-2 text-[0.8125rem] font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:[(0,t.jsx)(o,{className:"size-3.5"}),n]},r)}),(0,t.jsx)("div",{className:"my-1 h-px bg-border"}),eh.map(e=>{let{href:r,label:n,icon:o}=e;return(0,t.jsxs)(p.default,{href:r,onClick:()=>h(!1),className:"flex items-center gap-2 px-3.5 py-2 text-[0.8125rem] font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:[(0,t.jsx)(o,{className:"size-3.5"}),n]},r)})]})}),d[6]=m,d[7]=b,d[8]=i):i=d[8],d[9]!==l||d[10]!==i?(c=(0,t.jsxs)("nav",{className:"relative flex items-center",onMouseEnter:v,onMouseLeave:y,children:[l,i]}),d[9]=l,d[10]=i,d[11]=c):c=d[11],c}function ex(e){let{href:r,label:n,active:o,...a}=e;return(0,t.jsx)(p.default,{href:r,className:`rounded-lg px-3.5 py-2 text-sm font-semibold transition-colors ${o?"bg-foreground text-background dark:bg-primary dark:text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"} ${"indent"in a?"ml-4 text-[0.8125rem] font-medium":""}`,children:n},r)}e.s(["TopBar",0,function(){let e,a,s,i,d,u,h,g,b,v,y,w,j,k,S,M,D,C,N,_,I,R,O,E,P,z,T,A,L,H,B,U,K,$,J,Y,Z,ee,et,er,en,eo,ea,es,el,ei=(0,r.c)(90),ec=(0,f.usePathname)(),ed=(0,f.useRouter)(),{host:em}=(0,x.useHostPlatform)();ei[0]!==em||ei[1]!==ed?(e=async()=>{let e=await (0,X.fetchRandomScriptSlug)({host:em});e&&ed.push(`/scripts/${e}`)},ei[0]=em,ei[1]=ed,ei[2]=e):e=ei[2];let ef=e;ei[3]!==ec?(a="/categories"===ec||ec.startsWith("/category/"),ei[3]=ec,ei[4]=a):a=ei[4];let eh=a,eb="/pinned"===ec,ev="/disabled-deleted"===ec,ey="/breaking-changes"===ec;ei[5]!==ec?(s="/scripts"===ec||ec.startsWith("/scripts/"),ei[5]=ec,ei[6]=s):s=ei[6];let ew=s,ej="/generator"===ec;ei[7]!==ec?(i="/docs"===ec||ec.startsWith("/docs/"),ei[7]=ec,ei[8]=i):i=ei[8];let ek=i,eS="/analytics"===ec,eM="/community"===ec||"/faq"===ec||"/news"===ec;ei[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)(p.default,{href:"/",className:"flex shrink-0 items-center gap-2.5 text-foreground no-underline",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"size-[26px] fill-primary",role:"img","aria-label":"Community Scripts logo",children:[(0,t.jsx)("title",{children:"Community Scripts"}),(0,t.jsx)("path",{d:"M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.18L19.18 7.5 12 11.82 4.82 7.5 12 4.18zM4 8.82l7 3.5V19l-7-3.5V8.82zm9 10.18v-6.68l7-3.5V15.5l-7 3.5z"})]}),(0,t.jsx)("span",{className:"hidden text-[0.9375rem] font-bold tracking-tight sm:inline",children:"Community Scripts"})]}),ei[9]=d):d=ei[9],ei[10]!==ew||ei[11]!==ey||ei[12]!==ev||ei[13]!==eb?(u=(0,t.jsx)(ep,{isAllScripts:e
1w,isPinned:eb,isDisabledDeleted:ev,isBreakingChanges:ey}),ei[10]=ew,ei[11]=ey,ei[12]=ev,ei[13]=eb,ei[14]=u):u=ei[14];let eD=`inline-flex items-center rounded-lg px-3.5 py-1.5 text-[0.8125rem] font-semibold transition-colors ${eh?"bg-foreground text-background dark:bg-primary dark:text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`;ei[15]!==eD?(h=(0,t.jsx)(p.default,{href:"/categories",className:eD,children:"Categories"}),ei[15]=eD,ei[16]=h):h=ei[16];let eC=`inline-flex items-center rounded-lg px-3.5 py-1.5 text-[0.8125rem] font-semibold transition-colors ${ej?"bg-foreground text-background dark:bg-primary dark:text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`;ei[17]!==eC?(g=(0,t.jsx)(p.default,{href:"/generator",className:eC,children:"Generator"}),ei[17]=eC,ei[18]=g):g=ei[18];let eN=`inline-flex items-center rounded-lg px-3.5 py-1.5 text-[0.8125rem] font-semibold transition-colors ${ek?"bg-foreground text-background dark:bg-primary dark:text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`;ei[19]!==eN?(b=(0,t.jsx)(p.default,{href:Q.siteConfig.docs,className:eN,children:"Docs"}),ei[19]=eN,ei[20]=b):b=ei[20],ei[21]!==eM?(v=(0,t.jsx)(eg,{isCommunity:eM}),ei[21]=eM,ei[22]=v):v=ei[22],ei[23]!==b||ei[24]!==v||ei[25]!==u||ei[26]!==h||ei[27]!==g?(y=(0,t.jsxs)("nav",{className:"hidden items-center gap-1 lg:flex",children:[u,h,g,b,v]}),ei[23]=b,ei[24]=v,ei[25]=u,ei[26]=h,ei[27]=g,ei[28]=y):y=ei[28],ei[29]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("div",{className:"flex-1"}),ei[29]=w):w=ei[29],ei[30]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(eu,{}),ei[30]=j):j=ei[30],ei[31]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)(m.IconWand,{className:"size-[18px]"}),ei[31]=k):k=ei[31],ei[32]!==ef?(S=(0,t.jsx)("button",{type:"button",onClick:ef,className:"hidden size-9 shrink-0 items-center justify-center rounded-[10px] border-[1.5px] border-border bg-card text-muted-foreground transition-colors hover:border-primary hover:bg-primary/10 hover:text-primary lg:flex","aria-label":"Open random script",title:"I'm feeling lucky",children:k}),ei[32]=ef,ei[33]=S):S=ei[33],ei[34]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)(F,{}),ei[34]=M):M=ei[34],ei[35]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsx)("a",{href:Q.siteConfig.repo,target:"_blank",rel:"noopener noreferrer",className:"hidden size-9 shrink-0 items-center justify-center rounded-[10px] border-[1.5px] border-border bg-card text-muted-foreground transition-colors hover:border-foreground hover:text-foreground lg:flex","aria-label":"GitHub",children:(0,t.jsx)(o.IconBrandGithub,{className:"size-[18px]"})}),ei[35]=D):D=ei[35],ei[36]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("a",{href:Q.siteConfig.discord,target:"_blank",rel:"noopener noreferrer",className:"hidden size-9 shrink-0 items-center justify-center rounded-[10px] border-[1.5px] border-border bg-card text-muted-foreground transition-colors hover:border-foreground hover:text-foreground lg:flex","aria-label":"Discord",children:(0,t.jsx)(n.IconBrandDiscord,{className:"size-[18px]"})}),ei[36]=C):C=ei[36],ei[37]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(p.default,{href:"/donate",className:"hidden size-9 shrink-0 items-center justify-center rounded-[10px] border-[1.5px] border-[#FF5E5B]/30 bg-card text-[#FF5E5B] transition-colors hover:border-[#FF5E5B] hover:bg-[#FF5E5B]/10 lg:flex","aria-label":"Sponsoring",title:"Sponsoring",children:(0,t.jsx)(l.IconHeartHandshake,{className:"size-[18px]"})}),ei[37]=N):N=ei[37],ei[38]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(V,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"flex size-9 shrink-0 items-center justify-center rounded-[10px] border-[1.5px] border-border bg-card text-muted-foreground transition-colors hover:border-primary hover:bg-primary/10 hover:text-primary lg:hidden","aria-label":"Open menu",children:(0,t.jsx)(c.IconMenu2,{className:"size-[18px]"})})}),ei[38]=_):_=ei[38],ei[39]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)(W,{className:"sr-only",children:"Navigation"}),ei[39]=I):I=ei[39],ei[40]!==ew?(R={href:"/scripts",label:"All Scripts",active:ew},ei[40]=ew,ei[41]=R):R=ei[41],ei[42]!==eb?(O={href:"/pinned",label:"Pinned versions",active:eb,indent:!0},ei[42]=eb,ei[43]=O):O=ei[43],ei[44]!==ev?(E={href:"/disabled-deleted",label:"Disabled & Deleted",active:ev,indent:!0},ei[44]=ev,ei[45]=E):E=ei[45],ei[46]!==ey?(P={href:"/breaking-changes",label:"Breaking changes",active:ey,indent:!0},ei[46]=ey,ei[47]=P):P=ei[47],ei[48]!==eh?(z={href:"/categories",label:"Categories",active:eh},ei[48]=eh,ei[49]=z):z=ei[49],ei[50]!==ej?(T={href:"/generator",label:"Generator",active:ej},ei[50]=ej,ei[51]=T):T=ei[51],ei[52]!==ek?(A={href:Q.siteConfig.docs,label:"Docs",active:ek},ei[52]=ek,ei[53]=A):A=ei[53],ei[54]!==eM?(L={href:"/community",label:"Community",active:eM},ei[54]=eM,ei[55]=L):L=ei[55],ei[56]!==eS?(H={href:"/analytics",label:"Analytics",active:eS,indent:!0},ei[56]=eS,ei[57]=H):H=ei[57],ei[58]===Symbol.for("react.memo_cache_sentinel")?(B={href:"/community#news",label:"News",active:!1,indent:!0},U={href:"/community#faq",label:"FAQ",active:!1,indent:!0},K={href:"/community#shoutouts",label:"Shoutouts",active:!1,indent:!0},$={href:"/community#sponsoring",label:"Sponsoring",active:!1,indent:!0}
1,ei[58]=B,ei[59]=U,ei[60]=K,ei[61]=$):(B=ei[58],U=ei[59],K=ei[60],$=ei[61]),ei[62]!==R||ei[63]!==O||ei[64]!==E||ei[65]!==P||ei[66]!==z||ei[67]!==T||ei[68]!==A||ei[69]!==L||ei[70]!==H?(J=[R,O,E,P,z,T,A,L,H,B,U,K,$],ei[62]=R,ei[63]=O,ei[64]=E,ei[65]=P,ei[66]=z,ei[67]=T,ei[68]=A,ei[69]=L,ei[70]=H,ei[71]=J):J=ei[71];let e_=J;return ei[72]!==e_?(Y=e_.map(ex),ei[72]=e_,ei[73]=Y):Y=ei[73],ei[74]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,t.jsx)("div",{className:"my-2 h-px bg-border"}),ei[74]=Z):Z=ei[74],ei[75]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,t.jsx)(m.IconWand,{className:"size-4"}),ei[75]=ee):ee=ei[75],ei[76]!==ef?(et=(0,t.jsxs)("button",{type:"button",onClick:ef,className:"flex items-center gap-2 rounded-lg px-3.5 py-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:[ee,"I'm feeling lucky"]}),ei[76]=ef,ei[77]=et):et=ei[77],ei[78]===Symbol.for("react.memo_cache_sentinel")?(er=(0,t.jsxs)("a",{href:Q.siteConfig.repo,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-lg px-3.5 py-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:[(0,t.jsx)(o.IconBrandGithub,{className:"size-4"}),"GitHub"]}),ei[78]=er):er=ei[78],ei[79]===Symbol.for("react.memo_cache_sentinel")?(en=(0,t.jsxs)("a",{href:Q.siteConfig.discord,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-lg px-3.5 py-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:[(0,t.jsx)(n.IconBrandDiscord,{className:"size-4"}),"Discord"]}),ei[79]=en):en=ei[79],ei[80]===Symbol.for("react.memo_cache_sentinel")?(eo=(0,t.jsxs)(p.default,{href:"/donate",className:"flex items-center gap-2 rounded-lg px-3.5 py-2 text-sm font-medium text-[#FF5E5B] transition-colors hover:bg-[#FF5E5B]/10",children:[(0,t.jsx)(l.IconHeartHandshake,{className:"size-4"}),"Sponsoring"]}),ei[80]=eo):eo=ei[80],ei[81]!==Y||ei[82]!==et?(ea=(0,t.jsxs)(G,{children:[_,(0,t.jsxs)(q,{side:"right",className:"w-64 p-0",children:[I,(0,t.jsxs)("nav",{className:"flex flex-col gap-1 p-4 pt-12",children:[Y,Z,et,er,en,eo]})]})]}),ei[81]=Y,ei[82]=et,ei[83]=ea):ea=ei[83],ei[84]!==S||ei[85]!==ea?(es=(0,t.jsxs)("div",{className:"flex min-w-0 shrink items-center gap-1",children:[j,S,M,D,C,N,ea]}),ei[84]=S,ei[85]=ea,ei[86]=es):es=ei[86],ei[87]!==y||ei[88]!==es?(el=(0,t.jsx)("header",{className:"sticky top-0 z-50 border-b border-border bg-background/82 backdrop-blur-xl transition-colors",children:(0,t.jsxs)("div",{className:"mx-auto flex h-[60px] max-w-[var(--layout-max-w)] items-center gap-2 px-3 sm:gap-3 sm:px-4 md:px-10",children:[d,y,w,es]})}
1),ei[87]=y,ei[88]=es,ei[89]=el):el=ei[89],el}],54848)},181847,e=>{"use strict";let t=(0,e.i(984106).default)("outline","adjustments-horizontal","AdjustmentsHorizontal",[["path",{d:"M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M4 6l8 0",key:"svg-1"}],["path",{d:"M16 6l4 0",key:"svg-2"}],["path",{d:"M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M4 12l2 0",key:"svg-4"}],["path",{d:"M10 12l10 0",key:"svg-5"}],["path",{d:"M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-6"}],["path",{d:"M4 18l11 0",key:"svg-7"}],["path",{d:"M19 18l1 0",key:"svg-8"}]]);e.s(["IconAdjustmentsHorizontal",0,t],181847)},496732,e=>{"use strict";let t=(0,e.i(984106).default)("outline","arrows-maximize","ArrowsMaximize",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}],["path",{d:"M16 20l4 0l0 -4",key:"svg-4"}],["path",{d:"M14 14l6 6",key:"svg-5"}],["path",{d:"M8 4l-4 0l0 4",key:"svg-6"}],["path",{d:"M4 4l6 6",key:"svg-7"}]]);e.s(["IconArrowsMaximize",0,t],496732)},428267,e=>{"use strict";let t=(0,e.i(984106).default)("outline","chart-bar","ChartBar",[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]]);e.s(["IconChartBar",0,t],428267)},197546,e=>{"use strict";let t=(0,e.i(984106).default)("outline","device-desktop","DeviceDesktop",[["path",{d:"M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}]]);e.s(["IconDeviceDesktop",0,t],197546)},900109,e=>{"use strict";let t=(0,e.i(984106).default)("outline","heart","Heart",[["path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572",key:"svg-0"}]]);e.s(["IconHeart",0,t],900109)},399455,e=>{"use strict";let t=(0,e.i(984106).default)("outline","heart-handshake","HeartHandshake",[["path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572",key:"svg-0"}],["path",{d:"M12 6l-3.293 3.293a1 1 0 0 0 0 1.414l.543 .543c.69 .69 1.81 .69 2.5 0l1 -1a3.182 3.182 0 0 1 4.5 0l2.25 2.25",key:"svg-1"}],["path",{d:"M12.5 15.5l2 2",key:"svg-2"}],["path",{d:"M15 13l2 2",key:"svg-3"}]]);e.s(["IconHeartHandshake",0,t],399455)},554353,e=>{"use strict";let t=(0,e.i(984106).default)("outline","menu-2","Menu2",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]]);e.s(["IconMenu2",0,t],554353)},846326,251041,463415,e=>{"use strict";var t=e.i(984106);let r=(0,t.default)("outline","moon","Moon",[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]]);e.s(["IconMoon",0,r],846326);let n=(0,t.default)("outline","sun","Sun",[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]);e.s(["IconSun",0,n],251041);var o=e.i(714918),a=e.i(914125);e.i(913766),e.i(910137);var s=e.i(862415),l=e.i(543836),i=e.i(976173),c=e.i(464503),d=e.i(76440),u=e.i(156316),m=e.i(954379),p=e.i(128461),f=e.i(998037),h=e.i(225948),g=e.i(647776),x=e.i(244726),b=e.i(759848),v=e.i(723416),y=e.i(911681),w=e.i(51147),j=e.i(950700),k=e.i(228755),S=e.i(73772),M=e.i(180962),D=Object.defineProperty,C=(e,t)=>D(e,"name",{value:t,configurable:!0}),N=["Enter"," "],_=["ArrowUp","PageDown","End"],I=["ArrowDown","PageUp","Home",..._],R={ltr:[...N,"ArrowRight"],rtl:[...N,"ArrowLeft"]},O={ltr:["ArrowLeft"],rtl:["ArrowRight"]},E="Menu",[P,z,T]=(0,m.createCollection)(E),[A,L]=(0,c.createContextScope)(E,[T,b.createPopperScope,w.createRovingFocusGroupScope]),H=(0,b.createPopperScope)(),F=(0,w.createRovingFocusGroupScope)(),[B,U]=A(E),[G,V]=A(E),K=C(e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:l,modal:i=!0}=e,c=H(t),[d,u]=s.useState(null),m=s.useRef(!1),f=(0,k.useCallbackRef)(l),h=(0,p.useDirection)(a);return s.useEffect(()=>{let e=C(()=>{m.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},"handleKeyDown"),t=C(()=>m.current=!1,"handlePointer");return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),s.useEffect(()=>{if(!r)return;let e=C(()=>f(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[r,f]),(0,o.jsx)(b.Root,{...c,children:(0,o.jsx)(B,{scope:t,open:r,onOpenChange:f,content:d,onContentChange:u,children:(0,o.jsx)(G,{scope:t,onClose:s.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:m,dir:h,modal:i,children:n})})})},"Menu"),$=s.forwardRef(C(function(e,t){let{__scopeMenu:r,...n}=e,a=H(r);return(0,o.jsx)(b.Anchor,{...a,...n,ref:t})},"MenuAnchor")),q="MenuPortal",[W,Q]=A(q,{forceMount:void 0}),X=C(e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,s=U(q,t);return(0,o.jsx)(W,{scope:t,forceMount:r,children:(0,o.jsx)(y.Presence,{present:r||s.open,children:(0,o.jsx)(v.Portal,{asChild:!0,container:a,children:n})})})},"MenuPortal"),J="MenuContent",[Y,Z]=A(J),ee=s.forwardRef(C(function(e,t){let r=Q(J,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,s=U(J,e.__scopeMenu),l=V(J,e.__scopeMenu);return(0,o.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(y.Presence,{present:n||s.open,children:(0,o.jsx)(P.Slot,{scope:e.__scopeMenu,children:l.modal?(0,o.jsx)(et,{...a,ref:t}):(0,o.jsx)(er,{...a,ref:t})})})})},"MenuContent")),et=s.forwardRef(C(function(e,t){let r=U(J,e.__scopeMenu),n=s.useRef(null),a=(0,i.useComposedRefs)(t,n);return s.useEffect(()=>{let e=n.current;if(e)return(0,S.hideOthers)(e)},[]),(0,o.jsx)(eo,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),er=s.forwardRef(C(function(e,t){let r=U(J,e.__scopeMenu);return(0,o.jsx)(eo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),en=(0,j.createSlot)("MenuContent.ScrollLock"),eo=s.forwardRef(C(function(e,t){let{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:u,onEntryFocus:m,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:v,onInteractOutside:y,onDismiss:j,disableOutsideScroll:k,...S}=e,D=U(J,r),N=V(J,r),R=H(r),O=F(r),E=z(r),[P,T]=s.useState(null),A=s.useRef(null),L=(0,i.useComposedRefs)(t,A,D.onContentChange),B=s.useRef(0),G=s.useRef(""),K=s.useRef(0),$=s.useRef(null),q=s.useRef("right"),W=s.useRef(0),Q=k?M.RemoveScroll:s.Fragment,X=C(e=>{let t=G.current+e,r=E().filter(e=>!e.disabled),n=document.activeElement,o=r.find(e=>e.ref.current===n)?.textValue,a=eP(r.map(e=>e.textValue),t,o),s=r.find(e=>e.textValue===a)?.ref.current;s&&setTimeout(()=>s.focus())},"handleTypeaheadSearch");s.useEffect(()=>()=>window.clearTimeout(B.current),[]),(0,h.useFocusGuards)();let Z=s.useCallback(e=>q.current===$.current?.side&&eT(e,$.current?.area),[]);return(0,o.jsx)(Y,{scope:r,searchRef:G,onItemEnter:s.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:s.useCallback(e=>{Z(e)||(A.current?.focus(),T(null))}
1,[Z]),onTriggerLeave:s.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:K,onPointerGraceIntentChange:s.useCallback(e=>{$.current=e},[]),children:(0,o.jsx)(Q,{...k?{as:en,allowPinchZoom:!0}:void 0,children:(0,o.jsx)(g.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:(0,l.composeEventHandlers)(c,e=>{e.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,o.jsx)(f.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:v,onInteractOutside:y,onDismiss:j,children:(0,o.jsx)(w.Root,{asChild:!0,...O,dir:N.dir,orientation:"vertical",loop:n,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:(0,l.composeEventHandlers)(m,e=>{N.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,o.jsx)(b.Content,{role:"menu","aria-orientation":"vertical","data-state":e_(D.open),"data-radix-menu-content":"",dir:N.dir,...R,...S,ref:L,style:{outline:"none",...S.style},onKeyDown:(0,l.composeEventHandlers)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&X(e.key));let o=A.current;if(e.target!==o||!I.includes(e.key))return;e.preventDefault();let a=E().filter(e=>!e.disabled).map(e=>e.ref.current);_.includes(e.key)&&a.reverse(),eO(a)}),onBlur:(0,l.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(B.current),G.current="")}),onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eA(e=>{let t=e.target,r=W.current!==e.clientX;e.currentTarget.contains(t)&&r&&(q.current=e.clientX>W.current?"right":"left",W.current=e.clientX)}))})})})})})})},"MenuContentImpl")),ea=s.forwardRef(C(function(e,t){let{__scopeMenu:r,...n}=e;return(0,o.jsx)(u.Primitive.div,{role:"group",...n,ref:t})},"MenuGroup")),es=s.forwardRef(C(function(e,t){let{__scopeMenu:r,...n}=e;return(0,o.jsx)(u.Primitive.div,{...n,ref:t})},"MenuLabel")),el="MenuItem",ei="menu.itemSelect",ec=s.forwardRef(C(function(e,t){let{disabled:r=!1,onSelect:n,...a}=e,c=s.useRef(null),d=V(el,e.__scopeMenu),m=Z(el,e.__scopeMenu),p=(0,i.useComposedRefs)(t,c),f=s.useRef(!1),h=C(()=>{let e=c.current;if(!r&&e){let t=new CustomEvent(ei,{bubbles:!0,cancelable:!0});e.addEventListener(ei,e=>n?.(e),{once:!0}),(0,u.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?f.current=!1:d.onClose()}},"handleSelect");return(0,o.jsx)(ed,{...a,ref:p,disabled:r,onClick:(0,l.composeEventHandlers)(e.onClick,h),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,l.composeEventHandlers)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{r||e.target!==e.currentTarget||(""===m.searchRef.current||" "!==e.key)&&N.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),ed=s.forwardRef(C(function(e,t){let{__scopeMenu:r,disabled:n=!1,textValue:a,...c}=e,d=Z(el,r),m=F(r),p=s.useRef(null),f=(0,i.useComposedRefs)(t,p),[h,g]=s.useState(!1),[x,b]=s.useState("");return s.useEffect(()=>{let e=p.current;e&&b((e.textContent??"").trim())},[c.children]),(0,o.jsx)(P.ItemSlot,{scope:r,disabled:n,textValue:a??x,children:(0,o.jsx)(w.Item,{asChild:!0,...m,focusable:!n,children:(0,o.jsx)(u.Primitive.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...c,ref:f,onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eA(e=>{n?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eA(e=>d.onItemLeave(e))),onFocus:(0,l.composeEventHandlers)(e.onFocus,()=>g(!0)),onBlur:(0,l.composeEventHandlers)(e.onBlur,()=>g(!1))})})})},"MenuItemImpl")),eu=s.forwardRef(C(function(e,t){let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,o.jsx)(ex,{scope:e.__scopeMenu,checked:r,children:(0,o.jsx)(ec,{role:"menuitemcheckbox","aria-checked":eI(r)?"mixed":r,...a,ref:t,"data-state":eR(r),onSelect:(0,l.composeEventHandlers)(a.onSelect,()=>n?.(!!eI(r)||!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),[em,ep]=A("MenuRadioGroup",{value:void 0,onValueChange:C(()=>{},"onValueChange")}),ef=s.forwardRef(C(function(e,t){let{value:r,onValueChange:n,...a}=e,s=(0,k.useCallbackRef)(n);return(0,o.jsx)(em,{scope:e.__scopeMenu,value:r,onValueChange:s,children:(0,o.jsx)(ea,{...a,ref:t})})},"MenuRadioGroup")),eh=s.forwardRef(C(function(e,t){let{value:r,...n}=e,a=ep("MenuRadioItem",e.__scopeMenu),s=r===a.value;return(0,o.jsx)(ex,{scope:e.__scopeMenu,checked:s,children:(0,o.jsx)(ec,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":eR(s),onSelect:(0,l.composeEventHandlers)(n.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),eg="MenuItemIndicator",[ex,eb]=A(eg,{checked:!1}
1),ev=s.forwardRef(C(function(e,t){let{__scopeMenu:r,forceMount:n,...a}=e,s=eb(eg,r);return(0,o.jsx)(y.Presence,{present:n||eI(s.checked)||!0===s.checked,children:(0,o.jsx)(u.Primitive.span,{...a,ref:t,"data-state":eR(s.checked)})})},"MenuItemIndicator")),ey=s.forwardRef(C(function(e,t){let{__scopeMenu:r,...n}=e;return(0,o.jsx)(u.Primitive.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})},"MenuSeparator")),ew=s.forwardRef(C(function(e,t){let{__scopeMenu:r,...n}=e,a=H(r);return(0,o.jsx)(b.Arrow,{...a,...n,ref:t})},"MenuArrow")),ej="MenuSub",[ek,eS]=A(ej),eM=C(e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,l=U(ej,t),i=H(t),[c,d]=s.useState(null),[u,m]=s.useState(null),p=(0,k.useCallbackRef)(a);return s.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,o.jsx)(b.Root,{...i,children:(0,o.jsx)(B,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:m,children:(0,o.jsx)(ek,{scope:t,contentId:(0,x.useId)(),triggerId:(0,x.useId)(),trigger:c,onTriggerChange:d,children:r})})})},"MenuSub"),eD="MenuSubTrigger",eC=s.forwardRef(C(function(e,t){let r=U(eD,e.__scopeMenu),n=V(eD,e.__scopeMenu),a=eS(eD,e.__scopeMenu),c=Z(eD,e.__scopeMenu),d=s.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:m}=c,p={__scopeMenu:e.__scopeMenu},f=s.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);s.useEffect(()=>f,[f]),s.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),m(null)}},[u,m]);let h=(0,i.useComposedRefs)(t,a.onTriggerChange);return(0,o.jsx)($,{asChild:!0,...p,children:(0,o.jsx)(ed,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?a.contentId:void 0,"data-state":e_(r.open),...e,ref:h,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eA(t=>{c.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||d.current||(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eA(e=>{f();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,o="right"===n,a=t[o?"left":"right"],s=t[o?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(""===c.searchRef.current||" "!==t.key)&&R[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})},"MenuSubTrigger")),eN=s.forwardRef(C(function(e,t){let r=Q(J,e.__scopeMenu),{forceMount:n=r.forceMount,align:a="start",...c}=e,d=U(J,e.__scopeMenu),u=V(J,e.__scopeMenu),m=eS("MenuSubContent",e.__scopeMenu),p=s.useRef(null),f=(0,i.useComposedRefs)(t,p);return(0,o.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(y.Presence,{present:n||d.open,children:(0,o.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,o.jsx)(eo,{id:m.contentId,"aria-labelledby":m.triggerId,...c,ref:f,align:a,side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==m.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:(0,l.composeEventHandlers)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=O[u.dir].includes(e.key);t&&r&&(d.onOpenChange(!1),m.trigger?.focus(),e.preventDefault())})})})})})},"MenuSubContent"));function e_(e){return e?"open":"closed"}function eI(e){return"indeterminate"===e}function eR(e){return eI(e)?"indeterminate":e?"checked":"unchecked"}function eO(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function eE(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function eP(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,a=eE(e,Math.max(o,0));1===n.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.toLowerCase().startsWith(n.toLowerCase()));return s!==r?s:void 0}function ez(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let s=t[e],l=t[a],i=s.x,c=s.y,d=l.x,u=l.y;c>n!=u>n&&r<(d-i)*(n-c)/(u-c)+i&&(o=!o)}return o}function eT(e,t){return!!t&&ez({x:e.clientX,y:e.clientY},t)}function eA(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}C(e_,"getOpenState"),C(eI,"isIndeterminate"),C(eR,"getCheckedState"),C(eO,"focusFirst"),C(eE,"wrapArray"),C(eP,"getNextMatch"),C(ez,"isPointInPolygon"),C(eT,"isPointerInGraceArea"),C(eA,"whenMouse");var eL=Object.defineProperty,eH=(e,t)=>eL(e,"name",{value:t,configurable:!0}),eF="DropdownMenu",[eB,eU]=(0,c.createContextScope)(eF,[L]),eG=L(),[eV,eK]=eB(eF),e$=eH(e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:l,onOpenChange:i,modal:c=!0}=e,u=eG(t),m=s.useRef(null),[p,f]=(0,d.useControllableState)({prop:a,defaultProp:l??!1,onChange:i,caller:eF});return(0,o.jsx)(eV,{scope:t,triggerId:(0,x.useId)(),triggerRef:m,contentId:(0,x.useId)(),open:p,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(e=>!e),[f]),modal:c,children:(0,o.jsx)(K,{...u,open:p,onOpenChange:f,dir:n,modal:c,children:r})})},"DropdownMenu"),eq=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=eK("DropdownMenuTrigger",r),c=eG(r),d=(0,i.useComposedRefs)(t,s.triggerRef);return(0,o.jsx)($,{asChild:!0,...c,children:(0,o.jsx)(u.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:d,onPointerDown:(0,l.composeEventHandlers)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),eW=eH(e=>{let{__scopeDropdownMenu:t,...r}=e,n=eG(t);return(0,o.jsx)(X,{...n,...r})},"DropdownMenuPortal"),eQ=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eK("DropdownMenuContent",r),i=eG(r),c=s.useRef(!1);return(0,o.jsx)(ee,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...n,ref:t,onCloseAutoFocus:(0,l.composeEventHandlers)(e.onCloseAutoFocus,e=>{c.current||a.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,l.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),eX=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(ea,{...a,...n,ref:t})},"DropdownMenuGroup")),eJ=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(es,{...a,...n,ref:t})},"DropdownMenuLabel")),eY=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(ec,{...a,...n,ref:t})},"DropdownMenuItem")),eZ=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(eu,{...a,...n,ref:t})},"DropdownMenuCheckboxItem")),e0=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(ef,{...a,...n,ref:t})},"DropdownMenuRadioGroup")),e1=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(eh,{...a,...n,ref:t})},"DropdownMenuRadioItem")),e2=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(ev,{...a,...n,ref:t})},"DropdownMenuItemIndicator")),e5=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(ey,{...a,...n,ref:t})},"DropdownMenuSeparator")),e4=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(ew,{...a,...n,ref:t})},"DropdownMenuArrow")),e3=eH(e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:s}=e,l=eG(t),[i,c]=(0,d.useControllableState)({prop:n,defaultProp:s??!1,onChange:a,caller:"DropdownMenuSub"});return(0,o.jsx)(eM,{...l,open:i,onOpenChange:c,children:r})},"DropdownMenuSub"),e6=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(eC,{...a,...n,ref:t})},"DropdownMenuSubTrigger")),e8=s.forwardRef(eH(function(e,t){let{__scopeDropdownMenu:r,...n}=e,a=eG(r);return(0,o.jsx)(eN,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent"));e.s(["Arrow",0,e4,"CheckboxItem",0,eZ,"Content",0,eQ,"DropdownMenu",0,e$,"DropdownMenuArrow",0,e4,"DropdownMenuCheckboxItem",0,eZ,"DropdownMenuContent",0,eQ,"DropdownMenuGroup",0,eX,"DropdownMenuItem",0,eY,"DropdownMenuItemIndicator",0,e2,"DropdownMenuLabel",0,eJ,"DropdownMenuPortal",0,eW,"DropdownMenuRadioGroup",0,e0,"DropdownMenuRadioItem",0,e1,"DropdownMenuSeparator",0,e5,"DropdownMenuSub",0,e3,"DropdownMenuSubContent",0,e8,"DropdownMenuSubTrigger",0,e6,"DropdownMenuTrigger",0,eq,"Group",0,eX,"Item",0,eY,"ItemIndicator",0,e2,"Label",0,eJ,"Portal",0,eW,"RadioGroup",0,e0,"RadioItem",0,e1,"Root",0,e$,"Separator",0,e5,"Sub",0,e3,"SubContent",0,e8,"SubTrigger",0,e6,"Trigger",0,eq,"createDropdownMenuScope",0,eU],940466);var e7=e.i(940466),e7=e7,e9=e.i(647163);e.s(["DropdownMenu",0,function(e){let t,r,n=(0,a.c)(4);return n[0]!==e?({...t}=e,n[0]=e,n[1]=t):t=n[1],n[2]!==t?(r=(0,o.jsx)(e7.Root,{"data-slot":"dropdown-menu",...t}),n[2]=t,n[3]=r):r=n[3],r},"DropdownMenuContent",0,function(e){let t,r,n,s,l,i,c=(0,a.c)(12);c[0]!==e?({className:t,align:n,sideOffset:s,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=s):(t=c[1],r=c[2],n=c[3],s=c[4]);let d=void 0===n?"start":n,u=void 0===s?4:s;return c[5]!==t?(l=(0,e9.cn)("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-none shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden",t),c[5]=t,c[6]=l):l=c[6],c[7]!==d||c[8]!==r||c[9]!==u||c[10]!==l?(i=(0,o.jsx)(e7.Portal,{children:(0,o.jsx)(e7.Content,{"data-slot":"dropdown-menu-content",sideOffset:u,align:d,className:l,...r})}),c[7]=d,c[8]=r,c[9]=u,c[10]=l,c[11]=i):i=c[11],i},"DropdownMenuItem",0,function(e){let t,r,n,s,l,i,c=(0,a.c)(12);c[0]!==e?({className:t,inset:r,variant:s,...n}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=s):(t=c[1],r=c[2],n=c[3],s=c[4]);let d=void 0===s?"default":s;return c[5]!==t?(l=(0,e9.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none px-2 py-2 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",t),c[5]=t,c[6]=l):l=c[6],c[7]!==r||c[8]!==n||c[9]!==l||c[10]!==d?(i=(0,o.jsx)(e7.Item,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":d,className:l,...n}),c[7]=r,c[8]=n,c[9]=l,c[10]=d,c[11]=i):i=c[11],i},"DropdownMenuLabel",0,function(e){let t,r,n,s,l,i=(0,a.c)(10);return i[0]!==e?({className:t,inset:r,...n}=e,i[0]=e,i[1]=t,i[2]=r,i[3]=n):(t=i[1],r=i[2],n=i[3]),i[4]!==t?(s=(0,e9.cn)("text-muted-foreground px-2 py-2 text-sm data-inset:pl-7",t),i[4]=t,i[5]=s):s=i[5],i[6]!==r||i[7]!==n||i[8]!==s?(l=(0,o.jsx)(e7.Label,{"data-slot":"dropdown-menu-label","data-inset":r,className:s,...n}),i[6]=r,i[7]=n,i[8]=s,i[9]=l):l=i[9],l},"DropdownMenuSeparator",0,function(e){let t,r,n,s,l=(0,a.c)(8);return l[0]!==e?({className:t,...r}=e,l[0]=e,l[1]=t,l[2]=r):(t=l[1],r=l[2]),l[3]!==t?(n=(0,e9.cn)("bg-border -mx-1 h-px",t),l[3]=t,l[4]=n):n=l[4],l[5]!==r||l[6]!==n?(s=(0,o.jsx)(e7.Separator,{"data-slot":"dropdown-menu-separator",className:n,...r}),l[5]=r,l[6]=n,l[7]=s):s=l[7],s},"DropdownMenuTrigger",0,function(e){let t,r,n=(0,a.c)(4);return n[0]!==e?({...t}=e,n[0]=e,n[1]=t):t=n[1],n[2]!==t?(r=(0,o.jsx)(e7.Trigger,{"data-slot":"dropdown-menu-trigger",...t}),n[2]=t,n[3]=r):r=n[3],r}],463415)},375465,e=>{"use strict";let t=(0,e.i(984106).default)("outline","news","News",[["path",{d:"M16 6h3a1 1 0 0 1 1 1v11a2 2 0 0 1 -4 0v-13a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1v12a3 3 0 0 0 3 3h11",key:"svg-0"}],["path",{d:"M8 8l4 0",key:"svg-1"}],["path",{d:"M8 12l4 0",key:"svg-2"}],["path",{d:"M8 16l4 0",key:"svg-3"}]]);e.s(["IconNews",0,t],375465)},24012,e=>{"use strict";let t=(0,e.i(984106).default)("outline","wand","Wand",[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3",key:"svg-0"}],["path",{d:"M15 6l3 3",key:"svg-1"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-3"}]]);e.s(["IconWand",0,t],24012)},408154,e=>{"use strict";var t=e.i(509029),r=e.i(199242),n=e.i(558254),o=e.i(862415);function a(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function s(e,t,n){try{return e(t)}catch(e){return n?(0,r.i)(25,t,e,n):(0,r.i)(24,t,e),null}}function l(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),s(e.parse,r)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}let i=l({parse:e=>e,serialize:String});l({parse:e=>{let t=parseInt(e);return t==t?t:null}
1,serialize:e=>""+Math.round(e)}),l({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),l({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<"0"||!(1&t.length)?t:"0"+t}}),l({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String});let c=l({parse:e=>"true"===e.toLowerCase(),serialize:String});function d(e,t){return e.valueOf()===t.valueOf()}function u(e){return"string"==typeof e||e instanceof URLSearchParams||e instanceof URL}l({parse:e=>{let t=new Date(parseInt(e));return t.valueOf()==t.valueOf()?t:null},serialize:e=>""+e.valueOf(),eq:d}),l({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:d}),l({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:d});let m=(0,n.o)("sync-emitter",()=>(0,t.i)()),p={},f=(e,t)=>"defaultValue"===e?void 0:t;function h(e,s={}){let l=(0,o.useId)(),i=(0,n.i)(),c=(0,n.a)(),{history:d=i?.history??"replace",scroll:u=i?.scroll??!1,shallow:b=i?.shallow??!0,throttleMs:v=t.l.timeMs,limitUrlUpdates:y=i?.limitUrlUpdates,clearOnDefault:w=i?.clearOnDefault??!0,startTransition:j,urlKeys:k=p}=s,S=Object.keys(e).join(","),M=(0,o.useRef)(e),D=M.current,C=JSON.stringify(Object.entries(D),f)===JSON.stringify(Object.entries(e),f)&&Object.entries(e).every(([e,t])=>{if(D[e]?.startTransition!==t.startTransition)return!1;let r=D[e]?.defaultValue,n=t.defaultValue;return!!Object.is(r,n)||void 0!==r&&void 0!==n&&t.eq?.(r,n)===!0})?D:e;M.current=C;let N=(0,o.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,a(k,e)??e])),[S,JSON.stringify(k)]),_=(0,n.r)(Object.values(N)),I=_.searchParams,R=(0,o.useRef)({}
1),O=(0,o.useRef)(null),E=(0,o.useRef)(null),P=(0,t.n)(Object.values(N)),[z,T]=(0,o.useState)(()=>g(e,N,I,P).state),A=(0,o.useRef)(z),L=JSON.stringify([Object.values(N).map(e=>[e,I.getAll(e)]),P]),H=()=>{let{state:t,hasChanged:n}=g(e,N,I,P,R.current,A.current);return n&&((0,r.t)(1,l,S,t),A.current=t,T(t)),n},F=Object.keys(R.current).join("&")!==Object.values(N).join("&"),B=null===E.current||E.current===(_.pathname??location.pathname),U=!1;(F||B&&O.current!==L)&&(O.current=L,U=H(),F&&(R.current=Object.fromEntries(Object.entries(N).map(([t,r])=>[r,e[t]?.type==="multi"?I.getAll(r):I.get(r)??null])))),F||U||!B||z===A.current||T(A.current),(0,o.useEffect)(()=>{E.current=_.pathname??location.pathname,H()},[L,_.pathname]),(0,o.useEffect)(()=>{let t=Object.keys(e).reduce((t,n)=>(t[n]=({state:t,query:o})=>{T(a=>{let s=N[n];return Object.is(a[n]??null,t)?((0,r.t)(2,l,S,s,t,e[n]?.defaultValue,A.current),a):(A.current={...A.current,[n]:t},R.current[s]=o,(0,r.t)(3,l,S,s,t,e[n]?.defaultValue,A.current),A.current)})},t),{});for(let n of Object.keys(e)){let e=N[n];(0,r.t)(4,l,e,S),m.on(e,t[n])}return()=>{for(let n of Object.keys(e)){let e=N[n];(0,r.t)(5,l,e,S),m.off(e,t[n])}}},[S,N]);let G=(0,o.useCallback)((e,n={})=>{let o,s=Object.fromEntries(Object.keys(C).map(e=>[e,null])),i="function"==typeof e?e(x(A.current,C))??s:e??s;(0,r.t)(6,l,S,i);let p=0,f=!1,h=[];for(let[e,r]of Object.entries(i)){let s=a(C,e),l=N[e];if(!s||void 0===l||void 0===r)continue;(n.clearOnDefault??s.clearOnDefault??w)&&null!==r&&void 0!==s.defaultValue&&(s.eq??((e,t)=>e===t))(r,s.defaultValue)&&(r=null);let i=null===r?null:(s.serialize??String)(r);m.emit(l,{state:r,query:i});let g={key:l,query:i,options:{history:n.history??s.history??d,shallow:n.shallow??s.shallow??b,scroll:n.scroll??s.scroll??u,startTransition:n.startTransition??s.startTransition??j}},x=n.limitUrlUpdates??s.limitUrlUpdates??y;if(x?.method==="debounce"){let e=x.timeMs??t.l.timeMs,r=t.t.push(g,e,_,c);p<e&&(o=r,p=e)}else{let e=x?.timeMs??n.throttleMs??s.throttleMs??v;h.push(t.t.abort(l)),t.r.push(g,e),f=!0}}let g=h.reduce((e,t)=>t(e),f?t.r.flush(_,c):t.r.getPendingPromise(_));return o??g},[S,d,b,u,v,y?.method,y?.timeMs,j,w,C,N,_.updateUrl,_.getSearchParamsSnapshot,_.rateLimitFactor,c]);return[(0,o.useMemo)(()=>x(z,C),[z,C]),G]}function g(e,r,n,o,l,i){let c=!1,d=Object.entries(e).reduce((e,[d,u])=>{var m;let p=r[d],f=a(o,p),h="multi"===u.type?[]:null,g=void 0===f?("multi"===u.type?n.getAll(p):n.get(p))??h:f,x=i&&a(i,d);return l&&void 0!==x&&((m=a(l,p)??h)===g||null!==m&&null!==g&&"string"!=typeof m&&"string"!=typeof g&&m.length===g.length&&m.every((e,t)=>e===g[t]))?e[d]=x:(c=!0,e[d]=((0,t.o)(g)?null:s(u.parse,g,p))??null,l&&(l[p]=g)),e},{});if(!c){let t=Object.keys(e),r=Object.keys(i??{});c=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:d,hasChanged:c}}function x(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]?.defaultValue??null]))}e.s(["createSerializer",0,function(e,{clearOnDefault:r=!0,urlKeys:o={},processUrlSearchParams:s}={}){return function(l,i={}){let[c,d,m]=u(l)?function(e){if("string"==typeof e){let[t="",...r]=e.split("#"),n=r.length?"#"+r.join("#"):"",[o="",...a]=t.split("?");return[o,new URLSearchParams(a.join("?")),n]}{if(e instanceof URLSearchParams)return["",new URLSearchParams(e),""];let t=e.href.length-e.search.length-e.hash.length,r=e.href.slice(0,t).replace(/[?#]+$/,""),n=e.hash||(e.href.endsWith("#")?"#":"");return[r,new URLSearchParams(e.searchParams),n]}}(l):["",new URLSearchParams,""],p=u(l)?i:l;if(null===p){for(let t of Object.keys(e)){let e=a(o,t)??t;d.delete(e)}return s&&(d=s(d)),c+(0,n.c)(d)+m}for(let n of Object.keys(e)){let s=e[n],l=a(p,n);if(void 0===l)continue;let i=a(o,n)??n,c=void 0!==s.defaultValue&&null!==l&&(s.eq??((e,t)=>e===t))(l,s.defaultValue);if(null===l||(s.clearOnDefault??r??!0)&&c)d.delete(i);else{let e=s.serialize(l);d=(0,t.s)(d,i,e)}}return s&&(d=s(d)),c+(0,n.c)(d)+m}},"parseAsArrayOf",0,function(e,t=","){let r=e.eq??((e,t)=>e===t),n=encodeURIComponent(t);return l({parse:r=>""===r?[]:r.split(t).map((r,o)=>s(e.parse,r.replaceAll(n,t),`[${o}]`)).filter(e=>null!=e),serialize:r=>r.map(r=>(e.serialize?e.serialize(r):String(r)).replaceAll(t,n)).join(t),eq:(e,t)=>
1e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})},"parseAsBoolean",0,c,"parseAsString",0,i,"parseAsStringLiteral",0,function(e){return l({parse:t=>e.includes(t)?t:null,serialize:String})},"useQueryState",0,function(e,t={}){let{parse:r,type:n,serialize:a,eq:s,defaultValue:l,...i}=t,[{[e]:c},d]=h({[e]:{parse:r??(e=>e),type:n,serialize:a,eq:s,defaultValue:l}},i);return[c,(0,o.useCallback)((t,r={})=>d(r=>({[e]:"function"==typeof t?t(r[e]):t}),r),[e,d])]},"useQueryStates",0,h],408154)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.