2. Given a rectangular cuboid $A B C D-A_{1} B_{1} C_{1} D_{1}$ with length, width, and height of $1, 2, 3$ respectively, and $P$ is a point within the plane $A_{1} B D$. Then the minimum length of $A P$ is