XML 24 R6.htm IDEA: XBRL DOCUMENT v3.22.0.1
Consolidated Statements of Comprehensive Loss - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Statement Of Income And Comprehensive Income [Abstract]      
Net loss $ (290,023) $ (189,291) $ (76,970)
Other comprehensive income (loss):      
Foreign currency translation adjustments 1,235 (3,207) 331
Available-for-sale investments:      
Unrealized gain (loss) on investments, net of tax effect (899) (545) 592
Other comprehensive income (loss), net of taxes 336 (3,752) 923
Comprehensive loss $ (289,687) $ (193,043) $ (76,047)