v3.26.1
Income Taxes - Schedule of Reconciliation of Income Tax Expense (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Taxes at statutory rate $ 178,024 $ 19,778 $ (31,006)
State income taxes-net of federal benefit 1,694 (4,265) (22)
Other (4,347) (1,307) 5,392
State and local income taxes   3,632 16,601
Global intangible low-taxed income 16,837    
Other 1,717    
Valuation allowance 37,883 20,295 43,866
Stock compensation (18,949) 2,153 13,294
Other 8,244    
Uncertain tax positions (62,799) 6,814 3,301
Total Income Tax Expense $ 60,849 $ 64,124 $ 11,117
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
Taxes at statutory rate 21.00% 21.00% 21.00%
State income taxes-net of federal benefit 0.00% (5.00%) 0.00%
Taxes on non U.S. earnings   4.00% (11.00%)
Other (1.00%) (1.00%) (4.00%)
Global intangible low-taxed income 2.00%    
Other 0.00%    
Valuation allowance 5.00% 22.00% (30.00%)
Stock compensation (2.00%) 2.00% (9.00%)
Uncertain tax positions (7.00%) 7.00% (2.00%)
Total Income Tax Expense (Benefit) 7.00% 68.00% (8.00%)
Tax Jurisdiction of Domicile [Extensible Enumeration] United States United States United States
China      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Research and development tax credit $ (13,245)    
Tax on foreign unremitted earnings (19,373)    
Withholding taxes 11,206    
Other $ (1,996)    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
Research and development tax credit (2.00%)    
Tax on foreign unremitted earnings (2.00%)    
Withholding taxes 1.00%    
Other 0.00%    
Germany      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Other $ 4,312    
State and local income taxes (11,029)    
Loss on sale of shares (16,142)    
Enacted changes in tax laws or rates $ (47,451)    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
State income taxes-net of federal benefit (1.00%)    
Loss on sale of shares (2.00%)    
Enacted changes in tax laws or rates (6.00%)    
Other 1.00%    
Hong Kong:      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Other $ (526)    
Gain on sale of shares $ (11,242)    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
Other 0.00%    
Gain on sale of shares (1.00%)    
Korea      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Withholding taxes $ 9,561    
State and local income taxes $ (5,082)    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
Withholding taxes 1.00%    
Taxes on non U.S. earnings (1.00%)    
Switzerland      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
State income taxes-net of federal benefit $ 9,652    
Other 4,039    
State and local income taxes (13,938)    
Qualified domestic minimum top-up tax $ 8,939    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
State income taxes-net of federal benefit 1.00%    
Taxes on non U.S. earnings (2.00%)    
Other 1.00%    
Qualified domestic minimum top-up tax 1.00%    
Other foreign jurisdictions      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Other $ 11,186    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
Other 1.00%    
United States      
Income Tax Expense (Benefit), Effective Income Tax Rate Reconciliation, Amount [Abstract]      
Research and development tax credit $ (16,326)    
Effective Income Tax Rate Reconciliation, Percent [Abstract]      
Research and development tax credit (2.00%)    
Other 1.00%