The influence of preoperative psychological distress on pain and function after total knee arthroplasty