1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,569576,e=>{"use strict";let t=(0,e.i(449372).default)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",()=>t],569576)},214305,e=>{"use strict";var t=e.i(26863),r=e.i(122525),n=e.i(566475);function a({messages:e,onSend:a,isTyping:s=!1,placeholder:o="Type a message...",className:l="",assistantAvatarUrl:i=null,userAvatarUrl:c=null,userInitials:d=null,defaultCollapsed:u=!1,unreadCount:m=0,onExpandedChange:x,onClear:p,onShare:f,onReconnect:h,title:b,autoFocus:g=!1,tabCompleteValue:v,prefillValue:y,onInputFocus:w,onInputBlur:k,disabled:j=!1,renderCustomContent:N,compact:C=!1,hideCollapse:z=!1,onClose:$,glassSurfaceClassName:S,stretch:E=!1,toolbarAction:D,callControls:_,renderMessageContent:P,onInputReady:T,inputOverride:R,variant:I="flat",bubbleBgClass:M,inputBgClass:A,glassBackground:H,headerSlot:L,headerActions:F,headerClassName:O,isGenerating:U=!1,onStop:W}){let B=C?"text-[11px]":"text-xs",G=C?"text-[9px]":"text-[10px]",Y=C?"w-5 h-5 text-[9px]":"w-6 h-6 text-[10px]",X=M??("glass"===I?"bg-brand-page":"bg-brand-elevated"),q=`${A??X} shadow-inner dark:shadow-[inset_0_2px_6px_rgba(0,0,0,0.6),inset_0_1px_2px_rgba(0,0,0,0.4)]`,[V,K]=(0,r.useState)(!u),[J,Z]=(0,r.useState)({}),[Q,ee]=(0,r.useState)({}),[et,er]=(0,r.useState)(!1),en=(0,r.useRef)(e.length),ea=(0,r.useRef)(null),es=(0,r.useRef)(null);(0,r.useEffect)(()=>{let t=en.current,r=e.length;if(t>0&&0===r){er(!0);let e=setTimeout(()=>er(!1),50);return()=>clearTimeout(e)}0===t&&r>0&&(er(!0),requestAnimationFrame(()=>er(!1))),en.current=r},[e.length]),(0,r.useEffect)(()=>{K(!u)},[u]);let eo=e=>{K(e),x?.(e)};(0,r.useEffect)(()=>{g&&es.current&&es.current.focus()},[g]),(0,r.useEffect)(()=>{T&&T(()=>es.current?.focus())},[]);let el=(0,r.useRef)(!1),[ei,ec]=(0,r.useState)(!!y);(0,r.useEffect)(()=>{let e=es.current;e&&!el.current&&(void 0!==y?(e.value=y,e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,120)}px`,ec(!0)):(e.style.height="auto",ec(!1)))},[y]);let ed=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let e=ea.current;if(!e)return;let t=()=>{ed.current=e.scrollHeight-e.scrollTop-e.clientHeight>60};return e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)},[]),(0,r.useEffect)(()=>{let e=ea.current;e&&!ed.current&&(e.scrollTop=e.scrollHeight)},[e,s]);let eu=e=>{e.preventDefault();let t=es.current;t&&t.value.trim()&&(a(t.value.trim()),t.value="",t.style.height="auto",el.current=!1,ec(!1),V||eo(!0))},em=!z||e.length>0||!!b||!!_||!!D||!!L||!!F,ex=(0,t.jsxs)("div",{className:`flex flex-col w-full overflow-hidden${"glass"===I?" relative rounded-2xl":""}${E?" h-full":""} ${l}`,children:[em&&(0,t.jsxs)("div",{className:`flex items-center justify-between gap-2 px-3 pt-2 pb-1 ${O??""}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[_?.state==="active"?(0,t.jsx)("span",{className:"text-[12px] font-mono font-medium text-brand-text-muted tabular-nums",children:_.duration}):_?.state==="ready"?(0,t.jsx)("span",{className:"text-[12px] font-medium text-brand-text-muted",children:"Call ended"}):(0,t.jsxs)(t.Fragment,{children:[b&&(0,t.jsx)("span",{className:"text-[12px] font-medium text-brand-text-secondary truncate",children:b}),D&&(0,t.jsxs)("button",{type:"button",onClick:D.onClick,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,className:`relative flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium overflow-hidden min-w-0 transition-colors ${"cta"===D.variant?"text-emerald-500 hover:text-emerald-400 hover:bg-emerald-500/10":"accent"===D.variant?"text-brand-accent hover:text-brand-accent-bright hover:bg-brand-accent-subtle":"text-brand-text-muted hover:text-brand-text-primary hover:bg-brand-hover"}`,children:[D.icon?(0,t.jsx)("span",{className:"flex-shrink-0",children:D.icon}):"cta"===D.variant&&(0,t.jsx)(n.PhoneIcon,{size:12,className:"flex-shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:D.label}),D.meta&&(0,t.jsx)("span",{className:"flex-shrink-0 text-[10px] text-brand-text-muted opacity-60",children:D.meta})]})]}),!_&&h&&(0,t.jsxs)("button",{type:"button",onClick:h,className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium text-emerald-500 hover:text-emerald-400 hover:bg-emerald-500/10 transition-colors","aria-label":"Jump back in",children:[(0,t.jsx)(n.PhoneIcon,{size:12}),(0,t.jsx)("span",{children:"Jump back in"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[F,_?.state==="ringing"&&(0,t.jsx)("button",{type:"button",onClick:_.onStartCall,className:"w-6 h-6 flex items-center justify-center rounded text-brand-accent animate-vibrate","aria-label":"Start call",children:(0,t.jsx)(n.PhoneIcon,{size:14})}),_?.state==="ready"&&(0,t.jsx)("button",{type:"button",onClick:_.onStartCall,className:"w-6 h-6 flex items-center justify-center rounded text-green-500 hover:text-green-400 transition-colors","aria-label":"Start new call",children:(0,t.jsx)(n.PhoneIcon,{size:14})}),_?.state==="active"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:_.onToggleMute,className:`w-6 h-6 flex items-center justify-center rounded transition-colors ${_.isMuted?"text-red-500 hover:text-red-400":"text-brand-text-muted hover:text-brand-text-primary"}`,"aria-label":_.isMuted?"Unmute microphone":"Mute microphone",children:_.isMuted?(0,t.jsx)(n.MicOffIcon,{size:14}):(0,t.jsx)(n.MicIcon,{size:14})}),(0,t.jsx)("button",{type:"button",onClick:_.onEndCall,className:"w-6 h-6 flex items-center justify-center rounded text-red-500 hover:text-red-400 hover:bg-red-500/10 transition-colors","aria-label":"End call",children:(0,t.jsx)(n.HangupIcon,{size:14})})]}),!_&&f&&e.length>0&&(0,t.jsxs)("button",{type:"button",onClick:f,className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium text-brand-text-muted hover:text-brand-text-primary hover:bg-brand-hover transition-colors","aria-label":"Share this experience",children:[(0,t.jsx)("span",{children:"Share this experience"}),(0,t.jsx)(n.ExternalLinkIcon,{size:11})]}),!z&&!V&&(0,t.jsxs)("button",{type:"button",onClick:()=>$?$():eo(!0),className:"flex items-center gap-1.5 text-[12px] font-medium text-brand-text-muted hover:text-brand-text-primary transition-colors",style:{opacity:0,animation:"chatMinFadeIn 200ms ease-out 300ms forwards"},"aria-label":$?"Close chat":"Expand chat",children:[m>0&&(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-accent"}),(0,t.jsx)("span",{children:"Open chat"}),(0,t.jsx)(n.ChevronUpIcon,{})]})]})]}),L,(0,t.jsx)("div",{className:"grid transition-[grid-template-rows] duration-300 ease-in-out min-h-0 flex-1",style:{gridTemplateRows:V?"1fr":"0fr"}
1,children:(0,t.jsx)("div",{className:"overflow-hidden min-h-0",children:(0,t.jsxs)("div",{ref:ea,className:"flex flex-col gap-3 px-3 pt-1 pb-2 overflow-y-auto max-h-full transition-opacity duration-200 ease-in-out",style:{opacity:+!et},role:"log","aria-label":"Chat messages",children:[e.map((e,a)=>{let s,o,l,u;return(0,t.jsxs)(r.default.Fragment,{children:["__HIDDEN__"!==e.content&&(0,t.jsxs)("div",{className:`flex gap-2.5 items-start ${"user"===e.role?"flex-row-reverse":"flex-row"}`,children:[("assistant"===e.role?i:c)?(0,t.jsx)("img",{src:"assistant"===e.role?i:c,alt:"assistant"===e.role?"Vibe":"You",className:`flex-shrink-0 ${Y} rounded-lg object-cover`}):(0,t.jsx)("div",{className:`flex-shrink-0 ${Y} flex items-center justify-center rounded-lg font-bold ${"assistant"===e.role?"bg-brand-elevated text-brand-accent-light":`${X} text-brand-text-muted`}`,children:"assistant"===e.role?"VS":d||"You"}),(0,t.jsxs)("div",{className:"max-w-[80%]",children:[(0,t.jsx)("div",{className:`${G} font-semibold mb-1 ${"assistant"===e.role?"text-brand-chat-label-color text-left":"text-brand-text-muted text-right"}`,children:"assistant"===e.role?"VibeSell":"You"}),(s=e.tools?.length??0,o=e.sources?.length??0,l=s>0||e.isStreaming,u=o>0,l||u||e.meta?(0,t.jsxs)("div",{className:"mb-1.5 space-y-1",children:[l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>ee(e=>({...e,[a]:!e[a]})),className:"flex items-center gap-1.5 text-[11px] text-brand-text-muted transition-colors hover:text-brand-text-secondary",children:[e.isStreaming?(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-brand-accent animate-pulse flex-shrink-0"}):(0,t.jsx)(n.ChevronRightIcon,{size:10,className:`flex-shrink-0 transition-transform duration-150 ${Q[a]?"rotate-90":""}`}),e.isStreaming?`Using ${s} tool${1!==s?"s":""}...`:`Used ${s} tool${1!==s?"s":""}`]}),e.isStreaming&&!Q[a]&&s>0&&(0,t.jsx)("div",{className:"mt-1 pl-3.5",children:(0,t.jsxs)("div",{className:"flex items-start gap-1.5 text-[11px] text-brand-text-muted",children:[(0,t.jsx)("span",{className:"flex-shrink-0 mt-px opacity-50",children:"â"}),(0,t.jsx)("span",{children:e.tools[s-1].name})]})}),Q[a]&&s>0&&(0,t.jsx)("div",{className:"mt-1 space-y-0.5 pl-3.5",children:e.tools.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-start gap-1.5 text-[11px] text-brand-text-muted",children:[(0,t.jsx)("span",{className:"flex-shrink-0 mt-px opacity-50",children:"â"}),(0,t.jsx)("span",{children:e.name})]},r))})]}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>Z(e=>({...e,[a]:!e[a]})),className:"flex items-center gap-1.5 text-[11px] text-brand-text-muted transition-colors hover:text-brand-text-secondary",children:[(0,t.jsx)(n.ChevronRightIcon,{size:10,className:`flex-shrink-0 transition-transform duration-150 ${J[a]?"rotate-90":""}`}),`${o} source${1!==o?"s":""}`]}),J[a]&&(0,t.jsx)("div",{className:"mt-1 space-y-0.5 pl-3.5",children:e.sources.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-start gap-1.5 text-[11px] text-brand-text-muted",children:[(0,t.jsx)("span",{className:"flex-shrink-0 mt-px opacity-50",children:"â"}),(0,t.jsx)("a",{href:e.url??"#",target:e.url?.startsWith("http")?"_blank":void 0,rel:e.url?.startsWith("http")?"noopener noreferrer":void 0,className:"text-brand-accent hover:underline",onClick:e.url?void 0:e=>e.preventDefault(),children:e.name})]},r))})]})]}):null),e.content?(0,t.jsx)("div",{className:`${B} leading-relaxed px-3 py-2 rounded-xl ${"assistant"===e.role?`${X} text-brand-text-primary rounded-tl-[4px]`:`${X} text-brand-text-primary rounded-tr-[4px]`}`,children:P?P(e,a):"assistant"===e.role?e.content.split("\n").map((e,n)=>{let a=e.replace(/^(\s*)[-*]\s+(?=\S)/,"$1⢠"),s=function(e,r){let n,a=[],s=/\*\*(.+?)\*\*|\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g,o=0;for(;null!==(n=s.exec(e));)n.index>o&&a.push(e.slice(o,n.index)),void 0!==n[1]?a.push((0,t.jsx)("strong",{children:n[1]},`${r}-b-${n.index}`)):void 0!==n[2]&&void 0!==n[3]&&a.push((0,t.jsx)("a",{href:n[3],target:"_blank",rel:"noopener noreferrer",className:"underline text-brand-chat-action-color hover:opacity-80",children:n[2]},`${r}-a-${n.index}`)),o=n.index+n[0].length;return o<e.length&&a.push(e.slice(o)),a}(a,n),o=a.trimStart().startsWith("â¢");return(0,t.jsxs)(r.default.Fragment,{children:[n>
10&&!o&&(0,t.jsx)("br",{}),o?(0,t.jsx)("span",{className:"block pl-1 mt-1",children:s}):(0,t.jsx)("span",{children:s})]},n)}):e.content}):e.isStreaming&&(e.tools?.length??0)===0?(0,t.jsx)("div",{className:`w-fit px-3 py-2 rounded-xl ${X} rounded-tl-[4px]`,children:(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-text-muted animate-bounce",style:{animationDelay:"0ms"}}),(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-text-muted animate-bounce",style:{animationDelay:"150ms"}}),(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-text-muted animate-bounce",style:{animationDelay:"300ms"}})]})}):null]})]}),N?.(e,a)]},a)}),s&&!e.some(e=>e.isStreaming)&&(0,t.jsxs)("div",{className:"flex gap-2.5 items-start",children:[i?(0,t.jsx)("img",{src:i,alt:"Vibe",className:`flex-shrink-0 ${Y} rounded-lg object-cover`}):(0,t.jsx)("div",{className:`flex-shrink-0 ${Y} flex items-center justify-center rounded-lg font-bold bg-brand-elevated text-brand-accent-light`,children:"VS"}),(0,t.jsx)("div",{className:`px-3 py-2 rounded-xl ${X} rounded-bl-[4px]`,children:(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-text-muted animate-bounce",style:{animationDelay:"0ms"}}),(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-text-muted animate-bounce",style:{animationDelay:"150ms"}}),(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-brand-text-muted animate-bounce",style:{animationDelay:"300ms"}})]})})]})]})})}),(0,t.jsxs)("div",{className:"relative flex-shrink-0",children:[R?(0,t.jsx)("div",{className:`mx-3 mb-2.5 rounded-xl ${q} flex-shrink-0${!em?" mt-2.5":""}`,children:R}):(0,t.jsxs)("form",{onSubmit:eu,className:`flex items-center gap-1 mx-3 mb-2.5 rounded-xl ${q} flex-shrink-0${!em?" mt-2.5":""}`,children:[(0,t.jsx)("textarea",{ref:es,rows:1,placeholder:o,onKeyDown:e=>{if("Enter"!==e.key||e.shiftKey||(e.preventDefault(),!e.currentTarget.value.trim()&&v&&(e.currentTarget.value=v),eu(e)),"Tab"===e.key&&!e.currentTarget.value&&(v||o)){e.preventDefault();let t=e.currentTarget;t.value=v||o,t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,120)}px`}},onPaste:e=>{let t=e.clipboardData.getData("text");if(t!==t.trimEnd()){e.preventDefault();let r=e.currentTarget,n=r.selectionStart,a=r.selectionEnd,s=t.trimEnd();r.value=r.value.substring(0,n)+s+r.value.substring(a),r.selectionStart=r.selectionEnd=n+s.length,r.style.height="auto",r.style.height=`${Math.min(r.scrollHeight,120)}px`}},onFocus:()=>{el.current=!0,ec(!1),y&&es.current?.value===y&&es.current.select(),w?.()},onBlur:()=>{!es.current?.value.trim()&&(el.current=!1,y&&ec(!0)),k?.()},onInput:e=>{let t=e.currentTarget;t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,120)}px`},disabled:j,className:`flex-1 min-w-0 bg-transparent ${C?"text-xs":"text-sm"} text-brand-text-primary placeholder:text-brand-text-muted dark:placeholder:text-brand-text-secondary outline-none resize-none overflow-y-auto leading-relaxed pl-3 py-2.5${j?" opacity-50 cursor-not-allowed":""}`,style:{maxHeight:120},"aria-label":"Chat message input"}),U&&W?(0,t.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),W()},className:"flex-shrink-0 w-8 h-8 mr-2 flex items-center justify-center rounded-lg transition-colors text-brand-chat-send-color hover:bg-brand-hover","aria-label":"Stop generating",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})})}):(0,t.jsx)("button",{type:"submit",disabled:j,className:`flex-shrink-0 w-8 h-8 mr-2 flex items-center justify-center rounded-lg transition-colors ${ei?"text-brand-text-primary animate-[send-hint-bg_2s_ease-in-out_infinite]":"text-brand-chat-send-color hover:bg-brand-hover"}${j?" opacity-50 cursor-not-allowed":""}`,"aria-label":"Send message",children:(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,t.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]}),!z&&V&&(0,t.jsxs)("button",{type:"button",onClick:()=>$?$():eo(!1),className:"absolute -top-5 right-3 flex items-center gap-1 text-[11px] text-brand-text-muted hover:text-brand-text-primary transition-colors z-10",style:{opacity:0,animation:"chatMinFadeIn 200ms ease-out 300ms forwards"},"aria-label":$?"Close chat":"Minimize chat",children:[(0,t.jsx)("span",{children:"Minimize chat"}),(0,t.jsx)(n.ChevronDownIcon,{})]})]})]});return"glass"===I?(0,t.jsxs)("div",{className:`relative rounded-2xl shadow-[0_-4px_16px_rgba(0,0,0,0.06),0_8px_24px_rgba(0,0,0,0.08)] dark:shadow-[0_-4px_16px_rgba(0,0,0,0.2),0_8px_24px_rgba(0,0,0,0.3)]${E?" h-full":""}`,children:[(0,t.jsx)("div",{className:`absolute inset-0 rounded-2xl pointer-events-none [backface-visibility:hidden] [transform:translateZ(0)] ${S??"bg-white/80 [backdrop-filter:saturate(30%)_blur(40px)] dark:bg-white/[0.04] dark:[backdrop-filter:saturate(180%)_blur(16px)]"}`,children:H}),(0,t.jsx)("div",{className:`relative overflow-hidden rounded-2xl${E?" h-full":""}`,children:ex})]}):ex}e.s(["ChatInterface",()=>a])},367191,321731,e=>{"use strict";var t=e.i(26863);function r({size:e=40,isDark:r=!1,basePath:n="/assets",className:a=""}){let s=r?`${n}
1/interstella-inverted-sphere.png`:`${n}/interstella-blue-sphere.png`;return(0,t.jsx)("div",{className:`rounded-full overflow-hidden flex-shrink-0 ${a}`,style:{width:e,height:e},children:(0,t.jsx)("img",{src:s,alt:"VibeSell",width:e,height:e,className:"w-full h-full"})})}e.s(["FrozenSphere",()=>r],367191);var n=e.i(122525);let a=` 2attribute vec2 aPos; 3void main() { gl_Position = vec4(aPos, 0.0, 1.0); } 4`,s=` 5precision highp float; 6uniform vec2 uRes; 7uniform float uTime; 8uniform vec3 uC0; 9uniform vec3 uC1; 10uniform vec3 uC2; 11uniform vec3 uC3; 12uniform vec3 uHi; 13uniform vec3 uBase; 14uniform float uIntensity; 15uniform float uGrain; 16 17vec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; } 18vec4 mod289(vec4 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; } 19vec4 permute(vec4 x) { return mod289(((x * 34.0) + 1.0) * x); } 20vec4 taylorInvSqrt(vec4 r) { return 1.79284291400159 - 0.85373472095314 * r; } 21vec3 fade(vec3 t) { return t * t * t * (t * (t * 6.0 - 15.0) + 10.0); } 22 23float pnoise(vec3 P, vec3 rep) { 24 vec3 Pi0 = mod(floor(P), rep); 25 vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); 26 Pi0 = mod289(Pi0); 27 Pi1 = mod289(Pi1); 28 vec3 Pf0 = fract(P); 29 vec3 Pf1 = Pf0 - vec3(1.0); 30 vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); 31 vec4 iy = vec4(Pi0.yy, Pi1.yy); 32 vec4 iz0 = Pi0.zzzz; 33 vec4 iz1 = Pi1.zzzz; 34 vec4 ixy = permute(permute(ix) + iy); 35 vec4 ixy0 = permute(ixy + iz0); 36 vec4 ixy1 = permute(ixy + iz1); 37 vec4 gx0 = ixy0 * (1.0 / 7.0); 38 vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5; 39 gx0 = fract(gx0); 40 vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0); 41 vec4 sz0 = step(gz0, vec4(0.0)); 42 gx0 -= sz0 * (step(0.0, gx0) - 0.5); 43 gy0 -= sz0 * (step(0.0, gy0) - 0.5); 44 vec4 gx1 = ixy1 * (1.0 / 7.0); 45 vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5; 46 gx1 = fract(gx1); 47 vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1); 48 vec4 sz1 = step(gz1, vec4(0.0)); 49 gx1 -= sz1 * (step(0.0, gx1) - 0.5); 50 gy1 -= sz1 * (step(0.0, gy1) - 0.5); 51 vec3 g000 = vec3(gx0.x, gy0.x, gz0.x); 52 vec3 g100 = vec3(gx0.y, gy0.y, gz0.y); 53 vec3 g010 = vec3(gx0.z, gy0.z, gz0.z); 54 vec3 g110 = vec3(gx0.w, gy0.w, gz0.w); 55 vec3 g001 = vec3(gx1.x, gy1.x, gz1.x); 56 vec3 g101 = vec3(gx1.y, gy1.y, gz1.y); 57 vec3 g011 = vec3(gx1.z, gy1.z, gz1.z); 58 vec3 g111 = vec3(gx1.w, gy1.w, gz1.w); 59 vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); 60 g000 *= norm0.x; g010 *= norm0.y; g100 *= norm0.z; g110 *= norm0.w; 61 vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); 62 g001 *= norm1.x; g011 *= norm1.y; g101 *= norm1.z; g111 *= norm1.w; 63 float n000 = dot(g000, Pf0); 64 float n100 = dot(g100, vec3(Pf1.x, Pf0.yz)); 65 float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z)); 66 float n110 = dot(g110, vec3(Pf1.xy, Pf0.z)); 67 float n001 = dot(g001, vec3(Pf0.xy, Pf1.z)); 68 float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z)); 69 float n011 = dot(g011, vec3(Pf0.x, Pf1.yz)); 70 float n111 = dot(g111, Pf1); 71 vec3 fade_xyz = fade(Pf0); 72 vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z); 73 vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y); 74 float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x); 75 return 2.2 * n_xyz; 76} 77 78// Hero ShaderSphere parameters (website demo/stages.ts BASE_SHADER); speed 79// halved â the hero is a backdrop you glance at, this sits beside your work. 80const float SPEED = 0.15; 81const float DENSITY = 0.8; 82const float STRENGTH = 0.3; 83const float FREQUENCY = 5.5; 84const float AMPLITUDE = 3.2; 85// How much of the sphere the surface looks onto. The hero zooms into a small 86// patch; a button needs more of it to show more than one flat glow. 87const float PATCH = 1.4; 88 89vec3 rotY(vec3 v, float a) { 90 float s = sin(a), c = cos(a); 91 return mat3(c, 0.0, -s, 0.0, 1.0, 0.0, s, 0.0, c) * v; 92} 93 94// Displacement of the sphere surface seen through screen point p, with the 95// library's latitude-driven twist applied to the sample direction. The noise 96// domain slides toward -x so features drift left to right on screen. 97float field(vec2 p, float t) { 98 vec3 n = normalize(vec3(p * PATCH, 1.0)); 99 float angle = sin((0.5 + 0.5 * n.y) * FREQUENCY + t) * AMPLITUDE * 0.25; 100 vec3 q = rotY(n, -angle); 101 return pnoise((q + vec3(-t, 0.15 * t, 0.6 * t)) * DENSITY * 2.0, vec3(10.0)) * STRENGTH; 102} 103 104float hash(vec2 p) { 105 return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453); 106} 107 108void main() { 109 float t = uTime * SPEED; 110 vec2 p = (gl_FragCoord.xy - 0.5 * uRes) / uRes.x; 111 112 float d = field(p, t); 113 vec2 e = vec2(0.015, 0.0); 114 float dx = field(p + e.xy, t) - d; 115 float dy = field(p + e.yx, t) - d; 116 vec3 nrm = normalize(vec3(-dx / e.x * 0.35, -dy / e.x * 0.35, 1.0)); 117 118 vec3 L = normalize(vec3(0.45, 0.55, 0.7)); 119 float diffuse = clamp(dot(nrm, L), 0.0, 1.0); 120 float spec = pow(clamp(dot(reflect(-L, nrm), vec3(0.0, 0.0, 1.0)), 0.0, 1.0), 18.0); 121 122 // The displacement mostly sits well inside \xb1STRENGTH, so grade on a 123 // narrower window or everything lands in the mid tone. 124 float s = clamp(smoothstep(-0.14, 0.14, d) * 0.8 + (diffuse - 0.6) * 0.9 + 0.12, 0.0, 1.0); 125 vec3 col = s < 0.35 ? mix(uC0, uC1, s / 0.35)
126 : s < 0.7 ? mix(uC1, uC2, (s - 0.35) / 0.35) 127 : mix(uC2, uC3, (s - 0.7) / 0.3); 128 col += uHi * spec * 0.6; 129 130 col = mix(uBase, col, uIntensity); 131 col += (hash(gl_FragCoord.xy + fract(uTime * 7.0) * 97.0) - 0.5) * uGrain; 132 gl_FragColor = vec4(clamp(col, 0.0, 1.0), 1.0); 133} 134`,o=(e,t,r)=>[e/255,t/255,r/255],l={light:{c0:o(238,241,255),c1:o(198,210,255),c2:o(140,164,255),c3:o(92,122,255),hi:o(255,255,255),base:o(244,245,250)},dark:{c0:o(0,0,113),c1:o(0,27,140),c2:o(0,33,218),c3:o(26,31,255),hi:o(20,113,252),base:o(12,12,24)}},i=1e3/30,c=new Set,d=null,u=null,m=!1,x={},p=0,f=0,h=0,b=null,g="function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function v(e,t,r){let n=e.createShader(t);return n?(e.shaderSource(n,r),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS))?n:(console.error("AuroraCanvas shader:",e.getShaderInfoLog(n)),e.deleteShader(n),null):null}function y(e){let t=v(e,e.VERTEX_SHADER,a),r=v(e,e.FRAGMENT_SHADER,s);if(!t||!r)return!1;let n=e.createProgram();if(!n||(e.attachShader(n,t),e.attachShader(n,r),e.linkProgram(n),!e.getProgramParameter(n,e.LINK_STATUS)))return!1;e.useProgram(n);let o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),e.STATIC_DRAW);let l=e.getAttribLocation(n,"aPos");for(let t of(e.enableVertexAttribArray(l),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),x={},["uRes","uTime","uC0","uC1","uC2","uC3","uHi","uBase","uIntensity","uGrain"]))x[t]=e.getUniformLocation(n,t);return!0}function w(e){e.shown&&(e.shown=!1,e.canvas.style.opacity="0",e.canvas.parentElement?.classList.remove("brand-aurora--gl"))}function k(){f&&cancelAnimationFrame(f),p&&clearTimeout(p),f=0,p=0}function j(e){f||p||!c.size||document.hidden||(p=window.setTimeout(()=>{p=0,f=requestAnimationFrame(N)},e))}function N(e){if(f=0,!c.size||document.hidden)return;let t=performance.now();!function(e){if(!u||!d||u.isContextLost())return;let t=document.documentElement.classList.contains("dark")?"dark":"light",r=l[t],n=g?12:(e-h)/1e3,a=Math.min(window.devicePixelRatio||1,2),s=[],o=1,i=1;if(c.forEach(r=>{let n;if("dark"===r.opts.themes&&"dark"!==t)return void w(r);if(n=r.canvas.parentElement,!(r.onScreen&&n&&(!n.checkVisibility||n.checkVisibility({opacityProperty:!0,visibilityProperty:!0}))))return;let l=r.opts.resolution??a,c=Math.max(1,Math.round(r.canvas.clientWidth*l)),d=Math.max(1,Math.round(r.canvas.clientHeight*l));0===r.canvas.clientWidth||0===r.canvas.clientHeight||(e-r.lastDrawn>=1e3/Math.min(r.opts.fps,30)-4||!r.shown||r.canvas.width!==c||r.canvas.height!==d)&&(s.push({s:r,w:c,h:d}),o=Math.max(o,c),i=Math.max(i,d))}),s.length)for(let{s:t,w:a,h:l}of((d.width<o||d.height<i)&&(d.width=Math.max(d.width,o),d.height=Math.max(d.height,i)),u.uniform1f(x.uTime,n),u.uniform3fv(x.uC0,r.c0),u.uniform3fv(x.uC1,r.c1),u.uniform3fv(x.uC2,r.c2),u.uniform3fv(x.uC3,r.c3),u.uniform3fv(x.uHi,r.hi),u.uniform3fv(x.uBase,r.base),s))(t.canvas.width!==a||t.canvas.height!==l)&&(t.canvas.width=a,t.canvas.height=l),u.viewport(0,0,a,l),u.uniform2f(x.uRes,a,l),u.uniform1f(x.uIntensity,t.opts.intensity),u.uniform1f(x.uGrain,t.opts.grain),u.drawArrays(u.TRIANGLES,0,3),t.ctx.drawImage(d,0,d.height-l,a,l,0,0,a,l),t.lastDrawn=e,t.shown||(t.shown=!0,t.canvas.style.opacity="1",t.canvas.parentElement?.classList.add("brand-aurora--gl"))}(e),j(Math.max(0,(g?500:i)-(performance.now()-t)))}function C(){document.hidden?k():j(0)}function z({intensity:e=1,resolution:r,themes:a="both",grain:s=.06,fps:o=30,className:l="brand-aurora__canvas"}){let i=(0,n.useRef)(null),x=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=i.current,n=t?.getContext("2d",{alpha:!1});if(!t||!n)return;let l={canvas:t,ctx:n,opts:{intensity:e,resolution:r,themes:a,grain:s,fps:o},shown:!1,onScreen:!0,lastDrawn:0};if(x.current=l,(!(!u||u.isContextLost())||!m&&!("u"<typeof document)&&(((d=document.createElement("canvas")).width=1,d.height=1,(u=d.getContext("webgl",{alpha:!1,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!1,powerPreference:"low-power"}))&&y(u))?(d.addEventListener("webglcontextlost",e=>
134{e.preventDefault(),k(),c.forEach(w)}),d.addEventListener("webglcontextrestored",()=>{u&&y(u)&&j(0)}),!0):(m=!0,u=null,!1)))&&(c.size||(h=h||performance.now(),document.addEventListener("visibilitychange",C),b=new IntersectionObserver(e=>{for(let t of e)c.forEach(e=>{e.canvas===t.target&&(e.onScreen=t.isIntersecting)});j(0)})),c.add(l),b?.observe(l.canvas),j(0),1))return()=>{b?.unobserve(l.canvas),w(l),c.delete(l),c.size||(k(),b?.disconnect(),b=null,document.removeEventListener("visibilitychange",C)),x.current=null}},[]),(0,n.useEffect)(()=>{x.current&&(x.current.opts={intensity:e,resolution:r,themes:a,grain:s,fps:o})},[e,r,a,s,o]),(0,t.jsx)("canvas",{ref:i,"aria-hidden":"true",className:l})}e.s(["AuroraCanvas",()=>z],321731)},147895,e=>{"use strict";let t=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),r=[],n=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let a=e[t],s=r.nextPart.get(a);if(s){let r=n(e,t+1,s);if(r)return r}let o=r.validators;if(null===o)return;let l=0===t?e.join("-"):e.slice(t).join("-"),i=o.length;for(let e=0;e<i;e++){let t=o[e];if(t.validator(l))return t.classGroupId}},a=(e,r)=>{let n=t();for(let t in e)s(e[t],n,t,r);return n},s=(e,t,r,n)=>{let a=e.length;for(let s=0;s<a;s++)o(e[s],t,r,n)},o=(e,t,r,n)=>{"string"==typeof e?l(e,t,r):"function"==typeof e?i(e,t,r,n):c(e,t,r,n)},l=(e,t,r)=>{(""===e?t:d(t,e)).classGroupId=r},i=(e,t,r,n)=>{u(e)?s(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},c=(e,t,r,n)=>{let a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){let[o,l]=a[e];s(l,d(t,o),r,n)}},d=(e,r)=>{let n=e,a=r.split("-"),s=a.length;for(let e=0;e<s;e++){let r=a[e],s=n.nextPart.get(r);s||(s=t(),n.nextPart.set(r,s)),n=s}return n},u=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,m=[],x=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),p=/\s+/,f=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=f(e[n]))&&(r&&(r+=" "),r+=t);return r},h=[],b=e=>{let t=t=>t[e]||h;return t.isThemeGetter=!0,t},g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v=/^\((?:(\w[\w-]*):)?(.+)\)$/i,y=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,C=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>y.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),S=e=>!!e&&Number.isInteger(Number(e)),E=e=>e.endsWith("%")&&$(e.slice(0,-1)),D=e=>w.test(e),_=()=>!0,P=e=>k.test(e)&&!j.test(e),T=()=>!1,R=e=>N.test(e),I=e=>C.test(e),M=e=>!H(e)&&!Y(e),A=e=>ee(e,ea,T),H=e=>g.test(e),L=e=>ee(e,es,P),F=e=>ee(e,eo,$),O=e=>ee(e,ei,_),U=e=>ee(e,el,T),W=e=>ee(e,er,T),B=e=>ee(e,en,I),G=e=>ee(e,ec,R),Y=e=>v.test(e),X=e=>et(e,es),q=e=>et(e,el),V=e=>et(e,er),K=e=>et(e,ea),J=e=>et(e,en),Z=e=>et(e,ec,!0),Q=e=>et(e,ei,!0),ee=(e,t,r)=>{let n=g.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},et=(e,t,r=!1)=>{let n=v.exec(e);return!!n&&(n[1]?t(n[1]):r)},er=e=>"position"===e||"percentage"===e,en=e=>"image"===e||"url"===e,ea=e=>"length"===e||"size"===e||"bg-size"===e,es=e=>"length"===e,eo=e=>"number"===e,el=e=>"family-name"===e,ei=e=>"number"===e||"weight"===e,ec=e=>"shadow"===e,ed=((e,...t)=>{let s,o,l,i,c=e=>{let t=o(e);if(t)return t;let r=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:s}=t,o=[],l=e.trim().split(p),i="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:x}=r(t);if(c){i=t+(i.length>0?" "+i:i);continue}let p=!!x,f=n(p?m.substring(0,x):m);if(!f){if(!p||!(f=n(m))){i=t+(i.length>0?" "+i:i);continue}p=!1}let h=0===d.length?"":1===d.length?d[0]:s(d).join(":"),b=u?h+"!":h,g=b+f;if(o.indexOf(g)>-1)continue;o.push(g);let v=a(f,p);for(let e=0;e<v.length;++e){let t=v[e];o.push(b+t)}i=t+(i.length>0?" "+i:i)}return i})(e,s);return l(e,r),r};return i=d=>{var u;let p;return o=(s={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),a=(a,s)=>{r[a]=s,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}})((u=t.reduce((e,t)=>
134t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,a=0,s=0,o=e.length;for(let l=0;l<o;l++){let o=e[l];if(0===n&&0===a){if(":"===o){r.push(e.slice(s,l)),s=l+1;continue}if("/"===o){t=l;continue}}"["===o?n++:"]"===o?n--:"("===o?a++:")"===o&&a--}let l=0===r.length?e:e.slice(s),i=l,c=!1;return l.endsWith("!")?(i=l.slice(0,-1),c=!0):l.startsWith("!")&&(i=l.slice(1),c=!0),x(r,c,i,t&&t>s?t-s:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):x(m,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(u),sortModifiers:(p=new Map,u.orderSensitiveModifiers.forEach((e,t)=>{p.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let a=e[n],s="["===a[0],o=p.has(a);s||o?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(a)):r.push(a)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return a(r,t)})(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,a;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(a=t.slice(0,n))?"arbitrary.."+a:void 0)}let a=e.split("-"),s=+(""===a[0]&&a.length>1);return n(a,s,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],n=s[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let r=0;r<t.length;r++)e[n.length+r]=t[r];return e}return t}return n||r}return s[e]||r}}})(u)}).cache.get,l=s.cache.set,i=c,c(d)},(...e)=>i(((...e)=>{let t,r,n=0,a="";for(;n<e.length;)(t=e[n++])&&(r=f(t))&&(a&&(a+=" "),a+=r);return a})(...e))})(()=>{let e=b("color"),t=b("font"),r=b("text"),n=b("font-weight"),a=b("tracking"),s=b("leading"),o=b("breakpoint"),l=b("container"),i=b("spacing"),c=b("radius"),d=b("shadow"),u=b("inset-shadow"),m=b("text-shadow"),x=b("drop-shadow"),p=b("blur"),f=b("perspective"),h=b("aspect"),g=b("ease"),v=b("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),Y,H],j=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],C=()=>[Y,H,i],P=()=>[z,"full","auto",...C()],T=()=>[S,"none","subgrid",Y,H],R=()=>["auto",{span:["full",S,Y,H]},S,Y,H],I=()=>[S,"auto",Y,H],ee=()=>["auto","min","max","fr",Y,H],et=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...C()],ea=()=>[z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],es=()=>[z,"screen","full","dvw","lvw","svw","min","max","fit",...C()],eo=()=>[z,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],el=()=>[e,Y,H],ei=()=>[...w(),V,W,{position:[Y,H]}],ec=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ed=()=>["auto","cover","contain",K,A,{size:[Y,H]}],eu=()=>[E,X,L],em=()=>["","none","full",c,Y,H],ex=()=>["",$,X,L],ep=()=>["solid","dashed","dotted","double"],ef=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[$,E,V,W],eb=()=>["","none",p,Y,H],eg=()=>["none",$,Y,H],ev=()=>["none",$,Y,H],ey=()=>[$,Y,H],ew=()=>[z,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[_],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[M],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",$],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",z,H,Y,h]}
vendor: 6,077 bytes, line 134
134],container:["container"],columns:[{columns:[$,H,Y,l]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[S,"auto",Y,H]}],basis:[{basis:[z,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,z,"auto","initial","none",H]}],grow:[{grow:["",$,Y,H]}],shrink:[{shrink:["",$,Y,H]}],order:[{order:[S,"first","last","none",Y,H]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...et(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...et()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":et()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ea()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...eo()]}],"min-block-size":[{"min-block":["auto",...eo()]}],"max-block-size":[{"max-block":["none",...eo()]}],w:[{w:[l,"screen",...ea()]}],"min-w":[{"min-w":[l,"screen","none",...ea()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...ea()]}],h:[{h:["screen","lh",...ea()]}],"min-h":[{"min-h":["screen","lh","none",...ea()]}],"max-h":[{"max-h":["screen","lh",...ea()]}],"font-size":[{text:["base",r,X,L]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Q,O]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",E,H]}],"font-family":[{font:[q,U,t]}],"font-features":[{"font-features":[H]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Y,H]}],"line-clamp":[{"line-clamp":[$,"none",Y,F]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",Y,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:el()}],"text-color":[{text:el()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ep(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",Y,L]}],"text-decoration-color":[{decoration:el()}],"underline-offset":[{"underline-offset":[$,"auto",Y,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ei()}],"bg-repeat":[{bg:ec()}],"bg-size":[{bg:ed()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},S,Y,H],radial:["",Y,H],conic:[S,Y,H]},J,B]}],"bg-color":[{bg:el()}],"gradient-from-pos":[{from:eu()}
vendor: 7,358 bytes, line 134
134],"gradient-via-pos":[{via:eu()}],"gradient-to-pos":[{to:eu()}],"gradient-from":[{from:el()}],"gradient-via":[{via:el()}],"gradient-to":[{to:el()}],rounded:[{rounded:em()}],"rounded-s":[{"rounded-s":em()}],"rounded-e":[{"rounded-e":em()}],"rounded-t":[{"rounded-t":em()}],"rounded-r":[{"rounded-r":em()}],"rounded-b":[{"rounded-b":em()}],"rounded-l":[{"rounded-l":em()}],"rounded-ss":[{"rounded-ss":em()}],"rounded-se":[{"rounded-se":em()}],"rounded-ee":[{"rounded-ee":em()}],"rounded-es":[{"rounded-es":em()}],"rounded-tl":[{"rounded-tl":em()}],"rounded-tr":[{"rounded-tr":em()}],"rounded-br":[{"rounded-br":em()}],"rounded-bl":[{"rounded-bl":em()}],"border-w":[{border:ex()}],"border-w-x":[{"border-x":ex()}],"border-w-y":[{"border-y":ex()}],"border-w-s":[{"border-s":ex()}],"border-w-e":[{"border-e":ex()}],"border-w-bs":[{"border-bs":ex()}],"border-w-be":[{"border-be":ex()}],"border-w-t":[{"border-t":ex()}],"border-w-r":[{"border-r":ex()}],"border-w-b":[{"border-b":ex()}],"border-w-l":[{"border-l":ex()}],"divide-x":[{"divide-x":ex()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ex()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ep(),"hidden","none"]}],"divide-style":[{divide:[...ep(),"hidden","none"]}],"border-color":[{border:el()}],"border-color-x":[{"border-x":el()}],"border-color-y":[{"border-y":el()}],"border-color-s":[{"border-s":el()}],"border-color-e":[{"border-e":el()}],"border-color-bs":[{"border-bs":el()}],"border-color-be":[{"border-be":el()}],"border-color-t":[{"border-t":el()}],"border-color-r":[{"border-r":el()}],"border-color-b":[{"border-b":el()}],"border-color-l":[{"border-l":el()}],"divide-color":[{divide:el()}],"outline-style":[{outline:[...ep(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,Y,H]}],"outline-w":[{outline:["",$,X,L]}],"outline-color":[{outline:el()}],shadow:[{shadow:["","none",d,Z,G]}],"shadow-color":[{shadow:el()}],"inset-shadow":[{"inset-shadow":["none",u,Z,G]}],"inset-shadow-color":[{"inset-shadow":el()}],"ring-w":[{ring:ex()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:el()}],"ring-offset-w":[{"ring-offset":[$,L]}],"ring-offset-color":[{"ring-offset":el()}],"inset-ring-w":[{"inset-ring":ex()}],"inset-ring-color":[{"inset-ring":el()}],"text-shadow":[{"text-shadow":["none",m,Z,G]}],"text-shadow-color":[{"text-shadow":el()}],opacity:[{opacity:[$,Y,H]}],"mix-blend":[{"mix-blend":[...ef(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ef()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":el()}],"mask-image-linear-to-color":[{"mask-linear-to":el()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":el()}],"mask-image-t-to-color":[{"mask-t-to":el()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":el()}],"mask-image-r-to-color":[{"mask-r-to":el()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":el()}],"mask-image-b-to-color":[{"mask-b-to":el()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":el()}],"mask-image-l-to-color":[{"mask-l-to":el()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":el()}],"mask-image-x-to-color":[{"mask-x-to":el()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":el()}],"mask-image-y-to-color":[{"mask-y-to":el()}],"mask-image-radial":[{"mask-radial":[Y,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":el()}],"mask-image-radial-to-color":[{"mask-radial-to":el()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":el()}],"mask-image-conic-to-color":[{"mask-conic-to":el()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ei()}],"mask-repeat":[{mask:ec()}],"mask-size":[{mask:ed()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,H]}],filter:[{filter:["","none",Y,H]}],blur:[{blur:eb()}],brightness:[{brightness:[$,Y,H]}],contrast:[{contrast:[$,Y,H]}],"drop-shadow":[{"drop-shadow":["","none",x,Z,G]}],"drop-shadow-color":[{"drop-shadow":el()}],grayscale:[{grayscale:["",$,Y,H]}],"hue-rotate":[{"hue-rotate":[$,Y,H]}],invert:[{invert:["",$,Y,H]}],saturate:[{saturate:[$,Y,H]}],sepia:[{sepia:["",$,Y,H]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,H]}],"backdrop-blur":[{"backdrop-blur":eb()}],"backdrop-brightness":[{"backdrop-brightness":[$,Y,H]}],"backdrop-contrast":[{"backdrop-contrast":[$,Y,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,Y,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,Y,H]}],"backdrop-invert":[{"backdrop-invert":["",$,Y,H]}],"backdrop-opacity":[{"backdrop-opacity":[$,Y,H]}],"backdrop-saturate":[{"backdrop-saturate":[$,Y,H]}],"backdrop-sepia":[{"backdrop-sepia":["",$,Y,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",Y,H]}],ease:[{ease:["linear","initial",g,Y,H]}],delay:[{delay:[$,Y,H]}],animate:[{animate:["none",v,Y,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Y,H]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:eg()}],"rotate-x":[{"rotate-x":eg()}],"rotate-y":[{"rotate-y":eg()}],"rotate-z":[{"rotate-z":eg()}],scale:[{scale:ev()}],"scale-x":[{"scale-x":ev()}],"scale-y":[{"scale-y":ev()}],"scale-z":[{"scale-z":ev()}],"scale-3d":["scale-3d"],skew:[{skew:ey()}],"skew-x":[{"skew-x":ey()}],"skew-y":[{"skew-y":ey()}],transform:[{transform:[Y,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ew()}],"translate-x":[{"translate-x":ew()}],"translate-y":[{"translate-y":ew()}],"translate-z":[{"translate-z":ew()}],"translate-none":["translate-none"],accent:[{accent:el()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:el()}
vendor: 4,975 bytes, line 134
134],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,H]}],fill:[{fill:["none",...el()]}],"stroke-w":[{stroke:[$,X,L,F]}],stroke:[{stroke:["none",...el()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function eu(...e){return ed(function(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;
134r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}(e))}function em(e){return e?e.includes("_")||!/\s/.test(e)&&e===e.toLocaleLowerCase()?e.replace(/_/g," ").replace(/(^|[\s\-/(])(\p{L})/gu,(e,t,r)=>t+r.toLocaleUpperCase()):e:""}e.s(["cn",()=>eu,"inputSizeClasses",0,{sm:"px-3 py-1.5 text-xs rounded-md",md:"px-4 py-2.5 text-sm rounded-lg",lg:"px-5 py-3 text-base rounded-xl"},"titleCaseLabel",()=>em],147895)},559447,394291,478738,e=>{"use strict";var t=e.i(26863),r=e.i(122525),n=e.i(367191),a=e.i(321731),s=e.i(147895);function o({children:e,className:r,size:n="xs"}){return(0,t.jsx)("kbd",{className:(0,s.cn)("inline-flex items-center justify-center rounded-md font-sans font-semibold","bg-brand-surface text-brand-text-secondary","border border-brand-border/70","shadow-[inset_0_-1px_0_rgba(0,0,0,0.06)] dark:shadow-[inset_0_-1px_0_rgba(0,0,0,0.5)]","xs"===n?"h-[18px] min-w-[18px] px-1 text-[10px]":"h-5 min-w-[20px] px-1.5 text-[11px]",r),children:e})}var l=e.i(566475);let i=(0,r.createContext)(null);function c(){let e=(0,r.useContext)(i);if(!e)throw Error("DropdownMenu compound components must be used within <DropdownMenu>");return e}function d({children:e,onOpenChange:n,className:a}){let[o,l]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=(0,r.useId)(),[u,m]=(0,r.useState)(-1),x=(0,r.useRef)(0),[p,f]=(0,r.useState)(!1),h=(0,r.useCallback)(e=>{l(e),n?.(e)},[n]),b=(0,r.useCallback)(()=>x.current++,[]);return(0,r.useEffect)(()=>{if(o){let e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)}x.current=0,m(-1),f(!1)},[o]),(0,t.jsx)(i.Provider,{value:{open:o,setOpen:h,triggerRef:c,menuId:d,activeIndex:u,setActiveIndex:m,itemCount:x,registerItem:b,hoverReady:p},children:(0,t.jsx)("div",{className:(0,s.cn)("relative inline-block",a),children:e})})}function u({asChild:e=!1,children:n}){let{open:a,setOpen:s,triggerRef:o,menuId:l}=c(),i={onClick:(0,r.useCallback)(e=>{e.preventDefault(),s(!a)},[a,s]),onKeyDown:(0,r.useCallback)(e=>{("ArrowDown"===e.key||"Enter"===e.key||" "===e.key)&&(e.preventDefault(),s(!0))},[s]),"aria-expanded":a,"aria-haspopup":"menu","aria-controls":l};return e&&r.default.isValidElement(n)?r.default.cloneElement(n,{...i,ref:o}):(0,t.jsx)("button",{...i,type:"button",ref:o,children:n})}let m={default:"py-1 min-w-[180px]",sm:"py-0.5 min-w-[150px]"},x={start:"left-0",center:"left-1/2 -translate-x-1/2",end:"right-0"};function p({align:e="start",side:n="bottom",sideOffset:a=4,size:o="default",className:l,children:i}){let{open:d,setOpen:u,triggerRef:p,menuId:f,activeIndex:h,setActiveIndex:b,itemCount:g}=c(),v=(0,r.useRef)(null);if((0,r.useEffect)(()=>{if(!d)return;let e=e=>{v.current&&!v.current.contains(e.target)&&p.current&&!p.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[d,u,p]),(0,r.useEffect)(()=>{if(!d)return;let e=e=>{let t=g.current;switch(e.key){case"ArrowDown":e.preventDefault(),b(Math.min(h+1,t-1));break;case"ArrowUp":e.preventDefault(),b(Math.max(h-1,0));break;case"Escape":e.preventDefault(),u(!1),p.current?.focus();break;case"Tab":u(!1)}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[d,h,b,u,p,g]),!d)return null;let y="top"===n?{bottom:`calc(100% + ${a}px)`}:{top:`calc(100% + ${a}px)`};return(0,t.jsx)("div",{ref:v,id:f,role:"menu","aria-orientation":"vertical",className:(0,s.cn)("absolute z-[9999] overflow-hidden",m[o],"bg-brand-elevated rounded-lg shadow-lg","top"===n?"animate-in fade-in slide-in-from-bottom-1 duration-150 ease-out":"animate-in fade-in slide-in-from-top-1 duration-150 ease-out",x[e],l),style:y,children:i})}function f({onSelect:e,disabled:n=!1,keepOpen:a=!1,size:o="default",className:l,children:i}){let{setOpen:d,activeIndex:u,setActiveIndex:m,registerItem:x,hoverReady:p}=c(),f=(0,r.useRef)(-1),h=(0,r.useRef)(null);(0,r.useEffect)(()=>{f.current=x()},[x]);let b=f.current===u;(0,r.useEffect)(()=>{b&&h.current&&h.current.scrollIntoView({block:"nearest"})},[b]);let g=(0,r.useCallback)(()=>{!n&&(e?.(),a||d(!1))},[n,e,a,d]);return(0,r.useEffect)(()=>
134{if(!b)return;let e=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),g())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[b,g]),(0,t.jsx)("div",{ref:h,role:"menuitem",tabIndex:-1,"aria-disabled":n,onClick:g,onMouseEnter:()=>{!n&&p&&m(f.current)},className:(0,s.cn)("flex items-center mx-1 cursor-pointer rounded-md","sm"===o?"px-2 py-1 text-xs":"px-2 py-1.5 text-sm","text-brand-text-primary transition-colors duration-100",b&&!n&&"bg-brand-hover",n&&"opacity-50 cursor-not-allowed",l),children:i})}function h({className:e}){return(0,t.jsx)("div",{className:(0,s.cn)("h-px bg-brand-border/30 my-1",e)})}function b({className:e,children:r}){return(0,t.jsx)("div",{className:(0,s.cn)("px-3 py-1.5 text-[11px] font-normal text-brand-text-muted",e),children:r})}function g({userName:e,userEmail:n,userInitials:a,avatarUrl:s,menuItems:o,onSignOut:i}){let[c,m]=(0,r.useState)(!1);return(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(d,{onOpenChange:m,className:"block",children:[(0,t.jsx)(u,{asChild:!0,children:(0,t.jsxs)("button",{className:`w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-[13px] transition-colors ${c?"text-brand-text-primary bg-brand-hover":"text-brand-text-muted hover:text-brand-text-secondary hover:bg-brand-hover"}`,children:[s?(0,t.jsx)("img",{src:s,alt:e,className:"h-6 w-6 rounded-full object-cover flex-shrink-0"}):(0,t.jsx)("div",{className:"h-6 w-6 rounded-full bg-brand-accent-subtle flex items-center justify-center text-[10px] font-semibold text-brand-accent flex-shrink-0",children:a}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 text-left",children:[(0,t.jsx)("p",{className:"text-[13px] font-semibold text-brand-text-primary truncate leading-tight",children:e}),(0,t.jsx)("p",{className:"text-[11px] text-brand-text-muted truncate leading-tight",children:n})]}),c?(0,t.jsx)(l.ChevronDownIcon,{size:14,className:"flex-shrink-0 opacity-50"}):(0,t.jsx)(l.ChevronUpIcon,{size:14,className:"flex-shrink-0 opacity-50"})]})}),(0,t.jsxs)(p,{side:"top",className:"w-full py-0",children:[o,o&&i&&(0,t.jsx)(h,{}),i&&(0,t.jsxs)(f,{onSelect:i,className:"mx-0 px-3 py-2 rounded-none text-[12px] text-red-500",children:[(0,t.jsx)(l.LogOutIcon,{size:14,className:"mr-2"}),"Sign out"]})]})]})})}e.s(["DropdownMenu",()=>d,"DropdownMenuContent",()=>p,"DropdownMenuItem",()=>f,"DropdownMenuLabel",()=>b,"DropdownMenuSeparator",()=>h,"DropdownMenuTrigger",()=>u],394291),e.s(["SidebarUserFooter",()=>g],478738);let v=new Set(["gmail.com","googlemail.com","yahoo.com","yahoo.co.uk","yahoo.fr","hotmail.com","hotmail.co.uk","hotmail.fr","outlook.com","live.com","icloud.com","me.com","mac.com","protonmail.com","proton.me","aol.com","msn.com","ymail.com","gmx.com","gmx.de","web.de"]),y=[".onmicrosoft.com",".microsoftonline.com"],w={xs:"w-5 h-5",sm:"w-7 h-7",md:"w-8 h-8",lg:"w-10 h-10",xl:"w-12 h-12","2xl":"w-14 h-14"},k={xs:"text-[9px]",sm:"text-[11px]",md:"text-xs",lg:"text-sm",xl:"text-base","2xl":"text-lg"};function j(e){return y.some(t=>e.endsWith(t))}function N(e,t=128){return`https://www.google.com/s2/favicons?domain=${e}&sz=${t}`}function C({src:e,className:r,onReject:n}){return(0,t.jsx)("img",{src:e,alt:"",className:r,onError:n,onLoad:e=>{let t=e.currentTarget;(t.naturalWidth<32||t.naturalHeight<32)&&n()}})}function z({firstName:e,lastName:n,name:a,email:o,profilePictureUrl:l,websiteOrDomain:i,size:c="sm",className:d,fallbackClassName:u}){let[m,x]=r.default.useState(!1),[p,f]=r.default.useState(!1),[h,b]=r.default.useState(!1),g=function(e,t,r){if(r)return r.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??"").join("")||"?";let n=(e??"").trim(),a=(t??"").trim();return(n||a)&&((n[0]??"")+(a[0]??"")).toUpperCase()||"?"}(e,n,a),y=function(e){if(!e)return null;try{let t=e.startsWith("http")?e:`https://${e}`;return new URL(t).hostname.replace(/^www\./,"")}catch{return e.replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0]||null}}(i),z=y&&!j(y)?N(y,128):void 0,$=o?o.split("@")[1]?.toLowerCase():void 0,S=!$||function(e){if(!e)return!0;let t=e.split("@")[1]?.toLowerCase();return!t||v.has(t)}(o)||j($)?void 0:N($,128),E=w[c],D=k[c],_=(0,s.cn)(E,"rounded-full object-cover flex-shrink-0",d);return l&&!m?(0,t.jsx)("img",{src:l,alt:"",className:_,onError:()=>x(!0)}):z&&!p?(0,t.jsx)(C,{src:z,className:_,onReject:()=>f(!0)}):S&&!h?(0,t.jsx)(C,{src:S,className:_,onReject:()=>b(!0)}):(0,t.jsx)("div",{className:(0,s.cn)(E,"rounded-full flex items-center justify-center font-semibold flex-shrink-0",D,u??"bg-brand-elevated text-brand-text-secondary",d),children:g})}let $=r.default.createContext({close:()=>{}});function S({sidebar:e,children:n,className:a="",contentRef:s,contentId:o,embedded:i=!1,routeKey:c}){let[d,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{u(!1)},[c]),(0,r.useEffect)(()=>
134{if(!d)return;let e=e=>{"Escape"===e.key&&u(!1)};document.addEventListener("keydown",e);let t=document.body.style.overflow;return i||(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),i||(document.body.style.overflow=t)}},[d,i]);let m=i?"absolute":"fixed",x=(0,r.useMemo)(()=>({close:()=>u(!1)}),[]);return(0,t.jsx)($.Provider,{value:x,children:(0,t.jsxs)("div",{className:`h-full overflow-hidden bg-brand-surface flex transition-colors duration-200 ${i?"relative":""} ${a}`,children:[(0,t.jsx)("button",{onClick:()=>u(!0),className:`md:hidden ${m} top-2 left-2 z-30 flex items-center justify-center rounded-lg bg-brand-surface/90 backdrop-blur text-brand-text-muted hover:text-brand-text-primary transition-colors ${i?"h-8 w-8":"h-11 w-11"} ${d?"opacity-0 pointer-events-none":"opacity-100"}`,"aria-label":"Open sidebar","aria-expanded":d,children:(0,t.jsx)(l.MenuIcon,{size:i?16:20})}),d&&(0,t.jsx)("div",{className:`md:hidden ${m} inset-0 z-50 bg-black/60 backdrop-blur-sm`,onClick:()=>u(!1)}),(0,t.jsx)("div",{className:` 135 ${m} md:relative inset-y-0 left-0 z-50 136 transform transition-transform duration-300 ease-in-out 137 ${d?"translate-x-0":"-translate-x-full"} 138 md:translate-x-0 md:transform-none 139 `,children:(0,t.jsxs)("div",{className:"relative h-full flex flex-col",children:[d&&(0,t.jsx)("button",{onClick:()=>u(!1),className:"md:hidden absolute top-2 -right-12 z-50 h-11 w-11 flex items-center justify-center rounded-lg text-white/80 hover:text-white transition-colors","aria-label":"Close sidebar",children:(0,t.jsx)(l.XIcon,{size:18})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:e})]})}),(0,t.jsx)("div",{className:`flex-1 min-w-0 ${i?"p-0 md:p-2 md:pl-2":"p-0 md:p-2 md:pl-0"}`,children:(0,t.jsx)("div",{ref:s,id:o,className:"h-full bg-brand-page overflow-y-auto transition-colors duration-200 pt-14 md:pt-0 scroll-pt-16 md:scroll-pt-0 rounded-none md:rounded-xl",children:n})})]})})}function E({sectionGroups:e,activeSection:r,onSectionClick:n,disabledCategories:a,variant:s="nested",showGroupLabels:o=!1,showIcons:l=!0,decorative:i}){let c="primary"===s,d=c?"w-full flex items-center gap-2.5 pl-5 pr-3 py-2 rounded-md text-[13px] font-semibold text-left transition-colors cursor-pointer":"w-full flex items-center gap-2.5 pl-8 pr-3 py-1.5 rounded-md text-[12px] text-left transition-colors cursor-pointer",u=c?"px-3 pb-1 pt-2 text-[10px] font-semibold uppercase tracking-widest text-brand-text-muted/50":"text-[10px] font-bold uppercase tracking-widest py-1 pl-8 pr-3 text-brand-text-muted/50";return(0,t.jsx)(t.Fragment,{children:e.map(e=>{let s=a?.includes(e.category);return(0,t.jsxs)("div",{className:`flex flex-col gap-0.5 ${c?"":"mt-0.5"} ${s?"opacity-40 pointer-events-none":""}`,children:[o&&(0,t.jsx)("div",{className:u,style:c?void 0:{fontFamily:"'Plus Jakarta Sans', sans-serif"},children:e.label}),e.sections.filter(e=>!e.comingSoon).map(e=>{let a=r===e.id;return(0,t.jsxs)(i?"div":"button",{onClick:()=>n?.(e.id),className:`${d} ${a?"text-brand-text-primary bg-brand-hover":`${c?"text-brand-text-muted":"text-brand-text-secondary"} hover:text-brand-text-primary hover:bg-brand-hover`}`,children:[l&&e.icon&&(0,t.jsx)("span",{className:"flex-shrink-0 opacity-70",children:e.icon}),(0,t.jsx)("span",{className:c?"flex-1 truncate":void 0,children:e.label})]},e.id)})]},e.category)})})}function D({keys:e,onAurora:r}){return(0,t.jsx)(o,{className:`flex-shrink-0 max-md:hidden ${r?"brand-aurora__kbd":""}`,children:e})}let _="transition-[transform,opacity] duration-200 ease-out will-change-transform pointer-events-none motion-reduce:transition-none";function P({isDark:e,themeChoice:s,onToggleTheme:o,pages:i,pageGroups:c,pinnedGroup:d,activePage:u,onPageClick:m,sectionGroups:x,activeSection:p,onSectionClick:f,disabledCategories:h,activeEntity:b,activeEntities:v,activeContextPages:y,drillIn:w,decorative:k,footer:j,user:N,className:C=""}){let $,S,P,T=c??(i?[{items:i}]:[]),R="vibesell_sidebar_expanded",[I,M]=(0,r.useState)(()=>{try{let e=sessionStorage.getItem(R);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}}),A=(0,r.useRef)(new Set),H=(0,r.useCallback)(e=>{M(t=>{let r=new Set(t);r.has(e)?(r.delete(e),A.current.add(e)):(r.add(e),A.current.delete(e));try{sessionStorage.setItem(R,JSON.stringify([...r]))}catch{}return r})},[]);(0,r.useEffect)(()=>{u&&!A.current.has(u)&&T.some(e=>e.items.some(e=>e.href===u&&e.sections))&&M(e=>{if(e.has(u))return e;let t=new Set(e).add(u);try{sessionStorage.setItem(R,JSON.stringify([...t]))}catch{}return t})},[u,T]);let L=v?.map(e=>e.parentPage)??(b?.parentPage?[b.parentPage]:[]);(0,r.useEffect)(()=>{0!==L.length&&M(e=>{let t=L.filter(t=>!e.has(t));if(0===t.length)return e;let r=new Set(e);for(let e of t)r.add(e);try{sessionStorage.setItem(R,JSON.stringify([...r]))}catch{}return r})},[L.join(",")]);let F=!!w,[O,U]=(0,r.useState)(F?"drill":"nav"),W=(0,r.useRef)(O);W.current=O;let B=(0,r.useRef)(w);w&&(B.current=w);let G=w??B.current;(0,r.useEffect)(()=>{let e=F?"drill":"nav";if(W.current===e)return;U(F?"enter-start":"exit-start");let t=0,r=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>{U(F?"enter-active":"exit-active")})}),n=setTimeout(()=>U(e),260);return()=>
139{cancelAnimationFrame(r),cancelAnimationFrame(t),clearTimeout(n)}},[F]);let Y="drill"!==O,X="nav"!==O&&!!G,q="enter-start"===O?`absolute inset-x-2 top-2 flex flex-col ${_} translate-x-0 opacity-100`:"enter-active"===O?`absolute inset-x-2 top-2 flex flex-col ${_} -translate-x-8 opacity-0`:"exit-start"===O?`flex flex-col ${_} -translate-x-8 opacity-0`:"exit-active"===O?`flex flex-col ${_} translate-x-0 opacity-100`:"flex flex-col",V="enter-start"===O?`flex-1 min-h-0 flex flex-col ${_} translate-x-8 opacity-0`:"enter-active"===O?`flex-1 min-h-0 flex flex-col ${_} translate-x-0 opacity-100`:"exit-start"===O?`absolute inset-x-2 top-2 bottom-2 flex flex-col ${_} translate-x-0 opacity-100`:"exit-active"===O?`absolute inset-x-2 top-2 bottom-2 flex flex-col ${_} translate-x-8 opacity-0`:"flex-1 min-h-0 flex flex-col";return(0,t.jsxs)("aside",{className:`w-56 h-full flex-shrink-0 flex flex-col bg-brand-surface z-40 transition-colors duration-200 ${C}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 h-12 flex-shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(n.FrozenSphere,{size:28,isDark:e}),(0,t.jsxs)("span",{className:"text-base tracking-tight text-brand-text-primary",children:[(0,t.jsx)("span",{className:"font-heading font-light",children:"Vibe"}),(0,t.jsx)("span",{className:"font-display font-extrabold",children:"Sell"})]})]}),o&&(S="light"===($=s??(e?"dark":"light"))?"Light":"dark"===$?"Dark":"System",P="light"===$?l.SunIcon:"dark"===$?l.MoonIcon:l.MonitorIcon,(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("button",{onClick:o,"data-keeps-chat-open":"",className:"p-1.5 rounded-full text-brand-text-muted hover:text-brand-text-primary hover:bg-brand-hover transition-colors","aria-label":`Theme: ${S}. Click to cycle.`,children:(0,t.jsx)(P,{})}),(0,t.jsx)("div",{className:"pointer-events-none absolute right-0 top-full mt-1 px-2 py-1 rounded-md bg-brand-elevated text-brand-text-secondary text-[11px] font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-150 delay-500 z-50 shadow-sm",children:S})]}))]}),F&&d&&d.items.length>0&&(0,t.jsx)("div",{className:"flex-shrink-0 px-2 pt-2 flex flex-col gap-0.5",children:d.items.filter(e=>!e.comingSoon).map(e=>{let r=u===e.href,n=k?"div":"a";return(0,t.jsxs)(n,{...k?{}:{href:e.href},onClick:m?t=>{t.preventDefault(),m(e.href)}:void 0,"data-active":e.accent?r:void 0,className:`w-full flex items-center gap-2.5 pl-5 pr-3 py-2 rounded-md text-[13px] font-semibold transition-colors cursor-pointer ${e.accent?"brand-aurora":r?"text-brand-text-primary bg-brand-hover":"text-brand-text-muted hover:text-brand-text-primary hover:bg-brand-hover"}`,children:[e.accent&&(0,t.jsx)(a.AuroraCanvas,{}),e.icon&&(0,t.jsx)("span",{className:`flex-shrink-0 transition-colors ${e.accent?"":"opacity-70"}`,children:e.icon}),(0,t.jsx)("span",{className:"flex-1",children:e.label}),e.shortcut&&(0,t.jsx)(D,{keys:e.shortcut,onAurora:!!e.accent}),e.indicatorDots&&(e.indicatorDots.red||e.indicatorDots.blue)?(0,t.jsx)("span",{className:"relative flex-shrink-0 h-1.5 w-1.5","aria-hidden":"true",children:e.indicatorDots.blue?(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-brand-accent animate-pulse"}):(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-brand-destructive"})}):null]},e.href)})}),(0,t.jsxs)("div",{className:"relative flex-1 min-h-0 overflow-y-auto overflow-x-hidden brand-sidebar-scroll px-2 pt-2 pb-2 flex flex-col",children:[X&&G&&(0,t.jsxs)("div",{className:V,children:[!G.hideBackRow&&(0,t.jsxs)("button",{type:"button",onClick:G.onBack,className:"self-start flex items-center gap-1 pl-1.5 pr-2 py-1 mb-1 text-[11px] font-medium text-brand-text-muted hover:text-brand-text-primary transition-colors cursor-pointer flex-shrink-0",children:[(0,t.jsx)(l.ChevronRightIcon,{size:12,className:"rotate-180 flex-shrink-0"}),(0,t.jsx)("span",{children:G.backLabel??"Back to app"})]}),G.header,G.content]}),Y&&(0,t.jsx)("div",{className:q,children:T.map((e,r)=>(0,t.jsxs)("div",{className:r>0?"mt-4":"",children:[e.label&&(0,t.jsx)("div",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-widest text-brand-text-muted/50",children:e.label}),(0,t.jsx)("div",{className:"flex flex-col gap-0.5",children:e.items.filter(e=>!e.comingSoon).map(e=>{let r=u===e.href,n=!!e.sections&&e.sections.length>0,s=v?.find(t=>t.parentPage===e.href)??(b?.parentPage===e.href?b:void 0),o=n||!!s,i=I.has(e.href),c=k?"div":"a";return(0,t.jsxs)("div",{children:[(0,t.jsxs)(c,{...k?{}:{href:e.href},onClick:m?t=>{t.preventDefault(),m(e.href)}:void 0,"data-active":e.accent?r:void 0,className:`w-full flex items-center gap-2.5 pl-5 pr-3 py-2 rounded-md text-[13px] font-semibold transition-colors cursor-pointer ${e.accent?"brand-aurora":r&&!o?"text-brand-text-primary bg-brand-hover":r?"text-brand-text-primary":"text-brand-text-muted hover:text-brand-text-primary hover:bg-brand-hover"}`,children:[e.accent&&(0,t.jsx)(a.AuroraCanvas,{}),e.icon&&(0,t.jsx)("span",{className:`flex-shrink-0 transition-colors ${e.accent?"":"opacity-70"}`,children:e.icon}),(0,t.jsx)("span",{className:"flex-1",children:e.label}),e.shortcut&&(0,t.jsx)(D,{keys:e.shortcut,onAurora:!!e.accent}),o&&(0,t.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e.href)},className:"flex-shrink-0 flex items-center justify-center w-4 h-4 text-brand-text-muted",children:(0,t.jsx)(l.ChevronRightIcon,{size:14,className:`transition-transform duration-200 ${i?"rotate-90":""}`})}),e.indicatorDots&&(e.indicatorDots.red||e.indicatorDots.blue)?(0,t.jsx)("span",{className:"relative flex-shrink-0 h-1.5 w-1.5","aria-hidden":"true",children:e.indicatorDots.blue?(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-brand-accent animate-pulse"}):(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-brand-destructive"})}):e.badge&&e.badge>0?(0,t.jsx)("span",{className:`flex-shrink-0 h-4 min-w-4 px-1 rounded-full text-[10px] font-semibold flex items-center justify-center leading-none ${"urgent"===e.badgePriority||"actionable"===e.badgePriority?"bg-brand-destructive-tint text-brand-destructive":"bg-brand-accent-subtle text-brand-accent"}`,children:e.badge>99?"99+":e.badge}):null]}),i&&n&&(0,t.jsx)(E,{sectionGroups:e.sections,activeSection:r?p:void 0,onSectionClick:t=>{let r=e.href.includes("?")?"&":"?";m?.(`${e.href}${r}section=${t}`)},disabledCategories:h,showGroupLabels:e.sections.length>1,decorative:k}),i&&s&&(0,t.jsxs)("div",{className:"mt-0.5 mb-1 flex flex-col gap-0.5",children:[(0,t.jsxs)("a",{href:s.href,onClick:m?e=>{e.preventDefault(),m(s.href)}:void 0,className:`flex items-center gap-2.5 w-full text-left pl-7 pr-3 py-1.5 rounded-md text-[12px] font-semibold transition-colors cursor-pointer ${r?"text-brand-text-primary":"text-brand-text-secondary hover:text-brand-text-primary hover:bg-brand-hover"}`,children:[s.avatar&&(0,t.jsx)(z,{name:s.label,firstName:s.avatar.firstName,lastName:s.avatar.lastName,profilePictureUrl:s.avatar.profilePictureUrl,websiteOrDomain:s.avatar.websiteOrDomain,size:"xs",className:"w-4 h-4 flex-shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:s.label})]}),(0,t.jsx)(E,{sectionGroups:s.sectionGroups,activeSection:r?s.activeSection:void 0,onSectionClick:e=>s.onSectionClick?.(e),disabledCategories:s.disabledCategories,decorative:k})]}),r&&!n&&!s&&x&&x.length>0&&(0,t.jsx)("div",{className:"mt-0.5 mb-1 flex flex-col gap-1",children:(0,t.jsx)(E,{sectionGroups:x,activeSection:p,onSectionClick:f,disabledCategories:h,showGroupLabels:x.length>1,showIcons:!1,decorative:k})})]},e.href)})})]},r))})]}),y&&y.length>0&&(0,t.jsx)("div",{className:"flex-shrink-0 px-2 pb-2",children:(0,t.jsx)("div",{className:"border-t border-brand-border/20 pt-2 flex flex-col gap-1",children:y.map(e=>{let r=k?"div":"a";return(0,t.jsxs)(r,{...k?{}:{href:e.href},onClick:m?t=>{t.preventDefault(),m(e.href)}:void 0,className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-[13px] font-semibold text-brand-text-primary bg-brand-hover transition-colors cursor-pointer",children:[e.icon&&(0,t.jsx)("span",{className:"flex-shrink-0 opacity-70",children:e.icon}),e.label]},e.href)})})}),N&&(0,t.jsx)("div",{className:"px-2 pb-2 pt-1 flex-shrink-0",children:(0,t.jsx)(g,{...N})}),!N&&j&&(0,t.jsx)("div",{className:"mt-auto px-2 pb-2 flex-shrink-0",children:j})]})}e.s(["AppSidebar",()=>P,"SidebarLayout",()=>S],559447)},924739,178213,278788,758337,798264,735192,e=>{"use strict";var t=e.i(26863),r=e.i(122525),n=e.i(393336);let a=/^[ \t]*(?:[-+][ \t]+|\*(?!\*)[ \t]*|[â¢Â·â¦âªâ£][ \t]*)(?:[-+][ \t]+|\*(?!\*)[ \t]*|[â¢Â·â¦âªâ£][ \t]*)?(\S.*)$/,s=/^([^"ââ:]{1,40}?):[ \t]*["â]([^"ââ]+)["â][ \t]*$/,o=/^["â]([^"ââ]+)["â]$/,l=/["â]([^"ââ\n]{2,}?)["â]/g;function i(e){let t=e.replace(/[*_`~]/g,"").trim();return t?t.split(/\s+/).length:0}function c(e){let t=e.trim();return t.startsWith("*")&&!t.startsWith("**")&&!t.startsWith("* ")&&t.endsWith("*")&&!t.endsWith("**")?null:e.match(a)}function d(e,r=0){let n;if(r>3)return[e];let a=[],s=/(\*\*[\s\S]+?\*\*)|(\*[^*]+\*)/g,o=0;for(;null!==(n=s.exec(e));){n.index>o&&a.push(e.slice(o,n.index));let s=n[0];s.startsWith("**")&&s.endsWith("**")?a.push((0,t.jsx)("strong",{className:"font-semibold text-brand-mock-card-title",children:d(s.slice(2,-2),r+1)},`b-${n.index}-${r}`)):a.push((0,t.jsx)("em",{className:"italic",children:d(s.slice(1,-1),r+1)},`i-${n.index}-${r}`)),o=n.index+s.length}return o<e.length&&a.push(e.slice(o)),a.length>0?a:[e]}let u="m-0 list-disc list-outside pl-5 space-y-1 marker:text-brand-mock-card-context",m=({content:e,bullets:r,className:n,scriptClassName:a="bg-brand-elevated"})=>{if(!e&&r&&r.length>0)return(0,t.jsx)("ul",{className:`${u} ${n??""}`,children:r.map((e,r)=>(0,t.jsx)("li",{className:"leading-relaxed",children:d(e)},r))});if(!e)return null;let m=function(e){let t=[],r=[],n=()=>{r.length>0&&t.push({kind:"bullets",items:r}),r=[]};for(let a of(function(e){let t=e.replace(/\r\n?/g,"\n").trim();t.length>2&&t.startsWith("*")&&!t.startsWith("**")&&t.endsWith("*")&&!t.endsWith("**")&&!c(t.split("\n")[0])&&(t=t.slice(1,-1).trim());let r=[];for(let e of t.split("\n")){let t=c(e);
139if(t){r.push(`* ${function(e){let t=e.trim(),r=t.match(s);if(r&&5>=i(r[1]))return r[2].trim();let n=t.match(o);return n?n[1].trim():t}(t[1])}`);continue}let n=e.trim();n&&r.push(n)}return r.join("\n")})(e).split("\n")){if(a.startsWith("* ")){r.push(a.slice(2));continue}n(),a&&t.push(...function(e){let t,r=[],n=0;for(l.lastIndex=0;null!==(t=l.exec(e));){if(4>i(t[1]))continue;let a=e.slice(n,t.index).trim();a&&r.push({kind:"paragraph",text:a}),r.push({kind:"script",text:t[1].trim()}),n=t.index+t[0].length}let a=e.slice(n).trim();return a&&r.push({kind:"paragraph",text:a}),r}(a))}return n(),t}(e);return(0,t.jsx)("div",{className:`flex flex-col gap-1.5 ${n??""}`,children:m.map((e,r)=>"bullets"===e.kind?(0,t.jsx)("ul",{className:u,children:e.items.map((e,r)=>(0,t.jsx)("li",{className:"leading-relaxed",children:d(e)},r))},r):"script"===e.kind?(0,t.jsxs)("p",{"data-guidance-script":!0,className:`m-0 rounded-md px-2.5 py-1.5 leading-relaxed text-brand-mock-card-title ${a}`,children:["â",d(e.text),"â"]},r):(0,t.jsx)("p",{className:"m-0 leading-relaxed",children:d(e.text)},r))})};function x({messages:e,placeholder:a="Ask a question...",onSend:s,isStreaming:o}){let[l,i]=(0,r.useState)(""),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{c.current&&(c.current.scrollTop=c.current.scrollHeight)},[e.length]);let d=()=>{let e=l.trim();e&&s&&(s(e),i(""))};return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{ref:c,className:"flex-1 overflow-y-auto px-3 py-2 space-y-3",children:[e.map(e=>(0,t.jsx)("div",{className:`flex flex-col ${"user"===e.role?"items-end":"items-start"}`,children:(0,t.jsx)("div",{className:`max-w-[90%] px-3 py-2 text-[12px] leading-relaxed ${"user"===e.role?"bg-brand-accent/20 rounded-xl rounded-br-sm text-brand-mock-card-title":"bg-brand-elevated rounded-xl rounded-bl-sm text-brand-mock-card-body"}`,children:"user"===e.role?(0,t.jsx)("p",{className:"m-0",children:e.content}):(0,t.jsx)(m,{content:e.content})})},e.id)),o&&(0,t.jsx)("div",{className:"flex flex-col items-start",children:(0,t.jsx)("div",{className:"px-3 py-2 text-[12px] bg-brand-elevated rounded-xl rounded-bl-sm",children:(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-brand-text-muted animate-pulse"}),(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-brand-text-muted animate-pulse [animation-delay:0.15s]"}),(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-brand-text-muted animate-pulse [animation-delay:0.3s]"})]})})})]}),(0,t.jsx)("div",{className:"flex-shrink-0 border-t border-brand-border px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-end gap-1.5",children:[(0,t.jsx)("input",{type:"text",value:l,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),d())},placeholder:a,className:"flex-1 px-2.5 py-1.5 text-[12px] rounded-lg bg-brand-elevated border border-brand-border text-brand-text-primary placeholder:text-brand-text-muted outline-none focus:border-brand-accent"}),(0,t.jsx)("button",{onClick:d,disabled:!l.trim()||!s,className:"w-[30px] h-[30px] rounded-lg border border-brand-border bg-brand-elevated flex items-center justify-center text-brand-mock-card-source hover:text-brand-mock-card-title hover:bg-brand-panel-item-hover transition-colors disabled:opacity-50 cursor-pointer disabled:cursor-default",children:(0,t.jsx)(n.SendIcon,{size:12})})]})})]})}e.s(["ChatView",()=>x],924739);var p=e.i(551506);function f(e){let t=e-2;if(t<p.NOTCH_HEIGHT+p.CARD_BORDER_RADIUS){let e=Math.round(.4*t);return p.NOTCH_WIDTH*(e/p.NOTCH_HEIGHT)}return p.NOTCH_WIDTH}function h(e,t=p.CARD_WIDTH){let r=e-2,n=p.NOTCH_HEIGHT,a=p.CARD_BORDER_RADIUS;r<n+a&&(n=Math.round(.4*r),a=Math.max(12,Math.round(.6*r)));let s=p.NOTCH_WIDTH*(n/p.NOTCH_HEIGHT);return`path('M 0 0 L ${s} 0 L ${s+t} 0 L ${s+t+s}
139 0 A ${s} ${n} 0 0 0 ${s+t} ${n} L ${s+t} ${e-a} A ${a} ${a} 0 0 1 ${s+t-a} ${e} L ${s+a} ${e} A ${a} ${a} 0 0 1 ${s} ${e-a} L ${s} ${n} A ${s} ${n} 0 0 0 0 0 Z')`}function b(e){let t=p.PANEL_NOTCH_WIDTH,r=p.PANEL_NOTCH_HEIGHT,n=p.CARD_BORDER_RADIUS,a=p.PANEL_WIDTH+r;return`path('M ${a} 0 L ${a} ${t+e+t} A ${r} ${t} 0 0 0 ${a-r} ${t+e} L ${n} ${t+e} A ${n} ${n} 0 0 1 0 ${t+e-n} L 0 ${t+n} A ${n} ${n} 0 0 1 ${n} ${t} L ${a-r} ${t} A ${r} ${t} 0 0 0 ${a} 0 Z')`}function g(e={},t,n,a){let{cardWidth:s=p.CARD_WIDTH,undockThreshold:o=p.UNDOCK_THRESHOLD,dockThreshold:l=p.DOCK_THRESHOLD,snapThreshold:i=p.SNAP_THRESHOLD,headerDragHeight:c=44,isDocked:d,setIsDocked:u,initialPosition:m,onPositionChange:x}=e,[f,h]=(0,r.useState)(!m||m.isDocked),b=d??f,v=u??h,[y,w]=(0,r.useState)(m?{x:m.x,y:m.y}:{x:20,y:20}),[k,j]=(0,r.useState)(m?m.dockedOffsetX:0),N=(0,r.useRef)(null),C=(0,r.useCallback)(e=>{let t=n.current;if(!t)return;let r=t.getBoundingClientRect();e.clientY-r.top>c||(e.preventDefault(),e.target.setPointerCapture(e.pointerId),N.current={active:!0,startX:e.clientX,startY:e.clientY,startFloatX:y.x,startFloatY:y.y,wasDocked:b,didUndock:!1})},[b,y,n,c]),z=(0,r.useCallback)(e=>{let r=N.current;if(!r?.active)return;let n=e.clientY-r.startY,l=e.clientX-r.startX;if(r.wasDocked&&!r.didUndock){if(j(l),n>o){r.didUndock=!0;let e=t.current;e&&(r.startFloatX=Math.max(16,(e.getBoundingClientRect().width-s)/2+k),r.startFloatY=16),j(0),v(!1),w({x:r.startFloatX,y:r.startFloatY+(n-o)})}return}if(!r.wasDocked||r.didUndock){let e=r.startFloatX+l,i=r.startFloatY+(r.didUndock?n-o:n),c=t.current,d=c?c.getBoundingClientRect().width-s:1/0,u=c?c.getBoundingClientRect().height-a():1/0,m=Math.max(0,Math.min(d,e)),x=Math.max(0,Math.min(u,i));m!==e&&(r.startFloatX+=m-e),x!==i&&(r.startFloatY+=x-i),w({x:m,y:x})}},[k,t,s,o,a]),$=(0,r.useCallback)(e=>{let t=N.current;if(!t?.active)return;e.currentTarget.releasePointerCapture(e.pointerId);let r=b,n=k;!b&&y.y<l&&(r=!0,n=0,v(!0),j(0)),b&&Math.abs(k)<i&&(n=0,j(0)),x?.({isDocked:r,x:y.x,y:y.y,dockedOffsetX:n}),N.current=null},[b,y,k,l,i,x]);return{isDocked:b,setIsDocked:v,floatPos:y,dockedOffsetX:k,setDockedOffsetX:j,handlePointerDown:C,handlePointerMove:z,handlePointerUp:$}}function v(e={},t,n){let{panelWidth:a=p.PANEL_WIDTH,panelNotchWidth:s=p.PANEL_NOTCH_WIDTH,panelNotchHeight:o=p.PANEL_NOTCH_HEIGHT,undockThreshold:l=p.UNDOCK_THRESHOLD,dockThreshold:i=p.DOCK_THRESHOLD,snapThreshold:c=p.SNAP_THRESHOLD,slideDuration:d=350,initialVisible:u=!0}=e,[m,x]=(0,r.useState)(u),[f,h]=(0,r.useState)(!0),[b,g]=(0,r.useState)({x:200,y:40}),[y,w]=(0,r.useState)(0),[k,j]=(0,r.useState)(u),[N,C]=(0,r.useState)(!1),z=(0,r.useRef)(!1),$=(0,r.useRef)(u);(0,r.useEffect)(()=>{m&&!$.current?(j(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(!0)})})):!m&&$.current&&(C(!1),setTimeout(()=>{j(!1)}
139,d+50)),$.current=m},[m,d]);let S=(0,r.useCallback)(()=>{let e=t.current;return e?Math.max(0,(e.getBoundingClientRect().height-(s+n+s))/2):0},[t,n,s]),E=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(E.current)return;let e=S();e>0&&(w(e),E.current=!0)},[S]);let D=(0,r.useRef)(null),_=(0,r.useCallback)(()=>{z.current||(m?(z.current=!0,C(!1),x(!1),setTimeout(()=>{j(!1),z.current=!1},d+50)):(z.current=!0,w(S()),j(!0),x(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(!0),setTimeout(()=>{z.current=!1},d)})})))},[m,d,S,w]),P=(0,r.useCallback)(e=>{let t=e.target;t.closest("button")||t.closest("input")||t.closest("textarea")||t.closest("[data-resize-handle]")||t.closest("[data-clickable]")||(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),D.current={active:!0,startX:e.clientX,startY:e.clientY,startFloatX:b.x,startFloatY:b.y,startDockedOffsetY:y,wasDocked:f,didUndock:!1})},[f,b,y]),T=(0,r.useCallback)(e=>{let r=D.current;if(!r?.active)return;let i=e.clientX-r.startX,c=e.clientY-r.startY;if(r.wasDocked&&!r.didUndock){let e=t.current,o=s+n+s,d=r.startDockedOffsetY+c;if(e?w(Math.max(0,Math.min(e.getBoundingClientRect().height-o,d))):w(d),i<-l){r.didUndock=!0;let e=t.current;e&&(r.startFloatX=e.getBoundingClientRect().width-a-40,r.startFloatY=40+y),w(0),h(!1),g({x:r.startFloatX+(i+l),y:r.startFloatY+c})}return}if(!r.wasDocked||r.didUndock){let e=r.startFloatX+(r.didUndock?i+l:i),s=r.startFloatY+c,d=t.current,u=d?d.getBoundingClientRect().width-a-o:1/0,m=d?d.getBoundingClientRect().height-n:1/0,x=Math.max(0,Math.min(u,e)),p=Math.max(0,Math.min(m,s));x!==e&&(r.startFloatX+=x-e),p!==s&&(r.startFloatY+=p-s),g({x:x,y:p})}},[y,n,t,a,s,o,l]),R=(0,r.useCallback)(e=>{let r=D.current;if(r?.active){if(e.currentTarget.releasePointerCapture(e.pointerId),!f){let e=t.current;if(e){let t=e.getBoundingClientRect();b.x+a>t.width-i&&(h(!0),w(S()))}}if(f){let e=S();Math.abs(y-e)<c&&w(e)}D.current=null}},[f,b,y,t,a,i,c,S]);return{showSidePanel:m,setShowSidePanel:x,isSidePanelDocked:f,setIsSidePanelDocked:h,panelFloatPos:b,dockedOffsetY:y,setDockedOffsetY:w,sidePanelMounted:k,sidePanelRevealed:N,handleToggleSidePanel:_,handlePanelPointerDown:P,handlePanelPointerMove:T,handlePanelPointerUp:R}}function y(e={},t,n){let{bodyDuration:a=400,defaultMinimizedHeight:s=48}=e,[o,l]=(0,r.useState)(!1),[i,c]=(0,r.useState)(200),d=(0,r.useRef)(200),u=(0,r.useRef)(s),m=(0,r.useRef)(!1),x=(0,r.useRef)(o),p=(0,r.useRef)(null),[f,h]=(0,r.useState)(0);(0,r.useEffect)(()=>{x.current=o},[o]),(0,r.useLayoutEffect)(()=>{let e=t.current;if(!e||!n)return;let r=t=>{if(m.current){if(t&&t[0]?.borderBoxSize?.[0]){let e=t[0].borderBoxSize[0].blockSize;e>0&&(x.current?u.current=e:d.current=e)}return}if(t&&t[0]?.borderBoxSize?.[0]){let e=t[0].borderBoxSize[0].blockSize;e>0&&(c(e),x.current?u.current=e:d.current=e)}else{let t=e.getBoundingClientRect().height;t>0&&c(t)}};r();let a=new ResizeObserver(r);return a.observe(e),()=>a.disconnect()},[n,t,f]);let b=(0,r.useCallback)(()=>{if(!m.current)if(o)l(!1);else{m.current=!0;let e=u.current||s;p.current=e,c(e),l(!0),setTimeout(()=>{p.current=null,m.current=!1},a+50)}},[o,a,s]);return{isMinimized:o,setIsMinimized:l,effectiveClipH:p.current??i,clipH:i,handleToggleMinimize:b,isAnimatingRef:m,notifyElementMounted:(0,r.useCallback)(()=>{h(e=>e+1)},[])}}function w(e={}){let{initialHeight:t=p.PANEL_HEIGHT,minHeight:n=p.MIN_PANEL_HEIGHT,maxHeight:a=p.MAX_PANEL_HEIGHT}=e,[s,o]=(0,r.useState)(t),l=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture(e.pointerId),l.current={active:!0,startY:e.clientY,startH:s}},[s]),c=(0,r.useCallback)(e=>{let t=l.current;if(!t?.active)return;let r=e.clientY-t.startY;o(Math.max(n,Math.min(a,t.startH+r)))},[n,a]);return{panelHeight:s,setPanelHeight:o,handleResizePointerDown:i,handleResizePointerMove:c,handleResizePointerUp:(0,r.useCallback)(e=>{l.current?.active&&(e.currentTarget.releasePointerCapture(e.pointerId),l.current=null)},[])}}e.s(["buildDockedClipPath",()=>h,"buildRightDockedPanelClipPath",()=>b,"getDockedNotchWidth",()=>f],178213),e.s(["useDockableCard",()=>g],278788),e.s(["useSidePanel",()=>v],758337),e.s(["useMinimizeAnimation",()=>y],798264),e.s(["usePanelResize",()=>w],735192)}]);
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.