What is the maximum of $\left|z^{3}-z+2\right|$, where $z$ is a complex number with $|z|=1$? The original answer is in the format \sqrt{m}, please provide the value of m.

Let's think step by step and output the final answer within \boxed{}.
user