XML 19 R5.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME      
Net (loss) income $ (49,593) $ (120,348) $ 15,424
Other comprehensive (loss) income      
Foreign currency translation gain (loss) 781 (691) (65)
Unrealized (loss) gain on short-term investments (1,770) 365 657
Other comprehensive (loss) income (989) (326) 592
Total comprehensive (loss) income $ (50,582) $ (120,674) $ 16,016