XML 66 R55.htm IDEA: XBRL DOCUMENT v3.21.2
DEBT - Long-term debt (Details) - USD ($)
$ in Thousands
Jun. 30, 2021
Dec. 31, 2020
Debt Instrument [Line Items]    
Total carrying amount of debt $ 1,014,140 $ 330,865
Less: current portion of convertible notes and long-term financing receivable recorded as debt (85,125) (325,967)
Long-term debt 929,015 4,898
Convertible Notes | Convertible Senior Notes Due 2028    
Debt Instrument [Line Items]    
Long-term debt, gross 575,000 0
Less unamortized discount and issuance costs (159,801) 0
Total carrying amount of debt 415,199 0
Convertible Notes | Convertible Senior Notes Due 2026    
Debt Instrument [Line Items]    
Long-term debt, gross 632,500 0
Less unamortized discount and issuance costs (123,602) 0
Total carrying amount of debt 508,898 0
Convertible Notes | Convertible Senior Notes Due 2025    
Debt Instrument [Line Items]    
Long-term debt, gross 102,175 320,000
Less unamortized discount and issuance costs (18,475) (64,979)
Total carrying amount of debt 83,700 255,021
Less: current portion of convertible notes and long-term financing receivable recorded as debt (102,200)  
Convertible Notes | Convertible Senior Notes Due 2024    
Debt Instrument [Line Items]    
Long-term debt, gross 1,068 88,140
Less unamortized discount and issuance costs (201) (19,119)
Total carrying amount of debt 867 69,021
Less: current portion of convertible notes and long-term financing receivable recorded as debt (900)  
Convertible Notes | Convertible Senior Notes Due 2023    
Debt Instrument [Line Items]    
Long-term debt, gross 5,000 5,000
Less unamortized discount and issuance costs (82) (102)
Total carrying amount of debt 4,918 4,898
Financing Receivable | Financing Receivable Recorded as Debt    
Debt Instrument [Line Items]    
Long-term debt, gross $ 558 $ 1,925