v3.26.3
Debt - Convertible Senior Notes (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 12 Months Ended
Jul. 17, 2026
USD ($)
day
$ / shares
$ / Unit
Aug. 14, 2024
USD ($)
$ / shares
Aug. 06, 2024
USD ($)
day
Jan. 18, 2023
USD ($)
Aug. 26, 2022
day
Jul. 31, 2026
USD ($)
shares
Aug. 29, 2025
USD ($)
shares
Aug. 28, 2026
USD ($)
day
$ / shares
shares
Aug. 29, 2025
USD ($)
shares
Aug. 30, 2024
USD ($)
Feb. 15, 2026
USD ($)
shares
Aug. 01, 2023
Feb. 29, 2020
USD ($)
$ / shares
Debt Instrument [Line Items]                          
Inducement expense related to the conversion of the 2029 and 2030 Notes               $ 33,248 $ 0 $ 0      
Issuance of common stock for convertible debt inducement               27,812          
Long-term debt             $ 461,838 788,950 461,838        
Loss on extinguishment or prepayment of debt               0 2,908 22,763      
Payments to acquire capped calls               $ 49,125 $ 0 $ 16,300      
Treasury shares (in shares) | shares             10,018,000 13,656,000 10,018,000   13,000    
Common                          
Debt Instrument [Line Items]                          
Issuance of common stock for convertible debt inducement (in shares) | shares               8,723,000          
Issuance of common stock for convertible debt inducement               $ 262          
Additional Paid-in Capital                          
Debt Instrument [Line Items]                          
Issuance of common stock for convertible debt inducement               27,550          
2.25% Convertible Senior Notes Due 2026                          
Debt Instrument [Line Items]                          
Note interest rate                         2.25%
Long-term debt             $ 19,945 0 $ 19,945        
Extinguishment of debt     $ 80,000 $ 150,000                  
Repayments of long-term debt     $ 100,600                    
Loss on extinguishment or prepayment of debt             20,400            
Gain (loss) on extinguishment of debt, before debt issuance cost writeoff             19,700            
Write off of unamortized debt issuance cost             700            
Debt instrument, face amount                     $ 20,000   $ 250,000
Debt instrument, convertible, initial conversion price per ordinary share | $ / shares                         $ 20.30
Debt instrument, convertible, initial conversion rate in ordinary shares     0.0492504                    
Debt instrument outstanding amount             20,000   20,000        
Notional amount             $ 100,000   $ 100,000        
Debt instrument, effective interest rate             2.83%   2.83%        
2.25% Convertible Senior Notes Due 2026 | Debt Conversion Terms One                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger         130.00%                
Debt instrument, convertible, threshold trading days | day         20                
Debt instrument, convertible, threshold consecutive trading days | day         30                
2.25% Convertible Senior Notes Due 2026 | Debt Conversion Terms Two                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger         98.00%                
Debt instrument, convertible, threshold trading days | day         5                
Debt instrument, convertible, threshold consecutive trading days | day         10                
2029 Notes                          
Debt Instrument [Line Items]                          
Aggregate principal amount           $ 135,500              
Repayments of convertible debt           135,500              
Note interest rate                       2.00%  
Interest Payable           $ 1,300              
Issuance of common stock for convertible debt inducement (in shares) | shares           4,700,000              
Inducement expense related to the conversion of the 2029 and 2030 Notes           $ 6,100              
Long-term debt $ 14,500           $ 147,987 $ 14,405 $ 147,987        
Extinguishment of debt       $ 150,000                  
Debt instrument, convertible, initial conversion price per ordinary share | $ / shares               $ 21.23          
Debt instrument, convertible, threshold percentage of stock price trigger               130.00%          
Debt instrument, convertible, threshold trading days | day               20          
Debt instrument, convertible, threshold consecutive trading days | day               30          
Debt instrument, convertible, initial conversion rate in ordinary shares               0.0471059          
Debt instrument, effective interest rate             2.40% 2.40% 2.40%        
2029 Notes | Debt Conversion Terms One                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger               130.00%          
Debt instrument, convertible, threshold trading days | day               20          
Debt instrument, convertible, threshold consecutive trading days | day               30          
2029 Notes | Debt Conversion Terms Two                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger               98.00%          
Debt instrument, convertible, threshold trading days | day               5          
Debt instrument, convertible, threshold consecutive trading days | day               10          
Two Percent Convertible Senior Notes Due 2030                          
Debt Instrument [Line Items]                          
Aggregate principal amount           160,000              
Repayments of convertible debt           160,000              
Note interest rate   2.00%                      
Interest Payable           $ 1,300              
Issuance of common stock for convertible debt inducement (in shares) | shares           4,000,000.0              
Inducement expense related to the conversion of the 2029 and 2030 Notes           $ 27,200              
Long-term debt $ 40,000                        
Debt instrument, face amount   $ 25,000 $ 175,000                    
Debt instrument, convertible, initial conversion price per ordinary share | $ / shares   $ 28.01                      
Debt instrument, convertible, threshold percentage of stock price trigger               130.00%          
Debt instrument, convertible, threshold trading days | day               20          
Debt instrument, convertible, threshold consecutive trading days | day               30          
Two Percent Convertible Senior Notes Due 2030 | Debt Conversion Terms One                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger     130.00%                    
Debt instrument, convertible, threshold trading days | day     20                    
Debt instrument, convertible, threshold consecutive trading days | day     30                    
Two Percent Convertible Senior Notes Due 2030 | Debt Conversion Terms Two                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger     98.00%                    
Debt instrument, convertible, threshold trading days | day     5                    
Debt instrument, convertible, threshold consecutive trading days | day     10                    
2030 Notes                          
Debt Instrument [Line Items]                          
Long-term debt             $ 193,906 $ 39,013 $ 193,906        
Debt instrument, convertible, initial conversion rate in ordinary shares   0.0357034                      
Debt instrument, effective interest rate             2.65% 2.65% 2.65%        
Two Percent Convertible Senior Notes Due 2031                          
Debt Instrument [Line Items]                          
Note interest rate 0.00%                        
Debt instrument, face amount $ 750,000                        
Proceeds from issuance of convertible senior long-term debt 735,200                        
Expenses and commissions $ 14,800                        
Debt instrument, convertible, initial conversion price per ordinary share | $ / shares $ 116.70                        
Payments to acquire capped calls $ 49,100                        
Derivative cap price (in dollars per share) | $ / Unit 175.05                        
Two Percent Convertible Senior Notes Due 2031 | Convertible Debt | Debt Conversion Terms One                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger 130.00%                        
Debt instrument, convertible, threshold trading days | day 20                        
Debt instrument, convertible, threshold consecutive trading days | day 30                        
Two Percent Convertible Senior Notes Due 2031 | Convertible Debt | Debt Conversion Terms Two                          
Debt Instrument [Line Items]                          
Debt instrument, convertible, threshold percentage of stock price trigger 98.00%                        
Debt instrument, convertible, threshold trading days | day 5                        
Debt instrument, convertible, threshold consecutive trading days | day 10                        
2031 Notes                          
Debt Instrument [Line Items]                          
Long-term debt             $ 0 $ 735,532 $ 0        
Debt instrument, convertible, initial conversion rate in ordinary shares 0.008596                        
Debt instrument, effective interest rate               0.40%