Patent Publication Number: US-2023145305-A1

Title: Compounds useful as kinase inhibitors

Description:
This application claims the priority to the U.S. provisional application Nos. 62/988,838 and 63/047,879, which are incorporated herein by reference in their entirety. 
    
    
     FIELD OF THE INVENTION 
     Provided are certain compounds or pharmaceutically acceptable salts thereof which can inhibit kinase activities of Bruton&#39;s tyrosine kinase (BTK) and its drug-resistant mutations, and may be useful for the treatment of hyper-proliferative diseases like cancer and inflammation, or immune and autoimmune diseases. 
     BACKGROUND OF THE INVENTION 
     Hyper-proliferative diseases like cancer and inflammation are attracting the scientific community to provide therapeutic benefits. In this regard efforts have been made to identify and target specific mechanisms which play a role in proliferating the diseases. 
     Bruton&#39;s tyrosine kinase (BTK) is a member of Tec family of non-receptor tyrosine kinase expressed in B cells and myeloid cells, and it plays critical roles in B-cell receptor (BCR) signaling pathways, which is involved in early B-cell development, as well as mature B-cell activation, signaling and survival. 
     Functional mutations in human BTK are known to lead to X-linked agammaglobulinemia (XLA), an immunodeficiency disease related to a failure to generate mature B cells leading to reduced immunoglobulin in serum. In addition, regulation of BTK may affect BCR-induced production of pro-inflammatory cytokines and chemokines by B cells, indicating a broad potential for BTK in the treatment of autoimmune diseases. Evidence for a role for BTK in autoimmune and inflammatory diseases has also been provided by BTK-deficient mouse models. Thus, inhibition of BTK activity can be useful for the treatment of autoimmune and/or inflammatory diseases such as, rheumatoid arthritis, multiple vasculitides, myasthenia gravis, and asthma. 
     In addition, BTK has been reported to play an important role in apoptosis. In certain malignancies, BTK is overexpressed in B-cells, and it&#39;s associated with the increased proliferation and survival of tumor cells. Inhibition of BTK affects the B-cell signaling pathways, preventing activation of B-cells and inhibiting the growth of malignant B-cells. 
     Thus, inhibition of BTK activity can be useful for the treatment of cancer, including B-cell lymphoma, leukemia, and other hematological malignancies. A number of clinical trials have shown that BTK inhibitors are effective cancer therapies. First-generation BTK inhibitors, such as ibrutinib has been approved by US Food and Drug Administration for the treatment for patients with mantle cell lymphoma (MCL) or chronic lymphocytic leukemia (CLL). Ibrutinib, as an irreversible BTK inhibitor, inhibits BTK by covalently binding to the cysteine residue (C481) of BTK, thus attenuating the tumor progression. However, acquired drug resistance eventually emerges in cancer patients after receiving first-generation BTK inhibitors, resulting in unmet new medical needs. It has been widely reported that BTK C481 substitution mutations, such as C481S, C481Y, C481R, C481F, etc., is one of the key mechanisms driving drug resistance. BTK inhibitor could also be used to treat other conditions such as immunological diseases and inflammations. 
     Therefore, a compound having an inhibitory activity on BTK and its drug-resistant mutations will be useful for the prevention or treatment of cancer. Although BTK inhibitors were disclosed in the arts, e.g. WO 2008039218 and WO 2008121742, many suffer from short half-life or toxicity. Therefore, there is a need for new BTK inhibitors that have at least one advantageous property selected from solubility, drug-drug interactions, potency, stability, selectivity, toxicity, drug resistance, pharmacokinetics and pharmacodynamics properties as an alternative for the treatment of hyper-proliferative diseases. In this regard, a novel class of BTK inhibitors is provided herein. 
     DISCLOSURE OF THE INVENTION 
     Disclosed herein are certain novel compounds, pharmaceutically acceptable salts thereof, and pharmaceutical compositions thereof, and their use as pharmaceuticals. 
     In one aspect, disclosed herein is a compound of formula (I): 
     
       
         
         
             
             
         
       
     
     or a pharmaceutically acceptable salt thereof, wherein: 
        is a singe bond or a double bond to maintain ring A and ring B being aromatic; 
     A 1  is selected from C and N; 
     A 2  is selected from CR X , C(O) and N; 
     A 3  is selected from CR 6  and NR 6 ; 
     A 4  selected from CR 7 , C(O), N and NR X R 5 ; 
     A 5  is selected from CR X , NR X  or absent; 
     A 6  is selected from N and O; 
     B 1  is selected from C and N; 
     B 2  is selected from C and N; 
     when A 4  and A 6  are N, B 2  is C, then A 2  is not N; 
     when A 5  is absent, R 5  and R 6  together with the atoms to which they are attached are not form a ring, then A 2  and A 3  are not N at the same time; 
     X is selected from CR X  and N; 
     Y is selected from CR X  and N; 
     Z is selected from aryl, heteroaryl and heterocyclyl, wherein aryl, heteroaryl and heterocyclyl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     R 1  is selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X1 ; 
     R 2  is selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X2 ; 
     or R 1  and R 2  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X1  groups; 
     each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(═NR E3 )R A3 , —C(═N—OR B3 )R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —C(═NR E3 )NR A3 R B3 , —NR A3 C(═NR E3 )R B3 , —OC(O)NR A3 R B3 , —NR A3 C(O)OR B3 , —NR A3 C(O)NR A3 R B3 , —NR A3 C(S)NR A3 R B3 , —NR A3 C(═NR E3 )NR A3 R B3 , —S(O) r R A3 , —S(O)(═NR E3 )R B3 , —N═S(O)R A3 R B3 , —S(O) 2 OR A3 , —OS(O) 2 R A3 , —NR A3 S(O) r R B3 , —NR A3 S(O)(═NR E3 )R B3 , —S(O) r NR A3 R B3 , —S(O)(═NR E3 )NR A3 R B3 , —NR A3 S(O) 2 NR A3 R B3 , —NR A3 S(O)(═NR E3 )NR A3 R B3 , —P(O)R A3 R B3  and —P(O)(OR A3 )(OR B3 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 ; 
     or any two of R 3  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X3  groups; 
     R 5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A5 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X5 ; 
     R 6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A6 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 ; 
     or R 5  and R 6  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2, 3 or 4 R 4  groups; 
     each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A4 R B4 , —OR A4 , —C(O)R A4 , —C(O)OR A4 , —OC(O)R A4 , —C(O)NR A4 R B4 , —NR A4 C(O)R B4 , and —S(O) r R A4 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 ; 
     or any two of R 4  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups; 
     R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A7 , —C(═NR E7 )R A7 , —C(═N—OR B7 )R A7 , —C(O)OR A7 , —OC(O)R A7 , —C(O)NR A7 R B7 , —NR A7 C(O)R B7 , —C(═NR E7 )NR A7 R B7 , —NR A7 C(═NR E7 )R B7 , —OC(O)NR A7 R B7 , —NR A7 C(O)OR B7 , —NR A7 C(O)NR A7 R B7 , —NR A7 C(S)NR A7 R B7 , —NR A7 C(═NR E7 )NR A7 R B7 , —S(O) r R A7 , —S(O)(═NR E7 )R B7 , —N═S(O)R A7 R B7 , —S(O) 2 OR A7 , —OS(O) 2 R A7 , —NR A7 S(O) r R B7 , —NR A7 S(O)(═NR E7 )R B7 , —S(O) r NR A7 R B7 , —S(O)(═NR E7 )NR A7 R B7 , —NR A7 S(O) 2 NR A7 R B7 , —NR A7 S(O)(═NR E7 )NR A7 R B7 , —P(O)R A7 R B7  and —P(O)(OR A7 )(OR B7 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 ; 
     or R 6  and R 7  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X6  groups; 
     each R A3  and R B3  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 ; 
     or “R A3  and R B3 ”, together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus and optionally substituted with 1, 2 or 3 R X3  groups; 
     each R A4  and R B4  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 ; 
     or each “R A4  and R B4 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups; 
     R A5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X5 ; 
     R A6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 ; 
     each R A7  and R B7  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 ; 
     or each “R A7  and R B7 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X7  groups; 
     each R E3  and R E7  are independently selected from hydrogen, C 1-10  alkyl, CN, NO 2 , —OR a1 , —SR a1 , —S(O) r R a1 , —C(O)R a1 , —C(O)OR a1 , —C(O)NR a1 R b1  and —S(O) r NR a1 R b1 ; 
     each R X , R X1 , R X2 , R X3 , R X4 , R X5 , R X6  and R X7  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR b1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(═NR e1 )R a1 , —(CR c1 R d1 ) t C(═N—OR b1 )R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t OC(O)R b1 , —(CR c1 R d1 ) t C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)R b1 , —(CR c1 R d1 ) t C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )R b1 , —(CR c1 R d1 ) t OC(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)OR b1 , —(CR c1 R d1 ) t NR a1 C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(S)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t S(O) r R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t N═S(O)R a1 R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t S(O) r NR a1 R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O) 2 NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t P(O)R a1 R b1  and —(CR c1 R d1 ) t P(O)(OR a1 )(OR b1 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     each R a1  and each R b1  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R a1  and R b1  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R c1  and each R d1  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R c1  and R d1  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R e1  is independently selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, CN, NO 2 , —OR a2 , —SR a2 , —S(O) r R a2 , —C(O)R a2 , —C(O)OR a2 , —S(O) r NR a2 R b2  and —C(O)NR a2 R b2 ; 
     each R Y  is independently selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c2 R d2 ) t NR a2 R b2 , —(CR c2 R d2 ) t OR b2 , —(CR c2 R d2 ) t C(O)R a2 , —(CR c2 R d2 ) t C(═NR e2 )R a2 , —(CR c2 R d2 ) t C(═N—OR b2 )R a2 , —(CR c2 R d2 ) t C(O)OR b2 , —(CR c2 R d2 ) t OC(O)R b2 , —(CR c2 R d2 ) t C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)R b2 , —(CR c2 R d2 ) t C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )R b2 , —(CR c2 R d2 ) t OC(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)OR b2 , —(CR c2 R d2 ) t NR a2 C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(S)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )NR a2 R b2 , (CR c2 R d2 ) t S(O) r R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t N═S(O)R a2 R b2 , —(CR c2 R d2 ) t S(O) 2 OR b2 , —(CR c2 R d2 ) t OS(O) 2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) r R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t S(O) r NR a2 R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) 2 NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t P(O)R a2 R b2  and —(CR c2 R d2 ) t P(O)(OR 2 )(OR b2 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from OH, CN, amino, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R a2  and each R b2  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R a2  and R b2  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; each R c2  and each R d2  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R c2  and R d2  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  is independently selected from hydrogen, CN, NO 2 , C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, —C(O)C 1-4  alkyl, —C(O)C 3-10  cycloalkyl, —C(O)OC 1-4  alkyl, —C(O)OC 3-10  cycloalkyl, —C(O)N(C 1-4  alkyl) 2 , —C(O)N(C 3-10  cycloalkyl) 2 , —S(O) 2 C 1-4  alkyl, —S(O) 2 C 3-10  cycloalkyl, —S(O) 2 N(C 1-4  alkyl) 2  and —S(O) 2 N(C 3-10  cycloalkyl) 2 ; 
     m is selected from 0, 1, 2, 3 and 4; 
     each r is independently selected from 0, 1 and 2; 
     each t is independently selected from 0, 1, 2, 3 and 4. 
     In one embodiment of formula (I), the invention provides a compound or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     wherein each R 4 , R 5 , R 6  and R 7  are as defined in Formula (I), n is selected from 0, 1, 2, 3 and 4, p is selected from 0, 1, 2, 3 and 4, wherein the   symbol indicates the point of attachment to the rest of the molecule. 
     In yet another aspect, the present disclosure provides pharmaceutical compositions comprising a compound of formula (I) or at least one pharmaceutically acceptable salt thereof and a pharmaceutically acceptable excipient. 
     In yet another aspect, the disclosure provides methods for modulating BTK, comprising administering to a system or a subject in need thereof, a therapeutically effective amount of a compound of formula (I) or a pharmaceutically acceptable salt thereof or pharmaceutical compositions thereof, thereby modulating said BTK. 
     In yet another aspect, disclosed is a method to treat, ameliorate or prevent a condition which responds to inhibition of BTK comprising administering to a system or subject in need of such treatment an effective amount of a compound of formula (I) or a pharmaceutically acceptable salt thereof or pharmaceutical compositions thereof, and optionally in combination with a second therapeutic agent, thereby treating said condition. 
     Alternatively, the present disclosure provides the use of a compound of formula (I) or a pharmaceutically acceptable salt thereof in the manufacture of a medicament for treating a condition mediated by BTK. In particular embodiments, the compounds of the disclosure may be used alone or in combination with a second therapeutic agent to treat a condition mediated by BTK. 
     Alternatively, disclosed is a compound of formula (I) or a pharmaceutically acceptable salt thereof for treating a condition mediated by BTK. 
     Specifically, the condition herein includes but not limited to, an autoimmune disease, a transplantation disease, an infectious disease or a cell proliferative disorder. 
     Furthermore, the disclosure provides methods for treating a cell proliferative disorder, comprising administering to a system or subject in need of such treatment an effective amount of a compound of formula (I) or a pharmaceutically acceptable salt thereof or pharmaceutical compositions thereof, and optionally in combination with a second therapeutic agent, thereby treating said condition. 
     Alternatively, the present disclosure provides the use of a compound of formula (I) or a pharmaceutically acceptable salt thereof in the manufacture of a medicament for treating a cell-proliferative disorder. In particular examples, the compounds of the disclosure may be used alone or in combination with a chemotherapeutic agent to treat a cell proliferative disorder. 
     Specifically, the condition herein includes but not limited to, is an autoimmune disease, a heteroimmune disease, an allergic disease, an inflammatory disease or a cell proliferative disorder. 
     In certain embodiments, the condition is cell proliferative disorder. In one embodiment, the cell proliferative disorder is B-cell proliferative disorder, which includes but not limited to, B-cell malignancies, B-cell chronic lymphocytic lymphoma, chronic lymphocytic leukemia, B-cell prolymphocytic leukemia, lymphoplasmacytic lymphoma, multiple sclerosis, small lymphocytic lymphoma, mantle cell lymphoma, B-cell non-Hodgkin&#39;s lymphoma, activated B-cell like diffuse large B-cell lymphoma, multiple myeloma, diffuse large B-cell lymphoma, follicular lymphoma, primary effusion lymphoma, burkitt lymphoma/leukemia, lymphomatoid granulomatosis, and plasmacytoma. 
     In certain embodiments, the condition is autoimmune disease, which includes but not limited to, rheumatoid arthritis, psoriatic arthritis, psoriasis, osteoarthritis, juvenile arthritis, inflammatory bowel disease, Crohn&#39;s disease, ulcerative colitis, myasthenia gravis, Hashimoto&#39;s thyroiditis, multiple sclerosis, acute disseminated encephalomyelitis, Addison&#39;s disease, ankylosing spondylitis, antiphospholipid antibody syndrome, aplastic anemia, autoimmune hepatitis, coeliac disease, Goodpasture&#39;s syndrome, idiopathic thrombocytopenic purpura, scleroderma, primary biliary cirrhosis, Reiter&#39;s syndrome, psoriasis, dysautonomia, neuromyotonia, interstitial cystitis, lupus, systemic lupus erythematosus, and lupus nephritis. 
     In certain embodiments, the condition is heteroimmune disease, which includes but not limited to, graft versus host disease, transplantation, transfusion, anaphylaxis, allergy, type I hypersensitivity, allergic conjunctivitis, allergic rhinitis, and atopic dermatitis. 
     In certain embodiments, the condition is inflammatory disease, which includes but not limited to, athma, appendicitis, blepharitis, bronchiolitis, bronchitis, bursitis, cervicitis, cholangitis, cholecystitis, colitis, conjunctivitis, cystitis, dacryoadenitis, dermatitis, dermatomyositis, encephalitis, endocarditis, endometritis, enteritis, enterocolitis, epicondylitis, epididymitis, fasciitis, fibrositis, gastritis, gastroenteritis, hepatitis, hidradenitis suppurativa, laryngitis, mastitis, meningitis, myelitis myocarditis, myositis, nephritis, oophoritis, orchitis, osteitis, otitis, pancreatitis, parotitis, pericarditis, peritonitis, pharyngitis, pleuritic, phlebitis, pneumonitis, pneumonia, proctitis, prostatitis, pyelonephritis, rhinitis, salpingitis, sinusitis, stomatitis, synovitis, endonitis, tonsillitis, uveitis, vaginitis, vasculitis, and vulvitis. 
     In the above methods for using the compounds of the disclosure, a compound of formula (I) or a pharmaceutically acceptable salt thereof may be administered to a system comprising cells or tissues, or to a subject including a mammalian subject such as a human or animal subject. 
     Certain Terminology 
     Unless defined otherwise, all technical and scientific terms used herein have the same meaning as is commonly understood by one of skill in the art to which the claimed subject matter belongs. All patents, patent applications, published materials referred to throughout the entire disclosure herein, unless noted otherwise, are incorporated by reference in their entirety. In the event that there is a plurality of definitions for terms herein, those in this section prevail. 
     It is to be understood that the foregoing general description and the following detailed description are explanatory only and are not restrictive of any subject matter claimed. In this application, the use of the singular includes the plural unless specifically stated otherwise. It must be noted that, as used in the specification and the appended claims, the singular forms “a”, “an” and “the” include plural referents unless the context clearly dictates otherwise. It should also be noted that use of “or” means “and/or” unless stated otherwise. Furthermore, use of the term “including” as well as other forms, such as “include”, “includes”, and “included” is not limiting. Likewise, use of the term “comprising” as well as other forms, such as “comprise”, “comprises”, and “comprised” is not limiting. 
     Unless otherwise indicated, conventional methods of mass spectroscopy, NMR, HPLC, IR and UV/Vis spectroscopy and pharmacology, within the skill of the art are employed. Unless specific definitions are provided, the nomenclature employed in connection with, and the laboratory procedures and techniques of, analytical chemistry, synthetic organic chemistry, and medicinal and pharmaceutical chemistry described herein are those known in the art. Standard techniques can be used for chemical syntheses, chemical analyses, pharmaceutical preparation, formulation, and delivery, and treatment of patients. Reactions and purification techniques can be performed e.g., using kits of manufacturer&#39;s specifications or as commonly accomplished in the art or as described herein. The foregoing techniques and procedures can be generally performed of conventional methods well known in the art and as described in various general and more specific references that are cited and discussed throughout the present specification. Throughout the specification, groups and substituents thereof can be chosen by one skilled in the field to provide stable moieties and compounds. 
     Where substituent groups are specified by their conventional chemical formulas, written from left to right, they equally encompass the chemically identical substituents that would result from writing the structure from right to left. As a non-limiting example, CH 2 O is equivalent to OCH 2 . 
     The term “substituted” means that a hydrogen atom is replaced by a substituent. It is to be understood that substitution at a given atom is limited by valency. 
     The term “C i-j ” or “i-j membered” used herein means that the moiety has i-j carbon atoms or i-j atoms. For example, “C 1-6  alkyl” means said alkyl has 1-6 carbon atoms. Likewise, C 3-10  cycloalkyl means said cycloalkyl has 3-10 carbon atoms. 
     When any variable (e.g. R) occurs at the structure of a compound over one time, it is defined independently at each case. Therefore, for example, if a group is substituted by 0-2 R, the group may be optionally substituted by at most two R and R has independent option at each case. Additionally, a combination of substituents and/or the variants thereof are allowed only if such a combination will result in a stable compound. 
     The expression “one or more” or “at least one” refers to one, two, three, four, five, six, seven, eight, nine or more. 
     Unless stated otherwise, the term “hetero” means heteroatom or heteroatom radical (i.e. a radical containing heteroatom), i.e. the atoms beyond carbon and hydrogen atoms or the radical containing such atoms. Preferably, the heteroatom(s) is independently selected from the group consisting of O, N, S, P and the like. In an embodiment wherein two or more heteroatoms are involved, the two or more heteroatoms may be the same, or part or all of the two or more heteroatoms may be different. 
     The term “alkyl”, employed alone or in combination with other terms, refers to branched or straight-chain saturated aliphatic hydrocarbon groups having the specified number of carbon atoms. Unless otherwise specified, “alkyl” refers to C 1-10  alkyl. For example, C 1-6 , as in “C 1-6  alkyl” is defined to include groups having 1, 2, 3, 4, 5, or 6 carbons in a linear or branched arrangement. For example, “C 1-8  alkyl” includes but is not limited to methyl, ethyl, n-propyl, i-propyl, n-butyl, t-butyl, i-butyl, pentyl, hexyl, heptyl, and octyl. 
     The term “cycloalkyl”, employed alone or in combination with other terms, refers to a saturated monocyclic or multicyclic (e.g. bicyclic or tricyclic) hydrocarbon ring system, usually with 3 to 16 ring atoms. The ring atoms of cycloalkyl are all carbon and the cycloalkyl contains zero heteroatoms and zero double bonds. In a multicyclic cycloalkyl, two or more rings can be fused or bridged or spiro together. Examples of monocyclic ring systems include but are not limited to cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, cycloheptyl, and cyclooctyl. The bridged cycloalkyl is a polycyclic ring system containing 3-10 carbon atoms, which contains one or two alkylene bridges, each alkylene bridge consisting of one, two, or three carbon atoms, each linking two non-adjacent carbon atoms of the ring system. Cycloalkyl can be fused with aryl or heteroaryl group. In some embodiments, cycloalkyl is benzocondensed. Representative examples of such bridged cycloalkyl ring systems include, but are not limited to, bicyclo[3.1.1]heptane, bicyclo[2.2.1]heptane, bicyclo[2.2.2]octane, bicyclo[3.2.2]nonane, bicyclo[3.3.1]nonane, bicyclo[4.2.1]nonane, tricyclo[3.3.1.03,7]nonane and tricyclo[3.3.1.13,7]decane (adamantane). The monocyclic or bridged cycloalkyl can be attached to the parent molecular moiety through any substitutable atom contained within the ring system. 
     The term “alkenyl”, employed alone or in combination with other terms, refers to a non-aromatic hydrocarbon radical, straight, branched or cyclic, containing 2-10 carbon atoms and at least one carbon to carbon double bond. In some embodiments, one carbon to carbon double bond is present, and up to four non-aromatic carbon-carbon double bonds may be present. Thus, “C 2-6  alkenyl” means an alkenyl radical having 2-6 carbon atoms. Alkenyl groups include but are not limited to ethenyl, propenyl, butenyl, 2-methylbutenyl and cyclohexenyl. The straight, branched or cyclic portion of the alkenyl group may contain double bonds and may be substituted if a substituted alkenyl group is indicated. 
     The term “alkynyl”, employed alone or in combination with other terms, refers to a hydrocarbon radical, straight, branched or cyclic, containing 2-10 carbon atoms and at least one carbon to carbon triple bond. In some embodiments, up to three carbon-carbon triple bonds may be present. Thus, “C 2-6  alkynyl” means an alkynyl radical having 2-6 carbon atoms. Alkynyl groups include but are not limited to ethynyl, propynyl, butynyl, and 3-methylbutynyl. The straight, branched or cyclic portion of the alkynyl group may contain triple bonds and may be substituted if a substituted alkynyl group is indicated. 
     The term “halogen” (or “halo”) refers to fluorine, chlorine, bromine and iodine. 
     The term “alkoxy”, employed alone or in combination with other terms, refers to an alkyl as defined above, which is single bonded to an oxygen atom. The attachment point of an alkoxy radical to a molecule is through the oxygen atom. An alkoxy radical may be depicted as —O-alkyl. The term “C 1-10  alkoxy” refers to an alkoxy radical containing 1-10 carbon atoms, having straight or branched moieties. Alkoxy group includes but is not limited to, methoxy, ethoxy, propoxy, isopropoxy, butoxy, pentyloxy, hexyloxy, and the like. 
     The term “cycloalkoxy”, employed alone or in combination with other terms, refers to cycloalkyl as defined above, which is single bonded to an oxygen atom. The attachment point of a cycloalkoxy radical to a molecule is through the oxygen atom. A cycloalkoxy radical may be depicted as —O-cycloalkyl. “C 3-10  cycloalkoxy” refers to a cycloalkoxy radical containing 3-10 carbon atoms. Cycloalkoxy can be fused with aryl or heteroaryl group. In some embodiments, cycloalkoxy is benzocondensed. Cycloalkoxy group includes but is not limited to, cyclopropoxy, cyclobutoxy, cyclopentyloxy, cyclohexyloxy, and the like. 
     The term “alkylthio”, employed alone or in combination with other terms, refers to an alkyl radical as defined above, which is single bonded to a sulfur atom. The attachment point of an alkylthio radical to a molecule is through the sulfur atom. An alkylthio radical may be depicted as —S-alkyl. The term “C 1-10  alkylthio” refers to an alkylthio radical containing 1-10 carbon atoms, having straight or branched moieties. Alkylthio group includes but is not limited to, methylthio, ethylthio, propylthio, isopropylthio, butylthio, hexylthio, and the like. 
     The term “cycloalkylthio”, employed alone or in combination with other terms, refers to cycloalkyl as defined above, which is single bonded to a sulfur atom. The attachment point of a cycloalkylthio radical to a molecule is through the sulfur atom. A cycloalkylthio radical may be depicted as —S-cycloalkyl. “C 3-10  cycloalkylthio” refers to a cycloalkylthio radical containing 3-10 carbon atoms. Cycloalkylthio can be fused with aryl or heteroaryl group. In some embodiments, cycloalkylthio is benzocondensed. Cycloalkylthio group includes but is not limited to, cyclopropylthio, cyclobutylthio, cyclohexylthio, and the like. 
     The term “alkylamino”, employed alone or in combination with other terms, refers to an alkyl as defined above, which is single bonded to a nitrogen atom. The attachment point of an alkylamino radical to a molecule is through the nitrogen atom. An alkylamino radical may be depicted as —NH(alkyl). The term “C 1-10  alkylamino” refers to an alkylamino radical containing 1-10 carbon atoms, having straight or branched moieties. Alkylamino group includes but is not limited to, methylamino, ethylamino, propylamino, isopropylamino, butylamino, hexylamoino, and the like. 
     The term “cycloalkylamino”, employed alone or in combination with other terms, refers to cycloalkyl as defined above, which is single bonded to a nitrogen atom. The attachment point of a cycloalkylamino radical to a molecule is through the nitrogen atom. A cycloalkylamino radical may be depicted as —NH(cycloalkyl). “C 3-10  cycloalkylamino” refers to a cycloalkylamino radical containing 3-10 carbon atoms. Cycloalkylamino can be fused with aryl or heteroaryl group. In some embodiments, cycloalkylamino is benzocondensed. Cycloalkylamino group includes but is not limited to, cyclopropylamino, cyclobutylamino, cyclohexylamino, and the like. 
     The term “di(alkyl)amino”, employed alone or in combination with other terms, refers to two alkyl as defined above, which are single bonded to a nitrogen atom. The attachment point of an di(alkyl)amino radical to a molecule is through the nitrogen atom. A di(alkyl)amino radical may be depicted as —N(alkyl) 2 . The term “di(C 1-10  alkyl)amino” refers to a di(C 1-10  alkyl)amino radical wherein the alkyl radicals each independently contains 1-10 carbon atoms, having straight or branched moieties. 
     The term “aryl”, employed alone or in combination with other terms, refers to a monovalent, monocyclic-, bicyclic- or tricyclic aromatic hydrocarbon ring system having 6, 7, 8, 9, 10, 11, 12, 13 or 14 carbon atoms (a “C 6-14  aryl” group), particularly a ring having 6 carbon atoms (a “C 6  aryl” group), e.g. a phenyl group; or a ring having 10 carbon atoms (a “C 10  aryl” group), e.g. a naphthyl group; or a ring having 14 carbon atoms, (a “C 14  aryl” group), e.g. an anthranyl group. Aryl can be fused with cycloalkyl or heterocycle group. 
     Bivalent radicals formed from substituted benzene derivatives and having the free valences at ring atoms are named as substituted phenylene radicals. Bivalent radicals derived from univalent polycyclic hydrocarbon radicals whose names end in “-yl” by removal of one hydrogen atom from the carbon atom with the free valence are named by removing “-yl” and adding “-idene” to the name of the corresponding univalent radical, e.g., a naphthyl group with two points of attachment is termed naphthylidene. 
     The term “heteroaryl”, employed alone or in combination with other terms, refers to a monovalent, monocyclic-, bicyclic- or tricyclic aromatic ring system having 5, 6, 7, 8, 9, 10, 11, 12, 13 or 14 ring atoms (a “5- to 14-membered heteroaryl” group), particularly 5 or 6 or 9 or 10 atoms, and which contains at least one heteroatom which may be identical or different, said heteroatom selected from N, O and S. Heteroaryl can be fused with cycloalkyl or heterocycle group. In some embodiments, “heteroaryl” refers to
         a 5- to 8-membered monocyclic aromatic ring containing one or more, for example, from 1 to 4, or, in some embodiments, from 1 to 3, heteroatoms selected from N, O and S, with the remaining ring atoms being carbon; or   a 8- to 12-membered bicyclic aromatic ring system containing one or more, for example, from 1 to 6, or, in some embodiments, from 1 to 4, or, in some embodiments, from 1 to 3, heteroatoms selected from N, O and S, with the remaining ring atoms being carbon; or   a 11- to 14-membered tricyclic aromatic ring system containing one or more, for example, from 1 to 8, or, in some embodiments, from 1 to 6, or, in some embodiments, from 1 to 4, or in some embodiments, from 1 to 3, heteroatoms selected from N, O and S, with the remaining ring atoms being carbon.       

     When the total number of S and O atoms in the heteroaryl group exceeds 1, those heteroatoms are not adjacent to one another. In some embodiments, the total number of S and O atoms in the heteroaryl group is not more than 2. In some embodiments, the total number of S and O atoms in the aromatic heterocycle is not more than 1. 
     Examples of heteroaryl groups include, but are not limited to, pyrid-2-yl, pyrid-3-yl, pyrid-4-yl, pyrazin-2-yl, pyrazin-3-yl, pyrimidin-2-yl, pyrimidin-4-yl, pyrimidin-5-yl, pyrimidin-6-yl, pyrazol-1-yl, pyrazol-3-yl, pyrazol-4-yl, pyrazol-5-yl, imidazol-1-yl, imidazol-2-yl, imidazol-4-yl, imidazol-5-yl, pyridazinyl, triazinyl, pyrrolyl, oxazolyl, isoxazolyl, thiazolyl, isothiazolyl, thiadiazolyl, triazolyl, tetrazolyl, thienyl, furyl. 
     Further heteroaryl groups include but are not limited to indolyl, benzothienyl, benzofuryl, benzoimidazolyl, benzotriazolyl, quinoxalinyl, quinolinyl, and isoquinolinyl. “Heteroaryl” is also understood to include the N-oxide derivative of any nitrogen-containing heteroaryl. 
     Bivalent radicals derived from univalent heteroaryl radicals whose names end in “-yl” by removal of one hydrogen atom from the atom with the free valence are named by adding “-idene” to the name of the corresponding univalent radical, e.g., a pyridyl group with two points of attachment is a pyridylidene. 
     The term “heterocycle”, employed alone or in combination with other terms, (and variations thereof such as “heterocyclic”, or “heterocyclyl”) broadly refers to a saturated or unsaturated mono- or multicyclic (e.g. bicyclic) aliphatic ring system, usually with 3 to 12 ring atoms, wherein at least one (e.g. 2, 3 or 4) ring atom is heteroatom independently selected from O, S, N and P (preferably O, S, N). In a multicyclic heterocycle, two or more rings can be fused or bridged or spiro together. Heterocycle can be fused with aryl or heteroaryl group. In some embodiments, heterocycle is benzocondensed. Heterocycle also includes ring systems substituted with one or more oxo or imino moieties. In some embodiments, the C, N, S and P atoms in the heterocycle ring are optionally substituted by oxo. In some embodiments, the C, S and P atoms in the heterocycle ring are optionally substituted by imino, and imino can be unsubstituted or substituted. The point of the attachment may be carbon atom or heteroatom in the heterocyclic ring, provided that attachment results in the creation of a stable structure. When the heterocyclic ring has substituents, it is understood that the substituents may be attached to any atom in the ring, whether a heteroatom or a carbon atom, provided that a stable chemical structure result. 
     Suitable heterocycles include, for example, pyrrolidin-1-yl, pyrrolidin-2-yl, pyrrolidin-3-yl, imidazolidin-1-yl, imidazolidin-2-yl, imidazolidin-3-yl, imidazolidin-4-yl, imidazolidin-5-yl, pyrazolidin-1-yl, pyrazolidin-2-yl, pyrazolidin-3-yl, pyrazolidin-4-yl, pyrazolidin-5-yl, piperidin-1-yl, piperidin-2-yl, piperidin-3-yl, piperidin-4-yl, piperazin-1-yl, piperazin-2-yl, piperazin-3-yl, hexahydropyridazin-1-yl, hexahydropyridazin-3-yl and hexahydropyridazin-4-yl. Morpholinyl groups are also contemplated, such as morpholin-1-yl, morpholin-2-yl and morpholin-3-yl. Examples of heterocycle with one or more oxo moieties include but are not limited to, piperidinyl N-oxide, morpholinyl-N-oxide, 1-oxo-thiomorpholinyl and 1,1-dioxo-thiomorpholinyl. Bicyclic heterocycles include, for example. 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     As used herein, “aryl-alkyl” refers to an alkyl moiety as defined above substituted by an aryl group as defined above. Exemplary aryl-alkyl groups include but are not limited to benzyl, phenethyl and naphthylmethyl groups. In some embodiments, aryl-alkyl groups have 7-20 or 7-11 carbon atoms. When used in the phrase “aryl-C 1-4  alkyl”, the term “C 1-4 ” refers to the alkyl portion of the moiety and does not describe the number of atoms in the aryl portion of the moiety. 
     As used herein, “heterocyclyl-alkyl” refers to alkyl as defined above substituted by heterocyclyl as defined above. When used in the phrase “heterocyclyl-C 1-4  alkyl”, the term “C 1-4 ” refers to the alkyl portion of the moiety and does not describe the number of atoms in the heterocyclyl portion of the moiety. 
     As used herein, “cycloalkyl-alkyl” refers to alkyl as defined above substituted by cycloalkyl as defined above. When used in the phrase “C 3-10  cycloalkyl-C 1-4  alkyl”, the term “C 3-10 ” refers to the cycloalkyl portion of the moiety and does not describe the number of atoms in the alkyl portion of the moiety, and the term “C 1-4 ” refers to the alkyl portion of the moiety and does not describe the number of atoms in the cycloalkyl portion of the moiety. 
     As used herein, “heteroaryl-alkyl” refers to alkyl as defined above substituted by heteroaryl as defined above. When used in the phrase “heteroaryl-C 1-4  alkyl”, the term “C 1-4 ” refers to the alkyl portion of the moiety and does not describe the number of atoms in the heteroaryl portion of the moiety. 
     For avoidance of doubt, reference, for example, to substitution of alkyl, cycloalkyl, heterocyclyl, aryl and/or heteroaryl refers to substitution of each of those groups individually as well as to substitutions of combinations of those groups. That is, if R is aryl-C 1-4  alkyl and may be unsubstituted or substituted with at least one substituent, such as one, two, three, or four substituents, independently selected from R X , it should be understood that the aryl portion may be unsubstituted or substituted with at least one substituent, such as one, two, three, or four substituents, independently selected from R X  and the alkyl portion may also be unsubstituted or substituted with at least one substituent, such as one, two, three, or four substituents, independently selected from R X . 
     The term “pharmaceutically acceptable salts” refers to salts prepared from pharmaceutically acceptable non-toxic bases or acids including inorganic or organic bases and inorganic or organic acids. Salts derived from inorganic bases may be selected, for example, from aluminum, ammonium, calcium, copper, ferric, ferrous, lithium, magnesium, manganic, manganous, potassium, sodium and zinc salts. Further, for example, the pharmaceutically acceptable salts derived from inorganic bases may be selected from ammonium, calcium, magnesium, potassium and sodium salts. Salts in the solid form may exist in one or more crystalline forms, or polymorphs, and may also be in the form of solvates, such as hydrates. Salts derived from pharmaceutically acceptable organic non-toxic bases may be selected, for example, from salts of primary, secondary and tertiary amines, substituted amines including naturally occurring substituted amines, cyclic amines and basic ion exchange resins, such as arginine, betaine, caffeine, choline, N,N′-dibenzylethylene-diamine, diethylamine, 2-diethylaminoethanol, 2-dimethylaminoethanol, ethanolamine, ethylenediamine, N-ethyl-morpholine, N-ethylpiperidine, glucamine, glucosamine, histidine, hydrabamine, isopropylamine, lysine, methylglucamine, morpholine, piperazine, piperidine, polyamine resins, procaine, purines, theobromine, triethylamine, trimethylamine and tripropylamine, tromethamine. 
     When the compound disclosed herein is basic, salts may be prepared using at least one pharmaceutically acceptable non-toxic acid, selected from inorganic and organic acids. Such acid may be selected, for example, from acetic, benzenesulfonic, benzoic, camphorsulfonic, citric, ethanesulfonic, fumaric, gluconic, glutamic, hydrobromic, hydrochloric, isethionic, lactic, maleic, malic, mandelic, methanesulfonic, mucic, nitric, pamoic, pantothenic, phosphoric, succinic, sulfuric, tartaric and p-toluenesulfonic acids. In some embodiments, such acid may be selected, for example, from citric, hydrobromic, hydrochloric, maleic, phosphoric, sulfuric, fumaric and tartaric acids. 
     The terms “administration of” and or “administering” a compound or a pharmaceutically acceptable salt should be understood to mean providing a compound or a pharmaceutically acceptable salt thereof to the individual in recognized need of treatment. 
     The term “effective amount” means the amount of the a compound or a pharmaceutically acceptable salt that will elicit the biological or medical response of a tissue, system, animal or human that is being sought by the researcher, veterinarian, medical doctor or other clinician. 
     The term “composition” as used herein is intended to encompass a product comprising the specified ingredients in the specified amounts, as well as any product which results, directly or indirectly, from combination of the specified ingredients in the specified amounts. Such term in relation to a pharmaceutical composition is intended to encompass a product comprising the active ingredient (s) and the inert ingredient (s) that make up the carrier, as well as any product which results, directly or indirectly, from combination, complexation or aggregation of any two or more of the ingredients, or from dissociation of one or more of the ingredients, or from other types of reactions or interactions of one or more of the ingredients. 
     The term “pharmaceutically acceptable” it is meant compatible with the other ingredients of the formulation and not unacceptably deleterious to the recipient thereof. 
     The term “subject” as used herein in reference to individuals suffering from a disorder, a condition, and the like, encompasses mammals and non-mammals. Examples of mammals include, but are not limited to, any member of the Mammalian class: humans, non-human primates such as chimpanzees, and other apes and monkey species; farm animals such as cattle, horses, sheep, goats, swine; domestic animals such as rabbits, dogs and cats; laboratory animals including rodents, such as rats, mice and guinea pigs, and the like. Examples of non-mammals include, but are not limited to, birds, fish and the like. In one embodiment of the methods and compositions provided herein, the mammal is a human. 
     The terms “treat,” “treating” or “treatment,” and other grammatical equivalents as used herein, include alleviating, abating or ameliorating a disease or condition, preventing additional symptoms, ameliorating or preventing the underlying metabolic causes of symptoms, inhibiting the disease or condition, e.g., arresting the development of the disease or condition, relieving the disease or condition, causing regression of the disease or condition, relieving a condition caused by the disease or condition, or stopping the symptoms of the disease or condition, and are intended to include prophylaxis. The terms further include achieving a therapeutic benefit and/or a prophylactic benefit. By therapeutic benefit is meant eradication or amelioration of the underlying disorder being treated. Also, a therapeutic benefit is achieved with the eradication or amelioration of one or more of the physiological symptoms associated with the underlying disorder such that an improvement is observed in the patient, notwithstanding that the patient may still be afflicted with the underlying disorder. For prophylactic benefit, the compositions may be administered to a patient at risk of developing a particular disease, or to a patient reporting one or more of the physiological symptoms of a disease, even though a diagnosis of this disease may not have been made. 
     The term “protecting group” or “Pg” refers to a substituent that can be commonly employed to block or protect a certain functionality while reacting other functional groups on the compound. For example, an “amino-protecting group” is a substituent attached to an amino group that blocks or protects the amino functionality in the compound. Suitable amino-protecting groups include but are not limited to acetyl, trifluoroacetyl, t-butoxycarbonyl (BOC), benzyloxycarbonyl (CBZ) and 9-fluorenylmethylenoxycarbonyl (Fmoc). Similarly, a “hydroxy-protecting group” refers to a substituent of a hydroxy group that blocks or protects the hydroxy functionality. Suitable protecting groups include but are not limited to acetyl and silyl. A “carboxy-protecting group” refers to a substituent of the carboxy group that blocks or protects the carboxy functionality. Common carboxy-protecting groups include —CH 2 CH 2 SO 2 Ph, cyanoethyl, 2-(trimethylsilyl)ethyl, 2-(trimethylsilyl)ethoxymethyl, 2-(p-toluenesulfonyl)ethyl, 2-(p-nitrophenylsulfenyl)ethyl, 2-(diphenylphosphino)-ethyl, nitroethyl and the like. For a general description of protecting groups and their use, see T. W. Greene, Protective Groups in Organic Synthesis, John Wiley &amp; Sons, New York, 1991. 
     The term “NH protecting group” as used herein includes, but not limited to, trichloroethoxycarbonyl, tribromoethoxycarbonyl, benzyloxycarbonyl, para-nitrobenzylcarbonyl, ortho-bromobenzyloxycarbonyl, chloroacetyl, dichloroacetyl, trichloroacetyl, trifluoroacetyl, phenylacetyl, formyl, acetyl, benzoyl, tert-amyloxycarbonyl, tert-butoxycarbonyl, para-methoxybenzyloxycarbonyl, 3,4-dimethoxybenzyl-oxycarbonyl, 4-(phenylazo)-benzyloxycarbonyl, 2-furfuryloxycarbonyl, diphenylmethoxycarbonyl, 1,1-dimethylpropoxy-carbonyl, isopropoxycarbonyl, phthaloyl, succinyl, alanyl, leucyl, 1-adamantyloxycarbonyl, 8-quinolyloxycarbonyl, benzyl, diphenylmethyl, triphenylmethyl, 2-nitrophenylthio, methanesulfonyl, para-toluenesulfonyl, N,N-dimethylaminomethylene, benzylidene, 2-hydroxybenzylidene, 2-hydroxy-5-chlorobenzylidene, 2-hydroxy-1-naphthylmethylene, 3-hydroxy-4-pyridylmethylene, cyclohexylidene, 2-ethoxycarbonylcyclohexylidene, 2-ethoxycarbonylcyclopentylidene, 2-acetylcyclohexylidene, 3,3-dimethyl-5-oxycyclo-hexylidene, diphenylphosphoryl, dibenzylphosphoryl, 5-methyl-2-oxo-2H-1,3-dioxol-4-yl-methyl, trimethylsilyl, triethylsilyl and triphenylsilyl. 
     The term “C(O)OH protecting group” as used herein includes, but not limited to, methyl, ethyl, n-propyl, isopropyl, 1,1-dimethylpropyl, n-butyl, tert-butyl, phenyl, naphthyl, benzyl, diphenylmethyl, triphenylmethyl, para-nitrobenzyl, para-methoxybenzyl, bis(para-methoxyphenyl)methyl, acetylmethyl, benzoylmethyl, para-nitrobenzoylmethyl, para-bromobenzoylmethyl, para-methanesulfonylbenzoylmethyl, 2-tetrahydropyranyl, 2-tetrahydrofuranyl, 2,2,2-trichloro-ethyl, 2-(trimethylsilyl)ethyl, acetoxymethyl, propionyloxymethyl, pivaloyloxymethyl, phthalimidomethyl, succinimidomethyl, cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, methoxymethyl, methoxyethoxymethyl, 2-(trimethylsilyl)ethoxymethyl, benzyloxymethyl, methylthiomethyl, 2-methylthioethyl, phenylthiomethyl, 1,1-dimethyl-2-propenyl, 3-methyl-3-butenyl, allyl, trimethylsilyl, triethylsilyl, triisopropylsilyl, diethylisopropylsilyl, tert-butyldimethylsilyl, tert-butyldiphenylsilyl, diphenylmethylsilyl and tert-butylmethoxyphenylsilyl. 
     The term “OH or SH protecting group” as used herein includes, but not limited to, benzyloxycarbonyl, 4-nitrobenzyloxycarbonyl, 4-bromobenzyloxycarbonyl, 4-methoxybenzyloxycarbonyl, 3,4-dimethoxybenzyloxycarbonyl, methoxycarbonyl, ethoxycarbonyl, tert-butoxycarbonyl, 1,1-dimethylpropoxycarbonyl, isopropoxycarbonyl, isobutyloxycarbonyl, diphenylmethoxycarbonyl, 2,2,2-trichloroethoxycarbonyl, 2,2,2-tribromoethoxycarbonyl, 2-(trimethylsilyl)ethoxycarbonyl, 2-(phenylsulfonyl)ethoxycarbonyl, 2-(triphenylphosphonio)ethoxycarbonyl, 2-furfuryloxycarbonyl, 1-adamantyloxycarbonyl, vinyloxycarbonyl, allyloxycarbonyl, 4-ethoxy-1-naphthyloxycarbonyl, 8-quinolyloxycarbonyl, acetyl, formyl, chloroacetyl, dichloroacetyl, trichloroacetyl, trifluoroacetyl, methoxyacetyl, phenoxyacetyl, pivaloyl, benzoyl, methyl, tert-butyl, 2,2,2-trichloroethyl, 2-trimethylsilylethyl, 1,1-dimethyl-2-propenyl, 3-methyl-3-butenyl, allyl, benzyl (phenylmethyl), para-methoxybenzyl, 3,4-dimethoxybenzyl, diphenylmethyl, triphenylmethyl, tetrahydrofuryl, tetrahydropyranyl, tetrahydrothiopyranyl, methoxymethyl, methylthiomethyl, benzyloxymethyl, 2-methoxyethoxymethyl, 2,2,2-trichloro-ethoxymethyl, 2-(trimethylsilyl)ethoxymethyl, 1-ethoxyethyl, methanesulfonyl, para-toluenesulfonyl, trimethylsilyl, triethylsilyl, triisopropylsilyl, diethylisopropylsilyl, tert-butyldimethylsilyl, tert-butyldiphenylsilyl, diphenylmethylsilyl and tert-butylmethoxyphenylsilyl. 
     Geometric isomers may exist in the present compounds. Compounds of this invention may contain carbon-carbon double bonds or carbon-nitrogen double bonds in the E or Z configuration, wherein the term “E” represents higher order substituents on opposite sides of the carbon-carbon or carbon-nitrogen double bond and the term “Z” represents higher order substituents on the same side of the carbon-carbon or carbon-nitrogen double bond as determined by the Cahn-Ingold-Prelog Priority Rules. The compounds of this invention may also exist as a mixture of “E” and “Z” isomers. Substituents around a cycloalkyl or heterocycloalkyl are designated as being of cis or trans configuration. Furthermore, the invention contemplates the various isomers and mixtures thereof resulting from the disposal of substituents around an adamantane ring system. Two substituents around a single ring within an adamantane ring system are designated as being of Z or E relative configuration. For examples, see C. D. Jones, M. Kaselj, R. N. Salvatore, W. J. le Noble J. Org. Chem. 1998, 63, 2758-2760. 
     Compounds of this invention may contain asymmetrically substituted carbon atoms in the R or S configuration, in which the terms “R” and “S” are as defined by the IUPAC 1974 Recommendations for Section E, Fundamental Stereochemistry, Pure Appl. Chem. (1976) 45, 13-10. Compounds having asymmetrically substituted carbon atoms with equal amounts of R and S configurations are racemic at those carbon atoms. Atoms with an excess of one configuration over the other are assigned the configuration present in the higher amount, preferably an excess of about 85-90%, more preferably an excess of about 95-99%, and still more preferably an excess greater than about 99%. Accordingly, this invention includes racemic mixtures, relative and absolute stereoisomers, and mixtures of relative and absolute stereoisomers. 
     Isotope Enriched or Labeled Compounds. 
     Compounds of the invention can exist in isotope-labeled or -enriched form containing one or more atoms having an atomic mass or mass number different from the atomic mass or mass number most abundantly found in nature. Isotopes can be radioactive or non-radioactive isotopes. Isotopes of atoms such as hydrogen, carbon, nitrogen, oxygen, phosphorous, sulfur, fluorine, chlorine and iodine include, but are not limited to,  2 H,  3 H,  13 C,  14 C,  15 N,  18 O,  32 P  35 S,  18 F,  36 Cl, and  125 I. Compounds that contain other isotopes of these and/or other atoms are within the scope of this invention. 
     In another embodiment, the isotope-labeled compounds contain deuterium ( 2 H), tritium ( 3 H) or  14 C isotopes. Isotope-labeled compounds of this invention can be prepared by the general methods well known to persons having ordinary skill in the art. Such isotope-labeled compounds can be conveniently prepared by carrying out the procedures disclosed in the Examples disclosed herein and Schemes by substituting a readily available isotope-labeled reagent for a non-labeled reagent. In some instances, compounds may be treated with isotope-labeled reagents to exchange a normal atom with its isotope, for example, hydrogen for deuterium can be exchanged by the action of a deuterated acid such as D 2 SO 4 /D 2 O. 
     The isotope-labeled compounds of the invention may be used as standards to determine the effectiveness of BTK inhibitors in binding assays. Isotope containing compounds have been used in pharmaceutical research to investigate the in vivo metabolic fate of the compounds by evaluation of the mechanism of action and metabolic pathway of the nonisotope-labeled parent compound (Blake et al. J. Pharm. Sci. 64, 3, 367-391 (1975)). Such metabolic studies are important in the design of safe, effective therapeutic drugs, either because the in vivo active compound administered to the patient or because the metabolites produced from the parent compound prove to be toxic or carcinogenic (Foster et al., Advances in Drug Research Vol. 14, pp. 2-36, Academic press, London, 1985; Kato et al, J. Labelled Compounds. Radiopharmaceuticals, 36(10), 927-932 (1995); Kushner et al., Can. J. Physiol. Pharmacology, 77, 79-88 (1999). 
     In addition, non-radioactive isotope containing drugs, such as deuterated drugs called “heavy drugs” can be used for the treatment of diseases and conditions related to BTK activity. Increasing the amount of an isotope present in a compound above its natural abundance is called enrichment. Examples of the amount of enrichment include but are not limited to from about 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 21, 25, 29, 33, 37, 42, 46, 50, 54, 58, 63, 67, 71, 75, 79, 84, 88, 92, 96, to about 100 mol %. 
     Stable isotope labeling of a drug can alter its physico-chemical properties such as pKa and lipid solubility. These effects and alterations can affect the pharmacodynamic response of the drug molecule if the isotopic substitution affects a region involved in a ligand-receptor interaction. While some of the physical properties of a stable isotope-labeled molecule are different from those of the unlabeled one, the chemical and biological properties are the same, with one important exception: because of the increased mass of the heavy isotope, any bond involving the heavy isotope and another atom will be stronger than the same bond between the light isotope and that atom. Accordingly, the incorporation of an isotope at a site of metabolism or enzymatic transformation will slow said reactions potentially altering the pharmacokinetic profile or efficacy relative to the non-isotopic compound. 
     In an Embodiment (1), this invention provides to a compound of formula (I): 
     
       
         
         
             
             
         
       
     
     or a pharmaceutically acceptable salt thereof, wherein: 
        is a single bond or a double bond to maintain ring A and ring B being aromatic; 
     A 1  is selected from C and N; 
     A 2  is selected from CR X , C(O) and N; 
     A 3  is selected from CR 6  and NR 6 ; 
     A 4  selected from CR 7 , C(O), N and NR X R 5 ; 
     A 5  is selected from CR X , NR X  or absent; 
     A 6  is selected from N and O; 
     B 1  is selected from C and N; 
     B 2  is selected from C and N; 
     when A 4  and A 6  are N, B 2  is C, then A 2  is not N; 
     when A 5  is absent, R 5  and R 6  together with the atoms to which they are attached are not form a ring, then A 2  and A 3  are not N at the same time; 
     X is selected from CR X  and N; 
     Y is selected from CR X  and N; 
     Z is selected from aryl, heteroaryl and heterocyclyl, wherein aryl, heteroaryl and heterocyclyl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     R 1  is selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X1 ; 
     R 2  is selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X2 ; 
     or R 1  and R 2  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X1  groups; 
     each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(═NR E3 )R A3 , —C(═N—OR B3 )R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —C(═NR E3 )NR A3 R B3 , —NR A3 C(═NR E3 )R B3 , —OC(O)NR A3 R B3 , —NR A3 C(O)OR B3 , —NR A3 C(O)NR A3 R B3 , —NR A3 C(S)NR A3 R B3 , —NR A3 C(═NR E3 )NR A3 R B3 , —S(O) r R A3 , —S(O)(═NR E3 )R B3 , —N═S(O)R A3 R B3 , —S(O) 2 OR A3 , —OS(O) 2 R A3 , —NR A3 S(O) r R B3 , —NR A3 S(O)(═NR E3 )R B3 , —S(O) r NR A3 R B3 , —S(O)(═NR E3 )NR A3 R B3 , —NR A3 S(O) 2 NR A3 R B3 , —NR A3 S(O)(═NR E3 )NR A3 R B3 , —P(O)R A3 R B3  and —P(O)(OR A3 )(OR B3 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 ; 
     or any two of R 3  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X3  groups; 
     R 5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A5 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X5 ; 
     R 6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A6 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 ; 
     or R 5  and R 6  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2, 3 or 4 R 4  groups; 
     each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A4 R B4 , —OR A4 , —C(O)R A4 , —C(O)OR A4 , —OC(O)R A4 , —C(O)NR A4 R B4 , —NR A4 C(O)R B4 , and —S(O) r R A4 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 ; 
     or any two of R 4  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups; 
     R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A7 , —C(═NR E7 )R A7 , —C(═N—OR B7 )R A7 , —C(O)OR A7 , —OC(O)R A7 , —C(O)NR A7 R B7 , —NR A7 C(O)R B7 , —C(═NR E7 )NR A7 R B7 , —NR A7 C(═NR E7 )R B7 , —OC(O)NR A7 R B7 , —NR A7 C(O)OR B7 , —NR A7 C(O)NR A7 R B7 , —NR A7 C(S)NR A7 R B7 , —NR A7 C(═NR E7 )NR A7 R B7 , —S(O) r R A7 , —S(O)(═NR E7 )R B7 , —N═S(O)R A7 R B7 , —S(O) 2 OR A7 , —OS(O) 2 R A7 , —NR A7 S(O) r R B7 , —NR A7 S(O)(═NR E7 )R B7 , —S(O) r NR A7 R B7 , —S(O)(═NR E7 )NR A7 R B7 , —NR A7 S(O) 2 NR A7 R B7 , —NR A7 S(O)(═NR E7 )NR A7 R B7 , —P(O)R A7 R B7  and —P(O)(OR A7 )(OR B7 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 ; 
     or R 6  and R 7  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X6  groups; 
     each R A3  and R B3  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 ; 
     or “R A3  and R B3 ”, together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus and optionally substituted with 1, 2 or 3 R X3  groups; 
     each R A4  and R B4  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 ; 
     or each “R A4  and R B4 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups; 
     R A5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X5 ; 
     R A6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 ; 
     each R A7  and R B7  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 ; 
     or each “R A7  and R B7 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X7  groups; 
     each R E3  and R E7  are independently selected from hydrogen, C 1-10  alkyl, CN, NO 2 , —OR a1 , —SR a1 , —S(O) r R a1 , —C(O)R a1 , —C(O)OR a1 , —C(O)NR a1 R b1  and —S(O) r NR a1 R b1 ; 
     each R X , R X1 , R X2 , R X3 , R X4 , R X5 , R X6  and R X7  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR b1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(═NR e1 )R a1 , —(CR c1 R d1 ) t C(═N—OR b1 )R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t OC(O)R b1 , —(CR c1 R d1 ) t C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)R b1 , —(CR c1 R d1 ) t C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )R b1 , —(CR c1 R d1 ) t OC(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)OR b1 , —(CR c1 R d1 ) t NR a1 C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(S)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t S(O) r R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t N═S(O)R a1 R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t S(O) r NR a1 R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O) 2 NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t P(O)R a1 R b1  and —(CR c1 R d1 ) t P(O)(OR a1 )(OR b1 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     each R a1  and each R b1  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R a1  and R b1  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R c1  and each R d1  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R c1  and R d1  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R e1  is independently selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, CN, NO 2 , —OR a2 , —SR a2 , —S(O) r R a2 , —C(O)R a2 , —C(O)OR a2 , —S(O) r NR a2 R b2  and —C(O)NR a2 R b2 ; 
     each R Y  is independently selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c2 R d2 ) t NR a2 R b2 , —(CR c2 R d2 ) t OR b2 , —(CR c2 R d2 ) t C(O)R a2 , —(CR c2 R d2 ) t C(═NR e2 )R a2 , —(CR c2 R d2 ) t C(═N—OR b2 )R a2 , —(CR c2 R d2 ) t C(O)OR b2 , —(CR c2 R d2 ) t OC(O)R b2 , —(CR c2 R d2 ) t C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)R b2 , —(CR c2 R d2 ) t C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )R b2 , —(CR c2 R d2 ) t OC(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)OR b2 , —(CR c2 R d2 ) t NR a2 C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(S)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t S(O) r R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t N═S(O)R a2 R b2 , —(CR c2 R d2 ) t S(O) 2 OR b2 , —(CR c2 R d2 ) t OS(O) 2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) r R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t S(O) r NR a2 R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )NR a2 R b2 , —(CR 2 R d2 ) t NR a2 S(O) 2 NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t P(O)R a2 R b2  and —(CR c2 R d2 ) t P(O)(OR 2 )(OR b2 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from OH, CN, amino, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R a2  and each R b2  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R a2  and R b2  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  and each R d2  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R c2  and R d2  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  is independently selected from hydrogen, CN, NO 2 , C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, —C(O)C 1-4  alkyl, —C(O)C 3-10  cycloalkyl, —C(O)OC 1-4  alkyl, —C(O)OC 3-10  cycloalkyl, —C(O)N(C 1-4  alkyl) 2 , —C(O)N(C 3-10  cycloalkyl) 2 , —S(O) 2 C 1-4  alkyl, —S(O) 2 C 3-10  cycloalkyl, —S(O) 2 N(C 1-4  alkyl) 2  and —S(O) 2 N(C 3-10  cycloalkyl) 2 ; 
     m is selected from 0, 1, 2, 3 and 4; 
     each r is independently selected from 0, 1 and 2; 
     each t is independently selected from 0, 1, 2, 3 and 4. 
     In another Embodiment (2), the invention provides a compound of Embodiment (1) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 5 , Rand R 7  are as defined in Formula (I), n is selected from 0, 1, 2, 3 and 4; p is selected from 0, 1, 2, 3 and 4; wherein the   symbol indicates the point of attachment to the rest of the molecule. 
     In another Embodiment (3), the invention provides a compound of any one of Embodiments (1)-(2) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 5 , R 6  and R 7  are as defined in Formula (I), n is selected from 0, 1, 2, 3 and 4; p is selected from 0, 1, 2, 3 and 4. 
     In another Embodiment (4), the invention provides a compound of Embodiment (3) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula (I). 
     In another Embodiment (5), the invention provides a compound of any one of Embodiments (1)-(2) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 6  and R 7  are as defined in Formula (I), n is selected from 0, 1, 2, 3 and 4; p is selected from 0, 1, 2, 3 and 4. 
     In another Embodiment (6), the invention provides a compound of Embodiment (5) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  is defined in Formula (I). 
     In another Embodiment (7), the invention provides a compound of any one of Embodiment (1)-(2) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula (I). 
     In another Embodiment (8), the invention provides a compound of Embodiment (7) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula (I). 
     In another Embodiment (9), the invention provides a compound of any one of Embodiment (1)-(2) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula (I). 
     In another Embodiment (10), the invention provides a compound of any one of Embodiments (1)-(9) or a pharmaceutically acceptable salt thereof, wherein each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A4 R B4 , —OR A4 , —C(O)R A4 , —C(O)OR A4 , —OC(O)R A4 , —C(O)NR A4 R B4 , —NR A4 C(O)R B4 , and —S(O) r R A4 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 . 
     In another Embodiment (11), the invention provides a compound of any one of Embodiments (1)-(9) or a pharmaceutically acceptable salt thereof, wherein any two of R 4  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl, which is unsubstituted or substituted with 1, 2 or 3 R X4  groups. 
     In another Embodiment (12), the invention provides a compound of any one of Embodiments (1)-(9) or a pharmaceutically acceptable salt thereof, wherein any two of R 4  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups. 
     In another Embodiment (13), the invention provides a compound of any one of Embodiments (1)-(12) or a pharmaceutically acceptable salt thereof, wherein R 5  is selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A s, wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from Rx. 
     In another Embodiment (14), the invention provides a compound of Embodiment (13) or a pharmaceutically acceptable salt thereof, wherein R 5  is H 
     In another Embodiment (15), the invention provides a compound of any one of Embodiments (1)-(14) or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A6 , wherein alkyl, alkenyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 . 
     In another Embodiment (16), the invention provides a compound of Embodiment (15) or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from C 1-8  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl and —C(O)R A6 , wherein alkyl, alkenyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 . 
     In another Embodiment (17), the invention provides a compound of Embodiment (16) or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from methyl, ethyl, 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     In another Embodiment (18), the invention provides a compound of Embodiment (17) or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     In another Embodiment (19), the invention provides a compound ofany one of Embodiments (1)-(18) or a pharmaceutically acceptable salt thereof, wherein R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A7 , —C(O)OR A7 , —OC(O)R A7 , —C(O)NR A7 R B7 , —NR A7 C(O)R B7 , —S(O) r R A7 , —S(O) 2 OR A7 , —OS(O) 2 R A7  and —NR A7 S(O) r R B7 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 . 
     In another Embodiment (20), the invention provides a compound of Embodiment (19) or a pharmaceutically acceptable salt thereof, wherein R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A7 , —C(O)OR A7 , —OC(O)R A7  and —C(O)NR A7 R B7 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 . 
     In another Embodiment (21), the invention provides a compound of Embodiment (20) or a pharmaceutically acceptable salt thereof, wherein R 7  is H. 
     In another Embodiment (22), the invention provides a compound of any one of Embodiments (1)-(14) or a pharmaceutically acceptable salt thereof, wherein R 6  and R 7  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X6  groups. 
     In another Embodiment (23), the invention provides a compound of any one of Embodiments (1)-(22) or a pharmaceutically acceptable salt thereof, wherein X is CH. 
     In another Embodiment (24), the invention provides a compound of any one of Embodiments (1)-(22) or a pharmaceutically acceptable salt thereof, wherein X is N. 
     In another Embodiment (25), the invention provides a compound of any one of Embodiments (1)-(22) or a pharmaceutically acceptable salt thereof, wherein Y is CH. 
     In another Embodiment (26), the invention provides a compound of any one of Embodiments (1)-(22) or a pharmaceutically acceptable salt thereof, wherein Y is N. 
     In another Embodiment (27), the invention provides a compound of any one of Embodiments (1)-(26) or a pharmaceutically acceptable salt thereof, wherein m is selected from 0, 1, 2 and 3. 
     In another Embodiment (28), the invention provides a compound of Embodiment (27) or a pharmaceutically acceptable salt thereof, wherein m is selected from 0, 1 and 2. 
     In another Embodiment (29), the invention provides a compound of Embodiment (27) or a pharmaceutically acceptable salt thereof, wherein each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —OC(O)NR A3 R B3 , —NR A3 C(O)OR B3 , —NR A3 C(O)NR A3 R B3 , —S(O) r R A3 , —S(O) 2 OR A3 , —OS(O) 2 R A3 , —NR A3 S(O) r R B3  and —S(O) r NR A3 R B3 , wherein alkyl, alkenyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 . 
     In another Embodiment (30), the invention provides a compound of Embodiment (29) or a pharmaceutically acceptable salt thereof, wherein each R 3  is independently selected from halogen, C 1-10  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —S(O) r R A3 , and —S(O) r NR A3 R B3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 . 
     In another Embodiment (31), the invention provides a compound of Embodiment (30) or a pharmaceutically acceptable salt thereof, wherein m is selected from 1 and 2, each R 3  is independently selected F. 
     In another Embodiment (32), the invention provides a compound of any one of Embodiments (1)-(31) or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula (I) is selected from 
     
       
         
         
             
             
         
       
     
     In another Embodiment (33), the invention provides a compound of any one of Embodiments (1)-(32) or a pharmaceutically acceptable salt thereof, wherein Z is selected from heterocyclyl, wherein heterocyclyl is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment (34), the invention provides a compound of any one of Embodiments (1)-(32) or a pharmaceutically acceptable salt thereof, wherein Z is selected from aryl and heteroaryl, wherein aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment (35), the invention provides a compound of Embodiment (34) or a pharmaceutically acceptable salt thereof, wherein Z is selected from 5- to 12-membered aryl and heteroaryl, wherein aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment (36), the invention provides a compound of Embodiment (35) or a pharmaceutically acceptable salt thereof, wherein Z is selected from phenyl and 6-membered heteroaryl, which is unsubstituted or substituted with at least one substituent, independently selected from R X ; preferably, Z is selected from phenyl and pyridinyl, which is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment (37), the invention provides a compound of Embodiment (36) or a pharmaceutically acceptable salt thereof, wherein R X  is selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , (CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR b1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t S(O) r R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1  and —(CR c1 R d1 ) t S(O) r NR a1 R b1 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y . 
     In another Embodiment (38), the invention provides a compound of Embodiment (37) or a pharmaceutically acceptable salt thereof, wherein R X  is selected from C 1-10  alkyl, C 3-10  cycloalkyl, halogen, CN, NO 2 , NH 2 , OH, methoxy and ethoxy, wherein methoxy, ethoxy, alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R Y . 
     In another Embodiment (39), the invention provides a compound of any one of Embodiments (33)-(38) or a pharmaceutically acceptable salt thereof, wherein Z is selected from 
     
       
         
         
             
             
         
       
     
     In another Embodiment (40), the invention provides a compound of any one of Embodiments (1)-(39) or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X1 . 
     In another Embodiment (41), the invention provides a compound of Embodiment (40) or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from hydrogen and C 1-10  alkyl, wherein alkyl is unsubstituted or substituted with at least one substituent, independently selected from R X1 . 
     In another Embodiment (42), the invention provides a compound of Embodiment (41) or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from H and methyl. 
     In another Embodiment (43), the invention provides a compound of any one of Embodiments (1)-(39) or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl, wherein cycloalkyl is unsubstituted or substituted with at least one substituent, independently selected from R X1 . 
     In another Embodiment (44), the invention provides a compound of Embodiment (43) or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  together with the atom(s) to which they are attached form a cyclopropyl. 
     In another Embodiment (45), the invention provides a compound selected from 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     and pharmaceutically acceptable salts thereof. 
     In another Embodiment (46), the invention provides a pharmaceutical composition comprising a compound of any one of Embodiments (1)-(45) or a pharmaceutically acceptable salt thereof and at least one pharmaceutically acceptable carrier. 
     In another Embodiment (47), the invention provides a method of treating, ameliorating or preventing a condition, which responds to inhibition of BTK, comprising administering to a subject in need of such treatment an effective amount of a compound of any one of Embodiments (1)-(45), or a pharmaceutically acceptable salt thereof, or a pharmaceutical composition thereof, and optionally in combination with a second therapeutic agent. 
     In another Embodiment (48), the invention provides a use of a compound of any one of Embodiments (1)-(45) or a pharmaceutically acceptable salt thereof in the preparation of a medicament for treating a cell-proliferative disorder. 
     In an In another Embodiment (49), the invention provides a use of a compound of Embodiment (48) or a pharmaceutically acceptable salt thereof, wherein the cell-proliferative disorder is B-cell proliferative disorder. 
     In another Embodiment (50), the invention provides a use of a compound of Embodiment (49) or a pharmaceutically acceptable salt thereof, wherein the B-cell proliferative disorder is includes but not limited to, B-cell malignancies, B-cell chronic lymphocytic lymphoma, chronic lymphocytic leukemia, B-cell prolymphocytic leukemia, lymphoplasmacytic lymphoma, multiple sclerosis, small lymphocytic lymphoma, mantle cell lymphoma, B-cell non-Hodgkin&#39;s lymphoma, activated B-cell like diffuse large B-cell lymphoma, multiple myeloma, diffuse large B-cell lymphoma, follicular lymphoma, primary effusion lymphoma, burkitt lymphoma/leukemia, lymphomatoid granulomatosis, and plasmacytoma. 
     Some embodiments can also be described as follows: 
     In another Embodiment &lt;1&gt;, this invention provides to a compound of formula &lt;1′&gt;: 
     
       
         
         
             
             
         
       
     
     or a pharmaceutically acceptable salt thereof, wherein: 
     W is selected from 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     X is selected from CR X  and N; 
     Y is selected from CR X  and N; 
     Z is selected from aryl, heteroaryl and heterocyclyl, wherein aryl, heteroaryl and heterocyclyl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     R 1  and R 2  are independently selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     or R 1  and R 2  together with the carbon atom to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 Rx groups; 
     each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A1 R B1 , —OR A1 , —C(O)R A , —C(═NR E1 )R A1 , —C(═N—OR B1 )R A1 , —C(O)OR A1 , —OC(O)R A1 , —C(O)NR A1 R B1 , —NR A1 C(O)R B1 , —C(═NR E1 )NR A1 R B1 , —NR A1 C(═NR E1 )R B1 , —OC(O)NR A1 R B1 , —NR A1 C(O)OR B1 , —NR A1 C(O)NR A1 R B1 , —NR A1 C(S)NR A1 R B1 , —NR A1 C(═NR E1 )NR A1 R B1 , —S(O) r R A1 , —S(O)(═NR E1 )R B1 , —N═S(O)R A1 R B1 , —S(O) 2 OR A1 , —OS(O) 2 R A1 , —NR A1 S(O) r R B1 , —NR A1 S(O)(═NR E1 )R B1 , —S(O) r NR A1 R B1 , —S(O)(═NR E1 )NR A1 R B1 , —NR A1 S(O) 2 NR A1 R B1 , —NR A1 S(O)(=NR E1 )NR A1 R B1 , —P(O)R A1 R B1  and —P(O)(OR A1 )(OR B1 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A2 R B2 , —OR A2 , —C(O)R A2 , —C(O)OR A2 , —OC(O)R A2 , —C(O)NR A2 R B2 , —NR A2 C(O)R B2 , and —S(O) r R A2 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     or any two of R 4  together with the carbon atom(s) to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X  groups; 
     R 5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A3 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     R 6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A3 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(═NR E3 )R A3 , —C(═N—OR B3 )R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —C(═NR E3 )NR A3 R B3 , —NR A3 C(═NR E3 )R B3 , —OC(O)NR A3 R B3 , —NR A3 C(O)OR B3 , —NR A3 C(O)NR A3 R B3 , —NR A3 C(S)NR A3 R B3 , —NR A3 C(═NR E3 )NR A3 R B3 , —S(O) r R A3 , —S(O)(═NR E3 )R B3 , —N═S(O)R A3 R B3 , —S(O) 2 OR A3 , —OS(O) 2 R A3 , —NR A3 S(O) r R B3 , —NR A3 S(O)(═NR E3 )R B3 , —S(O) r NR A3 R B3 , —S(O)(═NR E3 )NR A3 R B3 , —NR A3 S(O) 2 NR A3 R B3 , —NR A3 S(O)(═NR E3 )NR A3 R B3 , —P(O)R A3 R B3  and —P(O)(OR A3 )(OR B3 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     or R 6  and R 7  together with the carbon atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X  groups; 
     each R A1 , R A2 , R A3 , R B1 , R B2  and R B3  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     or “R A1  and R B1 ” or “R A2  and R B2 ” or “R A3  and R B3 ”, together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus and optionally substituted with 1, 2 or 3 R X  groups; 
     each R E1  and R E3  are independently selected from hydrogen, C 1-10  alkyl, CN, NO 2 , —OR a1 , —SR a1 , —S(O) r R a1 , —C(O)R a1 , —C(O)OR a1 , —C(O)NR a1 R b1  and —S(O) r NR a1 R b1 , wherein alkyl is unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     each R X  is independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR b1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(═NR e1 )R a1 , —(CR c1 R d1 ) t C(═N—OR b1 )R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t OC(O)R b1 , —(CR c1 R d1 ) t C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)R b1 , —(CR c1 R d1 ) t C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )R b1 , —(CR c1 R d1 ) t OC(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)OR b1 , —(CR c1 R d1 ) t NR a1 C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(S)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t S(O) r R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t N═S(O)R a1 R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t S(O) r NR a1 R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O) 2 NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t P(O)R a1 R b1  and —(CR c1 R d1 ) t P(O)(OR a1 )(OR b1 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     each R a1  and each R b1  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R a1  and R b1  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R c1  and each R d1  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R c1  and R d t together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R e1  is independently selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, CN, NO 2 , —OR a2 , —SR a2 , —S(O) r R a2 , —C(O)R a2 , —C(O)OR a2 , —S(O) r NR a2 R b2  and —C(O)NR a2 R b2 ; 
     each R Y  is independently selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c2 R d2 ) t NR a2 R b2 , —(CR c2 R d2 ) t OR b2 , —(CR c2 R d2 ) t C(O)R a2 , —(CR c2 R d2 ) t C(═NR e2 )R a2 , —(CR c2 R d2 ) t C(═N—OR b2 )R a2 , —(CR c2 R d2 ) t C(O)OR b2 , —(CR c2 R d2 ) t OC(O)R b2 , —(CR c2 R d2 ) t C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)R b2 , —(CR c2 R d2 ) t C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )R b2 , —(CR c2 R d2 ) t OC(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)OR b2 , —(CR c2 R d2 ) t NR a2 C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(S)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t S(O) r R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t N═S(O)R a2 R b2 , —(CR c2 R d2 ) t S(O) 2 OR b2 , —(CR c2 R d2 ) t OS(O) 2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) r R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t S(O) r NR a2 R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) 2 NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t P(O)R a2 R b2  and —(CR c2 R d2 ) t P(O)(OR a2 )(OR b2 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from OH, CN, amino, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R a2  and each R b2  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R a2  and R b2  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  and each R d2  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R e2  and R d2  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  is independently selected from hydrogen, CN, NO 2 , C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, —C(O)C 1-4  alkyl, —C(O)C 3-10  cycloalkyl, —C(O)OC 1-4  alkyl, —C(O)OC 3-10  cycloalkyl, —C(O)N(C 1-4  alkyl) 2 , —C(O)N(C 3-10  cycloalkyl) 2 , —S(O) 2 C 1-4  alkyl, —S(O) 2 C 3-10  cycloalkyl, —S(O) 2 N(C 1-4  alkyl) 2  and —S(O) 2 N(C 3-10  cycloalkyl) 2 ; 
     m is selected from 0, 1, 2, 3 and 4; 
     n is selected from 0, 1, 2, 3 and 4; 
     p is selected from 0, 1, 2, 3 and 4; 
     each r is independently selected from 0, 1 and 2; 
     each t is independently selected from 0, 1, 2, 3 and 4. 
     In another Embodiment &lt;2&gt;, the invention provides a compound of Embodiment &lt;1&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 5 , R 6 , R 7 , p and n are as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;3&gt;, the invention provides a compound of Embodiment &lt;2&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;4&gt;, the invention provides a compound of Embodiment &lt;1&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 6 , R 7 , p, and n are as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;5&gt;, the invention provides a compound of Embodiment &lt;4&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  is as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;6&gt;, the invention provides a compound of Embodiment &lt;1&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;7&gt;, the invention provides a compound of Embodiment &lt;6&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;8&gt;, the invention provides a compound of Embodiment &lt;1&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;9&gt;, the invention provides a compound of Embodiment &lt;8&gt; or a pharmaceutically acceptable salt thereof, wherein W is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  is as defined in Formula &lt;I′&gt;. 
     In another Embodiment &lt;10&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;9&gt; or a pharmaceutically acceptable salt thereof, wherein each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A2 R B2 , —OR A2 , —C(O)R A2 , —C(O)OR A2 , —OC(O)R A2 , —C(O)NR A2 R B2 , —NR A2 C(O)R B2 , and —S(O) r R A2 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;11&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;9&gt; or a pharmaceutically acceptable salt thereof, wherein any two of R 4  together with the carbon atom(s) to which they are attached form a C 3-10  cycloalkyl, which is unsubstituted or substituted with 1, 2 or 3 R X  groups. 
     In another Embodiment &lt;12&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;9&gt; or a pharmaceutically acceptable salt thereof, wherein any two of R 4  together with the carbon atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X  groups. 
     In another Embodiment &lt;13&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;12&gt; or a pharmaceutically acceptable salt thereof, wherein R 5  is selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;14&gt;, the invention provides a compound of Embodiment &lt;13&gt; or a pharmaceutically acceptable salt thereof, wherein R 5  is H. 
     In another Embodiment &lt;15&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;14&gt; or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;16&gt;, the invention provides a compound of Embodiment &lt;15&gt; or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from C 1-8  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl and —C(O)R A3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;17&gt;, the invention provides a compound of Embodiment &lt;16&gt; or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from methyl, ethyl 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     In another Embodiment &lt;18&gt;, the invention provides a compound of Embodiment &lt;17&gt; or a pharmaceutically acceptable salt thereof, wherein R 6  is 
     
       
         
         
             
             
         
       
     
     In another Embodiment &lt;19&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;18&gt; or a pharmaceutically acceptable salt thereof, wherein R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —S(O) r R A3 , —S(O) 2 OR A3 , —OS(O) 2 R A3  and —NR A3 S(O) r R B3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;20&gt;, the invention provides a compound of Embodiment &lt;19&gt; or a pharmaceutically acceptable salt thereof, wherein R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(O)OR A3 , —OC(O)R A3  and —C(O)NR A3 R B3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;21&gt;, the invention provides a compound of Embodiment &lt;20&gt; or a pharmaceutically acceptable salt thereof, wherein R 7  is H. 
     In another Embodiment &lt;22&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;14&gt; or a pharmaceutically acceptable salt thereof, wherein R 6  and R 7  together with the carbon atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X  groups. 
     In another Embodiment &lt;23&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;22&gt; or a pharmaceutically acceptable salt thereof, wherein X is CH. 
     In another Embodiment &lt;24&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;22&gt; or a pharmaceutically acceptable salt thereof, wherein X is N. 
     In another Embodiment &lt;25&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;22&gt; or a pharmaceutically acceptable salt thereof, wherein Y is CH. 
     In another Embodiment &lt;26&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;22&gt; or a pharmaceutically acceptable salt thereof, wherein Y is N. 
     In another Embodiment &lt;27&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;26&gt; or a pharmaceutically acceptable salt thereof, wherein m is selected from 0, 1, 2 and 3. 
     In another Embodiment &lt;28&gt;, the invention provides a compound of Embodiment &lt;27&gt; or a pharmaceutically acceptable salt thereof, wherein m is 0. 
     In another Embodiment &lt;29&gt;, the invention provides a compound of Embodiment &lt;27&gt; or a pharmaceutically acceptable salt thereof, wherein each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A1 R B1 , —OR A1 , —C(O)R A1 , —C(O)OR A1 , —OC(O)R A1 , —C(O)NR A1 R B1 , —NR A1 C(O)R B1 , —OC(O)NR A1 R B1 , —NR A1 C(O)OR B1 , —NR A1 C(O)NR A1 R B1 , —S(O) r R A1 , —S(O) 2 OR A1 , —OS(O) 2 R A1 , —NR A1 S(O) r R B1 , —S(O) r NR A1 R B1 , wherein alkyl, alkenyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;30&gt;, the invention provides a compound of Embodiment &lt;29&gt; or a pharmaceutically acceptable salt thereof, wherein each R 3  is independently selected from halogen, C 1-10  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl, CN, NO 2 , —NR A1 R B1 , —OR A1 , —C(O)R A1 , —C(O)OR A1 , —OC(O)R A1 , —C(O)NR A1 R B1 , —NR A1 C(O)R B1 , —S(O) r R A1 , and —S(O) r NR A1 R B1 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;31&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;30&gt; or a pharmaceutically acceptable salt thereof, wherein Z is selected from heterocyclyl, wherein heterocyclyl is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;32&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;30&gt; or a pharmaceutically acceptable salt thereof, wherein Z is selected from aryl and heteroaryl, wherein aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;33&gt;, the invention provides a compound of Embodiment &lt;32&gt; or a pharmaceutically acceptable salt thereof, wherein Z is selected from 5- to 12-membered aryl and heteroaryl, wherein aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;34&gt;, the invention provides a compound of Embodiment &lt;33&gt; or a pharmaceutically acceptable salt thereof, wherein Z is selected from phenyl and 6-membered heteroaryl, which is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;35&gt;, the invention provides a compound of Embodiment &lt;34&gt; or a pharmaceutically acceptable salt thereof, wherein R X  is selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR 1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t S(O) r R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1  and —(CR c1 R d1 ) t S(O) r NR a1 R b1 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y . 
     In another Embodiment &lt;36&gt;, the invention provides a compound of Embodiment &lt;35&gt; or a pharmaceutically acceptable salt thereof, wherein R X  is selected from C 1-10  alkyl, C 3-10  cycloalkyl, halogen, CN, NO 2 , NH 2 , OH and —OMe, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R Y . 
     In another Embodiment &lt;37&gt;, the invention provides a compound of any one of Embodiments &lt;31&gt;-&lt;36&gt; or a pharmaceutically acceptable salt thereof, wherein Z is selected from 
     
       
         
         
             
             
         
       
     
     In another Embodiment &lt;38&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;37&gt; or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;39&gt;, the invention provides a compound of Embodiment &lt;38&gt; or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from hydrogen, C 1-10  alkyl, wherein alkyl is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;40&gt;, the invention provides a compound of Embodiment &lt;39&gt; or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are H. 
     In another Embodiment &lt;41&gt;, the invention provides a compound of any one of Embodiments &lt;1&gt;-&lt;37&gt; or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  together with the carbon atom to which they are attached form a C 3-10  cycloalkyl, wherein cycloalkyl is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment &lt;42&gt;, the invention provides a compound selected from 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     and pharmaceutically acceptable salts thereof. 
     In another Embodiment &lt;43&gt;, the invention provides a pharmaceutical composition comprising a compound of any one of Embodiments &lt;1&gt;-&lt;42&gt; or a pharmaceutically acceptable salt thereof and at least one pharmaceutically acceptable carrier. 
     In another Embodiment &lt;44&gt;, the invention provides a method of treating, ameliorating or preventing a condition, which responds to inhibition of BTK, comprising administering to a subject in need of such treatment an effective amount of a compound of any one of Embodiments &lt;1&gt;-&lt;42&gt;, or a pharmaceutically acceptable salt thereof, or a pharmaceutical composition thereof, and optionally in combination with a second therapeutic agent. 
     In another Embodiment &lt;45&gt;, the invention provides a use of a compound of any one of Embodiments &lt;1&gt;-&lt;42&gt; or a pharmaceutically acceptable salt thereof in the preparation of a medicament for treating a cell-proliferative disorder. 
     Some embodiments can also be described as follows: 
     In another Embodiment [1], this invention provides to a compound of formula [I″]: 
     
       
         
         
             
             
         
       
     
     or a pharmaceutically acceptable salt thereof, wherein: 
        is a single bond or a double bond to maintain ring A and ring B being aromatic; 
     A 1  is selected from C and N; 
     A 2  is selected from CR X , C(O) and N; 
     A 3  is selected from CR 6  and NR 6 ; 
     A 4  selected from CR 7 , C(O), N and NR X R 5 ; 
     A 5  is selected from CR X , NR X  or absent; 
     A 6  is selected from N and O; 
     B 1  is selected from C and N; 
     B 2  is selected from C and N; 
     when A 4  and A 6  are N, B 2  is C, then A 2  is not N; 
     when A 5  is absent, R 5  and R 6  together with the atoms to which they are attached are not form a ring, then A 2  and A 3  are not N at the same time; 
     X is selected from CR X  and N; 
     Y is selected from CR X  and N; 
     Z is selected from aryl, heteroaryl and heterocyclyl, wherein aryl, heteroaryl and heterocyclyl are each unsubstituted or substituted with at least one substituent, independently selected from R X ; 
     R 1  is selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X1 ; 
     R 2  is selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X2 ; 
     or R 1  and R 2  together with the atom to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X1  groups; 
     each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(═NR E3 )R A3 , —C(═N—OR B3 )R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —C(═NR E3 )NR A3 R B3 , —NR A3 C(═NR E3 )R B3 , —OC(O)NR A3 R B3 , —NR A3 C(O)OR B3 , —NR A3 C(O)NR A3 R B3 , —NR A3 C(S)NR A3 R B3 , —NR A3 C(═NR E3 )NR A3 R B3 , —S(O) r R A3 , —S(O)(═NR E3 )R B3 , —N═S(O)R A3 R B3 , —S(O) 2 OR A3 , —OS(O) 2 R A3 , —NR A3 S(O) r R B3 , —NR A3 S(O)(═NR E3 )R B3 , —S(O) r NR A3 R B3 , —S(O)(═NR E3 )NR A3 R B3 , —NR A3 S(O) 2 NR A3 R B3 , —NR A3 S(O)(═NR E3 )NR A3 R B3 , —P(O)R A3 R B3  and —P(O)(OR A3 )(OR B3 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 ; 
     or any two of R 3  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X3  groups; 
     R 5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A5 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X5 ; 
     R 6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A6 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 ; 
     or R 5  and R 6  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2, 3 or 4 R 4  groups; 
     each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A4 R B4 , —OR A4 , —C(O)R A4 , —C(O)OR A4 , —OC(O)R A4 , —C(O)NR A4 R B4 , —NR A4 C(O)R B4 , and —S(O) r R A4 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 ; 
     or any two of R 4  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups; 
     R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A7 , —C(═NR E7 )R A7 , —C(═N—OR B7 )R A7 , —C(O)OR A7 , —OC(O)R A7 , —C(O)NR A7 R B7 , —NR A7 C(O)R B7 , —C(═NR E7 )NR A7 R B7 , —NR A7 C(═NR E7 )R B7 , —OC(O)NR A7 R B7 , —NR A7 C(O)OR B7 , —NR A7 C(O)NR A7 R B7 , —NR A7 C(S)NR A7 R B7 , —NR A7 C(═NR E7 )NR A7 R B7 , —S(O) r R A7 , —S(O)(═NR E7 )R B7 , —N═S(O)R A7 R B7 , —S(O) 2 OR A7 , —OS(O) 2 R A7 , —NR A7 S(O) r R B7 , —NR A7 S(O)(═NR E7 )R B7 , —S(O) r NR A7 R B7 , —S(O)(═NR E7 )NR A7 R B7 , —NR A7 S(O) 2 NR A7 R B7 , —NR A7 S(O)(═NR E7 )NR A7 R B7 , —P(O)R A7 R B7  and —P(O)(OR A7 )(OR B7 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 ; 
     or R 6  and R 7  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X6  groups; 
     each R A3  and R B3  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 ; 
     or “R A3  and R B3 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus and optionally substituted with 1, 2 or 3 R X3  groups; 
     each R A4  and R B4  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 ; 
     or each “R A4  and R B4 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups; 
     R A5  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X5 ; 
     R A6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 ; 
     each R A7  and R B7  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 ; 
     or each “R A7  and R B7 ” together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X7  groups; 
     each R E3  and R E7  are independently selected from hydrogen, C 1-10  alkyl, CN, NO 2 , —OR a1 , —SR a1 , —S(O) r R a1 , —C(O)R a1 , —C(O)OR a1 , —C(O)NR a1 R b1  and —S(O) r NR a1 R b1 ; 
     each R X , R X1 , R X2 , R X3 , R X4 , R X5 , R X6  and R X7  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR b1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(═NR e1 )R a1 , —(CR c1 R d1 ) t C(═N—OR b1 )R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t OC(O)R b1 , —(CR c1 R d1 ) t C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)R b1 , —(CR c1 R d1 ) t C(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(═NR e1 )R b1 , —(CR c1 R d1 ) t OC(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(O)OR b1 , —(CR c1 R d1 ) t NR a1 C(O)NR a1 R b1 , —(CR c1 R d1 ) t NR a1 C(S)NR a1 R b1 , —(CR c1 R′1) t NR a1 C(═NR e1 )NR a1 R b1 , —(CR c1 R′1) t S(O) r R b1 , —(CR c1 R′1) t S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t N═S(O)R a1 R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )R b1 , —(CR c1 R d1 ) t S(O) r NR a1 R b1 , —(CR c1 R d1 ) t S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O) 2 NR a1 R b1 , —(CR c1 R d1 ) t NR a1 S(O)(═NR e1 )NR a1 R b1 , —(CR c1 R d1 ) t P(O)R a1 R b1  and —(CR c1 R d1 ) t P(O)(OR a1 )(OR b1 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     each R a1  and each R b1  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R a1  and R b1  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R c1  and each R d1  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y ; 
     or R c1  and R d1  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1, 2 or 3 R Y  groups; 
     each R e1  is independently selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, CN, NO 2 , —OR a2 , —SR a2 , —S(O) r R a2 , —C(O)R a2 , —C(O)OR a2 , —S(O) r NR a2 R b2  and —C(O)NR a2 R b2 ; 
     each R Y  is independently selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , —(CR c2 R d2 ) t NR a2 R b2 , —(CR c2 R d2 ) t OR b2 , —(CR c2 R d2 ) t C(O)R a2 , —(CR c2 R d2 ) t C(═NR e2 )R a2 , —(CR c2 R d2 ) t C(═N—OR b2 )R a2 , —(CR c2 R 12 ) t C(O)OR b2 , —(CR c2 R d2 ) t OC(O)R b2 , —(CR c2 R d2 ) t C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)R b2 , —(CR c2 R d2 ) t C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )R b2 , —(CR c2 R d2 ) t OC(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(O)OR b2 , —(CR c2 R d2 ) t NR a2 C(O)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(S)NR a2 R b2 , —(CR c2 R d2 ) t NR a2 C(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t S(O) r R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t N═S(O)R a2 R b2 , —(CR c2 R d2 ) t S(O) 2 OR b2 , —(CR c2 R d2 ) t OS(O) 2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) r R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )R b2 , —(CR c2 R d2 ) t S(O) r NR a2 R b2 , —(CR c2 R d2 ) t S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O) 2 NR a2 R b2 , —(CR c2 R d2 ) t NR a2 S(O)(═NR e2 )NR a2 R b2 , —(CR c2 R d2 ) t P(O)R a2 R b2  and —(CR c2 R d2 ) t P(O)(OR a2 )(OR b2 ), wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from OH, CN, amino, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R a2  and each R b2  are independently selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R a2  and R b2  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 0, 1 or 2 additional heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  and each R d2  are independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, C 1-10  alkylamino, C 3-10  cycloalkylamino, di(C 1-10  alkyl)amino, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl and heteroaryl-C 1-4  alkyl, wherein alkyl, alkenyl, alkynyl, cycloalkyl, alkoxy, cycloalkoxy, alkylthio, cycloalkylthio, alkylamino, cycloalkylamino, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     or R e2  and R d2  together with the carbon atom(s) to which they are attached form a ring of 3 to 12 members containing 0, 1 or 2 heteroatoms independently selected from oxygen, sulfur and nitrogen, and optionally substituted with 1 or 2 substituents, independently selected from halogen, CN, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, OH, C 1-10  alkoxy, C 3-10  cycloalkoxy, C 1-10  alkylthio, C 3-10  cycloalkylthio, amino, C 1-10  alkylamino, C 3-10  cycloalkylamino and di(C 1-10  alkyl)amino; 
     each R e2  is independently selected from hydrogen, CN, NO 2 , C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, C 1-10  alkoxy, C 3-10  cycloalkoxy, —C(O)C 1-4  alkyl, —C(O)C 3-10  cycloalkyl, —C(O)OC 1-4  alkyl, —C(O)OC 3-10  cycloalkyl, —C(O)N(C 1-4  alkyl) 2 , —C(O)N(C 3-10  cycloalkyl) 2 , —S(O) 2 C 1-4  alkyl, —S(O) 2 C 3-10  cycloalkyl, —S(O) 2 N(C 1-4  alkyl) 2  and —S(O) 2 N(C 3-10  cycloalkyl) 2 ; 
     m is selected from 0, 1, 2, 3 and 4; 
     each r is independently selected from 0, 1 and 2; 
     each t is independently selected from 0, 1, 2, 3 and 4. 
     In another Embodiment [2], the invention provides a compound of Embodiment [1] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 5 , Rand R 7  are as defined in Formula [I″], n is selected from 0, 1, 2, 3 and 4; p is selected from 0, 1, 2, 3 and 4; wherein the   symbol indicates the point of attachment to the rest of the molecule. 
     In another Embodiment [3], the invention provides a compound of any one of Embodiments [1]-[2] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 5 , R 6  and R 7  are as defined in Formula [I″], n is selected from 0, 1, 2, 3 and 4; p is selected from 0, 1, 2, 3 and 4. 
     In another Embodiment [4], the invention provides a compound of Embodiment [3] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula [I″]. 
     In another Embodiment [5], the invention provides a compound of any one of Embodiments [1]-[2] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein each R 4 , R 6  and R 7  are as defined in Formula [I″], n is selected from 0, 1, 2, 3 and 4; p is selected from 0, 1, 2, 3 and 4. 
     In another Embodiment [6], the invention provides a compound of Embodiment [5] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  is as defined in Formula [I″]. 
     In another Embodiment [7], the invention provides a compound of any one of Embodiments [1]-[2] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula [I″]. 
     In another Embodiment [8], the invention provides a compound of Embodiment [7] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula [I″]. 
     In another Embodiment [9], the invention provides a compound of any one of Embodiments [1]-[2] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     wherein R 6  and R 7  are as defined in Formula [I″]. 
     In another Embodiment [10], the invention provides a compound of any one of Embodiments [1]-[9] or a pharmaceutically acceptable salt thereof, wherein each R 4  is independently selected from hydrogen, halogen, C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, —NR A4 R B4 , —OR A4 , —C(O)R A4 , —C(O)OR A4 , —OC(O)R A4 , —C(O)NR A4 R B4 , —NR A4 C(O)R B4 , and —S(O) r R A4 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X4 . 
     In another Embodiment [11], the invention provides a compound of any one of Embodiments [1]-[9] or a pharmaceutically acceptable salt thereof, wherein any two of R 4  together with the atom(s) to which they are attached form a C 3-10  cycloalkyl, which is unsubstituted or substituted with 1, 2 or 3 R X4  groups. 
     In another Embodiment [12], the invention provides a compound of any one of Embodiments [1]-[9] or a pharmaceutically acceptable salt thereof, wherein any two of R 4  together with the atom(s) to which they are attached form a heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X4  groups. 
     In another Embodiment [13], the invention provides a compound of any one of Embodiments [1]-[12] or a pharmaceutically acceptable salt thereof, wherein R 5  is selected from hydrogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A5 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from Rx. 
     In another Embodiment [14], the invention provides a compound of Embodiment [13] or a pharmaceutically acceptable salt thereof, wherein R 5  is H. 
     In another Embodiment [15], the invention provides a compound of any one of Embodiments [1]-[14] or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from hydrogen, C 1-10  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl and —C(O)R A6 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 . 
     In another Embodiment [16], the invention provides a compound of Embodiment [15] or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from C 1-8  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl and —C(O)R A6 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X6 . 
     In another Embodiment [17], the invention provides a compound of Embodiment [16] or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from methyl, ethyl, 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     In another Embodiment [18], the invention provides a compound of Embodiment [17] or a pharmaceutically acceptable salt thereof, wherein R 6  is selected from 
     
       
         
         
             
             
         
       
     
     In another Embodiment [19], the invention provides a compound of any one of Embodiments [1]-[18] or a pharmaceutically acceptable salt thereof, wherein R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A7 , —C(O)OR A7 , —OC(O)R A7 , —C(O)NR A7 R B7 , —NR A7 C(O)R B7 , —S(O) r R A7 , —S(O) 2 OR A7 , —OS(O) 2 R A7  and —NR A7 S(O) r R B7 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 . 
     In another Embodiment [20], the invention provides a compound of Embodiment [19] or a pharmaceutically acceptable salt thereof, wherein R 7  is selected from hydrogen, halogen, C 1-10  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl, CN, NO 2 , —NR A7 R B7 , —OR A7 , —C(O)R A1 , —C(O)OR A7 , —OC(O)R A7  and —C(O)NR A7 R B7 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X7 . 
     In another Embodiment [21], the invention provides a compound of Embodiment [20] or a pharmaceutically acceptable salt thereof, wherein R 7  is H. 
     In another Embodiment [22], the invention provides a compound of any one of Embodiments [1]-[14] or a pharmaceutically acceptable salt thereof, wherein R 6  and R 7  together with the atoms to which they are attached form a C 3-10  cycloalkyl or heterocyclic ring of 4 to 12 members containing 1, 2 or 3 heteroatoms independently selected from oxygen, sulfur, nitrogen and phosphorus, and optionally substituted with 1, 2 or 3 R X6  groups. 
     In another Embodiment [23], the invention provides a compound of any one of Embodiments [1]-[22] or a pharmaceutically acceptable salt thereof, wherein X is CH. 
     In another Embodiment [24], the invention provides a compound of any one of Embodiments [1]-[22] or a pharmaceutically acceptable salt thereof, wherein X is N. 
     In another Embodiment [25], the invention provides a compound of any one of Embodiments [1]-[22] or a pharmaceutically acceptable salt thereof, wherein Y is CH. 
     In another Embodiment [26], the invention provides a compound of any one of Embodiments [1]-[22] or a pharmaceutically acceptable salt thereof, wherein Y is N. 
     In another Embodiment [27], the invention provides a compound of any one of Embodiments [1]-[26] or a pharmaceutically acceptable salt thereof, wherein m is selected from 0, 1, 2 and 3. 
     In another Embodiment [28], the invention provides a compound of Embodiment [27] or a pharmaceutically acceptable salt thereof, wherein m is selected from 0, 1 and 2. 
     In another Embodiment [29], the invention provides a compound of Embodiment [27] or a pharmaceutically acceptable salt thereof, wherein each R 3  is independently selected from halogen, C 1-10  alkyl, C 2-10  alkenyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —OC(O)NR A3 R B3 , —NR A3 C(O)OR B3 , —NR A3 C(O)NR A3 R B3 , —S(O) r R A3 , —S(O) 2 OR A3 , —OS(O) 2 R A3 , —NR A3 S(O) r R B3  and —S(O) r NR A3 R B3 , wherein alkyl, alkenyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 . 
     In another Embodiment [30], the invention provides a compound of Embodiment [29] or a pharmaceutically acceptable salt thereof, wherein each R 3  is independently selected from halogen, C 1-10  alkyl, C 3-10  cycloalkyl, heterocyclyl, aryl, heteroaryl, CN, NO 2 , —NR A3 R B3 , —OR A3 , —C(O)R A3 , —C(O)OR A3 , —OC(O)R A3 , —C(O)NR A3 R B3 , —NR A3 C(O)R B3 , —S(O) r R A3 , and —S(O) r NR A3 R B3 , wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X3 . 
     In another Embodiment [31], the invention provides a compound of Embodiment [30] or a pharmaceutically acceptable salt thereof, wherein m is selected from 1 and 2, each R 3  is independently selected F. 
     In another Embodiment [32], the invention provides a compound of any one of Embodiments [1]-[31] or a pharmaceutically acceptable salt thereof, wherein the moiety 
     
       
         
         
             
             
         
       
     
     in Formula [I″] is selected from 
     
       
         
         
             
             
         
       
     
     In another Embodiment [33], the invention provides a compound of any one of Embodiments [1]-[32] or a pharmaceutically acceptable salt thereof, wherein Z is selected from heterocyclyl, wherein heterocyclyl is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment [34], the invention provides a compound of any one of Embodiments [1]-[32] or a pharmaceutically acceptable salt thereof, wherein Z is selected from aryl and heteroaryl, wherein aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment [35], the invention provides a compound of Embodiment [34] or a pharmaceutically acceptable salt thereof, wherein Z is selected from 5- to 12-membered aryl and heteroaryl, wherein aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment [36], the invention provides a compound of Embodiment [35] or a pharmaceutically acceptable salt thereof, wherein Z is selected from phenyl and 6-membered heteroaryl, which is unsubstituted or substituted with at least one substituent, independently selected from R X . 
     In another Embodiment [37], the invention provides a compound of Embodiment [36] or a pharmaceutically acceptable salt thereof, wherein R X  is selected from C 1-10  alkyl, C 2-10  alkenyl, C 2-10  alkynyl, C 3-10  cycloalkyl, C 3-10  cycloalkyl-C 1-4  alkyl, heterocyclyl, heterocyclyl-C 1-4  alkyl, aryl, aryl-C 1-4  alkyl, heteroaryl, heteroaryl-C 1-4  alkyl, halogen, CN, NO 2 , (CR c1 R d1 ) t NR a1 R b1 , —(CR c1 R d1 ) t OR b1 , —(CR c1 R d1 ) t C(O)R a1 , —(CR c1 R d1 ) t C(O)OR b1 , —(CR c1 R d1 ) t S(O) r R b1 , —(CR c1 R d1 ) t S(O) 2 OR b1 , —(CR c1 R d1 ) t OS(O) 2 R b1 , —(CR c1 R d1 ) t NR a1 S(O) r R b1  and —(CR c1 R d1 ) t S(O) r NR a1 R b1 , wherein alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are each unsubstituted or substituted with at least one substituent, independently selected from R Y . 
     In another Embodiment [38], the invention provides a compound of Embodiment [37] or a pharmaceutically acceptable salt thereof, wherein R X  is selected from C 1-10  alkyl, C 3-10  cycloalkyl, halogen, CN, NO 2 , NH 2 , OH, methoxy and ethoxy, wherein methoxy, ethoxy, alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R Y . 
     In another Embodiment [39], the invention provides a compound of any one of Embodiments [33]-[38] or a pharmaceutically acceptable salt thereof, wherein Z is selected 
     
       
         
         
             
             
         
       
     
     In another Embodiment [40], the invention provides a compound of any one of Embodiments [1]-[39] or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from hydrogen, C 1-10  alkyl and C 3-10  cycloalkyl, wherein alkyl and cycloalkyl are each unsubstituted or substituted with at least one substituent, independently selected from R X1 . 
     In another Embodiment [41], the invention provides a compound of Embodiment [40] or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from hydrogen and C 1-10  alkyl, wherein alkyl is unsubstituted or substituted with at least one substituent, independently selected from R X1 . 
     In another Embodiment [42], the invention provides a compound of Embodiment [41] or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  are independently selected from H and methyl. 
     In another Embodiment [43], the invention provides a compound of any one of Embodiments [1]-[39] or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  together with the atom to which they are attached form a C 3-10  cycloalkyl, wherein cycloalkyl is unsubstituted or substituted with at least one substituent, independently selected from R X1 . 
     In another Embodiment [44], the invention provides a compound of Embodiment [43] or a pharmaceutically acceptable salt thereof, wherein R 1  and R 2  together with the carbon atom to which they are attached form a cyclopropyl. 
     In another Embodiment [45], the invention provides a compound selected from 
     
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
       
         
         
             
             
         
       
     
     and pharmaceutically acceptable salts thereof. 
     In another Embodiment [46], the invention provides a pharmaceutical composition comprising a compound of any one of Embodiments [1]-[45] or a pharmaceutically acceptable salt thereof and at least one pharmaceutically acceptable carrier. 
     In another Embodiment [47], the invention provides a method of treating, ameliorating or preventing a condition, which responds to inhibition of BTK, comprising administering to a subject in need of such treatment an effective amount of a compound of any one of Embodiments [1]-[45], or a pharmaceutically acceptable salt thereof, or a pharmaceutical composition thereof, and optionally in combination with a second therapeutic agent. 
     In another Embodiment [48], the invention provides a use of a compound of any one of Embodiments [1]-[45] or a pharmaceutically acceptable salt thereof in the preparation of a medicament for treating a cell-proliferative disorder. 
     In an In another Embodiment [49], the invention provides a compound of Embodiment [48] or a pharmaceutically acceptable salt thereof, wherein the cell-proliferative disorder is B-cell proliferative disorder. 
     In another Embodiment [50], the invention provides a compound of Embodiment [49] or a pharmaceutically acceptable salt thereof, wherein the B-cell proliferative disorder is includes but not limited to, B-cell malignancies, B-cell chronic lymphocytic lymphoma, chronic lymphocytic leukemia, B-cell prolymphocytic leukemia, lymphoplasmacytic lymphoma, multiple sclerosis, small lymphocytic lymphoma, mantle cell lymphoma, B-cell non-Hodgkin&#39;s lymphoma, activated B-cell like diffuse large B-cell lymphoma, multiple myeloma, diffuse large B-cell lymphoma, follicular lymphoma, primary effusion lymphoma, burkitt lymphoma/leukemia, lymphomatoid granulomatosis, and plasmacytoma. 
     In yet another of its aspects, there is provided a kit comprising a compound disclosed herein, or a pharmaceutically acceptable salt thereof; and instructions which comprise one or more forms of information selected from the group consisting of indicating a disease state for which the composition is to be administered, storage information for the composition, dosing information and instructions regarding how to administer the composition. In one particular variation, the kit comprises the compound in a multiple dose form. 
     In still another of its aspects, there is provided an article of manufacture comprising a compound disclosed herein, or a pharmaceutically acceptable salt thereof; and packaging materials. In one variation, the packaging material comprises a container for housing the compound. In one particular variation, the container comprises a label indicating one or more members of the group consisting of a disease state for which the compound is to be administered, storage information, dosing information and/or instructions regarding how to administer the compound. In another variation, the article of manufacture comprises the compound in a multiple dose form. 
     In a further of its aspects, there is provided a therapeutic method comprising administering a compound disclosed herein, or a pharmaceutically acceptable salt thereof. 
     In another of its aspects, there is provided a method of inhibiting a BTK comprising contacting the BTK with a compound disclosed herein, or a pharmaceutically acceptable salt thereof. 
     In yet another of its aspects, there is provided a method of inhibiting a BTK comprising causing a compound disclosed herein, or a pharmaceutically acceptable salt thereof to be present in a subject in order to inhibit the BTK in vivo. 
     In a further of its aspects, there is provided a method of inhibiting BTK comprising administering a first compound to a subject that is converted in vivo to a second compound wherein the second compound inhibits the BTK in vivo, the second compound being a compound according to any one of the above embodiments and variations. 
     In another of its aspects, there is provided a method of treating a disease state for which a BTK possesses activity that contributes to the pathology and/or symptomology of the disease state, the method comprising causing a compound disclosed herein, or a pharmaceutically acceptable salt thereof to be present in a subject in a therapeutically effective amount for the disease state. 
     In a further of its aspects, there is provided a method of treating a disease state for which a BTK possesses activity that contributes to the pathology and/or symptomology of the disease state, the method comprising administering a first compound to a subject that is converted in vivo to a second compound wherein the second compound inhibits the BTK in vivo. It is noted that the compounds of the present invention may be the first or second compounds. 
     In one variation of each of the above methods the disease state is selected from the group consisting of cancerous hyperproliferative disorders (e.g., brain, lung, squamous cell, bladder, gastric, pancreatic, breast, head, neck, renal, kidney, ovarian, prostate, colorectal, epidermoid, esophageal, testicular, gynecological or thyroid cancer); non-cancerous hyperproliferative disorders (e.g., benign hyperplasia of the skin (e.g., psoriasis), restenosis, and benign prostatic hypertrophy (BPH)); pancreatitis; kidney disease; pain; preventing blastocyte implantation; treating diseases related to vasculogenesis or angiogenesis (e.g., tumor angiogenesis, acute and chronic inflammatory disease such as rheumatoid arthritis, atherosclerosis, inflammatory bowel disease, skin diseases such as psoriasis, excema, and scleroderma, diabetes, diabetic retinopathy, retinopathy of prematurity, age-related macular degeneration, hemangioma, glioma, melanoma, Kaposi&#39;s sarcoma and ovarian, breast, lung, pancreatic, prostate, colon and epidermoid cancer); asthma; neutrophil chemotaxis (e.g., reperfusion injury in myocardial infarction and stroke and inflammatory arthritis); septic shock; T-cell mediated diseases where immune suppression would be of value (e.g., the prevention of organ transplant rejection, graft versus host disease, lupus erythematosus, multiple sclerosis, and rheumatoid arthritis); atherosclerosis; inhibition of keratinocyte responses to growth factor cocktails; chronic obstructive pulmonary disease (COPD) and other diseases. 
     In another of its aspects, there is provided a method of treating a disease state for which a mutation in the BTK gene contributes to the pathology and/or symptomology of the disease state including, for example, melanomas, lung cancer, colon cancer and other tumor types. 
     In still another of its aspects, the present invention relates to the use of a compound of any of the above embodiments and variations as a medicament. In yet another of its aspects, the present invention relates to the use of a compound according to any one of the above embodiments and variations in the manufacture of a medicament for inhibiting a BTK. 
     In a further of its aspects, the present invention relates to the use of a compound according to any one of the above embodiments and variations in the manufacture of a medicament for treating a disease state for which a BTK possesses activity that contributes to the pathology and/or symptomology of the disease state. 
     Administration and Pharmaceutical Compositions 
     In general, compounds of the disclosure will be administered in therapeutically effective amounts via any of the usual and acceptable modes known in the art, either singly or in combination with one or more therapeutic agents. A therapeutically effective amount may vary widely depending on the severity of the disease, the age and relative health of the subject, the potency of the compound used and other factors known to those of ordinary skill in the art. For example, for the treatment of neoplastic diseases and immune system disorders, the required dosage will also vary depending on the mode of administration, the particular condition to be treated and the effect desired. 
     In general, satisfactory results are indicated to be obtained systemically at daily dosages of from about 0.001 to about 100 mg/kg per body weight, or particularly, from about 0.03 to 2.5 mg/kg per body weight. An indicated daily dosage in the larger mammal, e.g. humans, may be in the range from about 0.5 mg to about 2000 mg, or more particularly, from about 0.5 mg to about 1000 mg, conveniently administered, for example, in divided doses up to four times a day or in retard form. Suitable unit dosage forms for oral administration comprise from ca. 1 to 50 mg active ingredient. 
     Compounds of the disclosure may be administered as pharmaceutical compositions by any conventional route; for example, enterally, e.g., orally, e.g., in the form of tablets or capsules; parenterally, e.g., in the form of injectable solutions or suspensions; or topically, e.g., in the form of lotions, gels, ointments or creams, or in a nasal or suppository form. 
     Pharmaceutical compositions comprising a compound of the present disclosure in free form or in a pharmaceutically acceptable salt form in association with at least one pharmaceutically acceptable carrier or diluent may be manufactured in a conventional manner by mixing, granulating, coating, dissolving or lyophilizing processes. For example, pharmaceutical compositions comprising a compound of the disclosure in association with at least one pharmaceutical acceptable carrier or diluent may be manufactured in conventional manner by mixing with a pharmaceutically acceptable carrier or diluent. Unit dosage forms for oral administration contain, for example, from about 0.1 mg to about 500 mg of active substance. 
     In one embodiment, the pharmaceutical compositions are solutions of the active ingredient, including suspensions or dispersions, such as isotonic aqueous solutions. In the case of lyophilized compositions comprising the active ingredient alone or together with a carrier such as mannitol, dispersions or suspensions can be made up before use. The pharmaceutical compositions may be sterilized and/or contain adjuvants, such as preserving, stabilizing, wetting or emulsifying agents, solution promoters, salts for regulating the osmotic pressure and/or buffers. Suitable preservatives include but are not limited to antioxidants such as ascorbic acid, or microbicides, such as sorbic acid or benzoic acid. The solutions or suspensions may further comprise viscosity-increasing agents, including but not limited to, sodium carboxymethylcellulose, carboxymethylcellulose, dextran, polyvinylpyrrolidone, gelatins, or solubilizers, e.g. Tween 80 (polyoxyethylene (20) sorbitan monooleate). 
     Suspensions in oil may comprise as the oil component the vegetable, synthetic, or semi-synthetic oils customary for injection purposes. Examples include but are not limited to liquid fatty acid esters that contain as the acid component a long-chained fatty acid having 8-22 carbon atoms, or in some embodiments, 12-22 carbon atoms. Suitable liquid fatty acid esters include but are not limited to lauric acid, tridecylic acid, myristic acid, pentadecylic acid, palmitic acid, margaric acid, stearic acid, arachidic acid, behenic acid or corresponding unsaturated acids, for example oleic acid, elaidic acid, erucic acid, brassidic acid and linoleic acid, and if desired, may contain antioxidants, for example vitamin E, 3-carotene or 3,5-di-tert-butyl-hydroxytoluene. The alcohol component of these fatty acid esters may have six carbon atoms and may be monovalent or polyvalent, for example a mono-, di- or trivalent, alcohol. Suitable alcohol components include but are not limited to methanol, ethanol, propanol, butanol or pentanol or isomers thereof; glycol and glycerol. 
     Other suitable fatty acid esters include but are not limited ethyl-oleate, isopropyl myristate, isopropyl palmitate, LABRAFIL® M 2375, (polyoxyethylene glycerol), LABRAFIL® M 1944 CS (unsaturated polyglycolized glycerides prepared by alcoholysis of apricot kernel oil and comprising glycerides and polyethylene glycol ester), LABRASOL™ (saturated polyglycolized glycerides prepared by alcoholysis of TCM and comprising glycerides and polyethylene glycol ester; all available from GaKefosse, France), and/or MIGLYOL® 812 (triglyceride of saturated fatty acids of chain length C8 to C12 from Hüls AG, Germany), and vegetable oils such as cottonseed oil, almond oil, olive oil, castor oil, sesame oil, soybean oil, or groundnut oil. 
     Pharmaceutical compositions for oral administration may be obtained, for example, by combining the active ingredient with one or more solid carriers, and if desired, granulating a resulting mixture, and processing the mixture or granules by the inclusion of additional excipients, to form tablets or tablet cores. 
     Suitable carriers include but are not limited to fillers, such as sugars, for example lactose, saccharose, mannitol or sorbitol, cellulose preparations and/or calcium phosphates, for example tricalcium phosphate or calcium hydrogen phosphate, and also binders, such as starches, for example corn, wheat, rice or potato starch, methylcellulose, hydroxypropyl methylcellulose, sodium carboxymethylcellulose, and/or polyvinylpyrrolidone, and/or, if desired, disintegrators, such as the above-mentioned starches, carboxymethyl starch, crosslinked polyvinylpyrrolidone, alginic acid or a salt thereof, such as sodium alginate. Additional excipients include but are not limited to flow conditioners and lubricants, for example silicic acid, talc, stearic acid or salts thereof, such as magnesium or calcium stearate, and/or polyethylene glycol, or derivatives thereof. 
     Tablet cores may be provided with suitable, optionally enteric, coatings through the use of, inter alia, concentrated sugar solutions which may comprise gum arable, talc, polyvinylpyrrolidone, polyethylene glycol and/or titanium dioxide, or coating solutions in suitable organic solvents or solvent mixtures, or, for the preparation of enteric coatings, solutions of suitable cellulose preparations, such as cellulose acetate phthalate or hydroxypropyl methylcellulose phthalate. Dyes or pigments may be added to the tablets or tablet coatings, for example for identification purposes or to indicate different doses of active ingredient. 
     Pharmaceutical compositions for oral administration may also include hard capsules comprising gelatin or soft-sealed capsules comprising gelatin and a plasticizer, such as glycerol or sorbitol. The hard capsules may contain the active ingredient in the form of granules, for example in admixture with fillers, such as cornstarch, binders, and/or glidants, such as talc or magnesium stearate, and optionally stabilizers. In soft capsules, the active ingredient may be dissolved or suspended in suitable liquid excipients, such as fatty oils, paraffin oil or liquid polyethylene glycols or fatty acid esters of ethylene or propylene glycol, to which stabilizers and detergents, for example of the polyoxyethylene sorbitan fatty acid ester type, may also be added. 
     Pharmaceutical compositions suitable for rectal administration are, for example, suppositories comprising a combination of the active ingredient and a suppository base. Suitable suppository bases are, for example, natural or synthetic triglycerides, paraffin hydrocarbons, polyethylene glycols or higher alkanols. 
     Pharmaceutical compositions suitable for parenteral administration may comprise aqueous solutions of an active ingredient in water-soluble form, for example of a water-soluble salt, or aqueous injection suspensions that contain viscosity-increasing substances, for example sodium carboxymethylcellulose, sorbitol and/or dextran, and, if desired, stabilizers. The active ingredient, optionally together with excipients, can also be in the form of a lyophilizate and can be made into a solution before parenteral administration by the addition of suitable solvents. Solutions such as are used, for example, for parenteral administration can also be employed as infusion solutions. The manufacture of injectable preparations is usually carried out under sterile conditions, as is the filling, for example, into ampoules or vials, and the sealing of the containers. 
     The disclosure also provides for a pharmaceutical combination, e.g. a kit, comprising a) a first agent which is a compound of the disclosure as disclosed herein, in free form or in pharmaceutically acceptable salt form, and b) at least one co-agent. The kit can comprise instructions for its administration. 
     Combination Therapies 
     The compounds or pharmaceutical acceptable salts of the disclosure may be administered as the sole therapy, or together with other therapeutic agent or agents. 
     For example, the therapeutic effectiveness of one of the compounds described herein may be enhanced by administration of an adjuvant (i.e. by itself the adjuvant may only have minimal therapeutic benefit, but in combination with another therapeutic agent, the overall therapeutic benefit to the individual is enhanced). Or, by way of example only, the benefit experienced by an individual may be increased by administering one of the compounds described herein with another therapeutic agent that also has therapeutic benefit. By way of example only, in a treatment for gout involving administration of one of the compounds described herein, increased therapeutic benefit may result by also providing the individual with another therapeutic agent for gout. Or, by way of example only, if one of the side effects experienced by an individual upon receiving one of the compounds described herein is nausea, then it may be appropriate to administer an anti-nausea agent in combination with the compound. Or, the additional therapy or therapies include, but are not limited to physiotherapy, psychotherapy, radiation therapy, application of compresses to a diseased area, rest, altered diet, and the like. Regardless of the disease, disorder or condition being treated, the overall benefit experienced by the individual may be additive of the two therapies or the individual may experience a synergistic benefit. 
     In the instances where the compounds described herein are administered in combination with other therapeutic agents, the compounds described herein may be administered in the same pharmaceutical composition as other therapeutic agents, or because of different physical and chemical characteristics, be administered by a different route. For example, the compounds described herein may be administered orally to generate and maintain good blood levels thereof, while the other therapeutic agent may be administered intravenously. Thus the compounds described herein may be administered concurrently, sequentially or dosed separately to other therapeutic agents. 
    
    
     EXAMPLES 
     Various methods may be developed for synthesizing a compound of formula (I) or a pharmaceutically acceptable salt thereof. Representative methods for synthesizing a compound of formula (I) or a pharmaceutically acceptable salt thereof are provided in the Examples. It is noted, however, that a compound of formula (I) or a pharmaceutically acceptable salt thereof may also be synthesized by other synthetic routes that others may devise. 
     It will be readily recognized that certain compounds of formula (I) have atoms with linkages to other atoms that confer a particular stereochemistry to the compound (e.g., chiral centers). It is recognized that synthesis of a compound of formula (I) or a pharmaceutically acceptable salt thereof may result in the creation of mixtures of different stereoisomers (enantiomers, diastereomers). Unless a particular stereochemistry is specified, recitation of a compound is intended to encompass all of the different possible stereoisomers. 
     A compound of formula (I) can also be prepared as a pharmaceutically acceptable acid addition salt by, for example, reacting the free base form of the at least one compound with a pharmaceutically acceptable inorganic or organic acid. Alternatively, a pharmaceutically acceptable base addition salt of the at least one compound of formula (I) can be prepared by, for example, reacting the free acid form of the at least one compound with a pharmaceutically acceptable inorganic or organic base. Inorganic and organic acids and bases suitable for the preparation of the pharmaceutically acceptable salts of compounds of formula (I) are set forth in the definitions section of this Application. Alternatively, the salt forms of the compounds of formula (I) can be prepared using salts of the starting materials or intermediates. 
     The free acid or free base forms of the compounds of formula (I) can be prepared from the corresponding base addition salt or acid addition salt form. For example, a compound of formula (I) in an acid addition salt form can be converted to the corresponding free base thereof by treating with a suitable base (e.g., ammonium hydroxide solution, sodium hydroxide, and the like). A compound of formula (I) in a base addition salt form can be converted to the corresponding free acid thereof by, for example, treating with a suitable acid (e.g., hydrochloric acid, etc). 
     The N-oxides of a compound of formula (I) or a pharmaceutically acceptable salt thereof can be prepared by methods known to those of ordinary skill in the art. For example, N-oxides can be prepared by treating an unoxidized form of the compound of formula (I) with an oxidizing agent (e.g., trifluoroperacetic acid, permaleic acid, perbenzoic acid, peracetic acid, meta-chloroperoxybenzoic acid, or the like) in a suitable inert organic solvent (e.g., a halogenated hydrocarbon such as dichloromethane) at approximately 0 to 80° C. Alternatively, the N-oxides of the compounds of formula (I) can be prepared from the N-oxide of an appropriate starting material. 
     Compounds of formula (I) in an unoxidized form can be prepared from N-oxides of compounds of formula (I) by, for example, treating with a reducing agent (e.g., sulfur, sulfur dioxide, triphenyl phosphine, lithium borohydride, sodium borohydride, phosphorus trichloride, tribromide, and the like) in an suitable inert organic solvent (e.g., acetonitrile, ethanol, aqueous dioxane, and the like) at 0 to 80° C. 
     Protected derivatives of the compounds of formula (I) can be made by methods known to those of ordinary skill in the art. A detailed description of the techniques applicable to the creation of protecting groups and their removal can be found in T. W. Greene, Protecting Groups in Organic Synthesis, 3rd edition, John Wiley &amp; Sons, Inc. 1999. 
     As used herein the symbols and conventions used in these processes, schemes and examples are consistent with those used in the contemporary scientific literature, for example, the Journal of the American Chemical Society or the Journal of Biological Chemistry. Standard single-letter or three-letter abbreviations are generally used to designate amino acid residues, which are assumed to be in the L-configuration unless otherwise noted. Unless otherwise noted, all starting materials were obtained from commercial suppliers and used without further purification. For example, the following abbreviations may be used in the examples and throughout the specification: g (grams); mg (milligrams); L (liters); mL (milliliters); μL (microliters); psi (pounds per square inch); M (molar); mM (millimolar); i.v. (intravenous); Hz (Hertz); MHz (megahertz); mol (moles); mmol (millimoles); RT (room temperature); min (minutes); h (hours); mp (melting point); TLC (thin layer chromatography); Rt (retention time); RP (reverse phase); MeOH (methanol); i-PrOH (isopropanol); TEA (triethylamine); TFA (trifluoroacetic acid); TFAA (trifluoroacetic anhydride); THF (tetrahydrofuran); DMSO (dimethyl sulfoxide); EtOAc (ethyl acetate); DME (1,2-dimethoxyethane); DCM (dichloromethane); DCE (dichloroethane); DMF (N,N-dimethylformamide); DMPU (N,N′-dimethylpropyleneurea); CDI (1,1-carbonyldiimidazole); IBCF (isobutyl chloroformate); HOAc (acetic acid); HOSu (N-hydroxysuccinimide); HOBT (1-hydroxybenzotriazole); Et 2 O (diethyl ether); EDCI (1-(3-dimethylaminopropyl)-3-ethylcarbodiimide hydrochloride); BOC (tert-butyloxycarbonyl); FMOC (9-fluorenylmethoxycarbonyl); DCC (dicyclohexylcarbodiimide); CBZ (benzyloxycarbonyl); Ac (acetyl); atm (atmosphere); TMSE (2-(trimethylsilyl)ethyl); TMS (trimethylsilyl); TIPS (triisopropylsilyl); TBS (t-butyldimethylsilyl); DMAP (4-dimethylaminopyridine); Me (methyl); OMe (methoxy); Et (ethyl); tBu (tert-butyl); HPLC (high pressure liquid chromatography); BOP (bis(2-oxo-3-oxazolidinyl)phosphinic chloride); TBAF (tetra-n-butylammonium fluoride); m-CPBA (meta-chloroperbenzoic acid). For example, the following abbreviations in table 1 may be used in the examples and throughout the specification. 
     References to ether or Et 2 O are to diethyl ether; brine refers to a saturated aqueous solution of NaCl. Unless otherwise indicated, all temperatures are expressed in ° C. (degrees Centigrade). All reactions were conducted under an inert atmosphere at RT unless otherwise noted. 
       1 H NMR spectra were recorded on a Varian Mercury Plus 400. Chemical shifts are expressed in parts per million (ppm). Coupling constants are in units of hertz (Hz). Splitting patterns describe apparent multiplicities and are designated as s (singlet), d (doublet), t (triplet), q (quartet), m (multiplet) and br (broad). 
     Low-resolution mass spectra (MS) and compound purity data were acquired on a Shimadzu LC/MS single quadrupole system equipped with electrospray ionization (ESI) source, UV detector (220 and 254 nm), and evaporative light scattering detector (ELSD). Thin-layer chromatography was performed on 0.25 mm Superchemgroup silica gel plates (60F-254), visualized with UV light, 5% ethanolic phosphomolybdic acid, ninhydrin, or p-anisaldehyde solution. Flash column chromatography was performed on silica gel (200-300 mesh, Branch of Qingdao Haiyang Chemical Co., Ltd). 
     Synthetic Schemes 
     A compound of formula I or pharmaceutically acceptable salt thereof may be synthesized according to a variety of reaction schemes. Some illustrative schemes are provided below and in the examples. Other reaction schemes could be readily devised by those skilled in the art in view of the present disclosure. 
     In the reactions described hereinafter it may be necessary to protect reactive functional groups, for example hydroxy, amino, imino, thio or carboxy groups, where these are desired in the final product, to avoid their unwanted participation in the reactions. Conventional protecting groups may be used in accordance with standard practice, for examples see T. W. Greene and P. G. M. Wuts in “Protective Groups in Organic Chemistry” John Wiley and Sons, 1991. 
     Synthetic methods for preparing the compounds of the present disclosure are illustrated in the following Schemes and Examples. Starting materials are commercially available or may be made according to procedures known in the art or as illustrated herein. 
     The intermediates shown in the following schemes are either known in the literature or may be prepared by a variety of methods familiar to those skilled in the art. 
     As shown in the Scheme 1, the compounds of formula I can be synthesized from bromide II and potassium trifluoroborate salt III, which are either known in the literature or may be prepared by a variety of methods familiar to those skilled in the art. Coupling of brominated II with potassium trifluoroborate salt III via a suzuki reaction leads to compounds of formula I. 
     
       
         
         
             
             
         
       
     
     As an illustration of the preparation of intermediates of formula II, a preparation of compound IIa is illustrated in Scheme 2. Starting from aldehyde IIa-A and substituted aromatic amines IIa-B, which are either commercially available or known in the literature, the intermediate IIa-C was prepared by treating of IIa-A with IIa-B in the presence of p-toluenesulfonic acid. IIa-C was treated with t-BuONa in a solvent such as THF to give intramolecular cyclization product IIa-D. The amino group of IIa-D can be converted into an iodine group via a sandmeyer reaction with reagents such as CH 2 I 2  and tert-butyl nitrite to give IIa-E. The iodinate IIa-E can be transformed into ester IIa-F by carbonylation with CO(gas). Heating of IIa-F with N 2 H 4 .H 2 O leads to intermediate IIa. 
     
       
         
         
             
             
         
       
     
     As a further illustration of the preparation of intermediates of formula II, a preparation of compound IIb is illustrated in Scheme 3. The reaction of the diazonium salt derived from aromatic amines IIb-B with aldehyde IIa-A in the presence of a base such as NaOAc in a solvent such as EtOH provides phenylhydrazone IIb-C. The 4-aminopyrazole IIb-D can be readily prepared from phenylhydrazone IIb-C through a sequence of alkylation of phenylhydrazone with bromoaectonitrile and intramolecular cyclization effected by a base such as t-BuONa. The compound IIb can be prepared from amine IIb-D in the same way as IIa from amine IIa-D shown in the scheme 2. 
     
       
         
         
             
             
         
       
     
     A preparation of compound IIc is illustrated in Scheme 4 as a further illustration of the preparation of intermediates of formula II. Starting from the commercially available aliphatic amine IIc-A, Boc-hydrazine IIc-C can be prepared by treatment with IIc-B in the presence of inorganic bases such as NaHCO 3  (sat.). Deprotection of the Boc group in IIc-C with TFA/DCM gives IIc-D which is reacted with IIc-E in the presence of organic bases such as TEA to provide amino-pyrazole IIc-F. IIc-F can be converted into IIc through the sequence shown in Scheme 2. 
     
       
         
         
             
             
         
       
     
     In some cases the order of carrying out the foregoing reaction schemes may be varied to facilitate the reaction or to avoid unwanted reaction products. The following examples are provided so that the invention might be more fully understood. These examples are illustrative only and should not be construed as limiting the invention in any way. 
     Example 1 
     N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrrolo[2,3-d]pyridazin-1-yl)benzyl)-2-methoxybenzamide (1) 
     
       
         
         
             
             
         
       
     
     2-cyclopentyl-3-oxopropanenitrile (1a) 
     The title compound 2-cyclopentyl-3-oxopropanenitrile (1a) was prepared according to the method described in WO2015/74135. 
     2-((4-bromophenyl)amino)acetonitrile (1b) 
     The title compound 2-((4-bromophenyl)amino)acetonitrile (1b) was prepared according to the method described in WO2005/40110. 
     3-((4-bromophenyl)(cyanomethyl)amino)-2-cyclopentylacrylonitrile (1c) 
     To a solution of 2-cyclopentyl-3-oxopropanenitrile (1a) (140 mg, 1.0 mmol) and 2-((4-bromophenyl)amino)acetonitrile (1b) (210 mg, 1.0 mmol) in toluene (10 ml) was added p-Toluenesulfonic acid (17.2 mg, 0.1 mmol), the mixture was stirred at 110° C. for 12 h. The reaction mixture was filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (10:1˜5:1) to give 3-((4-bromophenyl)(cyanomethyl)amino)-2-cyclopentylacrylonitrile (1c). MS-ESI (m/z): 330 332[M+1] + . 
     3-amino-1-(4-bromophenyl)-4-cyclopentyl-1H-pyrrole-2-carbonitrile (1d) 
     To the suspension of t-BuONa (53 mg, 0.55 mmol) in THF (5 mL) was added a solution of 3-((4-bromophenyl)(cyanomethyl)amino)-2-cyclopentylacrylonitrile (1c) (120 mg, 0.36 mmol) in THF (5 mL) at 0° C. The mixture was heated to 25° C. and stirred for 2 h. The reaction was quenched with water and extracted with EtOAc (2×50 mL). The extracts were washed with water and brine, dried over Na 2 SO 4 , filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (10:1) to give 3-amino-1-(4-bromophenyl)-4-cyclopentyl-1H-pyrrole-2-carbonitrile (1d). MS-ESI (m/z): 330, 332 (1:1) [M+1] + . 
     1-(4-bromophenyl)-4-cyclopentyl-3-iodo-1H-pyrrole-2-carbonitrile (1e) 
     To a solution of 3-amino-1-(4-bromophenyl)-4-cyclopentyl-1H-pyrrole-2-carbonitrile (1d) (200 mg, 0.6 mmol) and CH 2 I 2  (586 mg, 2.18 mmol) in CH 3 CN (5 mL) was added tert-butyl nitrite (156 mg, 1.5 mmol) dropwise at 35° C. The mixture was heated to 65° C. and stirred for 0.5 h. The reaction was concentrated and purified by column chromatography on silica gel eluting with PE/EtOAc (15:1) to give 1-(4-bromophenyl)-4-cyclopentyl-3-iodo-1H-pyrrole-2-carbonitrile (1e). MS-ESI (m/z): 441, 443 (1:1) [M+1] + . 
     Methyl-1-(4-bromophenyl)-2-cyano-4-cyclopentyl-1H-pyrrole-3-carboxylate (1f) 
     To a solution of 1-(4-bromophenyl)-4-cyclopentyl-3-iodo-1H-pyrrole-2-carbonitrile (1e) (200 mg, 0.23 mmol) in MeOH was added Pd(dppf)Cl 2  (100 mg, 0.11 mmol) and TEA (70 mg, 0.69 mmol) at RT. The mixture was stirred at 50° C. under CO (15 psi) for 1 h. The mixture was filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (10:1) to give methyl 1-(4-bromophenyl)-2-cyano-4-cyclopentyl-1H-pyrrole-3-carboxylate (if). MS-ESI (m/z): 373, 375 (1:1) [M+1] + . 
     7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (12) 
     To a solution of methyl 1-(4-bromophenyl)-2-cyano-4-cyclopentyl-1H-pyrrole-3-carboxylate (if) (50 mg, 0.13 mmol) in EtOH (2 mL) was added NH 2 NH 2 .H 2 O (1 ml). The mixture was stirred at 90° C. for 12 h. The reaction mixture was concentrated and purified by column chromatography on silica gel eluting with DCM/MeOH (50:1) to give 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g). MS-ESI (m/z): 373, 375 (1:1) [M+1] + . 
     Potassium trifluoro [(2-methoxybenzamido)methyl] borate (1h) 
     The title compound potassium trifluoro [(2-methoxybenzamido)methyl]borate (1h) was prepared according to the method described in WO2017/103611. 
     N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrrolo[2,3-d]pyridazin-1-yl)benzyl)-2-methoxybenzamide (1) 
     To a solution of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) (15 mg, 0.040 mmol), potassium trifluoro [(2-methoxybenzamido)methyl] borate (1h) (11 mg, 0.040 mmol) and Cs 2 CO 3  (40 mg, 0.52 mol) in THF (2 mL) and H 2 O (0.2 mL) was added Pd(OAc) 2  (2 mg, 0.008 mmol) and Xantphos (9 mg, 0.016 mmol). The mixture was stirred at 80° C. for 1 h. The mixture was diluted with water and extracted with DCM/MeOH (10:1, 2×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4 , filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (15:1) to give N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrrolo[2,3-d]pyridazin-1-yl)benzyl)-2-methoxybenzamide (1). MS-ESI (m/z): 458 [M+1] + . 
     Example 2 
     N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrazolo[3,4-d]pyridazin-1-yl)benzyl)-2-methoxybenzamide (2) 
     
       
         
         
             
             
         
       
     
     (E)-N-(4-bromophenyl)cyclopentanecarbohydrazonoyl cyanide (2a) 
     To a solution of 4-bromoaniline (1.72 g, 10.0 mmol) in HCl (6 N, 15 ml) was added NaNO 2  (2.00 g, 30.0 mmol) protions at −10° C., the mixture was stirred at RT for 1 h. Then the mixture was added a solution of 2-cyclopentyl-3-oxopropanenitrile (1a) (2.00 g, 14.6 mmol) and NaOAc (16.0 g, 195 mmol) in EtOH (160 ml). The mixture was stirred at −10° C. for 1 h. The reaction was quenched with H 2 O, extracted with EtOAc (2×50 mL). The extracts were washed with water and brine, dried over Na 2 SO 4 , filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (20:1˜10:1) to give (E)-N-(4-bromophenyl)cyclopentanecarbohydrazonoyl cyanide (2a). MS-ESI (m/z): 292, 294 (1:1) [M+1] + . 
     4-amino-1-(4-bromophenyl)-3-cyclopentyl-1H-pyrazole-5-carbonitrile (2b) 
     To a solution of (E)-N-(4-bromophenyl)cyclopentanecarbohydrazonoyl cyanide (2a) (1.2 g, 4.1 mmol) and 2-bromoacetonitrile (4.9 g, 41 mmol) in t-BuOH (80 mL) was added t-BuONa (3.9 g, 41 mmol) at 0° C. The mixture was warmed to 25° C. and stirred for 2 h. The reaction was quenched with water, extracted with EtOAc (2×50 mL). The extracts were washed with water and brine, dried over Na 2 SO 4 , filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (10:1) to give 4-amino-1-(4-bromophenyl)-3-cyclopentyl-1H-pyrazole-5-carbonitrile (2b). MS-ESI (m/z): 331, 333 (1:1) [M+1] + . 
     1-(4-bromophenyl)-3-cyclopentyl-4-iodo-1H-pyrazole-5-carbonitrile (2c) 
     To a solution of 4-amino-1-(4-bromophenyl)-3-cyclopentyl-1H-pyrazole-5-carbonitrile (2b) (200 mg, 0.600 mmol) and CH 2 I 2  (586 mg, 2.18 mmol) in CH 3 CN (5 mL) was added tert-butyl nitrite (156 mg, 1.50 mmol) dropwise at 35° C. The mixture was heated to 65° C. and stirred for 0.5 h. The reaction was concentrated and purified by column chromatography on silica gel eluting with PE/EtOAc (10:1) to give 1-(4-bromophenyl)-3-cyclopentyl-4-iodo-1H-pyrazole-5-carbonitrile (2c). MS-ESI (m/z): 442, 444 (1:1) [M+1] + . 
     Butyl-1-(4-bromophenyl)-5-cyano-3-cyclopentyl-1H-pyrazole-4-carboxylate (2d) 
     To a solution of 1-(4-bromophenyl)-3-cyclopentyl-4-iodo-1H-pyrazole-5-carbonitrile (2c) (80 mg, 0.18 mmol) in BuOH was added Pd(dppf)Cl 2  (80 mg, 0.11 mmol) and TEA (58 mg, 0.57 mmol) at RT. The mixture was stirred at 100° C. under CO (15 psi) for 2 h. The mixture was filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (20:1) to give butyl-1-(4-bromophenyl)-5-cyano-3-cyclopentyl-1H-pyrazole-4-carboxylate (2d)._MS-ESI (m/z): 416, 418 (1:1) [M+1] + . 
     7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrazolo[3,4-d]pyridazin-4-one (2e) 
     Butyl-1-(4-bromophenyl)-5-cyano-3-cyclopentyl-1H-pyrazole-4-carboxylate (2d) (40 mg, 0.1 mmol) in EtOH (2 mL) was added NH 2 NH 2 .H 2 O (1 ml). The mixture was stirred at 90° C. for 12 h. The reaction mixture was concentrated and purified by column chromatography on silica gel eluting with DCM/MeOH (20:1) to give 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrazolo[3,4-d]pyridazin-4-one (2e). MS-ESI (m/z): 374, 376 (1:1) [M+1] + . 
     N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrazolo[3,4-d]pyridazin-1-yl)benzyl)-2-methoxybenzamide (2) 
     The title compound N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrazolo[3,4-d]pyridazin-1-yl)benzyl)-2-methoxybenzamide (2) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) with 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrazolo[3,4-d]pyridazin-4-one (2e). MS-ESI (m/z): 459 [M+1] + . 
     Example 3 
     N-(4-(7-amino-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3) 
     
       
         
         
             
             
         
       
     
     cyclopentyl(3-fluoro-2-methoxypyridin-4-yl)methanol (3a) 
     To a solution of 3-fluoro-2-methoxypyridine (3.00 g, 23.6 mmol) in THF (60 ml) at −70° C. was added LDA (2.0 M in THF, 18.0 ml, 36.0 mmol) dropwise. The resulting mixture was stirred at −70° C. for 1 h. And then a solution of cyclopentanecarbaldehyde (3.00 ml, 28.3 mmol) in THF (5 ml) was added to the mixture dropwise. The mixture was warmed to RT and stirred at RT for overnight. The mixture was diluted with water and extracted with EA (2×100 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (10:1) to give cyclopentyl(3-fluoro-2-methoxypyridin-4-yl)methanol (3a). MS-ESI (m/z): 226 [M+1] + . 
     cyclopentyl(3-fluoro-2-methoxypyridin-4-yl)methanone (3b) 
     To a solution of cyclopentyl(3-fluoro-2-methoxypyridin-4-yl)methanol (3a) (5.60 g, 24.7 mmol) in MeCN (60 ml) was added DMP (15.8 g, 37.2 mmol). The resulting mixture was stirred at RT for 1 h. The mixture was diluted with water and extracted with EA (2×100 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (30:1) to give cyclopentyl(3-fluoro-2-methoxypyridin-4-yl)methanone (3b). MS-ESI (m/z): 224 [M+1] + . 
     3-cyclopentyl-7-methoxy-1H-pyrazolo[3,4-c]pyridine (3c) 
     A mixture of cyclopentyl(3-fluoro-2-methoxypyridin-4-yl)methanone (3b) (4.70 g, 21.0 mmol) and hydrazine hydrate (15 ml) in EtOH (10 mL) and dioxane (50 ml) was stirred at 95° C. for 1 h. After being cooled to RT, the mixture was concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (5:1) to give 3-cyclopentyl-7-methoxy-1H-pyrazolo[3,4-c]pyridine (3c). MS-ESI (m/z): 218 [M+1] + . 
     1-(4-bromophenyl)-3-cyclopentyl-7-methoxy-1H-pyrazolo[3,4-c]pyridine (3d) 
     A mixture of 3-cyclopentyl-7-methoxy-1H-pyrazolo[3,4-c]pyridine (3c) (640 mg, 2.94 mmol), (4-bromophenyl)boronic acid (1.18 g, 5.87 mmol), Cu(OAc) 2  (801 mg, 4.40 mmol) and pyridine (464 mg, 5.87 mmol) in DMF (30 ml) was stirred at 40° C. for overnight. The mixture was diluted with water and extracted with EA (2×100 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (20:1) to give 1-(4-bromophenyl)-3-cyclopentyl-7-methoxy-1H-pyrazolo[3,4-c]pyridine (3d). MS-ESI (m/z): 372, 374 (1:1) [M+1] + . 
     1-(4-bromophenyl)-3-cyclopentyl-1,6-dihydro-7H-pyrazolo[3,4-c]pyridin-7-one (3e) 
     A mixture of 1-(4-bromophenyl)-3-cyclopentyl-7-methoxy-1H-pyrazolo[3,4-c]pyridine (3d) (610 mg, 1.64 mmol), NaI (492 mg, 3.28 mmol) and chlorotrimethylsilane (1.10 ml, 8.20 mmol) in MeCN (40 ml) was stirred at 60° C. 1 h. The mixture was diluted with water and extracted with EA (3×100 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (2:1) to give 1-(4-bromophenyl)-3-cyclopentyl-1,6-dihydro-7H-pyrazolo[3,4-c]pyridin-7-one (3e). MS-ESI (m/z): 358, 360 (1:1) [M+1] + . 
     1-(4-bromophenyl)-7-chloro-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridine (3f) 
     A mixture of 1-(4-bromophenyl)-3-cyclopentyl-1,6-dihydro-7H-pyrazolo[3,4-c]pyridin-7-one (3e) (530 mg, 1.48 mmol) and N,N-dimethylaniline (2 drops) in POCl 3  (10 ml) was stirred at 100° C. for 1 h. The mixture was concentrated. The residue was diluted with EA and washed with water, sat. NaHCO 3  and brine, dried over Na 2 SO 4  and concentrated to give 1-(4-bromophenyl)-7-chloro-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridine (3f). MS-ESI (m/z): 376, 378 (1:1) [M+1] + . 
     N-(4-(7-chloro-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (32) 
     The title compound N-(4-(7-chloro-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3g) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) with 1-(4-bromophenyl)-7-chloro-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridine (3f). MS-ESI (m/z): 461, 463 (3:1) [M+1] + . 
     N-(4-(3-cyclopentyl-7-((diphenylmethylene)amino)-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3h) 
     A mixture of N-(4-(7-chloro-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3g) (30 mg, 0.065 mmol), diphenylmethanimine (24 mg, 0.13 mmol), Pd 2 (dba) 3  (12 mg, 0.013 mmol), Xantphos (15 mg, 0.026 mmol) and Cs 2 CO 3  (63.0 mg, 0.195 mmol) in dioxane (2 ml) was stirred at 90° C. under N 2  for overnight. After being cooled to RT, the mixture was diluted with water and extracted with EA (3×100 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (3:2) to give N-(4-(3-cyclopentyl-7-((diphenylmethylene)amino)-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3h). MS-ESI (m/z): 606 [M+1] + . 
     N-(4-(7-amino-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-meth oxybenzamide (3) 
     A mixture of N-(4-(3-cyclopentyl-7-((diphenylmethylene)amino)-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3h) (10.0 mg, 0.0165 mmol and 2 N HCl (0.5 ml) in THF (1 ml) was stirred at RT under N 2  for overnight. The mixture was adjusted to PH=9 with K 2 CO 3  (aq) and extracted with EA (3×10 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (15:1) to give N-(4-(7-amino-3-cyclopentyl-1H-pyrazolo[3,4-c]pyridin-1-yl)benzyl)-2-methoxybenzamide (3). MS-ESI (m/z): 442 [M+1] + . 
     Example 4 
     N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7-dihydro-1H-pyrrolo[2,3-d]pyridazin-3-yl)benzyl)-2-methoxybenzamide (4) 
     
       
         
         
             
             
         
       
     
     ethyl 3-cyano-1-cyclopentyl-1H-pyrrole-2-carboxylate (4a) 
     The title compound ethyl 3-cyano-1-cyclopentyl-1H-pyrrole-2-carboxylate (4a) was prepared according to the method described in U.S. Pat. No. 7,071,199. 
     4-amino-1-cyclopentyl-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4b) 
     A mixture of ethyl 3-cyano-1-cyclopentyl-1H-pyrrole-2-carboxylate (4a) (480 mg, 2.07 mmol) and hydrazine hydrate (2 ml) in EtOH (10 mL) was stirred at 80° C. for overnight. After being cooled to RT, The mixture was diluted with water and extracted with EA (5×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (30:1) to give 4-amino-1-cyclopentyl-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4b). MS-ESI (m/z): 219 [M+1] + . 
     4-amino-1-cyclopentyl-3-iodo-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4c) 
     A mixture of 4-amino-1-cyclopentyl-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4b) (300 mg, 1.37 mmol) and NIS (339 mg, 1.51 mmol) in AcOH (5 mL) was stirred at RT for overnight. The mixture was diluted with water. The solid was collected and purified by column chromatography on silica gel eluting with DCM/MeOH (40:1) to give 4-amino-1-cyclopentyl-3-iodo-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4c). MS-ESI (m/z): 345 [M+1] + . 
     4-amino-3-(4-bromophenyl)-1-cyclopentyl-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4d) 
     A mixture of 4-amino-1-cyclopentyl-3-iodo-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4c) (150 mg, 0.435 mmol), (4-bromophenyl)boronic acid (78.0 mg, 0.392 mmol), Pd(dppf)Cl 2  (32.0 mg, 0.0435 mmol) and K 2 CO 3  (120.0 mg, 0.870 mmol) in dioxane (4 mL) and H 2 O (1 ml) was stirred at 70° C. under N 2  for 2 h. After being cooled to RT, the mixture was diluted with water and extracted with DCM (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (50:1) to give 4-amino-3-(4-bromophenyl)-1-cyclopentyl-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4d). MS-ESI (m/z): 373, 375 (1:1) [M+1] + . 
     N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7-dihydro-1H-pyrrolo[2,3-d]pyridazin-3-yl)benzyl)-2-methoxybenzamide (4) 
     The title compound N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7-dihydro-1H-pyrrolo[2,3-d]pyridazin-3-yl)benzyl)-2-methoxybenzamide (7) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) with 4-amino-3-(4-bromophenyl)-1-cyclopentyl-1,6-dihydro-7H-pyrrolo[2,3-d]pyridazin-7-one (4d). MS-ESI (m/z): 458 [M+1] + . 
     Example 5 
     N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7-dihydro-1H-pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-2-methoxybenzamide (5) 
     
       
         
         
             
             
         
       
     
     ethyl 3-(4-bromophenyl)-1H-pyrazole-5-carboxylate (5a) 
     The title compound ethyl 3-(4-bromophenyl)-1H-pyrazole-5-carboxylate (5a) was prepared according to the method described in  Chinese Journal of Chemistry,  2011, 2039-2048. 
     ethyl 3-(4-bromophenyl)-4-iodo-1H-pyrazole-5-carboxylate (5b) 
     To a solution of ethyl 3-(4-bromophenyl)-1H-pyrazole-5-carboxylate (5a) (290 mg, 1.00 mmol) and NIS (270 mg, 1.20 mol) in MeCN (10 mL) was added CAN (55 mg, 0.10 mmol) at RT. The mixture was stirred at 90° C. for 4 h. The mixture was diluted with water and extracted with EtOAc (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4 , filtered and concentrated. The residue was dispersed in DCM and stirred for 1 h. The solid was collected and dried to give ethyl 3-(4-bromophenyl)-4-iodo-1H-pyrazole-5-carboxylate (5b). MS-ESI (m/z): 421, 423 (1:1) [M+1] + . 
     Ethyl-3-(4-bromophenyl)-1-cyclopentyl-4-iodo-1H-pyrazole-5-carboxylate (5c) 
     To a solution of ethyl 3-(4-bromophenyl)-4-iodo-1H-pyrazole-5-carboxylate (5b) (421 mg, 1.00 mmol), cyclopentanol (86 mg, 1.0 mmol) and PPh 3  (314 mg, 1.20 mmol) in THF (5 mL) was added DIAD (244 mg, 1.20 mmol) at 0° C. dropwise. The mixture was stirred at 25° C. under N 2  for 5 h. The mixture was diluted with water and extracted with EtOAc (2×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (10:1) to give ethyl 3-(4-bromophenyl)-1-cyclopentyl-4-iodo-1H-pyrazole-5-carboxylate (5c). MS-ESI (m/z): 489, 491 (1:1) [M+1] + . 
     Ethyl-3-(4-bromophenyl)-4-cyano-1-cyclopentyl-1H-pyrazole-5-carboxylate (5d) 
     A mixture of ethyl 3-(4-bromophenyl)-1-cyclopentyl-4-iodo-1H-pyrazole-5-carboxylate (5c) (160 mg, 0.327 mmol), CuCN (44.0 mg, 0.491 mmol) Pd(dppf)Cl 2  (24.0 mg, 0.0327 mmol) and Pd 2 (dba) 3  (30.0 mg, 0.0327 mmol) in DMF (2 mL) was stirred at 100° C. under N 2  for 7 h. After being cooled to RT, the mixture was diluted with water and extracted with EA (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (20:1) to give ethyl 3-(4-bromophenyl)-4-cyano-1-cyclopentyl-1H-pyrazole-5-carboxylate (5d). MS-ESI (m/z): 388, 390 (1:1) [M+1] + . 
     4-amino-3-(4-bromophenyl)-1-cyclopentyl-1,6-dihydro-7H-pyrazolo[3,4-d]pyridazin-7-one (5e) 
     A solution of ethyl 3-(4-bromophenyl)-4-cyano-1-cyclopentyl-1H-pyrazole-5-carboxylate (5d) (67.0 mg, 0.173 mmol) and hydrazine hydrate (1 ml) in EtOH (3 mL) was stirred at 80° C. for 9 h. After being cooled to RT, the mixture was diluted with water and extracted with EA (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (50:1) to give 4-amino-3-(4-bromophenyl)-1-cyclopentyl-1,6-dihydro-7H-pyrazolo[3,4-d]pyridazin-7-one (5e). MS-ESI (m/z): 374, 376 (1:1) [M+1] + . 
     N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7-dihydro-1H-pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-2-methoxybenzamide (5) 
     The title compound N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7-dihydro-1H-pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-2-methoxybenzamide (5) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) with 4-amino-3-(4-bromophenyl)-1-cyclopentyl-1,6-dihydro-7H-pyrazolo [3,4-d]pyridazin-7-one (5e). MS-ESI (m/z): 459 [M+1] + . 
     Example 6 
     N-(4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)benzyl)-2-methoxybenzamide (6) 
     
       
         
         
             
             
         
       
     
     3-amino-6-(aminomethyl)-1,2,4-triazin-5(4H)-one hydrochloride (6a) 
     The title compound 3-amino-6-(aminomethyl)-1,2,4-triazin-5(4H)-one hydrochloride (6a) was prepared according to the method described in WO2016/6975. 
     2,5-dioxopyrrolidin-1-yl cyclopentanecarboxylate (6b) 
     The title compound 2,5-dioxopyrrolidin-1-yl cyclopentanecarboxylate (6b) was prepared according to the method described in  J. Med. Chem.  1993, 115, 925-938. 
     N-((3-amino-5-oxo-4,5-dihydro-1,2,4-triazin-6-yl)methyl)cyclopentanecarboxamide (6c) 
     To a solution of 3-amino-6-(aminomethyl)-1,2,4-triazin-5(4H)-one hydrochloride (6a) (450 mg, 2.12 mmol) and 2,5-dioxopyrrolidin-1-yl cyclopentanecarboxylate (6b) (447 mg, 2.12 mmol) in CH 3 CN (20 ml) and THF (10 ml) was added NaHCO 3  (356 mg, 4.24 mmol), the mixture was stirred at RT for 12 h. The reaction was diluted with water, extracted with EtOAc (2×50 mL). The extracts were washed with brine, dried over Na 2 SO 4 , filtered and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EtOAc (4:1˜2:1) to give N-((3-amino-5-oxo-4,5-dihydro-1,2,4-triazin-6-yl)methyl) cyclopentanecarboxamide (6c). MS-ESI (m/z): 238 [M+1] + . 
     2-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6d) 
     To the solution of N-((3-amino-5-oxo-4,5-dihydro-1,2,4-triazin-6-yl)methyl) cyclopentanecarboxamide (6c) (120 mg, 0.510 mmol) in DCE (10 mL) was added POCl 3  (770 mg, 5.10 mmol) at RT. The mixture was warmed up to 70° C. and stirred for 2 h. The reaction was quenched with H 2 O and adjust pH &gt;8 with sat. Na 2 CO 3 , extracted with DCM: i-PrOH (3:1, 2×30 mL). The extracts were dried over Na 2 SO 4  and concentrated to give 2-amino-7-cyclopentylimidazo [5,1-f][1,2,4]triazin-4(3H)-one (6d). MS-ESI (m/z): 220 [M+1] + . 
     2-amino-7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6e) 
     To a solution of 2-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6d) (150 mg, 0.680 mmol) in CH 3 CN (5 mL) was added NIS (170 mg, 0.750 mmol) at 40° C. The mixture was stirred for 2 h. The reaction was diluted with water, extracted with EtOAc (2×50 mL). The extracts were washed with brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (40:1) to give 2-amino-7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6e). MS-ESI (m/z): 346 [M+1] + . 
     7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6f) 
     To a solution of 2-amino-7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6e) (160 mg, 0.440 mmol) in THF (4 ml) was added tert-butyl nitrite (90 mg, 0.88 mmol) dropwise at RT. The mixture was stirred for 3 h. The reaction was quenched with water, extracted with EtOAc (2×30 mL). The extracts were washed with brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (10:1) to give 7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6f). MS-ESI (m/z): 331 [M+1] + . 
     7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4-amine (62) 
     To the suspension of 1,2,4-triazole (166 mg, 0.240 mmol) and pyridine (0.8 ml) was added POCl 3  (123 mg, 0.8 mmol) dropwise at 0° C. and stirred for 0.5 h. The solution of 7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4(3H)-one (6f) (130 mg, 0.400 mmol) in pyridine (0.8 ml) was added to the mixture dropwise. Then the mixture was stirred at RT for 2 h. The mixture was cooled to −10° C. and 7 N NH 3 ./MeOH (0.8 ml) was added, and then the mixture was warmed up to RT and stirred for 0.5 h. The reaction was quenched with HCl (0.1 N), extracted with EtOAc (2×30 mL). The extracts were washed with HCl (0.1 N), sat. NaHCO 3 , dried over Na 2 SO 4  and concentrated to give 7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4-amine (6g). MS-ESI (m/z): 330 [M+1] + . 
     4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)phenol (6h) 
     A mixture of 7-cyclopentyl-5-iodoimidazo[5,1-f][1,2,4]triazin-4-amine (6g) (70 mg, 0.21 mmol), (4-hydroxyphenyl)boronic acid (44 mg, 0.32 mmol), Pd(dppf)Cl 2  (16 mg, 0.021 mmol) and K 2 CO 3  (60 mg, 0.42 mmol) in dioxane (4 mL) and H 2 O (1 ml) was stirred at 90° C. under N 2  for 2 h. After being cooled to RT, the mixture was diluted with water and extracted with EtOAc (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (50:1) to give 4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)phenol (6h). MS-ESI (m/z): 296 [M+1] + . 
     4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)phenyl trifluoromethanesulfonate (6i) 
     To a mixture of 4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)phenol (6h) (90 mg, 0.21 mmol) and TEA (86 mg, 0.84 mmol) in DCM (4 mL) was added trifluoromethanesulfonic anhydride (90 mg, 0.32 mmol) at 0° C. dropwise. The mixture was stirred at 25° C. for overnight. The mixture was diluted with water and extracted with EtOAc (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (100:1) to give 4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)phenyl trifluoromethanesulfonate (6i). MS-ESI (m/z): 428 [M+1] + . 
     N-(4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)benzyl)-2-meth oxybenzamide (6) 
     The title compound N-(4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)benzyl)-2-methoxybenzamide (6) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) with 4-(4-amino-7-cyclopentylimidazo[5,1-f][1,2,4]triazin-5-yl)phenyl trifluoromethanesulfonate (6i). MS-ESI (m/z): 443 [M+1] + . 
     Example 7 
     N-(4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)benzyl)-2-methoxybenzamide (7) 
     
       
         
         
             
             
         
       
     
     4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)phenol (7a) 
     The title compound 4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)phenol (7a) was prepared according to the method described in WO2015/74138. 
     4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)phenyl trifluoromethanesulfonate (7b) 
     To a mixture of 4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)phenol (7a) (120 mg, 0.250 mmol) and pyridine (40 mg, 0.50 mmol) in DCM (10 mL) was added trifluoromethanesulfonic anhydride (71 mg, 0.25 mmol) at 0° C. dropwise. The mixture was stirred at 25° C. for overnight. The mixture was diluted with water and extracted with EA (3×20 mL). The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (100:1) to give 4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)phenyl trifluoromethanesulfonate (7b). MS-ESI (m/z): 427 [M+1] + . 
     N-(4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)benzyl)-2-methoxybenzamide (7) 
     The title compound N-(4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)benzyl)-2-methoxybenzamide (7) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) with 4-(8-amino-3-cyclopentylimidazo[1,5-a]pyrazin-1-yl)phenyl trifluoromethanesulfonate (7b). MS-ESI (m/z): 442 [M+1] + . 
     Example 8 
     N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrrolo[2,3-d]pyridazin-1-yl)benzyl)-5-fluoro-2-methoxybenzamide (8) 
     
       
         
         
             
             
         
       
     
     potassium trifluoro((5-fluoro-2-methoxybenzamido)methyl)borate (8a) 
     The title compound potassium trifluoro((5-fluoro-2-methoxybenzamido)-methyl)borate (8a) was prepared according to the method described in WO2017/103611. 
     N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrrolo[2,3-d]pyridazin-1-yl)benzyl)-5-fluoro-2-methoxybenzamide (8) 
     The title compound N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5-dihydro-1H-pyrrolo[2,3-d]pyridazin-1-yl)benzyl)-5-fluoro-2-methoxybenzamide (8) was prepared according to the synthetic method of 1 by replacing of potassium trifluoro [(2-methoxybenzamido)methyl] borate (1h) with potassium trifluoro((5-fluoro-2-methoxybenzamido)-methyl)borate (8a). MS-ESI (m/z): 476 [M+1] + . 
     Example 9 
     N-(4-(6-amino-9-cyclopentyl-8-oxo-8,9-dihydro-7H-purin-7-yl)benzyl)-2-methoxybenzamide (9) 
     
       
         
         
             
             
         
       
     
     N,N-dibenzyl-6-chloro-5-nitropyrimidin-4-amine (9a) 
     To a solution of 4,6-dichloro-5-nitropyrimidine (3.00 g, 15.5 mmol) in DCM (30 mL) was added Et 3 N (4.3 mL) and dibenzylamine (3.2 g, 16 mmol) at 0° C. dropwise. The mixture was stirred at 0° C. for 1.5 h. The mixture was quenched with water and extracted with DCM. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with PE/EA (10:1˜8:1) to give N,N-dibenzyl-6-chloro-5-nitropyrimidin-4-amine (9a). MS-ESI (m/z): 355 [M+1] + . 
     N 4 ,N 4 -dibenzyl-N 6 -cyclopentyl-5-nitropyrimidine-4,6-diamine (9b) 
     The mixture of N,N-dibenzyl-6-chloro-5-nitropyrimidin-4-amine (9a) (934 mg, 2.64 mmol) and cyclopentanamine (0.52 mL, 5.82 mmol) in dioxane was stirred at 50° C. for 1.5 h. The mixture was cooled to RT and concentrated. The residue was extracted with EtOAc. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue purified by column chromatography on silica gel eluting with PE/EtOAc (10:1) to give N 4 ,N 4 -dibenzyl-N 6 -cyclopentyl-5-nitropyrimidine-4,6-diamine (9b). MS-ESI (m/z): 404 [M+1] + . 
     N 4 ,N 4 -dibenzyl-N 6 -cyclopentylpyrimidine-4,5,6-triamine (9c) 
     The mixture of N 4 ,N 4 -dibenzyl-N 6 -cyclopentyl-5-nitropyrimidine-4,6-diamine (9b) (1.57 g, 3.90 mmol), Fe (2.2 g, 39 mmol) and NH 4 Cl (4.2 g, 78 mmol) in MeOH/H 2 O (80/16 mL) was stirred at 50° C. for overnight. The mixture was filtered and concentrated. The residue was extracted with EtOAc. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated to give N 4 ,N 4 -dibenzyl-N 6 -cyclopentylpyrimidine-4,5,6-triamine (9c). MS-ESI (m/z): 374 [M+1] + . 
     9-cyclopentyl-6-(dibenzylamino)-7,9-dihydro-8H-purin-8-one (9d) 
     The mixture of N 4 ,N 4 -dibenzyl-N 6 -cyclopentylpyrimidine-4,5,6-triamine (9c) (1.00 g, 2.68 mmol) and CDI (1.73 g, 10.7 mmol) in THF (40 mL) was stirred at 75° C. for overnight. The mixture was cooled to RT and concentrated. The residue was extracted with EtOAc. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue purified by column chromatography on silica gel eluting with PE/EtOAc (5:1˜3:1) to give 9-cyclopentyl-6-(dibenzylamino)-7,9-dihydro-8H-purin-8-one (9d). MS-ESI (m/z): 400 [M+1] + . 
     6-amino-9-cyclopentyl-7,9-dihydro-8H-purin-8-one (9e) 
     The mixture of 9-cyclopentyl-6-(dibenzylamino)-7,9-dihydro-8H-purin-8-one (9d) (400 mg, 1.00 mmol), Pd(OH) 2 /C (20%, 400 mg) and HOAc (0.2 mL) in EtOH (40 mL) was stirred at 60° C. under H 2  (1 atm) for overnight. The mixture was cooled to RT and filtered. The filtrate was extracted with EtOAc. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue purified by column chromatography on silica gel eluting with DCM/MeOH (100:1˜15:1) to give 6-amino-9-cyclopentyl-7,9-dihydro-8H-purin-8-one (9e). MS-ESI (m/z): 220 [M+1] + . 
     (4-((2-methoxybenzamido)methyl)phenyl)boronic acid (9f) 
     The title compound (4-((2-methoxybenzamido)methyl)phenyl)boronic acid (9f) was prepared according to the method described in WO2017/046604. 
     N-(4-(6-amino-9-cyclopentyl-8-oxo-8,9-dihydro-7H-purin-7-yl)benzyl)-2-methoxybenzamide (9) 
     A mixture of 6-amino-9-cyclopentyl-7,9-dihydro-8H-purin-8-one (9e) (40 mg, 0.18 mmol), (4-((2-methoxybenzamido)methyl)phenyl)boronic acid (9f) (205 mg, 0.72 mmol), Cu(OAc) 2  (67 mg, 0.36 mmol) and pyridine (57 mg, 0.36 mmol) in DMF (3 ml) was stirred at RT for overnight. The mixture was diluted with water and extracted with EA. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue was purified by column chromatography on silica gel eluting with DCM/MeOH (40:1) to give N-(4-(6-amino-9-cyclopentyl-8-oxo-8,9-dihydro-7H-purin-7-yl)benzyl)-2-methoxybenzamide (9). MS-ESI (m/z): 459 [M+1] +   
     Example 10 
     4-amino-3-cyclopentyl-1-(4-((5-fluoro-2-methoxybenzamido)methyl)phenyl)-1H-pyrazole-5-carboxamide (10) 
     
       
         
         
             
             
         
       
     
     N-(4-(4-amino-5-cyano-3-cyclopentyl-1H-pyrazol-1-yl)benzyl)-5-fluoro-2-methoxybenzamide (10a) 
     The title compound N-(4-(4-amino-5-cyano-3-cyclopentyl-1H-pyrazol-1-yl)benzyl)-5-fluoro-2-methoxybenzamide (10a) was prepared according to the synthetic method of 1 by replacing of 7-amino-1-(4-bromophenyl)-3-cyclopentyl-1,5-dihydro-4H-pyrrolo[2,3-d]pyridazin-4-one (1g) and potassium trifluoro [(2-methoxybenzamido)methyl] borate (1h) with 4-amino-1-(4-bromophenyl)-3-cyclopentyl-1H-pyrazole-5-carbonitrile (2b) and potassium trifluoro((5-fluoro-2-methoxybenzamido)-methyl)borate (8a). MS-ESI (m/z): 434 [M+1] + . 
     4-amino-3-cyclopentyl-1-(4-((5-fluoro-2-methoxybenzamido)methyl)phenyl)-1H-pyrazole-5-carboxamide (10) 
     The mixture of N-(4-(4-amino-5-cyano-3-cyclopentyl-1H-pyrazol-1-yl)benzyl)-5-fluoro-2-methoxybenzamide (10a) (8.00 mg, 0.0185 mmol) and H 2 SO 4  (47 mg, 0.185 mmol) in TFA (84 mg, 0.74 mmol) was stirred at 50° C. for 4.5 h. The mixture was diluted with ice-water, adjusted to PH &gt;8 with Na 2 CO 3  and extracted with EtOAc. The extracts were washed with water and brine, dried over Na 2 SO 4  and concentrated. The residue purified by PTLC eluting with DCM/MeOH (20:1) to give 4-amino-3-cyclopentyl-1-(4-((5-fluoro-2-methoxybenzamido)methyl)phenyl)-1H-pyrazole-5-carboxamide (10). MS-ESI (m/z): 452 [M+1] + . 
     Following essentially the same procedures described for Examples 1-10, Examples 11-120 listed in Table 1 were prepared from the appropriate starting materials which are commercially available or known in the literature. The structures and names of Examples 11-120 are given in Table 1. 
     
       
         
           
               
               
               
               
             
               
                 TABLE 1 
               
               
                   
               
               
                 EXAMPLE 
                 Structure 
                 Name 
                 DATA 
               
               
                   
               
             
            
               
                   
               
            
           
           
               
               
               
               
            
               
                 11 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 12 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-cyclopentylimidazo [5,1-f][1,2,4]triazin-5-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 461 [M + 1] +   
               
               
                   
               
               
                 13 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(8-amino-3-cyclopentylimidazo [l,5-a]pyrazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 460 [M + 1] +   
               
               
                   
               
               
                 14 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclopentyl-1H-pyrazolo [3,4-c]pyridin-1-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 460 [M + 1] +   
               
               
                   
               
               
                 15 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(6-amino-9-cyclopentyl-8-oxo- 8,9-dihydro-7H-purin-7-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 16 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclopentyl-4-oxo-4, 5-dihydro-1H-pyrazolo[3,4-d]pyridazin- 1-yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 17 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 476 [M + 1] +   
               
               
                   
               
               
                 18 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-cyclopentyl-5H-pyrrolo [3,2-d]pyrimidin-5-yl)benzyl)-5-flu oro-2-methoxybenzamide 
                 MS-ESI (m/z): 460 [M + 1] +   
               
               
                   
               
               
                 19 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-cyclopentyl-7H-pyrrolo [2,3-d]pyrimidin-5-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 460 [M + 1] +   
               
               
                   
               
               
                 20 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-cyclopentylimidazo [5,1-f][1,2,4]triazin-5-yl)benzyl)-3- fluorobenzamide 
                 MS-ESI (m/z): 431 [M + 1] +   
               
               
                   
               
               
                 21 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-cyclopentylpyrrolo [2,1-f][1,2,4]triazin-5-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 460 [M + 1] +   
               
               
                   
               
               
                 22 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-2-oxo- 1,2-dihydro-3H-imidazo[4,5-c]pyridin-3- yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 476 [M + 1] +   
               
               
                   
               
               
                 23 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 4-amino-1-(4-((5-fluoro-2- methoxybenzamido)methyl)phenyl)- 3-(3,3,3-trifluoroprop-1-en-2- yl)-1H-pyrazole-5-carboxamide 
                 MS-ESI (m/z): 478 [M + 1] +   
               
               
                   
               
               
                 24 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 4-amino-1-(4-((5-fluoro-2- methoxybenzamido)methyl)phenyl)- 3-(1,1,1-trifluoropropan-2-yl)-1H- pyrazole-5-carboxamide 
                 MS-ESI (m/z): 480 [M + 1] +   
               
               
                   
               
               
                 25 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 4-amino-1-(4-((5-fluoro-2- methoxybenzamido)methyl)phenyl)- 3-(1,1,1-trifluoro-2-hydroxypropan- 2-yl)-1H-pyrazole-5-carboxamide 
                 MS-ESI (m/z): 496 [M + 1] +   
               
               
                   
               
               
                 26 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)benzyl)-2-(difluoromethoxy)-5- fluorobenzamide 
                 MS-ESI (m/z): 512 [M + 1] +   
               
               
                   
               
               
                 27 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclohexyl-4-oxo-4,5- dihydro-1H-pyrrolo[2,3-d]pyridazin-1- yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 490 [M + 1] +   
               
               
                   
               
               
                 28 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(1-amino-6-cyclopentyl-4-oxo-3, 4-dihydroimidazo[1,5-d][1,2,4]triazin- 8-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 29 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(1-(4-(4-amino-1-cyclopentyl-7-oxo- 6,7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)phenyl)cyclopropyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 502 [M + 1] +   
               
               
                   
               
               
                 30 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)-2-fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 494 [M + 1] +   
               
               
                   
               
               
                 31 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)-3-fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 494 [M + 1] +   
               
               
                   
               
               
                 32 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (S)-N-(1-(4-(4-amino-1-cyclopentyl-7- oxo-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-3-yl)phenyl)ethyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 490 [M + 1] +   
               
               
                   
               
               
                 33 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(1-(4-(4-amino-1-cyclopentyl-7- oxo-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-3-yl)phenyl)ethyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 490 [M + 1] +   
               
               
                   
               
               
                 34 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopropyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 448 [M + 1] +   
               
               
                   
               
               
                 35 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclohexyl-7-oxo-6,7- dihydro-1H-pyrrolo[2,3-d]pyridazin-3- yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 490 [M + 1] +   
               
               
                   
               
               
                 36 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclobutyl-7-oxo-6,7- dihydro-1H-pyrrolo[2,3-d]pyridazin-3- yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 462 [M + 1] +   
               
               
                   
               
               
                 37 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-oxo-1-(tetrahydro-2H- pyran-4-yl)-6,7-dihydro-1H-pyrrolo [2,3-d]pyridazin-3-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 492 [M + 1] +   
               
               
                   
               
               
                 38 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(2-hydroxy-2-methyl cyclopentyl)-7-oxo-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 506 [M + 1] +   
               
               
                   
               
               
                 39 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-oxo-1-(1,1,1-trifluor opropan-2-yl)-6,7-dihydro-1H-pyrrolo [2,3-d]pyridazin-3-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 504 [M + 1] +   
               
               
                   
               
               
                 40 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-oxo-1-(1,1,1- trifluoropropan-2-yl)-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 505 [M + 1] +   
               
               
                   
               
               
                 40a 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (S)-N-(4-(4-amino-7-oxo-1-(1,1,1- trifluoropropan-2-yl)-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 505 [M + 1] +   
               
               
                   
               
               
                 40b 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-7-oxo-1-(1,1,1- trifluoropropan-2-yl)-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 505 [M + 1] +   
               
               
                   
               
               
                 41 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-4-oxo-3-(1,1,1- trifluoropropan-2-yl)-4,5-dihydro-1H- pyrazolo[3,4-d]pyridazin-1-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 505 [M + 1] +   
               
               
                   
               
               
                 42 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)-2,6-difluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 512 [M + 1] +   
               
               
                   
               
               
                 43 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-((6-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)-5-fluoropyridin-3-yl)methyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 44 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-((5-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)-3-fluoropyridin-2-yl)methyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 45 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-((5-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)pyridin-2-yl)methyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 46 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-(but-2-ynoyl) pyrrolidin-3-yl)-7-oxo-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 543 [M + 1] +   
               
               
                   
               
               
                 47 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(1-(1-acetylpyrrolidin-3-yl)-4- amino-7-oxo-6,7-dihydro-1H-pyrrolo [2,3-d]pyridazin-3-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 519 [M + 1] +   
               
               
                   
               
               
                 48 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-(cyclopropane carbonyl)pyrrolidin-3-yl)-7-oxo-6,7- dihydro-1H-pyrrolo[2,3-d]pyridazin-3-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 545 [M + 1] +   
               
               
                   
               
               
                 49 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 methyl (R)-3-(4-amino-3-(4-((5-fluoro-2- methoxybenzamido)methyl)phenyl)-7-oxo- 6,7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 1-yl)pyrrolidine-1-carboxylate 
                 MS-ESI (m/z): 535 [M + 1] +   
               
               
                   
               
               
                 50 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-(methylsulfonyl) pyrrolidin-3-yl)-7-oxo-6,7-dihydro- 1H-pyrrolo[2,3-d]pyridazin-3-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 555 [M + 1] +   
               
               
                   
               
               
                 51 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-methylpyrrolidin- 3-yl)-7-oxo-6,7-dihydro-1H-pyrrolo [2,3-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 491 [M + 1] +   
               
               
                   
               
               
                 52 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-((5-(4-amino-7-oxo-1-(1,1,1- trifluoropropan-2-yl)-6,7-dihydro- 1H-pyrrolo[2,3-d]pyridazin-3-yl)pyridin- 2-yl)methyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 505 [M + 1] +   
               
               
                   
               
               
                 53 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-oxo-1-(1,1,1- trifluoropropan-2-yl)-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)-2- fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 522 [M + 1] +   
               
               
                   
               
               
                 54 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(3,3-difluorocyclobutyl)- 7-oxo-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 498 [M + 1] +   
               
               
                   
               
               
                 55 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-((5-(4-amino-1-(3,3-difluorocyclobutyl)- 7-oxo-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-3-yl)pyridm-2-yl(methyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 499 [M + 1] +   
               
               
                   
               
               
                 56 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(3,3-difluorocyclobutyl)- 7-oxo-6,7-dihydro-1H-pyrrolo[2,3- d]pyridazin-3-yl)-2-fluorobenzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 516 [M + 1] +   
               
               
                   
               
               
                 57 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-((1R,2S)-2- fluorocyclopropyl)-7-oxo-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 466 [M + 1] +   
               
               
                   
               
               
                 58 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-((5-(4-amino-1-((1R,2S)-2- fluorocyclopropyl)-7-oxo-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)pyridin-2-yl) methyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 467 [M + 1] +   
               
               
                   
               
               
                 59 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-((1R,2S)-2- fluorocyclopropyl)-7-oxo-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)-2- fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 484 [M + 1] +   
               
               
                   
               
               
                 60 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclopentyl-2,4-dioxo- 2,3,4,5-tetrahydro-1H-imidazo[4,5-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 493 [M + 1] +   
               
               
                   
               
               
                 61 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7- dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)benzyl)-5-fluoro-2- methoxynicotinamide 
                 MS-ESI (m/z): 478 [M + 1] +   
               
               
                   
               
               
                 62 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6,7- dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)-2-fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 63 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)-3-fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 64 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (S)-N-(4-(4-amino-1-(2,2- difluorocyclopentyl)-7-oxo-6,7-dihydro- 1H-pyrazolo[3,4-d]pyridazin-3-yl) benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 513 [M + 1] +   
               
               
                   
               
               
                 65 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclobutyl-7-oxo-6,7- dihydro-1H-pyrazolo[3,4-d]pyridazin-3- yl)benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 463 [M + 1] +   
               
               
                   
               
               
                 66 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(tert-butyl)-7-oxo-6,7- dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 465 [M + 1] +   
               
               
                   
               
               
                 67 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(sec-butyl)-7-oxo-6,7- dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 465 [M + 1] +   
               
               
                   
               
               
                 68 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-isopropyl-7-oxo-6,7- dihydro-1H-pyrazolo[3,4-d]pyridazin- 3-yl)benzyl)-5-fluoro-2-methoxybenza mide 
                 MS-ESI (m/z): 451 [M + 1] +   
               
               
                   
               
               
                 69 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(3-methylbutan-2-yl)- 7-oxo-6,7-dihydro-1H-pyrazolo[3,4-d] pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 479 [M + 1] +   
               
               
                   
               
               
                 70 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(3,3-dimethylbutan-2- yl)-7-oxo-6,7-dihydro-1H-pyrazolo[3, 4-d]pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 493 [M + 1] +   
               
               
                   
               
               
                 71 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)benzyl)-5-fluoro-2- methoxynicotinamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 72 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(2,2- difluorocyclopentyl)-7-oxo-6,7-dihydro- 1H-pyrazolo[3,4-d]pyridazin-3-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 513 [M + 1] +   
               
               
                   
               
               
                 73 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1-methylcyclobutyl)- 7-oxo-6,7-dihydro-1H-pyrazolo[3,4-d] pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 74 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1-methylcyclopropyl)- 7-oxo-6,7-dihydro-1H-pyrazolo[3,4- d]pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 463 [M + 1] +   
               
               
                   
               
               
                 75 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1-fluoropropan-2-yl)- 7-oxo-6,7-dihydro-1H-pyrazolo[3,4- d]pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 469 [M + 1] +   
               
               
                   
               
               
                 76 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1,1-difluoropropan- 2-yl)-7-oxo-6,7-dihydro-1H-pyrazolo [3,4-d]pyridazin-3-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 487 [M + 1] +   
               
               
                   
               
               
                 77a 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-cyclopropylethyl)- 7-oxo-6,7-dihydro-1H-pyrazolo[3, 4-d]pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 77b 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (S)-N-(4-(4-amino-1-(1-cyclopropylethyl)- 7-oxo-6,7-dihydro-1H-pyrazolo[3, 4-d]pyridazin-3-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 78 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-oxo-1-(1,1,1-trifluoro- 3-hydroxypropan-2-yl)-6,7-dihydro- 1H-pyrazolo[3,4-d]pyridazin-3-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 521 [M + 1] +   
               
               
                   
               
               
                 79 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-cyclopentyl-7-oxo-6, 7-dihydro-1H-pyrrolo[2,3-d]pyridazin- 3-yl)benzyl)-4,5-difluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 494 [M + 1] +   
               
               
                   
               
               
                 80 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-((1S,2S)-2- fluorocyclopentyl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 81 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-((1S,2R)-2- fluorocyclopentyl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 82 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1-(fluoromethyl) cyclopropyl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 481 [M + 1] +   
               
               
                   
               
               
                 83 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1-fluoro-2- methylpropan-2-yl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 483 [M + 1] +   
               
               
                   
               
               
                 84 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1-(difluoromethyl) cyclopropyl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 499 [M + 1] +   
               
               
                   
               
               
                 85 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-(1,1-difluoro-2- methylpropan-2-yl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 501 [M + 1] +   
               
               
                   
               
               
                 86 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-4-oxo-3-(tetrahydrofuran- 2-yl)-4,5-dihydro-1H-pyrazolo[3,4- d]pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 479 [M + 1] +   
               
               
                   
               
               
                 87 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-7-oxo-1-(1- (trifluoromethyl) cyclopropyl)-6,7-dihydro-1H-pyrazolo [3,4-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 517 [M + 1] +   
               
               
                   
               
               
                 88 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-cyclopropyl-2- fluoroethyl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 89 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-cyclopropyl-2, 2-difluoroethyl)-7-oxo-6,7-dihydro-1H- pyrazolo[3,4-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 513 [M + 1] +   
               
               
                   
               
               
                 90 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(2,2- difluorocyclopentyl)- 4-oxo-4,5-dihydro-1H-pyrazolo [3,4-d]pyridazin-1-yl)benzyl)-5-fluoro- 2-methoxybenzamide 
                 MS-ESI (m/z): 513 [M + 1] +   
               
               
                   
               
               
                 91 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(1-methoxyethyl)-4- oxo-4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 467 [M + 1] +   
               
               
                   
               
               
                 92a 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(sec-butyl)-4-oxo-4,5- dihydro-1H-pyrazolo[3,4-d]pyridazin- 1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 465 [M + 1] +   
               
               
                   
               
               
                 92b 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(7-amino-3-(sec-butyl)-4-oxo- 4,5-dihydro-1H-pyrazolo[3,4-d]pyridazin- 1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 465 [M + 1] +   
               
               
                   
               
               
                 93 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(cyclopropylmethyl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 463 [M + 1] +   
               
               
                   
               
               
                 94 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(tert-butyl)-4-oxo-4, 5-dihydro-1H-pyrazolo[3,4-d]pyridazin- 1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 465 [M + 1] +   
               
               
                   
               
               
                 95 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(3-methylbutan-2-yl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 479 [M + 1] +   
               
               
                   
               
               
                 96 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(1-cyclopropylethyl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 97 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(3,3-difluorocyclobutyl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3, 4-d]pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 499 [M + 1] +   
               
               
                   
               
               
                 98 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(1-fluorocyclopropyl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3,4- d]pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 467 [M + 1] +   
               
               
                   
               
               
                 99 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(2,2- difluorocyclopropyl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3, 4-d]pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 485 [M + 1] +   
               
               
                   
               
               
                 100 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-4-oxo-3-(trifluoromethyl)- 4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 101 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(2-fluoropropan-2-yl)- 4-oxo-4,5-dihydro-1H-pyrazolo[3,4- d]pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 469 [M + 1] +   
               
               
                   
               
               
                 102 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclobutyl-2,4-dioxo- 2,3,4,5-tetrahydro-1H-imidazo[4,5-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 479 [M + 1] +   
               
               
                   
               
               
                 103 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(3,3-difluorocyclobutyl)- 2,4-dioxo-2,3,4,5-tetrahydro-1H- imidazo[4,5-d]pyridazin-1-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 515 [M + 1] +   
               
               
                   
               
               
                 104 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-7-oxo-1-(1- pivaloylpyrrolidin-3-yl)-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 561 [M + 1] +   
               
               
                   
               
               
                 105 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 isopropyl (R)-3-(4-amino-3-(4-((5-fluoro-2- methoxybenzamido)methyl)phenyl)-7-oxo- 6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-1-yl)pyrrolidine-1-carboxylate 
                 MS-ESI (m/z): 563 [M + 1] +   
               
               
                   
               
               
                 106 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 cyclopropyl (R)-3-(4-amino-3-(4-((5-fluoro-2- methoxybenzamido)methyl)phenyl)-7- oxo-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-1-yl)pyrrolidine-1-carboxylate 
                 MS-ESI (m/z): 561 [M + 1] +   
               
               
                   
               
               
                 107 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-(azetidine-1- carbonyl)pyrrolidin-3-yl)-7-oxo-6,7- dihydro-1H-pyrrolo[2,3-d]pyridazin-3-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 560 [M + 1] +   
               
               
                   
               
               
                 108a 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-((R)-1-((S)-3- hydroxypyrrolidine-1-carbonyl)pyrrolidin- 3-yl)-7-oxo-6,7-dihydro-1H-pyrrolo[2,3- d]pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 590 [M + 1] +   
               
               
                   
               
               
                 108b 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(4-amino-1-((R)-1-((R)-3- hydroxypyrrolidine-1-carbonyl)pyrrolidin- 3-yl)-7-oxo-6,7-dihydro-1H-pyrrolo[2,3- d]pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 590 [M + 1] +   
               
               
                   
               
               
                 109 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(1-(1-acryloylpyrrolidin-3-yl)- 4-amino-7-oxo-6,7-dihydro-1H-pyrrolo [2,3-d]pyridazin-3-yl)benzyl)-5- fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 531 [M + 1] +   
               
               
                   
               
               
                 110 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-(ethylsulfonyl) pyrrolidin-3-yl)-7-oxo-6,7-dihydro-1H- pyrrolo[2,3-d]pyridazin-3-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 569 [M + 1] +   
               
               
                   
               
               
                 111 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1-(isopropylsulfonyl) pyrrolidin-3-yl)-7-oxo-6,7-dihydro- 1H-pyrrolo[2,3-d]pyridazin-3-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 583 [M + 1] +   
               
               
                   
               
               
                 112 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-1-(1- (cyclopropylsulfonyl)pyrrolidin-3-yl)-7- oxo-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 581 [M + 1] +   
               
               
                   
               
               
                 113 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 (R)-N-(4-(4-amino-7-oxo-1-(pyrrolidin- 3-yl)-6,7-dihydro-1H-pyrrolo[2,3-d] pyridazin-3-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 114 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-((1R,2R)-2- fluorocyclopentyl)-4-oxo-4,5-dihydro-1H- pyrazolo[3,4-d]pyridazin-1-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 115 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-((1R,2S)-2- fluorocyclopentyl)-4-oxo-4,5-dihydro-1H- pyrazolo[3,4-d]pyridazin-1-yl)benzyl)- 5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 116 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(1-methylcyclopropyl)-4- oxo-4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 463 [M + 1] +   
               
               
                   
               
               
                 117 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-(1-methylcyclobutyl)-4- oxo-4,5-dihydro-1H-pyrazolo[3,4-d] pyridazin-1-yl)benzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 477 [M + 1] +   
               
               
                   
               
               
                 118 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-isopropyl-4-oxo-4,5- dihydro-1H-pyrazolo[3,4-d]pyridazin-1-yl) benzyl)-5-fluoro-2-methoxybenzamide 
                 MS-ESI (m/z): 451 [M + 1] +   
               
               
                   
               
               
                 119 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5- dihydro-1H-pyrazolo [3,4-d] pyridazin- 1-yl)-2-fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
               
                 120 
                 
                   
                     
                     
                         
                         
                     
                   
                 
                 N-(4-(7-amino-3-cyclopentyl-4-oxo-4,5- dihydro-1H-pyrazolo[3,4-d]pyridazin- 1-yl)-3-fluorobenzyl)-5-fluoro-2- methoxybenzamide 
                 MS-ESI (m/z): 495 [M + 1] +   
               
               
                   
               
            
           
         
       
     
     Kinase Assay 
     The kinase activity of BTK (C481S) was assayed at Reaction Biology Corporation. The substrate in the BTK (C481S) reaction, pEY (poly[Glu:Tyr] (4:1)) (Sigma, Cat. #P7244-250MG), was prepared in fresh reaction buffer (20 mM Hepes (pH 7.5), 10 mM MgCl 2 , 1 mM EGTA, 0.02% Brij35, 0.02 mg/mi BSA, 0.1 mM Na 3 VO 4 , 2 mM DTT, 1% DMSO). BTK(C481S) (SignalChem, Cat. #B10-12CH) was delivered into the substrate solution and mixed gently. The final concentrations of BTK (C481S) and the substrate in the reaction mixture were 6 nM and 0.2 mg/ml, respectively. Compounds were tested in 10-point concentration/response mode with 3-fold serial dilution steps starting at 1 μM. 
     Compounds in 100% DMSO were delivered into the kinase reaction mixture by acoustic liquid delivery technology (Echo550; nanoliter range) and incubated for 20 min at room temperature. 10 μM [ 33 P]-ATP (ATP: Sigma, Cat #: A7699; [ 33 P]-ATP: Hartmann Analytic, Cat #: SCF-301-12) was delivered into the reaction mixture to initiate the reaction. The mixture was incubated for 120 min at room temperature. Radioactivity was detected utilizing a proprietary filter-binding method. Kinase activity data were expressed as the percent remaining kinase activity in test samples compared to vehicle (DMSO) reactions. IC 50  values were obtained using GraphPad Prism software. 
     Select compounds prepared as described above were assayed according to the biological procedures described herein. The results are given in the table 2. 
     
       
         
           
               
               
               
               
               
             
               
                   
                 TABLE 2 
               
               
                   
                   
               
               
                   
                   
                 BTK(C481S)  
                   
                 BTK (C481S)  
               
               
                   
                 Example 
                 IC50 (nM) 
                 Example 
                 IC50 (nM) 
               
               
                   
                   
               
             
            
               
                   
                 1 
                 5.0 
                  7 
                 3.0 
               
               
                   
                 2 
                 3.3 
                  8 
                 0.45 
               
               
                   
                 4 
                 6.5 
                 11 
                 0.5 
               
               
                   
                 5 
                 8.0 
                 17 
                 0.5 
               
               
                   
                 6 
                 7.8 
                 81 
                 0.91 
               
               
                   
                   
               
            
           
         
       
     
     Cell Proliferation Assays 
     MTS testing kit was purchased from Promega (Madison, Wis., USA). The RPMI-1640, Fetal bovine serum and Penicillin-Streptomycin were purchased from BI (Biological Industries, Beit Haemek, Israel). Dimethyl sulfoxide (DMSO) was purchased from Sigma (St. Louis., Mo., USA). OCI-LY10 cells were cultured in RPMI1640 supplemented with Penicillin-Streptomycin and 10% FBS. 
     To investigate whether a compound is able to inhibit the activity of BTK in cells, a mechanism-based assay using OCI-LY10 cells was developed. In this assay, inhibition of BTK was detected by the inhibition of OCI-LY10 cells proliferation. Cells were plated into 96-well plates at a density of 10000 cells/well. Plates were incubated at 37° C., with 5% CO 2  for 4 h. Compounds were serially diluted and added to the plates with the final compound concentrations as 10000, 3333.3, 1111.1, 270.4, 123.5, 41.2, 13.7, 4.6 and 1.5 nM. Plates were incubated at 37° C., with 5% CO 2  for 72 h. 20 μl MTS was added into each well and the plates were incubated at 37° C., with 5% CO 2  for exactly 2 h. The absorbance was measured by a microplate reader at 490 nm. IC 50  was calculated using GraphPad Prism 5.0 software. 
     Select compounds prepared as described above were assayed according to the biological procedures described herein. The results are given in the table 3. 
     
       
         
           
               
               
               
               
               
             
               
                   
                 TABLE 3 
               
               
                   
                   
               
               
                   
                   
                 OCI-LY10  
                   
                 OCI-LY10  
               
               
                   
                 Example 
                 IC50 (nM) 
                 Example 
                 IC50 (nM) 
               
               
                   
                   
               
             
            
               
                   
                  1 
                 28 
                  67 
                  1 
               
               
                   
                  2 
                 34 
                  68 
                  2 
               
               
                   
                  4 
                 69 
                  69 
                  5 
               
               
                   
                  5 
                 68 
                  70 
                  1 
               
               
                   
                  8 
                  1 
                  71 
                 23 
               
               
                   
                 11 
                  1 
                  72 
                  1 
               
               
                   
                 12 
                  9 
                  73 
                  1 
               
               
                   
                 13 
                  2 
                  74 
                  1 
               
               
                   
                 14 
                 85 
                  75 
                 12 
               
               
                   
                 16 
                  1 
                  76 
                  1 
               
               
                   
                 17 
                  1 
                  77a 
                  1 
               
               
                   
                 18 
                  1 
                  77b 
                  1 
               
               
                   
                 22 
                 44 
                  78 
                 26 
               
               
                   
                 27 
                  1 
                  79 
                 50 
               
               
                   
                 30 
                  1 
                  80 
                  1 
               
               
                   
                 31 
                  1 
                  81 
                  1 
               
               
                   
                 34 
                  4 
                  82 
                  3 
               
               
                   
                 35 
                  1 
                  83 
                 46 
               
               
                   
                 36 
                  1 
                  84 
                  4 
               
               
                   
                 37 
                  9 
                  85 
                 18 
               
               
                   
                 38 
                 35 
                  86 
                 90 
               
               
                   
                 40a 
                  7 
                  87 
                  4 
               
               
                   
                 40b 
                 83 
                  88 
                  1 
               
               
                   
                 41 
                 18 
                  89 
                  1 
               
               
                   
                 45 
                 32 
                  90 
                 15 
               
               
                   
                 48 
                 48 
                  92a 
                 10 
               
               
                   
                 49 
                  9 
                  92b 
                 22 
               
               
                   
                 50 
                 19 
                  93 
                 24 
               
               
                   
                 53 
                  3 
                  94 
                  1 
               
               
                   
                 54 
                  1 
                  96 
                  1 
               
               
                   
                 55 
                 28 
                  97 
                 23 
               
               
                   
                 56 
                  3 
                  98 
                 92 
               
               
                   
                 57 
                 24 
                  99 
                 65 
               
               
                   
                 59 
                 62 
                 102 
                 76 
               
               
                   
                 60 
                 30 
                 105 
                  4 
               
               
                   
                 61 
                 15 
                 106 
                 11 
               
               
                   
                 62 
                  1 
                 107 
                 11 
               
               
                   
                 63 
                  1 
                 109 
                  1 
               
               
                   
                 64 
                  1 
                 110 
                 23 
               
               
                   
                 65 
                  1 
                 111 
                 14 
               
               
                   
                 66 
                  1 
                 112 
                  2