0
Japt, 140 bytes
Ur"\\||_"1 z r" +
"R x1 q"
" £"11
1 1
1151151
111
15111
115 1
1
115 1
111
1511
111
15 1
11511
111
115 1
111
11"q5 bXÃq
Try it here!
Oh geez, this one's really long. I don't think I have finished golfing.
Explanation
Preparation
We take the input and convert any |_ to 1....