Convertible Senior Notes - Net Proceeds from Notes (Details) - 2023 Convertible Senior Notes - USD ($) $ in Thousands |
1 Months Ended | ||
|---|---|---|---|
Jan. 31, 2018 |
Jan. 31, 2022 |
Jul. 31, 2021 |
|
| Debt Instrument [Line Items] | |||
| Less: cost of the bond hedges | $ (143,200) | ||
| Add: proceeds from the sale of warrants | 88,000 | ||
| Convertible Debt | |||
| Debt Instrument [Line Items] | |||
| Principal amount | 575,000 | $ 145,704 | $ 575,000 |
| Less: initial purchasers' discount | (10,781) | ||
| Less: cost of the bond hedges | (143,175) | ||
| Add: proceeds from the sale of warrants | 87,975 | ||
| Less: other issuance costs | (707) | ||
| Net proceeds | $ 508,312 |