v3.22.0.1
Income Taxes - Summary of Significant Deferred Tax Assets and Liabilities (Detail) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Components of Deferred Tax Assets and Liabilities [Abstract]    
Net operating loss carryforwards $ 1,497,774 $ 853,861
Reserves and accruals 43,348 55,685
Tax credit carryforwards 177,402 68,626
Stock-based compensation 212,163 246,380
Lease liabilities 59,787 57,543
Depreciation and amortization 35,176 28,970
Gross deferred tax assets 2,025,650 1,311,065
Right-of-use assets (49,665) (48,120)
Total net deferred tax assets before valuation allowance 1,975,985 1,262,945
Valuation allowance (1,977,565) (1,220,093)
Net deferred tax assets $ (1,580) $ 42,852