chat-logbook 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
- # chat-logbook
1
+ <p align="center">
2
+ <img src="web/public/favicon.svg" alt="Chat Logbook" width="80" height="80" />
3
+ </p>
2
4
 
3
- > _Where your AI conversations live._
5
+ <h1 align="center">Chat Logbook</h1>
6
+
7
+ <p align="center">
8
+ <img src="web/public/tagline.svg" alt="Where your AI conversations live." width="380" />
9
+ </p>
4
10
 
5
11
  A local-first library for the conversations you've had with your AI tools. Read by chat-logbook, kept on your machine, browsable and searchable in one place — even after your AI tool has deleted the original.
6
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chat-logbook",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "A local-first conversation manager for Claude Code",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
@@ -17,7 +17,7 @@ Error generating stack: `+e.message+`
17
17
  ${e.right}px ${e.bottom}px,
18
18
  ${e.right}px ${e.top}px,
19
19
  ${e.left}px ${e.top}px
20
- )`}return(0,H.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function G(e){return e===`starting`?vi:Cn}var Hl=v.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=bi,...g}=e,{store:_}=Zc(),y=Tl(),b=Ja(),x=_.useState(`floatingRootContext`),S=_.useState(`mounted`),C=_.useState(`open`),w=_.useState(`openChangeReason`),T=_.useState(`activeTriggerElement`),E=_.useState(`modal`),D=_.useState(`positionerElement`),O=_.useState(`instantType`),k=_.useState(`transitionStatus`),A=_.useState(`hasViewport`),j=v.useRef(null),M=mc(D,!1,!1),N=zl({anchor:i,floatingRootContext:x,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:y,nodeId:b,collisionAvoidance:h,adaptiveOrigin:A?Il:void 0}),P=v.useMemo(()=>{let e={};return C||(e.pointerEvents=`none`),{role:`presentation`,hidden:!S,style:{...N.positionerStyles,...e}}},[C,S,N.positionerStyles]),F=v.useMemo(()=>({props:P,...N}),[P,N]),I=x.useState(`domReferenceElement`);un(()=>{let e=I,t=j.current;if(e&&(j.current=e),t&&e&&e!==t){_.set(`instantType`,void 0);let e=new AbortController;return M(()=>{_.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[I,M,_]);let L={open:C,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:O},ee=v.useCallback(e=>{_.set(`positionerElement`,e)},[_]),te=ja(`div`,e,{state:L,props:[F.props,G(k),g],ref:[t,ee],stateAttributesMapping:xl});return(0,H.jsxs)(Ol.Provider,{value:F,children:[S&&E===!0&&w!==`trigger-hover`&&(0,H.jsx)(Vl,{ref:_.context.internalBackdropRef,inert:Dl(!C),cutout:T}),(0,H.jsx)(Ya,{id:b,children:te})]})}),Ul=`ArrowUp`,Wl=`ArrowDown`,Gl=`ArrowLeft`,Kl=`ArrowRight`,ql=`Home`,Jl=new Set([Gl,Kl]),Yl=new Set([Ul,Wl]),Xl=new Set([...Jl,...Yl]);new Set([...Xl,ql,`End`]);var Zl=new Set([Ul,Wl,Gl,Kl,ql,`End`]),Ql=v.createContext(void 0);function $l(e){let t=v.useContext(Ql);if(t===void 0&&!e)throw Error(da(69));return t}var eu=v.createContext(void 0);function tu(){let[e,t]=v.useState(0),n=U(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:v.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}function nu(e){let{value:t,children:n}=e;return(0,H.jsx)(eu.Provider,{value:t,children:n})}var ru={...xl,...pc},iu=v.forwardRef(function(e,t){let{className:n,render:r,initialFocus:i,finalFocus:a,...o}=e,{store:s}=Zc(),c=kl(),l=$l(!0)!=null,{context:u,hasClosePart:d}=tu(),f=s.useState(`open`),p=s.useState(`openMethod`),m=s.useState(`instantType`),h=s.useState(`transitionStatus`),g=s.useState(`popupProps`),_=s.useState(`titleElementId`),y=s.useState(`descriptionElementId`),b=s.useState(`modal`),x=s.useState(`mounted`),S=s.useState(`openChangeReason`),C=s.useState(`activeTriggerElement`),w=s.useState(`floatingRootContext`);hc({open:f,ref:s.context.popupRef,onComplete(){f&&s.context.onOpenChangeComplete?.(!0)}});let T=s.useState(`disabled`),E=s.useState(`openOnHover`),D=s.useState(`closeDelay`);Pc(w,{enabled:E&&!T,closeDelay:D});function O(e){return e===`touch`?s.context.popupRef.current:!0}let k=i===void 0?O:i,A={open:f,side:c.side,align:c.align,instant:m,transitionStatus:h},j=b!==!1&&d,M=v.useCallback(e=>{s.set(`popupElement`,e)},[s]),N=ja(`div`,e,{state:A,ref:[t,s.context.popupRef,M],props:[g,{"aria-labelledby":_,"aria-describedby":y,onKeyDown(e){l&&Zl.has(e.key)&&e.stopPropagation()}},G(h),o],stateAttributesMapping:ru});return(0,H.jsx)(so,{context:w,openInteractionType:p,modal:j,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:a,restoreFocus:`popup`,previousFocusableElement:jt(C)?C:void 0,nextFocusableElement:s.context.triggerFocusTargetRef,beforeContentFocusGuardRef:s.context.beforeContentFocusGuardRef,children:(0,H.jsx)(nu,{value:u,children:N})})});function au(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=au(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ou(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=au(e))&&(r&&(r+=` `),r+=t);return r}var su=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},cu=(e,t)=>({classGroupId:e,validator:t}),lu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),uu=`-`,du=[],fu=`arbitrary..`,pu=e=>{let t=gu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return hu(e);let n=e.split(uu);return mu(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?su(i,t):t:i||du}return n[e]||du}}},mu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=mu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(uu):e.slice(t).join(uu),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},hu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?fu+r:void 0})(),gu=e=>{let{theme:t,classGroups:n}=e;return _u(n,t)},_u=(e,t)=>{let n=lu();for(let r in e){let i=e[r];vu(i,n,r,t)}return n},vu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];yu(i,t,n,r)}},yu=(e,t,n,r)=>{if(typeof e==`string`){bu(e,t,n);return}if(typeof e==`function`){xu(e,t,n,r);return}Su(e,t,n,r)},bu=(e,t,n)=>{let r=e===``?t:Cu(t,e);r.classGroupId=n},xu=(e,t,n,r)=>{if(wu(e)){vu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(cu(n,e))},Su=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];vu(o,Cu(t,a),n,r)}},Cu=(e,t)=>{let n=e,r=t.split(uu),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=lu(),n.nextPart.set(t,i)),n=i}return n},wu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Tu=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Eu=`!`,Du=`:`,Ou=[],ku=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Au=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Du){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Eu)?(c=s.slice(0,-1),l=!0):s.startsWith(Eu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ku(t,l,c,u)};if(t){let e=t+Du,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ku(Ou,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ju=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Mu=e=>({cache:Tu(e.cacheSize),parseClassName:Au(e),sortModifiers:ju(e),...pu(e)}),Nu=/\s+/,Pu=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Nu),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Eu:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Fu=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Iu(n))&&(i&&(i+=` `),i+=r);return i},Iu=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Iu(e[r]))&&(n&&(n+=` `),n+=t);return n},Lu=(e,...t)=>{let n,r,i,a,o=o=>(n=Mu(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Pu(e,n);return i(e,a),a};return a=o,(...e)=>a(Fu(...e))},Ru=[],zu=e=>{let t=t=>t[e]||Ru;return t.isThemeGetter=!0,t},Bu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Hu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Uu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wu=/\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$/,Gu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ku=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ju=e=>Hu.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),Yu=e=>!!e&&Number.isInteger(Number(e)),Xu=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),Zu=e=>Uu.test(e),Qu=()=>!0,$u=e=>Wu.test(e)&&!Gu.test(e),ed=()=>!1,td=e=>Ku.test(e),nd=e=>qu.test(e),rd=e=>!q(e)&&!J(e),id=e=>yd(e,Y,ed),q=e=>Bu.test(e),ad=e=>yd(e,Cd,$u),od=e=>yd(e,wd,K),sd=e=>yd(e,Ed,Qu),cd=e=>yd(e,Td,ed),ld=e=>yd(e,xd,ed),ud=e=>yd(e,Sd,nd),dd=e=>yd(e,Dd,td),J=e=>Vu.test(e),fd=e=>bd(e,Cd),pd=e=>bd(e,Td),md=e=>bd(e,xd),hd=e=>bd(e,Y),gd=e=>bd(e,Sd),_d=e=>bd(e,Dd,!0),vd=e=>bd(e,Ed,!0),yd=(e,t,n)=>{let r=Bu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},bd=(e,t,n=!1)=>{let r=Vu.exec(e);return r?r[1]?t(r[1]):n:!1},xd=e=>e===`position`||e===`percentage`,Sd=e=>e===`image`||e===`url`,Y=e=>e===`length`||e===`size`||e===`bg-size`,Cd=e=>e===`length`,wd=e=>e===`number`,Td=e=>e===`family-name`,Ed=e=>e===`number`||e===`weight`,Dd=e=>e===`shadow`,Od=Lu(()=>{let e=zu(`color`),t=zu(`font`),n=zu(`text`),r=zu(`font-weight`),i=zu(`tracking`),a=zu(`leading`),o=zu(`breakpoint`),s=zu(`container`),c=zu(`spacing`),l=zu(`radius`),u=zu(`shadow`),d=zu(`inset-shadow`),f=zu(`text-shadow`),p=zu(`drop-shadow`),m=zu(`blur`),h=zu(`perspective`),g=zu(`aspect`),_=zu(`ease`),v=zu(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[Ju,`full`,`auto`,...w()],E=()=>[Yu,`none`,`subgrid`,J,q],D=()=>[`auto`,{span:[`full`,Yu,J,q]},Yu,J,q],O=()=>[Yu,`auto`,J,q],k=()=>[`auto`,`min`,`max`,`fr`,J,q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Ju,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[Ju,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[Ju,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,q],L=()=>[...b(),md,ld,{position:[J,q]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,hd,id,{size:[J,q]}],R=()=>[Xu,fd,ad],ne=()=>[``,`none`,`full`,l,J,q],z=()=>[``,K,fd,ad],B=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[K,Xu,md,ld],ie=()=>[``,`none`,m,J,q],ae=()=>[`none`,K,J,q],oe=()=>[`none`,K,J,q],se=()=>[K,J,q],ce=()=>[Ju,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Zu],breakpoint:[Zu],color:[Qu],container:[Zu],"drop-shadow":[Zu],ease:[`in`,`out`,`in-out`],font:[rd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Zu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Zu],shadow:[Zu],spacing:[`px`,K],text:[Zu],"text-shadow":[Zu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ju,q,J,g]}],container:[`container`],columns:[{columns:[K,q,J,s]}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Yu,`auto`,J,q]}],basis:[{basis:[Ju,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,Ju,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,K,J,q]}],shrink:[{shrink:[``,K,J,q]}],order:[{order:[Yu,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,fd,ad]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,vd,sd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Xu,q]}],"font-family":[{font:[pd,cd,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,J,q]}],"line-clamp":[{"line-clamp":[K,`none`,J,od]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,J,ad]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[K,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Yu,J,q],radial:[``,J,q],conic:[Yu,J,q]},gd,ud]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,J,q]}],"outline-w":[{outline:[``,K,fd,ad]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,_d,dd]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,_d,dd]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[K,ad]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,_d,dd]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[K,J,q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:ie()}],brightness:[{brightness:[K,J,q]}],contrast:[{contrast:[K,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,_d,dd]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,K,J,q]}],"hue-rotate":[{"hue-rotate":[K,J,q]}],invert:[{invert:[``,K,J,q]}],saturate:[{saturate:[K,J,q]}],sepia:[{sepia:[``,K,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[K,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[K,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,K,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[K,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[K,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[K,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,J,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,J,q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[K,fd,ad,od]}],stroke:[{stroke:[`none`,...I()]}],"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 kd(...e){return Od(ou(e))}function Ad({...e}){return(0,H.jsx)(al,{"data-slot":`popover`,...e})}function jd({...e}){return(0,H.jsx)(Cl,{"data-slot":`popover-trigger`,...e})}function Md({className:e,align:t=`center`,alignOffset:n=0,side:r=`bottom`,sideOffset:i=4,...a}){return(0,H.jsx)(El,{children:(0,H.jsx)(Hl,{align:t,alignOffset:n,side:r,sideOffset:i,className:`isolate z-50`,children:(0,H.jsx)(iu,{"data-slot":`popover-content`,className:kd(`z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a})})})}var Nd=[`yellow`,`orange`,`red`,`magenta`,`violet`,`blue`,`cyan`,`green`],Pd={yellow:`#b58900`,orange:`#cb4b16`,red:`#dc322f`,magenta:`#d33682`,violet:`#6c71c4`,blue:`#268bd2`,cyan:`#2aa198`,green:`#859900`},Fd=`#002b36`,Id=`#ffffff`;function Ld(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function Rd(e){let t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return .2126*Ld(t)+.7152*Ld(n)+.0722*Ld(r)}function zd(e,t){let n=Math.max(e,t),r=Math.min(e,t);return(n+.05)/(r+.05)}var Bd=Rd(Fd),Vd=Object.fromEntries(Nd.map(e=>{let t=Rd(Pd[e]);return[e,zd(t,1)>=zd(t,Bd)?Id:Fd]}));function Hd(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return Nd[Math.abs(t)%Nd.length]}function Ud({value:e,onChange:t}){return(0,H.jsx)(`div`,{"data-testid":`color-swatches`,className:`flex items-center gap-1.5`,children:Nd.map(n=>{let r=n===e;return(0,H.jsx)(`button`,{type:`button`,"aria-label":`Color ${n}`,"aria-pressed":r,onClick:()=>t(n),className:`flex h-5 w-5 items-center justify-center rounded-full transition-transform hover:scale-110 ${r?`ring-2 ring-foreground/70 ring-offset-1 ring-offset-popover`:``}`,style:{backgroundColor:Pd[n]},children:r&&(0,H.jsx)(at,{size:12,"aria-hidden":`true`,className:`text-black/70`})},n)})})}function Wd(e){return[...e].sort((e,t)=>e.name.localeCompare(t.name))}function Gd({mode:e,onChange:t}){let n=[`all`,`any`];return(0,H.jsx)(`div`,{"data-testid":`tag-match-control`,role:`group`,"aria-label":`Tag match mode`,className:`flex items-center overflow-hidden rounded-md border border-border text-[11px] font-medium`,children:n.map((r,i)=>(0,H.jsx)(`button`,{type:`button`,"data-testid":`tag-match-${r}`,"aria-pressed":e===r,onClick:()=>t(r),className:`px-2 py-0.5 capitalize transition-colors ${i<n.length-1?`border-r border-border`:``} ${e===r?`bg-primary/15 text-foreground`:`text-muted-foreground hover:text-foreground`}`,children:r},r))})}function Kd({tag:e,onCommit:t,onCancel:n}){let[r,i]=(0,v.useState)(e.name),a=()=>{let i=r.trim();i.length>0&&i!==e.name?t(i):n()};return(0,H.jsx)(`input`,{autoFocus:!0,value:r,onChange:e=>i(e.target.value),onBlur:a,onKeyDown:e=>{e.key===`Enter`?a():e.key===`Escape`&&n()},"aria-label":`Rename tag ${e.name}`,className:`min-w-0 flex-1 rounded border border-primary bg-transparent px-1.5 py-0.5 text-sm text-foreground outline-none`})}function qd({tag:e,count:t,onRenameStart:n,onRecolor:r,onDelete:i}){let[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(`menu`);return(0,H.jsxs)(Ad,{open:a,onOpenChange:e=>{o(e),e||c(`menu`)},children:[(0,H.jsx)(jd,{"aria-label":`Manage tag ${e.name}`,className:`flex h-6 w-6 shrink-0 items-center justify-center rounded bg-card text-muted-foreground opacity-0 transition hover:bg-white/10 hover:text-foreground focus-visible:opacity-100 group-hover/tag:opacity-100 data-popup-open:opacity-100 pointer-events-none focus-visible:pointer-events-auto group-hover/tag:pointer-events-auto data-popup-open:pointer-events-auto`,children:(0,H.jsx)(lt,{size:14,"aria-hidden":`true`})}),(0,H.jsxs)(Md,{"data-testid":`tag-manage-menu`,align:`end`,sideOffset:4,className:`w-56 gap-1 p-1`,children:[s===`menu`&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>{o(!1),n()},className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-white/6`,children:[(0,H.jsx)(pt,{size:14,"aria-hidden":`true`}),`Rename`]}),(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tag-recolor-button`,onClick:()=>c(`recolor`),className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-white/6`,children:[(0,H.jsx)(ft,{size:14,"aria-hidden":`true`}),`Recolor`]}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>c(`delete`),className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-destructive transition-colors hover:bg-[#3a1d23]`,children:[(0,H.jsx)(_t,{size:14,"aria-hidden":`true`}),`Delete`]})]}),s===`recolor`&&(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 p-1`,children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>c(`menu`),className:`flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground`,children:[(0,H.jsx)(nt,{size:12,"aria-hidden":`true`}),`Color`]}),(0,H.jsx)(Ud,{value:e.color,onChange:r})]}),s===`delete`&&(0,H.jsxs)(`div`,{"data-testid":`tag-delete-confirm`,className:`p-1.5`,children:[(0,H.jsxs)(`p`,{className:`flex items-center gap-1.5 font-medium text-foreground`,children:[(0,H.jsx)(_t,{size:14,"aria-hidden":`true`,className:`text-destructive`}),`Delete tag “`,e.name,`”?`]}),(0,H.jsxs)(`p`,{className:`mt-1.5 text-xs text-muted-foreground`,children:[`It will be removed from`,` `,(0,H.jsxs)(`span`,{className:`font-medium text-foreground`,children:[t,` `,t===1?`chat`:`chats`]}),`. This can’t be undone.`]}),(0,H.jsxs)(`div`,{className:`mt-2.5 flex justify-end gap-2`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>c(`menu`),className:`rounded-md border border-border px-2.5 py-1 text-xs text-foreground transition-colors hover:bg-white/6`,children:`Cancel`}),(0,H.jsx)(`button`,{type:`button`,"data-testid":`tag-delete-confirm-button`,onClick:()=>{i(),o(!1)},className:`rounded-md bg-destructive px-2.5 py-1 text-xs font-semibold text-white transition-colors hover:bg-destructive/90`,children:`Delete`})]})]})]})]})}function Jd({tag:e,count:t,isSelected:n,dimmed:r,onToggle:i,onRename:a,onRecolor:o,onDelete:s}){let[c,l]=(0,v.useState)(!1);return c?(0,H.jsxs)(`li`,{"data-testid":`tag-manage-row`,"data-tag-id":e.id,className:`group/tag relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground/90`,children:[(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`h-2.5 w-2.5 shrink-0 rounded-full`,style:{backgroundColor:Pd[e.color]}}),(0,H.jsx)(Kd,{tag:e,onCommit:e=>{a(e),l(!1)},onCancel:()=>l(!1)})]}):(0,H.jsxs)(`li`,{"data-testid":`tag-manage-row`,"data-tag-id":e.id,"data-dimmed":r?`true`:void 0,className:`group/tag relative flex items-center rounded-md pr-2 text-sm transition ${n?`bg-primary/15`:`hover:bg-card`} ${r?`opacity-40 hover:opacity-100`:``}`,children:[(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tag-filter-${e.id}`,"aria-pressed":n,onClick:i,className:`flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left group-hover/tag:pr-8 ${n?`text-foreground`:`text-foreground/90`}`,children:[(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`h-2.5 w-2.5 shrink-0 rounded-full`,style:{backgroundColor:Pd[e.color]}}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),n&&(0,H.jsx)(at,{size:14,"aria-hidden":`true`,className:`shrink-0 text-primary group-hover/tag:hidden`})]}),(0,H.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-muted-foreground group-hover/tag:hidden`,children:t}),(0,H.jsx)(`span`,{className:`absolute right-1.5 top-1/2 -translate-y-1/2`,children:(0,H.jsx)(qd,{tag:e,count:t,onRenameStart:()=>l(!0),onRecolor:o,onDelete:s})})]})}function Yd({count:e,isSelected:t,onToggle:n}){return(0,H.jsxs)(`li`,{className:`relative flex items-center rounded-md pr-2 text-sm transition-colors ${t?`bg-primary/15`:`hover:bg-card`}`,children:[(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tag-filter-untagged`,"aria-pressed":t,onClick:n,className:`flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left text-muted-foreground`,children:[(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`h-2.5 w-2.5 shrink-0 rounded-full border border-muted-foreground/40`}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate italic`,children:`Untagged`}),t&&(0,H.jsx)(at,{size:14,"aria-hidden":`true`,className:`shrink-0 text-primary`})]}),(0,H.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-muted-foreground`,children:e})]})}function Xd({tags:e,countForTag:t,untaggedCount:n,selected:r,tagMode:i,onTagModeChange:a,onToggle:o,onRename:s,onRecolor:c,onDelete:l}){let[u,d]=(0,v.useState)(!1),f=(0,v.useMemo)(()=>Wd(e),[e]),p=r.has(``)&&i===`all`;return(0,H.jsxs)(`div`,{"data-testid":`tags-section`,className:`flex flex-col`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between px-2 py-1.5 text-xs font-medium text-muted-foreground`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`button`,{type:`button`,"data-testid":`tags-header`,onClick:()=>d(e=>!e),"aria-expanded":!u,className:`transition-colors hover:text-foreground`,children:`Tags`}),f.length>0&&(0,H.jsx)(Gd,{mode:i,onChange:a})]}),(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tags-order-caption`,onClick:()=>d(e=>!e),"aria-expanded":!u,title:`Sorted A–Z`,className:`flex items-center gap-0.5 text-muted-foreground/80 transition-colors hover:text-foreground`,children:[`A–Z`,(0,H.jsx)(ot,{size:12,"aria-hidden":`true`,className:`transition-transform ${u?`-rotate-90`:``}`})]})]}),!u&&(f.length===0?(0,H.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-muted-foreground`,children:`No tags yet. Add one from a chat’s header.`}):(0,H.jsxs)(`ul`,{className:`flex flex-col gap-0.5`,children:[f.map(e=>(0,H.jsx)(Jd,{tag:e,count:t(e.id),isSelected:r.has(e.id),dimmed:p,onToggle:()=>o(e.id),onRename:t=>s(e.id,t),onRecolor:t=>c(e.id,t),onDelete:()=>l(e.id)},e.id)),(0,H.jsx)(Yd,{count:n,isSelected:r.has(``),onToggle:()=>o(``)})]}))]})}function Zd({deletedCount:e,onOpenTrash:t,projectFacets:n,selectedProjects:r,onToggleProject:i,onClearFilters:a,tags:o,countForTag:s,untaggedCount:c,selectedTags:l,tagMode:u,onTagModeChange:d,onToggleTag:f,onRenameTag:p,onRecolorTag:m,onDeleteTag:h}){return(0,H.jsxs)(`div`,{"data-testid":`filter-panel`,className:`flex h-full flex-col`,children:[(0,H.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-sm font-semibold text-foreground`,children:[(0,H.jsx)(`div`,{className:`h-4 w-4 rounded bg-primary`}),`Chat Logbook`]}),(0,H.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:[(0,H.jsx)(wt,{activeCount:r.size+l.size,onClear:a}),(0,H.jsx)(Ct,{facets:n,selected:r,onToggle:i}),(0,H.jsx)(Xd,{tags:o,countForTag:s,untaggedCount:c,selected:l,tagMode:u,onTagModeChange:d,onToggle:f,onRename:p,onRecolor:m,onDelete:h})]}),(0,H.jsx)(`div`,{className:`flex h-12 shrink-0 items-center border-t border-border px-2`,children:(0,H.jsxs)(`button`,{type:`button`,"data-testid":`trash-link`,onClick:t,className:`flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-sm text-foreground transition-colors hover:bg-card`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(_t,{size:14,"aria-hidden":`true`}),`Trash`]}),e>0&&(0,H.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:e})]})})]})}function Qd(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
20
+ )`}return(0,H.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function G(e){return e===`starting`?vi:Cn}var Hl=v.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=bi,...g}=e,{store:_}=Zc(),y=Tl(),b=Ja(),x=_.useState(`floatingRootContext`),S=_.useState(`mounted`),C=_.useState(`open`),w=_.useState(`openChangeReason`),T=_.useState(`activeTriggerElement`),E=_.useState(`modal`),D=_.useState(`positionerElement`),O=_.useState(`instantType`),k=_.useState(`transitionStatus`),A=_.useState(`hasViewport`),j=v.useRef(null),M=mc(D,!1,!1),N=zl({anchor:i,floatingRootContext:x,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:y,nodeId:b,collisionAvoidance:h,adaptiveOrigin:A?Il:void 0}),P=v.useMemo(()=>{let e={};return C||(e.pointerEvents=`none`),{role:`presentation`,hidden:!S,style:{...N.positionerStyles,...e}}},[C,S,N.positionerStyles]),F=v.useMemo(()=>({props:P,...N}),[P,N]),I=x.useState(`domReferenceElement`);un(()=>{let e=I,t=j.current;if(e&&(j.current=e),t&&e&&e!==t){_.set(`instantType`,void 0);let e=new AbortController;return M(()=>{_.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[I,M,_]);let L={open:C,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:O},ee=v.useCallback(e=>{_.set(`positionerElement`,e)},[_]),te=ja(`div`,e,{state:L,props:[F.props,G(k),g],ref:[t,ee],stateAttributesMapping:xl});return(0,H.jsxs)(Ol.Provider,{value:F,children:[S&&E===!0&&w!==`trigger-hover`&&(0,H.jsx)(Vl,{ref:_.context.internalBackdropRef,inert:Dl(!C),cutout:T}),(0,H.jsx)(Ya,{id:b,children:te})]})}),Ul=`ArrowUp`,Wl=`ArrowDown`,Gl=`ArrowLeft`,Kl=`ArrowRight`,ql=`Home`,Jl=new Set([Gl,Kl]),Yl=new Set([Ul,Wl]),Xl=new Set([...Jl,...Yl]);new Set([...Xl,ql,`End`]);var Zl=new Set([Ul,Wl,Gl,Kl,ql,`End`]),Ql=v.createContext(void 0);function $l(e){let t=v.useContext(Ql);if(t===void 0&&!e)throw Error(da(69));return t}var eu=v.createContext(void 0);function tu(){let[e,t]=v.useState(0),n=U(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:v.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}function nu(e){let{value:t,children:n}=e;return(0,H.jsx)(eu.Provider,{value:t,children:n})}var ru={...xl,...pc},iu=v.forwardRef(function(e,t){let{className:n,render:r,initialFocus:i,finalFocus:a,...o}=e,{store:s}=Zc(),c=kl(),l=$l(!0)!=null,{context:u,hasClosePart:d}=tu(),f=s.useState(`open`),p=s.useState(`openMethod`),m=s.useState(`instantType`),h=s.useState(`transitionStatus`),g=s.useState(`popupProps`),_=s.useState(`titleElementId`),y=s.useState(`descriptionElementId`),b=s.useState(`modal`),x=s.useState(`mounted`),S=s.useState(`openChangeReason`),C=s.useState(`activeTriggerElement`),w=s.useState(`floatingRootContext`);hc({open:f,ref:s.context.popupRef,onComplete(){f&&s.context.onOpenChangeComplete?.(!0)}});let T=s.useState(`disabled`),E=s.useState(`openOnHover`),D=s.useState(`closeDelay`);Pc(w,{enabled:E&&!T,closeDelay:D});function O(e){return e===`touch`?s.context.popupRef.current:!0}let k=i===void 0?O:i,A={open:f,side:c.side,align:c.align,instant:m,transitionStatus:h},j=b!==!1&&d,M=v.useCallback(e=>{s.set(`popupElement`,e)},[s]),N=ja(`div`,e,{state:A,ref:[t,s.context.popupRef,M],props:[g,{"aria-labelledby":_,"aria-describedby":y,onKeyDown(e){l&&Zl.has(e.key)&&e.stopPropagation()}},G(h),o],stateAttributesMapping:ru});return(0,H.jsx)(so,{context:w,openInteractionType:p,modal:j,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:a,restoreFocus:`popup`,previousFocusableElement:jt(C)?C:void 0,nextFocusableElement:s.context.triggerFocusTargetRef,beforeContentFocusGuardRef:s.context.beforeContentFocusGuardRef,children:(0,H.jsx)(nu,{value:u,children:N})})});function au(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=au(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ou(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=au(e))&&(r&&(r+=` `),r+=t);return r}var su=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},cu=(e,t)=>({classGroupId:e,validator:t}),lu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),uu=`-`,du=[],fu=`arbitrary..`,pu=e=>{let t=gu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return hu(e);let n=e.split(uu);return mu(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?su(i,t):t:i||du}return n[e]||du}}},mu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=mu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(uu):e.slice(t).join(uu),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},hu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?fu+r:void 0})(),gu=e=>{let{theme:t,classGroups:n}=e;return _u(n,t)},_u=(e,t)=>{let n=lu();for(let r in e){let i=e[r];vu(i,n,r,t)}return n},vu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];yu(i,t,n,r)}},yu=(e,t,n,r)=>{if(typeof e==`string`){bu(e,t,n);return}if(typeof e==`function`){xu(e,t,n,r);return}Su(e,t,n,r)},bu=(e,t,n)=>{let r=e===``?t:Cu(t,e);r.classGroupId=n},xu=(e,t,n,r)=>{if(wu(e)){vu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(cu(n,e))},Su=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];vu(o,Cu(t,a),n,r)}},Cu=(e,t)=>{let n=e,r=t.split(uu),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=lu(),n.nextPart.set(t,i)),n=i}return n},wu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Tu=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Eu=`!`,Du=`:`,Ou=[],ku=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Au=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Du){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Eu)?(c=s.slice(0,-1),l=!0):s.startsWith(Eu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ku(t,l,c,u)};if(t){let e=t+Du,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ku(Ou,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ju=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Mu=e=>({cache:Tu(e.cacheSize),parseClassName:Au(e),sortModifiers:ju(e),...pu(e)}),Nu=/\s+/,Pu=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Nu),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Eu:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Fu=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Iu(n))&&(i&&(i+=` `),i+=r);return i},Iu=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Iu(e[r]))&&(n&&(n+=` `),n+=t);return n},Lu=(e,...t)=>{let n,r,i,a,o=o=>(n=Mu(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Pu(e,n);return i(e,a),a};return a=o,(...e)=>a(Fu(...e))},Ru=[],zu=e=>{let t=t=>t[e]||Ru;return t.isThemeGetter=!0,t},Bu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Hu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Uu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wu=/\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$/,Gu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ku=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ju=e=>Hu.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),Yu=e=>!!e&&Number.isInteger(Number(e)),Xu=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),Zu=e=>Uu.test(e),Qu=()=>!0,$u=e=>Wu.test(e)&&!Gu.test(e),ed=()=>!1,td=e=>Ku.test(e),nd=e=>qu.test(e),rd=e=>!q(e)&&!J(e),id=e=>yd(e,Y,ed),q=e=>Bu.test(e),ad=e=>yd(e,Cd,$u),od=e=>yd(e,wd,K),sd=e=>yd(e,Ed,Qu),cd=e=>yd(e,Td,ed),ld=e=>yd(e,xd,ed),ud=e=>yd(e,Sd,nd),dd=e=>yd(e,Dd,td),J=e=>Vu.test(e),fd=e=>bd(e,Cd),pd=e=>bd(e,Td),md=e=>bd(e,xd),hd=e=>bd(e,Y),gd=e=>bd(e,Sd),_d=e=>bd(e,Dd,!0),vd=e=>bd(e,Ed,!0),yd=(e,t,n)=>{let r=Bu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},bd=(e,t,n=!1)=>{let r=Vu.exec(e);return r?r[1]?t(r[1]):n:!1},xd=e=>e===`position`||e===`percentage`,Sd=e=>e===`image`||e===`url`,Y=e=>e===`length`||e===`size`||e===`bg-size`,Cd=e=>e===`length`,wd=e=>e===`number`,Td=e=>e===`family-name`,Ed=e=>e===`number`||e===`weight`,Dd=e=>e===`shadow`,Od=Lu(()=>{let e=zu(`color`),t=zu(`font`),n=zu(`text`),r=zu(`font-weight`),i=zu(`tracking`),a=zu(`leading`),o=zu(`breakpoint`),s=zu(`container`),c=zu(`spacing`),l=zu(`radius`),u=zu(`shadow`),d=zu(`inset-shadow`),f=zu(`text-shadow`),p=zu(`drop-shadow`),m=zu(`blur`),h=zu(`perspective`),g=zu(`aspect`),_=zu(`ease`),v=zu(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[Ju,`full`,`auto`,...w()],E=()=>[Yu,`none`,`subgrid`,J,q],D=()=>[`auto`,{span:[`full`,Yu,J,q]},Yu,J,q],O=()=>[Yu,`auto`,J,q],k=()=>[`auto`,`min`,`max`,`fr`,J,q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Ju,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[Ju,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[Ju,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,q],L=()=>[...b(),md,ld,{position:[J,q]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,hd,id,{size:[J,q]}],R=()=>[Xu,fd,ad],ne=()=>[``,`none`,`full`,l,J,q],z=()=>[``,K,fd,ad],B=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[K,Xu,md,ld],ie=()=>[``,`none`,m,J,q],ae=()=>[`none`,K,J,q],oe=()=>[`none`,K,J,q],se=()=>[K,J,q],ce=()=>[Ju,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Zu],breakpoint:[Zu],color:[Qu],container:[Zu],"drop-shadow":[Zu],ease:[`in`,`out`,`in-out`],font:[rd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Zu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Zu],shadow:[Zu],spacing:[`px`,K],text:[Zu],"text-shadow":[Zu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ju,q,J,g]}],container:[`container`],columns:[{columns:[K,q,J,s]}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Yu,`auto`,J,q]}],basis:[{basis:[Ju,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,Ju,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,K,J,q]}],shrink:[{shrink:[``,K,J,q]}],order:[{order:[Yu,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,fd,ad]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,vd,sd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Xu,q]}],"font-family":[{font:[pd,cd,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,J,q]}],"line-clamp":[{"line-clamp":[K,`none`,J,od]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,J,ad]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[K,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Yu,J,q],radial:[``,J,q],conic:[Yu,J,q]},gd,ud]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,J,q]}],"outline-w":[{outline:[``,K,fd,ad]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,_d,dd]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,_d,dd]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[K,ad]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,_d,dd]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[K,J,q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:ie()}],brightness:[{brightness:[K,J,q]}],contrast:[{contrast:[K,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,_d,dd]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,K,J,q]}],"hue-rotate":[{"hue-rotate":[K,J,q]}],invert:[{invert:[``,K,J,q]}],saturate:[{saturate:[K,J,q]}],sepia:[{sepia:[``,K,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[K,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[K,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,K,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[K,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[K,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[K,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,J,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,J,q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[K,fd,ad,od]}],stroke:[{stroke:[`none`,...I()]}],"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 kd(...e){return Od(ou(e))}function Ad({...e}){return(0,H.jsx)(al,{"data-slot":`popover`,...e})}function jd({...e}){return(0,H.jsx)(Cl,{"data-slot":`popover-trigger`,...e})}function Md({className:e,align:t=`center`,alignOffset:n=0,side:r=`bottom`,sideOffset:i=4,...a}){return(0,H.jsx)(El,{children:(0,H.jsx)(Hl,{align:t,alignOffset:n,side:r,sideOffset:i,className:`isolate z-50`,children:(0,H.jsx)(iu,{"data-slot":`popover-content`,className:kd(`z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a})})})}var Nd=[`yellow`,`orange`,`red`,`magenta`,`violet`,`blue`,`cyan`,`green`],Pd={yellow:`#b58900`,orange:`#cb4b16`,red:`#dc322f`,magenta:`#d33682`,violet:`#6c71c4`,blue:`#268bd2`,cyan:`#2aa198`,green:`#859900`},Fd=`#002b36`,Id=`#ffffff`;function Ld(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function Rd(e){let t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return .2126*Ld(t)+.7152*Ld(n)+.0722*Ld(r)}function zd(e,t){let n=Math.max(e,t),r=Math.min(e,t);return(n+.05)/(r+.05)}var Bd=Rd(Fd),Vd=Object.fromEntries(Nd.map(e=>{let t=Rd(Pd[e]);return[e,zd(t,1)>=zd(t,Bd)?Id:Fd]}));function Hd(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return Nd[Math.abs(t)%Nd.length]}function Ud({value:e,onChange:t}){return(0,H.jsx)(`div`,{"data-testid":`color-swatches`,className:`flex items-center gap-1.5`,children:Nd.map(n=>{let r=n===e;return(0,H.jsx)(`button`,{type:`button`,"aria-label":`Color ${n}`,"aria-pressed":r,onClick:()=>t(n),className:`flex h-5 w-5 items-center justify-center rounded-full transition-transform hover:scale-110 ${r?`ring-2 ring-foreground/70 ring-offset-1 ring-offset-popover`:``}`,style:{backgroundColor:Pd[n]},children:r&&(0,H.jsx)(at,{size:12,"aria-hidden":`true`,className:`text-black/70`})},n)})})}function Wd(e){return[...e].sort((e,t)=>e.name.localeCompare(t.name))}function Gd({mode:e,onChange:t}){let n=[`all`,`any`];return(0,H.jsx)(`div`,{"data-testid":`tag-match-control`,role:`group`,"aria-label":`Tag match mode`,className:`flex items-center overflow-hidden rounded-md border border-border text-[11px] font-medium`,children:n.map((r,i)=>(0,H.jsx)(`button`,{type:`button`,"data-testid":`tag-match-${r}`,"aria-pressed":e===r,onClick:()=>t(r),className:`px-2 py-0.5 capitalize transition-colors ${i<n.length-1?`border-r border-border`:``} ${e===r?`bg-primary/15 text-foreground`:`text-muted-foreground hover:text-foreground`}`,children:r},r))})}function Kd({tag:e,onCommit:t,onCancel:n}){let[r,i]=(0,v.useState)(e.name),a=()=>{let i=r.trim();i.length>0&&i!==e.name?t(i):n()};return(0,H.jsx)(`input`,{autoFocus:!0,value:r,onChange:e=>i(e.target.value),onBlur:a,onKeyDown:e=>{e.key===`Enter`?a():e.key===`Escape`&&n()},"aria-label":`Rename tag ${e.name}`,className:`min-w-0 flex-1 rounded border border-primary bg-transparent px-1.5 py-0.5 text-sm text-foreground outline-none`})}function qd({tag:e,count:t,onRenameStart:n,onRecolor:r,onDelete:i}){let[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(`menu`);return(0,H.jsxs)(Ad,{open:a,onOpenChange:e=>{o(e),e||c(`menu`)},children:[(0,H.jsx)(jd,{"aria-label":`Manage tag ${e.name}`,className:`flex h-6 w-6 shrink-0 items-center justify-center rounded bg-card text-muted-foreground opacity-0 transition hover:bg-white/10 hover:text-foreground focus-visible:opacity-100 group-hover/tag:opacity-100 data-popup-open:opacity-100 pointer-events-none focus-visible:pointer-events-auto group-hover/tag:pointer-events-auto data-popup-open:pointer-events-auto`,children:(0,H.jsx)(lt,{size:14,"aria-hidden":`true`})}),(0,H.jsxs)(Md,{"data-testid":`tag-manage-menu`,align:`end`,sideOffset:4,className:`w-56 gap-1 p-1`,children:[s===`menu`&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>{o(!1),n()},className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-white/6`,children:[(0,H.jsx)(pt,{size:14,"aria-hidden":`true`}),`Rename`]}),(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tag-recolor-button`,onClick:()=>c(`recolor`),className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-white/6`,children:[(0,H.jsx)(ft,{size:14,"aria-hidden":`true`}),`Recolor`]}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>c(`delete`),className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-destructive transition-colors hover:bg-[#3a1d23]`,children:[(0,H.jsx)(_t,{size:14,"aria-hidden":`true`}),`Delete`]})]}),s===`recolor`&&(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 p-1`,children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>c(`menu`),className:`flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground`,children:[(0,H.jsx)(nt,{size:12,"aria-hidden":`true`}),`Color`]}),(0,H.jsx)(Ud,{value:e.color,onChange:r})]}),s===`delete`&&(0,H.jsxs)(`div`,{"data-testid":`tag-delete-confirm`,className:`p-1.5`,children:[(0,H.jsxs)(`p`,{className:`flex items-center gap-1.5 font-medium text-foreground`,children:[(0,H.jsx)(_t,{size:14,"aria-hidden":`true`,className:`text-destructive`}),`Delete tag “`,e.name,`”?`]}),(0,H.jsxs)(`p`,{className:`mt-1.5 text-xs text-muted-foreground`,children:[`It will be removed from`,` `,(0,H.jsxs)(`span`,{className:`font-medium text-foreground`,children:[t,` `,t===1?`chat`:`chats`]}),`. This can’t be undone.`]}),(0,H.jsxs)(`div`,{className:`mt-2.5 flex justify-end gap-2`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>c(`menu`),className:`rounded-md border border-border px-2.5 py-1 text-xs text-foreground transition-colors hover:bg-white/6`,children:`Cancel`}),(0,H.jsx)(`button`,{type:`button`,"data-testid":`tag-delete-confirm-button`,onClick:()=>{i(),o(!1)},className:`rounded-md bg-destructive px-2.5 py-1 text-xs font-semibold text-white transition-colors hover:bg-destructive/90`,children:`Delete`})]})]})]})]})}function Jd({tag:e,count:t,isSelected:n,dimmed:r,onToggle:i,onRename:a,onRecolor:o,onDelete:s}){let[c,l]=(0,v.useState)(!1);return c?(0,H.jsxs)(`li`,{"data-testid":`tag-manage-row`,"data-tag-id":e.id,className:`group/tag relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground/90`,children:[(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`h-2.5 w-2.5 shrink-0 rounded-full`,style:{backgroundColor:Pd[e.color]}}),(0,H.jsx)(Kd,{tag:e,onCommit:e=>{a(e),l(!1)},onCancel:()=>l(!1)})]}):(0,H.jsxs)(`li`,{"data-testid":`tag-manage-row`,"data-tag-id":e.id,"data-dimmed":r?`true`:void 0,className:`group/tag relative flex items-center rounded-md pr-2 text-sm transition ${n?`bg-primary/15`:`hover:bg-card`} ${r?`opacity-40 hover:opacity-100`:``}`,children:[(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tag-filter-${e.id}`,"aria-pressed":n,onClick:i,className:`flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left group-hover/tag:pr-8 ${n?`text-foreground`:`text-foreground/90`}`,children:[(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`h-2.5 w-2.5 shrink-0 rounded-full`,style:{backgroundColor:Pd[e.color]}}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),n&&(0,H.jsx)(at,{size:14,"aria-hidden":`true`,className:`shrink-0 text-primary group-hover/tag:hidden`})]}),(0,H.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-muted-foreground group-hover/tag:hidden`,children:t}),(0,H.jsx)(`span`,{className:`absolute right-1.5 top-1/2 -translate-y-1/2`,children:(0,H.jsx)(qd,{tag:e,count:t,onRenameStart:()=>l(!0),onRecolor:o,onDelete:s})})]})}function Yd({count:e,isSelected:t,onToggle:n}){return(0,H.jsxs)(`li`,{className:`relative flex items-center rounded-md pr-2 text-sm transition-colors ${t?`bg-primary/15`:`hover:bg-card`}`,children:[(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tag-filter-untagged`,"aria-pressed":t,onClick:n,className:`flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left text-muted-foreground`,children:[(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`h-2.5 w-2.5 shrink-0 rounded-full border border-muted-foreground/40`}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate italic`,children:`Untagged`}),t&&(0,H.jsx)(at,{size:14,"aria-hidden":`true`,className:`shrink-0 text-primary`})]}),(0,H.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-muted-foreground`,children:e})]})}function Xd({tags:e,countForTag:t,untaggedCount:n,selected:r,tagMode:i,onTagModeChange:a,onToggle:o,onRename:s,onRecolor:c,onDelete:l}){let[u,d]=(0,v.useState)(!1),f=(0,v.useMemo)(()=>Wd(e),[e]),p=r.has(``)&&i===`all`;return(0,H.jsxs)(`div`,{"data-testid":`tags-section`,className:`flex flex-col`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between px-2 py-1.5 text-xs font-medium text-muted-foreground`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`button`,{type:`button`,"data-testid":`tags-header`,onClick:()=>d(e=>!e),"aria-expanded":!u,className:`transition-colors hover:text-foreground`,children:`Tags`}),f.length>0&&(0,H.jsx)(Gd,{mode:i,onChange:a})]}),(0,H.jsxs)(`button`,{type:`button`,"data-testid":`tags-order-caption`,onClick:()=>d(e=>!e),"aria-expanded":!u,title:`Sorted A–Z`,className:`flex items-center gap-0.5 text-muted-foreground/80 transition-colors hover:text-foreground`,children:[`A–Z`,(0,H.jsx)(ot,{size:12,"aria-hidden":`true`,className:`transition-transform ${u?`-rotate-90`:``}`})]})]}),!u&&(f.length===0?(0,H.jsx)(`p`,{className:`px-2 py-1.5 text-xs text-muted-foreground`,children:`No tags yet. Add one from a chat’s header.`}):(0,H.jsxs)(`ul`,{className:`flex flex-col gap-0.5`,children:[f.map(e=>(0,H.jsx)(Jd,{tag:e,count:t(e.id),isSelected:r.has(e.id),dimmed:p,onToggle:()=>o(e.id),onRename:t=>s(e.id,t),onRecolor:t=>c(e.id,t),onDelete:()=>l(e.id)},e.id)),(0,H.jsx)(Yd,{count:n,isSelected:r.has(``),onToggle:()=>o(``)})]}))]})}function Zd({deletedCount:e,onOpenTrash:t,projectFacets:n,selectedProjects:r,onToggleProject:i,onClearFilters:a,tags:o,countForTag:s,untaggedCount:c,selectedTags:l,tagMode:u,onTagModeChange:d,onToggleTag:f,onRenameTag:p,onRecolorTag:m,onDeleteTag:h}){return(0,H.jsxs)(`div`,{"data-testid":`filter-panel`,className:`flex h-full flex-col`,children:[(0,H.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-sm font-semibold text-foreground`,children:[(0,H.jsx)(`img`,{"data-testid":`brand-mark`,src:`/favicon.svg`,alt:``,className:`h-6 w-6 rounded`}),`Chat Logbook`]}),(0,H.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:[(0,H.jsx)(wt,{activeCount:r.size+l.size,onClear:a}),(0,H.jsx)(Ct,{facets:n,selected:r,onToggle:i}),(0,H.jsx)(Xd,{tags:o,countForTag:s,untaggedCount:c,selected:l,tagMode:u,onTagModeChange:d,onToggle:f,onRename:p,onRecolor:m,onDelete:h})]}),(0,H.jsx)(`div`,{className:`flex h-12 shrink-0 items-center border-t border-border px-2`,children:(0,H.jsxs)(`button`,{type:`button`,"data-testid":`trash-link`,onClick:t,className:`flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-sm text-foreground transition-colors hover:bg-card`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(_t,{size:14,"aria-hidden":`true`}),`Trash`]}),e>0&&(0,H.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:e})]})})]})}function Qd(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
21
21
  font-size: .6rem;
22
22
  font-weight: bold;
23
23
  color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return o.updateDeps=e=>{r=e},o}function $d(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var ef=(e,t)=>Math.abs(e-t)<1.01,tf=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},nf=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},rf=e=>e,af=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},of=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(nf(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(nf(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},sf={passive:!0},cf=typeof window>`u`?!0:`onscrollend`in window,lf=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&cf?()=>void 0:tf(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);n.addEventListener(`scroll`,s,sf);let l=e.options.useScrollendEvent&&cf;return l&&n.addEventListener(`scrollend`,c,sf),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c)}},uf=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},df=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},ff=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rf,rangeExtractor:af,onChange:()=>{},measureElement:uf,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=Qd(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.end<a.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=Qd(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,i,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a}),{key:!1}),this.getMeasurements=Qd(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let c=this.measurementsCache.slice(0,s),l=Array(a).fill(void 0);for(let e=0;e<s;e++){let t=c[e];t&&(l[t.lane]=e)}for(let i=s;i<e;i++){let e=r(i),a=this.laneAssignments.get(i),s,u;if(a!==void 0&&this.options.lanes>1){s=a;let e=l[s],r=e===void 0?void 0:c[e];u=r?r.end+this.options.gap:t+n}else{let e=this.options.lanes===1?c[i-1]:this.getFurthestMeasurement(c,i);u=e?e.end+this.options.gap:t+n,s=e?e.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,s)}let d=o.get(e),f=typeof d==`number`?d:this.options.estimateSize(i),p=u+f;c[i]={index:i,start:u,size:f,end:p,key:e,lane:s},l[s]=i}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Qd(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?mf({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Qd(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&(this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start<this.getScrollOffset()+this.scrollAdjustments:this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.getVirtualItems=Qd(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return $d(t[pf(0,t.length-1,e=>$d(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`)if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t];if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{let r=this.getOffsetForAlignment(e,t);this.scrollState={index:null,align:t,behavior:n,startedAt:this.now(),lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e;this.scrollState={index:null,align:`start`,behavior:t,startedAt:this.now(),lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&ef(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.scrollState=null;return}}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior=`auto`,this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}));this.scheduleScrollReconcile()}},pf=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function mf({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=pf(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){let a=Array(r).fill(0);for(;s<i&&a.some(e=>e<n+t);){let t=e[s];a[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var hf=typeof document<`u`?v.useLayoutEffect:v.useEffect;function gf({useFlushSync:e=!0,...t}){let n=v.useReducer(()=>({}),{})[1],r={...t,onChange:(r,i)=>{var a;e&&i?(0,Ia.flushSync)(n):n(),(a=t.onChange)==null||a.call(t,r,i)}},[i]=v.useState(()=>new ff(r));return i.setOptions(r),hf(()=>i._didMount(),[]),hf(()=>i._willUpdate()),i}function _f(e){return gf({observeElementRect:of,observeElementOffset:lf,scrollToFn:df,...e})}function vf({value:e,editing:t,onEditStart:n,onEditEnd:r,onSave:i,displayClassName:a,inputClassName:o,inputAriaLabel:s=`Chat title`,onDisplayClick:c}){let l=(0,v.useRef)(null),u=(0,v.useRef)(!1);(0,v.useEffect)(()=>{t&&l.current&&(l.current.focus(),l.current.select())},[t]);let d=()=>{if(u.current){u.current=!1;return}let t=l.current?.value??e;r(),t!==e&&i(t)},f=()=>{u.current=!0,r()},p=e=>{e.key===`Enter`?(e.preventDefault(),e.stopPropagation(),d()):e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),f()):e.stopPropagation()};return t?(0,H.jsx)(`input`,{ref:l,"aria-label":s,defaultValue:e,maxLength:200,onKeyDown:p,onClick:e=>e.stopPropagation(),onBlur:d,className:o}):(0,H.jsx)(`span`,{onClick:e=>{c?.(e),!e.defaultPrevented&&n()},className:a,children:e})}function yf({tag:e,onRemove:t}){let n=Pd[e.color],r=Vd[e.color];return(0,H.jsxs)(`span`,{"data-testid":`tag-chip`,"data-tag-id":e.id,className:`group/chip relative inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium`,style:{backgroundColor:n,color:r},children:[(0,H.jsx)(`span`,{className:`max-w-[14ch] truncate`,children:e.name}),t&&(0,H.jsx)(`button`,{type:`button`,"aria-label":`Remove tag ${e.name}`,onClick:()=>t(e),style:{color:r},className:`absolute right-0.5 top-1/2 flex h-4 w-4 -translate-y-1/2 items-center justify-center rounded-full bg-black/25 opacity-0 transition-opacity hover:bg-black/40 focus-visible:opacity-100 group-hover/chip:opacity-100`,children:(0,H.jsx)(vt,{size:11,"aria-hidden":`true`})})]})}function bf({tags:e,max:t=3}){if(e.length===0)return null;let n=Wd(e),r=n.slice(0,t),i=n.slice(t);return(0,H.jsxs)(`span`,{"data-testid":`tag-chip-list`,className:`flex items-center gap-1 overflow-hidden`,children:[r.map(e=>(0,H.jsx)(yf,{tag:e},e.id)),i.length>0&&(0,H.jsxs)(`span`,{title:i.map(e=>e.name).join(`, `),className:`shrink-0 rounded-full bg-card px-1.5 py-0.5 text-[10px] font-medium tabular-nums text-muted-foreground`,children:[`+`,i.length]})]})}function xf({chats:e,openId:t,onOpen:n,debounceMs:r=150}){let[i,a]=(0,v.useState)(-1),[o,s]=(0,v.useState)(t);t!==o&&(s(t),a(e.findIndex(e=>e.id===t)));let c=(0,v.useRef)(i);(0,v.useEffect)(()=>{c.current=i},[i]);let l=(0,v.useRef)(n);(0,v.useEffect)(()=>{l.current=n},[n]);let u=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let n=n=>{if(n.key!==`ArrowDown`&&n.key!==`ArrowUp`||n.metaKey||n.ctrlKey||n.altKey)return;let i=n.target;if(i?.tagName===`INPUT`||i?.tagName===`TEXTAREA`||i?.isContentEditable===!0||i instanceof Element&&i.closest(`[data-slot="popover-content"]`))return;n.preventDefault();let o=n.key===`ArrowDown`?1:-1,s=c.current,d=s>=0?s:e.findIndex(e=>e.id===t),f=Math.max(0,Math.min(d+o,e.length-1));if(f===s)return;c.current=f,a(f);let p=e[f]?.id;p&&(u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{l.current(p)},r))};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t,r]),(0,v.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),{cursorId:i>=0?e[i]?.id??null:null,cursorIndex:i}}function Sf({label:e,hint:t}){return(0,H.jsxs)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute right-full top-1/2 mr-1.5 flex -translate-y-1/2 items-center gap-1.5 whitespace-nowrap rounded-md border border-white/10 bg-[#0a0a0a] px-2 py-1 text-xs text-card-foreground opacity-0 shadow-lg transition-opacity duration-100 group-hover/action:opacity-100`,children:[e,t&&(0,H.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:t})]})}var Cf=5,wf=5;function Tf(e){let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function Ef(e){let t=Date.now()-e,n=Math.floor(t/1e3),r=Math.floor(n/60),i=Math.floor(r/60),a=Math.floor(i/24);return a>0?`${a}d ago`:i>0?`${i}h ago`:r>0?`${r}m ago`:`just now`}var Df=`inline-block max-w-full truncate align-middle rounded px-1.5 py-0.5 -mx-1.5 text-sm font-medium text-accent-foreground cursor-text transition-colors group-hover:bg-white/4`,Of=`min-w-[12ch] max-w-full rounded border border-border bg-transparent px-1.5 py-0.5 text-sm font-medium text-accent-foreground outline-none focus:border-primary [field-sizing:content]`;function kf({icon:e,label:t,hint:n,destructive:r=!1,onClick:i}){return(0,H.jsxs)(`button`,{type:`button`,role:`menuitem`,onClick:i,className:`flex w-full items-center justify-between gap-6 rounded-md px-3 py-1.5 text-left transition-colors ${r?`text-destructive hover:bg-[#3a1d23]`:`hover:bg-white/6`}`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[e,t]}),(0,H.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:n})]})}function Af({mode:e=`main`,chats:t,selectedId:n,editingId:r,onEditingIdChange:i,onSelect:a,onDelete:o,onRestore:s,onRenameTitle:c,onBack:l,onOpenTrash:u,sortControl:d,total:f,sortSignature:p,hasMore:m=!1,onLoadMore:h,hasPrevious:g=!1,onLoadPrevious:_,selectedIds:y,onToggleSelect:b,onRangeSelect:x,onClearSelection:S,onBatchTrash:C}){let[w,T]=(0,v.useState)(null),E=r===void 0?w:r,D=e=>{T(e),i?.(e)},O=e===`trash`,[k,A]=(0,v.useState)(null),j=(0,v.useRef)(null),M=(0,v.useRef)(p),N=_f({count:t.length,getScrollElement:()=>j.current,estimateSize:()=>84,overscan:8,initialRect:{width:320,height:600},getItemKey:e=>t[e]?.id??e}),{cursorId:P,cursorIndex:F}=xf({chats:t,openId:n,onOpen:a});(0,v.useEffect)(()=>{F<0||N.scrollToIndex(F,{align:`auto`})},[F,N]),(0,v.useEffect)(()=>{if(M.current===p)return;let e=n?t.findIndex(e=>e.id===n):-1;n&&e<0||(M.current=p,e>=0?N.scrollToIndex(e,{align:`auto`}):j.current&&(j.current.scrollTop=0))},[p,n,t,N]);let I=N.getVirtualItems(),L=I[I.length-1]?.index??-1;(0,v.useEffect)(()=>{!m||!h||L>=t.length-1-Cf&&h()},[m,h,L,t.length]);let ee=I[0]?.index??-1;(0,v.useEffect)(()=>{!g||!_||ee>=0&&ee<=wf&&_()},[g,_,ee]);let te=(0,v.useRef)(null),R=(0,v.useCallback)(()=>{let e=j.current;if(!e)return;let n=e.scrollTop,r=N.getVirtualItemForOffset(n),i=r?t[r.index]?.id:void 0;r&&i&&(te.current={id:i,index:r.index,delta:n-r.start})},[N,t]);(0,v.useLayoutEffect)(()=>{if(M.current!==p){te.current=null;return}let e=j.current,n=te.current;if(!e||!n)return;let r=t.findIndex(e=>e.id===n.id);if(r<0||r===n.index)return;let i=N.getOffsetForIndex(r,`start`)?.[0];i!==void 0&&(e.scrollTop=i+n.delta,te.current={...n,index:r})},[t,N,p]),(0,v.useEffect)(()=>{if(!k)return;let e=()=>A(null),t=e=>{e.key===`Escape`&&A(null)},n=window.setTimeout(()=>{document.addEventListener(`click`,e)},0);return document.addEventListener(`keydown`,t),()=>{window.clearTimeout(n),document.removeEventListener(`click`,e),document.removeEventListener(`keydown`,t)}},[k]);let ne=(e,t)=>{e.preventDefault(),A({chatId:t,x:e.clientX,y:e.clientY})},z=!!b&&!O,B=y?.size??0,re=(e,t)=>{let n=e.metaKey||e.ctrlKey;if(z&&e.shiftKey){e.preventDefault(),x?.(t,n);return}if(z&&n){e.preventDefault(),b?.(t);return}a(t)};return(0,v.useEffect)(()=>{if(B<2||!S)return;let e=e=>{e.key===`Escape`&&(e.stopPropagation(),S())};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[B,S]),(0,H.jsxs)(`div`,{"data-testid":`chat-list`,className:`relative flex h-full flex-col`,children:[(0,H.jsx)(`div`,{className:`flex h-12 shrink-0 items-center justify-between gap-3 border-b border-border px-4 text-sm`,children:O?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`button`,{type:`button`,onClick:l,className:`flex items-center gap-1 text-xs text-primary transition-colors hover:text-primary/80`,children:[(0,H.jsx)(nt,{size:14,"aria-hidden":`true`}),`Back`]}),d]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`span`,{className:`font-semibold text-accent-foreground`,children:`Chats`}),(0,H.jsx)(`span`,{"data-testid":`chat-list-count`,className:`rounded-full bg-card px-2 text-xs font-semibold tabular-nums text-muted-foreground`,children:f??t.length})]}),d]})}),(0,H.jsx)(`div`,{ref:j,"data-testid":`chat-scroll`,className:`flex-1 overflow-y-auto`,onScroll:R,children:t.length===0?(0,H.jsx)(`div`,{className:`flex h-full flex-col items-center justify-center px-6 text-center text-sm text-muted-foreground`,children:O?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`font-medium text-foreground`,children:`Trash is empty`}),(0,H.jsx)(`div`,{className:`mt-1 text-xs`,children:`Deleted chats appear here. They stay until you restore them.`})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`font-medium text-foreground`,children:`No chats`}),u&&(0,H.jsxs)(`div`,{className:`mt-1 text-xs`,children:[`Check`,` `,(0,H.jsx)(`button`,{type:`button`,onClick:u,className:`text-primary hover:underline`,children:`Trash`}),` `,`to restore deleted ones.`]})]})}):(0,H.jsx)(`div`,{className:`relative w-full`,style:{height:`${N.getTotalSize()}px`},onClick:e=>{z&&B>=2&&e.target===e.currentTarget&&S?.()},children:N.getVirtualItems().map(e=>{let r=t[e.index],i=r.id===n,a=r.id===P,l=y?.has(r.id)??!1,u=i||a,d=l&&!u,f=E===r.id&&!!c,p=`flex w-full flex-col gap-1 border-b border-border px-4 py-3 text-left transition-colors hover:bg-card focus-visible:outline-none ${u?`border-l-2 border-l-primary bg-card`:d?`border-l-2 border-l-transparent bg-primary/10`:`border-l-2 border-l-transparent`}`,m=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`min-w-0`,children:c&&!O?(0,H.jsx)(vf,{value:r.title,editing:f,onEditStart:()=>D(r.id),onEditEnd:()=>D(null),onSave:e=>c(r.id,e),onDisplayClick:e=>{i?e.stopPropagation():e.preventDefault()},displayClassName:Df,inputClassName:Of,inputAriaLabel:`Chat title`}):(0,H.jsx)(`span`,{className:Df,children:r.title})}),r.tags&&r.tags.length>0&&(0,H.jsx)(bf,{tags:r.tags}),(0,H.jsxs)(`span`,{className:`flex items-center justify-between text-xs text-muted-foreground`,children:[(0,H.jsx)(`span`,{className:`truncate`,children:Tf(r.project)}),(0,H.jsx)(`span`,{className:`ml-2 shrink-0`,children:Ef(r.updatedAt)})]})]});return(0,H.jsxs)(`div`,{"data-index":e.index,ref:N.measureElement,"data-testid":`chat-row`,"data-cursor":a||void 0,className:`group absolute left-0 right-0 top-0`,style:{transform:`translateY(${e.start}px)`},onContextMenu:e=>ne(e,r.id),children:[f?(0,H.jsx)(`div`,{className:p,children:m}):(0,H.jsx)(`button`,{onClick:e=>re(e,r.id),className:p,children:m}),(0,H.jsx)(`div`,{className:`absolute top-2 right-2 flex items-center gap-1`,children:O&&s?(0,H.jsxs)(`span`,{className:`group/action relative`,children:[(0,H.jsx)(`button`,{type:`button`,"aria-label":`Restore: ${r.title}`,onClick:()=>s(r.id),className:`rounded-md border border-border/60 bg-card p-1.5 text-muted-foreground opacity-0 shadow-sm transition-all hover:border-[#5f7a26] hover:bg-[#1f2e15] hover:text-[#859900] group-hover:opacity-100 focus:opacity-100`,children:(0,H.jsx)(ht,{size:14,"aria-hidden":`true`})}),(0,H.jsx)(Sf,{label:`Restore`,hint:`⌫`})]}):!f&&(0,H.jsxs)(`span`,{className:`group/action relative`,children:[(0,H.jsx)(`button`,{type:`button`,"aria-label":`Move to trash: ${r.title}`,onClick:()=>o(r.id),className:`rounded-md border border-border/60 bg-card p-1.5 text-muted-foreground opacity-0 shadow-sm transition-all hover:border-[#a13836] hover:bg-[#3a1d23] hover:text-destructive group-hover:opacity-100 focus:opacity-100`,children:(0,H.jsx)(_t,{size:14,"aria-hidden":`true`})}),(0,H.jsx)(Sf,{label:`Move to Trash`,hint:`⌫`})]})})]},r.id)})})}),k&&(0,H.jsxs)(`div`,{role:`menu`,className:`fixed z-50 min-w-50 rounded-md border border-border bg-card p-1 text-sm shadow-lg`,style:{top:k.y,left:k.x},children:[!O&&c&&(0,H.jsx)(kf,{icon:(0,H.jsx)(pt,{size:14,"aria-hidden":`true`}),label:`Rename`,hint:`F2 / ↵`,onClick:()=>{D(k.chatId),A(null)}}),O&&s?(0,H.jsx)(kf,{icon:(0,H.jsx)(ht,{size:14,"aria-hidden":`true`}),label:`Restore`,hint:`⌫`,onClick:()=>{s(k.chatId),A(null)}}):(0,H.jsx)(kf,{icon:(0,H.jsx)(_t,{size:14,"aria-hidden":`true`}),label:`Move to Trash`,hint:`⌫`,destructive:!0,onClick:()=>{o(k.chatId),A(null)}})]}),z&&B>=2&&(0,H.jsxs)(`div`,{"data-testid":`batch-bar`,className:`absolute inset-x-4 bottom-4 z-20 flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-3 py-2 text-sm shadow-lg`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-3`,children:[(0,H.jsxs)(`span`,{className:`font-medium tabular-nums text-accent-foreground`,children:[B,` selected`]}),(0,H.jsxs)(`span`,{className:`group/action relative`,children:[(0,H.jsx)(`button`,{type:`button`,"aria-label":`Move to Trash`,onClick:()=>C?.(),className:`rounded-md border border-border/60 bg-card p-1.5 text-muted-foreground shadow-sm transition-all hover:border-[#a13836] hover:bg-[#3a1d23] hover:text-destructive`,children:(0,H.jsx)(_t,{size:14,"aria-hidden":`true`})}),(0,H.jsx)(Sf,{label:`Move to Trash`})]})]}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>S?.(),className:`text-xs text-primary transition-colors hover:text-primary/80`,children:`Clear`})]})]})}function jf({orderedIds:e,primaryId:t,resetKey:n}){let[r,i]=(0,v.useState)(()=>t?new Set([t]):new Set),[a,o]=(0,v.useState)(n);return n!==a&&(o(n),i(t?new Set([t]):new Set)),{selectedIds:r,selectOnly:(0,v.useCallback)(e=>{i(new Set([e]))},[]),toggle:(0,v.useCallback)(e=>{i(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),selectRange:(0,v.useCallback)((t,n,r)=>{if(t===null){i(new Set([n]));return}let a=e.indexOf(t),o=e.indexOf(n);if(a===-1||o===-1)return;let[s,c]=a<=o?[a,o]:[o,a],l=e.slice(s,c+1);i(e=>r?new Set([...e,...l]):new Set(l))},[e]),clear:(0,v.useCallback)(()=>{i(new Set)},[])}}function Mf({axes:e,field:t,direction:n,isDefault:r,directionLabels:i,onSelectField:a,onToggleDirection:o,testId:s}){let c=n===`asc`?it:tt;return(0,H.jsxs)(Ad,{children:[(0,H.jsx)(jd,{"aria-label":`Sort chats`,className:kd(`flex h-7 w-7 shrink-0 items-center justify-center rounded transition-colors hover:bg-white/4 focus-visible:outline-2 focus-visible:outline-ring`,r?`text-muted-foreground`:`text-primary`),children:(0,H.jsx)(rt,{size:16,"aria-hidden":`true`})}),(0,H.jsxs)(Md,{"data-testid":s,align:`end`,sideOffset:6,className:`w-44 gap-0 overflow-visible p-1`,children:[(0,H.jsx)(`div`,{className:`px-2 py-1 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Sort by`}),e.map(e=>{let r=e.field===t;return(0,H.jsxs)(`div`,{className:`group/axis relative`,children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>r?o():a(e.field),"aria-current":r?`true`:void 0,title:r?`Click to reverse direction`:void 0,className:kd(`flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-left transition-colors`,r?`bg-primary/10 text-primary`:`text-foreground hover:bg-white/6`),children:[(0,H.jsx)(`span`,{children:e.label}),r&&(0,H.jsx)(c,{size:14,"aria-hidden":`true`})]}),r&&(0,H.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute left-full top-1/2 ml-3 flex -translate-y-1/2 items-center whitespace-nowrap rounded-md border border-white/10 bg-[#0a0a0a] px-2 py-1 text-xs text-card-foreground opacity-0 shadow-lg transition-opacity duration-100 group-hover/axis:opacity-100`,children:i[e.field][n]})]},e.field)})]})]})}function Nf(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Pf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ff=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,If={};function Lf(e,t){return((t||If).jsx?Ff:Pf).test(e)}var Rf=/[ \t\n\f\r]/g;function zf(e){return typeof e==`object`?e.type===`text`?Bf(e.value):!1:Bf(e)}function Bf(e){return e.replace(Rf,``)===``}var Vf=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Vf.prototype.normal={},Vf.prototype.property={},Vf.prototype.space=void 0;function Hf(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Vf(n,r,t)}function Uf(e){return e.toLowerCase()}var Wf=class{constructor(e,t){this.attribute=t,this.property=e}};Wf.prototype.attribute=``,Wf.prototype.booleanish=!1,Wf.prototype.boolean=!1,Wf.prototype.commaOrSpaceSeparated=!1,Wf.prototype.commaSeparated=!1,Wf.prototype.defined=!1,Wf.prototype.mustUseProperty=!1,Wf.prototype.number=!1,Wf.prototype.overloadedBoolean=!1,Wf.prototype.property=``,Wf.prototype.spaceSeparated=!1,Wf.prototype.space=void 0;var Gf=s({boolean:()=>X,booleanish:()=>qf,commaOrSpaceSeparated:()=>Zf,commaSeparated:()=>Xf,number:()=>Z,overloadedBoolean:()=>Jf,spaceSeparated:()=>Yf}),Kf=0,X=Qf(),qf=Qf(),Jf=Qf(),Z=Qf(),Yf=Qf(),Xf=Qf(),Zf=Qf();function Qf(){return 2**++Kf}var $f=Object.keys(Gf),ep=class extends Wf{constructor(e,t,n,r){let i=-1;if(super(e,t),tp(this,`space`,r),typeof n==`number`)for(;++i<$f.length;){let e=$f[i];tp(this,$f[i],(n&Gf[e])===Gf[e])}}};ep.prototype.defined=!0;function tp(e,t,n){n&&(e[t]=n)}function np(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ep(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Uf(r)]=r,n[Uf(a.attribute)]=r}return new Vf(t,n,e.space)}var rp=np({properties:{ariaActiveDescendant:null,ariaAtomic:qf,ariaAutoComplete:null,ariaBusy:qf,ariaChecked:qf,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Yf,ariaCurrent:null,ariaDescribedBy:Yf,ariaDetails:null,ariaDisabled:qf,ariaDropEffect:Yf,ariaErrorMessage:null,ariaExpanded:qf,ariaFlowTo:Yf,ariaGrabbed:qf,ariaHasPopup:null,ariaHidden:qf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yf,ariaLevel:Z,ariaLive:null,ariaModal:qf,ariaMultiLine:qf,ariaMultiSelectable:qf,ariaOrientation:null,ariaOwns:Yf,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:qf,ariaReadOnly:qf,ariaRelevant:null,ariaRequired:qf,ariaRoleDescription:Yf,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:qf,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ip(e,t){return t in e?e[t]:t}function ap(e,t){return ip(e,t.toLowerCase())}var op=np({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Xf,acceptCharset:Yf,accessKey:Yf,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:Yf,autoFocus:X,autoPlay:X,blocking:Yf,capture:null,charSet:null,checked:X,cite:null,className:Yf,cols:Z,colSpan:null,content:null,contentEditable:qf,controls:X,controlsList:Yf,coords:Z|Xf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:Jf,draggable:qf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:Yf,height:Z,hidden:Jf,high:Z,href:null,hrefLang:null,htmlFor:Yf,httpEquiv:Yf,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:Yf,itemRef:Yf,itemScope:X,itemType:Yf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:X,optimum:Z,pattern:null,ping:Yf,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:Yf,required:X,reversed:X,rows:Z,rowSpan:Z,sandbox:Yf,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:qf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:qf,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yf,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:qf,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:ap}),sp=np({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:Zf,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Yf,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xf,g2:Xf,glyphName:Xf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Zf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zf,rev:Zf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zf,requiredFeatures:Zf,requiredFonts:Zf,requiredFormats:Zf,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Zf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zf,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ip}),cp=np({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),lp=np({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ap}),up=np({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),dp={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},fp=/[A-Z]/g,pp=/-[a-z]/g,mp=/^data[-\w.:]+$/i;function hp(e,t){let n=Uf(t),r=t,i=Wf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&mp.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(pp,_p);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!pp.test(e)){let n=e.replace(fp,gp);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ep}return new i(r,t)}function gp(e){return`-`+e.toLowerCase()}function _p(e){return e.charAt(1).toUpperCase()}var vp=Hf([rp,op,cp,lp,up],`html`),yp=Hf([rp,sp,cp,lp,up],`svg`);function bp(e){return e.join(` `).trim()}var xp=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
Binary file
@@ -1 +1,7 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
2
+ <rect width="32" height="32" rx="7" fill="#2aa198"/>
3
+ <rect x="9" y="6.5" width="14" height="19" rx="2.5" fill="#fdf6e3"/>
4
+ <line x1="12.6" y1="6.5" x2="12.6" y2="25.5" stroke="#2aa198" stroke-width="1.8"/>
5
+ <line x1="15.5" y1="13" x2="20.5" y2="13" stroke="#2aa198" stroke-width="1.8" stroke-linecap="round"/>
6
+ <line x1="15.5" y1="17.5" x2="20.5" y2="17.5" stroke="#2aa198" stroke-width="1.8" stroke-linecap="round"/>
7
+ </svg>
@@ -3,9 +3,10 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>web</title>
8
- <script type="module" crossorigin src="/assets/index-D2DT-Gvd.js"></script>
8
+ <title>Chat Logbook</title>
9
+ <script type="module" crossorigin src="/assets/index-Rq63M8Xz.js"></script>
9
10
  <link rel="stylesheet" crossorigin href="/assets/index-CvVPwJjJ.css">
10
11
  </head>
11
12
  <body>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="380" height="40" viewBox="0 0 380 40" role="img" aria-label="Where your AI conversations live.">
2
+ <text x="190" y="27" text-anchor="middle" font-family="Georgia, 'Times New Roman', Times, serif" font-size="22" font-style="italic" fill="#7d8590">Where your AI conversations <tspan fill="#2aa198" font-weight="700">live</tspan>.</text>
3
+ </svg>