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.24.2.u1
Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($)
$ in Thousands
Jun. 30, 2024
Dec. 31, 2023
Assets measured at fair value    
Fair value $ 649,933 $ 828,233
Liabilities measured at fair value    
Warrant liability 40,871 62,936
Earnout shares liability 69,281 95,969
Term deposits    
Assets measured at fair value    
Fair value 30,351 42,538
Asset backed securities    
Assets measured at fair value    
Fair value 50,769 27,469
Government debt securities    
Assets measured at fair value    
Fair value 194,906 265,681
Corporate debt securities    
Assets measured at fair value    
Fair value 373,907 492,545
Fair Value Measurements Recurring    
Assets measured at fair value    
Cash equivalents 167,711 197,543
Fair value 649,933 828,233
Total fair value of assets 817,644 1,025,776
Liabilities measured at fair value    
Warrant liability 40,871 62,936
Earnout shares liability 69,281 95,969
Total fair value of liabilities 110,152 158,905
Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Warrant liability 9,833 21,097
Fair Value Measurements Recurring | Common stock warrant liabilities (Private)    
Liabilities measured at fair value    
Warrant liability 6,573 14,105
Fair Value Measurements Recurring | Common Stock Warrant Liabilities Delta    
Liabilities measured at fair value    
Warrant liability 24,465 27,734
Fair Value Measurements Recurring | Money market funds    
Assets measured at fair value    
Cash equivalents 167,711 197,543
Fair Value Measurements Recurring | Term deposits    
Assets measured at fair value    
Fair value 30,351 42,538
Fair Value Measurements Recurring | Asset backed securities    
Assets measured at fair value    
Fair value 50,769 27,469
Fair Value Measurements Recurring | Government debt securities    
Assets measured at fair value    
Fair value 194,906 265,681
Fair Value Measurements Recurring | Corporate debt securities    
Assets measured at fair value    
Fair value 373,907 492,545
Fair Value Measurements Recurring | Level 1    
Assets measured at fair value    
Cash equivalents 167,711 197,543
Fair value 0 0
Total fair value of assets 167,711 197,543
Liabilities measured at fair value    
Warrant liability 9,833 21,097
Earnout shares liability 0 0
Total fair value of liabilities 9,833 21,097
Fair Value Measurements Recurring | Level 1 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Warrant liability 9,833 21,097
Fair Value Measurements Recurring | Level 1 | Common stock warrant liabilities (Private)    
Liabilities measured at fair value    
Warrant liability 0 0
Fair Value Measurements Recurring | Level 1 | Common Stock Warrant Liabilities Delta    
Liabilities measured at fair value    
Warrant liability 0 0
Fair Value Measurements Recurring | Level 1 | Money market funds    
Assets measured at fair value    
Cash equivalents 167,711 197,543
Fair Value Measurements Recurring | Level 1 | Term deposits    
Assets measured at fair value    
Fair value 0 0
Fair Value Measurements Recurring | Level 1 | Asset backed securities    
Assets measured at fair value    
Fair value 0 0
Fair Value Measurements Recurring | Level 1 | Government debt securities    
Assets measured at fair value    
Fair value 0 0
Fair Value Measurements Recurring | Level 1 | Corporate debt securities    
Assets measured at fair value    
Fair value 0 0
Fair Value Measurements Recurring | Level 2    
Assets measured at fair value    
Cash equivalents 0 0
Fair value 649,933 828,233
Total fair value of assets 649,933 828,233
Liabilities measured at fair value    
Warrant liability 6,573 14,105
Earnout shares liability 0 0
Total fair value of liabilities 6,573 14,105
Fair Value Measurements Recurring | Level 2 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Warrant liability 0 0
Fair Value Measurements Recurring | Level 2 | Common stock warrant liabilities (Private)    
Liabilities measured at fair value    
Warrant liability 6,573 14,105
Fair Value Measurements Recurring | Level 2 | Common Stock Warrant Liabilities Delta    
Liabilities measured at fair value    
Warrant liability 0 0
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    
Fair value 30,351 42,538
Fair Value Measurements Recurring | Level 2 | Asset backed securities    
Assets measured at fair value    
Fair value 50,769 27,469
Fair Value Measurements Recurring | Level 2 | Government debt securities    
Assets measured at fair value    
Fair value 194,906 265,681
Fair Value Measurements Recurring | Level 2 | Corporate debt securities    
Assets measured at fair value    
Fair value 373,907 492,545
Fair Value Measurements Recurring | Level 3    
Assets measured at fair value    
Cash equivalents 0 0
Fair value 0 0
Total fair value of assets 0 0
Liabilities measured at fair value    
Warrant liability 24,465 27,734
Earnout shares liability 69,281 95,969
Total fair value of liabilities 93,746 123,703
Fair Value Measurements Recurring | Level 3 | Common stock warrant liabilities (Public)    
Liabilities measured at fair value    
Warrant liability 0 0
Fair Value Measurements Recurring | Level 3 | Common stock warrant liabilities (Private)    
Liabilities measured at fair value    
Warrant liability 0 0
Fair Value Measurements Recurring | Level 3 | Common Stock Warrant Liabilities Delta    
Liabilities measured at fair value    
Warrant liability 24,465 27,734
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    
Fair value 0 0
Fair Value Measurements Recurring | Level 3 | Asset backed securities    
Assets measured at fair value    
Fair value 0 0
Fair Value Measurements Recurring | Level 3 | Government debt securities    
Assets measured at fair value    
Fair value 0 0
Fair Value Measurements Recurring | Level 3 | Corporate debt securities    
Assets measured at fair value    
Fair value $ 0 $ 0