XML 219 R43.htm IDEA: XBRL DOCUMENT v3.20.2
DEBT - Summary of Net Carrying Amount of Debt (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Convertible Debt    
Debt Instrument [Line Items]    
Principal amount $ 300,000 $ 300,000
Unaccreted debt discount (19,358) (2,691)
Unamortized debt issuance costs (6,282) (4,135)
Debt, net of current portion 274,360 $ 293,174
Line of Credit    
Debt Instrument [Line Items]    
Principal amount 1,004,700  
Unaccreted debt discount (24,419)  
Unamortized debt issuance costs (22,661)  
Debt, net of current portion $ 957,620