Annual report pursuant to Section 13 and 15(d)

Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details)

v3.22.4
Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($)
$ in Thousands
Dec. 31, 2022
Dec. 31, 2021
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments $ 910,692 $ 343,249
Warrant liability 28,783 44,902
Earnout shares liability 44,055 109,844
Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 40,709 40,069
Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 54,707 69,496
Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 362,851 47,308
Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 452,425 186,376
Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 108,119 929,842
Available-for-sale investments 910,692 343,249
Total fair value of assets 1,018,811 1,273,091
Warrant liability 28,783 44,902
Earnout shares liability 44,055 109,844
Total fair value of liabilities 72,838 154,746
Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 8,318 26,910
Fair Value Measurements Recurring | Common stock warrant liabilities (Private)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 5,561 17,992
Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 14,903  
Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 108,119 929,842
Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 40,709 40,069
Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 54,707 69,496
Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 362,851 47,308
Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 452,425 186,376
Level 1 | Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 108,119 929,842
Available-for-sale investments 0 0
Total fair value of assets 108,119 929,842
Warrant liability 8,318 26,910
Earnout shares liability 0 0
Total fair value of liabilities 8,318 26,910
Level 1 | Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 8,318 26,910
Level 1 | Fair Value Measurements Recurring | Common stock warrant liabilities (Private)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 1 | Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0  
Level 1 | Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 108,119 929,842
Level 1 | Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 1 | Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 1 | Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 1 | Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 2 | Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Available-for-sale investments 910,692 343,249
Total fair value of assets 910,692 343,249
Warrant liability 5,561 17,992
Earnout shares liability 0 0
Total fair value of liabilities 5,561 17,992
Level 2 | Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 2 | Fair Value Measurements Recurring | Common stock warrant liabilities (Private)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 5,561 17,992
Level 2 | Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0  
Level 2 | Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Level 2 | Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 40,709 40,069
Level 2 | Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 54,707 69,496
Level 2 | Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 362,851 47,308
Level 2 | Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 452,425 186,376
Level 3 | Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Available-for-sale investments 0 0
Total fair value of assets 0 0
Warrant liability 14,903 0
Earnout shares liability 44,055 109,844
Total fair value of liabilities 58,958 109,844
Level 3 | Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 3 | Fair Value Measurements Recurring | Common stock warrant liabilities (Private)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 3 | Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 14,903  
Level 3 | Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Level 3 | Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 3 | Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 3 | Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 3 | Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments $ 0 $ 0