(isTapped = !isTapped)}
on:keydown={() => (isTapped = !isTapped)}
>
{#if $page.data?.assistant?.avatar}
{#if searchUpdates && searchUpdates.length > 0}
{/if}
{#if !message.content && (webSearchIsDone || (webSearchMessages && webSearchMessages.length === 0))}
{/if}
{#each tokens as token}
{#if token.type === "code"}
{:else}
{@html marked.parse(token.raw, options)}
{/if}
{/each}
{#if webSearchSources?.length}
Sources:
{#each webSearchSources as { link, title, hostname }}
{hostname.replace(/^www\./, "")}
{/each}
{/if}