Debt - Schedule of the Interest Expense Recognized Related to the Convertible Senior Notes (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Line of Credit Facility [Line Items] | |||
| Total amortization of debt issuance costs | $ 28,232 | $ 30,389 | $ 24,546 |
| Total interest expenses related to the convertible notes | 454,016 | 425,451 | 344,253 |
| Convertible Debt | |||
| Line of Credit Facility [Line Items] | |||
| Total amortization of debt issuance costs | 3,871 | 3,488 | 3,400 |
| Coupon interest expense | 6,900 | 3,656 | 0 |
| Total interest expenses related to the convertible notes | 10,771 | 7,144 | 3,400 |
| Convertible Debt | 2026 Notes | |||
| Line of Credit Facility [Line Items] | |||
| Total amortization of debt issuance costs | 536 | 1,724 | 3,400 |
| Convertible Debt | 2029 Notes | |||
| Line of Credit Facility [Line Items] | |||
| Total amortization of debt issuance costs | $ 3,336 | $ 1,764 | $ 0 |
| X | ||||||||||
- Definition Amount of amortization expense attributable to debt issuance costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of interest expense classified as operating and nonoperating. Includes, but is not limited to, cost of borrowing accounted for as interest expense. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense for 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/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|