PageSourceSearch

https://notexapp.com/_next/static/chunks/0x4cpb9cczw73.js

js notexapp.com collected 2026-09-24 12:32:59 UTC 40,668 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54943,e=>{"use strict";let t=(0,e.i(475254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["default",0,t])},310154,667875,842081,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),a=e.i(179862),l=e.i(560032),o=e.i(375581),i=e.i(643531),s=e.i(655900),u=e.i(948148),d=e.i(772619),c=e.i(786340),m=e.i(283227);let p=[];function f(e){let l,o,i,s,p,f,g,x,b,y=(0,r.c)(36),{listboxId:C,variant:w,searchBar:j,searchPlaceholder:k,query:N,onQueryChange:E,onClearQuery:S,groups:R,hasResults:I,collapseGroups:P,expansion:D,onSelect:A,isOptionSelected:_,renderOption:O,getOptionClassName:F,listMaxHeightClassName:M}=e,z=(0,u.useTranslations)();if(y[0]!==R||y[1]!==_){e:{for(let e of R){let t=e.options.find(e=>_(e));if(t){l=t.value;break e}}l=void 0}y[0]=R,y[1]=_,y[2]=l}else l=y[2];let $=l,[L,B]=n.useState($);y[3]!==$?(o=()=>{void 0!==$&&B($)},i=[$],y[3]=$,y[4]=o,y[5]=i):(o=y[4],i=y[5]),n.useEffect(o,i);let T="natural"===w?"bg-main-secondary":"bg-main-natural";return y[6]!==T?(s=(0,a.cn)("w-full",T),y[6]=T,y[7]=s):s=y[7],y[8]!==S||y[9]!==E||y[10]!==N||y[11]!==j||y[12]!==k||y[13]!==w?(p=j&&(0,t.jsx)("div",{className:"border-b border-main-border",children:(0,t.jsx)(m.SearchBoxBase,{containerClassName:(0,a.cn)("h-[40px] rounded-none","natural"===w?"bg-main-secondary":"bg-main-natural"),inputClassName:"mx-3",placeholder:k,value:N,onChange:E,onClear:S})}),y[8]=S,y[9]=E,y[10]=N,y[11]=j,y[12]=k,y[13]=w,y[14]=p):p=y[14],y[15]!==M?(f=(0,a.cn)("m-0 w-full overflow-y-auto rounded-lg p-2","max-h-[200px]",M),y[15]=M,y[16]=f):f=y[16],y[17]!==P||y[18]!==D||y[19]!==F||y[20]!==R||y[21]!==I||y[22]!==_||y[23]!==A||y[24]!==O||y[25]!==z?(g=I?(0,t.jsx)(d.CommandGroup,{className:"m-0 p-0 **:[[cmdk-group-items]]:flex **:[[cmdk-group-items]]:flex-col **:[[cmdk-group-items]]:gap-2",children:R.map((e,r)=>(0,t.jsx)(h,{group:e,groupKey:v(e,r),collapseGroups:P,expansion:D,onSelect:A,isOptionSelected:_,renderOption:O,getOptionClassName:F},v(e,r)))}):(0,t.jsx)(d.CommandEmpty,{children:(0,t.jsx)(c.CaptionRegular,{className:"text-main-muted",children:z("common.no_option_found")})}),y[17]=P,y[18]=D,y[19]=F,y[20]=R,y[21]=I,y[22]=_,y[23]=A,y[24]=O,y[25]=z,y[26]=g):g=y[26],y[27]!==C||y[28]!==f||y[29]!==g?(x=(0,t.jsx)(d.CommandList,{id:C,className:f,children:g}),y[27]=C,y[28]=f,y[29]=g,y[30]=x):x=y[30],y[31]!==L||y[32]!==s||y[33]!==p||y[34]!==x?(b=(0,t.jsxs)(d.Command,{value:L,onValueChange:B,className:s,children:[p,x]}),y[31]=L,y[32]=s,y[33]=p,y[34]=x,y[35]=b):b=y[35],b}function v(e,t){return e.title?`${e.title}-${t}`:`group-${t}`}function h(e){let n,l,o,i,u=(0,r.c)(20),{group:m,groupKey:p,collapseGroups:f,expansion:v,onSelect:h,isOptionSelected:x,renderOption:b,getOptionClassName:y}=e;u[0]!==v||u[1]!==p?(n=v.isExpanded(p),u[0]=v,u[1]=p,u[2]=n):n=u[2];let C=n,w=!!m.title;return u[3]!==f||u[4]!==v||u[5]!==m.title||u[6]!==p||u[7]!==w||u[8]!==C?(l=w&&(0,t.jsxs)("button",{type:"button","aria-expanded":C,className:(0,a.cn)("flex items-center gap-1 rounded-lg transition-colors",f?"cursor-pointer hover:bg-main-primary/10":"cursor-default select-none"),onClick:f?e=>{e.stopPropagation(),v.toggle(p)}:void 0,onKeyDown:f?e=>{("Enter"===e.key||" "===e.key)&&(e.stopPropagation(),v.toggle(p))}:void 0,children:[f&&(0,t.jsx)("div",{className:"flex size-4 items-center justify-center",children:(0,t.jsx)(s.ChevronUp,{className:(0,a.cn)("size-4 text-main-muted transition-transform duration-200",C?"rotate-0":"rotate-180")})}),(0,t.jsx)(c.SmallRegular,{className:"text-main-muted select-none",children:m.title})]}),u[3]=f,u[4]=v,u[5]=m.title,u[6]=p,u[7]=w,u[8]=C,u[9]=l):l=u[9],u[10]!==y||u[11]!==m.options||u[12]!==C||u[13]!==x||u[14]!==h||u[15]!==b?(o=C&&m.options.map(e=>{let r=x(e);return(0,t.jsx)(d.CommandItem,{value:e.value,onSelect:()=>h(e),className:(0,a.cn)("flex w-full cursor-pointer items-center justify-between rounded-lg p-2","hover:bg-main-primary/10 focus:bg-main-primary/10 active:bg-main-primary/10 data-[selected=true]:bg-main-primary/10",y?.(e,{isSelected:r})),children:b?b(e,{isSelected:r}):(0,t.jsx)(g,{label:e.label,isSelected:r})},e.value)}
1),u[10]=y,u[11]=m.options,u[12]=C,u[13]=x,u[14]=h,u[15]=b,u[16]=o):o=u[16],u[17]!==l||u[18]!==o?(i=(0,t.jsxs)(t.Fragment,{children:[l,o]}),u[17]=l,u[18]=o,u[19]=i):i=u[19],i}function g(e){let n,l,o,s,u=(0,r.c)(9),{label:d,isSelected:m}=e;u[0]!==d?(n=(0,t.jsx)(c.CaptionRegular,{className:"line-clamp-1 break-all text-main-primary",children:d}),u[0]=d,u[1]=n):n=u[1];let p=m?"opacity-100":"opacity-0";return u[2]!==p?(l=(0,a.cn)("h-5 w-5 text-main-primary",p),u[2]=p,u[3]=l):l=u[3],u[4]!==l?(o=(0,t.jsx)(i.Check,{className:l}),u[4]=l,u[5]=o):o=u[5],u[6]!==n||u[7]!==o?(s=(0,t.jsxs)(t.Fragment,{children:[n,o]}),u[6]=n,u[7]=o,u[8]=s):s=u[8],s}let x=(e,t)=>e.title?`${e.title}-${t}`:`group-${t}`;function b(e){var i;let s,u,d,c,m,v,h,g,b,C,w,j,k,N,E,S=(0,r.c)(76),{value:R,valueArray:I,options:P,groupedOptions:D,onChange:A,onChangeArray:_,isDisabled:O,placeholder:F,id:M,icon:z,size:$,dropdownChevron:L,searchBar:B,searchPlaceholder:T,textValueAlign:K,noChevron:V,multiSelect:q,limit:G,children:H,buttonClassName:U,contentClassName:W,contentWidth:Q,side:X,align:Z,offset:J,variant:Y,renderValueLabel:ee,renderOption:et,getOptionClassName:er,dropdownIndicatorIconClassName:en,rotateChevronOnOpen:ea,placeholderClassName:el,valueLabelClassName:eo,iconClassName:ei,fitDropdown:es,forceOpen:eu,collapseGroups:ed,onTriggerClick:ec,disableContent:em,disablePopover:ep,container:ef,matchTriggerWidth:ev,listMaxHeightClassName:eh}=e,eg=void 0===F?"Select...":F,ex=void 0===$?"md":$,eb=void 0!==B&&B,ey=void 0===K?"left":K,eC=void 0!==V&&V,ew=void 0!==q&&q,ej=void 0===X?"bottom":X,ek=void 0===Z?"start":Z,eN=void 0===J?8:J,eE=void 0===Y?"natural":Y,eS=void 0!==ea&&ea,eR=void 0===el?"text-main-muted":el,eI=void 0!==ed&&ed,eP=void 0!==em&&em,eD=(0,n.useId)(),[eA,e_]=n.useState(!1),[eO,eF]=n.useState(""),eM=n.useRef(null);S[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>e_(!1),S[0]=s):s=S[0];let ez=s;n.useEffect(()=>{if(!eA)return;let e=e=>{let t=eM.current;return!!t&&e instanceof Node&&t.contains(e)},t=t=>{e(t.target)||ez()},r=t=>{e(t.target)||ez()},n={passive:!0,capture:!0};return window.addEventListener("wheel",t,n),window.addEventListener("touchmove",r,n),()=>{window.removeEventListener("wheel",t,n),window.removeEventListener("touchmove",r,n)}},[eA,eM,ez]),S[1]===Symbol.for("react.memo_cache_sentinel")?(u=()=>eF(""),S[1]=u):u=S[1];let e$=u;S[2]!==eu?(d=()=>{void 0!==eu&&e_(eu)},c=[eu],S[2]=eu,S[3]=d,S[4]=c):(d=S[3],c=S[4]),n.useEffect(d,c);let eL=function(e,t,n){let a,l=(0,r.c)(4);e:{let r;if(n){let e;l[0]!==t?(e=t??[],l[0]=t,l[1]=e):e=l[1],a=e;break e}l[2]!==e?(r=e?[e]:[],l[2]=e,l[3]=r):r=l[3],a=r}return a}(R,I,ew);S[5]!==eL?(m=e=>eL.some(t=>t.value===e.value),S[5]=eL,S[6]=m):m=S[6];let eB=m;S[7]!==G||S[8]!==ew||S[9]!==A||S[10]!==_||S[11]!==eL?(v=e=>{ew?eL.some(t=>t.value===e.value)?_?.(eL.filter(t=>t.value!==e.value)):void 0!==G&&eL.length>=G||_?.([...eL,e]):(A(e),e_(!1))},S[7]=G,S[8]=ew,S[9]=A,S[10]=_,S[11]=eL,S[12]=v):v=S[12];let eT=v;S[13]!==ew||S[14]!==_||S[15]!==eL?(h=e=>{ew&&_?.(eL.filter(t=>t.value!==e.value))},S[13]=ew,S[14]=_,S[15]=eL,S[16]=h):h=S[16];let eK=h,{groups:eV,hasResults:eq}=(i=void 0===P?p:P,N=n.useMemo(()=>{let e=eO.trim().toLowerCase();if(!e)return D||[{title:"",options:i??[]}];let t=t=>t.toLowerCase().includes(e);if(D){let e=[];for(let r of D){let n=r.options.filter(e=>t(e.label));n.length>0&&e.push({...r,options:n})}return e}return[{title:"",options:(i??[]).filter(e=>t(e.label))}]},[i,D,eO]),E=n.useMemo(()=>N.some(e=>e.options.length>0),[N]),{groups:N,hasResults:E}),eG=function(e,t,r){let[a,l]=n.useState(()=>new Set),o=n.useRef(new Set);n.useEffect(()=>{t&&l(t=>{let n=o.current,a=!1,l=new Set(t);return e.forEach((e,t)=>{let o=r(e,t);!n.has(o)&&(n.add(o),l.has(o)||(l.add(o),a=!0))}),a?l:t})},[e,t,r]);let i=n.useCallback(e=>{t&&l(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[t]);return{isExpanded:n.useCallback(e=>!t||a.has(e),[a,t]),toggle:i}}(eV,eI,x);e:{if(void 0!==ev&&ev){let e;S[17]===Symbol.for("react.memo_cache_sentinel")?(e={width:"var(--radix-popover-trigger-width)"},S[17]=e):e=S[17],g=e;break e}if(void 0!==Q){let e,t="number"==typeof Q?`${Q}px`:Q;S[18]!==t?(e={width:t},S[18]=t,S[19]=e):e=S[19],g=e;break e}g=void 0}let eH=g,eU=void 0!==ep&&ep?y:e_;S[20]!==U||S[21]!==H||S[22]!==eP||S[23]!==L||S[24]!==en||S[25]!==eK||S[26]!==z||S[27]!==ei||S[28]!==M||S[29]!==O||S[30]!==eD||S[31]!==ew||S[32]!==eC||S[33]!==ec||S[34]!==eA||S[35]!==eg||S[36]!==eR||S[37]!==ee||S[38]!==eS||S[39]!==eL||S[40]!==ex||S[41]!==ey||S[42]!==R||S[43]!==eo?(b=(0,t.jsx)(o.ComboBoxTrigger,{id:M,isDisabled:O,open:eA,listboxId:eD,size:ex,buttonClassName:U,icon:z,iconClassName:ei,noChevron:eC,dropdownChevron:L,dropdownIndicatorIconClassName:en,rotateChevronOnOpen:eS,onTriggerClick:ec,value:R,selectedValues:eL,multiSelect:ew,placeholder:eg,textValueAlign:ey,placeholderClassName:eR,valueLabelClassName:eo,disableContent:eP,onRemoveSelected:eK,renderValueLabel:ee,children:H}),S[20]=U,S[21]=H,S[22]=eP,S[23]=L,S[24]=en,S[25]=eK,S[26]=z,S[27]=ei,S[28]=M,S[29]=O,S[30]=eD,S[31]=e
1w,S[32]=eC,S[33]=ec,S[34]=eA,S[35]=eg,S[36]=eR,S[37]=ee,S[38]=eS,S[39]=eL,S[40]=ex,S[41]=ey,S[42]=R,S[43]=eo,S[44]=b):b=S[44];let eW=!eH&&(void 0!==es&&es?"w-fit":"w-[--radix-popover-trigger-width]");return S[45]!==W||S[46]!==eW?(C=(0,a.cn)("z-220","overflow-hidden rounded-[16px] border border-main-muted/15 bg-transparent p-0 shadow-[0px_4px_12px_0px_#1A1A1A1A] dark:shadow-[0px_4px_12px_0px_#FFFFFF1A]",eW,W),S[45]=W,S[46]=eW,S[47]=C):C=S[47],S[48]!==eI||S[49]!==eG||S[50]!==er||S[51]!==eV||S[52]!==eT||S[53]!==eq||S[54]!==eB||S[55]!==eh||S[56]!==eD||S[57]!==eO||S[58]!==et||S[59]!==eb||S[60]!==T||S[61]!==eE?(w=(0,t.jsx)(f,{listboxId:eD,variant:eE,searchBar:eb,searchPlaceholder:T,query:eO,onQueryChange:eF,onClearQuery:e$,groups:eV,hasResults:eq,collapseGroups:eI,expansion:eG,onSelect:eT,isOptionSelected:eB,renderOption:et,getOptionClassName:er,listMaxHeightClassName:eh}),S[48]=eI,S[49]=eG,S[50]=er,S[51]=eV,S[52]=eT,S[53]=eq,S[54]=eB,S[55]=eh,S[56]=eD,S[57]=eO,S[58]=et,S[59]=eb,S[60]=T,S[61]=eE,S[62]=w):w=S[62],S[63]!==ek||S[64]!==ef||S[65]!==eN||S[66]!==eH||S[67]!==ej||S[68]!==C||S[69]!==w?(j=(0,t.jsx)(l.PopoverContent,{ref:eM,side:ej,align:ek,sideOffset:eN,style:eH,className:C,container:ef,children:w}),S[63]=ek,S[64]=ef,S[65]=eN,S[66]=eH,S[67]=ej,S[68]=C,S[69]=w,S[70]=j):j=S[70],S[71]!==eA||S[72]!==eU||S[73]!==b||S[74]!==j?(k=(0,t.jsxs)(l.Popover,{open:eA,onOpenChange:eU,children:[b,j]}),S[71]=eA,S[72]=eU,S[73]=b,S[74]=j,S[75]=k):k=S[75],k}let y=()=>{};e.s(["AppComboBox",0,b],667875);let C=(0,e.i(475254).default)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);function w(e,r){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start overflow-hidden",children:[(0,t.jsx)(c.CaptionRegular,{className:"line-clamp-1 truncate break-all text-main-primary",children:e.label}),(0,t.jsx)(c.TinyRegular,{className:"truncate text-main-primary/40",children:e.subLabel})]}),(0,t.jsx)(i.Check,{className:(0,a.cn)("h-5 w-5 text-main-primary",r.isSelected?"opacity-100":"opacity-0")})]})}e.s(["AppComboBoxWithSub",0,function(e){let n,l,o,i,s,u,d,c,m=(0,r.c)(16);m[0]!==e?({dropdownChevron:l,contentClassName:n,offset:i,size:s,...o}=e,m[0]=e,m[1]=n,m[2]=l,m[3]=o,m[4]=i,m[5]=s):(n=m[1],l=m[2],o=m[3],i=m[4],s=m[5]);let p=void 0===i?4:i,f=void 0===s?"md":s;return m[6]!==l?(u=l??(0,t.jsx)(C,{className:"size-full opacity-50"}),m[6]=l,m[7]=u):u=m[7],m[8]!==n?(d=(0,a.cn)("rounded-[26px]",n),m[8]=n,m[9]=d):d=m[9],m[10]!==p||m[11]!==o||m[12]!==f||m[13]!==u||m[14]!==d?(c=(0,t.jsx)(b,{...o,size:f,offset:p,dropdownChevron:u,contentClassName:d,renderOption:w}),m[10]=p,m[11]=o,m[12]=f,m[13]=u,m[14]=d,m[15]=c):c=m[15],c}],842081),e.s([],310154)},375581,770352,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(409797),a=e.i(179862),l=e.i(511398),o=e.i(786340),i=e.i(560032),s=e.i(37727);function u(e){let n,l,i,s,u,c=(0,r.c)(28),{selectedValues:m,multiSelect:p,placeholder:f,textValueAlign:v,placeholderClassName:h,valueLabelClassName:g,disableContent:x,onRemoveSelected:b}=e;if(0===m.length){let e,r;return c[0]!==h||c[1]!==g?(e=(0,a.cn)("truncate",h,g),c[0]=h,c[1]=g,c[2]=e):e=c[2],c[3]!==f||c[4]!==e?(r=(0,t.jsx)(o.CaptionMedium,{className:e,children:f}),c[3]=f,c[4]=e,c[5]=r):r=c[5],r}if(p){let e,r;if(c[6]!==x||c[7]!==b||c[8]!==m){let r;c[10]!==x||c[11]!==b?(r=e=>(0,t.jsx)(d,{option:e,disableContent:x,onRemove:b},e.value),c[10]=x,c[11]=b,c[12]=r):r=c[12],e=m.map(r),c[6]=x,c[7]=b,c[8]=m,c[9]=e}else e=c[9];return c[13]!==e?(r=(0,t.jsx)("div",{className:"no-scrollbar flex shrink-0 gap-2 overflow-x-auto",children:e}),c[13]=e,c[14]=r):r=c[14],r}let y=m[0];if(c[15]!==x?(n=e=>!x&&e.stopPropagation(),l=e=>{x||"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},c[15]=x,c[16]=n,c[17]=l):(n=c[16],l=c[17]),c[18]!==v||c[19]!==g)i=(0,a.cn)("flex-1 truncate text-main-primary","left"===v?"text-left":"right"===v?"text-right":"text-center",g),c[18]=v,c[19]=g,c[20]=i;else i=c[20];let C=y?.label;return c[21]!==i||c[22]!==C?(s=(0,t.jsx)(o.CaptionMedium,{className:i,children:C}),c[21]=i,c[22]=C,c[23]=s):s=c[23],c[24]!==n||c[25]!==l||c[26]!==s?(u=(0,t.jsx)("div",{role:"presentation",onClick:n,onKeyDown:l,className:"min-w-0 flex-1 overflow-hidden",children:s}),c[24]=n,c[25]=l,c[26]=s,c[27]=u):u=c[27],u}function d(e){let n,a,l,i,u,d,c,m=(0,r.c)(17),{option:p,disableContent:f,onRemove:v}=e;m[0]!==f?(n=e=>!f&&e.stopPropagation(),a=e=>{f||"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},m[0]=f,m[1]=n,m[2]=a):(n=m[1],a=m[2]),m[3]!==p.label?(l=(0,t.jsx)(o.SmallRegular,{className:"text-main-primary",children:p.label}),m[3]=p.label,m[4]=l):l=m[4];let h=`Remove ${p.label}`;return m[5]!==v||m[6]!==p?(i=e=>{e.stopPropagation(),v(p)},m[5]=v,m[6]=p,m[7]=i):i=m[7],m[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(s.X,{}),m[8]=u):u=m[8],m[9]!==h||m[10]!==i?(d=(0,t.jsx)("button",{type:"button","aria-label":h,className:"group flex aspect-square size-3 cursor-pointer items-center justify-center text-main-muted hover:text-main-primary [&_svg]:size-[10px]",onClick:i,children:u}),m[9]=h,m[10]=i,m[11]=d):d=m[11],m[12]!==n||m[13]!==a||m[14]!==l||m[15]!==d?(c=(0,t.jsxs)("div",{role:"presentation",onClick:n,onKeyDown:a,className:"flex h-[24px] shrink-0 items-center gap-1 rounded-full border border-border bg-main-muted/10 py-1 pr-1 pl-2",children:[l,d]}),m[12]=n,m[13]=a,m[14]=l,m[15]=d,m[16]=c):c=m[16],c}
1e.s(["ComboBoxTrigger",0,function(e){let s,d,c,m,p,f,v,h=(0,r.c)(41),{id:g,isDisabled:x,open:b,listboxId:y,size:C,buttonClassName:w,icon:j,iconClassName:k,noChevron:N,dropdownChevron:E,dropdownIndicatorIconClassName:S,rotateChevronOnOpen:R,children:I,onTriggerClick:P,value:D,selectedValues:A,multiSelect:_,placeholder:O,textValueAlign:F,placeholderClassName:M,valueLabelClassName:z,disableContent:$,onRemoveSelected:L,renderValueLabel:B}=e,T="left"===F?"text-left":"right"===F?"text-right":"text-center";h[0]!==T||h[1]!==z?(s=(0,a.cn)("flex-1 truncate text-main-primary",T,z),h[0]=T,h[1]=z,h[2]=s):s=h[2];let K=D?.label??O;h[3]!==s||h[4]!==K?(d=(0,t.jsx)(o.CaptionMedium,{className:s,children:K}),h[3]=s,h[4]=K,h[5]=d):d=h[5];let V=d,q="md"===C?"h-auto! p-2":"h-[32px] px-2 py-0 text-sm";return h[6]!==w||h[7]!==q?(c=(0,a.cn)("flex w-full justify-between gap-2 rounded-[24px] border border-transparent bg-main-natural hover:bg-main-primary/10",q,w),h[6]=w,h[7]=q,h[8]=c):c=h[8],h[9]!==I||h[10]!==V||h[11]!==$||h[12]!==j||h[13]!==k||h[14]!==_||h[15]!==L||h[16]!==O||h[17]!==M||h[18]!==B||h[19]!==A||h[20]!==F||h[21]!==D||h[22]!==z?(m=I||(0,t.jsxs)(t.Fragment,{children:[j&&(0,t.jsx)("div",{className:(0,a.cn)("flex aspect-square size-8 shrink-0 items-center justify-center rounded-full bg-main-primary/10 [&_svg]:size-5",k),children:j}),(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:B?B(D,V):(0,t.jsx)(u,{selectedValues:A,multiSelect:_,placeholder:O,textValueAlign:F,placeholderClassName:M,valueLabelClassName:z,disableContent:$,onRemoveSelected:L})})]}),h[9]=I,h[10]=V,h[11]=$,h[12]=j,h[13]=k,h[14]=_,h[15]=L,h[16]=O,h[17]=M,h[18]=B,h[19]=A,h[20]=F,h[21]=D,h[22]=z,h[23]=m):m=h[23],h[24]!==m?(p=(0,t.jsx)("div",{className:"no-scrollbar flex min-w-0 flex-1 items-center gap-2 overflow-x-auto",children:m}),h[24]=m,h[25]=p):p=h[25],h[26]!==E||h[27]!==S||h[28]!==N||h[29]!==b||h[30]!==R?(f=!N&&(0,t.jsx)("div",{className:"flex aspect-square size-5 shrink-0 items-center justify-center",children:E?R?(0,t.jsx)("div",{className:(0,a.cn)("flex size-full items-center justify-center transition-transform duration-200",b&&"rotate-180",S),children:E}):S?(0,t.jsx)("div",{className:S,children:E}):E:(0,t.jsx)(n.ChevronDownIcon,{className:(0,a.cn)("size-full transition-transform duration-200",b&&"rotate-180",S)})}),h[26]=E,h[27]=S,h[28]=N,h[29]=b,h[30]=R,h[31]=f):f=h[31],h[32]!==g||h[33]!==x||h[34]!==y||h[35]!==P||h[36]!==b||h[37]!==c||h[38]!==p||h[39]!==f?(v=(0,t.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(l.Button,{id:g,type:"button",disabled:x,variant:"ghost",role:"combobox","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":y,onClick:P,className:c,children:[p,f]})}),h[32]=g,h[33]=x,h[34]=y,h[35]=P,h[36]=b,h[37]=c,h[38]=p,h[39]=f,h[40]=v):v=h[40],v}],375581);var c=/[\\\/_+.#"@\[\(\{&]/,m=/[\\\/_+.#"@\[\(\{&]/g,p=/[\s-]/,f=/[\s-]/g;function v(e){return e.toLowerCase().replace(f," ")}var h=e.i(271645),g=e.i(981140),x=e.i(820783),b=e.i(30030),y=e.i(610772),C=e.i(369340),w=e.i(726330),j=e.i(765491),k=e.i(774606),N=e.i(296626),E=e.i(248425),S=e.i(303536),R=e.i(985369),I=e.i(186312),P=e.i(991918),D="Dialog",[A,_]=(0,b.createContextScope)(D),[O,F]=A(D),M=e=>{let{__scopeDialog:r,children:n,open:a,defaultOpen:l,onOpenChange:o,modal:i=!0}=e,s=h.useRef(null),u=h.useRef(null),[d,c]=(0,C.useControllableState)({prop:a,defaultProp:l??!1,onChange:o,caller:D});return(0,t.jsx)(O,{scope:r,triggerRef:s,contentRef:u,contentId:(0,y.useId)(),titleId:(0,y.useId)(),descriptionId:(0,y.useId)(),open:d,onOpenChange:c,onOpenToggle:h.useCallback(()=>c(e=>!e),[c]),modal:i,children:n})};M.displayName=D;var z="DialogTrigger";h.forwardRef((e,r)=>{let{__scopeDialog:n,...a}=e,l=F(z,n),o=(0,x.useComposedRefs)(r,l.triggerRef);return(0,t.jsx)(E.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":ee(l.open),...a,ref:o,onClick:(0,g.composeEventHandlers)(e.onClick,l.onOpenToggle)})}).displayName=z;var $="DialogPortal",[L,B]=A($,{forceMount:void 0}),T=e=>{let{__scopeDialog:r,forceMount:n,children:a,container:l}=e,o=F($,r);return(0,t.jsx)(L,{scope:r,forceMount:n,children:h.Children.map(a,e=>(0,t.jsx)(N.Presence,{present:n||o.open,children:(0,t.jsx)(k.Portal,{asChild:!0,container:l,children:e})}))})};T.displayName=$;var K="DialogOverlay",V=h.forwardRef((e,r)=>{let n=B(K,e.__scopeDialog),{forceMount:a=n.forceMount,...l}=e,o=F(K,e.__scopeDialog);return o.modal?(0,t.jsx)(N.Presence,{present:a||o.open,children:(0,t.jsx)(G,{...l,ref:r})}):null});V.displayName=K;var q=(0,P.createSlot)("DialogOverlay.RemoveScroll"),G=h.forwardRef((e,r)=>{let{__scopeDialog:n,...a}=e,l=F(K,n);return(0,t.jsx)(R.RemoveScroll,{as:q,allowPinchZoom:!0,shards:[l.contentRef],children:(0,t.jsx)(E.Primitive.div,{"data-state":ee(l.open),...a,ref:r,style:{pointerEvents:"auto",...a.style}})})}),H="DialogContent",U=h.forwardRef((e,r)=>{let n=B(H,e.__scopeDialog),{forceMount:a=n.forceMount,...l}=e,o=F(H,e.__scopeDialog);return(0,t.jsx)(N.Presence,{present:a||o.open,children:o.modal?(0,t.jsx)(W,{...l,ref:r}):(0,t.jsx)(Q,{...l,ref:r})})});U.displayName=H;var W=h.forwardRef((e,r)=>{let n=F(H,e.__scopeDialog),a=h.useRef(null),l=(0,x.useComposedRefs)(r,n.contentRef,a);return h.useEffect(()=>{let e=a.current;if(e)return(0,I.hideOthers)(e)},[]),(0,t.jsx)(X,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,g.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,g.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,g.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),Q=h.forwardRef((e,r)=>{let n=F(H,e.__scopeDialog),a=h.useRef(!1),l=h.useRef(!1);return(0,t.jsx)(X,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),X=h.forwardRef((e,r)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:o,...i}=e,s=F(H,n),u=h.useRef(null),d=(0,x.useComposedRefs)(r,u);return(0,S.useFocusGuards)(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:o,children:(0,t.jsx)(w.DismissableLayer,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ee(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ea,{titleId:s.titleId}),(0,t.jsx)(el,{contentRef:u,descriptionId:s.descriptionId})]})]})}),Z="DialogTitle";h.forwardRef((e,r)=>{let{__scopeDialog:n,...a}=e,l=F(Z,n);return(0,t.jsx)(E.Primitive.h2,{id:l.titleId,...a,ref:r})}).displayName=Z;var J="DialogDescription";h.forwardRef((e,r)=>{let{__scopeDialog:n,...a}=e,l=F(J,n);return(0,t.jsx)(E.Primitive.p,{id:l.descriptionId,...a,ref:r})}).displayName=J;var Y="DialogClose";function ee(e){return e?"open":"closed"}h.forwardRef((e,r)=>{let{__scopeDialog:n,...a}=e,l=F(Y,n);return(0,t.jsx)(E.Primitive.button,{type:"button",...a,ref:r,onClick:(0,g.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=Y;var et="DialogTitleWarning",[er,en]=(0,b.createContext)(et,{contentName:H,titleName:Z,docsSlug:"dialog"}),ea=({titleId:e})=>{let t=en(et),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},el=({contentRef:e,descriptionId:t})=>{let r=en("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return h.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},eo='[cmdk-group=""]',ei='[cmdk-group-items=""]',es='[cmdk-item=""]',eu=`${es}:not([aria-disabled="true"])`,ed="cmdk-item-select",ec="data-value",em=(e,t,r)=>{var n;
5return n=e,function e(t,r,n,a,l,o,i){if(o===r.length)return l===t.length?1:.99;var s=`${l},${o}`;if(void 0!==i[s])return i[s];for(var u,d,v,h,g=a.charAt(o),x=n.indexOf(g,l),b=0;x>=0;)(u=e(t,r,n,a,x+1,o+1,i))>b&&(x===l?u*=1:c.test(t.charAt(x-1))?(u*=.8,(v=t.slice(l,x-1).match(m))&&l>0&&(u*=Math.pow(.999,v.length))):p.test(t.charAt(x-1))?(u*=.9,(h=t.slice(l,x-1).match(f))&&l>0&&(u*=Math.pow(.999,h.length))):(u*=.17,l>0&&(u*=Math.pow(.999,x-l))),t.charAt(x)!==r.charAt(o)&&(u*=.9999)),(u<.1&&n.charAt(x-1)===a.charAt(o+1)||a.charAt(o+1)===a.charAt(o)&&n.charAt(x-1)!==a.charAt(o))&&.1*(d=e(t,r,n,a,x+1,o+2,i))>u&&(u=.1*d),u>b&&(b=u),x=n.indexOf(g,x+1);return i[s]=b,b}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,v(n),v(t),0,0,{})},ep=h.createContext(void 0),ef=h.createContext(void 0),ev=h.createContext(void 0),eh=h.forwardRef((e,t)=>{let r=eE(()=>{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=eE(()=>new Set),a=eE(()=>new Map),l=eE(()=>new Map),o=eE(()=>new Set),i=ek(e),{label:s,children:u,value:d,onValueChange:c,filter:m,shouldFilter:p,loop:f,disablePointerSelection:v=!1,vimBindings:g=!0,...x}=e,b=(0,y.useId)(),C=(0,y.useId)(),w=(0,y.useId)(),j=h.useRef(null),k=eI();eN(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,N.emit()}},[d]),eN(()=>{k(6,A)},[]);let N=h.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,l,o,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)D(),I(),k(1,P);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(a=document.getElementById(b))||a.focus()}if(k(7,()=>{var e;r.current.selectedItemId=null==(e=_())?void 0:e.id,N.emit()}),n||k(5,A),(null==(l=i.current)?void 0:l.value)!==void 0){null==(s=(o=i.current).onValueChange)||s.call(o,null!=t?t:"");return}}N.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),S=h.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=l.current.get(e))?void 0:a.value)&&(l.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,R(t,n)),k(2,()=>{I(),N.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),k(3,()=>{D(),I(),r.current.value||P(),N.emit()}),()=>{l.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=_();k(4,()=>{D(),(null==t?void 0:t.getAttribute("id"))===e&&P(),N.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{l.current.delete(e),a.current.delete(e)}),filter:()=>i.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:b,inputId:w,labelId:C,listInnerRef:j}),[]);function R(e,t){var n,a;let l=null!=(a=null==(n=i.current)?void 0:n.filter)?a:em;return e?l(e,r.current.search,t):0}function I(){if(!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),l=0;n.forEach(t=>{l=Math.max(e.get(t),l)}),t.push([r,l])});let n=j.current;O().sort((t,r)=>{var n,a;let l=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(a=e.get(l))?a:0)}).forEach(e=>{let t=e.closest(ei);t?t.appendChild(e.parentElement===t?e:e.closest(`${ei} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${ei} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=j.current)?void 0:t.querySelector(`${eo}[${ec}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function P(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(ec);N.setState("value",t||void 0)}function D(){var e,t,o,s;if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let a of n.current){let n=R(null!=(t=null==(e=l.current.get(a))?void 0:e.value)?t:"",null!=(s=null==(o=l.current.get(a))?void 0:o.keywords)?s:[]);r.current.filtered.items.set(a,n),n>0&&u++}for(let[e,t]of a.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 A(){var e,t,r;let n=_();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(eo))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function _(){var e;return null==(e=j.current)?void 0:e.querySelector(`${es}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=j.current)?void 0:e.querySelectorAll(eu))||[])}
5function F(e){let t=O()[e];t&&N.setState("value",t.getAttribute(ec))}function M(e){var t;let r=_(),n=O(),a=n.findIndex(e=>e===r),l=n[a+e];null!=(t=i.current)&&t.loop&&(l=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),l&&N.setState("value",l.getAttribute(ec))}function z(e){let t=_(),r=null==t?void 0:t.closest(eo),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,eo):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,eo))?void 0:r.querySelector(eu);n?N.setState("value",n.getAttribute(ec)):M(e)}let $=()=>F(O().length-1),L=e=>{e.preventDefault(),e.metaKey?$():e.altKey?z(1):M(1)},B=e=>{e.preventDefault(),e.metaKey?F(0):e.altKey?z(-1):M(-1)};return h.createElement(E.Primitive.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=x.onKeyDown)||t.call(x,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":g&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":g&&e.ctrlKey&&B(e);break;case"ArrowUp":B(e);break;case"Home":e.preventDefault(),F(0);break;case"End":e.preventDefault(),$();break;case"Enter":{e.preventDefault();let t=_();if(t){let e=new Event(ed);t.dispatchEvent(e)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:eD},s),eP(e,e=>h.createElement(ef.Provider,{value:N},h.createElement(ep.Provider,{value:S},e))))}),eg=h.forwardRef((e,t)=>{var r,n;let a=(0,y.useId)(),l=h.useRef(null),o=h.useContext(ev),i=h.useContext(ep),s=ek(e),u=null!=(n=null==(r=s.current)?void 0:r.forceMount)?n:null==o?void 0:o.forceMount;eN(()=>{if(!u)return i.item(a,null==o?void 0:o.id)},[u]);let d=eR(a,l,[e.value,e.children,l],e.keywords),c=h.useContext(ef),m=eS(e=>e.value&&e.value===d.current),p=eS(e=>!!u||!1===i.filter()||!e.search||e.filtered.items.get(a)>0);function f(){var e,t;v(),null==(t=(e=s.current).onSelect)||t.call(e,d.current)}function v(){c.setState("value",d.current,!0)}if(h.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(ed,f),()=>t.removeEventListener(ed,f)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:b,onSelect:C,forceMount:w,keywords:j,...k}=e;return h.createElement(E.Primitive.div,{ref:(0,x.composeRefs)(l,t),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!m,"data-disabled":!!g,"data-selected":!!m,onPointerMove:g||i.getDisablePointerSelection()?void 0:v,onClick:g?void 0:f},e.children)}),ex=h.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...l}=e,o=(0,y.useId)(),i=h.useRef(null),s=h.useRef(null),u=(0,y.useId)(),d=h.useContext(ep),c=eS(e=>!!a||!1===d.filter()||!e.search||e.filtered.groups.has(o));eN(()=>d.group(o),[]),eR(o,i,[e.value,e.heading,s]);let m=h.useMemo(()=>({id:o,forceMount:a}),[a]);return h.createElement(E.Primitive.div,{ref:(0,x.composeRefs)(i,t),...l,"cmdk-group":"",role:"presentation",hidden:!c||void 0},r&&h.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),eP(e,e=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},h.createElement(ev.Provider,{value:m},e))))}),eb=h.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=h.useRef(null),l=eS(e=>!e.search);return r||l?h.createElement(E.Primitive.div,{ref:(0,x.composeRefs)(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),ey=h.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,l=h.useContext(ef),o=eS(e=>e.search),i=eS(e=>e.selectedItemId),s=h.useContext(ep);return h.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),h.createElement(E.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":i,id:s.inputId,type:"text",value:a?e.value:o,onChange:e=>{a||l.setState("search",e.target.value),null==r||r(e.target.value)}})}),eC=h.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,l=h.useRef(null),o=h.useRef(null),i=eS(e=>e.selectedItemId),s=h.useContext(ep);return h.useEffect(()=>{if(o.current&&l.current){let e=o.current,t=l.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)}}},[]),h.createElement(E.Primitive.div,{ref:(0,x.composeRefs)(l,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:s.listId},eP(e,e=>h.createElement("div",{ref:(0,x.composeRefs)(o,s.listInnerRef),"cmdk-list-sizer":""},e)))}),ew=h.forwardRef((e,t)=>
5{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:l,container:o,...i}=e;return h.createElement(M,{open:r,onOpenChange:n},h.createElement(T,{container:o},h.createElement(V,{"cmdk-overlay":"",className:a}),h.createElement(U,{"aria-label":e.label,"cmdk-dialog":"",className:l},h.createElement(eh,{ref:t,...i}))))}),ej=Object.assign(eh,{List:eC,Item:eg,Input:ey,Group:ex,Separator:eb,Dialog:ew,Empty:h.forwardRef((e,t)=>eS(e=>0===e.filtered.count)?h.createElement(E.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:h.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...l}=e;return h.createElement(E.Primitive.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},eP(e,e=>h.createElement("div",{"aria-hidden":!0},e)))})});function ek(e){let t=h.useRef(e);return eN(()=>{t.current=e}),t}var eN="u"<typeof window?h.useEffect:h.useLayoutEffect;function eE(e){let t=h.useRef();return void 0===t.current&&(t.current=e()),t}function eS(e){let t=h.useContext(ef),r=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,r,r)}function eR(e,t,r,n=[]){let a=h.useRef(),l=h.useContext(ep);return eN(()=>{var o;let i=(()=>{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():a.current}})(),s=n.map(e=>e.trim());l.value(e,i,s),null==(o=t.current)||o.setAttribute(ec,i),a.current=i}),a}var eI=()=>{let[e,t]=h.useState(),r=eE(()=>new Map);return eN(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function eP({asChild:e,children:t},r){let n;return e&&h.isValidElement(t)?h.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var eD={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};e.s(["Command",0,ej],770352)},283227,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.i(521467);var n=e.i(858200),a=e.i(179862),l=e.i(271645);function o(e){return e.preventDefault()}e.s(["SearchBoxBase",0,e=>{let i,s,u,d,c,m,p,f,v,h=(0,r.c)(24),{value:g,onChange:x,onClear:b,placeholder:y,inputClassName:C,containerClassName:w,onKeyDown:j,focusOnMount:k}=e,N=void 0!==k&&k,E=(0,l.useRef)(null);h[0]!==N?(i=()=>{if(!N)return;let e=requestAnimationFrame(()=>E.current?.focus());return()=>cancelAnimationFrame(e)},s=[N],h[0]=N,h[1]=i,h[2]=s):(i=h[1],s=h[2]),(0,l.useEffect)(i,s),h[3]!==x?(u=e=>{x(e.target.value)},h[3]=x,h[4]=u):u=h[4];let S=u;h[5]!==b?(d=()=>{b?.(),E.current?.focus()},h[5]=b,h[6]=d):d=h[6];let R=d;return h[7]!==w?(c=(0,a.cn)("relative z-99 flex h-full w-full items-center rounded-full",w),h[7]=w,h[8]=c):c=h[8],h[9]!==C?(m=(0,a.cn)("mx-4 w-full bg-transparent text-[14px] leading-[20px] font-normal text-main-primary caret-main-primary placeholder:text-main-muted/80 focus:outline-none",C),h[9]=C,h[10]=m):m=h[10],h[11]!==S||h[12]!==j||h[13]!==y||h[14]!==m||h[15]!==g?(p=(0,t.jsx)("input",{ref:E,type:"text","aria-label":"Search",value:g,onChange:S,onKeyDown:j,placeholder:y,autoComplete:"off",className:m}),h[11]=S,h[12]=j,h[13]=y,h[14]=m,h[15]=g,h[16]=p):p=h[16],h[17]!==R||h[18]!==g?(f=g&&(0,t.jsx)("button",{type:"button","aria-label":"Clear search",className:"absolute right-2 flex size-4 cursor-pointer items-center justify-center text-main-muted hover:text-main-primary",onClick:R,onMouseDown:o,children:(0,t.jsx)(n.XIcon,{className:"size-full"})}),h[17]=R,h[18]=g,h[19]=f):f=h[19],h[20]!==c||h[21]!==p||h[22]!==f?(v=(0,t.jsxs)("div",{className:c,children:[p,f]}),h[20]=c,h[21]=p,h[22]=f,h[23]=v):v=h[23],v}])},772619,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(770352),a=e.i(54943),l=e.i(179862);let o=e=>{let a,o,i,s,u,d=(0,r.c)(10);return d[0]!==e?({className:a,ref:i,...o}=e,d[0]=e,d[1]=a,d[2]=o,d[3]=i):(a=d[1],o=d[2],i=d[3]),d[4]!==a?(s=(0,l.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dar
5k:bg-neutral-950 dark:text-neutral-50",a),d[4]=a,d[5]=s):s=d[5],d[6]!==o||d[7]!==i||d[8]!==s?(u=(0,t.jsx)(n.Command,{ref:i,className:s,...o}),d[6]=o,d[7]=i,d[8]=s,d[9]=u):u=d[9],u};o.displayName=n.Command.displayName,n.Command.Input.displayName;let i=e=>{let a,o,i,s,u,d=(0,r.c)(10);return d[0]!==e?({className:a,ref:i,...o}=e,d[0]=e,d[1]=a,d[2]=o,d[3]=i):(a=d[1],o=d[2],i=d[3]),d[4]!==a?(s=(0,l.cn)("max-h-[300px] overflow-x-hidden overflow-y-auto",a),d[4]=a,d[5]=s):s=d[5],d[6]!==o||d[7]!==i||d[8]!==s?(u=(0,t.jsx)(n.Command.List,{ref:i,className:s,...o}),d[6]=o,d[7]=i,d[8]=s,d[9]=u):u=d[9],u};i.displayName=n.Command.List.displayName;let s=e=>{let a,l,o,i=(0,r.c)(6);return i[0]!==e?({ref:l,...a}=e,i[0]=e,i[1]=a,i[2]=l):(a=i[1],l=i[2]),i[3]!==a||i[4]!==l?(o=(0,t.jsx)(n.Command.Empty,{ref:l,className:"py-6 text-center text-sm",...a}),i[3]=a,i[4]=l,i[5]=o):o=i[5],o};s.displayName=n.Command.Empty.displayName;let u=e=>{let a,o,i,s,u,d=(0,r.c)(10);return d[0]!==e?({className:a,ref:i,...o}=e,d[0]=e,d[1]=a,d[2]=o,d[3]=i):(a=d[1],o=d[2],i=d[3]),d[4]!==a?(s=(0,l.cn)("overflow-hidden p-1 text-neutral-950 dark:text-neutral-50 [&_[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-neutral-500 dark:[&_[cmdk-group-heading]]:text-neutral-400",a),d[4]=a,d[5]=s):s=d[5],d[6]!==o||d[7]!==i||d[8]!==s?(u=(0,t.jsx)(n.Command.Group,{ref:i,className:s,...o}),d[6]=o,d[7]=i,d[8]=s,d[9]=u):u=d[9],u};u.displayName=n.Command.Group.displayName,n.Command.Separator.displayName;let d=e=>{let a,o,i,s,u,d=(0,r.c)(10);return d[0]!==e?({className:a,ref:i,...o}=e,d[0]=e,d[1]=a,d[2]=o,d[3]=i):(a=d[1],o=d[2],i=d[3]),d[4]!==a?(s=(0,l.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-neutral-100 data-[selected=true]:text-neutral-900 dark:data-[selected=true]:bg-neutral-800 dark:data-[selected=true]:text-neutral-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a),d[4]=a,d[5]=s):s=d[5],d[6]!==o||d[7]!==i||d[8]!==s?(u=(0,t.jsx)(n.Command.Item,{ref:i,className:s,...o}),d[6]=o,d[7]=i,d[8]=s,d[9]=u):u=d[9],u};d.displayName=n.Command.Item.displayName,e.s(["Command",0,o,"CommandEmpty",0,s,"CommandGroup",0,u,"CommandItem",0,d,"CommandList",0,i],772619)},560032,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(178761),a=e.i(179862);let l=n.Root,o=n.Trigger,i=e=>{let l,o,i,s,u,d,c,m,p,f=(0,r.c)(18);f[0]!==e?({className:l,align:u,sideOffset:d,container:o,ref:s,...i}=e,f[0]=e,f[1]=l,f[2]=o,f[3]=i,f[4]=s,f[5]=u,f[6]=d):(l=f[1],o=f[2],i=f[3],s=f[4],u=f[5],d=f[6]);let v=void 0===u?"center":u,h=void 0===d?4:d;return f[7]!==l?(c=(0,a.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border border-main-border bg-white p-4 text-neutral-950 shadow-md outline-none dark:bg-neutral-950 dark:text-neutral-50",l),f[7]=l,f[8]=c):c=f[8],f[9]!==v||f[10]!==i||f[11]!==s||f[12]!==h||f[13]!==c?(m=(0,t.jsx)(n.Content,{ref:s,align:v,sideOffset:h,className:c,...i}),f[9]=v,f[10]=i,f[11]=s,f[12]=h,f[13]=c,f[14]=m):m=f[14],f[15]!==o||f[16]!==m?(p=(0,t.jsx)(n.Portal,{container:o,children:m}),f[15]=o,f[16]=m,f[17]=p):p=f[17],p};i.displayName=n.Content.displayName,e.s(["Popover",0,l,"PopoverContent",0,i,"PopoverTrigger",0,o])}]);

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.