Surgery

A 35-year-old construction worker presents with complaints of nocturnal parasthesias of the thumb and the index and middle fingers. There is some atrophy of the thenar eminence. Tinel sign is positive. The most likely diagnosis is