XML 116 R91.htm IDEA: XBRL DOCUMENT v3.23.2
Debt and Bank Borrowings - Credit Agreements - Additional Information (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Jun. 30, 2021
Debt Instrument [Line Items]      
Amortization of debt discount and issuance costs, net of accretion of debt premium $ 6,964 $ 4,777 $ 27,531
Weighted-average remaining life 2 years 10 months 24 days    
2027 Notes      
Debt Instrument [Line Items]      
Effective interest rate 0.48%    
Capped call, initial strike price (dollars per share) $ 414.80    
Capped call, initial cap price (dollars per share) $ 544.00    
2025 Notes      
Debt Instrument [Line Items]      
Effective interest rate 0.36%    
Capped call, initial strike price (dollars per share) $ 160.88    
Capped call, initial cap price (dollars per share) $ 218.14    
2025 and 2027 Senior Notes Member      
Debt Instrument [Line Items]      
Amortization of debt discount and issuance costs, net of accretion of debt premium $ 6,800 $ 6,100  
Debt instrument, aggregate principal amount if converted 1,700,000    
Cost of capped call $ 125,800    
Cap calls cover subject to anti-dilution adjustments to common stock (shares) 8,500,000