1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,391426,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);function o(e,t,r){return Math.min(r,Math.max(t,e))}function i(e){let a,o,i,s,c,u=(0,r.c)(24),{points:d,title:f,formatValue:m,formatCompact:p}=e;if(u[0]!==d){let e=d.map(l);a=Math.min(0,...e),o=Math.max(0,...e),u[0]=d,u[1]=a,u[2]=o}else a=u[1],o=u[2];let v=o-a||1,h=(0-a)/v*100;if(u[3]!==m||u[4]!==d){let e;u[6]!==m?(e=e=>`${e.label} ${m(e.value)}`,u[6]=m,u[7]=e):e=u[7],i=d.map(e).join(", "),u[3]=m,u[4]=d,u[5]=i}else i=u[5];let b=`${f}: ${i}`;if(u[8]!==p||u[9]!==m||u[10]!==a||u[11]!==d||u[12]!==v||u[13]!==h){let e;u[15]!==p||u[16]!==m||u[17]!==a||u[18]!==v||u[19]!==h?(e=(e,r)=>{let o=Math.abs(e.value)/v*100,i=e.value>=0?h:h-o;return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)("span",{className:"copy-12 max-w-[min(11rem,32vw)] truncate text-[var(--muted)]",title:e.label,children:e.label}),(0,t.jsxs)("span",{className:"relative h-3.5","aria-hidden":!0,children:[a<0?(0,t.jsx)("span",{className:"absolute -inset-y-1 w-px bg-[var(--border)]",style:{left:`${h}%`}}):null,0!==e.value?(0,t.jsx)("span",{className:"absolute inset-y-0 rounded-[2px] bg-[var(--chart-1)]",style:{left:`${i}%`,width:`max(${o}%, 2px)`}}):null]}),(0,t.jsx)("span",{className:"copy-12 text-right tabular-nums text-[var(--foreground)]",title:m(e.value),children:p(e.value)})]},`${e.label}-${r}`)},u[15]=p,u[16]=m,u[17]=a,u[18]=v,u[19]=h,u[20]=e):e=u[20],s=d.map(e),u[8]=p,u[9]=m,u[10]=a,u[11]=d,u[12]=v,u[13]=h,u[14]=s}else s=u[14];return u[21]!==b||u[22]!==s?(c=(0,t.jsx)("div",{role:"img","aria-label":b,className:"grid grid-cols-[minmax(3rem,max-content)_minmax(0,1fr)_max-content] items-center gap-x-3 gap-y-1.5",children:s}),u[21]=b,u[22]=s,u[23]=c):c=u[23],c}function l(e){return e.value}function s(e){let a,i,l,s,u,d,f,m,p,v,h,b,g,x,y,w,j,E,C,N,k,S,T,R,L,P,_,D,M,O,I,A,$,F,B,z,W,q,H,U,V,K=(0,r.c)(109),{points:X,title:Y,formatValue:G,formatCompact:Z}=e,[J,Q]=n.useState(null);if(K[0]!==X){let e=X.map(c);a=Math.min(...e),i=Math.max(...e),K[0]=X,K[1]=a,K[2]=i}else a=K[1],i=K[2];let ee=i,et=X.length-1;K[3]!==et?(l=e=>0===et?50:e/et*100,K[3]=et,K[4]=l):l=K[4];let er=l;K[5]!==ee||K[6]!==a?(s=e=>ee===a?50:(1-(e-a)/(ee-a))*100,K[5]=ee,K[6]=a,K[7]=s):s=K[7];let en=s,ea=J??et,eo=X[0].label;K[8]!==G||K[9]!==X[0].value?(u=G(X[0].value),K[8]=G,K[9]=X[0].value,K[10]=u):u=K[10];let ei=X[et].label,el=X[et];K[11]!==G||K[12]!==el.value?(d=G(el.value),K[11]=G,K[12]=el.value,K[13]=d):d=K[13],K[14]!==G||K[15]!==ee?(f=G(ee),K[14]=G,K[15]=ee,K[16]=f):f=K[16],K[17]!==G||K[18]!==a?(m=G(a),K[17]=G,K[18]=a,K[19]=m):m=K[19];let es=`${Y}: ${eo} ${u} to ${ei} ${d}; high ${f}, low ${m}.`;K[20]!==et?(p=e=>{let t=e.currentTarget.getBoundingClientRect();return Math.round(o((e.clientX-t.left)/Math.max(1,t.width),0,1)*et)},K[20]=et,K[21]=p):p=K[21];let ec=p;K[22]!==et?(v=e=>{let t={ArrowLeft:-1,ArrowRight:1,Home:-et,End:et};"Escape"===e.key?Q(null):e.key in t&&(e.preventDefault(),Q(r=>o((r??et)+t[e.key],0,et)))},K[22]=et,K[23]=v):v=K[23];let eu=v,ed=X[ea];K[24]!==ed.label?(h=(0,t.jsx)("span",{className:"text-[var(--muted)]",children:ed.label}),K[24]=ed.label,K[25]=h):h=K[25];let ef=X[ea];if(K[26]!==G||K[27]!==ef.value?(b=G(ef.value),K[26]=G,K[27]=ef.value,K[28]=b):b=K[28],K[29]!==b?(g=(0,t.jsx)("span",{className:"text-[var(--foreground)]",children:b}),K[29]=b,K[30]=g):g=K[30],K[31]!==h||K[32]!==g?(x=(0,t.jsxs)("p",{className:"copy-12 flex justify-end gap-1.5 tabular-nums","aria-hidden":!0,children:[h,g]}),K[31]=h,K[32]=g,K[33]=x):x=K[33],K[34]!==Z||K[35]!==ee||K[36]!==a?(y=Z(ee).length>=Z(a).length?Z(ee):Z(a),K[34]=Z,K[35]=ee,K[36]=a,K[37]=y):y=K[37],K[38]!==y?(w=(0,t.jsx)("span",{className:"invisible block h-0 overflow-hidden",children:y}),K[38]=y,K[39]=w):w=K[39],K[40]!==Z||K[41]!==ee?(j=Z(ee),K[40]=Z,K[41]=ee,K[42]=j):j=K[42],K[43]!==j?(E=(0,t.jsx)("span",{className:"absolute top-2 right-0 -translate-y-1/2",children:j}),K[43]=j,K[44]=E):E=K[44],K[45]!==Z||K[46]!==a?(C=Z(a),K[45]=Z,K[46]=a,K[47]=C):C=K[47],K[48]!==C?(N=(0,t.jsx)("span",{className:"absolute right-0 bottom-2 translate-y-1/2",children:C}),K[48]=C,K[49]=N):N=K[49],K[50]!==w||K[51]!==E||K[52]!==N?(k=(0,t.jsxs)("div",{className:"copy-12 relative h-32 text-right tabular-nums text-[var(--muted)]","aria-hidden":!0,
1children:[w,E,N]}),K[50]=w,K[51]=E,K[52]=N,K[53]=k):k=K[53],K[54]!==ec?(S=e=>Q(ec(e)),T=e=>Q(ec(e)),K[54]=ec,K[55]=S,K[56]=T):(S=K[55],T=K[56]),K[57]===Symbol.for("react.memo_cache_sentinel")?(R=()=>Q(null),K[57]=R):R=K[57],K[58]===Symbol.for("react.memo_cache_sentinel")?(L=()=>Q(null),P=(0,t.jsx)("div",{className:"absolute inset-x-0 top-2 border-t border-dashed border-[var(--separator)]","aria-hidden":!0}),_=(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-2 border-t border-[var(--border-soft)]","aria-hidden":!0}),K[58]=L,K[59]=P,K[60]=_):(L=K[58],P=K[59],_=K[60]),K[61]!==X||K[62]!==er||K[63]!==en){let e;K[65]!==er||K[66]!==en?(e=(e,t)=>`${er(t)},${en(e.value)}`,K[65]=er,K[66]=en,K[67]=e):e=K[67],D=X.map(e).join(" "),K[61]=X,K[62]=er,K[63]=en,K[64]=D}else D=K[64];K[68]!==D?(M=(0,t.jsx)("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"absolute inset-0 h-full w-full overflow-visible",children:(0,t.jsx)("polyline",{points:D,fill:"none",stroke:"var(--chart-1)",strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"})}),K[68]=D,K[69]=M):M=K[69],K[70]!==J||K[71]!==er?(O=null!==J?(0,t.jsx)("span",{className:"absolute inset-y-0 w-px bg-[var(--border)]",style:{left:`${er(J)}%`}}):null,K[70]=J,K[71]=er,K[72]=O):O=K[72];let em=`${er(ea)}%`,ep=`${en(X[ea].value)}%`;return K[73]!==em||K[74]!==ep?(I=(0,t.jsx)("span",{className:"absolute h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-[var(--chart-1)] ring-2 ring-[var(--surface-strong)]",style:{left:em,top:ep}}),K[73]=em,K[74]=ep,K[75]=I):I=K[75],K[76]!==M||K[77]!==O||K[78]!==I?(A=(0,t.jsxs)("div",{className:"absolute inset-x-1 inset-y-2","aria-hidden":!0,children:[M,O,I]}),K[76]=M,K[77]=O,K[78]=I,K[79]=A):A=K[79],K[80]!==eu||K[81]!==es||K[82]!==S||K[83]!==T||K[84]!==A?($=(0,t.jsxs)("div",{role:"img","aria-label":es,tabIndex:0,className:"ds-focus-ring relative h-32 touch-none rounded-[var(--radius-sm)] outline-none",onPointerMove:S,onPointerDown:T,onPointerLeave:R,onKeyDown:eu,onBlur:L,children:[P,_,A]}),K[80]=eu,K[81]=es,K[82]=S,K[83]=T,K[84]=A,K[85]=$):$=K[85],K[86]===Symbol.for("react.memo_cache_sentinel")?(F=(0,t.jsx)("span",{"aria-hidden":!0}),K[86]=F):F=K[86],K[87]!==X[0].label?(B=(0,t.jsx)("span",{className:"truncate",children:X[0].label}),K[87]=X[0].label,K[88]=B):B=K[88],K[89]!==et||K[90]!==X?(z=et>0?(0,t.jsx)("span",{className:"truncate",children:X[et].label}):null,K[89]=et,K[90]=X,K[91]=z):z=K[91],K[92]!==B||K[93]!==z?(W=(0,t.jsxs)("div",{className:"copy-12 flex justify-between gap-3 text-[var(--muted)]","aria-hidden":!0,children:[B,z]}),K[92]=B,K[93]=z,K[94]=W):W=K[94],K[95]!==k||K[96]!==$||K[97]!==W?(q=(0,t.jsxs)("div",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-2",children:[k,$,F,W]}),K[95]=k,K[96]=$,K[97]=W,K[98]=q):q=K[98],K[99]!==J||K[100]!==G||K[101]!==X?(H=null!==J?`${X[J].label}: ${G(X[J].value)}`:"",K[99]=J,K[100]=G,K[101]=X,K[102]=H):H=K[102],K[103]!==H?(U=(0,t.jsx)("p",{className:"sr-only","aria-live":"polite",children:H}),K[103]=H,K[104]=U):U=K[104],K[105]!==x||K[106]!==q||K[107]!==U?(V=(0,t.jsxs)("div",{className:"space-y-1.5",children:[x,q,U]}),K[105]=x,K[106]=q,K[107]=U,K[108]=V):V=K[108],V}function c(e){return e.value}e.s(["AnswerChart",0,function(e){let n,o,l,c,u,d,f=(0,r.c)(19),{kind:m,points:p,title:v,note:h,formatValue:b,formatCompact:g,className:x}=e,y=void 0===g?b:g;return 0===p.length?null:(f[0]!==x?(n=(0,a.cn)("w-full max-w-[40rem] space-y-3 rounded-[var(--radius-lg)] bg-[var(--surface-strong)] px-3.5 pt-3 pb-3.5",x),f[0]=x,f[1]=n):n=f[1],f[2]!==v?(o=(0,t.jsx)("span",{className:"label-13 text-[var(--foreground)]",children:v}),f[2]=v,f[3]=o):o=f[3],f[4]!==h?(l=h?(0,t.jsx)("span",{className:"copy-12 text-[var(--muted)]",children:h}):null,f[4]=h,f[5]=l):l=f[5],f[6]!==o||f[7]!==l?(c=(0,t.jsxs)("figcaption",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-0.5",children:[o,l]}),f[6]=o,f[7]=l,f[8]=c):c=f[8],f[9]!==y||f[10]!==b||f[11]!==m||f[12]!==p||f[13]!==v?(u="bar"===m?(0,t.jsx)(i,{points:p,title:v,formatValue:b,formatCompact:y}):(0,t.jsx)(s,{points:p,title:v,formatValue:b,formatCompact:y}),f[9]=y,f[10]=b,f[11]=m,f[12]=p,f[13]=v,f[14]=u):u=f[14],f[15]!==n||f[16
1]!==c||f[17]!==u?(d=(0,t.jsxs)("figure",{className:n,children:[c,u]}),f[15]=n,f[16]=c,f[17]=u,f[18]=d):d=f[18],d)}])},585545,e=>{"use strict";var t=e.i(397487),r=e.i(592009);function n(e){return e.currentTarget.form?.requestSubmit()}e.s(["AutoSaveCheckbox",0,function(e){let a,o=(0,r.c)(2);return o[0]!==e?(a=(0,t.jsx)("input",{...e,type:"checkbox",onChange:n}),o[0]=e,o[1]=a):a=o[1],a}])},565833,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);let o={sm:"h-7 w-7 label-12",md:"h-9 w-9 label-13"},i=["bg-[var(--surface-strong)]","bg-[var(--surface-deep)]","bg-[color-mix(in_oklab,var(--muted-soft)_16%,var(--surface))]","bg-[color-mix(in_oklab,var(--muted-soft)_26%,var(--surface))]"];function l(e){let t=e.split(/[\s@._-]+/).filter(Boolean);return 0===t.length?"?":((t[0]?.[0]??"")+(t[1]?.[0]??"")).toUpperCase()}function s(e){let t=0;for(let r=0;r<e.length;r+=1)t=31*t+e.charCodeAt(r)>>>0;return t%i.length}e.s(["Avatar",0,function(e){let c,u,d,f,m,p,v,h,b=(0,r.c)(16);b[0]!==e?({name:u,src:f,size:m,labelled:p,className:c,...d}=e,b[0]=e,b[1]=c,b[2]=u,b[3]=d,b[4]=f,b[5]=m,b[6]=p):(c=b[1],u=b[2],d=b[3],f=b[4],m=b[5],p=b[6]);let g=void 0===m?"md":m,x=void 0!==p&&p,y=u.trim()||"Unknown person",w=f||null,[j,E]=n.useState(null),C=!!w&&j!==w,N=x?{role:"img","aria-label":y}:{"aria-hidden":!0},k=o[g],S=i[s(y.toLowerCase())];b[7]!==c||b[8]!==k||b[9]!==S?(v=(0,a.cn)("inline-flex shrink-0 select-none items-center justify-center overflow-hidden rounded-full text-[var(--muted)]",k,S,c),b[7]=c,b[8]=k,b[9]=S,b[10]=v):v=b[10];let T=C?(0,t.jsx)("img",{src:f??void 0,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover",onError:()=>E(w)}):l(y);return b[11]!==d||b[12]!==N||b[13]!==v||b[14]!==T?(h=(0,t.jsx)("span",{"data-ui":"avatar",...N,className:v,...d,children:T}),b[11]=d,b[12]=N,b[13]=v,b[14]=T,b[15]=h):h=b[15],h},"avatarInitials",0,l,"avatarTintIndex",0,s])},763732,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365),o=e.i(985902),i=e.i(83826),l=e.i(610012);function s(e,r){return(0,t.jsxs)("span",{className:"grid grid-cols-[2.25rem_1fr] items-baseline",children:[(0,t.jsx)("span",{className:"select-none text-right pr-3 text-[var(--muted-soft)]",children:r+1}),(0,t.jsx)("span",{children:e||" "})]},r)}e.s(["CodeBlock",0,function(e){let c,u,d,f,m,p,v,h,b,g,x,y,w,j=(0,r.c)(63),{code:E,variant:C,copyLabel:N,language:k,label:S,showCopy:T,showChromeDots:R,showLineNumbers:L,typewriter:P,className:_}=e,D=void 0===N?"Copy":N,M=void 0===k?"txt":k,O=void 0===T||T,I=void 0===R||R,A=void 0!==L&&L,$=void 0!==P&&P,[F,B]=n.useState("idle"),z=n.useRef(0),W=n.useRef(null),q=n.useRef(null),H="prompt"===(void 0===C?"code":C);j[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>(B("idle"),()=>{z.current=z.current+1,W.current&&window.clearTimeout(W.current)}),j[0]=c):c=j[0],j[1]!==E?(u=[E],j[1]=E,j[2]=u):u=j[2],n.useEffect(c,u);let[U,V]=n.useState($?"":E);j[3]!==E||j[4]!==$?(d=()=>{if(!$)return void V(E);V("");let e=0,t=window.setInterval(()=>{e=Math.min(e+2,E.length),V(E.slice(0,e)),e>=E.length&&window.clearInterval(t)},18);return()=>window.clearInterval(t)},f=[E,$],j[3]=E,j[4]=$,j[5]=d,j[6]=f):(d=j[5],f=j[6]),n.useEffect(d,f),j[7]!==E?(m=async function(){let e=z.current=z.current+1;W.current&&window.clearTimeout(W.current),B("copying");try{if(await navigator.clipboard.writeText(E),e!==z.current)return;B("copied"),W.current=window.setTimeout(()=>B("idle"),1500)}catch{if(e!==z.current)return;B("failed")}},j[7]=E,j[8]=m):m=j[8];let K=m;if(j[9]!==F?(p=()=>{"failed"===F&&(q.current?.focus({preventScroll:!0}),q.current?.select())},v=[F],j[9]=F,j[10]=p,j[11]=v):(p=j[10],v=j[11]),n.useEffect(p,v),j[12]!==_||j[13]!==E||j[14]!==D||j[15]!==F||j[16]!==K||j[17]!==H||j[18]!==S||j[19]!==M||j[20]!==U||j[21]!==I||j[22]!==O||j[23]!==A||j[24]!==$){let e,r,n,i,c,u=U.split("\n"),d=H?"bg-[var(--surface)]":"bg-[var(--surface-deep)]";j[29]!==_||j[30]!==d?(h=(0,a.cn)("group relative overflow-hidden rounded-[var(--radius-lg)] border border-[var(--border-soft)]",d,_),j[29]=_,j[30]=d,j[31]=h):h=j[31];let f=H?"px-4 pt-4":"border-b border-[var(--border-soft)] px-3.5 py-2";j[32]!==f?(e=(0,a.cn)("flex items-center justify-between gap-3 bg-[var(--surface)]",f),j[32]=f,j[33]=e):e=j[33],j[34]!==I?(r=I?(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[var(--border)]"}),(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[var(--border)]"}),(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[var(--border)]"})]}):null,j[34]=I,j[35]=r):r=j[35],j[36]!==H||j[37]!==S||j[38]!==M?(n=S?(0,t.jsx)("span",{className:(0,a.cn)(H?"label-14":"label-12","text-[var(--muted)]"),children:S}):(0,t.jsx)("span",{className:"mono-11 text-[var(--muted-soft)]",children:M}),j[36]=H,j[37]=S,j[38]=M,j[39]=n):n=j[39],j[40]!==r||j[41]!==n?(i=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[r,n]}),j[40]=r,j[41]=n,j[42]=i):i=j[42],j[43]!==D||j[44]!==F||j[45]!==K||j[46]!==H||j[47]!==O?(c=O?(0,t.jsx)("button",{type:"button",onClick:()=>void K(),disabled:"copying"===F,"aria-busy":"copying"===F||void 0,className:(0,o.buttonClassName)({variant:H?"primary":"ghost",size:H?"md":"sm",className:"shrink-0"}),children:"copied"===F?"Copied":"copying"===F?"Copyingâ¦":D}):null,j[43]=D,j[44]=F,j[45]=K,j[46]=H,j[47]=O,j[48]=c):c=j[48],j[49]!==e||j[50]!==i||j[51]!==c?(b=(0,t.jsxs)("header",{className:e,children:[i,c]}),j[49]=e,j[50]=i,j[51]=c,j[52]=b):b=j[52],j[53]!==F?(g="copied"===F?(0,t.jsx)("span",{className:"sr-only",role:"status",children:"Copied to clipboard."}):null,j[53]=F,j[54]=g):g=j[54],x="failed"===F?(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(l.Textarea,{ref:q,"aria-label":"Text to copy manually",value:E,readOnly:!0,rows:Math.min(10,Math.max(3,E.split("\n").length))})}):H?(0,t.jsx)("p",{className:"m-0 whitespace-pre-wrap break-words px-4 pb-5 pt-4 copy-16 text-[var(--foreground)]",children:E}):(0,t.jsxs)("pre",{className:"mono-13 m-0 overflow-x-auto px-4 py-3 text-[var(--foreground)]",children:[A?(0,t.jsx)("code",{children:u.map(s)}):(0,t.jsx)("code",{children:U}),$&&U.length<E.length?(0,t.jsx)("span",{className:"ds-caret","aria-hidden":!0}):null]}),j[12]=_,j[13]=E,j[14]=D,j[15]=F,j[16]=K,j[17]=H,j[18]=S,j[19]=M,j[20]=U,j[21]=I,j[22]=O,j[23]=A,j[24]=$,j[25]=h,j[26]=b,j[27]=g,j[28]=x}else h=j[25],b=j[26],g=j[27],x=j[28];return j[55]!==F?(y="failed"===F?(0,t.jsx)(i.Notice,{tone:"neutral",className:"m-3",showLabel:!1,children:"Copy was blocked. The text is selected so you can copy it manually, or try again."}):null,j[55]=F,j[56]=y):y=j[56],j[57]!==h||j[58]!==b||j[59]!==g||j[60]!==x||j[61]!==y?(w=(0,t.jsxs)("figure",{className:h,children:[b,g,x,y]}),j[57]=h,j[58]=b,j[59]=g,j[60]=x,j[61]=y,j[62]=w):w=j[62],w}])},934953,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);let o=n.createContext(null);function i(){let e=n.useContext(o);if(!e)throw Error("Command compound components must render inside <Command>");return e}function l(e,t){if(!e)return 1;let r=e.toLowerCase(),n=t.toLowerCase();if(n===r)return 1;if(n.startsWith(r))return .9;if(n.split(/\s+/).some(e=>e.startsWith(r)))return .75;if(n.includes(r))return .5;let a=0;for(let e=0;e<n.length&&a<r.length;e++)n[e]===r[a]&&a++;return .2*(a===r.length)}function s(e,t,r){let n=Array.isArray(r)?r.join(" "):r??"";return Math.max(l(e,t),n?l(e,n):0)}let c=n.createContext(null),u=n.forwardRef(function(e,o){let i,l,s,u,d,f,m,p,v=(0,r.c)(18);v[0]!==e?({className:i,autoFocus:s,placeholder:u,...l}=e,v[0]=e,v[1]=i,v[2]=l,v[3]=s,v[4]=u):(i=v[1],l=v[2],s=v[3],u=v[4]);let h=void 0===s||s,b=void 0===u?"Searchâ¦":u,g=n.useContext(c);if(!g)throw Error("CommandInput must render inside <Command>");v[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",className:"h-3.5 w-3.5 shrink-0 text-[var(--muted-soft)]","aria-hidden":!0,
1children:[(0,t.jsx)("path",{d:"m21 21-4.35-4.35",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7"})]}),v[5]=d):d=v[5];let x=g.filter;return v[6]!==g?(f=e=>g.setFilter(e.target.value),v[6]=g,v[7]=f):f=v[7],v[8]!==i?(m=(0,a.cn)("command-input copy-14 w-full bg-transparent text-[var(--foreground)] placeholder:text-[var(--muted-soft)] focus:outline-none",i),v[8]=i,v[9]=m):m=v[9],v[10]!==h||v[11]!==g.filter||v[12]!==b||v[13]!==o||v[14]!==l||v[15]!==f||v[16]!==m?(p=(0,t.jsx)("div",{className:"border-b border-[var(--border-soft)] p-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-full border border-[var(--border-soft)] bg-[var(--surface-strong)] px-3.5 py-2 transition-[border-color,box-shadow] duration-[var(--duration-base)] ease-[var(--ease-out)] focus-within:border-[var(--selection-border)] focus-within:shadow-[var(--shadow-focus)]",children:[d,(0,t.jsx)("input",{ref:o,type:"text",autoFocus:h,placeholder:b,value:x,onChange:f,className:m,...l})]})}),v[10]=h,v[11]=g.filter,v[12]=b,v[13]=o,v[14]=l,v[15]=f,v[16]=m,v[17]=p):p=v[17],p}),d=n.createContext(null);function f(){}e.s(["Command",0,function({label:e="Command Menu",className:r,children:i,defaultValue:l,value:u,onValueChange:d,loop:f=!0}){let[m,p]=n.useState(l??""),v=void 0!==u,h=v?u:m,b=n.useCallback(e=>{v||p(e),d?.(e)},[v,d]),g=n.useRef(new Map),x=n.useRef(new Map),[y,w]=n.useReducer(e=>e+1,0),[j,E]=n.useState(null),C=n.useCallback(e=>(g.current.set(e.id,e),w(),()=>{g.current.delete(e.id),w()}),[]),N=n.useCallback(e=>(x.current.set(e,(x.current.get(e)??0)+1),()=>{let t=(x.current.get(e)??1)-1;t<=0?x.current.delete(e):x.current.set(e,t)}),[]),k=n.useCallback(e=>s(h,e.value,e.keywords),[h]),S=n.useCallback(()=>{let e,t=Array.from(g.current.values());return(e=(h?t.filter(e=>k(e)>0):t).map((e,t)=>({item:e,index:t,element:e.getElement?.()??null}))).sort((e,t)=>{if(e.element&&t.element&&e.element!==t.element){let r=e.element.compareDocumentPosition(t.element);if(r&Node.DOCUMENT_POSITION_FOLLOWING)return -1;if(r&Node.DOCUMENT_POSITION_PRECEDING)return 1}return e.element&&!t.element?-1:!e.element&&t.element?1:e.index-t.index}),e.map(({item:e})=>e)},[h,k]),T=n.useCallback(()=>{if(!h)return g.current.size>0;for(let e of g.current.values())if(k(e)>0)return!0;return!1},[h,k]),R=n.useCallback(e=>Array.from(g.current.values()).some(t=>t.groupId===e&&(!h||k(t)>0)),[h,k]),L=n.useRef(h);n.useEffect(()=>{let e=S(),t=L.current!==h;if(L.current=h,0===e.length){null!==j&&E(null);return}if(t||!j||!e.some(e=>e.id===j)){let t=function(e,t){let r=null,n=-1;for(let a of e){if(a.disabled)continue;let e=t(a);e>n&&(r=a,n=e)}return r??e[0]}(e,k);j!==t.id&&E(t.id)}},[j,h,S,k,y]);let P=n.useCallback(e=>{let t=S();if(0===t.length)return;let r=t.findIndex(e=>e.id===j);if("ArrowDown"===e.key){e.preventDefault();let n=r<0?0:r+1,a=n>=t.length?f?0:t.length-1:n;E(t[a].id)}else if("ArrowUp"===e.key){e.preventDefault();let n=r<=0?f?t.length-1:0:r-1;E(t[n].id)}else if("Home"===e.key)e.preventDefault(),E(t[0].id);else if("End"===e.key)e.preventDefault(),E(t[t.length-1].id);else if("Enter"===e.key){let r=t.find(e=>e.id===j);r&&!r.disabled&&(e.preventDefault(),r.onSelect())}},[j,S,f]),_=n.useMemo(()=>({filter:h,matches:k,registerItem:C,itemsOrdered:S,hasVisibleItems:T,activeId:j,setActiveId:E,registerGroup:N,groupVisible:R}),[h,k,C,S,T,j,N,R,y]);return(0,t.jsx)(o.Provider,{value:_,children:(0,t.jsx)("div",{role:"group","aria-label":e,onKeyDown:P,className:(0,a.cn)("flex flex-col",r),"data-command-root":!0,"data-filter":h||void 0,children:(0,t.jsx)(c.Provider,{value:{filter:h,setFilter:b},children:i})})})},"CommandEmpty",0,function(e){let n,o,l=(0,r.c)(5),{children:s,className:c}=e;return i().hasVisibleItems()?null:(l[0]!==c?(n=(0,a.cn)("copy-13 px-3 py-6 text-center text-[var(--muted)]",c),l[0]=c,l[1]=n):n=l[1],l[2]!==s||l[3]!==n?(o=(0,t.jsx)("div",{className:n,children:s}),l[2]=s,l[3]=n,l[4]=o):o=l[4],o)},"CommandGroup",0,function(e){let o,l,s,c,u,f,m,p=(0,r.c)(19),{heading:v,children:h,className:b,id:g}=e,x=n.useId(),y=g??x,w=i(),{registerGroup:j}=w;p[0]!==y||p[1]!==j?(o=()=>j(y),l=[j,y],p[0]=y,p[1]=j,p[2]=o,p[3]=l):(o=p[2],l=p[3]),n.useEffect(o,l),p[4]!==w||p[5]!==y?(s=w.groupVisible(y),p[4]=w,p[5]=y,p[6]=s):s=p[6];let E=s;p[7]!==b?(c=(0,a.cn)("py-1",b),p[7]=b,p[8]=c):c=p[8];let C=!E;return p[9]!==v?(u=v?(0,t.jsx)("div",{className:"label-12 px-2.5 pb-1 pt-1 text-[var(--muted)]",children:v}):null,p[9]=v,p[10]=u):u=p[10],p[11]!==h||p[12]!==c||p[13]!==C||p[14]!==u?(f=(0,t.jsxs)("div",{className:c,hidden:C,children:[u,h]}),p[11]=h,p[12]=c,p[13]=C,p[14]=u,p[15]=f):f=p[15],p[16]!==y||p[17]!==f?(m=(0,t.jsx)(d.Provider,{value:y,children:f}),p[16]=y,p[17]=f,p[18]=m):m=p[18],m},"CommandInput",0,u,"CommandItem",0,function(e){let o,l,s,c,u,m,p,v,h,b,g,x,y,w,j,E,C,N,k,S=(0,r.c)(46);S[0]!==e?({value:h,keywords:s,onSelect:m,disabled:v,children:o,className:l,onMouseEnter:u,onFocus:c,...p}
1=e,S[0]=e,S[1]=o,S[2]=l,S[3]=s,S[4]=c,S[5]=u,S[6]=m,S[7]=p,S[8]=v,S[9]=h):(o=S[1],l=S[2],s=S[3],c=S[4],u=S[5],m=S[6],p=S[7],v=S[8],h=S[9]);let T=void 0!==v&&v,R=i(),L=n.useContext(d),P=n.useId(),_=n.useRef(m);S[10]!==m?(b=()=>{_.current=m},S[10]=m,S[11]=b):b=S[11],n.useEffect(b);let{registerItem:D}=R,M=n.useRef(null);S[12]!==T||S[13]!==L||S[14]!==P||S[15]!==s||S[16]!==D||S[17]!==h?(g=()=>D({id:P,value:h,keywords:Array.isArray(s)?s.join(" "):s??"",onSelect:()=>_.current?.(),groupId:L,disabled:T,getElement:()=>M.current}),x=[D,P,h,s,L,T],S[12]=T,S[13]=L,S[14]=P,S[15]=s,S[16]=D,S[17]=h,S[18]=g,S[19]=x):(g=S[18],x=S[19]),n.useEffect(g,x);let O=!R.filter||R.matches({id:P,value:h,keywords:Array.isArray(s)?s.join(" "):s??"",onSelect:f,groupId:L,disabled:T})>0,I=R.activeId===P;if(S[20]!==I?(y=()=>{I&&M.current?.scrollIntoView({block:"nearest"})},w=[I],S[20]=I,S[21]=y,S[22]=w):(y=S[21],w=S[22]),n.useEffect(y,w),!O)return null;let A=T||void 0,$=I||void 0;return S[23]!==R||S[24]!==P||S[25]!==u?(j=e=>{u?.(e),R.setActiveId(P)},S[23]=R,S[24]=P,S[25]=u,S[26]=j):j=S[26],S[27]!==R||S[28]!==P||S[29]!==c?(E=e=>{c?.(e),R.setActiveId(P)},S[27]=R,S[28]=P,S[29]=c,S[30]=E):E=S[30],S[31]!==T?(C=()=>{T||_.current?.()},S[31]=T,S[32]=C):C=S[32],S[33]!==l?(N=(0,a.cn)("label-13 flex cursor-default items-center gap-2 rounded-[var(--radius-sm)] px-2.5 py-1.5 text-[var(--foreground)] transition-colors duration-[var(--duration-react)] aria-disabled:opacity-50","data-[active]:bg-[color-mix(in_srgb,var(--highlight)_10%,transparent)]",l),S[33]=l,S[34]=N):N=S[34],S[35]!==I||S[36]!==o||S[37]!==P||S[38]!==p||S[39]!==E||S[40]!==C||S[41]!==N||S[42]!==A||S[43]!==$||S[44]!==j?(k=(0,t.jsx)("div",{ref:M,...p,id:P,role:"option","aria-selected":I,"aria-disabled":A,"data-active":$,onMouseEnter:j,onFocus:E,onClick:C,className:N,children:o}),S[35]=I,S[36]=o,S[37]=P,S[38]=p,S[39]=E,S[40]=C,S[41]=N,S[42]=A,S[43]=$,S[44]=j,S[45]=k):k=S[45],k},"CommandList",0,function(e){let n,o,i=(0,r.c)(5),{children:l,className:s}=e;return i[0]!==s?(n=(0,a.cn)("max-h-80 overflow-y-auto p-1 embrasure-query-scroll",s),i[0]=s,i[1]=n):n=i[1],i[2]!==l||i[3]!==n?(o=(0,t.jsx)("div",{role:"listbox",className:n,children:l}),i[2]=l,i[3]=n,i[4]=o):o=i[4],o},"CommandShortcut",0,function(e){let n,o,i=(0,r.c)(5),{children:l,className:s}=e;return i[0]!==s?(n=(0,a.cn)("mono-11 ml-auto rounded-[var(--radius-sm)] border border-[var(--border-soft)] bg-[var(--surface-strong)] px-1.5 py-0.5 text-[var(--muted)]",s),i[0]=s,i[1]=n):n=i[1],i[2]!==l||i[3]!==n?(o=(0,t.jsx)("span",{className:n,children:l}),i[2]=l,i[3]=n,i[4]=o):o=i[4],o},"commandMatchScore",0,s])},993150,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(985902),o=e.i(929365);e.s(["ConfirmButton",0,function(e){let i,l,s,c,u,d,f,m,p,v,h=(0,r.c)(34),{triggerLabel:b,message:g,confirmLabel:x,cancelLabel:y,destructive:w,disabled:j,onConfirm:E,className:C}=e,N=void 0===y?"Cancel":y,[k,S]=n.useState(!1),T=n.useId(),R=n.useRef(null),L=n.useRef(null),P=n.useRef(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(i=function(){P.current=!0,S(!1)},h[0]=i):i=h[0];let _=i;if(h[1]!==k?(l=()=>{k?R.current?.focus():P.current&&(P.current=!1,L.current?.focus())},s=[k],h[1]=k,h[2]=l,h[3]=s):(l=h[2],s=h[3]),n.useEffect(l,s),!k){let e,r,n,i=w&&"hover:text-[var(--danger)]";return h[4]!==C||h[5]!==i?(e=(0,o.cn)(i,C),h[4]=C,h[5]=i,h[6]=e):e=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(r=()=>S(!0),h[7]=r):r=h[7],h[8]!==T||h[9]!==j||h[10]!==e||h[11]!==b?(n=(0,t.jsx)(a.Button,{ref:L,type:"button",size:"sm",variant:"ghost",disabled:j,"aria-expanded":!1,"aria-controls":T,className:e,onClick:r,children:b}),h[8]=T,h[9]=j,h[10]=e,h[11]=b,h[12]=n):n=h[12],n}let D=`${b} confirmation`;h[13]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),_())},h[13]=c):c=h[13],h[14]!==g?(u=(0,t.jsx)("span",{className:"copy-12 min-w-0 flex-1 text-[var(--muted)]",children:g}),h[14]=g,h[15]=u):u=h[15],h[16]!==N?(d=(0,t.jsx)(a.Button,{type:"button",size:"sm",variant:"ghost",onClick:_,children:N}),h[16]=N,h[17]=d):d=h[17];let M=E?"button":"submit",O=w?"destructive":"primary";return h[18]!==E?(f=E?()=>{S(!1),E()}:void 0,h[18]=E,h[19]=f):f=h[19],h[20]!==x||h[21]!==j||h[22]!==O||h[23]!==f||h[24]!==M?(m=(0,t.jsx)(a.Button,{ref:R,type:M,size:"sm",variant:O,disabled:j,onClick:f,children:x}),h[20]=x,h[21]=j,h[22]=O,h[23]=f,h[24]=M,h[25]=m):m=h[25],h[26]!==m||h[27]!==d?(p=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:justify-end",children:[d,m]}),h[26]=m,h[27]=d,h[28]=p):p=h[28],h[29]!==T||h[30]!==p||h[31]!==D||h[32]!==u?(v=(0,t.jsxs)("div",{id:T,role:"group","aria-label":D,className:"flex min-w-0 flex-col items-stretch gap-2 rounded-[var(--radius-lg)] border border-[var(--border-soft)] bg-[var(--surface-deep)]/35 p-3 sm:flex-row sm:items-center",onKeyDown:c,children:[u,p]}),h[29]=T,h[30]=p,h[31]=D,h[32]=u,h[33]=v):v=h[33],v}])},239170,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(985902),o=e.i(547608);let i={open:!1,options:null};function l(e){return{open:!1,options:e.options}}e.s(["useConfirm",0,function(){let e,s,c,u,d,f,m,p,v,h,b,g=(0,r.c)(21),[x,y]=n.useState(i),w=n.useRef(null),j=n.useRef(null),E=n.useRef(null);g[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>()=>{w.current?.(!1),w.current=null},s=[],g[0]=e,g[1]=s):(e=g[0],s=g[1]),n.useEffect(e,s),g[2]===Symbol.for("react.memo_cache_sentinel")?(c=e=>new Promise(t=>{w.current?.(!1),w.current=t,y({open:!0,options:e})}),g[2]=c):c=g[2];let C=c;g[3]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{let t=w.current;w.current=null,y(l),t?.(e)},g[3]=u):u=g[3];let N=u,k=x.options,S=k?.destructive===!0;g[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>N(!1),g[4]=d):d=g[4];let T=k?.title,R=k?.description,L=S?j:E;g[5]===Symbol.for("react.memo_cache_sentinel")?(f=()=>N(!1),g[5]=f):f=g[5];let P=k?.cancelLabel??"Cancel";g[6]!==P?(m=(0,t.jsx)(a.Button,{type:"button",size:"sm",variant:"ghost",ref:j,onClick:f,children:P}),g[6]=P,g[7]=m):m=g[7];let _=S?"destructive":"primary";g[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>N(!0),g[8]=p):p=g[8];let D=k?.confirmLabel;return g[9]!==_||g[10]!==D?(v=(0,t.jsx)(a.Button,{type:"button",size:"sm",variant:_,ref:E,onClick:p,children:D}
1),g[9]=_,g[10]=D,g[11]=v):v=g[11],g[12]!==m||g[13]!==v?(h=(0,t.jsxs)(t.Fragment,{children:[m,v]}),g[12]=m,g[13]=v,g[14]=h):h=g[14],g[15]!==x.open||g[16]!==h||g[17]!==T||g[18]!==R||g[19]!==L?(b={confirm:C,confirmDialog:(0,t.jsx)(o.Dialog,{open:x.open,onClose:d,title:T,description:R,width:"min(26rem, 92vw)",initialFocusRef:L,footer:h,children:null})},g[15]=x.open,g[16]=h,g[17]=T,g[18]=R,g[19]=L,g[20]=b):b=g[20],b}])},303055,774144,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(239477),o=Object.defineProperty,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(i)for(var r of i(t))s.call(t,r)&&c(e,r,t[r]);return e};let d=(0,n.forwardRef)((e,t)=>{let r=u(u({},n.useContext(a.IconoirContext)),e);return n.createElement("svg",u({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),n.createElement("path",{d:"M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["ArrowDown",0,d],774144);let f={damping:.7,stiffness:.05,mass:1.25},m=1e3/60,p=!1;function v(e,t){let r=(0,n.useCallback)(t=>(r.current=t,e(t)),t);return r}globalThis.document?.addEventListener("mousedown",()=>{p=!0}),globalThis.document?.addEventListener("mouseup",()=>{p=!1}),globalThis.document?.addEventListener("click",()=>{p=!1});let h=new Map;function b(...e){let t={...f},r=!1;for(let n of e){if("instant"===n){r=!0;continue}"object"==typeof n&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}let n=JSON.stringify(t);return h.has(n)||h.set(n,Object.freeze(t)),r?"instant":h.get(n)}let g=(0,n.createContext)(null),x="u">typeof window?n.useLayoutEffect:n.useEffect;function y({instance:e,children:t,resize:r,initial:a,mass:o,damping:i,stiffness:l,targetScrollTop:s,contextRef:c,...u}){let d=(0,n.useRef)(null),f=((e={})=>{let[t,r]=(0,n.useState)(!1),[a,o]=(0,n.useState)(!1!==e.initial),[i,l]=(0,n.use
1State)(!1),s=(0,n.useRef)(null);s.current=e;let c=(0,n.useCallback)(()=>{if(!p)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(w.current)||w.current?.contains(t.commonAncestorContainer)},[]),u=(0,n.useCallback)(e=>{f.isAtBottom=e,o(e)},[]),d=(0,n.useCallback)(e=>{f.escapedFromLock=e,r(e)},[]),f=(0,n.useMemo)(()=>{let r;return{escapedFromLock:t,isAtBottom:a,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return w.current?.scrollTop??0},set scrollTop(scrollTop){if(w.current){let{scrollBehavior:e}=getComputedStyle(w.current);"auto"!==e&&(w.current.style.scrollBehavior="auto"),w.current.scrollTop=scrollTop,f.ignoreScrollToTop=w.current.scrollTop,"auto"!==e&&(w.current.style.scrollBehavior=e)}},get targetScrollTop(){if(!w.current||!j.current)return 0;return w.current.scrollHeight-1-w.current.clientHeight},get calculatedTargetScrollTop(){if(!w.current||!j.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(r?.targetScrollTop===t)return r.calculatedScrollTop;let n=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:w.current,contentElement:j.current}),t),0);return r={targetScrollTop:t,calculatedScrollTop:n},requestAnimationFrame(()=>{r=void 0}),n},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),h=(0,n.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||u(!0);let r=Date.now()+(Number(e.wait)||0),n=b(s.current,e.animation),{ignoreEscapes:a=!1}=e,o=f.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=r+(e.duration??0);let i=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!f.isAtBottom)return f.animation=void 0,!1;let{scrollTop:l}=f,u=performance.now(),d=(u-(f.lastTick??u))/m;if(f.animation||(f.animation={behavior:n,promise:e,ignoreEscapes:a}),f.animation.behavior===n&&(f.lastTick=u),c()||r>Date.now())return i();if(l<Math.min(o,f.calculatedTargetScrollTop)){if(f.animation?.behavior===n){if("instant"===n)return f.scrollTop=f.calculatedTargetScrollTop,i();f.velocity=(n.damping*f.velocity+n.stiffness*f.scrollDifference)/n.mass,f.accumulated+=f.velocity*d,f.scrollTop+=f.accumulated,f.scrollTop!==l&&(f.accumulated=0)}return i()}return t>Date.now()?(o=f.calculatedTargetScrollTop,i()):(f.animation=void 0,f.scrollTop<f.calculatedTargetScrollTop)?h({animation:b(s.current,s.current.resize),ignoreEscapes:a,duration:Math.max(0,t-Date.now())||void 0}):f.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{f.animation||(f.lastTick=void 0,f.velocity=0)}),e))};return(!0!==e.wait&&(f.animation=void 0),f.animation?.behavior===n)?f.animation.promise:i()},[u,c,f]),g=(0,n.useCallback)(()=>{d(!0),u(!1)},[d,u]),x=(0,n.useCallback)(({target:e})=>{if(e!==w.current)return;let{scrollTop:t,ignoreScrollToTop:r}=f,{lastScrollTop:n=t}=f;f.lastScrollTop=t,f.ignoreScrollToTop=void 0,r&&r>t&&(n=r),l(f.isNearBottom),setTimeout(()=>{if(f.resizeDifference||t===r)return;if(c()){d(!0),u(!1);return}let e=t>n,a=t<n;if(f.animation?.ignoreEscapes){f.scrollTop=n;return}a&&(d(!0),u(!1)),e&&d(!1),!f.escapedFromLock&&f.isNearBottom&&u(!0)},1)},[d,u,c,f]),y=(0,n.useCallback)(({target:e,deltaY:t})=>{let r=e;for(;!["scroll","auto"].includes(getComputedStyle(r).overflow);){if(!r.parentElement)return;r=r.parentElement}r===w.current&&t<0&&w.current.scrollHeight>w.current.clientHeight&&!f.animation?.ignoreEscapes&&(d(!0),u(!1))},[d,u,f]),w=v(e=>{w.current?.removeEventListener("scroll",x),w.current?.removeEventListener("wheel",y),e?.addEventListener("scroll",x,{passive:!0}),e?.addEventListener("wheel",y,{passive:!0})},[]),j=v(e=>{let t;f.resizeObserver?.disconnect(),f.resizeObserver=void 0,e&&(f.resizeObserver=new ResizeObserver(([e])=>{let{height:r}=e.contentRect,n=r-(t??r);if(f.resizeDifference=n,f.scrollTop>f.targetScrollTop&&(f.scrollTop=f.targetScrollTop),l(f.isNearBottom),n>=0){let e=b(s.current,t?s.current.resize:s.current.initial);h({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else f.isNearBottom&&(d(!1),u(!0));t=r,requestAnimationFrame(()=>{setTimeout(()=>{f.resizeDifference===n&&(f.resizeDifference=0)},1)})}),f.resizeObserver?.observe(e))},[]);return{contentRef:j,scrollRef:w,scrollToBottom:h,stopScroll:g,isAtBottom:a||i,isNearBottom:i,escapedFromLock:t,state:f}})({mass:o,damping:i,stiffness:l,resize:r,initial:a,targetScrollTop:n.useCallback((e,t)=>{let r=S?.targetScrollTop??s;return r?.(e,t)??e},[s])}),{scrollRef:h,contentRef:w,scrollToBottom:j,stopScroll:E,isAtBottom:C,escapedFromLock:N,state:k}=e??f,S=(0,n.useMemo)(()=>({scrollToBottom:j,stopScroll:E,scrollRef:h,isAtBottom:C,escapedFromLock:N,contentRef:w,state:k,get targetScrollTop(){return d.current},set targetScrollTop(targetScrollTop){d.current=targetScrollTop}}),[j,C,w,h,E,N,k]);return(0,n.useImperativeHandle)(c,()=>S,[S]),x(()=>{h.current&&"visible"===getComputedStyle(h.current).overflow&&(h.current.style.overflow="auto")},[]),n.createElement(g.Provider,{value:S},n.createElement("div",{...u},"function"==typeof t?t(S):t))}function w(){let e=(0,n.useContext)(g);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(y||(y={})).Content=function({children:e,scrollClassName:t,...r}){let a=w();return n.createElement("div",{ref:a.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:t},n.createElement("div",{...r,ref:a.contentRef},"function"==typeof e?e(a):e))};var j=e.i(929365),E=e.i(332861);let C="(prefers-reduced-motion: reduce)";function N(e){let t=window.matchMedia?.(C);return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}function k(){return!1}function S(){return window.matchMedia?.(C).matches??!1}e.s(["Conversation",0,function(e){let a,o,i,l,s,c=(0,r.c)(11);c[0]!==e?({className:a,label:o,...i}=e,c[0]=e,c[1]=a,c[2]=o,c[3]=i):(a=c[1],o=c[2],i=c[3]);let u=n.useSyncExternalStore(N,S,k)?"instant":"smooth";return c[4]!==a?(l=(0,j.cn)("relative min-h-0 flex-1 overflow-y-hidden",a),c[4]=a,c[5]=l):l=c[5],c[6]!==o||c[7]!==i||c[8]!==u||c[9]!==l?
1(s=(0,t.jsx)(y,{className:l,initial:u,resize:u,role:"log","aria-label":o,...i}),c[6]=o,c[7]=i,c[8]=u,c[9]=l,c[10]=s):s=c[10],s},"ConversationContent",0,function(e){let n,a,o,i,l,s,c=(0,r.c)(12);return c[0]!==e?({className:n,scrollClassName:o,...a}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=o):(n=c[1],a=c[2],o=c[3]),c[4]!==n?(i=(0,j.cn)("flex flex-col gap-6 px-4 py-5",n),c[4]=n,c[5]=i):i=c[5],c[6]!==o?(l=(0,j.cn)("[scrollbar-gutter:auto]!",o),c[6]=o,c[7]=l):l=c[7],c[8]!==a||c[9]!==i||c[10]!==l?(s=(0,t.jsx)(y.Content,{className:i,scrollClassName:l,...a}),c[8]=a,c[9]=i,c[10]=l,c[11]=s):s=c[11],s},"ConversationScrollButton",0,function(e){let n,a,o,i,l=(0,r.c)(9),{label:s,className:c}=e,u=void 0===s?"Scroll to latest message":s,{isAtBottom:f,scrollToBottom:m}=w();return f?null:(l[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(d,{}),l[0]=n):n=l[0],l[1]!==c?(a=(0,j.cn)("absolute bottom-3 left-1/2 -translate-x-1/2 material-raised",c),l[1]=c,l[2]=a):a=l[2],l[3]!==m?(o=()=>void m(),l[3]=m,l[4]=o):o=l[4],l[5]!==u||l[6]!==a||l[7]!==o?(i=(0,t.jsx)(E.IconButton,{label:u,icon:n,variant:"secondary",className:a,onClick:o}),l[5]=u,l[6]=a,l[7]=o,l[8]=i):i=l[8],i)}],303055)},547608,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(347590),o=e.i(494261),i=e.i(929365),l=e.i(332861),s=e.i(885391),c=e.i(117687);e.s(["Dialog",0,function(e){let u,d,f,m,p,v,h,b,g,x,y,w,j,E,C,N,k=(0,r.c)(53),{open:S,onClose:T,ariaLabel:R,title:L,description:P,children:_,footer:D,className:M,width:O,showCloseButton:I,initialFocusRef:A,instant:$,portalContainer:F}=e,B=void 0===O?"min(48rem, 92vw)":O,z=void 0!==I&&I,W=void 0!==$&&$,q=n.useRef(null),[H,U]=n.useState(!1),[V,K]=n.useState("closed"),X=n.useId(),Y=n.useId();if(k[0]!==S?(u=()=>{S&&U(!0)},d=[S],k[0]=S,k[1]=u,k[2]=d):(u=k[1],d=k[2]),n.useEffect(u,d),k[3]!==W||k[4]!==H||k[5]!==S?(f=()=>{if(!H)return;if(S){let e=requestAnimationFrame(()=>K("open"));return()=>cancelAnimationFrame(e)}K("closed");let e=setTimeout(()=>U(!1),140*!W);return()=>clearTimeout(e)},m=[S,H,W],k[3]=W,k[4]=H,k[5]=S,k[6]=f,k[7]=m):(f=k[6],m=k[7]),n.useEffect(f,m),k[8]!==A||k[9]!==H||k[10]!==T?(p={containerRef:q,mounted:H,onClose:T,initialFocusRef:A},k[8]=A,k[9]=H,k[10]=T,k[11]=p):p=k[11],(0,c.useModalFocus)(p),!H)return null;k[12]!==T?(v=e=>{(0,s.isModalBackdropClick)(e)&&T()},k[12]=T,k[13]=v):v=k[13];let G=W?"":void 0;k[14]!==V||k[15]!==G||k[16]!==v?(h=(0,t.jsx)("div",{"aria-hidden":!0,onClick:v,"data-state":V,"data-instant":G,className:"ds-dialog-backdrop absolute inset-0"}),k[14]=V,k[15]=G,k[16]=v,k[17]=h):h=k[17];let Z=L?void 0:R,J=L?X:void 0,Q=P?Y:void 0,ee=W?"":void 0;k[18]!==M?(b=(0,i.cn)("ds-dialog-panel material-modal relative flex max-h-full flex-col overflow-hidden rounded-[var(--radius-xl)]",M),k[18]=M,k[19]=b):b=k[19],k[20]!==B?(g={width:B},k[20]=B,k[21]=g):g=k[21],k[22]!==T||k[23]!==z?(x=z?(0,t.jsx)(l.IconButton,{label:"Close dialog",tooltip:!1,icon:(0,t.jsx)(a.Xmark,{}),onClick:T,className:"absolute right-4 top-4 z-10"}):null,k[22]=T,k[23]=z,k[24]=x):x=k[24],k[25]!==P||k[26]!==Y||k[27]!==z||k[28]!==L||k[29]!==X?(y=L||P?(0,t.jsxs)("header",{className:(0,i.cn)("border-b border-[var(--border-soft)] px-5 pt-5 pb-4",z?"pr-14":null),children:[L?(0,t.jsx)("h2",{id:X,className:"heading-16 font-serif text-[var(--foreground)]",children:L}):null,P?(0,t.jsx)("p",{id:Y,className:"copy-14 mt-1 text-[var(--muted)]",children:P}):null]}):null,k[25]=P,k[26]=Y,k[27]=z,k[28]=L,k[29]=X,k[30]=y):y=k[30],k[31]!==_?(w=null==_||!1===_?null:(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:_}),k[31]=_,k[32]=w):w=k[32],k[33]!==D?(j=D?(0,t.jsx)("footer",{className:"flex items-center justify-end gap-2 border-t border-[var(--border-soft)] bg-[var(--surface-deep)] px-5 py-3",children:D}):null,k[33]=D,k[34]=j):j=k[34],k[35]!==V||k[36]!==Z||k[37]!==J||k[38]!==Q||k[39]!==ee||k[40]!==b||k[41]!==g||k[42]!==x||k[43]!==y||k[44]!==w||k[45]!==j?(E=(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":Z,"aria-labelledby":J,"aria-describedby":Q,ref:q,tabIndex:-1,"data-state":V,"data-instant":ee,className:b,style:g,children:[x,y,w,j]}),k[35]=V,k[36]=Z,k[37]=J,k[38]=Q,k[39]=ee,k[40]=b,k[41]=g,k[42]=x,k[43]=y,k[44]=w,k[45]=j,k[46]=E):E=k[46],k[47]!==h||k[48]!==E?(C=(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center px-4 py-8",children:[h,E]}),k[47]=h,k[48]=E,k[49]=C):C=k[49];let et=C,er=F??document.body;return k[50]!==et||k[51]!==er?(N=(0,o.createPortal)(et,er),k[50]=et,k[51]=er,k[52]=N):N=k[52],N}])},432853,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(929365);function a(e,r){return(0,t.jsxs)("span",{className:(0,n.cn)("block px-4","add"===e.kind&&"bg-[color-mix(in_srgb,var(--success)_14%,transparent)] text-[var(--success)]","del"===e.kind&&"bg-[color-mix(in_srgb,var(--danger)_14%,transparent)] text-[var(--danger)]","ctx"===e.kind&&"text-[var(--muted)]"),children:[(0,t.jsx)("span",{className:"select-none pr-3 text-[var(--muted-soft)]",children:"add"===e.kind?"+":"del"===e.kind?"-":" "}),e.text||" "]},r)}e.s(["DiffView",0,function(e){let o,i,l,s,c,u,d=(0,r.c)(15),{before:f,after:m,path:p,className:v}=e;d[0]!==m||d[1]!==f?(o=function(e,t){let r=e.split("\n"),n=t.split("\n"),a=new Set(r),o=new Set(n),i=[],l=0,s=0;for(;l<r.length||s<n.length;){let e=r[l],t=n[s];if(e===t){void 0!==e&&i.push({kind:"ctx",text:e}),l++,s++;continue}
1if(void 0!==e&&!o.has(e)){i.push({kind:"del",text:e}),l++;continue}if(void 0!==t&&!a.has(t)){i.push({kind:"add",text:t}),s++;continue}void 0!==e&&(i.push({kind:"del",text:e}),l++),void 0!==t&&(i.push({kind:"add",text:t}),s++)}return i}(f,m),d[0]=m,d[1]=f,d[2]=o):o=d[2];let h=o;return d[3]!==v?(i=(0,n.cn)("overflow-hidden rounded-[var(--radius-lg)] border border-[var(--border-soft)] bg-[var(--surface-deep)]",v),d[3]=v,d[4]=i):i=d[4],d[5]!==p?(l=p?(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-[var(--border-soft)] bg-[var(--surface)] px-3.5 py-2",children:[(0,t.jsx)("span",{className:"label-12 text-[var(--muted)]",children:"Diff"}),(0,t.jsx)("span",{className:"mono-12 text-[var(--muted)]",children:p})]}):null,d[5]=p,d[6]=l):l=d[6],d[7]!==h?(s=h.map(a),d[7]=h,d[8]=s):s=d[8],d[9]!==s?(c=(0,t.jsx)("pre",{className:"mono-13 m-0 overflow-x-auto px-0 py-2",children:s}),d[9]=s,d[10]=c):c=d[10],d[11]!==i||d[12]!==l||d[13]!==c?(u=(0,t.jsxs)("figure",{className:i,children:[l,c]}),d[11]=i,d[12]=l,d[13]=c,d[14]=u):u=d[14],u}])},370385,414966,e=>{"use strict";var t=e.i(397487),r=e.i(495602),n=e.i(821770),a=e.i(985902),o=e.i(929365),i=e.i(711601);function l(e){if(e?.aborted)throw new DOMException("Document read cancelled","AbortError")}async function s(e,t){let r;if(l(t),!t)return e;let n=new Promise((e,n)=>{r=()=>n(new DOMException("Document read cancelled","AbortError")),t.addEventListener("abort",r,{once:!0})});try{return await Promise.race([e,n])}finally{t.removeEventListener("abort",r)}}async function c(t,r){let{unzipSync:n}=await s(e.A(729938),r);l(r);let a=0,o=0,i=!1;if(n(new Uint8Array(t),{filter(e){if(a+=e.originalSize,o+=1,a>0x1400000||o>1e3)throw Error("This Word document is too complex. Export a shorter document or paste its requirements instead.");return"word/document.xml"===e.name&&(i=!0),!1}}),!i)throw Error("Invalid Word document")}function u(e){if(!e.trim())throw Error("This document has no readable text. For scanned pages, export with text recognition or paste the requirements instead.");if(e.length>5e4)throw Error("Choose a document with fewer than 50,000 characters.");return e}async function d(t,r){let n,a=await s(e.A(605027),r);l(r),a.GlobalWorkerOptions.workerSrc=new e.U(e.r(680564)).toString();let o=a.getDocument({data:new Uint8Array(t),useSystemFonts:!0}),i=()=>n??=Promise.resolve(o.destroy()).catch(()=>{}),c=()=>{i()};r?.addEventListener("abort",c,{once:!0});let d=!1,f=setTimeout(()=>{d=!0,i()},3e4);try{let e=await s(o.promise,r);if(e.numPages>100)throw Error("Choose a PDF with 100 pages or fewer.");let t="";for(let n=1;n<=e.numPages;n++){l(r);let a=await s(e.getPage(n),r),o=(await s(a.getTextContent(),r)).items.map(e=>"str"in e?e.str+(e.hasEOL?"\n":" "):"").join("").trim();if(!o)throw Error("A PDF page has no readable text. Export with text recognition or paste the requirements instead.");t+=(t?"\n\n":"")+o,u(t),a.cleanup()}return t}catch(e){if(l(r),d)throw Error("This PDF took too long to read. Export a shorter PDF or paste its requirements instead.");if(e instanceof Error&&"PasswordException"===e.name)throw Error("This PDF is password protected. Upload an unlocked copy.");if(e instanceof Error&&/^(Choose|A PDF page)/.test(e.message))throw e;throw Error("This PDF could not be read. Export a new PDF or paste the requirements instead.")}finally{clearTimeout(f),r?.removeEventListener("abort",c),await i()}}async function f(t,r){let n,a;if(l(r),1!==t.length)throw Error("Choose one document at a time.");let o=t[0],i=o.name.split(".").pop()?.toLowerCase();if(!["txt","md","pdf","docx"].includes(i??""))throw Error("Choose a PDF, Word (.docx), text (.txt), or Markdown (.md) document.");let f="txt"===i||"md"===i;if(o.size>(f?204800:5242880))throw Error(f?"Choose a document smaller than 200 KB.":"Choose a document smaller than 5 MB.");if(!o.size)throw Error("This document is empty. Add your requirements and try again.");try{n=await s(o.arrayBuffer(),r)}catch{throw l(r),Error("This document could not be read. Try choosing it again.")}if(l(r),"pdf"===i)a=await d(n,r);else if("docx"===i)try{await c(n,r);let t=await s(e.A(70012),r);l(r),a=(await s(t.extractRawText({arrayBuffer:n}),r)).value}catch(e){if(l(r),e instanceof Error&&e.message.startsWith("This Word document is too complex"))throw e;throw Error("This Word document could not be read. Save it as a new .docx file or paste the requirements instead.")}else{try{a=new TextDecoder("utf-8",{fatal:!0}).decode(n)}catch{throw Error("Save this document as UTF-8 text and try again.")}if(Array.from(a).some(e=>{let t=e.charCodeAt(0);return t<32&&![9,10,13].includes(t)||127===t}))throw Error("This file contains binary content. Choose a text document.");if(!a.trim())throw Error("This document is empty. Add your requirements and try again.")}return l(r),{name:o.name,text:u(a)}}e.s(["readPolicyDocument",0,f],414966),e.s(["DocumentUpload",0,function({onDocument:e,disabled:l=!1,className:s,compact:c=!1}){let u=(0,n.useId)(),d=(0,n.useRef)(null),m=(0,n.useRef)(0),p=(0,n.useRef)(null),v=(0,n.useRef)(l),[h,b]=(0,n.use
1State)(!1),[g,x]=(0,n.useState)(!1),[y,w]=(0,n.useState)(null);async function j(t){if(v.current||p.current)return;let r=new AbortController;p.current=r;let n=++m.current,a=Date.now();b(!0),w(null);try{let o=await f(t,r.signal),i=1e3-(Date.now()-a);i>0&&!r.signal.aborted&&await new Promise(e=>{let t=()=>{clearTimeout(n),r.signal.removeEventListener("abort",t),e()},n=setTimeout(t,i);r.signal.addEventListener("abort",t,{once:!0})}),r.signal.aborted||n!==m.current||v.current||e(o)}catch(e){n!==m.current||v.current||w(e instanceof Error?e.message:"This document could not be read.")}finally{p.current===r&&(p.current=null),n===m.current&&b(!1)}}return(0,n.useLayoutEffect)(()=>{v.current=l,l&&(m.current+=1,p.current?.abort(),p.current=null,b(!1),x(!1))},[l]),(0,n.useEffect)(()=>()=>{p.current?.abort(),p.current=null,m.current+=1},[]),(0,t.jsxs)("div",{className:(0,o.cn)("space-y-3",s),children:[(0,t.jsxs)("div",{className:(0,o.cn)("material-base flex items-center justify-center rounded-[var(--radius-lg)] border border-dashed px-6 transition-colors duration-[var(--duration-react)] ease-[var(--ease-out)] motion-reduce:transition-none",c?"min-h-40 flex-col gap-4 py-6 text-center sm:flex-row sm:gap-6 sm:text-left":"min-h-60 flex-col gap-5 py-10 text-center",g&&!l?"border-[var(--selection-border)]":"border-[var(--border)]",l&&"opacity-60"),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect=l||h?"none":"copy",l||h||x(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1)},onDrop:e=>{e.preventDefault(),x(!1),l||j(Array.from(e.dataTransfer.files))},children:[(0,t.jsx)(r.Upload,{className:"h-8 w-8 shrink-0 text-[var(--muted)]","aria-hidden":"true"}),(0,t.jsxs)("div",{className:(0,o.cn)("min-w-0 space-y-2",c&&"sm:flex-1"),children:[(0,t.jsx)("p",{className:"heading-20",children:"Drop your requirements here"}),(0,t.jsx)("p",{className:"copy-14 text-[var(--muted)]",children:"Add a document to draft requirements you can review."}),(0,t.jsx)("p",{id:`${u}-help`,className:"sr-only",children:"PDF, Word, text, or Markdown"})]}),(0,t.jsx)("input",{ref:d,type:"file",accept:".pdf,.docx,.txt,.md,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown",className:"sr-only",tabIndex:-1,"aria-label":"Choose requirements document","aria-describedby":`${u}-help${y?` ${u}-error`:""}`,"aria-invalid":!!y,disabled:l||h,onChange:e=>{let t=Array.from(e.currentTarget.files??[]);e.currentTarget.value="",t.length&&j(t)}}),(0,t.jsx)(a.Button,{type:"button",variant:"secondary",disabled:l||h,onClick:()=>d.current?.click(),"aria-describedby":`${u}-help${y?` ${u}-error`:""}`,children:h?"Reading documentâ¦":"Browse files"}),(0,t.jsx)("span",{className:"sr-only",role:"status",children:h?"Reading document":""})]}),(0,t.jsx)(i.FieldError,{id:`${u}-error`,children:y})]})}],370385)},85130,e=>{"use strict";let t,r;var n,a,o,i,l,s,c,u,d=e.i(397487),f=e.i(592009),m=e.i(821770);function p(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return m.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=v(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():v(e[t],null)}}}}(...e),e)}"u">typeof window&&window.document&&window.document.createElement;var b=globalThis?.document?m.useLayoutEffect:()=>{},g=m[" useId ".trim().toString()]||(()=>void 0),x=0;function y(e){let[t,r]=m.useState(g());return b(()=>{e||r(e=>e??String(x++))},[e]),e||(t?`radix-${t}`:"")}m[" useEffectEvent ".trim().toString()],m[" useInsertionEffect ".trim().toString()];var w=m[" useInsertionEffect ".trim().toString()]||b;Symbol("RADIX:SYNC_STATE");var j=e.i(494261);function E(e){let t=m.forwardRef((t,r)=>{var n;let a,o,{children:i,...l}=t,s=null,c=!1,u=[];S(i)&&"function"==typeof L&&(i=L(i._payload)),m.Children.forEach(i,e=>{var t;if(t=e,m.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C){c=!0;let t="child"in e.props?e.props.child:e.props.children;S(t)&&"function"==typeof L&&(t=L(t._payload)),s=N(e,t),u.push(s?.props?.children)}else u.push(e)}
1),s?s=m.cloneElement(s,void 0,u):!c&&1===m.Children.count(i)&&m.isValidElement(i)&&(s=i);let d=s?(n=s,(o=(a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,f=h(r,d);if(!s){if(i||0===i)throw Error(c?R(e):T(e));return i}let p=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(l,s.props??{});return s.type!==m.Fragment&&(p.ref=r?f:d),m.cloneElement(s,p)});return t.displayName=`${e}.Slot`,t}var C=Symbol.for("radix.slottable"),N=(e,t)=>{if("child"in e.props){let t=e.props.child;return m.isValidElement(t)?m.cloneElement(t,void 0,e.props.children(t.props.children)):null}return m.isValidElement(t)?t:null},k=Symbol.for("react.lazy");function S(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===k&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var T=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,R=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,L=m[" use ".trim().toString()],P=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=E(`Primitive.${t}`),n=m.forwardRef((e,n)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...e)=>t.current?.(...e),[])}var D="dismissableLayer.update",M=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),O=m.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...u}=e,f=m.useContext(M),[v,b]=m.useState(null),g=v?.ownerDocument??globalThis?.document,[,x]=m.useState({}),y=h(t,b),w=Array.from(f.layers),[j]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=j?w.indexOf(j):-1,C=v?w.indexOf(v):-1,N=f.layersWithOutsidePointerEventsDisabled.size>0,k=C>=E,S=m.useRef(!1),T=function(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:i=I}=t,l=_(e),s=m.useRef(!1),c=m.useRef(!1),u=m.useRef(new Map),d=m.useRef(()=>{});return m.useEffect(()=>{function e(){c.current=!1,a.current=!1,u.current.clear()}function t(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||u.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function f(e){c.current&&u.current.set(e.type,!1)}let m=t=>{if(t.target&&!s.current){let o=function(){r.removeEventListener("click",d.current);let t=Array.from(u.current.values()).some(Boolean);e(),t||$("dismissableLayer.pointerDownOutside",l,f,{discrete:!0})};if(!i(t.target)){r.removeEventListener("click",d.current),e(),s.current=!1;return}let f={originalEvent:t};c.current=!0,a.current=n&&0===t.button,u.current.clear(),n&&0===t.button?(r.removeEventListener("click",d.current),d.current=o,r.addEventListener("click",d.current,{once:!0})):o()}else r.removeEventListener("click",d.current),e();s.current=!1},p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of p)r.addEventListener(e,t,!0),r.addEventListener(e,f);let v=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(v),r.removeEventListener("pointerdown",m),r.removeEventListener("click",d.current),p))r.removeEventListener(e,t,!0),r.removeEventListener(e,f)}},[r,l,n,a,o,i]),{onPointerDownCapture:()=>s.current=!0}}(e=>{o?.(e),l?.(e),e.defaultPrevented||s?.()},{ownerDocument:g,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return k&&!t},[f.branches,k])}),R=function(e,t=globalThis?.document){let r=_(e),n=m.useRef(!1);return m.useEffect(()=>{let e=e=>{e.target&&!n.current&&$("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{if(n&&S.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(i?.(e),l?.(e),e.defaultPrevented||s?.())},g),L=!!v&&C===w.length-1,O=_(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))});return m.useEffect(()=>{if(L)return g.addEventListener("keydown",O,{capture:!0}),()=>g.removeEventListener("keydown",O,{capture:!0})},[g,L,O]),m.useEffect(()=>{if(v)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(c=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(v)),f.layers.add(v),A(),(
1)=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(v),0===f.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=c))}},[v,g,r,f]),m.useEffect(()=>()=>{v&&(f.layers.delete(v),f.layersWithOutsidePointerEventsDisabled.delete(v),A())},[v,f]),m.useEffect(()=>{let e=()=>x({});return document.addEventListener(D,e),()=>document.removeEventListener(D,e)},[]),(0,d.jsx)(P.div,{...u,ref:y,style:{pointerEvents:N?k?"auto":"none":void 0,...e.style},onFocusCapture:p(e.onFocusCapture,R.onFocusCapture),onBlurCapture:p(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:p(e.onPointerDownCapture,T.onPointerDownCapture)})});O.displayName="DismissableLayer",m.forwardRef((e,t)=>{let r=m.useContext(M),n=m.useRef(null),a=h(t,n);return m.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(P.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var I=()=>!0;function A(){let e=new CustomEvent(D);document.dispatchEvent(e)}function $(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&a.addEventListener(e,t,{once:!0}),n)a&&j.flushSync(()=>a.dispatchEvent(o));else a.dispatchEvent(o)}var F="focusScope.autoFocusOnMount",B="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},W=m.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,s]=m.useState(null),c=_(a),u=_(o),f=m.useRef(null),p=h(t,s),v=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let e=function(e){if(v.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:U(f.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||U(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&U(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,v.paused]),m.useEffect(()=>{if(l){V.add(v);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(F,z);l.addEventListener(F,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(U(n,{select:t}),document.activeElement!==r)return}(q(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&U(l))}return()=>{l.removeEventListener(F,c),setTimeout(()=>{let t=new CustomEvent(B,z);l.addEventListener(B,u),l.dispatchEvent(t),t.defaultPrevented||U(e??document.body,{select:!0}),l.removeEventListener(B,u),V.remove(v)},0)}}},[l,c,u,v]);let b=m.useCallback(e=>{if(!r&&!n||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var o;let t,n=e.currentTarget,[i,l]=[H(t=q(o=n),o),H(t.reverse(),o)];i&&l?e.shiftKey||a!==l?e.shiftKey&&a===i&&(e.preventDefault(),r&&U(l,{select:!0})):(e.preventDefault(),r&&U(i,{select:!0})):a===n&&e.preventDefault()}},[r,n,v.paused]);return(0,d.jsx)(P.div,{tabIndex:-1,...i,ref:p,onKeyDown:b})});function q(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function H(e,t){let r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let n of e)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t})))return n}function U(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}W.displayName="FocusScope";var V=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=K(r,e)).unshift(e)},remove(e){r=K(r,e),r[0]?.resume()}});function K(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var X=m.forwardRef((e,t)=>
1{let{container:r,...n}=e,[a,o]=m.useState(!1);b(()=>o(!0),[]);let i=r||a&&globalThis?.document?.body;return i?j.createPortal((0,d.jsx)(P.div,{...n,ref:t}),i):null});X.displayName="Portal";var Y=e=>{var t;let r,n,{present:a,children:o}=e,i=function(e){var t,r;let[n,a]=m.useState(),o=m.useRef(null),i=m.useRef(e),l=m.useRef("none"),s=m.useRef(void 0),[c,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},m.useReducer((e,t)=>r[e][t]??e,t));return m.useEffect(()=>{"mounted"===c?(l.current=s.current??Z(o.current),s.current=void 0):l.current="none"},[c]),b(()=>{let t=o.current,r=i.current;if(r!==e){let n=l.current,a=Z(t);e?(s.current=a,u("MOUNT")):"none"===a||t?.display==="none"?u("UNMOUNT"):r&&n!==a?u("ANIMATION_OUT"):u("UNMOUNT"),i.current=e}},[e,u]),b(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let a=Z(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(u("ANIMATION_END"),!i.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(l.current=Z(o.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:m.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,s.current=Z(t)}else o.current=null;a(e)},[])}}(a),l="function"==typeof o?o({present:i.isPresent}):m.Children.only(o),s=function(...e){let t=m.useRef(e);return t.current=e,m.useCallback(e=>{let r=t.current,n=!1,a=r.map(t=>{let r=G(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<a.length;e++){let t=a[e];"function"==typeof t?t():G(r[e],null)}}},[])}(i.ref,(t=l,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof o||i.isPresent?m.cloneElement(l,{ref:s}):null};function G(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Z(e){return e?.animationName||"none"}Y.displayName="Presence";var J=0,Q=null;function ee(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var et=e.i(824627),er="right-scroll-bar-position",en="width-before-scroll-bar";function ea(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eo="u">typeof window?m.useLayoutEffect:m.useEffect,ei=new WeakMap,el=(void 0===n&&(n={}),(void 0===a&&(a=function(e){return e}),o=[],i=!1,l={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=a(e,i);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){i=!0;var t=[];if(o.length){var r=o;o=[],r.forEach(e),t=o}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),o={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,et.__assign)({async:!0,ssr:!1},n),l),es=function(){},ec=m.forwardRef(function(e,t){var r,n,a,o,i=m.useRef(null),l=m.useState({onScrollCapture:es,onWheelCapture:es,onTouchMoveCapture:es}),s=l[0],c=l[1],u=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,v=e.enabled,h=e.shards,b=e.sideCar,g=e.noRelative,x=e.noIsolation,y=e.inert,w=e.allowPinchZoom,j=e.as,E=e.gapMode,C=(0,et.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(r=[i,t],n=function(e){return r.forEach(function(t){return ea(t,e)})},(a=(0,m.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,o=a.facade,eo(function(){var e=ei.get(o);if(e){var t=new Set(e),n=new Set(r),a=o.current;t.forEach(function(e){n.has(e)||ea(e,null)}
1),n.forEach(function(e){t.has(e)||ea(e,a)})}ei.set(o,r)},[r]),o),k=(0,et.__assign)((0,et.__assign)({},C),s);return m.createElement(m.Fragment,null,v&&m.createElement(b,{sideCar:el,removeScrollBar:p,shards:h,noRelative:g,noIsolation:x,inert:y,setCallbacks:c,allowPinchZoom:!!w,lockRef:i,gapMode:E}),u?m.cloneElement(m.Children.only(d),(0,et.__assign)((0,et.__assign)({},k),{ref:N})):m.createElement(void 0===j?"div":j,(0,et.__assign)({},k,{className:f,ref:N}),d))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ec.classNames={fullWidth:en,zeroRight:er};var eu=function(e){var t=e.sideCar,r=(0,et.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return m.createElement(n,(0,et.__assign)({},r))};eu.isSideCarExport=!0;var ed=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ef=function(){var e=ed();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},em=function(){var e=ef();return function(t){return e(t.styles,t.dynamic),null}},ep={left:0,top:0,right:0,gap:0},ev=function(e){return parseInt(e||"",10)||0},eh=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[ev(r),ev(n),ev(a)]},eb=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return ep;var t=eh(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},eg=em(),ex="data-scroll-locked",ey=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(ex,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(er," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(en," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(er," .").concat(er," {\n right: 0 ").concat(n,";\n }\n \n .").concat(en," .").concat(en," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(ex,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},ew=function(){var e=parseInt(document.body.getAttribute(ex)||"0",10);return isFinite(e)?e:0},ej=function(){m.useEffect(function(){return document.body.setAttribute(ex,(ew()+1).toString()),function(){var e=ew()-1;e<=0?document.body.removeAttribute(ex):document.body.setAttribute(ex,e.toString())}},[])},eE=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;ej();var o=m.useMemo(function(){return eb(a)},[a]);return m.createElement(eg,{styles:ey(o,!t,a,r?"":"!important")})},eC=!1;if("u">typeof window)try{var eN=Object.defineProperty({},"passive",{get:function(){return eC=!0,!0}});window.addEventListener("test",eN,eN),window.removeEventListener("test",eN,eN)}catch(e){eC=!1}var ek=!!eC&&{passive:!1},eS=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eT=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eR(e,n)){var a=eL(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},eR=function(e,t){return"v"===e?eS(t,"overflowY"):eS(t,"overflowX")},eL=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eP=function(e,t,r,n,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=i*n,s=r.target,c=t.contains(s),u=!1,d=l>0,f=0,m=0;do{if(!s)break;var p=eL(e,s),v=p[0],h=p[1]-p[2]-i*v;(v||h)&&eR(e,s)&&(f+=h,m+=v);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(a&&1>Math.abs(f)||!a&&l>f)?u=!0:!d&&(a&&1>Math.abs(m)||!a&&-l>m)&&(u=!0),u},e_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eD=function(e){return[e.deltaX,e.deltaY]},eM=function(e){return e&&"current"in e?e.current:e},eO=0,eI=[];let eA=(s=function(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),a=m.useState(eO++)[0],o=m.useState(em)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,et.__spreadArray)([e.lockRef.current],(e.shards||[]).map(eM),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=e_(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),m=f&&f.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var p=eT(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=eT(d,u)),!p)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var v=n.current||a;return eP(v,t,e,"h"===v?s:c,!0)},[]),s=m.useCallback(function(e){if(eI.length&&eI[eI.length-1]===o){var r="deltaY"in e?eD(e):e_(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(i.current.shards||[]).map(eM).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=m.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=m.useCallback(function(e){r.current=e_(e),n.current=void 0},[]),d=m.useCallback(function(t){c(t.type,eD(t),t.target,l(t,e.lockRef.current))},[]),f=m.useCallback(function(t){c(t.type,e_(t),t.target,l(t,e.lockRef.current))},[]);m.useEffect(function(){return eI.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,ek),document.addEventListener("touchmove",s,ek),document.addEventListener("touchstart",u,ek),function(){eI=eI.filter(function(e){return e!==o}),document.removeEventListener("wheel",s,ek),document.removeEventListener("touchmove",s,ek),document.removeEventListener("touchstart",u,ek)}},[]);var p=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?m.createElement(eE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},el.useMedium(s),eu);var e$=m.forwardRef(function(e,t){return m.createElement(ec,(0,et.__assign)({},e,{ref:t,sideCar:eA}))});e$.classNames=ec.classNames;var eF=new WeakMap,eB=new WeakMap,ez={},eW=0,eq=function(e){return e&&(e.host||eq(e.parentNode))},eH=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=eq(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ez[r]||(ez[r]=new WeakMap);var o=ez[r],i=[],l=new Set,s=new Set(a),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(eF.get(e)||0)+1,c=(o.get(e)||0)+1;eF.set(e,s),o.set(e,c),i.push(e),1===s&&a&&eB.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),l.clear(),eW++,function(){i.forEach(function(e){var t=eF.get(e)-1,a=o.get(e)-1;eF.set(e,t),o.set(e,a),t||(eB.has(e)||e.removeAttribute(n),eB.delete(e)),a||e.removeAttribute(r)}),--eW||(eF=new WeakMap,eF=new WeakMap,eB=new WeakMap,ez={})}},eU=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),eH(n,a,r,"aria-hidden")):function(){return null}},eV="Dialog",[eK,eX]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>m.createContext(e));return function(r){let n=r?.[e]||t;return m.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=m.createContext(n);a.displayName=t+"Context";let o=r.length;r=[...r,n];let i=t=>{let{scope:r,children:n,...i}=t,l=r?.[e]?.[o]||a,s=m.useMemo(()=>i,Object.values(i));return(0,d.jsx)(l.Provider,{value:s,children:n})};return i.displayName=t+"Provider",[i,function(r,i,l={}){let{optional:s=!1}=l,c=i?.[e]?.[o]||a,u=m.useContext(c);if(u)return u;if(void 0!==n)return n;if(!s)throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(eV),[eY,eG]=eK(eV),eZ=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=m.useRef(null),s=m.useRef(null),[c,u]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,i]=function({defaultProp:e,onChange:t}){let[r,n]=m.useState(e),a=m.useRef(r),o=m.useRef(t);return w(()=>{o.current=t},[t]),m.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}({defaultProp:t,onChange:r}),l=void 0!==e,s=l?e:a;{let t=m.useRef(void 0!==e);m.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[s,m.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&i.current?.(r)}else o(t)},[l,e,o,i])]}({prop:n,defaultProp:a??!1,onChange:o,caller:eV});return(0,d.jsx)(eY,{scope:t,triggerRef:l,contentRef:s,contentId:y(),titleId:y(),descriptionId:y(),open:c,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(e=>!e),[u]),modal:i,children:r})};eZ.displayName=eV;var eJ="DialogTrigger";m.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,a=eG(eJ,r),o=h(t,a.triggerRef);return(0,d.jsx)(P.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":tl(a.open),...n,ref:o,onClick:p(e.onClick,a.onOpenToggle)})}).displayName=eJ;var eQ="DialogPortal",[e0,e1]=eK(eQ,{forceMount:void 0}),e2=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=eG(eQ,t);return(0,d.jsx)(e0,{scope:t,forceMount:r,children:m.Children.map(n,e=>(0,d.jsx)(Y,{present:r||o.open,children:(0,d.jsx)(X,{asChild:!0,container:a,children:e})}))})};e2.displayName=eQ;var e3="DialogOverlay",e5=m.forwardRef((e,t)=>{let r=e1(e3,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=eG(e3,e.__scopeDialog);return o.modal?(0,d.jsx)(Y,{present:n||o.open,children:(0,d.jsx)(e7,{...a,ref:t})}):null});e5.displayName=e3;var e4=E("DialogOverlay.RemoveScroll"),e7=m.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=eG(e3,r),o=h(t,function(){let e=m.useContext(M),[t,r]=m.useState(null);return m.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}());return(0,d.jsx)(e$,{as:e4,allowPinchZoom:!0,shards:[a.contentRef],children:(0,d.jsx)(P.div,{"data-state":tl(a.open),...n,ref:o,style:{pointerEvents:"auto",...n.style}})})}),e9="DialogContent",e6=m.forwardRef((e,t)=>{let r=e1(e9,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=eG(e9,e.__scopeDialog);return(0,d.jsx)(Y,{present:n||o.open,children:o.modal?(0,d.jsx)(e8,{...a,ref:t}):(0,d.jsx)(te,{...a,ref:t})})});e6.displayName=e9;var e8=m.forwardRef((e,t)=>{let r=eG(e9,e.__scopeDialog),n=m.useRef(null),a=h(t,r.contentRef,n);return m.useEffect(()=>{let e=n.current;if(e)return eU(e)},[]),(0,d.jsx)(tt,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:p(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:p(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:p(e.onFocusOutside,e=>e.preventDefault())})}),te=m.forwardRef((e,t)=>{let r=eG(e9,e.__scopeDialog),n=m.useRef(!1),a=m.useRef(!1);return(0,d.jsx)(tt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),tt=m.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=eG(e9,r);return m.useEffect(()=>{Q||(Q={start:ee(),end:ee()});let{start:e,end:t}=Q;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),J++,()=>{1===J&&(Q?.start.remove(),Q?.end.remove(),Q=null),J=Math.max(0,J-1)}},[]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(W,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,d.jsx)(O,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tl(l.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})}),tr="DialogTitle",tn=m.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=eG(tr,r);return(0,d.jsx)(P.h2,{id:a.titleId,...n,ref:t})});tn.displayName=tr;var ta="DialogDescription",to=m.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=eG(ta,r);return(0,d.jsx)(P.p,{id:a.descriptionId,...n,ref:t})});to.displayName=ta;var ti="DialogClose";function tl(e){return e?"open":"closed"}m.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=eG(ti,r);return(0,d.jsx)(P.button,{type:"button",...n,ref:t,onClick:p(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ti;let ts=m.default.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{}
1,openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),tc=()=>{let e=m.default.useContext(ts);if(!e)throw Error("useDrawerContext must be used within a Drawer.Root");return e};function tu(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function td(){return tf(/^iPhone/)||tf(/^iPad/)||tf(/^Mac/)&&navigator.maxTouchPoints>1}function tf(e){return"u">typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}
1[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let tm="u">typeof window?m.useLayoutEffect:m.useEffect;function tp(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}let tv="u">typeof document&&window.visualViewport;function th(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function tb(e){for(th(e)&&(e=e.parentElement);e&&!th(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let tg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),tx=0;function ty(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function tw(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=tb(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=n-r)}e=t.parentElement}}function tj(e){return e instanceof HTMLInputElement&&!tg.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function tE(...e){return m.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let tC=new WeakMap;function tN(e,t,r=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([t,r])=>{t.startsWith("--")?e.style.setProperty(t,r):(n[t]=e.style[t],e.style[t]=r)}),r||tC.set(e,n)}let tk=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function tS(e,t){if(!e)return null;let r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform,a=n.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[tk(t)?13:12]):(a=n.match(/^matrix\((.+)\)$/))?parseFloat(a[1].split(", ")[tk(t)?5:4]):null}function tT(e,t){if(!e)return()=>{};let r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}let tR=[.32,.72,0,1],tL="vaul-dragging";function tP(e){let t=m.default.useRef(e);return m.default.useEffect(()=>{t.current=e}),m.default.useMemo(()=>(...e)=>null==t.current?void 0:t.current.call(t,...e),[])}function t_({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,a]=function({defaultProp:e,onChange:t}){let r=m.default.useState(e),[n]=r,a=m.default.useRef(n),o=tP(t);return m.default.useEffect(()=>{a.current!==n&&(o(n),a.current=n)},[n,a,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,i=o?e:n,l=tP(r);return[i,m.default.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else a(t)},[o,e,a,l])]}let tD=()=>()=>{},tM=null,tO=m.default.forwardRef(function({...e},t){let{overlayRef:r,snapPoints:n,onRelease:a,shouldFade:o,isOpen:i,modal:l,shouldAnimate:s}=tc(),c=tE(t,r),u=n&&n.length>0;if(!l)return null;let d=m.default.useCallback(e=>a(e),[a]);return m.default.createElement(e5,{onMouseUp:d,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&u?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false","data-vaul-animate":(null==s?void 0:s.current)?"true":"false",...e})});tO.displayName="Drawer.Overlay";let tI=m.default.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:r,...n},a){let{drawerRef:o,onPress:i,onRelease:l,onDrag:s,keyboardIsOpen:c,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:v,snapPoints:h,container:b,handleOnly:g,shouldAnimate:x,autoFocus:y}=tc(),[w,j]=m.default.useState(!1),E=tE(a,o),C=m.default.useRef(null),N=m.default.useRef(null),k=m.default.useRef(!1),S=h&&h.length>0;function T(e){C.current=null,k.current=!1,l(e)}
1return!function(){let{direction:e,isOpen:t,shouldScaleBackground:r,setBackgroundColorOnScale:n,noBodyStyles:a}=tc(),o=m.default.useRef(null),i=(0,m.useMemo)(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-26)/window.innerWidth}m.default.useEffect(()=>{if(t&&r){o.current&&clearTimeout(o.current);let t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;!function(...e){}(n&&!a?tT(document.body,{background:"black"}):tD,tT(t,{transformOrigin:tk(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${tR.join(",")})`}));let r=tT(t,{borderRadius:"8px",overflow:"hidden",...tk(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{r(),o.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},500)}}},[t,r,i])}(),m.default.useEffect(()=>{S&&window.requestAnimationFrame(()=>{j(!0)})},[]),m.default.createElement(e6,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":w?"true":"false","data-vaul-snap-points":p&&S?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":(null==x?void 0:x.current)?"true":"false",...n,ref:E,style:u&&u.length>0?{"--snap-point-height":`${u[null!=d?d:0]}px`,...t}:t,onPointerDown:e=>{g||(null==n.onPointerDown||n.onPointerDown.call(n,e),C.current={x:e.pageX,y:e.pageY},i(e))},onOpenAutoFocus:e=>{null==r||r(e),y||e.preventDefault()},onPointerDownOutside:t=>{(null==e||e(t),!f||t.defaultPrevented)?t.preventDefault():c.current&&(c.current=!1)},onFocusOutside:e=>{if(!f)return void e.preventDefault()},onPointerMove:e=>{if(N.current=e,g||(null==n.onPointerMove||n.onPointerMove.call(n,e),!C.current))return;let t=e.pageY-C.current.y,r=e.pageX-C.current.x,a="touch"===e.pointerType?10:2;((e,t,r=0)=>{if(k.current)return!0;let n=Math.abs(e.y),a=Math.abs(e.x),o=a>n,i=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*i<0)&&a>=0&&a<=r)return o}else if(!(e.y*i<0)&&n>=0&&n<=r)return!o;return k.current=!0,!0})({x:r,y:t},v,a)?s(e):(Math.abs(r)>a||Math.abs(t)>a)&&(C.current=null)},onPointerUp:e=>{null==n.onPointerUp||n.onPointerUp.call(n,e),C.current=null,k.current=!1,l(e)},onPointerOut:e=>{null==n.onPointerOut||n.onPointerOut.call(n,e),T(N.current)},onContextMenu:e=>{null==n.onContextMenu||n.onContextMenu.call(n,e),N.current&&T(N.current)}})});tI.displayName="Drawer.Content";let tA=m.default.forwardRef(function({preventCycle:e=!1,children:t,...r},n){let{closeDrawer:a,isDragging:o,snapPoints:i,activeSnapPoint:l,setActiveSnapPoint:s,dismissible:c,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=tc(),v=m.default.useRef(null),h=m.default.useRef(!1);function b(){v.current&&window.clearTimeout(v.current),h.current=!1}return m.default.createElement("div",{onClick:function(){h.current?b():window.setTimeout(()=>{!function(){if(o||e||h.current)return b();if(b(),!i||0===i.length){c||a();return}if(l===i[i.length-1]&&c)return a();let t=i.findIndex(e=>e===l);-1===t||s(i[t+1])}()},120)},onPointerCancel:b,onPointerDown:e=>{u&&f(e),v.current=window.setTimeout(()=>{h.current=!0},250)},onPointerMove:e=>{u&&p(e)},ref:n,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...r},m.default.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});tA.displayName="Drawer.Handle";let t$=function({open:e,onOpenChange:r,children:n,onDrag:a,onRelease:o,snapPoints:i,shouldScaleBackground:l=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=.25,scrollLockTimeout:u=100,dismissible:d=!0,handleOnly:f=!1,fadeFromIndex:p=i&&i.length-1,activeSnapPoint:v,setActiveSnapPoint:h,fixed:b,modal:g=!0,onClose:x,nested:y,noBodyStyles:w=!1,direction:j="bottom",defaultOpen:E=!1,disablePreventScroll:C=!0,snapToSequentialPoint:N=!1,preventScrollRestoration:k=!1,repositionInputs:S=!0,onAnimationEnd:T,container:R,autoFocus:L=!1}){var P,_;let[D=!1,M]=t_({defaultProp:E,prop:e,onChange:e=>{null==r||r(e),e||y||ed(),setTimeout(()=>{null==T||T(e)},500),e&&!g&&"u">typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[O,I]=m.default.useState(!1),[A,$]=m.default.useState(!1),[F,B]=m.default.useState(!1),z=m.default.useRef(null),W=m.default.useRef(null),q=m.default.useRef(null),H=m.default.useRef(null),U=m.default.useRef(null),V=m.default.useRef(!1),K=m.default.useRef(null),X=m.default.useRef(0),Y=m.default.useRef(!1),G=m.default.useRef(!E),Z=m.default.useRef(0),J=m.default.useRef(null),Q=m.default.useRef((null==(P=J.current)?void 0:P.getBoundingClientRect().height)||0),ee=m.default.useRef((null==(_=J.current)?void 0:_.getBoundingClientRect().width)||0),et=m.default.useRef(0),er=m.default.useCallback(e=>
1{i&&e===el.length-1&&(W.current=new Date)},[]),{activeSnapPoint:en,activeSnapPointIndex:ea,setActiveSnapPoint:eo,onRelease:ei,snapPointsOffset:el,onDrag:es,shouldFade:ec,getPercentageDragged:eu}=function({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:r,drawerRef:n,overlayRef:a,fadeFromIndex:o,onSnapPointChange:i,direction:l="bottom",container:s,snapToSequentialPoint:c}){let[u,d]=t_({prop:e,defaultProp:null==r?void 0:r[0],onChange:t}),[f,p]=m.default.useState("u">typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);m.default.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let v=m.default.useMemo(()=>u===(null==r?void 0:r[r.length-1])||null,[r,u]),h=m.default.useMemo(()=>{var e;return null!=(e=null==r?void 0:r.findIndex(e=>e===u))?e:null},[r,u]),b=r&&r.length>0&&(o||0===o)&&!Number.isNaN(o)&&r[o]===u||!r,g=m.default.useMemo(()=>{var e;let t=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:"u">typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(e=null==r?void 0:r.map(e=>{let r="string"==typeof e,n=0;if(r&&(n=parseInt(e,10)),tk(l)){let a=r?n:f?e*t.height:0;return f?"bottom"===l?t.height-a:-t.height+a:a}let a=r?n:f?e*t.width:0;return f?"right"===l?t.width-a:-t.width+a:a}))?e:[]},[r,f,s]),x=m.default.useMemo(()=>null!==h?null==g?void 0:g[h]:null,[g,h]),y=m.default.useCallback(e=>{var t;let s=null!=(t=null==g?void 0:g.findIndex(t=>t===e))?t:null;i(s),tN(n.current,{transition:`transform 0.5s cubic-bezier(${tR.join(",")})`,transform:tk(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&s!==g.length-1&&void 0!==o&&s!==o&&s<o?tN(a.current,{transition:`opacity 0.5s cubic-bezier(${tR.join(",")})`,opacity:"0"}):tN(a.current,{transition:`opacity 0.5s cubic-bezier(${tR.join(",")})`,opacity:"1"}),d(null==r?void 0:r[Math.max(s,0)])},[n.current,r,g,o,a,d]);return m.default.useEffect(()=>{if(u||e){var t;let n=null!=(t=null==r?void 0:r.findIndex(t=>t===e||t===u))?t:-1;g&&-1!==n&&"number"==typeof g[n]&&y(g[n])}},[u,e,r,g,y]),{isLastSnapPoint:v,activeSnapPoint:u,shouldFade:b,getPercentageDragged:function(e,t){if(!r||"number"!=typeof h||!g||void 0===o)return null;let n=h===o-1;if(h>=o&&t)return 0;if(n&&!t)return 1;if(!b&&!n)return null;let a=n?h+1:h-1,i=e/Math.abs(n?g[a]-g[a-1]:g[a+1]-g[a]);return n?1-i:i},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:n,dismissible:i}){if(void 0===o)return;let s="bottom"===l||"right"===l?(null!=x?x:0)-e:(null!=x?x:0)+e,u=h===o-1,d=0===h,f=e>0;if(u&&tN(a.current,{transition:`opacity 0.5s cubic-bezier(${tR.join(",")})`}),!c&&n>2&&!f)return void(i?t():y(g[0]));if(!c&&n>2&&f&&g&&r)return void y(g[r.length-1]);let m=null==g?void 0:g.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),p=tk(l)?window.innerHeight:window.innerWidth;if(n>.4&&Math.abs(e)<.4*p){let e=f?1:-1;return e>0&&v&&r?void y(g[r.length-1]):void(d&&e<0&&i&&t(),null===h||y(g[h+e]))}y(m)},onDrag:function({draggedDistance:e}){if(null===x)return;let t="bottom"===l||"right"===l?x-e:x+e;("bottom"===l||"right"===l)&&t<g[g.length-1]||("top"===l||"left"===l)&&t>g[g.length-1]||tN(n.current,{transform:tk(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}({snapPoints:i,activeSnapPointProp:v,setActiveSnapPointProp:h,drawerRef:J,fadeFromIndex:p,overlayRef:z,onSnapPointChange:er,direction:j,container:R,snapToSequentialPoint:N});!function(e={}){let{isDisabled:r}=e;tm(()=>{if(!r){var e,n,a;let r,o,i,l,s,c,u;return 1==++tx&&td()&&(i=0,l=window.pageXOffset,s=window.pageYOffset,c=tp((e=document.documentElement,n="paddingRight",a=`${window.innerWidth-document.documentElement.clientWidth}px`,r=e.style[n],e.style[n]=a,()=>{e.style[n]=r})),window.scrollTo(0,0),u=tp(ty(document,"touchstart",e=>{((o=tb(e.target))!==document.documentElement||o!==document.body)&&(i=e.changedTouches[0].pageY)},{passive:!1,capture:!0}),ty(document,"touchmove",e=>{if(!o||o===document.documentElement||o===document.body)return void e.preventDefault();let t=e.changedTouches[0].pageY,r=o.scrollTop,n=o.scrollHeight-o.clientHeight;0!==n&&((r<=0&&t>i||r>=n&&t<i)&&e.preventDefault(),i=t)},{passive:!1,capture:!0}),ty(document,"touchend",e=>{let t=e.target;tj(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{passive:!1,capture:!0}),ty(document,"focus",e=>{let t=e.target;tj(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",tv&&(tv.height<window.innerHeight?requestAnimationFrame(()=>{tw(t)}):tv.addEventListener("resize",()=>tw(t),{once:!0}))}))},!0),ty(window,"scroll",()=>{window.scrollTo(0,0)})),t=()=>{c(),u(),window.scrollTo(l,s)}),()=>{0==--tx&&(null==t||t())}}},[r])}({isDisabled:!D||A||!g||F||!O||!S||!C});let{restorePositionSetting:ed}=function({isOpen:e,modal:t,nested:r,hasBeenOpened:n,preventScrollRestoration:a,noBodyStyles:o}){let[i,l]=m.default.useState(()=>"u">typeof window?window.location.href:""),s=m.default.useRef(0),c=m.default.useCallback(()=>
1{if(tu()&&null===tM&&e&&!o){tM={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-s.current}px`,left:`${-e}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&s.current>=t&&(document.body.style.top=`${-(s.current+e)}px`)}),300)}},[e]),u=m.default.useCallback(()=>{if(tu()&&null!==tM&&!o){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,tM),window.requestAnimationFrame(()=>{a&&i!==window.location.href?l(window.location.href):window.scrollTo(t,e)}),tM=null}},[i]);return m.default.useEffect(()=>{function e(){s.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),m.default.useEffect(()=>{if(t)return()=>{"u"<typeof document||document.querySelector("[data-vaul-drawer]")||u()}},[t,u]),m.default.useEffect(()=>{!r&&n&&(e?(window.matchMedia("(display-mode: standalone)").matches||c(),t||window.setTimeout(()=>{u()},500)):u())},[e,n,i,t,r,c,u]),{restorePositionSetting:u}}({isOpen:D,modal:g,nested:null!=y&&y,hasBeenOpened:O,preventScrollRestoration:k,noBodyStyles:w});function ef(){return(window.innerWidth-26)/window.innerWidth}function em(e,t){var r;let n=e,a=null==(r=window.getSelection())?void 0:r.toString(),o=J.current?tS(J.current,j):null,i=new Date;if("SELECT"===n.tagName||n.hasAttribute("data-vaul-no-drag")||n.closest("[data-vaul-no-drag]"))return!1;if("right"===j||"left"===j)return!0;if(W.current&&i.getTime()-W.current.getTime()<500)return!1;if(null!==o&&("bottom"===j?o>0:o<0))return!0;if(a&&a.length>0)return!1;if(U.current&&i.getTime()-U.current.getTime()<u&&0===o||t)return U.current=i,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(0!==n.scrollTop)return U.current=new Date,!1;if("dialog"===n.getAttribute("role"))break}n=n.parentNode}return!0}function ep(e){A&&J.current&&(J.current.classList.remove(tL),V.current=!1,$(!1),H.current=new Date),null==x||x(),e||M(!1),setTimeout(()=>{i&&eo(i[0])},500)}function ev(){if(!J.current)return;let e=document.querySelector("[data-vaul-drawer-wrapper]"),t=tS(J.current,j);tN(J.current,{transform:"translate3d(0, 0, 0)",transition:`transform 0.5s cubic-bezier(${tR.join(",")})`}),tN(z.current,{transition:`opacity 0.5s cubic-bezier(${tR.join(",")})`,opacity:"1"}),l&&t&&t>0&&D&&tN(e,{borderRadius:"8px",overflow:"hidden",...tk(j)?{transform:`scale(${ef()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ef()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${tR.join(",")})`},!0)}return m.default.useEffect(()=>{window.requestAnimationFrame(()=>{G.current=!0})},[]),m.default.useEffect(()=>{var e;function t(){if(J.current&&S&&(tj(document.activeElement)||Y.current)){var e;let t=(null==(e=window.visualViewport)?void 0:e.height)||0,r=window.innerHeight,n=r-t,a=J.current.getBoundingClientRect().height||0;et.current||(et.current=a);let o=J.current.getBoundingClientRect().top;if(Math.abs(Z.current-n)>60&&(Y.current=!Y.current),i&&i.length>0&&el&&ea&&(n+=el[ea]||0),Z.current=n,a>t||Y.current){let e=J.current.getBoundingClientRect().height,i=e;e>t&&(i=t-(a>.8*r?o:26)),b?J.current.style.height=`${e-Math.max(n,0)}px`:J.current.style.height=`${Math.max(i,t-o)}px`}else{let e;e=navigator.userAgent,"u">typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))||(J.current.style.height=`${et.current}px`)}i&&i.length>0&&!Y.current?J.current.style.bottom="0px":J.current.style.bottom=`${Math.max(n,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[ea,i,el]),m.default.useEffect(()=>(D&&(tN(document.documentElement,{scrollBehavior:"auto"}
1),W.current=new Date),()=>{!function(e,t){if(!e||!(e instanceof HTMLElement))return;let r=tC.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[D]),m.default.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[g]),m.default.createElement(eZ,{defaultOpen:E,onOpenChange:e=>{(d||e)&&(e?I(!0):ep(!0),M(e))},open:D},m.default.createElement(ts.Provider,{value:{activeSnapPoint:en,snapPoints:i,setActiveSnapPoint:eo,drawerRef:J,overlayRef:z,onOpenChange:r,onPress:function(e){var t,r;!d&&!i||(!J.current||J.current.contains(e.target))&&(Q.current=(null==(t=J.current)?void 0:t.getBoundingClientRect().height)||0,ee.current=(null==(r=J.current)?void 0:r.getBoundingClientRect().width)||0,$(!0),q.current=new Date,td()&&window.addEventListener("touchend",()=>V.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),X.current=tk(j)?e.pageY:e.pageX)},onRelease:function(e){var t,r;if(!A||!J.current)return;J.current.classList.remove(tL),V.current=!1,$(!1),H.current=new Date;let n=tS(J.current,j);
1if(!e||!em(e.target,!1)||!n||Number.isNaN(n)||null===q.current)return;let a=H.current.getTime()-q.current.getTime(),l=X.current-(tk(j)?e.pageY:e.pageX),s=Math.abs(l)/a;if(s>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),i){ei({draggedDistance:l*("bottom"===j||"right"===j?1:-1),closeDrawer:ep,velocity:s,dismissible:d}),null==o||o(e,!0);return}if("bottom"===j||"right"===j?l>0:l<0){ev(),null==o||o(e,!0);return}if(s>.4){ep(),null==o||o(e,!1);return}let u=Math.min(null!=(t=J.current.getBoundingClientRect().height)?t:0,window.innerHeight),f=Math.min(null!=(r=J.current.getBoundingClientRect().width)?r:0,window.innerWidth);if(Math.abs(n)>=("left"===j||"right"===j?f:u)*c){ep(),null==o||o(e,!1);return}null==o||o(e,!0),ev()},onDrag:function(e){if(J.current&&A){let t="bottom"===j||"right"===j?1:-1,r=(X.current-(tk(j)?e.pageY:e.pageX))*t,n=r>0,o=i&&!d&&!n;if(o&&0===ea)return;let s=Math.abs(r),c=document.querySelector("[data-vaul-drawer-wrapper]"),u=s/("bottom"===j||"top"===j?Q.current:ee.current),f=eu(s,n);if(null!==f&&(u=f),o&&u>=1||!V.current&&!em(e.target,n))return;if(J.current.classList.add(tL),V.current=!0,tN(J.current,{transition:"none"}),tN(z.current,{transition:"none"}),i&&es({draggedDistance:r}),n&&!i){let e=Math.min(-(8*(Math.log(r+1)-2)*1),0)*t;tN(J.current,{transform:tk(j)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`});return}let m=1-u;if((ec||p&&ea===p-1)&&(null==a||a(e,u),tN(z.current,{opacity:`${m}`,transition:"none"},!0)),c&&z.current&&l){let e=Math.min(ef()+u*(1-ef()),1),t=8-8*u,r=Math.max(0,14-14*u);tN(c,{borderRadius:`${t}px`,transform:tk(j)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!i){let e=s*t;tN(J.current,{transform:tk(j)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:d,shouldAnimate:G,handleOnly:f,isOpen:D,isDragging:A,shouldFade:ec,closeDrawer:ep,onNestedDrag:function(e,t){if(t<0)return;let r=(window.innerWidth-16)/window.innerWidth,n=r+t*(1-r),a=-16+16*t;tN(J.current,{transform:tk(j)?`scale(${n}) translate3d(0, ${a}px, 0)`:`scale(${n}) translate3d(${a}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,r=e?-16:0;K.current&&window.clearTimeout(K.current),tN(J.current,{transition:`transform 0.5s cubic-bezier(${tR.join(",")})`,transform:tk(j)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&J.current&&(K.current=setTimeout(()=>{let e=tS(J.current,j);tN(J.current,{transition:"none",transform:tk(j)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){let r=tk(j)?window.innerHeight:window.innerWidth,n=t?(r-16)/r:1,a=t?-16:0;t&&tN(J.current,{transition:`transform 0.5s cubic-bezier(${tR.join(",")})`,transform:tk(j)?`scale(${n}) translate3d(0, ${a}px, 0)`:`scale(${n}) translate3d(${a}px, 0, 0)`})},keyboardIsOpen:Y,modal:g,snapPointsOffset:el,activeSnapPointIndex:ea,direction:j,shouldScaleBackground:l,setBackgroundColorOnScale:s,noBodyStyles:w,container:R,autoFocus:L}},n))},tF=function(e){let t=tc(),{container:r=t.container,...n}=e;return m.default.createElement(e2,{container:r,...n})};var tB=e.i(929365);e.s(["Drawer",0,function(e){let t,r,n,a,o,i,l,s,c=(0,f.c)(22),{open:u,onClose:m,title:p,description:v,ariaLabel:h,children:b,className:g,portalContainer:x}=e;c[0]!==m?(t=e=>{e||m()},c[0]=m,c[1]=t):t=c[1];let y=x??void 0;c[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,d.jsx)(tO,{className:"fixed inset-0 z-50 bg-[color-mix(in_srgb,var(--shadow-color)_32%,transparent)] backdrop-blur-[2px]"}),c[2]=r):r=c[2];let w=h??("string"==typeof p?p:void 0);return c[3]!==g?(n=(0,tB.cn)("material-modal fixed inset-x-0 bottom-0 z-50 flex max-h-[92dvh] flex-col rounded-t-[var(--radius-lg)] border-x-0! border-b-0! outline-none",g),c[3]=g,c[4]=n):n=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,d.jsx)(tA,{className:"mt-2.5 shrink-0 !bg-[color-mix(in_srgb,var(--muted)_38%,transparent)]"}),c[5]=a):a=c[5],c[6]!==h||c[7]!==v||c[8]!==p?(o=p||v?(0,d.jsxs)("header",{className:"border-b border-[var(--border-soft)] px-5 pb-4 pt-3",children:[p?(0,d.jsx)(tn,{className:"heading-16 font-serif text-[var(--foreground)]",children:p}):(0,d.jsx)(tn,{className:"sr-only",children:h??"Drawer"}),v?(0,d.jsx)(to,{className:"copy-14 mt-1 text-[var(--muted)]",children:v}):null]}):(0,d.jsx)(tn,{className:"sr-only",children:h??"Drawer"}),c[6]=h,c[7]=v,c[8]=p,c[9]=o):o=c[9],c[10]!==b?(i=(0,d.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-4 pb-[max(1rem,env(safe-area-inset-bottom))]",children:b}),c[10]=b,c[11]=i):i=c[11],c[12]!==w||c[13]!==n||c[14]!==o||c[15]!==i?(l=(0,d.jsxs)(tF,{children:[r,(0,d.jsxs)(tI,{"aria-label":w,className:n,children:[a,o,i]})]}),c[12]=w,c[13]=n,c[14]=o,c[15]=i,c[16]=l):l=c[16],c[17]!==u||c[18]!==t||c[19]!==y||c[20]!==l?(s=(0,d.jsx)(t$,{open:u,onOpenChange:t,container:y,children:l}),c[17]=u,c[18]=t,c[19]=y,c[20]=l,c[21]=s):s=c[21],s}],85130)},711601,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(929365);e.s(["FieldError",0,function(e){let a,o,i,l,s,c,u,d=(0,r.c)(14);d[0]!==e?({className:o,children:a,announce:l,...i}=e,d[0]=e,d[1]=a,d[2]=o,d[3]=i,d[4]=l):(a=d[1],o=d[2],i=d[3],l=d[4]);let f=void 0===l||l;return null==a||!1===a||""===a?null:(d[5]!==f?(s=f?{role:"alert"}:{},d[5]=f,d[6]=s):s=d[6],d[7]!==o?(c=(0,n.cn)("copy-13 text-[var(--danger)]",o),d[7]=o,d[8]=c):c=d[8],d[9]!==a||d[10]!==i||d[11]!==s||d[12]!==c?(u=(0,t.jsx)("p",{...s,className:c,...i,children:a}),d[9]=a,d[10]=i,d[11]=s,d[12]=c,d[13]=u):u=d[13],u)}])},332861,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(985902),o=e.i(929365),i=e.i(465986);let l={xs:"h-7 w-7",sm:"h-8 w-8",md:"h-10 w-10"},s=n.forwardRef(function(e,n){let s,c,u,d,f,m,p,v,h,b,g,x,y,w,j=(0,r.c)(34);j[0]!==e?({label:u,icon:c,size:m,variant:p,loading:d,title:b,tooltip:v,type:h,className:s,...f}=e,j[0]=e,j[1]=s,j[2]=c,j[3]=u,j[4]=d,j[5]=f,j[6]=m,j[7]=p,j[8]=v,j[9]=h,j[10]=b):(s=j[1],c=j[2],u=j[3],d=j[4],f=j[5],m=j[6],p=j[7],v=j[8],h=j[9],b=j[10]);let E=void 0===m?"sm":m,C=void 0===p?"ghost":p,N=void 0===v||v,k=void 0===h?"button":h,S=b??u,T=!!(f.disabled||d),R=!!f["aria-haspopup"]&&"false"!==f["aria-haspopup"]&&"true"===String(f["aria-expanded"]),L=T||!N,P=S||null,_=S!==u,D=L||R,M="md"===E?"md":"sm",O=L&&S?S:void 0,I=void 0===d?void 0:null,A=l[E],$="ghost"===C?"aria-pressed:bg-[var(--selection-fill)] aria-pressed:text-[var(--foreground)]":null;return j[11]!==s||j[12]!==A||j[13]!==$?(g=(0,o.cn)("shrink-0 px-0 [@media(pointer:coarse)]:h-11 [@media(pointer:coarse)]:w-11",A,$,s),j[11]=s,j[12]=A,j[13]=$,j[14]=g):g=j[14],j[15]!==c?(x=(0,t.jsx)("span",{"aria-hidden":!0,
1className:"inline-flex items-center justify-center [&_svg]:h-4 [&_svg]:w-4",children:c}),j[15]=c,j[16]=x):x=j[16],j[17]!==u||j[18]!==d||j[19]!==f||j[20]!==n||j[21]!==I||j[22]!==g||j[23]!==x||j[24]!==M||j[25]!==O||j[26]!==k||j[27]!==C?(y=(0,t.jsx)(a.Button,{ref:n,type:k,variant:C,size:M,"aria-label":u,title:O,loading:d,loadingLabel:I,className:g,...f,children:x}),j[17]=u,j[18]=d,j[19]=f,j[20]=n,j[21]=I,j[22]=g,j[23]=x,j[24]=M,j[25]=O,j[26]=k,j[27]=C,j[28]=y):y=j[28],j[29]!==y||j[30]!==P||j[31]!==_||j[32]!==D?(w=(0,t.jsx)(i.Tooltip,{content:P,describe:_,disabled:D,children:y}),j[29]=y,j[30]=P,j[31]=_,j[32]=D,j[33]=w):w=j[33],w});e.s(["IconButton",0,s])},610012,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);let o="copy-14 h-10 w-full bg-[var(--surface)] border border-[var(--border-soft)] rounded-[var(--radius-md)] px-3 py-2 text-[var(--foreground)] placeholder:text-[var(--muted-soft)] transition-[border-color,box-shadow,background-color] duration-[var(--duration-base)] ease-[var(--ease-out)] focus:outline-none focus:border-[var(--selection-border)] focus:shadow-[var(--shadow-focus)] disabled:opacity-60 [@media(pointer:coarse)]:h-11",i="border-[var(--danger)] focus:border-[var(--danger)] focus:shadow-[var(--shadow-focus-danger)]",l={sm:"copy-13 !h-8 px-2.5 py-1 [@media(pointer:coarse)]:!h-11",md:"copy-14 !h-10 px-3 py-2 [@media(pointer:coarse)]:!h-11"},s=n.forwardRef(function(e,n){let s,c,u,d,f,m,p=(0,r.c)(13);p[0]!==e?({className:s,invalid:c,size:d,...u}=e,p[0]=e,p[1]=s,p[2]=c,p[3]=u,p[4]=d):(s=p[1],c=p[2],u=p[3],d=p[4]);let v=l[void 0===d?"md":d],h=c&&i;return p[5]!==s||p[6]!==v||p[7]!==h?(f=(0,a.cn)(o,v,h,s),p[5]=s,p[6]=v,p[7]=h,p[8]=f):f=p[8],p[9]!==u||p[10]!==n||p[11]!==f?(m=(0,t.jsx)("input",{ref:n,className:f,...u}),p[9]=u,p[10]=n,p[11]=f,p[12]=m):m=p[12],m}),c=n.forwardRef(function(e,n){let l,s,c,u,d,f=(0,r.c)(11);f[0]!==e?({className:l,invalid:s,...c}=e,f[0]=e,f[1]=l,f[2]=s,f[3]=c):(l=f[1],s=f[2],c=f[3]);let m=s&&i;return f[4]!==l||f[5]!==m?(u=(0,a.cn)(o,"!h-auto min-h-[5rem] resize-y",m,l),f[4]=l,f[5]=m,f[6]=u):u=f[6],f[7]!==c||f[8]!==n||f[9]!==u?(d=(0,t.jsx)("textarea",{ref:n,className:u,...c}),f[7]=c,f[8]=n,f[9]=u,f[10]=d):d=f[10],d});function u(e){return"string"!=typeof e||e.trim().length>0}function d(e){return n.isValidElement(e)}e.s(["FieldLabel",0,function(e){let o,i,l,s,c,f,m,p,v,h,b,g=(0,r.c)(22);
1if(g[0]!==e?({className:i,children:o,hint:l,...s}=e,g[0]=e,g[1]=o,g[2]=i,g[3]=l,g[4]=s):(o=g[1],i=g[2],l=g[3],s=g[4]),g[5]!==o){let e=n.Children.toArray(o),t=e.findIndex(d);c=t>=0?e.slice(0,t).filter(u):o,f=t>=0?e.slice(t):null,g[5]=o,g[6]=c,g[7]=f}else c=g[6],f=g[7];let x=f;return g[8]!==i?(m=(0,a.cn)("label-13 flex flex-col gap-1.5 text-[var(--muted)]",i),g[8]=i,g[9]=m):m=g[9],g[10]!==c?(p=(0,t.jsx)("span",{children:c}),g[10]=c,g[11]=p):p=g[11],g[12]!==l?(v=l?(0,t.jsx)("span",{className:"copy-12 text-[var(--muted-soft)]",children:l}):null,g[12]=l,g[13]=v):v=g[13],g[14]!==p||g[15]!==v?(h=(0,t.jsxs)("span",{className:"flex items-baseline justify-between gap-2",children:[p,v]}),g[14]=p,g[15]=v,g[16]=h):h=g[16],g[17]!==x||g[18]!==s||g[19]!==m||g[20]!==h?(b=(0,t.jsxs)("label",{className:m,...s,children:[h,x]}),g[17]=x,g[18]=s,g[19]=m,g[20]=h,g[21]=b):b=g[21],b},"Input",0,s,"Textarea",0,c,"baseFieldClasses",0,o,"invalidFieldClasses",0,i])},701070,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(979989),a=e.i(651093),o=e.i(90947),i=e.i(303350),l=e.i(985902),s=e.i(929365),c=e.i(83826);e.s(["LoadErrorState",0,function(e){let u,d,f,m,p,v,h,b,g,x,y=(0,r.c)(55),{error:w,onRetry:j,retrying:E,variant:C,title:N,headingLevel:k,secondaryAction:S,hint:T,className:R}=e,L=void 0!==E&&E,P=void 0===C?"panel":C;if(y[0]!==w)u="string"==typeof w?{message:w,code:null,hint:null,requestId:null,status:null,connectorId:null}:w instanceof a.AgentApiError?{message:w.message,code:w.code,hint:w.hint,requestId:w.requestId,status:w.status,connectorId:w.connectorId}:{message:w.message,code:null,hint:null,requestId:null,status:null,connectorId:null},d=(0,i.presentPublicError)(u,"Embrasure couldn't load this section."),y[0]=w,y[1]=u,y[2]=d;else u=y[1],d=y[2];let _=d,D=N??_.title,M=`h${void 0===k?3:k}`,O=T??_.hint,I=`/settings/credentials${u.connectorId?`?connector=${encodeURIComponent(u.connectorId)}`:""}`,A="row"===P,$=A?"link":"primary";y[3]!==I||y[4]!==$||y[5]!==j||y[6]!==_.action||y[7]!==_.actionLabel||y[8]!==_.retryable||y[9]!==L||y[10]!==A?(f="sign_in"===_.action?(0,t.jsx)("a",{href:"/login",className:(0,l.buttonClassName)({variant:$,size:"sm"}),children:"Sign in"}):"upgrade_plan"===_.action?(0,t.jsx)("a",{href:o.BILLING_SETTINGS_PATH,className:(0,l.buttonClassName)({variant:$,size:"sm"}),children:_.actionLabel}):"connect_source"===_.action||"open_source_setup"===_.action?(0,t.jsx)("a",{href:I,className:(0,l.buttonClassName)({variant:$,size:"sm"}),children:_.actionLabel}):j?(0,t.jsx)(l.Button,{type:"button",size:"sm",variant:A?"link":_.retryable?"primary":"secondary",loading:L,loadingLabel:"Retrying",onClick:j,children:"Retry"}):null,y[3]=I,y[4]=$,y[5]=j,y[6]=_.action,y[7]=_.actionLabel,y[8]=_.retryable,y[9]=L,y[10]=A,y[11]=f):f=y[11];let F=f;if(A){let e,r,a,o,i,l;y[12]!==R?(e=(0,s.cn)("flex min-h-8 min-w-0 items-center gap-2 px-1.5",R),y[12]=R,y[13]=e):e=y[13];let c=`${D} 2${_.message}`;return y[14]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(n.XmarkCircle,{className:"h-4 w-4 shrink-0 text-[color-mix(in_srgb,var(--danger)_82%,var(--foreground))]",strokeWidth:1.75,"aria-hidden":!0}),y[14]=r):r=y[14],y[15]!==_.message?(a=(0,t.jsxs)("span",{className:"sr-only",children:[". ",_.message]}),y[15]=_.message,y[16]=a):a=y[16],y[17]!==D||y[18]!==a?(o=(0,t.jsxs)("p",{className:"copy-13 min-w-0 flex-1 truncate text-[var(--muted)]",children:[D,a]}),y[17]=D,y[18]=a,y[19]=o):o=y[19],y[20]!==F?(i=F?(0,t.jsx)("span",{className:"shrink-0",children:F}):null,y[20]=F,y[21]=i):i=y[21],y[22]!==o||y[23]!==i||y[24]!==e||y[25]!==c?(l=(0,t.jsxs)("div",{role:"alert",className:e,title:c,children:[r,o,i]}),y[22]=o,y[23]=i,y[24]=e,y[25]=c,y[26]=l):l=y[26],l}if("inline"===P){let e,r;return y[27]!==F?(e=F?(0,t.jsx)("span",{className:"ml-2 inline-flex align-middle",children:F}):null,y[27]=F,y[28]=e):e=y[28],y[29]!==R||y[30]!==D||y[31]!==_.message||y[32]!==e?(r=(0,t.jsxs)(c.Notice,{tone:"danger",title:D,className:R,children:[_.message,e]}),y[29]=R,y[30]=D,y[31]=_.message,y[32]=e,y[33]=r):r=y[33],r}return y[34]!==R?(m=(0,s.cn)("flex flex-col items-center justify-center gap-3 rounded-[var(--radius-xl)] border border-dashed border-[color-mix(in_srgb,var(--danger)_32%,var(--border-soft))] bg-[var(--surface-deep)] px-6 py-10 text-center",R),y[34]=R,y[35]=m):m=y[35],y[36]!==M||y[37]!==D?(p=(0,t.jsx)(M,{className:"heading-16 max-w-md text-[var(--foreground)]",children:D}),y[36]=M,y[37]=D,y[38]=p):p=y[38],y[39]!==_.message?(v=(0,t.jsx)("p",{className:"copy-14 max-w-lg text-[var(--muted)]",children:_.message}),y[39]=_.message,y[40]=v):v=y[40],y[41]!==O?(h=O?(0,t.jsx)("p",{className:"copy-12 max-w-lg text-[var(--muted-soft)]",children:O}):null,y[41]=O,y[42]=h):h=y[42],y[43]!==u.requestId?(b=u.requestId?(0,t.jsxs)("details",{className:"copy-12 text-left text-[var(--muted-soft)]",children:[(0,t.jsx)("summary",{className:"label-12 cursor-pointer hover:text-[var(--foreground)]",children:"Details for support"}),(0,t.jsxs)("p",{className:"mono-12 mt-1 break-all",children:["Request: ",u.requestId]})]}):null,y[43]=u.requestId,y[44]=b):b=y[44],y[45]!==F||y[46]!==S?(g=F||S?(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center justify-center gap-2",children:[F,S]}):null,y[45]=F,y[46]=S,y[47]=g):g=y[47],y[48]!==b||y[49]!==g||y[50]!==m||y[51]!==
2p||y[52]!==v||y[53]!==h?(x=(0,t.jsxs)("div",{role:"alert",className:m,children:[p,v,h,b,g]}),y[48]=b,y[49]=g,y[50]=m,y[51]=p,y[52]=v,y[53]=h,y[54]=x):x=y[54],x}])},788142,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(781377),o=e.i(929365);let i={p:({children:e})=>(0,t.jsx)("p",{children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"font-semibold text-[var(--foreground)]",children:e}),a:({children:e,href:r})=>{if(!r||r.startsWith("streamdown:"))return(0,t.jsx)("span",{children:e});let n="string"==typeof r&&/^https?:\/\//i.test(r);return(0,t.jsx)("a",{href:r,target:n?"_blank":void 0,rel:n?"noreferrer":void 0,className:"text-[var(--link)] underline underline-offset-2 transition-colors hover:text-[var(--link-hover)]",children:e})},h1:({children:e})=>(0,t.jsx)("h3",{className:"heading-16 text-[var(--foreground)]",children:e}),h2:({children:e})=>(0,t.jsx)("h3",{className:"heading-16 text-[var(--foreground)]",children:e}),h3:({children:e})=>(0,t.jsx)("h4",{className:"heading-14 text-[var(--foreground)]",children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:"heading-14 text-[var(--foreground)]",children:e}),h5:({children:e})=>(0,t.jsx)("h5",{className:"label-14 text-[var(--foreground)]",children:e}),h6:({children:e})=>(0,t.jsx)("h6",{className:"label-14 text-[var(--foreground)]",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"list-disc space-y-1 pl-5 marker:text-[var(--muted-soft)]",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"list-decimal space-y-1 pl-5 marker:text-[var(--muted-soft)]",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"pl-1",children:e}),img:()=>null,blockquote:({children:e})=>(0,t.jsx)("blockquote",{className:"border-l-2 border-[var(--border)] pl-3 text-[var(--muted)]",children:e}),hr:()=>(0,t.jsx)("hr",{className:"border-[var(--separator)]"}),inlineCode:({children:e})=>(0,t.jsx)("code",{className:"mono-13 rounded-[var(--radius-sm)] bg-[var(--surface-strong)] px-1 py-0.5 text-[var(--foreground)]",children:e}),code:({children:e})=>(0,t.jsx)("pre",{className:"mono-12 overflow-x-auto rounded-[var(--radius-md)] bg-[var(--surface-strong)] px-3 py-2 text-[var(--foreground)]",children:(0,t.jsx)("code",{children:e})}),table:({children:e})=>(0,t.jsx)("div",{className:"overflow-x-auto rounded-[var(--radius-md)] border border-[var(--border-soft)]",children:(0,t.jsx)("table",{className:"copy-13 w-full border-collapse text-left tabular-nums",children:e})}),thead:({children:e})=>(0,t.jsx)("thead",{className:"bg-[var(--surface-strong)]",children:e}),th:({children:e})=>(0,t.jsx)("th",{className:"label-12 whitespace-nowrap px-3 py-2 text-[var(--muted)]",children:e}),td:({children:e})=>(0,t.jsx)("td",{className:"border-t border-[var(--separator)] px-3 py-1.5 align-top",children:e})},l={enabled:!1},s={animation:"fadeIn",duration:220,sep:"word"},c=n.memo(function(e){let n,c,u=(0,r.c)(7),{children:d,streaming:f,className:m}=e,p=void 0!==f&&f;u[0]!==m?(n=(0,o.cn)("copy-14 min-w-0 space-y-3 break-words text-[var(--foreground)]",m),u[0]=m,u[1]=n):n=u[1];let v=p?"streaming":"static";return u[2]!==d||u[3]!==p||u[4]!==n||u[5]!==v?(c=(0,t.jsx)(a.D,{className:n,components:i,controls:!1,linkSafety:l,mode:v,isAnimating:p,animated:s,children:d}),u[2]=d,u[3]=p,u[4]=n,u[5]=v,u[6]=c):c=u[6],c});e.s(["Message",0,function(e){let n,a,i,l,s,c=(0,r.c)(11);c[0]!==e?({from:a,className:n,...i}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=i):(n=c[1],a=c[2],i=c[3]);let u="user"===a?"items-end":"items-start";return c[4]!==n||c[5]!==u?(l=(0,o.cn)("group/message flex w-full min-w-0 flex-col gap-2",u,n),c[4]=n,c[5]=u,c[6]=l):l=c[6],c[7]!==a||c[8]!==i||c[9]!==l?(s=(0,t.jsx)("div",{"data-from":a,className:l,...i}),c[7]=a,c[8]=i,c[9]=l,c[10]=s):s=c[10],s},"MessageActions",0,function(e){let n,a,i,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(i=(0,o.cn)("-ml-2 flex flex-wrap items-center gap-1",n),s[3]=n,s[4]=i):i=s[4],s[5]!==a||s[6]!==i?(l=(0,t.jsx)("div",{className:i,...a}),s[5]=a,s[6]=i,s[7]=l):l=s[7],l},"MessageContent",0,function(e){let n,a,i,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(i=(0,o.cn)("copy-14 flex min-w-0 flex-col gap-3 text-[var(--foreground)]","group-data-[from=user]/message:max-w-[85%] group-data-[from=user]/message:whitespace-pre-wrap group-data-[from=user]/message:break-words group-data-[from=user]/message:rounded-[var(--radius-lg)] group-data-[from=user]/message:bg-[var(--surface-strong)] group-data-[from=user]/message:px-3.5 group-data-[from=user]/message:py-2.5","group-data-[from=assistant]/message:w-full",n),s[3]=n,s[4]=i):i=s[4],s[5]!==a||s[6]!==i?(l=(0,t.jsx)("div",{className:i,...a}),s[5]=a,s[6]=i,s[7]=l):l=s[7],l},"MessageResponse",0,c],788142)},885391,117687,e=>{"use strict";e.s(["isModalBackdropClick",0,function(e){if(e.target!==e.currentTarget)return!1;if("dialog"===e.currentTarget.tagName.toLowerCase()){let t=e.currentTarget.getBoundingClientRect();return e.clientX<t.left||e.clientX>
2t.right||e.clientY<t.top||e.clientY>t.bottom}return!0}],885391);var t=e.i(821770);function r(e){return Array.from(e.querySelectorAll('a[href],button:not([disabled]),input:not([disabled]),textarea:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden"))}e.s(["useModalFocus",0,function({containerRef:e,mounted:n,onClose:a,initialFocusRef:o,modal:i=!0}){let l=t.useRef(null),s=t.useRef(a);t.useEffect(()=>{s.current=a},[a]),t.useEffect(()=>{if(!n)return;let t=e.current;if(!t)return;l.current=document.activeElement instanceof HTMLElement?document.activeElement:null;let a=document.body.style.overflow;i&&(document.body.style.overflow="hidden");let c=window.requestAnimationFrame(()=>{let e=r(t)[0];(o?.current??e??t).focus()}),u=e=>{if("Escape"===e.key){if(!i&&(e.defaultPrevented||e.target instanceof Element&&e.target.closest('[role="listbox"], [role="menu"], [aria-modal="true"]')))return;s.current();return}if("Tab"!==e.key||!i)return;let n=r(t);if(0===n.length){t.focus(),e.preventDefault();return}let a=n[0],o=n[n.length-1];t.contains(document.activeElement)?e.shiftKey&&document.activeElement===a?(o.focus(),e.preventDefault()):e.shiftKey||document.activeElement!==o||(a.focus(),e.preventDefault()):((e.shiftKey?o:a).focus(),e.preventDefault())};return document.addEventListener("keydown",u),()=>{window.cancelAnimationFrame(c),document.removeEventListener("keydown",u),i&&(document.body.style.overflow=a);let e=document.activeElement;(!e||e===document.body||t.contains(e))&&l.current?.isConnected&&l.current.focus()}},[e,o,n,i])}],117687)},705912,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);function o(e){let t=e.value.length;(e.selectionStart!==t||e.selectionEnd!==t)&&e.setSelectionRange(t,t)}let i=n.forwardRef(function(e,n){let i,l,s,c,u,d,f,m,p,v,h,b,g,x,y,w,j,E=(0,r.c)(46);E[0]!==e?({value:v,onChange:c,onComplete:u,length:p,invalid:s,disabled:l,className:i,onFocus:d,onSelect:f,...m}=e,E[0]=e,E[1]=i,E[2]=l,E[3]=s,E[4]=c,E[5]=u,E[6]=d,E[7]=f,E[8]=m,E[9]=p,E[10]=v):(i=E[1],l=E[2],s=E[3],c=E[4],u=E[5],d=E[6],f=E[7],m=E[8],p=E[9],v=E[10]);let C=void 0===p?6:p,N=Math.min(v.length,C-1),k=l&&"opacity-60";E[11]!==i||E[12]!==k?(h=(0,a.cn)("group relative flex w-full gap-2",k,i),E[11]=i,E[12]=k,E[13]=h):h=E[13];let S=`\\d{${C}}`,T=s||void 0;if(E[14]!==C||E[15]!==c||E[16]!==u||E[17]!==v?(b=e=>{let t=e.target.value.replace(/\D/g,"").slice(0,C);c(t),t.length===C&&t!==v&&u?.(t)},E[14]=C,E[15]=c,E[16]=u,E[17]=v,E[18]=b):b=E[18],E[19]!==d?(g=e=>{o(e.currentTarget),d?.(e)},E[19]=d,E[20]=g):g=E[20],E[21]!==f?(x=e=>{o(e.currentTarget),f?.(e)},E[21]=f,E[22]=x):x=E[22],E[23]!==l||E[24]!==m||E[25]!==n||E[26]!==S||E[27]!==T||E[28]!==b||E[29]!==g||E[30]!==x||E[31]!==v?(y=(0,t.jsx)("input",{ref:n,type:"text",inputMode:"numeric",autoComplete:"one-time-code",pattern:S,spellCheck:!1,value:v,disabled:l,"aria-invalid":T,className:"peer copy-16 absolute inset-0 z-10 h-full w-full cursor-text border-0 bg-transparent text-transparent caret-transparent !shadow-none !outline-none selection:bg-transparent disabled:cursor-not-allowed",onChange:b,onFocus:g,onSelect:x,...m}),E[23]=l,E[24]=m,E[25]=n,E[26]=S,E[27]=T,E[28]=b,E[29]=g,E[30]=x,E[31]=v,E[32]=y):y=E[32],E[33]!==s||E[34]!==C||E[35]!==N||E[36]!==v){let e;E[38]!==s||E[39]!==N||E[40]!==v?(e=(e,r)=>{let n=v[r],o=r===N;return(0,t.jsx)("div",{"aria-hidden":!0,"data-next":o||void 0,className:(0,a.cn)("heading-20 flex h-12 min-w-0 flex-1 items-center justify-center rounded-[var(--radius-md)] border bg-[var(--surface)] tabular-nums text-[var(--foreground)] transition-[border-color,box-shadow] duration-[var(--duration-base)] ease-[var(--ease-out)] [@media(pointer:coarse)]:h-14",s?"border-[var(--danger)] peer-focus:data-[next]:shadow-[var(--shadow-focus-danger)]":"border-[var(--border-soft)] peer-focus:data-[next]:border-[var(--selection-border)] peer-focus:data-[next]:shadow-[var(--shadow-focus)]"),children:n??(o?(0,t.jsx)("span",{className:"hidden h-5 w-px bg-[var(--foreground)] group-has-[input:focus]:block motion-safe:animate-[caret_
21s_steps(1)_infinite]"}):null)},r)},E[38]=s,E[39]=N,E[40]=v,E[41]=e):e=E[41],w=Array.from({length:C},e),E[33]=s,E[34]=C,E[35]=N,E[36]=v,E[37]=w}else w=E[37];return E[42]!==w||E[43]!==h||E[44]!==y?(j=(0,t.jsxs)("div",{"data-slot":"otp-input",className:h,children:[y,w]}),E[42]=w,E[43]=h,E[44]=y,E[45]=j):j=E[45],j});e.s(["OtpInput",0,i])},359251,e=>{"use strict";var t=e.i(397487),r=e.i(821770),n=e.i(701070);class a extends r.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){console.error(`Panel "${this.props.label}" crashed`,e)}render(){return this.state.error?(0,t.jsx)(n.LoadErrorState,{title:`${this.props.label} stopped rendering`,error:this.state.error,onRetry:()=>this.setState({error:null})}):this.props.children}}e.s(["PanelErrorBoundary",0,a])},83995,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(494261),a=e.i(985902);e.s(["PendingSubmitButton",0,function(e){let o,i,l,s=(0,r.c)(7);s[0]!==e?({children:o,...i}=e,s[0]=e,s[1]=o,s[2]=i):(o=s[1],i=s[2]);let{pending:c}=(0,n.useFormStatus)();return s[3]!==o||s[4]!==c||s[5]!==i?(l=(0,t.jsx)(a.Button,{...i,type:"submit",loading:c,children:o}),s[3]=o,s[4]=c,s[5]=i,s[6]=l):l=s[6],l}])},337837,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(15241),o=e.i(278928),i=e.i(136783),l=e.i(929365);let s=n.createContext(null);function c(){let e=n.useContext(s);if(!e)throw Error("Popover compound components must render inside <Popover>");return e}let u=n.forwardRef(function({asChild:e=!0,children:r},o){let i=c(),l=r.props.ref,s=(0,a.useMergeRefs)([i.refs.setReference,o,l??null]);if(!e)return(0,t.jsx)("button",{ref:s,type:"button","data-state":i.open?"open":"closed",...i.getReferenceProps(),children:r});let u=i.getReferenceProps({...r.props,ref:s});return n.cloneElement(r,{...u,"data-state":i.open?"open":"closed"})}),d=n.forwardRef(function(e,n){let o,i,s,u,d,f,m,p,v,h,b,g,x,y,w,j,E=(0,r.c)(43);E[0]!==e?({className:s,initialFocus:u,returnFocus:v,ariaLabel:o,role:m,portalContainer:d,children:i,style:p,...f}=e,E[0]=e,E[1]=o,E[2]=i,E[3]=s,E[4]=u,E[5]=d,E[6]=f,E[7]=m,E[8]=p,E[9]=v):(o=E[1],i=E[2],s=E[3],u=E[4],d=E[5],f=E[6],m=E[7],p=E[8],v=E[9]);let C=void 0===v||v,N=c();E[10]!==N.refs.setFloating||E[11]!==n?(h=[N.refs.setFloating,n],E[10]=N.refs.setFloating,E[11]=n,E[12]=h):h=E[12];let k=(0,a.useMergeRefs)(h),S=N.open&&!N.isPositioned?"hidden":p?.visibility;E[13]!==N.floatingStyles||E[14]!==p||E[15]!==S?(b={...p,...N.floatingStyles,visibility:S},E[13]=N.floatingStyles,E[14]=p,E[15]=S,E[16]=b):b=E[16];let T=b;if(!N.transition.isMounted)return null;let R=d??void 0,L=N.context,P=N.modal,_=N.labelId,D=N.descriptionId,M="open"===N.transition.status?"open":"closed",O=N.context.placement;return E[17]!==s?(g=(0,l.cn)("ds-popover-panel material-menu z-50 min-w-[10rem] rounded-[var(--radius-md)] p-1 text-[var(--foreground)] outline-none",s),E[17]=s,E[18]=g):g=E[18],E[19]!==N||E[20]!==m?(x=N.getFloatingProps({role:m}),E[19]=N,E[20]=m,E[21]=x):x=E[21],E[22]!==o||E[23]!==i||E[24]!==N.context.placement||E[25]!==N.descriptionId||E[26]!==N.labelId||E[27]!==T||E[28]!==k||E[29]!==f||E[30]!==M||E[31]!==g||E[32]!==x?(y=(0,t.jsx)("div",{ref:k,style:T,"aria-labelledby":_,"aria-describedby":D,"aria-label":o,"data-state":M,"data-side":O,className:g,...x,...f,children:i}),E[22]=o,E[23]=i,E[24]=N.context.placement,E[25]=N.descriptionId,E[26]=N.labelId,E[27]=T,E[28]=k,E[29]=f,E[30]=M,E[31]=g,E[32]=x,E[33]=y):y=E[33],E[34]!==N.context||E[35]!==N.modal||E[36]!==u||E[37]!==C||E[38]!==y?(w=(0,t.jsx)(a.FloatingFocusManager,{context:L,modal:P,initialFocus:u,returnFocus:C,children:y}),E[34]=N.context,E[35]=N.modal,E[36]=u,E[37]=C,E[38]=y,E[39]=w):w=E[39],E[40]!==w||E[41]!==R?(j=(0,t.jsx)(a.FloatingPortal,{root:R,children:w}),E[40]=w,E[41]=R,E[42]=j):j=E[42],j});e.s(["Popover",0,function(e){let l,c,u,d,f,m,p,v,h,b,g,x,y=(0,r.c)(40),{open:w,defaultOpen:j,onOpenChange:E,side:C,offsetDistance:N,matchTriggerWidth:k,modal:S,outsidePress:T,children:R}=e,L=void 0===C?"bottom-start":C,P=void 0===N?6:N,_=void 0!==k&&k,D=void 0!==S&&S,[M,O]=n.useState(j??!1),I=void 0!==w,A=I?w:M;y[0]!==I||y[1]!==E?(l=e=>{I||O(e),E?.(e)},y[0]=I,y[1]=E,y[2]=l):l=y[2];let $=l,[F,B]=n.useState(void 0),[z,W]=n.useState(void 0),q=n.useRef(null);if(y[3]!==P?(c=(0,i.offset)(P),y[3]=P,y[4]=c):c=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,i.flip)({padding:8}),d=(0,i.shift)({padding:8}),y[5]=u,y[6]=d):(u=y[5],d=y[6]),y[7]!==_||y[8]!==c){if(f=[c,u,d],_){let e;y[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.size)({padding:8,apply(e){let{availableHeight:t,rects:r,elements:n}=e;Object.assign(n.floating.style,{minWidth:`${r.reference.width}px`}),n.floating.style.setProperty("--popover-available-height",`${Math.max(0,t)}px`)}}
2),y[10]=e):e=y[10],f.push(e)}y[7]=_,y[8]=c,y[9]=f}else f=y[9];let H=f;y[11]!==H||y[12]!==A||y[13]!==$||y[14]!==L?(m={open:A,onOpenChange:$,placement:L,middleware:H,transform:!1,whileElementsMounted:o.autoUpdate},y[11]=H,y[12]=A,y[13]=$,y[14]=L,y[15]=m):m=y[15];let U=(0,a.useFloating)(m),V=(0,a.useClick)(U.context);y[16]!==T?(p={outsidePress:T},y[16]=T,y[17]=p):p=y[17];let K=(0,a.useDismiss)(U.context,p);y[18]===Symbol.for("react.memo_cache_sentinel")?(v={role:"dialog"},y[18]=v):v=y[18];let X=(0,a.useRole)(U.context,v);y[19]!==V||y[20]!==K||y[21]!==X?(h=[V,K,X],y[19]=V,y[20]=K,y[21]=X,y[22]=h):h=y[22];let Y=(0,a.useInteractions)(h);y[23]===Symbol.for("react.memo_cache_sentinel")?(b={duration:160},y[23]=b):b=y[23];let G=(0,a.useTransitionStatus)(U.context,b);y[24]!==z||y[25]!==U.context||y[26]!==U.floatingStyles||y[27]!==U.isPositioned||y[28]!==U.refs||y[29]!==Y.getFloatingProps||y[30]!==Y.getReferenceProps||y[31]!==F||y[32]!==D||y[33]!==A||y[34]!==$||y[35]!==G?(g={open:A,setOpen:$,refs:U.refs,floatingStyles:U.floatingStyles,isPositioned:U.isPositioned,context:U.context,getReferenceProps:Y.getReferenceProps,getFloatingProps:Y.getFloatingProps,transition:G,labelId:F,setLabelId:B,descriptionId:z,setDescriptionId:W,modal:D,initialFocusRef:q},y[24]=z,y[25]=U.context,y[26]=U.floatingStyles,y[27]=U.isPositioned,y[28]=U.refs,y[29]=Y.getFloatingProps,y[30]=Y.getReferenceProps,y[31]=F,y[32]=D,y[33]=A,y[34]=$,y[35]=G,y[36]=g):g=y[36];let Z=g;return y[37]!==R||y[38]!==Z?(x=(0,t.jsx)(s.Provider,{value:Z,children:R}),y[37]=R,y[38]=Z,y[39]=x):x=y[39],x},"PopoverClose",0,function(e){let a,o,i=(0,r.c)(11),{children:l,asChild:s}=e,u=c(),d=l.props.onClick;i[0]!==u||i[1]!==d?(a=e=>{d?.(e),e.defaultPrevented||u.setOpen(!1)},i[0]=u,i[1]=d,i[2]=a):a=i[2];let f=a;if(!(void 0===s||s)){let e;return i[3]!==l||i[4]!==f?(e=(0,t.jsx)("button",{type:"button",onClick:f,children:l}),i[3]=l,i[4]=f,i[5]=e):e=i[5],e}if(i[6]!==l||i[7]!==f){let e;i[9]!==f?(e={onClick:f},i[9]=f,i[10]=e):e=i[10],o=n.cloneElement(l,e),i[6]=l,i[7]=f,i[8]=o}else o=i[8];return o},"PopoverContent",0,d,"PopoverTrigger",0,u,"usePopoverContext",0,c])},219464,763086,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(239477),o=Object.defineProperty,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(i)for(var r of i(t))s.call(t,r)&&c(e,r,t[r]);return e};let d=(0,n.forwardRef)((e,t)=>{let r=u(u({},n.useContext(a.IconoirContext)),e);return n.createElement("svg",u({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),n.createElement("path",{d:"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["ArrowUp",0,d],763086);var f=e.i(929365),m=e.i(332861);let p={md:"min-h-8 max-h-40",lg:"min-h-[4.5rem] max-h-56"},v=n.forwardRef(function(e,a){let o,i,l,s,c,u,v,h,b,g,x,y,w,j,E,C,N,k,S=(0,r.c)(58),{value:T,onValueChange:R,onSubmit:L,label:P,placeholder:_,disabled:D,busy:M,maxLength:O,size:I,hint:A,autoFocus:$,id:F,className:B}=e,z=void 0!==D&&D,W=void 0!==M&&M,q=n.useId(),H=F??q,U=`${H}-hint`;S[0]!==W||S[1]!==z||S[2]!==T?(o=!z&&!W&&T.trim().length>0,S[0]=W,S[1]=z,S[2]=T,S[3]=o):o=S[3];let V=o,K=n.useRef(null);S[4]!==a?(i=e=>{K.current=e,"function"==typeof a?a(e):a&&(a.current=e)},S[4]=a,S[5]=i):i=S[5];let X=i;S[6]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=K.current;!e||"u">typeof CSS&&CSS.supports("field-sizing","content")||(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},S[6]=l):l=S[6],S[7]!==T?(s=[T],S[7]=T,S[8]=s):s=S[8],n.useLayoutEffect(l,s),S[9]!==V||S[10]!==L||S[11]!==T?(c=()=>{let e=T.trim();V&&e&&L(e)},S[9]=V,S[10]=L,S[11]=T,S[12]=c):c=S[12];let Y=c;S[13]!==B?(u=(0,f.cn)("material-base flex flex-col gap-1 rounded-[var(--radius-lg)] py-2 pr-2 pl-3 transition-[border-color,box-shadow] duration-[var(--duration-base)] ease-[var(--ease-out)]","focus-within:border-[var(--selection-border)] focus-within:shadow-[var(--shadow-focus)]",B),S[13]=B,S[14]=u):u=S[14],S[15]!==Y?(v=e=>{e.preventDefault(),Y()},S[15]=Y,S[16]=v):v=S[16];let G=z&&"opacity-60";S[17]!==G?(h=(0,f.cn)("flex items-end gap-2",G),S[17]=G,S[18]=h):h=S[18],S[19]!==H||S[20]!==P?(b=(0,t.jsx)("label",{htmlFor:H,className:"sr-only",children:P}),S[19]=H,S[20]=P,S[21]=b):b=S[21];let Z=A?U:void 0,J=p[void 0===I?"md":I];S[22]!==J?(g=(0,f.cn)("prompt-input-textarea copy-14 min-w-0 flex-1 resize-none border-0 bg-transparent py-1.5 text-[var(--foreground)] [field-sizing:content] placeholder:text-[var(--muted-soft)] focus:outline-none disabled:cursor-not-allowed",J),S[22]=J,S[23]=g):g=S[23],S[24]!==R?(x=e=>R(e.target.value),S[24]=R,S[25]=x):x=S[25],S[26]!==Y?(y=e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||229===e.keyCode||(e.preventDefault(),Y())},S[26]=Y,S[27]=y):y=S[27],S[28]!==$||S[29]!==z||S[30]!==H||S[31]!==O||S[32]!==_||S[33]!==X||S[34]!==Z||S[35]!==g||S[36]!==x||S[37]!==y||S[38]!==T?(w=(0,t.jsx)("textarea",{ref:X,id:H,value:T,rows:1,maxLength:O,placeholder:_,disabled:z,autoFocus:$,autoComplete:"off","aria-describedby":Z,className:g,onChange:x,onKeyDown:y}),S[28]=$,S[29]=z,S[30]=H,S[31]=O,S[32]=_,S[33]=X,S[34]=Z,S[35]=g,S[36]=x,S[37]=y,S[38]=T,S[39]=w):w=S[39];let Q=W?"Waiting for the reply":"Send";S[40]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(d,{}),S[40]=j):j=S[40];let ee=V?"accent":"secondary",et=!V;return S[41]!==Q||S[42]!==ee||S[43]!==et?(E=(0,t.jsx)(m.IconButton,{type:"submit",label:Q,icon:j,variant:ee,disabled:et}),S[41]=Q,S[42]=ee,S[43]=et,S[44]=E):E=S[44],S[45]!==h||S[46]!==b||S[47]!==w||S[48]!==E?(C=(0,t.jsxs)("div",{className:h,children:[b,w,E]}),S[45]=h,S[46]=b,S[47]=w,S[48]=E,S[49]=C):C=S[49],S[50]!==A||S[51]!==U?(N=A?(0,t.jsx)("p",{id:U,className:"copy-12 text-[var(--muted)]",children:A}):null,S[50]=A,S[51]=U,S[52]=N):N=S[52],S[53]!==v||S[54]!==C||S[55]!==N||S[56]!==u?(k=(0,t.jsxs)("form",{className:u,onSubmit:v,children:[C,N]}),S[53]=v,S[54]=C,S[55]=N,S[56]=u,S[57]=k):k=S[57],k});e.s(["PromptInput",0,v],219464)},30964,755536,552453,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(239477),o=Object.defineProperty,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>
2{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(i)for(var r of i(t))s.call(t,r)&&c(e,r,t[r]);return e};let d=(0,n.forwardRef)((e,t)=>{let r=u(u({},n.useContext(a.IconoirContext)),e);return n.createElement("svg",u({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),n.createElement("path",{d:"M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.25 10L5.5 12L7.25 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["SidebarCollapse",0,d],755536);var f=Object.defineProperty,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,h=(e,t,r)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&h(e,r,t[r]);if(m)for(var r of m(t))v.call(t,r)&&h(e,r,t[r]);return e};let g=(0,n.forwardRef)((e,t)=>{let r=b(b({},n.useContext(a.IconoirContext)),e);return n.createElement("svg",b({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),n.createElement("path",{d:"M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M5.5 10L7.25 12L5.5 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["SidebarExpand",0,g],552453);var x=e.i(929365),y=e.i(332861);let w=n.createContext(null);function j(e){return/^[A-Z]{2}/.test(e)?e:e.charAt(0).toLocaleLowerCase()+e.slice(1)}e.s(["ResizableSidebar",0,function({label:e,collapsed:r,onCollapsedChange:a,storageKey:o,defaultWidth:i=320,minWidth:l=240,maxWidth:s=560,className:c,style:u,children:d,...f}){let m=n.useRef(null),[p,v]=n.useState(i),[h,b]=n.useState(!1),E=n.useRef(null);n.useEffect(()=>{let e=function(e){if(!e)return null;try{let t=Number(window.localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}(o);e&&v(Math.min(s,Math.max(l,e)))},[o,l,s]),n.useEffect(()=>()=>E.current?.(),[]);let C=n.useCallback(()=>{let e=m.current?.parentElement?.getBoundingClientRect().width??0,t=e>0?.6*e:s;return Math.max(l,Math.min(s,t))},[l,s]),N=n.useCallback(e=>{let t=Math.round(Math.min(C(),Math.max(l,e)));m.current?.style.setProperty("--sidebar-width",`${t}px`),v(t);if(o)try{window.localStorage.setItem(o,String(Math.round(t)))}catch{}},[l,o,C]),k=n.useMemo(()=>({collapsed:r,setCollapsed:a,label:e}),[r,a,e]);return(0,t.jsx)(w.Provider,{value:k,children:(0,t.jsxs)("aside",{ref:m,"aria-label":e,"data-collapsed":r?"":void 0,style:{...u,"--sidebar-width":`${p}px`},className:(0,x.cn)("relative min-w-0 lg:flex lg:min-h-0 lg:shrink-0 lg:flex-col",r?"lg:w-11":"lg:w-[var(--sidebar-width)] lg:max-w-[60%]",c),...f,children:[r?(0,t.jsx)("div",{className:"hidden p-2 lg:flex lg:h-full lg:flex-col lg:items-center",children:(0,t.jsx)(y.IconButton,{size:"xs",variant:"secondary",label:`Expand ${j(e)}`,icon:(0,t.jsx)(g,{strokeWidth:1.75}),"aria-expanded":!1,onClick:()=>a(!1)})}):null,(0,t.jsx)("div",{className:(0,x.cn)("flex h-full min-h-0 min-w-0 flex-col",r&&"lg:hidden"),children:d}),r?null:(0,t.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":`Resize ${j(e)}`,"aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":p,tabIndex:0,title:"Drag to resize · double-click to reset",onPointerDown:function(e){let t=m.current;if(0!==e.button||!t)return;e.preventDefault();let r=e.clientX,n=t.getBoundingClientRect().width,o=C(),i=n,s=document.documentElement,c=s.style.cursor,u=s.style.userSelect;function d(e){let s=n+e.clientX-r;if(s<.6*l){i=n,f(),a(!0);return}i=Math.min(o,Math.max(l,s)),t?.style.setProperty("--sidebar-width",`${i}px`)}function f(){window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),s.style.cursor=c,s.style.userSelect=u,E.current=null,b(!1),N(i)}s.style.cursor="col-resize",s.style.userSelect="none",b(!0),window.addEventListener("pointermove",d),window.addEventListener("pointerup",f),window.addEventListener("pointercancel",f),E.current=f},onKeyDown:function(e){let t=e.shiftKey?64:16,r={ArrowLeft:p-t,ArrowRight:p+t,Home:l,End:C()};if("Enter"===e.key){e.preventDefault(),a(!0);return}e.key in r&&(e.preventDefault(),N(r[e.key]))},onDoubleClick:()=>N(i),className:"group/resize absolute inset-y-0 -right-1.5 z-10 hidden w-3 cursor-col-resize touch-none outline-none lg:block",children:(0,t.jsx)("span",{"aria-hidden":!0,
2className:(0,x.cn)("absolute inset-y-0 left-1/2 w-0.5 -translate-x-1/2 transition-colors duration-[var(--duration-react)] ease-[var(--ease-out)]",h?"bg-[var(--selection-border)]":"bg-transparent group-hover/resize:bg-[var(--selection-border)] group-focus-visible/resize:bg-[var(--focus-ring)]")})})]})})},"ResizableSidebarCollapse",0,function(e){let a,o,i,l,s,c,u,f=(0,r.c)(16);f[0]!==e?({className:a,onClick:o,...i}=e,f[0]=e,f[1]=a,f[2]=o,f[3]=i):(a=f[1],o=f[2],i=f[3]);let m=n.useContext(w);if(!m)throw Error("ResizableSidebarCollapse must be rendered inside ResizableSidebar.");f[4]!==m.label?(l=j(m.label),f[4]=m.label,f[5]=l):l=f[5];let p=`Collapse ${l}`;f[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(d,{strokeWidth:1.75}),f[6]=s):s=f[6];let v=!m.collapsed;return f[7]!==m||f[8]!==o?(c=e=>{o?.(e),e.defaultPrevented||m.setCollapsed(!0)},f[7]=m,f[8]=o,f[9]=c):c=f[9],f[10]!==p||f[11]!==a||f[12]!==i||f[13]!==v||f[14]!==c?(u=(0,t.jsx)(y.IconButton,{size:"xs",label:p,icon:s,"aria-expanded":v,className:a,onClick:c,...i}),f[10]=p,f[11]=a,f[12]=i,f[13]=v,f[14]=c,f[15]=u):u=f[15],u}],30964)},421627,612302,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(239477),o=Object.defineProperty,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(i)for(var r of i(t))s.call(t,r)&&c(e,r,t[r]);return e};let d=(0,n.forwardRef)((e,t)=>{let r=u(u({},n.useContext(a.IconoirContext)),e);return n.createElement("svg",u({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),n.createElement("path",{d:"M21 12V10C21 7.23858 18.7614 5 16 5H8C5.23858 5 3 7.23858 3 10V10C3 12.7614 5.23858 15 8 15H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M20.1241 19.1185C20.6654 18.5758 21 17.827 21 17C21 15.3431 19.6569 14 18 14C16.3431 14 15 15.3431 15 17C15 18.6569 16.3431 20 18 20C18.8299 20 19.581 19.663 20.1241 19.1185ZM20.1241 19.1185L22 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["InputSearch",0,d],612302);var f=e.i(929365),m=e.i(610012);let p=n.forwardRef(function(e,n){let a,o,i,l,s,c,u,p,v,h,b=(0,r.c)(21);b[0]!==e?({containerClassName:o,className:a,size:l,trailing:s,...i}=e,b[0]=e,b[1]=a,b[2]=o,b[3]=i,b[4]=l,b[5]=s):(a=b[1],o=b[2],i=b[3],l=b[4],s=b[5]);let g=void 0===l?"md":l;b[6]!==o?(c=(0,f.cn)("relative min-w-0",o),b[6]=o,b[7]=c):c=b[7],b[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(d,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--muted-soft)]","aria-hidden":!0}),b[8]=u):u=b[8];let x=s?"pr-12":void 0;return b[9]!==a||b[10]!==x?(p=(0,f.cn)("pl-9",x,a),b[9]=a,b[10]=x,b[11]=p):p=b[11],b[12]!==i||b[13]!==n||b[14]!==g||b[15]!==p?(v=(0,t.jsx)(m.Input,{ref:n,size:g,className:p,...i}),b[12]=i,b[13]=n,b[14]=g,b[15]=p,b[16]=v):v=b[16],b[17]!==c||b[18]!==v||b[19]!==s?(h=(0,t.jsxs)("div",{className:c,children:[u,v,s]}),b[17]=c,b[18]=v,b[19]=s,b[20]=h):h=b[20],h});e.s(["SearchInput",0,p],421627)},541706,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(985902),a=e.i(929365);e.s(["SegmentedFilter",0,function(e){let o,i,l,s=(0,r.c)(20),{"aria-label":c,value:u,options:d,onValueChange:f,className:m,variant:p,disabled:v,loadingValue:h}=e,b=void 0!==v&&v,g=void 0===h?null:h,x="toolbar"===(void 0===p?"pill":p),y=x?"h-8 flex-nowrap gap-0.5 rounded-[var(--radius-md)] p-0.5 [@media(pointer:coarse)]:h-11":"flex-wrap gap-1 rounded-full p-1";if(s[0]!==m||s[1]!==y?(o=(0,a.cn)("flex w-fit max-w-full items-center border border-[var(--border-soft)] bg-[var(--surface)]",y,m),s[0]=m,s[1]=y,s[2]=o):o=s[2],s[3]!==b||s[4]!==g||s[5]!==f||s[6]!==d||s[7]!==x||s[8]!==u){let e;s[10]!==b||s[11]!==g||s[12]!==f||s[13]!==x||s[14]!==u?(e=e=>{let r=u===e.value,o=g===e.value,i=b||e.disabled||null!==g;return(0,t.jsx)("button",{type:"button","aria-pressed":r,"aria-busy":o||void 0,disabled:i,title:e.title,onClick:()=>f(e.value),className:(0,a.cn)("ds-focus-ring inline-flex shrink-0 items-center","transition-[background-color,color,box-shadow] duration-[var(--duration-react)] ease-[var(--ease-out)]","disabled:cursor-not-allowed disabled:opacity-60",x?"label-12 h-7 min-h-0 rounded-[calc(var(--radius-md)-0.125rem)] px-2.5 py-1 [@media(pointer:coarse)]:h-10":"label-13 min-h-11 rounded-full px-3 py-1.5 sm:min-h-8",r?x?"bg-[var(--surface-strong)] text-[var(--foreground)] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--selection-border)_22%,transparent)]":"bg-[var(--surface-strong)] text-[var(--foreground)] shadow-[inset_0_0_0_1px_var(--border-soft)]":(0,a.cn)("text-[var(--muted)] hover:text-[var(--foreground)]",x?"hover:bg-[var(--surface-strong)]":"hover:bg-[color-mix(in_srgb,var(--surface-strong)_55%,transparent)]")),children:o?(0,t.jsx)(n.ButtonStateContent,{loading:!0,loadingLabel:e.loadingLabel??(0,t.jsx)("span",{className:"sr-only",children:"Loading"}),size:"sm",children:e.label}):e.label},e.value)},s[10]=b,s[11]=g,s[12]=f,s[13]=x,s[14]=u,s[15]=e):e=s[15],i=d.map(e),s[3]=b,s[4]=g,s[5]=f,s[6]=d,s[7]=x,s[8]=u,s[9]=i}else i=s[9];return s[16]!==c||s[17]!==o||s[18]!==i?(l=(0,t.jsx)("div",{role:"group","aria-label":c,className:o,children:i}),s[16]=c,s[17]=o,s[18]=i,s[19]=l):l=s[19],l}])},680707,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(934953),o=e.i(929365),i=e.i(610012),l=e.i(337837);let s={sm:"copy-13 h-8 px-2.5 py-1 [@media(pointer:coarse)]:h-11",md:"copy-14 h-10 px-3 py-2 [@media(pointer:coarse)]:h-11",compact:"copy-12 h-8 px-2.5 py-1 [@media(pointer:coarse)]:h-11"},c={field:"flex min-w-0 cursor-pointer items-center rounded-[var(--radius-md)] border border-[var(--border-soft)] bg-[var(--surface)] px-3 py-2 text-left text-[var(--foreground)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--duration-base)] ease-[var(--ease-out)] placeholder:text-[var(--muted-soft)] focus:border-[var(--selection-border)] focus:shadow-[var(--shadow-focus)] disabled:opacity-60",pill:"inline-flex max-w-full cursor-pointer items-center rounded-full border border-[var(--border-soft)] bg-[var(--surface)] text-left text-[var(--foreground)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--duration-base)] ease-[var(--ease-out)] hover:bg-[var(--surface-strong)] focu
2s-visible:border-[var(--selection-border)] focus-visible:shadow-[var(--shadow-focus)] disabled:cursor-not-allowed disabled:opacity-60",inline:"inline-flex max-w-full cursor-pointer items-center rounded-[var(--radius-sm)] bg-transparent text-left text-[var(--foreground)] outline-none transition-[background-color,color,box-shadow] duration-[var(--duration-base)] ease-[var(--ease-out)] hover:bg-[var(--surface-strong)] focus-visible:shadow-[var(--shadow-focus)] disabled:cursor-not-allowed disabled:opacity-60"};function u(e,t){let r=[];return e?.length&&r.push({key:"__options",label:"",options:e}),t?.forEach((e,t)=>{e.options.length&&r.push({...e,key:`${e.label||"group"}-${t}`})}),r}function d(e){return"string"==typeof e&&/(?:^|\s)!?w-/.test(e)}let f=n.forwardRef(function(e,f){var g;let x,y,w,j,E,C,N,k,S,T,R,L,P,_,D,M,O,I,A,$,F,B,z,W,q,H,U,V,K,X,Y,G,Z,J,Q,ee=(0,r.c)(111),{value:et,defaultValue:er,onValueChange:en,onChange:ea,name:eo,id:ei,disabled:el,invalid:es,placeholder:ec,options:eu,groups:ed,searchable:ef,size:em,variant:ep,className:ev,triggerClassName:eh,triggerPrefix:eb,contentClassName:eg,children:ex,"aria-label":ey,"aria-labelledby":ew,"aria-describedby":ej}=e,eE=void 0===ec?"Select":ec,eC=void 0===ep?"field":ep,[eN,ek]=n.useState(!1),[eS,eT]=n.useState(er??et??""),eR=n.useRef(null),eL=void 0!==et?et:eS;ee[0]!==ex?(g=ex,x=[],n.Children.forEach(g,e=>{if(!n.isValidElement(e))return;let t=e.props,r=String(t.value??""),a=function e(t){return"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):n.isValidElement(t)?e(t.props.children):""}(t.children)||r;x.push({value:r,label:a,disabled:t.disabled})}),y=x.length?x:void 0,ee[0]=ex,ee[1]=y):y=ee[1];let eP=y,e_=eu??eP;ee[2]!==e_||ee[3]!==ed?(w=u(e_,ed),ee[2]=e_,ee[3]=ed,ee[4]=w):w=ee[4];let eD=w;ee[5]!==eD?(j=eD.flatMap(v),ee[5]=eD,ee[6]=j):j=ee[6];let eM=j;ee[7]!==eM||ee[8]!==eL?(E=eM.find(e=>e.value===eL)??null,ee[7]=eM,ee[8]=eL,ee[9]=E):E=ee[9];let eO=E,eI=ef??eM.length>8;ee[10]!==eM||ee[11]!==eL?(C=()=>Math.max(0,eM.findIndex(e=>e.value===eL&&!e.disabled)),ee[10]=eM,ee[11]=eL,ee[12]=C):C=ee[12];let[eA,e$]=n.useState(C);ee[13]===Symbol.for("react.memo_cache_sentinel")?(N=[],ee[13]=N):N=ee[13];let eF=n.useRef(N),eB=n.useRef(""),ez=n.useRef(null);ee[14]!==et?(k=()=>{void 0!==et&&eT(et)},S=[et],ee[14]=et,ee[15]=k,ee[16]=S):(k=ee[15],S=ee[16]),n.useEffect(k,S),ee[17]!==eM||ee[18]!==eN||ee[19]!==eL?(T=()=>{if(!eN)return;let e=eM.findIndex(e=>e.value===eL&&!e.disabled),t=eM.findIndex(h);e$(e>=0?e:Math.max(0,t))},R=[eM,eN,eL],ee[17]=eM,ee[18]=eN,ee[19]=eL,ee[20]=T,ee[21]=R):(T=ee[20],R=ee[21]),n.useEffect(T,R),ee[22]!==eA||ee[23]!==eN||ee[24]!==eI?(L=()=>{eN&&!eI&&eF.current[eA]?.focus()},P=[eA,eN,eI],ee[22]=eA,ee[23]=eN,ee[24]=eI,ee[25]=L,ee[26]=P):(L=ee[25],P=ee[26]),n.useEffect(L,P),ee[27]===Symbol.for("react.memo_cache_sentinel")?(_=()=>()=>{ez.current&&clearTimeout(ez.current)},D=[],ee[27]=_,ee[28]=D):(_=ee[27],D=ee[28]),n.useEffect(_,D),ee[29]!==eM||ee[30]!==ea||ee[31]!==en?(M=e=>{let t=eM.find(t=>t.value===e);t&&!t.disabled&&(eT(e),eR.current&&(eR.current.value=e),en?.(e),ea?.({target:{value:e},currentTarget:{value:e}}),ek(!1))},ee[29]=eM,ee[30]=ea,ee[31]=en,ee[32]=M):M=ee[32];let eW=M;ee[33]!==eA||ee[34]!==eM?(O=e=>{if(0===eM.length)return;let t=eA;for(let r=0;r<eM.length;r++)if(t=(t+e+eM.length)%eM.length,!eM[t]?.disabled)return void e$(t)},ee[33]=eA,ee[34]=eM,ee[35]=O):O=ee[35];let eq=O;ee[36]!==eA||ee[37]!==eW||ee[38]!==eM||ee[39]!==eq||ee[40]!==eI?(I=e=>{if(!eI){if("ArrowDown"===e.key)e.preventDefault(),eq(1);else if("ArrowUp"===e.key)e.preventDefault(),eq(-1);else if("Home"===e.key){e.preventDefault();let t=eM.findIndex(b);t>=0&&e$(t)}else if("End"===e.key){e.preventDefault();for(let e=eM.length-1;e>=0;e--)if(!eM[e]?.disabled)return void e$(e)}else if("Enter"===e.key||" "===e.key){e.preventDefault();let t=eM[eA];t&&eW(t.value)}else if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){eB.current=eB.current+e.key.toLowerCase(),ez.current&&clearTimeout(ez.current),ez.current=setTimeout(()=>{eB.current=""},650);let t=eB.current,r=eM.findIndex(e=>!e.disabled&&e.label.toLowerCase().startsWith(t));r>=0&&e$(r)}}},ee[36]=eA,ee[37]=eW,ee[38]=eM,ee[39]=eq,ee[40]=eI,ee[41]=I):I=ee[41];let eH=I,eU=eO?.label??eE;ee[42]!==el||ee[43]!==eo||ee[44]!==eS?(A=eo&&!el?(0,t.jsx)("input",{ref:eR,type:"hidden",name:eo,value:eS,readOnly:!0}):null,ee[42]=el,ee[43]=eo,ee[44]=eS,ee[45]=A):A=ee[45],ee[46]!==el?($=e=>!el&&ek(e),ee[46]=el,ee[47]=$):$=ee[47];let eV=c[eC];ee[48]!==ev||ee[49]!==eh||ee[50]!==eC?(F="field"===eC&&!d(ev)&&!d(eh)&&"w-full",ee[48]=ev,ee[49]=eh,ee[50]=eC,ee[51]=F):F=ee[51];let eK=s[void 0===em?"md":em],eX=es&&i.invalidFieldClasses;ee[52]!==ev||ee[53]!==eV||ee[54]!==F||ee[55]!==eK||ee[56]!==eX||ee[57]!==eh?(B=(0,o.cn)(eV,F,eK,eX,ev,eh),ee[52]=ev,ee[53]=eV,ee[54]=F,ee[55]=eK,ee[56]=eX,ee[57]=eh,ee[58]=B):B=ee[58],ee[59]!==eO?(z=eO?.icon?(0,t.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center",children:eO.icon}
2):null,ee[59]=eO,ee[60]=z):z=ee[60],ee[61]!==eb?(W=eb?(0,t.jsx)("span",{className:"shrink-0",children:eb}):null,ee[61]=eb,ee[62]=W):W=ee[62];let eY=!eO&&"text-[var(--muted-soft)]";ee[63]!==eY?(q=(0,o.cn)("min-w-0 flex-1 truncate",eY),ee[63]=eY,ee[64]=q):q=ee[64],ee[65]!==q||ee[66]!==eU?(H=(0,t.jsx)("span",{className:q,children:eU}),ee[65]=q,ee[66]=eU,ee[67]=H):H=ee[67],ee[68]!==eO?(U=eO?.meta?(0,t.jsx)("span",{className:"copy-12 shrink-0 text-[var(--muted-soft)]",children:eO.meta}):null,ee[68]=eO,ee[69]=U):U=ee[69],ee[70]!==z||ee[71]!==W||ee[72]!==H||ee[73]!==U?(V=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[z,W,H,U]}),ee[70]=z,ee[71]=W,ee[72]=H,ee[73]=U,ee[74]=V):V=ee[74],ee[75]===Symbol.for("react.memo_cache_sentinel")?(K=(0,t.jsx)(p,{}),ee[75]=K):K=ee[75],ee[76]!==ej||ee[77]!==ey||ee[78]!==ew||ee[79]!==el||ee[80]!==ei||ee[81]!==eN||ee[82]!==f||ee[83]!==B||ee[84]!==V?(X=(0,t.jsx)(l.PopoverTrigger,{children:(0,t.jsxs)("button",{ref:f,id:ei,type:"button",disabled:el,"aria-haspopup":"listbox","aria-expanded":eN,"aria-label":ey,"aria-labelledby":ew,"aria-describedby":ej,className:B,children:[V,K]})}),ee[76]=ej,ee[77]=ey,ee[78]=ew,ee[79]=el,ee[80]=ei,ee[81]=eN,ee[82]=f,ee[83]=B,ee[84]=V,ee[85]=X):X=ee[85];let eG=ey??eE;ee[86]!==eg?(Y=(0,o.cn)("flex max-h-[min(22rem,var(--popover-available-height,100dvh))] flex-col overflow-hidden p-0",eg),ee[86]=eg,ee[87]=Y):Y=ee[87];let eZ=eI?0:-1;return ee[88]!==eA||ee[89]!==ey||ee[90]!==eW||ee[91]!==eM||ee[92]!==eD||ee[93]!==eE||ee[94]!==eI||ee[95]!==eL?(G=eI?(0,t.jsxs)(a.Command,{label:ey??eE,className:"min-h-0",children:[(0,t.jsx)(a.CommandInput,{placeholder:"Search..."}),(0,t.jsxs)(a.CommandList,{className:"min-h-0",children:[(0,t.jsx)(a.CommandEmpty,{children:"No options found."}),eD.map(e=>(0,t.jsx)(a.CommandGroup,{heading:e.label||void 0,children:e.options.map(e=>(0,t.jsx)(a.CommandItem,{value:e.label,keywords:e.keywords,disabled:e.disabled,onSelect:()=>eW(e.value),children:(0,t.jsx)(m,{option:e,selected:e.value===eL})},e.value))},e.key))]})]}):(0,t.jsx)("div",{className:"min-h-0 max-h-80 overflow-y-auto p-1 embrasure-query-scroll",children:eD.map(e=>(0,t.jsxs)("div",{className:"py-1",children:[e.label?(0,t.jsx)("div",{className:"label-12 px-2.5 pb-1 pt-1 text-[var(--muted)]",children:e.label}):null,e.options.map((e,r)=>{let n=eM.findIndex(t=>t.value===e.value),a=eA===n;return(0,t.jsx)("button",{ref:e=>{eF.current[n]=e},type:"button",role:"option","aria-selected":e.value===eL,disabled:e.disabled,"data-active":a||void 0,className:(0,o.cn)("label-13 flex w-full cursor-default items-center gap-2 rounded-[var(--radius-sm)] px-2.5 py-1.5 text-left text-[var(--foreground)] outline-none transition-colors duration-[var(--duration-react)] disabled:opacity-50","data-[active]:bg-[color-mix(in_srgb,var(--highlight)_10%,transparent)]"),onMouseEnter:()=>e$(n),onClick:()=>eW(e.value),children:(0,t.jsx)(m,{option:e,selected:e.value===eL})},`${e.value}-${r}`)})]},e.key))}),ee[88]=eA,ee[89]=ey,ee[90]=eW,ee[91]=eM,ee[92]=eD,ee[93]=eE,ee[94]=eI,ee[95]=eL,ee[96]=G):G=ee[96],ee[97]!==eH||ee[98]!==eG||ee[99]!==Y||ee[100]!==eZ||ee[101]!==G?(Z=(0,t.jsx)(l.PopoverContent,{role:"listbox",ariaLabel:eG,className:Y,initialFocus:eZ,returnFocus:!0,onKeyDown:eH,children:G}),ee[97]=eH,ee[98]=eG,ee[99]=Y,ee[100]=eZ,ee[101]=G,ee[102]=Z):Z=ee[102],ee[103]!==eN||ee[104]!==$||ee[105]!==X||ee[106]!==Z?(J=(0,t.jsxs)(l.Popover,{open:eN,onOpenChange:$,matchTriggerWidth:!0,side:"bottom-start",children:[X,Z]}),ee[103]=eN,ee[104]=$,ee[105]=X,ee[106]=Z,ee[107]=J):J=ee[107],ee[108]!==A||ee[109]!==J?(Q=(0,t.jsxs)(t.Fragment,{children:[A,J]}),ee[108]=A,ee[109]=J,ee[110]=Q):Q=ee[110],Q});function m(e){let n,a,i,l,s,c,u,d,f,m=(0,r.c)(23),{option:p,selected:v}=e,h=v?"text-[var(--accent-ink)]":"text-transparent";m[0]!==h?(n=(0,o.cn)("copy-12 w-3 shrink-0 text-center",h),m[0]=h,m[1]=n):n=m[1],m[2]!==n?(a=(0,t.jsx)("span",{"aria-hidden":!0,className:n,children:"â"}),m[2]=n,m[3]=a):a=m[3],m[4]!==p.icon?(i=p.icon?(0,t.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center",children:p.icon}):null,m[4]=p.icon,m[5]=i):i=m[5];let b=v&&"font-semibold text-[var(--accent-ink)]";return m[6]!==b?(l=(0,o.cn)("block truncate",b),m[6]=b,m[7]=l):l=m[7],m[8]!==p.label||m[9]!==l?(s=(0,t.jsx)("span",{className:l,children:p.label}),m[8]=p.label,m[9]=l,m[10]=s):s=m[10],m[11]!==p.description?(c=p.description?(0,t.jsx)("span",{className:"copy-12 mt-0.5 block truncate text-[var(--muted-soft)]",children:p.description}):null,m[11]=p.description,m[12]=c):c=m[12],m[13]!==s||m[14]!==c?(u=(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[s,c]}),m[13]=s,m[14]=c,m[15]=u):u=m[15],m[16]!==p.meta?(d=p.meta?(0,t.jsx)("span",{className:"copy-12 shrink-0 text-[var(--muted-soft)]",children:p.meta}):null,m[16]=p.meta,m[17]=d):d=m[17],m[18]!==d||m[19]!==a||m[20]!==i||m[21]!==u?(f=(0,t.jsxs)(t.Fragment,{children:[a,i,u,d]}),m[18]=d,m[19]=a,m[20]=i,m[21]=u,m[22]=f):f=m[22],f}function p(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",className:"ml-2 h-3.5 w-3.5 shrink-0 text-[var(--muted-soft)]","aria-hidden":!0,
2children:(0,t.jsx)("path",{d:"m6 9 6 6 6-6",strokeLinecap:"round",strokeLinejoin:"round"})}),n[0]=e):e=n[0],e}function v(e){return e.options}function h(e){return!e.disabled}function b(e){return!e.disabled}e.s(["Select",0,f,"flattenSelectOptions",0,function(e,t){return u(e,t).flatMap(e=>e.options)},"normalizeSelectGroups",0,u])},245715,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(347590),o=e.i(494261),i=e.i(929365),l=e.i(332861),s=e.i(885391),c=e.i(117687);e.s(["Sheet",0,function(e){let u,d,f,m,p,v,h,b,g,x,y,w,j,E,C=(0,r.c)(52),{open:N,modal:k,onClose:S,side:T,title:R,description:L,headerAction:P,ariaLabel:_,children:D,className:M,panelStyle:O,width:I,showCloseButton:A,initialFocusRef:$,portalContainer:F}=e,B=void 0===k||k,z=void 0===T?"right":T,W=void 0===I?"min(28rem, 100vw)":I,q=void 0===A||A,H=n.useRef(null),[U,V]=n.useState(!1),[K,X]=n.useState("closed"),Y=n.useId(),G=n.useId();if(C[0]!==N?(u=()=>{N&&V(!0)},d=[N],C[0]=N,C[1]=u,C[2]=d):(u=C[1],d=C[2]),n.useEffect(u,d),C[3]!==U||C[4]!==N?(f=()=>{if(!U)return;if(N){let e=requestAnimationFrame(()=>X("open"));return()=>cancelAnimationFrame(e)}X("closed");let e=setTimeout(()=>V(!1),140);return()=>clearTimeout(e)},m=[N,U],C[3]=U,C[4]=N,C[5]=f,C[6]=m):(f=C[5],m=C[6]),n.useEffect(f,m),C[7]!==$||C[8]!==B||C[9]!==U||C[10]!==S?(p={containerRef:H,mounted:U,onClose:S,initialFocusRef:$,modal:B},C[7]=$,C[8]=B,C[9]=U,C[10]=S,C[11]=p):p=C[11],(0,c.useModalFocus)(p),!U)return null;let Z=!B&&"pointer-events-none";C[12]!==Z?(v=(0,i.cn)("fixed inset-0 z-50",Z),C[12]=Z,C[13]=v):v=C[13],C[14]!==B||C[15]!==S||C[16]!==K?(h=B?(0,t.jsx)("div",{"aria-hidden":!0,onClick:e=>{(0,s.isModalBackdropClick)(e)&&S()},"data-state":K,className:"ds-sheet-backdrop absolute inset-0"}):null,C[14]=B,C[15]=S,C[16]=K,C[17]=h):h=C[17];let J=!!B||void 0,Q=!_&&R?Y:void 0,ee=L?G:void 0,et="right"===z?"right-0 border-r-0!":"left-0 border-l-0!";C[18]!==M||C[19]!==et?(b=(0,i.cn)("ds-sheet-panel material-modal pointer-events-auto absolute top-0 bottom-0 flex flex-col border-y-0!",et,M),C[18]=M,C[19]=et,C[20]=b):b=C[20],C[21]!==O||C[22]!==W?(g={width:W,...O},C[21]=O,C[22]=W,C[23]=g):g=C[23],C[24]!==L||C[25]!==G||C[26]!==P||C[27]!==S||C[28]!==q||C[29]!==R||C[30]!==Y?(x=R||L||P?(0,t.jsxs)("header",{className:"flex items-start justify-between gap-4 border-b border-[var(--border-soft)] px-5 pt-5 pb-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[R?(0,t.jsx)("h2",{id:Y,className:"heading-16 text-[var(--foreground)]",children:R}):null,L?(0,t.jsx)("p",{id:G,className:"copy-13 mt-1 break-words text-[var(--muted)] [overflow-wrap:anywhere]",children:L}):null]}),P||q?(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[P,q?(0,t.jsx)(l.IconButton,{label:"Close sheet",tooltip:!1,icon:(0,t.jsx)(a.Xmark,{}),onClick:S}):null]}):null]}):null,C[24]=L,C[25]=G,C[26]=P,C[27]=S,C[28]=q,C[29]=R,C[30]=Y,C[31]=x):x=C[31],C[32]!==D?(y=(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:D}),C[32]=D,C[33]=y):y=C[33],C[34]!==_||C[35]!==z||C[36]!==K||C[37]!==J||C[38]!==Q||C[39]!==ee||C[40]!==b||C[41]!==g||C[42]!==x||C[43]!==y?(w=(0,t.jsxs)("aside",{ref:H,role:"dialog","aria-modal":J,"aria-label":_,"aria-labelledby":Q,"aria-describedby":ee,tabIndex:-1,"data-state":K,"data-side":z,className:b,style:g,children:[x,y]}),C[34]=_,C[35]=z,C[36]=K,C[37]=J,C[38]=Q,C[39]=ee,C[40]=b,C[41]=g,C[42]=x,C[43]=y,C[44]=w):w=C[44],C[45]!==v||C[46]!==h||C[47]!==w?(j=(0,t.jsxs)("div",{className:v,children:[h,w]}),C[45]=v,C[46]=h,C[47]=w,C[48]=j):j=C[48];let er=F??document.body;return C[49]!==j||C[50]!==er?(E=(0,o.createPortal)(j,er),C[49]=j,C[50]=er,C[51]=E):E=C[51],E}])},107443,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);let o={default:"text-[var(--foreground)]",muted:"text-[var(--muted-soft)]",highlight:"text-[var(--highlight-ink)]",danger:"text-[var(--danger)]",success:"text-[var(--success)]"},i="heading-16 tabular-nums",l="label-12 break-words text-[var(--muted)]",s=n.createContext(!1);e.s(["Stat",0,function(e){let c,u,d,f,m,p,v=(0,r.c)(57),{label:h,value:b,hint:g,size:x,labelPosition:y,tone:w,className:j}=e,E=void 0===x?"default":x,C=void 0===w?"default":w,N=n.useContext(s),k=N?"dt":"p",S=N?"dd":"p";if("compact"===E){let e,r,n,s,c,u;if(N){let e,r,n,s,c,u,d;v[0]!==j?(e=(0,a.cn)("inline-flex max-w-full items-baseline gap-1.5",j),v[0]=j,v[1]=e):e=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.cn)("order-2",l),v[2]=r):r=v[2],v[3]!==h?(n=(0,t.jsx)("dt",{className:r,children:h}),v[3]=h,v[4]=n):n=v[4];let f=o[C];return v[5]!==f?(s=(0,a.cn)("order-1",i,f),v[5]=f,v[6]=s):s=v[6],v[7]!==s||v[8]!==b?(c=(0,t.jsx)("dd",{className:s,children:b}),v[7]=s,v[8]=b,v[9]=c):c=v[9],v[10]!==g?(u=g?(0,t.jsxs)("dd",{className:"copy-12 order-3 text-[var(--muted-soft)]",children:["· ",g]}):null,v[10]=g,v[11]=u):u=v[11],v[12]!==u||v[13]!==e||v[14]!==n||v[15]!==c?(d=(0,t.jsxs)("div",{className:e,children:[n,c,u]}),v[12]=u,v[13]=e,v[14]=n,v[15]=c,v[16]=d):d=v[16],d}v[17]!==j?(e=(0,a.cn)("inline-flex max-w-full items-baseline gap-1.5",j),v[17]=j,v[18]=e):e=v[18];let d=o[C];return v[19]!==d?(r=(0,a.cn)(i,d),v[19]=d,v[20]=r):r=v[20],v[21]!==r||v[22]!==b?(n=(0,t.jsx)("span",{className:r,children:b}),v[21]=r,v[22]=b,v[23]=n):n=v[23],v[24]!==h?(s=(0,t.jsx)("span",{className:l,children:h}),v[24]=h,v[25]=s):s=v[25],v[26]!==g?(c=g?(0,t.jsxs)("span",{className:"copy-12 text-[var(--muted-soft)]",children:["· ",g]}):null,v[26]=g,v[27]=c):c=v[27],v[28]!==e||v[29]!==n||v[30]!==s||v[31]!==c?(u=(0,t.jsxs)("span",{className:e,children:[n,s,c]}),v[28]=e,v[29]=n,v[30]=s,v[31]=c,v[32]=u):u=v[32],u}let T="below"===(void 0===y?"above":y),R=T&&"flex flex-col";v[33]!==j||v[34]!==R?(c=(0,a.cn)("min-w-0 max-w-full",R,j),v[33]=j,v[34]=R,v[35]=c):c=v[35];let L=T?"order-2 mt-1 label-12 text-[var(--muted)]":"label-12 break-words text-[var(--muted)]";v[36]!==k||v[37]!==h||v[38]!==L?(u=(0,t.jsx)(k,{className:L,children:h}),v[36]=k,v[37]=h,v[38]=L,v[39]=u):u=v[39];let P=T?"order-1":"mt-2",_="hero"===E?"heading-32":"heading-20",D=o[C];return v[40]!==D||v[41]!==P||v[42]!==_?(d=(0,a.cn)(P,"tabular-nums",_,D),v[40]=D,v[41]=P,v[42]=_,v[43]=d):d=v[43],v[44]!==S||v[45]!==d||v[46]!==b?(f=(0,t.jsx)(S,{className:d,children:b}),v[44]=S,v[45]=d,v[46]=b,v[47]=f):f=v[47],v[48]!==S||v[49]!==g||v[50]!==T?(m=g?(0,t.jsx)(S,{className:(0,a.cn)("copy-12 mt-1.5 text-[var(--muted)]",T&&"order-3"),children:g}):null,v[48]=S,v[49]=g,v[50]=T,v[51]=m):m=v[51],v[52]!==f||v[53]!==m||v[54]!==c||v[55]!==u?(p=(0,t.jsxs)("div",{className:c,children:[u,f,m]}
2),v[52]=f,v[53]=m,v[54]=c,v[55]=u,v[56]=p):p=v[56],p},"StatGroup",0,function(e){let n,o,i,l,c,u,d,f=(0,r.c)(14);f[0]!==e?({className:o,children:n,density:l,...i}=e,f[0]=e,f[1]=n,f[2]=o,f[3]=i,f[4]=l):(n=f[1],o=f[2],i=f[3],l=f[4]);let m="compact"===(void 0===l?"default":l)?"gap-x-4 gap-y-1.5":"gap-x-6 gap-y-2";return f[5]!==o||f[6]!==m?(c=(0,a.cn)("copy-13 flex flex-wrap items-baseline",m,o),f[5]=o,f[6]=m,f[7]=c):c=f[7],f[8]!==n?(u=(0,t.jsx)(s.Provider,{value:!0,children:n}),f[8]=n,f[9]=u):u=f[9],f[10]!==i||f[11]!==c||f[12]!==u?(d=(0,t.jsx)("dl",{className:c,...i,children:u}),f[10]=i,f[11]=c,f[12]=u,f[13]=d):d=f[13],d}])},632555,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(929365);let o={sm:"h-4 w-7",md:"h-5 w-9"},i={sm:"h-3 w-3",md:"h-4 w-4"},l={sm:"translate-x-3",md:"translate-x-4"},s={accent:"border-transparent bg-[var(--accent)]",neutral:"border-transparent bg-[var(--muted)]"},c=n.forwardRef(function(e,n){let c,u,d,f,m,p,v,h,b,g,x=(0,r.c)(39),{checked:y,onCheckedChange:w,disabled:j,loading:E,size:C,tone:N,id:k,className:S,"aria-label":T,"aria-labelledby":R}=e,L=void 0!==j&&j,P=void 0!==E&&E,_=void 0===C?"md":C,D=void 0===N?"accent":N,M=P||void 0,O=L||P;x[0]!==y||x[1]!==w?(c=()=>w(!y),x[0]=y,x[1]=w,x[2]=c):c=x[2];let I=(L||P)&&"cursor-not-allowed opacity-60";x[3]!==S||x[4]!==I?(u=(0,a.cn)("relative inline-flex shrink-0 items-center justify-center rounded-full ds-focus-ring","[@media(pointer:coarse)]:h-11 [@media(pointer:coarse)]:w-11",I,S),x[3]=S,x[4]=I,x[5]=u):u=x[5];let A=o[_],$=y?s[D]:"border-[var(--border-soft)] bg-[color-mix(in_srgb,var(--surface-strong)_70%,transparent)]";x[6]!==A||x[7]!==$?(d=(0,a.cn)("relative inline-flex shrink-0 items-center rounded-full border p-0.5","transition-[background-color,border-color] duration-[var(--duration-react)] ease-[var(--ease-out)] motion-reduce:transition-none",A,$),x[6]=A,x[7]=$,x[8]=d):d=x[8];let F=i[_],B=y?l[_]:"translate-x-0",z=P&&"opacity-0";x[9]!==F||x[10]!==B||x[11]!==z?(f=(0,a.cn)("pointer-events-none inline-block rounded-full bg-[var(--surface)] shadow-[var(--shadow-rest)]","transition-[transform,opacity] duration-[var(--duration-react)] ease-[var(--ease-out)] motion-reduce:transition-none",F,B,z),x[9]=F,x[10]=B,x[11]=z,x[12]=f):f=x[12],x[13]!==f?(m=(0,t.jsx)("span",{className:f}),x[13]=f,x[14]=m):m=x[14],x[15]!==d||x[16]!==m?(p=(0,t.jsx)("span",{className:d,"aria-hidden":!0,children:m}),x[15]=d,x[16]=m,x[17]=p):p=x[17];let W="sm"===_?"h-2.5 w-2.5 border":"h-3 w-3 border",q=!P&&"invisible";x[18]!==W||x[19]!==q?(v=(0,a.cn)("ds-spinner pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",W,q),x[18]=W,x[19]=q,x[20]=v):v=x[20];let H=P?"running":"paused";return x[21]!==H?(h={animationPlayState:H},x[21]=H,x[22]=h):h=x[22],x[23]!==v||x[24]!==h?(b=(0,t.jsx)("span",{"aria-hidden":!0,className:v,style:h}),x[23]=v,x[24]=h,x[25]=b):b=x[25],x[26]!==T||x[27]!==R||x[28]!==y||x[29]!==k||x[30]!==n||x[31]!==p||x[32]!==b||x[33]!==M||x[34]!==O||x[35]!==c||x[36]!==u||x[37]!==D?(g=(0,t.jsxs)("button",{ref:n,id:k,type:"button",role:"switch","aria-checked":y,"data-tone":D,"aria-busy":M,"aria-label":T,"aria-labelledby":R,disabled:O,onClick:c,className:u,children:[p,b]}),x[26]=T,x[27]=R,x[28]=y,x[29]=k,x[30]=n,x[31]=p,x[32]=b,x[33]=M,x[34]=O,x[35]=c,x[36]=u,x[37]=D,x[38]=g):g=x[38],g});e.s(["Switch",0,c])},313318,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(347590),o=e.i(929365);let i=n.createContext(null),l=n.createContext(null);function s(e,t,r){return t<=0||e<0?null:"Home"===r?0:"End"===r?t-1:"ArrowRight"===r?(e+1)%t:"ArrowLeft"===r?(e-1+t)%t:null}function c(e){return!e.hasAttribute("disabled")}function u(e){return"true"===e.dataset.active}e.s(["Tabs",0,function(e){let a,l,s,c,u,d=(0,r.c)(16),{value:f,onValueChange:m,children:p,className:v,semantics:h,density:b}=e,g=void 0===h?"tabs":h,x=void 0===b?"default":b,y=n.useId();d[0]!==y?(a=y.replaceAll(":",""),d[0]=y,d[1]=a):a=d[1];let w=a;d[2]!==w||d[3]!==x||d[4]!==m||d[5]!==g||d[6]!==f?(l={value:f,setValue:m,semantics:g,density:x,baseId:w},d[2]=w,d[3]=x,d[4]=m,d[5]=g,d[6]=f,d[7]=l):l=d[7];let j=l;
2return d[8]!==v?(s=(0,o.cn)("flex flex-col",v),d[8]=v,d[9]=s):s=d[9],d[10]!==p||d[11]!==s?(c=(0,t.jsx)("div",{className:s,children:p}),d[10]=p,d[11]=s,d[12]=c):c=d[12],d[13]!==j||d[14]!==c?(u=(0,t.jsx)(i.Provider,{value:j,children:c}),d[13]=j,d[14]=c,d[15]=u):u=d[15],u},"TabsContent",0,function(e){let a,l,s=(0,r.c)(9),{value:c,children:u,className:d}=e,f=n.useContext(i);if(!f)throw Error("TabsContent must be used inside <Tabs>");if(f.value!==c)return null;let m=encodeURIComponent(c),p=`${f.baseId}-panel-${m}`,v="tabs"===f.semantics?"tabpanel":void 0,h="tabs"===f.semantics?`${f.baseId}-tab-${m}`:void 0,b="tabs"===f.semantics?0:void 0;return s[0]!==d?(a=(0,o.cn)("pt-2.5 focus-visible:rounded-[var(--radius-sm)] focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)]",d),s[0]=d,s[1]=a):a=s[1],s[2]!==u||s[3]!==p||s[4]!==v||s[5]!==h||s[6]!==b||s[7]!==a?(l=(0,t.jsx)("div",{id:p,role:v,"aria-labelledby":h,tabIndex:b,className:a,children:u}),s[2]=u,s[3]=p,s[4]=v,s[5]=h,s[6]=b,s[7]=a,s[8]=l):l=s[8],l},"TabsList",0,function(e){let a,s,d,f,m,p,v,h,b,g,x,y,w,j,E=(0,r.c)(30);E[0]!==e?({children:a,className:s,flush:f,...d}=e,E[0]=e,E[1]=a,E[2]=s,E[3]=d,E[4]=f):(a=E[1],s=E[2],d=E[3],f=E[4]);let C=void 0!==f&&f,N=n.useContext(i),k=n.useRef(null),[S,T]=n.useState(null);E[5]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{let e=k.current,t=e?.querySelector('[data-active="true"]'),r=t?.querySelector("[data-tab-label]");if(!e||!t||!r)return void T(null);let n=t.offsetLeft+r.offsetLeft,a=r.offsetWidth;T(e=>e&&e.x===n&&e.width===a?e:{x:n,width:a})},E[5]=m):m=E[5];let R=m,[L,P]=n.useState(null);E[6]!==N?.semantics?(p=()=>{let e=k.current,t=Array.from(e?.querySelectorAll("[data-tabs-trigger]")??[]);P(N?.semantics!=="tabs"||t.some(u)?null:t.find(c)?.dataset.tabsValue??null)},E[6]=N?.semantics,E[7]=p):p=E[7],N?.semantics;let _=p;E[8]!==_?(v=()=>{R(),_()},E[8]=_,E[9]=v):v=E[9];let D=N?.value;E[10]!==a||E[11]!==_||E[12]!==D?(h=[R,_,D,a],E[10]=a,E[11]=_,E[12]=D,E[13]=h):h=E[13],n.useLayoutEffect(v,h),E[14]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{let e=k.current;if(!e||"u"<typeof ResizeObserver)return;let t=new ResizeObserver(R);return t.observe(e),()=>t.disconnect()},g=[R],E[14]=b,E[15]=g):(b=E[14],g=E[15]),n.useLayoutEffect(b,g);let M=N?.semantics==="navigation"?"navigation":"tablist",O=!C&&"border-b border-[var(--border-soft)]";return E[16]!==s||E[17]!==O?(x=(0,o.cn)("relative inline-flex items-center gap-0.5",O,s),E[16]=s,E[17]=O,E[18]=x):x=E[18],E[19]!==a||E[20]!==L?(y=(0,t.jsx)(l.Provider,{value:L,children:a}),E[19]=a,E[20]=L,E[21]=y):y=E[21],E[22]!==S?(w=S?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute -bottom-px left-0 h-px w-px origin-left bg-[var(--selection-border)] transition-transform duration-[140ms] ease-[var(--ease-out)] motion-reduce:transition-none",style:{transform:`translateX(${S.x}px) scaleX(${S.width})`}}):null,E[22]=S,E[23]=w):w=E[23],E[24]!==d||E[25]!==x||E[26]!==y||E[27]!==w||E[28]!==M?(j=(0,t.jsxs)("div",{...d,ref:k,role:M,className:x,children:[y,w]}),E[24]=d,E[25]=x,E[26]=y,E[27]=w,E[28]=M,E[29]=j):j=E[29],j},"TabsTrigger",0,function(e){let c,u,d,f,m,p,v,h,b,g,x,y,w,j,E,C,N,k=(0,r.c)(54);k[0]!==e?({value:h,children:u,className:d,onClose:p,closeLabel:f,onClick:m,onKeyDown:v,...c}=e,k[0]=e,k[1]=c,k[2]=u,k[3]=d,k[4]=f,k[5]=m,k[6]=p,k[7]=v,k[8]=h):(c=k[1],u=k[2],d=k[3],f=k[4],m=k[5],p=k[6],v=k[7],h=k[8]);let S=n.useContext(i),T=n.useRef(null);if(!S)throw Error("TabsTrigger must be used inside <Tabs>");let R=S.value===h,L=encodeURIComponent(h),P=`${S.baseId}-tab-${L}`,_=`${S.baseId}-panel-${L}`,D="tabs"===S.semantics,M="function"==typeof p,O=n.useContext(l)===h;k[9]===Symbol.for("react.memo_cache_sentinel")?(b=function(e){let t=e.closest('[role="tablist"], [role="navigation"]');return Array.from(t?.querySelectorAll("[data-tabs-trigger]:not(:disabled)")??[])},k[9]=b):b=k[9];let I=b;k[10]!==R||k[11]!==p?(g=function(){let e=T.current;if(!p||!e)return;let t=I(e),r=t.indexOf(e),n=t[r+1]??t[r-1]??null,a=!!e.parentElement?.contains(document.activeElement);p(),n&&(a&&n.focus(),R&&n.click())},k[10]=R,k[11]=p,k[12]=g):g=k[12];let A=g;k[13]!==M||k[14]!==A||k[15]!==D||k[16]!==v?(x=function(e){if(v?.(e),e.defaultPrevented)return;if(M&&"Delete"===e.key){e.preventDefault(),A();return}
2if(!D||!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=I(e.currentTarget);if(0===t.length)return;e.preventDefault();let r=s(t.indexOf(e.currentTarget),t.length,e.key);null!==r&&(t[r]?.focus(),t[r]?.click())},k[13]=M,k[14]=A,k[15]=D,k[16]=v,k[17]=x):x=k[17];let $=x,F=D?"presentation":void 0,B=M||void 0,z=D?P:void 0,W=D?"tab":void 0,q=D?R:void 0,H=D?_:void 0,U=!D&&R?"page":void 0,V=M?"Delete":void 0,K=D?R||O?0:-1:void 0;k[18]!==m||k[19]!==S||k[20]!==h?(y=e=>{m?.(e),e.defaultPrevented||S.setValue(h)},k[18]=m,k[19]=S,k[20]=h,k[21]=y):y=k[21];let X=M&&"pr-8 [@media(pointer:coarse)]:pr-10",Y="compact"===S.density?"label-12 h-8 py-1 [@media(pointer:coarse)]:h-11":"label-13 min-h-11 py-2",G=R?"text-[var(--foreground)]":"text-[var(--muted)] hover:text-[var(--foreground)]";return k[22]!==d||k[23]!==X||k[24]!==Y||k[25]!==G?(w=(0,o.cn)("relative px-3",X,Y,"transition-colors duration-[var(--duration-react)] ease-[var(--ease-out)]","focus-visible:z-10 focus-visible:rounded-[var(--radius-sm)] focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)]",G,d),k[22]=d,k[23]=X,k[24]=Y,k[25]=G,k[26]=w):w=k[26],k[27]!==u?(j=(0,t.jsx)("span",{"data-tab-label":!0,className:"inline-flex min-w-0 items-center",children:u}),k[27]=u,k[28]=j):j=k[28],k[29]!==c||k[30]!==$||k[31]!==R||k[32]!==U||k[33]!==V||k[34]!==K||k[35]!==y||k[36]!==w||k[37]!==j||k[38]!==z||k[39]!==W||k[40]!==q||k[41]!==H||k[42]!==h?(E=(0,t.jsx)("button",{...c,ref:T,"data-tabs-trigger":!0,"data-tabs-value":h,id:z,type:"button",role:W,"aria-selected":q,"aria-controls":H,"aria-current":U,"aria-keyshortcuts":V,tabIndex:K,"data-active":R,onClick:y,onKeyDown:$,className:w,children:j}),k[29]=c,k[30]=$,k[31]=R,k[32]=U,k[33]=V,k[34]=K,k[35]=y,k[36]=w,k[37]=j,k[38]=z,k[39]=W,k[40]=q,k[41]=H,k[42]=h,k[43]=E):E=k[43],k[44]!==M||k[45]!==f||k[46]!==A||k[47]!==D?(C=M?(0,t.jsx)("button",{type:"button","aria-label":D?void 0:f,"aria-hidden":!!D||void 0,tabIndex:D?-1:void 0,title:f,"data-tab-close":!0,onClick:e=>{e.stopPropagation(),A()},className:(0,o.cn)("relative z-20 -ml-7 inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-[var(--radius-sm)] text-[var(--muted-soft)]","transition-colors duration-[var(--duration-react)] ease-[var(--ease-out)] hover:bg-[var(--surface-strong)] hover:text-[var(--foreground)]","focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)]","[@media(pointer:coarse)]:h-8 [@media(pointer:coarse)]:w-8","mr-2 [@media(pointer:coarse)]:-ml-9 [@media(pointer:coarse)]:mr-1"),children:(0,t.jsx)(a.Xmark,{"aria-hidden":!0,className:"h-3.5 w-3.5"})}):null,k[44]=M,k[45]=f,k[46]=A,k[47]=D,k[48]=C):C=k[48],k[49]!==E||k[50]!==C||k[51]!==F||k[52]!==B?(N=(0,t.jsxs)("span",{role:F,"data-tab-closable":B,className:"inline-flex shrink-0 items-center",children:[E,C]}),k[49]=E,k[50]=C,k[51]=F,k[52]=B,k[53]=N):N=k[53],N},"nextTabIndex",0,s])},427241,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(975419),o=e.i(929365);let i={sm:"h-7 gap-1 px-2.5 label-12 [@media(pointer:coarse)]:h-10",md:"min-h-11 gap-1.5 px-3 py-1 label-13 sm:min-h-8"},l=n.forwardRef(function(e,n){let l,s,c,u,d,f,m,p,v,h,b,g,x,y,w,j,E,C,N,k,S,T,R,L,P=(0,r.c)(75);P[0]!==e?({pressed:m,onPressedChange:f,size:v,icon:u,description:c,mono:h,className:s,children:l,onClick:d,type:b,...p}=e,P[0]=e,P[1]=l,P[2]=s,P[3]=c,P[4]=u,P[5]=d,P[6]=f,P[7]=m,P[8]=p,P[9]=v,P[10]=h,P[11]=b):(l=P[1],s=P[2],c=P[3],u=P[4],d=P[5],f=P[6],m=P[7],p=P[8],v=P[9],h=P[10],b=P[11]);let _=void 0===v?"md":v,D=void 0!==h&&h,M=void 0===b?"button":b;P[12]!==d||P[13]!==f||P[14]!==m?(g=e=>{d?.(e),e.defaultPrevented||f?.(!m)},P[12]=d,P[13]=f,P[14]=m,P[15]=g):g=P[15];let O=g,I=null!=c,A="radio"===p.role||"checkbox"===p.role||"switch"===p.role;P[16]!==A||P[17]!==m?(x=A?{"aria-checked":m}:{"aria-pressed":m},P[16]=A,P[17]=m,P[18]=x):x=P[18];let $=x;if(P[19]!==I||P[20]!==l||P[21]!==s||P[22]!==c||P[23]!==O||P[24]!==u||P[25]!==D||P[26]!==m||P[27]!==p||P[28]!==n||P[29]!==_||P[30]!==$||P[31]!==M){E=Symbol.for("react.early_return_sentinel");e:{let e,r=(0,o.cn)("ds-focus-ring border transition-[background-color,border-color,color] duration-[var(--duration-react)] ease-[var(--ease-out)]","disabled:cursor-not-allowed disabled:opacity-60",m?"border-[color-mix(in_srgb,var(--selection-border)_44%,var(--border-soft))] bg-[var(--selection-fill)] text-[var(--foreground)]":"border-[var(--border-soft)] text-[var(--muted)] hover:border-[var(--border)] hover:text-[var(--foreground)]");if(I){let e,i,u,d,f,v,h,b=(0,o.cn)(r,"flex w-full flex-col items-stretch gap-1 rounded-[var(--radius-md)] px-3 py-2.5 text-left",!m&&"bg-[var(--surface)] hover:bg-[var(--surface-strong)]",s),g=D?"mono-12":"label-14";P[40]!==g?(e=(0,o.cn)("min-w-0 text-[var(--foreground)]",g),P[40]=g,P[41]=e):e=P[41],P[42]!==l||P[43]!==e?(i=(0,t.jsx)("span",{className:e,children:l}),P[42]=l,P[43]=e,P[44]=i):i=P[44];let x=m?"border-[var(--primary-border)] bg-[var(--primary-fill)] text-[var(--primary-ink)]":"border-[var(--border)]";P[45]!==x?(u=(0,o.cn)("inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border",x),P[45]=x,P[46]=u):u=P[46],P[47]!==m?(d=m?(0,t.jsx)(a.Check,{className:"h-3 w-3",strokeWidth:2.2}):null,P[47]=m,P[48]=d):d=P[48],P[49]!==u||P[50]!==d?(f=(0,t.jsx)("span",{"aria-hidden":"true",className:u,children:d}),P[49]=u,P[50]=d,P[51]=f):f=P[51],P[52]!==i||P[53]!==f?(v=(0,t.jsxs)("span",{className:"flex items-center justify-between gap-2",children:[i,f]}),P[52]=i,P[53]=f,P[54]=v):v=P[54],P[55]!==c?(h=(0,t.jsx)("span",{className:"copy-13 text-[var(--muted)]",children:c}),P[55]=c,P[56]=h):h=P[56],E=(0,t.jsxs)("button",{ref:n,type:M,"data-ui":"toggle-chip","data-
2pressed":m||void 0,onClick:O,className:b,...p,...$,children:[v,h]});break e}P[57]!==u||P[58]!==m?(e=m?(0,t.jsx)(a.Check,{className:"h-3.5 w-3.5",strokeWidth:2}):u,P[57]=u,P[58]=m,P[59]=e):e=P[59],y=e,C=n,N=M,k="toggle-chip",S=m||void 0,w=O,j=(0,o.cn)(r,"inline-flex shrink-0 items-center rounded-full",i[_],D&&"mono-12",s)}P[19]=I,P[20]=l,P[21]=s,P[22]=c,P[23]=O,P[24]=u,P[25]=D,P[26]=m,P[27]=p,P[28]=n,P[29]=_,P[30]=$,P[31]=M,P[32]=y,P[33]=w,P[34]=j,P[35]=E,P[36]=C,P[37]=N,P[38]=k,P[39]=S}else y=P[32],w=P[33],j=P[34],E=P[35],C=P[36],N=P[37],k=P[38],S=P[39];return E!==Symbol.for("react.early_return_sentinel")?E:(P[60]!==y?(T=y?(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex shrink-0 items-center [&>svg]:h-3.5 [&>svg]:w-3.5",children:y}):null,P[60]=y,P[61]=T):T=P[61],P[62]!==l?(R=(0,t.jsx)("span",{className:"min-w-0 truncate",children:l}),P[62]=l,P[63]=R):R=P[63],P[64]!==p||P[65]!==$||P[66]!==w||P[67]!==j||P[68]!==T||P[69]!==R||P[70]!==C||P[71]!==N||P[72]!==k||P[73]!==S?(L=(0,t.jsxs)("button",{ref:C,type:N,"data-ui":k,"data-pressed":S,onClick:w,className:j,...p,...$,children:[T,R]}),P[64]=p,P[65]=$,P[66]=w,P[67]=j,P[68]=T,P[69]=R,P[70]=C,P[71]=N,P[72]=k,P[73]=S,P[74]=L):L=P[74],L)});e.s(["ToggleChip",0,l])},465986,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(821770),a=e.i(15241),o=e.i(278928),i=e.i(136783),l=e.i(929365);let s=n.createContext(null);e.s(["Tooltip",0,function({content:e,children:r,side:c="top",delay:u,open:d,defaultOpen:f,onOpenChange:m,disabled:p,describe:v=!0,className:h,portalContainer:b}){let g=n.useContext(s),x=n.useId(),[y,w]=n.useState(f??!1),j=void 0!==d,E=j?d:y,[C,N]=n.useState(!1),k=n.useCallback(e=>{let t=g?.getCurrentId()??null;e&&N(null!==t&&t!==x),j||w(e),m?.(e),e?g?.setCurrentId(x):t===x&&g?.setCurrentId(null)},[g,x,j,m]),S=g?.anyOpen?0:u??g?.delayDuration??250,{refs:T,floatingStyles:R,context:L,isPositioned:P}=(0,a.useFloating)({open:E,onOpenChange:k,placement:c,transform:!1,middleware:[(0,i.offset)(6),(0,i.flip)({padding:8}),(0,i.shift)({padding:8})],whileElementsMounted:o.autoUpdate}),_=(0,a.useHover)(L,{enabled:!p,move:!1,delay:{open:S,close:80}}),D=(0,a.useFocus)(L,{enabled:!p}),M=(0,a.useDismiss)(L),O=(0,a.useRole)(L,{role:"tooltip"}),{getReferenceProps:I,getFloatingProps:A}=(0,a.useInteractions)([_,D,M,O]),$=(0,a.useTransitionStatus)(L,{duration:140}),F=r.props.ref,B=(0,a.useMergeRefs)([T.setReference,F??null]),z=p||null==e||!1===e;if(n.useEffect(()=>{z&&E&&k(!1)},[z,E,k]),z)return(0,t.jsxs)(t.Fragment,{children:[r,null]});let W=I({...r.props,ref:B});v||delete W["aria-describedby"];let q=n.cloneElement(r,W);return(0,t.jsxs)(t.Fragment,{children:[q,$.isMounted?(0,t.jsx)(a.FloatingPortal,{root:b??void 0,children:(0,t.jsx)("div",{ref:T.setFloating,style:{...R,visibility:E&&!P?"hidden":void 0},"data-state":"open"===$.status?"open":"closed","data-side":L.placement,"data-instant":C?"":void 0,className:(0,l.cn)("ds-tooltip material-raised copy-13 pointer-events-none z-[60] max-w-[18rem] rounded-[var(--radius-sm)] px-2.5 py-1.5 text-[var(--foreground)]",h),...A(),children:e})}):null]})},"TooltipProvider",0,function(e){let a,o,i,l,c=(0,r.c)(8),{delayDuration:u,children:d}=e,f=void 0===u?250:u,m=n.useRef(null),[p,v]=n.useState(!1);c[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>m.current,c[0]=a):a=c[0];let h=a;c[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{m.current=e,v(null!==e)},c[1]=o):o=c[1];let b=o;c[2]!==p||c[3]!==f?(i={anyOpen:p,getCurrentId:h,setCurrentId:b,delayDuration:f},c[2]=p,c[3]=f,c[4]=i):i=c[4];let g=i;return c[5]!==d||c[6]!==g?(l=(0,t.jsx)(s.Provider,{value:g,children:d}),c[5]=d,c[6]=g,c[7]=l):l=c[7],l}])},539698,e=>{"use strict";var t=e.i(397487),r=e.i(592009),n=e.i(929365);e.s(["Trace",0,function(e){let a,o,i,l,s,c,u,d,f=(0,r.c)(17);f[0]!==e?({className:o,dense:i,surface:s,children:a,...l}=e,f[0]=e,f[1]=a,f[2]=o,f[3]=i,f[4]=l,f[5]=s):(a=f[1],o=f[2],i=f[3],l=f[4],s=f[5]);let m=void 0===s?"default":s;return f[6]!==o||f[7]!==i||f[8]!==m?(c=(0,n.cn)("none"===m?"relative":(0,n.cn)("flat"===m?"bg-[var(--surface)]":"ds-trace-surface","relative overflow-hidden rounded-[var(--radius-lg)] border border-[var(--border-soft)] px-4",i?"py-2":"py-3"),o),f[6]=o,f[7]=i,f[8]=m,f[9]=c):c=f[9],f[10]!==a?(u=(0,t.jsx)("div",{role:"list",className:"ds-trace-list flex flex-col",children:a}
2),f[10]=a,f[11]=u):u=f[11],f[12]!==l||f[13]!==m||f[14]!==c||f[15]!==u?(d=(0,t.jsx)("div",{"data-surface":m,className:c,...l,children:u}),f[12]=l,f[13]=m,f[14]=c,f[15]=u,f[16]=d):d=f[16],d},"TraceLine",0,function(e){let a,o,i,l,s,c,u,d=(0,r.c)(25),{id:f,time:m,actor:p,state:v,children:h,detail:b,className:g,showActiveCaret:x,enter:y}=e,w=void 0===v?"done":v,j=void 0===x||x,E=!!(m||p),C=E?"true":"false",N=(void 0===y||y)&&"chat-message-enter";return d[0]!==g||d[1]!==N?(a=(0,n.cn)("ds-trace-row",N,g),d[0]=g,d[1]=N,d[2]=a):a=d[2],d[3]!==p||d[4]!==E||d[5]!==m?(o=E?(0,t.jsxs)("span",{className:"ds-trace-meta",children:[m?(0,t.jsx)("span",{className:"ds-trace-time",children:m}):null,p?(0,t.jsx)("span",{className:"ds-trace-actor",children:p}):null]}):null,d[3]=p,d[4]=E,d[5]=m,d[6]=o):o=d[6],d[7]!==j||d[8]!==w?(i="active"===w&&j?(0,t.jsx)("span",{className:"ds-caret ml-0.5","aria-hidden":!0}):null,d[7]=j,d[8]=w,d[9]=i):i=d[9],d[10]!==h||d[11]!==i?(l=(0,t.jsxs)("span",{className:"ds-trace-body",children:[h,i]}),d[10]=h,d[11]=i,d[12]=l):l=d[12],d[13]!==o||d[14]!==l?(s=(0,t.jsxs)("div",{className:"ds-trace-main",children:[o,l]}),d[13]=o,d[14]=l,d[15]=s):s=d[15],d[16]!==b?(c=b?(0,t.jsx)("div",{className:"ds-trace-detail",children:b}):null,d[16]=b,d[17]=c):c=d[17],d[18]!==f||d[19]!==w||d[20]!==s||d[21]!==c||d[22]!==C||d[23]!==a?(u=(0,t.jsxs)("div",{id:f,role:"listitem","data-state":w,"data-has-meta":C,className:a,children:[s,c]}),d[18]=f,d[19]=w,d[20]=s,d[21]=c,d[22]=C,d[23]=a,d[24]=u):u=d[24],u},"nowTime",0,function(){let e=new Date,t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0"),n=String(e.getSeconds()).padStart(2,"0"),a=String(e.getMilliseconds()).padStart(3,"0");return`${t}:${r}:${n}.${a}`}])},641576,e=>{"use strict";var t=e.i(821770),r=e.i(239477),n=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))o.call(t,r)&&l(e,r,t[r]);if(a)for(var r of a(t))i.call(t,r)&&l(e,r,t[r]);return e};let c=(0,t.forwardRef)((e,n)=>{let a=s(s({},t.useContext(r.IconoirContext)),e);return t.createElement("svg",s({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:n},a),t.createElement("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["default",0,c])},355275,e=>{"use strict";var t=e.i(821770),r=e.i(239477),n=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))o.call(t,r)&&l(e,r,t[r]);if(a)for(var r of a(t))i.call(t,r)&&l(e,r,t[r]);return e};let c=(0,t.forwardRef)((e,n)=>{let a=s(s({},t.useContext(r.IconoirContext)),e);return t.createElement("svg",s({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:n},a),t.createElement("path",{d:"M21.8883 13.5C21.1645 18.3113 17.013 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C16.1006 2 19.6248 4.46819 21.1679 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["default",0,c])},495602,e=>{"use strict";var t=e.i(821770),r=e.i(239477),n=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))o.call(t,r)&&l(e,r,t[r]);if(a)for(var r of a(t))i.call(t,r)&&l(e,r,t[r]);return e};let c=(0,t.forwardRef)((e,n)=>{let a=s(s({},t.useContext(r.IconoirContext)),e);return t.createElement("svg",s({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:n},a),t.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12 16V4M12 4L15.5 7.5M12 4L8.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["Upload",0,c],495602)},347590,e=>{"use strict";var t=e.i(821770),r=e.i(239477),n=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))o.call(t,r)&&l(e,r,t[r]);if(a)for(var r of a(t))i.call(t,r)&&l(e,r,t[r]);return e};let c=(0,t.forwardRef)((e,n)=>{let a=s(s({},t.useContext(r.IconoirContext)),e);return t.createElement("svg",s({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:n},a),t.createElement("path",{d:"M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))});e.s(["Xmark",0,c],347590)}]);
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.