v3.26.1
CONSOLIDATED STATEMENT OF STOCKHOLDERS’ EQUITY - USD ($)
$ in Thousands
Total
Common Stock
Additional Paid-In Capital
Accumulated Deficit
Accumulated Other Comprehensive Loss
Beginning balance, common stock (in shares) at Jun. 30, 2023 [1]   296,846,217      
Balance at beginning of period at Jun. 30, 2023 $ 2,534,183 $ 3 $ 5,140,850 $ (2,591,247) $ (15,423)
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Issuance of common stock upon exercise of stock option (in shares) [1]   2,826,973      
Issuance of common stock upon exercise of stock options 22,922   22,922    
Issuance of common stock, employee share purchase plan (in shares) [1]   578,222      
Issuance of common stock, employee share purchase plan 10,217   10,217    
Vesting of restricted stock units (in shares) [1]   10,801,619      
Vesting of warrants for common stock 406,714   406,714    
Stock-based compensation 471,021   471,021    
Tax withholding on stock-based compensation (189,169)   (189,169)    
Foreign currency translation adjustments (13,655)       (13,655)
Unrealized gain (loss) on securities available for sale 6,857       6,857
Gain (loss) on cash flow hedges 656       656
Net income (loss) (517,757)     (517,757)  
Ending balance, common stock (in shares) at Jun. 30, 2024 [1]   311,053,031      
Balance at end of period at Jun. 30, 2024 2,731,989 $ 3 5,862,555 (3,109,004) (21,565)
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Issuance of common stock upon exercise of stock option (in shares) [1]   4,479,891      
Issuance of common stock upon exercise of stock options 47,104   47,104    
Issuance of common stock, employee share purchase plan (in shares) [1]   397,246      
Issuance of common stock, employee share purchase plan 13,589   13,589    
Issuance of common stock upon exercise of warrants (in shares) [1]   3,499,453      
Repurchases of common stock (in shares) [1]   (3,526,590)      
Repurchases of common stock (250,000)   (250,000)    
Vesting of restricted stock units (in shares) [1]   9,209,768      
Vesting of warrants for common stock 271,562   271,562    
Stock-based compensation 499,894   499,894    
Tax withholding on stock-based compensation (303,811)   (303,811)    
Foreign currency translation adjustments 6,025       6,025
Unrealized gain (loss) on securities available for sale 3,297       3,297
Gain (loss) on cash flow hedges (2,826)       (2,826)
Net income (loss) 52,186     52,186  
Ending balance, common stock (in shares) at Jun. 30, 2025 [1]   325,112,799      
Balance at end of period at Jun. 30, 2025 $ 3,069,009 $ 3 6,140,893 (3,056,818) (15,069)
Increase (Decrease) in Stockholders' Equity [Roll Forward]          
Issuance of common stock upon exercise of stock option (in shares) 3,048,939 5,046,794 [1]      
Issuance of common stock upon exercise of stock options $ 141,061   141,061    
Issuance of common stock, employee share purchase plan (in shares) [1]   340,438      
Issuance of common stock, employee share purchase plan $ 17,870   17,870    
Issuance of common stock upon exercise of warrants (in shares) 0        
Vesting of restricted stock units (in shares) [1]   6,675,668      
Vesting of warrants for common stock $ 192,276   192,276    
Stock-based compensation 484,513   484,513    
Tax withholding on stock-based compensation (329,399)   (329,399)    
Foreign currency translation adjustments (24,862)       (24,862)
Unrealized gain (loss) on securities available for sale (1,884)       (1,884)
Gain (loss) on cash flow hedges 5,447       5,447
Net income (loss) 1,929,793     1,929,793  
Ending balance, common stock (in shares) at Jun. 30, 2026 [1]   337,175,699      
Balance at end of period at Jun. 30, 2026 $ 5,483,824 $ 3 $ 6,647,214 $ (1,127,025) $ (36,368)
[1] The share amounts listed above combine Class A and Class B stock.