Quarterly report pursuant to Section 13 or 15(d)

Debt and Interest (Narrative) (Details)

v3.22.2
Debt and Interest (Narrative) (Details)
3 Months Ended 6 Months Ended
Mar. 04, 2022
USD ($)
$ / shares
shares
Jan. 12, 2022
USD ($)
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Dec. 31, 2021
USD ($)
Aug. 29, 2020
$ / shares
shares
Aug. 27, 2020
USD ($)
Debt Instrument [Line Items]                  
Total notes payable     $ 85,611,000   $ 85,611,000   $ 42,937,000    
Unamortized debt discount fees     10,439,000   10,439,000   7,063,000    
Debt instrument, interest expense     2,597,000 $ 2,166,000 4,558,000 $ 4,046,000      
Fair Value Adjustment of Warrants       3,925,000   3,925,000      
Amortization of debt discount         946,000 903,000      
East West Bank ("EWB Loan") [Member]                  
Debt Instrument [Line Items]                  
Amount outstanding             $ 800,000    
Maximum borrowing capacity   $ 7,500,000              
EWB Amendment [Member]                  
Debt Instrument [Line Items]                  
Amount outstanding     0   0        
Debt instrument term   4 years              
Maximum borrowing capacity   $ 10,000,000.0              
Prime Rate [Member] | EWB Amendment [Member]                  
Debt Instrument [Line Items]                  
Basis spread on variable rate   0.70%              
Letter of Credit [Member]                  
Debt Instrument [Line Items]                  
Debt instrument, interest expense     11,000 14,000 26,000 23,000      
Oaktree Note [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount                 $ 60,000,000.0
Debt instrument, interest expense     $ 1,390,000 1,669,000 $ 2,765,000 3,319,000      
Debt instrument, stated interest rate     11.00%   11.00%        
Exercise price of warrants | $ / shares               $ 3.20  
Oaktree Note [Member] | Maximum [Member]                  
Debt Instrument [Line Items]                  
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | shares               1,749,450  
EWB Term Loan [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount   $ 20,000,000.0              
Debt instrument, stated interest rate     7.00%   7.00%        
Debt instrument term   4 years              
EWB Term Loan [Member] | Debt Tranche 1 [Member]                  
Debt Instrument [Line Items]                  
Proceeds from debt   $ 15,000,000.0              
Debt instrument face amount   15,000,000.0              
EWB Term Loan [Member] | Debt Tranche 2 [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount   $ 5,000,000.0              
EWB Term Loan [Member] | Prime Rate [Member]                  
Debt Instrument [Line Items]                  
Basis spread on variable rate   1.73%              
Runway Note [Member]                  
Debt Instrument [Line Items]                  
Proceeds from debt $ 30,000,000.0                
Debt instrument face amount $ 75,000,000.0                
Debt, effective interest rate     10.21%   10.21%        
Debt instrument, stated interest rate 8.75%   10.21%   10.21%        
Debt prepayment penalties $ 1,100,000                
Percentage of upfront commitment fee 1.00%                
Upfront Commitment Fee $ 400,000                
Advisory and legal fees $ 2,300,000                
Percent of Outstanding Loan Principal Amount for Calculation of Repayment Change 3.50%                
Legal fees $ 2,300,000                
Deposit on commitment fee 100,000                
Amortization of debt discount       $ 200,000   $ 200,000      
Runway Note [Member] | Financial Milestones [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount $ 45,000,000.0                
Runway Note [Member] | LIBOR Rate [Member]                  
Debt Instrument [Line Items]                  
Basis spread on variable rate 0.50%                
Runway Note [Member] | Minimum [Member]                  
Debt Instrument [Line Items]                  
Debt, effective interest rate 9.25%                
Warrants to Purchase Common Stock [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Warrants, fair value $ 400,000                
Number of shares called by warrants | shares 748,036                
Exercise price of warrants | $ / shares $ 0.8021                
Warrants to Purchase Common Stock [Member] | Risk Free Interest Rate [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Fair value of warrants assumptions 1.74                
Warrants to Purchase Common Stock [Member] | Expected Volatility [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Fair value of warrants assumptions 57.3                
Warrants to Purchase Common Stock [Member] | Expected Term [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Fair value of warrants assumptions 10