In June, I attended an anime convention, despite my wariness of crowds. I was having a decent time until a stranger wanted to give me a hug. I felt pressured into obliging (which I really shouldn't have) and then came the panic attack. My best friend was there to help me which made it easier for me to calm down, Otherwise, I'm not sure how long I would've been standing there crying

My last attack was during work last Saturday. My job got extremely busy and I have to bring in new clients whenever there's down time. My manager was pushing me to give out more fliers and be more assertive which is when I started to panic. It was so bad that even at the end of my shift she kept asking if I was okay because I looked awful. The job is getting easier but it's still a work in progress. I love the position and I know that I can't just quit.
I still find myself struggling to calm myself down whenever something like that happens. I have the habit of making things worse by thinking "you're being unreasonable", "you're going to embarrass yourself", "there's no reason to freak out", etc. I've tried counting down in my head, more to keep myself occupied than anything else. I was wondering if anybody had any better ways to deal with attacks?