Super well done. You incorporated many clever ideas here I didn't even know where possible, or have used the existing functionality in a way I hadn't considered.