DEBT - Long-term debt (Details) - USD ($) $ in Thousands |
Jun. 30, 2024 |
Dec. 31, 2023 |
|---|---|---|
| Debt Instrument [Line Items] | ||
| Total carrying amount of debt | $ 1,298,024 | $ 1,293,738 |
| Less: debt, current | (98,592) | 0 |
| Debt, non-current | 1,199,432 | 1,293,738 |
| Convertible Notes | Notes due 2028 | ||
| Debt Instrument [Line Items] | ||
| Long-term debt, gross | 575,000 | 575,000 |
| Less: unamortized debt issuance costs | (4,756) | (5,408) |
| Total carrying amount of debt | 570,244 | 569,592 |
| Convertible Notes | Notes due 2026 | ||
| Debt Instrument [Line Items] | ||
| Long-term debt, gross | 632,500 | 632,500 |
| Less: unamortized debt issuance costs | (3,312) | (4,317) |
| Total carrying amount of debt | 629,188 | 628,183 |
| Convertible Notes | Notes due 2025 | ||
| Debt Instrument [Line Items] | ||
| Long-term debt, gross | 102,173 | 102,175 |
| Less: unamortized debt issuance costs | (319) | (568) |
| Less: unamortized debt discount | (3,262) | (5,644) |
| Total carrying amount of debt | 98,592 | $ 95,963 |
| Less: debt, current | $ (102,200) |
| X | ||||||||||
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| 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. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, after accumulated amortization, of debt discount. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt classified as current. Excludes lease obligation. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|