Quarterly report pursuant to Section 13 or 15(d)

Fair Value Measurement - Schedule of Assets and Liabilities at Fair Value on a Recurring Basis (Details)

v3.22.1
Fair Value Measurement - Schedule of Assets and Liabilities at Fair Value on a Recurring Basis (Details) - USD ($)
$ in Thousands
Mar. 31, 2022
Dec. 31, 2021
Debt derivative liabilities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Debt derivative liabilities $ 5,310 $ 5,562
Recurring    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 60,216 73,342
Total liabilities 5,310 5,562
Recurring | Money market funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 7,358 22,012
Recurring | U.S. government securities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 17,988 12,081
Recurring | Commercial paper    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 34,870 39,249
Recurring | Debt derivative liabilities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Debt derivative liabilities 5,310 5,562
Recurring | (Level 1)    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 25,346 34,093
Total liabilities 0 0
Recurring | (Level 1) | Money market funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 7,358 22,012
Recurring | (Level 1) | U.S. government securities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 17,988 12,081
Recurring | (Level 1) | Commercial paper    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Recurring | (Level 1) | Debt derivative liabilities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Debt derivative liabilities 0 0
Recurring | (Level 2)    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 34,870 39,249
Total liabilities 0 0
Recurring | (Level 2) | Money market funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Recurring | (Level 2) | U.S. government securities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Recurring | (Level 2) | Commercial paper    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 34,870 39,249
Recurring | (Level 2) | Debt derivative liabilities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Debt derivative liabilities 0 0
Recurring | (Level 3)    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Total liabilities 5,310 5,562
Recurring | (Level 3) | Money market funds    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Recurring | (Level 3) | U.S. government securities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Recurring | (Level 3) | Commercial paper    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Total assets 0 0
Recurring | (Level 3) | Debt derivative liabilities    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Debt derivative liabilities $ 5,310 $ 5,562