Annual report pursuant to Section 13 and 15(d)

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

v3.20.4
Fair Value Measurement - Schedule of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details) - USD ($)
$ in Thousands
Dec. 31, 2020
Jun. 30, 2020
Dec. 31, 2019
Debt derivative liability      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Debt derivative liability   $ 2,387  
Recurring      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets $ 78,243   $ 87,597
Total liabilities 39,352    
Recurring | Money market funds      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 23,044   26,812
Recurring | U.S. government securities      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 12,123   4,544
Recurring | Corporate bonds      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 6,408   17,754
Recurring | Commercial paper      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 36,668   24,679
Recurring | Asset-backed securities      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets     13,808
Recurring | Oberland facility      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Oberland facility 36,855    
Recurring | Debt derivative liability      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Debt derivative liability 2,497    
Recurring | (Level 1)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 35,167   31,356
Total liabilities 0    
Recurring | (Level 1) | Money market funds      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 23,044   26,812
Recurring | (Level 1) | U.S. government securities      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 12,123   4,544
Recurring | (Level 1) | Corporate bonds      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 0   0
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) | Asset-backed securities      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets     0
Recurring | (Level 1) | Oberland facility      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Oberland facility 0    
Recurring | (Level 1) | Debt derivative liability      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Debt derivative liability 0    
Recurring | (Level 2)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 43,076   56,241
Total liabilities 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) | Corporate bonds      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 6,408   17,754
Recurring | (Level 2) | Commercial paper      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 36,668   24,679
Recurring | (Level 2) | Asset-backed securities      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets     13,808
Recurring | (Level 2) | Oberland facility      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Oberland facility 0    
Recurring | (Level 2) | Debt derivative liability      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Debt derivative liability 0    
Recurring | (Level 3)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets 0   0
Total liabilities 39,352    
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) | Corporate bonds      
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) | Asset-backed securities      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total assets     $ 0
Recurring | (Level 3) | Oberland facility      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Oberland facility 36,855    
Recurring | (Level 3) | Debt derivative liability      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Debt derivative liability $ 2,497