{#if $$slots.byline} {:else} By {#if authors.length > 0} {#each authors as author, i} {author.trim()}{#if authors.length > 1 && i < authors.length - 2},{/if} {#if authors.length > 1 && i === authors.length - 2}and {/if} {/each} {:else} Reuters {/if} {/if}
{#if $$slots.published}
{:else if isValidDate(publishTime)}
Published {#if isValidDate(updateTime)} {apdate(new Date(publishTime))} {:else} {apdate(new Date(publishTime))}  {formatTime( publishTime )} {/if}
{/if} {#if $$slots.updated}
{:else if isValidDate(publishTime) && isValidDate(updateTime)}
Last updated {#if areSameDay(new Date(publishTime), new Date(updateTime))} {formatTime(updateTime)} {:else} {apdate(new Date(updateTime))}  {formatTime(updateTime)} {/if}
{/if}