Long-Term Debt - Summary of Convertible Notes (Details) - USD ($) $ in Thousands |
Dec. 31, 2021 |
Apr. 30, 2021 |
Dec. 31, 2020 |
Apr. 30, 2020 |
Aug. 31, 2019 |
|---|---|---|---|---|---|
| 2027 Notes | |||||
| Debt Instrument [Line Items] | |||||
| Principal | $ 1,150,000 | $ 1,150,000 | |||
| Unamortized debt discount and issuance costs | (11,361) | ||||
| Net carrying amount | 1,138,639 | ||||
| 2025 Notes | |||||
| Debt Instrument [Line Items] | |||||
| Principal | 284,105 | $ 1,000,000 | $ 1,000,000 | ||
| Unamortized debt discount and issuance costs | (2,168) | (263,956) | |||
| Net carrying amount | 281,937 | 736,044 | |||
| 2026 Notes | |||||
| Debt Instrument [Line Items] | |||||
| Principal | 838,493 | 1,265,000 | $ 1,265,000 | ||
| Unamortized debt discount and issuance costs | (5,982) | (325,875) | |||
| Net carrying amount | $ 832,511 | $ 939,125 |
| X | ||||||||||
- Definition Face (par) amount of debt instrument at time of issuance. 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 | ||||||||||
- Definition Amount of unamortized debt discount (premium) and debt issuance costs. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|