V, 17 bytes
é*Àñ>{MÄpXA *Î.
Try it online! Unfortunately, TIO currently has a slightly outdated version of V, so it produces the wrong output. I have tested it locally, and this code works. In the meantime, you can use this slightly modified version.
As usual, here is a hexdump, since this contains unprintable characters:
00000000: e92a c0ad f13e 7b4d c470 5841 202a 1bce .*...>{M.pXA *..
00000010: 2e .
DJMcMayhem
- 60.1k
- 18
- 203
- 352