Fair Value Measurements - Assumptions used to record the fair value of the warrants (Details) - Valuation technique, option pricing model
Dec. 31, 2021
Dec. 31, 2020
Risk-free interest rate    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Warrants and rights outstanding, measurement input 0.0097 0.0036
Dividend yield    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Warrants and rights outstanding, measurement input 0 0
Expected life (in years)    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Warrants and rights outstanding, term 2 years 11 months 23 days 3 years 11 months 23 days
Expected volatility    
Fair Value Measurement Inputs and Valuation Techniques [Line Items]    
Warrants and rights outstanding, measurement input 0.9610 0.9863