Quarterly report pursuant to Section 13 or 15(d)

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

v3.22.2.2
Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Dec. 31, 2021
Assets measured at fair value    
Recorded Basis $ 880,662 $ 343,249
Liabilities measured at fair value    
Common stock warrant liabilities 24,175 44,902
Earnout Shares Liability 58,499 109,844
Term deposits    
Assets measured at fair value    
Recorded Basis 40,506 40,069
Asset backed securities    
Assets measured at fair value    
Recorded Basis 31,667 69,496
Government debt securities    
Assets measured at fair value    
Recorded Basis 385,827 47,308
Corporate debt securities    
Assets measured at fair value    
Recorded Basis 422,662 186,376
Fair Value Measurements Recurring    
Assets measured at fair value    
Cash equivalents 166,438 929,842
Recorded Basis 880,662 343,249
Total fair value of assets 1,047,100 1,273,091
Liabilities measured at fair value    
Earnout Shares Liability 58,499 109,844
Total fair value of liabilities 82,674 154,746
Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Common stock warrant liabilities 14,488 26,910
Fair Value Measurements Recurring | Common stock warrant liabilities (Private Placement)    
Liabilities measured at fair value    
Common stock warrant liabilities 9,687 17,992
Fair Value Measurements Recurring | Money market funds    
Assets measured at fair value    
Cash equivalents 166,438 929,842
Fair Value Measurements Recurring | Term deposits    
Assets measured at fair value    
Recorded Basis 40,506 40,069
Fair Value Measurements Recurring | Asset backed securities    
Assets measured at fair value    
Recorded Basis 31,667 69,496
Fair Value Measurements Recurring | Government debt securities    
Assets measured at fair value    
Recorded Basis 385,827 47,308
Fair Value Measurements Recurring | Corporate debt securities    
Assets measured at fair value    
Recorded Basis 422,662 186,376
Fair Value Measurements Recurring | Level 1    
Assets measured at fair value    
Cash equivalents 166,438 929,842
Recorded Basis 0 0
Total fair value of assets 166,438 929,842
Liabilities measured at fair value    
Earnout Shares Liability 0 0
Total fair value of liabilities 14,488 26,910
Fair Value Measurements Recurring | Level 1 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Common stock warrant liabilities 14,488 26,910
Fair Value Measurements Recurring | Level 1 | Common stock warrant liabilities (Private Placement)    
Liabilities measured at fair value    
Common stock warrant liabilities 0 0
Fair Value Measurements Recurring | Level 1 | Money market funds    
Assets measured at fair value    
Cash equivalents 166,438 929,842
Fair Value Measurements Recurring | Level 1 | Term deposits    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 1 | Asset backed securities    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 1 | Government debt securities    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 1 | Corporate debt securities    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 2    
Assets measured at fair value    
Cash equivalents 0 0
Recorded Basis 880,662 343,249
Total fair value of assets 880,662 343,249
Liabilities measured at fair value    
Earnout Shares Liability 0 0
Total fair value of liabilities 9,687 17,992
Fair Value Measurements Recurring | Level 2 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Common stock warrant liabilities 0 0
Fair Value Measurements Recurring | Level 2 | Common stock warrant liabilities (Private Placement)    
Liabilities measured at fair value    
Common stock warrant liabilities 9,687 17,992
Fair Value Measurements Recurring | Level 2 | Money market funds    
Assets measured at fair value    
Cash equivalents 0 0
Fair Value Measurements Recurring | Level 2 | Term deposits    
Assets measured at fair value    
Recorded Basis 40,506 40,069
Fair Value Measurements Recurring | Level 2 | Asset backed securities    
Assets measured at fair value    
Recorded Basis 31,667 69,496
Fair Value Measurements Recurring | Level 2 | Government debt securities    
Assets measured at fair value    
Recorded Basis 385,827 47,308
Fair Value Measurements Recurring | Level 2 | Corporate debt securities    
Assets measured at fair value    
Recorded Basis 422,662 186,376
Fair Value Measurements Recurring | Level 3    
Assets measured at fair value    
Cash equivalents 0 0
Recorded Basis 0 0
Total fair value of assets 0 0
Liabilities measured at fair value    
Earnout Shares Liability 58,499 109,844
Total fair value of liabilities 58,499 109,844
Fair Value Measurements Recurring | Level 3 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Common stock warrant liabilities 0 0
Fair Value Measurements Recurring | Level 3 | Common stock warrant liabilities (Private Placement)    
Liabilities measured at fair value    
Common stock warrant liabilities 0 0
Fair Value Measurements Recurring | Level 3 | Money market funds    
Assets measured at fair value    
Cash equivalents 0 0
Fair Value Measurements Recurring | Level 3 | Term deposits    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 3 | Asset backed securities    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 3 | Government debt securities    
Assets measured at fair value    
Recorded Basis 0 0
Fair Value Measurements Recurring | Level 3 | Corporate debt securities    
Assets measured at fair value    
Recorded Basis $ 0 $ 0