{#if sourceIds} {#if (token?.ids ?? []).length == 1} {@const id = token.ids[0]} {@const identifier = token.citationIdentifiers ? token.citationIdentifiers[0] : id - 1} {:else} { openPreview = !openPreview; }} > {getDisplayTitle(formattedTitle(decodeString(sourceIds[token.ids[0] - 1])))} +{(token?.ids ?? []).length - 1} {#each token.citationIdentifiers ?? token.ids as identifier} {@const id = typeof identifier === 'string' ? parseInt(identifier.split('#')[0]) : identifier} {/each} {/if} {:else} {token.raw} {/if}