Hi & welcome to the forum.
In order to make code more readable and importable it is important to post it between two sets of three backticks - ``` - see this post for more details - How to share code or flow json
Please go back and edit your post.
It would be good if you could also post a screen shot for those of us on a mobile (or for those who have zero interest in loading up your flow but might be happy to reply with a solution)