Private Placement and Registered Direct Offerings - Additional Information (Detail) | Sep. 05, 2019USD ($)$ / sharesshares | Jun. 12, 2019USD ($)$ / sharesshares | Jun. 11, 2018USD ($)$ / sharesshares | May 08, 2018$ / sharesshares | Apr. 23, 2018$ / sharesshares | Mar. 22, 2018$ / sharesshares | Mar. 19, 2018 | Sep. 30, 2019USD ($)shares | Aug. 31, 2019shares | Sep. 30, 2019USD ($) | Jun. 30, 2018USD ($) | Dec. 31, 2019USD ($)$ / sharesshares | Dec. 31, 2018USD ($) | Dec. 20, 2019shares | Aug. 27, 2019shares | Feb. 15, 2019shares | May 07, 2018USD ($) |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | | | | | | | $ 9.18 | | | | | |
Period of trading days taken for calculation of volume weighted average price | | | | | | | | | | | | 3 days | | | | | |
Percentage of volume weighted average price of common stock | | | | | | | | | | | | 80.00% | | | | | |
Percentage of volume weighted average price of warrant | | | | | | | | | | | | 110.00% | | | | | |
Proceeds from issuance of private placement | | | | | | | | | | | | $ 10,000,000 | | | | | |
Offering costs | | | | | | | | | | | | $ 226,000 | | | | | |
Stock price | $ / shares | | | | | | | | | | | | $ 32.52 | | | | | |
Common stock no par value | $ / shares | | | | | | | | | | | | | | | | | |
Initial loss recognized on liabilities | | | | | | | | | | | | $ 4,000,000 | | | | | |
Offering cost, expense | | | | | | | | | | | | 708,000 | $ 2,555,000 | | | | |
Issuance of placement agent warrants | | | | | | | | | | | | | 526,000 | | | | |
Proceeds from issuance initial public offering | | | | | | | | | | | | 50,000,000 | | | | | |
Fair value of common stock warrants at inception | | | | | | | | | | | | 9,000,000 | | | | | |
Cash proceeds | | | | | | | | | | | | $ 5,269,000 | | | | | |
Warrant outstanding | shares | | | | | | | | | | | | 4,170,651 | | | | | |
Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Issuance of placement agent warrants | | | | | | | | | | | | $ 526,000 | | | | | |
Placement Agent [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | 15,038 | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | | | | | | | $ 41.5625 | | | | | |
Offering costs | | | | | | | | | | | | $ 1,800,000 | | | | | |
Warrant, exercisable term | | | | | | | | | | | | 5 years | | | | | |
Offering cost, expense | | | | | | | | | | | | $ 1,800,000 | | | | | |
June 2018 Placement Agent Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | 69,617 | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | | | | | | | $ 12.568 | | | | | |
Offering costs | | | | | | | | | | | | $ 1,600,000 | | | | | |
Aggregate agent fee paid | | | | | | | | | | | | $ 980,000 | | | | | |
Warrant, exercisable term | | | | | | | | | | | | 5 years | | | | | |
Offering cost, expense | | | | | | | | | | | | | 721,000 | | | | |
Issuance of placement agent warrants | | | | | | | | | | | | $ 427,000 | | | | | |
Offering costs portion attributable to common stock | | | | | | | | | | | | $ 912,000 | | | | | |
June 2018 Placement Agent Warrants [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | | | 69,617 | |
March 2018 Placement Agent [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | | | 15,038 | |
June 2018 Private Placement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | | | 1,392,345 | |
June 2019 Placement Agent Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | 74,479 | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | | | | | | | $ 6.2938 | | | | | |
Offering costs | | | | | | | | | | | | $ 115,000 | | | | | |
Aggregate agent fee paid | | | | | | | | | | | | $ 525,000 | | | | | |
Warrant, exercisable term | | | | | | | | | | | | 5 years | | | | | |
Offering cost, expense | | | | | | | | | | | | | 377,000 | | | | |
Issuance of placement agent warrants | | | | | | | | | | | | $ 198,000 | | | | | |
Offering costs portion attributable to common stock | | | | | | | | | | | | 489,000 | | | | | |
June 2019 Placement Agent Warrants [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | | 74,479 | | |
Offering costs | | | | | | | | | | | | $ 900,000 | | | | | |
September 2019 Placement Agent Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | 65,942 | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | | | | | | | $ 9.4781 | | | | | |
Offering costs | | | | | | | | | | | | $ 113,000 | | | | | |
Aggregate agent fee paid | | | | | | | | | | | | $ 700,000 | | | | | |
Warrant, exercisable term | | | | | | | | | | | | 5 years | | | | | |
Offering cost, expense | | | | | | | | | | | | $ 331,000 | | | | | |
Issuance of placement agent warrants | | | | | | | | | | | | 326,000 | | | | | |
Offering costs portion attributable to common stock | | | | | | | | | | | | 808,000 | | | | | |
September 2019 Placement Agent Warrants [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | 65,942 | | | |
Offering costs | | | | | | | | | | | | $ 1,100,000 | | | | | |
June 2019 Private Placement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | | 1,489,575 | | |
September 2019 Purchase Agreement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | | | | | | | | | 659,414 | | | |
Measurement Input, Price Volatility [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 1 | | | | | |
Measurement Input, Risk Free Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 0.0263 | | | | | |
Black Scholes Merton Model [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Stock price | $ / shares | | | | | | | | | | | | $ 8.20 | | | | | |
Black Scholes Merton Model [Member] | Measurement Input, Price Volatility [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 1.08 | | | | | |
Black Scholes Merton Model [Member] | Measurement Input, Risk Free Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 0.0283 | | | | | |
Common Stock Adjustment Feature Liability [Member] | Monte Carlo Simulation Model [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Fair value of liabilities | | | | | | | | | | | | $ 3,800,000 | | | | | |
March 2018 Warrant Liability [Member] | Monte Carlo Simulation Model [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Fair value of liabilities | | | | | | | | | | | | 10,200,000 | | | | | |
June 2018 Warrant Liability [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Liabilities marked to market value | | | | | | | | | | | | 5,400,000 | 2,700,000 | | | | |
Additional income (loss) on liabilities | | | | | | | | | | | | (2,700,000) | 6,300,000 | | | | |
Proceeds from issuance of common stock | | | | | | | | | | | | 5,000,000 | | | | | |
Proceeds from issuance of common stock and warrants gross | | | | | | | | | | | | 14,000,000 | | | | | |
June 2019 Warrant Liability [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Liabilities marked to market value | | | | | | | | | | | | 2,000,000 | | | | | |
Additional income (loss) on liabilities | | | | | | | | | | $ (6,500,000) | | 1,700,000 | | | | | |
Proceeds from issuance of common stock | | | | | | | | | | | | 3,300,000 | | | | | |
Proceeds from issuance of common stock and warrants gross | | | | | | | | | | | | 7,500,000 | | | | | |
Fair value of common stock warrants at inception | | | | | | | | | | | | 4,200,000 | | | | | |
Investors exercised warrants | shares | | | | | | | | 1,053,745 | 1,053,745 | | | | | | | | |
Cash proceeds | | | | | | | | | | 5,300,000 | | | | | | | |
Exercised warrants | | | | | | | | | | | | 7,000,000 | | | | | |
Unexercised warrants | | | | | | | | | | | | $ 2,900,000 | | | | | |
Warrant outstanding | shares | | | | | | | | | | | | 435,830 | | | | | |
June 2019 Warrant Liability [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Liabilities marked to market value | | | | | | | | $ 9,900,000 | | $ 9,900,000 | | | | | | | |
June 2019 Warrant Liability [Member] | Black Scholes Merton Model [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Stock price | $ / shares | | | | | | | | | | | | $ 3.66 | | | | | |
June 2019 Warrant Liability [Member] | Black Scholes Merton Model [Member] | Measurement Input, Price Volatility [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 1.08 | | | | | |
June 2019 Warrant Liability [Member] | Black Scholes Merton Model [Member] | Measurement Input, Risk Free Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 0.0188 | | | | | |
September 2019 Warrant Liability [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Liabilities marked to market value | | | | | | | | | | | | $ 2,900,000 | | | | | |
Additional income (loss) on liabilities | | | | | | | | | | | | 500,000 | | | | | |
Proceeds from issuance of common stock | | | | | | | | | | | | 6,600,000 | | | | | |
Proceeds from issuance of common stock and warrants gross | | | | | | | | | | | | 10,000,000 | | | | | |
Fair value of common stock warrants at inception | | | | | | | | | | | | $ 3,400,000 | | | | | |
September 2019 Warrant Liability [Member] | Black Scholes Merton Model [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Stock price | $ / shares | | | | | | | | | | | | $ 6.34 | | | | | |
September 2019 Warrant Liability [Member] | Black Scholes Merton Model [Member] | Measurement Input, Price Volatility [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 1.16 | | | | | |
September 2019 Warrant Liability [Member] | Black Scholes Merton Model [Member] | Measurement Input, Risk Free Interest Rate [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Volatility rate | | | | | | | | | | | | 0.0160 | | | | | |
Minimum [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | | | | | | | $ 8.322 | | | | | |
Purchase price of common stock | $ / shares | | | | | | | | | | | | $ 8.322 | | | | | |
June 2018 Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Offering costs | | | | | | | | | | | | $ 1,200,000 | | | | | |
Proceeds from issuance of common stock and warrants gross | | | | | | | | | | | | 14,000,000 | | | | | |
Proceeds from issuance of common stock and warrants net | | | | | | | | | | | | 12,800,000 | | | | | |
Securities Purchase Agreement [Member] | June 2019 Offering [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Offering costs | | | | | | | | | | | | 663,000 | | | | | |
Proceeds from issuance of common stock and warrants gross | | | | | | | | | | | | 7,500,000 | | | | | |
Proceeds from issuance of common stock and warrants net | | | | | | | | | | | | 6,800,000 | | | | | |
Securities Purchase Agreement [Member] | September 2019 Offering [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Offering costs | | | | | | | | | | | | 799,000 | | | | | |
Proceeds from issuance of common stock and warrants gross | | | | | | | | | | | | 10,000,000 | | | | | |
Proceeds from issuance of common stock and warrants net | | | | | | | | | | | | 9,200,000 | | | | | |
March 2018 Private Placement [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Proceeds from issuance of private placement | | | | | | | | | | | | 8,700,000 | | | | | |
Proceeds from offering costs of private placement, gross | | | | | | | | | | | | 10,000,000 | | | | | |
Offering costs | | | | | | | | | | | | 1,300,000 | | | | | |
Liabilities marked to market value | | | | | | | | | | | | | | | | | $ 8,400,000 |
Additional income (loss) on liabilities | | | | | | | | | | | $ (2,400,000) | | | | | | |
Reclassification of financing liabilities to stockholders equity | | | | | | | | | | | $ 8,400,000 | | | | | | |
March 2018 Private Placement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Offering costs | | | | | | | | | | | | 458,000 | | | | | |
March 2018 Private Placement [Member] | Placement Agent [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Aggregate agent fee paid | | | | | | | | | | | | 850,000 | | | | | |
March 2018 Private Placement [Member] | March 2018 Warrant Liability [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Liabilities marked to market value | | | | | | | | | | | | 4,600,000 | 2,400,000 | | | | |
Additional income (loss) on liabilities | | | | | | | | | | | | (2,200,000) | $ 7,900,000 | | | | |
March 2018 Private Placement [Member] | March 2018 Securities Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Shares of common stock issued | shares | | | | | | 300,752 | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | | 300,752 | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | | | | | $ 45.75 | | | | | | | | | | | |
Warrants expiration period | | | | | | | 5 years | | | | | | | | | | |
Applicable VWAP CalculationsI in Accordance with Registration [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Shares of common stock issued | shares | | | | | 798,754 | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | | 799,300 | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | | | | $ 17.2143 | | | | | | | | | | | | |
Applicable VWAP Calculations in Accordance Shareholder Approval [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Shares of common stock issued | shares | | | | 1,201,634 | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | | 1,282,832 | | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | | | $ 10.7258 | | | | | | | | | | | | | |
June 2018 Offering [Member] | June 2018 Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Shares of common stock issued | shares | | | 1,392,345 | | | | | | | | | | | | | | |
Stock price | $ / shares | | | $ 9.93 | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | | | $ 13,800,000 | | | | | | | | | | | | | | |
Offering closing period | | | Jun. 14, 2018 | | | | | | | | | | | | | | |
June 2018 Offering [Member] | Securities Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Shares of common stock issued | shares | | 1,489,575 | | | | | | | | | | | | | | | |
Stock price | $ / shares | | $ 4.91 | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | | $ 7,300,000 | | | | | | | | | | | | | | | |
Offering closing period | | Jun. 14, 2019 | | | | | | | | | | | | | | | |
June 2018 Private Placement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | | 1,392,345 | | | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | | $ 9.94 | | | | | | | | | | | | | | |
Warrants expiration period | | | 5 years 6 months | | | | | | | | | | | | | | |
Proceeds from offering costs of private placement, gross | | | $ 174,000 | | | | | | | | | | | | | | |
Class of warrant or right number of securities called by warrants or rights, per share | $ / shares | | | $ 0.125 | | | | | | | | | | | | | | |
June 2019 Private Placement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | | 1,489,575 | | | | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | | $ 5 | | | | | | | | | | | | | | | |
Warrants expiration period | | 5 years 6 months | | | | | | | | | | | | | | | |
Proceeds from offering costs of private placement, gross | | $ 186,000 | | | | | | | | | | | | | | | |
Class of warrant or right number of securities called by warrants or rights, per share | $ / shares | | $ 0.125 | | | | | | | | | | | | | | | |
September 2019 Offering [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Issuance of placement agent warrants | | | | | | | | | | | | $ 326,000 | | | | | |
September 2019 Offering [Member] | Securities Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Shares of common stock issued | shares | 1,318,828 | | | | | | | | | | | | | | | | |
Stock price | $ / shares | $ 7.52 | | | | | | | | | | | | | | | | |
Proceeds from issuance of common stock | $ 9,920,000 | | | | | | | | | | | | | | | | |
Offering closing period | Sep. 10, 2019 | | | | | | | | | | | | | | | | |
September 2019 Purchase Agreement [Member] | Warrants [Member] | | | | | | | | | | | | | | | | | |
Class Of Warrant Or Right [Line Items] | | | | | | | | | | | | | | | | | |
Warrant issued, shares of common stock called by warrant | shares | 659,414 | | | | | | | | | | | | | | | | |
Warrants issued, exercise price | $ / shares | $ 7.52 | | | | | | | | | | | | | | | | |
Warrants expiration period | 5 years 6 months | | | | | | | | | | | | | | | | |
Proceeds from offering costs of private placement, gross | $ 82,000 | | | | | | | | | | | | | | | | |
Class of warrant or right number of securities called by warrants or rights, per share | $ / shares | $ 0.125 | | | | | | | | | | | | | | | | |