Device box and safety device