v3.22.2.2
Stock-Based Compensation - Additional Information (Details) - USD ($)
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Apr. 30, 2022
Dec. 31, 2021
Jun. 30, 2018
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Stock options shares outstanding 9,552,954   9,552,954     6,945,184  
Common stock, shares issued 68,372,115   68,372,115     56,259,747  
Aggregate intrinsic value of exercised stock options $ 100,000   $ 1,309,000        
Payments of dividends of common stock     $ 0        
Expected dividend yield 0.00% 0.00% 0.00% 0.00%      
Maximum              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Expected term     6 years 6 years 1 month 6 days      
Minimum              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Expected term 6 years 5 years 10 months 24 days 5 years 3 months 18 days 5 years 6 months      
ESPP              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Expected term     6 months        
Employee options              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Unrecognized stock-based compensation cost $ 35,900,000   $ 35,900,000        
Estimated weighted average amortization period     2 years 7 months 6 days        
2022 Stock Inducement Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Stock options shares outstanding 443,500   443,500        
Shares granted         3,000,000    
Shares available for future issuance 2,556,500   2,556,500        
2018 Equity Incentive Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Stock options shares outstanding 7,554,352   7,554,352        
Shares available for future issuance 764,272   764,272        
Number of shares will increase automatically through every year on specified date     --01-01        
Number of shares increase automatically continuing through maximum period     beginning on January 1, 2019 and continuing through and including January 1, 2028        
Weighted average grant date fair value of options granted $ 6.99   $ 9.52        
2018 Equity Incentive Plan | Common Stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Maximum number of shares authorized available for issuance 1,600,692   1,600,692        
Increase in number of shares reserved for issuance as percentage of total number of shares of capital stock outstanding on last date of preceding calendar year     5.00%        
2018 Equity Incentive Plan | Maximum | Common Stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Maximum number of shares authorized available for issuance 4,000,000   4,000,000        
2018 Equity Incentive Plan | Incentive Stock Options | Maximum | Common Stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Maximum number of shares issued upon exercise of incentive stock options 12,500,000   12,500,000        
2018 Equity Incentive Plan | RSU Member              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Stock options shares outstanding 438,415   438,415        
option grant vesting period     3 years        
2015 Equity Incentive Plan              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
option grant vesting period     4 years        
Options to purchase of common stock outstanding 1,555,102   1,555,102        
2015 Equity Incentive Plan | Maximum              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Options granted expiry period     10 years        
2018 Employee Stock Purchase Plan | Common Stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Shares available for future issuance 1,042,157   1,042,157       200,000
Common stock, shares issued 291,067   291,067        
Authorized an offering beginning period     Nov. 16, 2018        
Authorized an offering ending period     May 15, 2019        
Authorized an additional offering beginning period     May 16, 2022        
2018 Employee Stock Purchase Plan | Maximum | Common Stock              
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]              
Percentage of annual increase in number of common stock shares     1.00%        
Annual increase in number of common stock shares     375,000        
Option price per share of common stock at fair market value     85.00%