Quarterly report pursuant to Section 13 or 15(d)

Net (Loss) Income Per Share - Summary of Computation of Company's Basic and Diluted Net (Loss) Income per Share (Details)

v3.21.2
Net (Loss) Income Per Share - Summary of Computation of Company's Basic and Diluted Net (Loss) Income per Share (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2021
Jun. 30, 2021
Mar. 31, 2021
Sep. 30, 2020
Jun. 30, 2020
Mar. 31, 2020
Sep. 30, 2021
Sep. 30, 2020
Numerator:                
Net (loss) income, basic and diluted $ (30,902) $ (6,152) $ (30,359) $ 17,139 $ 29,872 $ (19,595) $ (67,413) $ 27,416
Denominator:                
Weighted-average shares used in computing basic net (loss) income per share 46,162,544     36,887,266     46,060,010 29,994,917
Weighted-average shares used to compute diluted EPS 46,162,544     37,877,552     46,060,010 30,349,856
Net (loss) income per share:                
Basic $ (0.67)     $ 0.46     $ (1.46) $ 0.91
Diluted $ (0.67)     $ 0.45     $ (1.46) $ 0.90
Stock Options                
Denominator:                
Dilutive effect of share based payment arrangements       828,623       228,557
Restricted Stock Units                
Denominator:                
Dilutive effect of share based payment arrangements       159,788       120,649
Warrants to Purchase Common Stock                
Denominator:                
Dilutive effect of share based payment arrangements       1,875       5,733