Annual report [Section 13 and 15(d), not S-K Item 405]

SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Schedule of Revenue from External Customers (Details)

v3.25.2
SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Schedule of Revenue from External Customers (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Segment Reporting Information [Line Items]      
Revenues $ 12,156,162 $ 9,812,247 $ 10,496,056
Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 100.00% 100.00% 100.00%
China      
Segment Reporting Information [Line Items]      
Revenues $ 4,042,567 $ 4,196,727 $ 2,867,443
China | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 33.00% 43.00% 27.00%
Taiwan      
Segment Reporting Information [Line Items]      
Revenues $ 3,205,392 $ 1,738,065 $ 2,493,379
Taiwan | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 27.00% 18.00% 24.00%
Korea      
Segment Reporting Information [Line Items]      
Revenues $ 1,452,826 $ 906,924 $ 1,895,710
Korea | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 12.00% 9.00% 18.00%
North America      
Segment Reporting Information [Line Items]      
Revenues $ 1,362,311 $ 1,070,791 $ 1,254,956
North America | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 11.00% 11.00% 12.00%
Japan      
Segment Reporting Information [Line Items]      
Revenues $ 1,133,002 $ 963,203 $ 888,016
Japan | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 9.00% 10.00% 9.00%
Europe and Israel      
Segment Reporting Information [Line Items]      
Revenues $ 574,197 $ 540,263 $ 682,103
Europe and Israel | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 5.00% 6.00% 6.00%
Rest of Asia      
Segment Reporting Information [Line Items]      
Revenues $ 385,867 $ 396,274 $ 414,449
Rest of Asia | Geographic Concentration Risk | Revenue from Contract with Customer Benchmark      
Segment Reporting Information [Line Items]      
Concentration risk, percentage 3.00% 3.00% 4.00%