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 |
| X | ||||||||||
- Definition Deferred tax asset, right of use asset. No definition available.
|
| X | ||||||||||
- Definition Deferred tax assets net before valuation allowance. No definition available.
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from property, plant, and equipment. No definition available.
|
| X | ||||||||||
- Definition Amount, before allocation of a valuation allowances, of deferred tax assets attributable to deductible tax credit carryforwards including, but not limited to, research, foreign, general business, alternative minimum tax, and other deductible tax credit carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from reserves and accruals. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences from leasing arrangements. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|