#$%^&*AU2018223058A120180920.pdf#####ABSTRACT The present invention provides compounds of Formula I: N 0 y-Cy N-N N-R 2 RI RS R1 R9 Ri0 HN-N or pharmaceutically acceptable salts thereof, as well as their compositions and methods of use, that inhibit the activity of Janus kinase (JAK) and are useful in the 5 treatment of diseases related to the activity of JAK including, for example, inflammatory disorders, autoimmune disorders, cancer, and other diseases.