v3.20.4
Income Taxes - Summary of Significant Deferred Tax Assets and Liabilities (Detail) - USD ($)
$ in Thousands
Dec. 31, 2020
Dec. 31, 2019
Components of Deferred Tax Assets and Liabilities [Abstract]    
Net operating loss carryforwards $ 853,861 $ 570,583
Reserves and accruals 55,685 36,269
Tax credit carryforwards 68,626 28,459
Stock-based compensation 246,380 181,901
Lease liabilities 57,543 0
Depreciation and amortization 28,970 23,709
Gross deferred tax assets 1,311,065 840,921
Right-of-use assets (48,120) 0
Total net deferred tax assets before valuation allowance 1,262,945 840,921
Valuation allowance (1,220,093) (819,738)
Net deferred tax assets $ 42,852 $ 21,183