Convertible Senior Notes - Schedule of Interest Expense Recognized (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Debt Instrument [Line Items] | |||
| Amortization of debt discount and issuance costs | $ 33,283 | $ 52,733 | $ 53,394 |
| 2022 Notes | |||
| Debt Instrument [Line Items] | |||
| Amortization of debt issuance cost | 1,606 | 1,531 | 860 |
| Amortization of debt discount | $ 31,677 | 30,159 | 16,921 |
| Effective interest rate of the liability component (in percent) | 4.75% | ||
| 2018 Notes | |||
| Debt Instrument [Line Items] | |||
| Amortization of debt issuance cost | $ 0 | 1,131 | 1,911 |
| Amortization of debt discount | $ 0 | $ 19,912 | $ 33,702 |
| Effective interest rate of the liability component (in percent) | 6.50% | ||
| X | ||||||||||
- Definition Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of amortization expense attributable to debt issuance costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of amortization expense attributable to debt discount (premium) and debt issuance costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available.
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|