v3.19.3
NET INCOME (LOSS) PER SHARE - Antidilutive Securities Excluded from Computation of Diluted Net Income (Loss) Per Share (Details) - shares
shares in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Sep. 30, 2019
Sep. 30, 2018
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from calculation of diluted net income (loss) per share (in shares) 56,269 54,755 97,537 112,289
Stock options and restricted stock units        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from calculation of diluted net income (loss) per share (in shares) 15,113 12,079 46,045 62,822
Common stock warrants        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from calculation of diluted net income (loss) per share (in shares) 19,880 18,830 30,252 24,387
Convertible senior notes        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from calculation of diluted net income (loss) per share (in shares) 20,305 23,415 20,305 24,276
Unvested shares        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from calculation of diluted net income (loss) per share (in shares) 782 405 718 597
Employee stock purchase plan        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from calculation of diluted net income (loss) per share (in shares) 189 26 217 207