{#if mounted && (!chain || !virtualPage || !tool)}
{:else if virtualPage && tool}
{/if}