XML 47 R34.htm IDEA: XBRL DOCUMENT v3.21.2
Unsecured Convertible Senior Notes - Unsecured convertible senior notes outstanding (Details) - USD ($)
$ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2021
Dec. 31, 2020
Jan. 01, 2021
Debt Instrument [Line Items]      
Principal amount $ 320,030 $ 320,030  
Unamortized discount (7,445) (77,645)  
Unamortized issuance costs attributable to liability component   (6,097)  
Total unsecured convertible senior notes, net 312,585 236,288  
Accumulated deficit (941,052) (872,672)  
2023 Unsecured Convertible Senior Notes      
Debt Instrument [Line Items]      
Principal amount 95,000 95,000  
Unamortized discount (1,596) (17,101)  
Unamortized issuance costs attributable to liability component   (1,481)  
Total unsecured convertible senior notes, net 93,404 76,418  
Fair value of outstanding unsecured convertible senior notes 104,856 101,769  
Amount by which the unsecured convertible senior notes if-converted value exceeds their principal amount 9,856 6,769  
Equity component   25,854  
Unamortized issuance costs   (837)  
Net carrying amount of equity component   25,017  
2026 Unsecured Convertible Senior Notes      
Debt Instrument [Line Items]      
Principal amount 225,030 225,030  
Unamortized discount (5,849) (60,544)  
Unamortized issuance costs attributable to liability component   (4,616)  
Total unsecured convertible senior notes, net 219,181 159,870  
Fair value of outstanding unsecured convertible senior notes 251,192 246,779  
Amount by which the unsecured convertible senior notes if-converted value exceeds their principal amount $ 26,162 21,749  
Equity component   63,544  
Unamortized issuance costs   (1,916)  
Net carrying amount of equity component   $ 61,628  
Cumulative effect adjustment | Accounting Standards Update 2020-06      
Debt Instrument [Line Items]      
Accumulated deficit     $ (75,500)
Convertible Debt     $ 75,500