{% set cell = row.cells[col.key] %}
{% if cell.htmx %}
{% set raw_str = cell.raw.value if cell.raw is not none and cell.raw.value is defined else (cell.raw|string if cell.raw is not none else '') %}
{% set is_terminal = cell.htmx.terminal_states is defined and raw_str in cell.htmx.terminal_states %}
{{ (cell.formatted if cell.formatted is not none else '') | safe }}
{% else %}
{{ (cell.formatted if cell.formatted is not none else '') | safe }}
{% endif %}