v3.22.2.2
Net (Loss) Income Per Share - Calculation of Basic and Diluted Net Income Per Share (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Dec. 31, 2021
Jun. 30, 2021
Aug. 31, 2020
Sep. 30, 2019
Mar. 31, 2018
Numerator:                  
Net (loss) income $ (963,068) $ 89,930 $ (803,836) $ 331,950          
Add back interest expense, net of tax attributable to assumed conversion of convertible senior notes 0 1,594 0 3,312          
Net (loss) income attributable to common stockholders—diluted $ (963,068) $ 91,524 $ (803,836) $ 335,262          
Denominator:                  
Weighted average common shares outstanding—basic (in shares) 126,349,250 126,633,789 126,985,731 126,753,641          
Dilutive effect of assumed conversion of convertible senior notes (in shares) 0 14,716,766 0 12,840,779          
Weighted average common shares outstanding - diluted (in shares) 126,349,250 147,413,915 126,985,731 145,866,797          
Net income per share attributable to common stockholders—basic (in dollars per shares) $ (7.62) $ 0.71 $ (6.33) $ 2.62          
Net income per share attributable to common stockholders—diluted (in dollars per share) $ (7.62) $ 0.62 $ (6.33) $ 2.30          
Convertible Debt                  
Denominator:                  
Principal $ 2,299,987   $ 2,299,987   $ 2,300,020        
Convertible Debt | 2021 Notes                  
Denominator:                  
Principal 1,000,000   1,000,000   1,000,000 $ 1,000,000      
Debt instrument, interest rate (as a percent)           0.25%      
Convertible Debt | 2020 Notes                  
Denominator:                  
Principal 650,000   650,000   650,000   $ 650,000    
Debt instrument, interest rate (as a percent)             0.125%    
Convertible Debt | 2019 Notes                  
Denominator:                  
Principal, net of conversion notices 649,932   649,932   649,958     $ 649,900  
Debt instrument, interest rate (as a percent)               0.125%  
Convertible Debt | 2018 Notes                  
Denominator:                  
Principal, net of conversion notices $ 55   $ 55   $ 62        
Debt instrument, interest rate (as a percent)                 0.00%
Stock Options                  
Denominator:                  
Dilutive effect of assumed conversion (in shares) 0 4,126,970 0 4,229,632          
Restricted stock units                  
Denominator:                  
Dilutive effect of assumed conversion (in shares) 0 1,936,390 0 2,042,745