{% 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 terminal_lower = cell.htmx.terminal_states | default([]) | map('lower') | list %}
{% set is_terminal = terminal_lower and raw_str | lower in terminal_lower %}
{{ (cell.formatted if cell.formatted is not none else '') | safe }}
{% else %}
{{ (cell.formatted if cell.formatted is not none else '') | safe }}
{% endif %}