XML 119 R102.htm IDEA: XBRL DOCUMENT v3.22.0.1
Net (Loss) Income Per Share - Computation of Basic and Diluted Net Income (Loss) per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Numerator:      
Net (loss) income attributable to common stockholders $ (79,423) $ (173,394) $ 26,335
Denominator:      
Weighted average shares used to compute net (loss) income per share attributable to common stockholders, basic (in shares) 205,132 139,606 116,397
Weighted average effect of potentially dilutive shares to purchase common stock (in shares) 0 0 7,479
Weighted average shares used to compute net (loss) income per share attributable to common stockholders, diluted (in shares) 205,132 139,606 123,876
Net (loss) income per share attributable to common stockholders      
Basic (in dollars per share) $ (0.39) $ (1.24) $ 0.23
Diluted (in dollars per share) $ (0.39) $ (1.24) $ 0.21