The following is the therapeutic indication for pilocarpine:…