Answer & Explanation:
The heat from the hot pan fuses/melts the chocolate bar from its solid state to its liquid state. The chocolate bar deforms and takes the shape of the pan as it liquifies. Liquified chocolate then cools down, solidifies back to its solid state.