Loan Payable - Additional Information (Details) - USD ($) $ in Millions | Nov. 01, 2021 | Mar. 31, 2022 | May 29, 2020 |
Loan Agreement | Hercules Capital, Inc. | | | |
Debt Instrument [Line Items] | | | |
Earliest maturity date | | Jun. 1, 2022 | |
Latest maturity date | | Jan. 1, 2023 | |
Debt instrument, maturity date | | Jun. 1, 2025 | |
Debt instrument maturity date description | | following the interest only period, the Company will repay the principal balance and interest of the advances in equal monthly installments through June 1, 2024 | |
Interest rate description | | greater of either (i) (a) the prime rate as reported in The Wall Street Journal, plus (b) 6.40%, and (ii) 9.65% | |
Loan agreement, basis spread on variable rate | | 6.40% | |
Loan agreement, interest rate, stated percentage | | 9.65% | |
Prepayment fee description | | (a) 3.0% of the prepayment amount in the first year; (b) 2.0% of the prepayment amount in the second year; and (c) 1.0% of the prepayment amount in the third year. | |
Percentage of prepayment of loan amount for year first | | 3.00% | |
Percentage of prepayment of loan amount for year second | | 2.00% | |
Percentage of prepayment of loan amount for year third | | 1.00% | |
Percentage of loan amount prepayment charge | | 6.95% | |
Extinguishment of debt, amount | | $ 0.2 | |
Extinguishment of debt | | Agreement as of November 1, 2021, including the unamortized debt issuance costs, and the fair value of the Second Amendment was recorded as a $0.2 million loss on extinguishment of debt for the twelve months ended December 31, 2021 | |
Loan Agreement | Hercules Capital, Inc. | First Amendment to Loan and Security Agreement | | | |
Debt Instrument [Line Items] | | | |
Interest rate description | | greater of either (i) (a) the prime rate as reported in The Wall Street Journal, plus (b) 6.20%, and (ii) 9.45% | |
Loan agreement, basis spread on variable rate | | 6.20% | |
Loan agreement, interest rate, stated percentage | | 9.45% | |
Loan Agreement | Hercules Capital, Inc. | First Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | | | $ 30 |
Remaining loan amount | | | 20 |
End of term fee | | $ 2.1 | |
Percentage of aggregate amount of all loan advances payment | | 6.95% | |
Loan Agreement | Hercules Capital, Inc. | First Tranche | Other Income (Expense) | | | |
Debt Instrument [Line Items] | | | |
Interest expense, loan agreement | | $ 2.3 | |
Loan Agreement | Hercules Capital, Inc. | First Tranche | First Amendment to Loan and Security Agreement | | | |
Debt Instrument [Line Items] | | | |
Remaining loan amount | | 10 | |
Loan Agreement | Hercules Capital, Inc. | Second Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | | | 20 |
Loan Agreement | Hercules Capital, Inc. | Third Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | | | 30 |
Loan Agreement | Hercules Capital, Inc. | Fourth Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | | | 20 |
Loan Agreement | Hercules Capital, Inc. | Maximum | | | |
Debt Instrument [Line Items] | | | |
Loan amount | | | $ 100 |
Loan Agreement | Hercules Capital, Inc. | Minimum | First Amendment to Loan and Security Agreement | | | |
Debt Instrument [Line Items] | | | |
Loan amount | | $ 40 | |
Second Amendment | | | |
Debt Instrument [Line Items] | | | |
Percentage of net product revenue | | 65.00% | |
Debt instrument minimum revenue of covenant market capitalization amount | | $ 750 | |
Debt instrument percentage of minimum revenue of covenant unrestricted cash | | 50.00% | |
Debt instrument percentage of unrestricted cash | | 100.00% | |
Second Amendment | Hercules Capital, Inc. | | | |
Debt Instrument [Line Items] | | | |
Earliest maturity date | Dec. 1, 2024 | | |
Debt instrument, maturity date | Dec. 1, 2025 | | |
Debt instrument maturity date description | | Following the interest only period, the Company will repay the principal balance and interest of the advances in equal monthly installments through November 1, 2026. | |
Interest rate description | | greater of either (i) (a) the prime rate as reported in The Wall Street Journal, plus (b) 5.90%, and (ii) 9.15%. | |
Loan agreement, basis spread on variable rate | 5.90% | | |
Loan agreement, interest rate, stated percentage | 9.15% | | |
Prepayment fee description | | 3.0% of the prepayment amount in the first year from the closing of the Second Amendment; (b) 2.0% of the prepayment amount in the second year from the closing of the Second Amendment; and (c) 1.0% of the prepayment amount in the third year | |
Percentage of prepayment of loan amount for year first | 3.00% | | |
Percentage of prepayment of loan amount for year second | 2.00% | | |
Percentage of prepayment of loan amount for year third | 1.00% | | |
Percentage of loan amount prepayment charge | 6.75% | | |
Second Amendment | Hercules Capital, Inc. | First Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | $ 100 | | |
Remaining loan amount | 25 | | |
End of term fee | $ 2.1 | | |
Percentage of aggregate amount of all loan advances payment | 6.75% | | |
Debt instrument additional borrowing amount | $ 45 | | |
Second Amendment | Hercules Capital, Inc. | Second Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | 20 | | |
Debt instrument available upon achievement of net product revenue | $ 50 | | |
Debt instrument trailing net product revenue | 6 months | | |
Second Amendment | Hercules Capital, Inc. | Third Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | $ 15 | | |
Second Amendment | Hercules Capital, Inc. | Fourth Tranche | | | |
Debt Instrument [Line Items] | | | |
Loan amount | 15 | | |
Second Amendment | Hercules Capital, Inc. | Maximum | | | |
Debt Instrument [Line Items] | | | |
Loan amount | $ 150 | | |