Quarterly report pursuant to Section 13 or 15(d)

Fair Value Measurements - Fair Value Recurring (Details)

v3.23.1
Fair Value Measurements - Fair Value Recurring (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Mar. 31, 2023
Mar. 31, 2022
Dec. 31, 2022
Property, Plant and Equipment [Line Items]      
Derivative liabilities $ 3,269   $ 1,892
Mark-to-market adjustments of derivatives liabilities, income (expense) 6,100 $ (108,600)  
Fair Value, Recurring      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 67,854   31,993
Fair Value, Recurring | Convertible Senior Secured Notes      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 64,585   30,100
Fair Value, Recurring | Earnout Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 2,461   1,459
Fair Value, Recurring | Switchback Founder Earn Back Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 217   125
Fair Value, Recurring | Warrants      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 591   309
Fair Value, Recurring | Level 1      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 190   108
Fair Value, Recurring | Level 1 | Convertible Senior Secured Notes      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Mark-to-market adjustments of derivatives liabilities, income (expense) 4,800   0
Fair Value, Recurring | Level 1 | Earnout Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 1 | Switchback Founder Earn Back Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 1 | Warrants      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 190   108
Fair Value, Recurring | Level 2      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 2 | Convertible Senior Secured Notes      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 2 | Earnout Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 2 | Switchback Founder Earn Back Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 2 | Warrants      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 0   0
Fair Value, Recurring | Level 3      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 67,664   31,885
Fair Value, Recurring | Level 3 | Convertible Senior Secured Notes      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 64,585   30,100
Fair Value, Recurring | Level 3 | Earnout Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 2,461   1,459
Fair Value, Recurring | Level 3 | Switchback Founder Earn Back Shares      
Property, Plant and Equipment [Line Items]      
Derivative liabilities 217   125
Fair Value, Recurring | Level 3 | Warrants      
Property, Plant and Equipment [Line Items]      
Derivative liabilities $ 401   $ 201