 emojifyText } from '../../_utils/emojifyText.js'
  import { formatIntl } from '../../_utils/formatIntl.js'

  const REFRESH_MIN_DELAY = 1000

  async function doAsyncActionWithDelay (func) {
    const start = Date.now()
    const res = await func()
    const timeElapsed = Date.now() - start
    if (timeElapsed < REFRESH_MIN_DELAY) {
      // If less than five seconds, then continue to show the loading animation
      // so it's clear that something happened.
      await new Promise(resolve => setTimeout(re