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
Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Dec. 31, 2021
Assets measured at fair value    
Recorded Basis $ 840,378 $ 343,249
Liabilities measured at fair value    
Common stock warrant liabilities 31,230 44,902
Earnout Shares Liability 64,005 109,844
Term deposits    
Assets measured at fair value    
Recorded Basis 40,301 40,069
Asset backed securities    
Assets measured at fair value    
Recorded Basis 38,352 69,496
Government debt securities    
Assets measured at fair value    
Recorded Basis 344,485 47,308
Corporate debt securities    
Assets measured at fair value    
Recorded Basis 417,240 186,376
Fair Value Measurements Recurring    
Assets measured at fair value    
Cash equivalents 291,003 929,842
Recorded Basis 840,378 343,249
Total fair value of assets 1,131,381 1,273,091
Liabilities measured at fair value    
Earnout Shares Liability 64,005 109,844
Total fair value of liabilities 95,235 154,746
Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Common stock warrant liabilities 18,716 26,910
Fair Value Measurements Recurring | Common stock warrant liabilities (Private Placement)    
Liabilities measured at fair value    
Common stock warrant liabilities 12,514 17,992
Fair Value Measurements Recurring | Money market funds    
Assets measured at fair value    
Cash equivalents 291,003 929,842
Fair Value Measurements Recurring | Term deposits    
Assets measured at fair value    
Recorded Basis 40,301 40,069
Fair Value Measurements Recurring | Asset backed securities    
Assets measured at fair value    
Recorded Basis 38,352 69,496
Fair Value Measurements Recurring | Government debt securities    
Assets measured at fair value    
Recorded Basis 344,485 47,308
Fair Value Measurements Recurring | Corporate debt securities    
Assets measured at fair value    
Recorded Basis 417,240 186,376
Fair Value Measurements Recurring | Level 1    
Assets measured at fair value    
Cash equivalents 291,003 929,842
Recorded Basis 0 0
Total fair value of assets 291,003 929,842
Liabilities measured at fair value    
Earnout Shares Liability 0 0
Total fair value of liabilities 18,716 26,910
Fair Value Measurements Recurring | Level 1 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Common stock warrant liabilities 18,716 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 291,003 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 840,378 343,249
Total fair value of assets 840,378 343,249
Liabilities measured at fair value    
Earnout Shares Liability 0 0
Total fair value of liabilities 12,514 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 12,514 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,301 40,069
Fair Value Measurements Recurring | Level 2 | Asset backed securities    
Assets measured at fair value    
Recorded Basis 38,352 69,496
Fair Value Measurements Recurring | Level 2 | Government debt securities    
Assets measured at fair value    
Recorded Basis 344,485 47,308
Fair Value Measurements Recurring | Level 2 | Corporate debt securities    
Assets measured at fair value    
Recorded Basis 417,240 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 64,005 109,844
Total fair value of liabilities 64,005 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