v3.22.0.1
Consolidated Statements of Comprehensive Income (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 $ (487,955) $ (944,839) $ (1,033,660)
Other comprehensive income (loss), net of tax      
Unrealized gain (loss) on marketable securities, net of tax (1,735) (516) 797
Foreign currency translation (14,107) 21,306 (3,371)
Total other comprehensive income (loss), net of tax (15,842) 20,790 (2,574)
Total comprehensive income (loss) $ (503,797) $ (924,049) $ (1,036,234)