Unaudited Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) - USD ($) $ in Thousands | Total | Series A redeemable convertible preferred stock | Series B redeemable convertible preferred stock | Common Stock | Additional Paid-In Capital | Accumulated Deficit | Accumulated Other Comprehensive Income (Loss) |
Redeemable convertible preferred stock, beginning balance (shares) at Dec. 31, 2017 | | 44,500,001 | 0 | | | | |
Redeemable convertible preferred stock beginning balance at Dec. 31, 2017 | | $ 47,102 | $ 0 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | |
Accretion of redeemable preferred stock to redemption value | | $ 9,413 | $ 1,420 | | | | |
Sale of Series B preferred stock, net of issuance costs (shares) | | | 60,000,000 | | | | |
Sale of Series B preferred stock, net of issuance costs | | | $ 119,830 | | | | |
Redeemable convertible preferred stock, ending balance (shares) at Mar. 31, 2018 | | 44,500,001 | 60,000,000 | | | | |
Redeemable convertible preferred stock ending balance at Mar. 31, 2018 | | $ 56,515 | $ 121,250 | | | | |
Beginning balance (shares) at Dec. 31, 2017 | | | | 435,630 | | | |
Beginning balance at Dec. 31, 2017 | $ (26,324) | | | $ 0 | $ 0 | $ (26,324) | $ 0 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | |
Reclassification of shares issued and previously subject to repurchase (shares) | | | | 39,778 | | | |
Exercise of stock options and warrants (shares) | | | | 123,270 | | | |
Stock-based compensation expense | 283 | | | | 283 | | |
Unrealized gain (loss) on investments | (17) | | | | | | (17) |
Accretion of redeemable preferred stock to redemption value | (10,833) | | | | (387) | (10,446) | |
Net loss | (3,986) | | | | | (3,986) | |
Reclassification of shares issued and previously subject to repurchase | 13 | | | | 13 | | |
Exercise of stock options and warrants | 91 | | | | 91 | | |
Ending balance (shares) at Mar. 31, 2018 | | | | 598,678 | | | |
Ending balance at Mar. 31, 2018 | (40,773) | | | $ 0 | 0 | (40,756) | (17) |
Redeemable convertible preferred stock, beginning balance (shares) at Dec. 31, 2017 | | 44,500,001 | 0 | | | | |
Redeemable convertible preferred stock beginning balance at Dec. 31, 2017 | | $ 47,102 | $ 0 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | |
Accretion of redeemable preferred stock to redemption value | 21,978 | | | | | | |
Redeemable convertible preferred stock, ending balance (shares) at Jun. 30, 2018 | | 44,500,001 | 62,500,000 | | | | |
Redeemable convertible preferred stock ending balance at Jun. 30, 2018 | | $ 61,410 | $ 132,500 | | | | |
Beginning balance (shares) at Dec. 31, 2017 | | | | 435,630 | | | |
Beginning balance at Dec. 31, 2017 | (26,324) | | | $ 0 | 0 | (26,324) | 0 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | |
Net loss | (10,173) | | | | | | |
Ending balance (shares) at Jun. 30, 2018 | | | | 641,227 | | | |
Ending balance at Jun. 30, 2018 | (57,725) | | | $ 0 | 0 | (57,723) | (2) |
Redeemable convertible preferred stock, beginning balance (shares) at Mar. 31, 2018 | | 44,500,001 | 60,000,000 | | | | |
Redeemable convertible preferred stock beginning balance at Mar. 31, 2018 | | $ 56,515 | $ 121,250 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | |
Accretion of redeemable preferred stock to redemption value | | $ 4,895 | $ 6,250 | | | | |
Sale of Series B preferred stock, net of issuance costs (shares) | | | 2,500,000 | | | | |
Sale of Series B preferred stock, net of issuance costs | | | $ 5,000 | | | | |
Redeemable convertible preferred stock, ending balance (shares) at Jun. 30, 2018 | | 44,500,001 | 62,500,000 | | | | |
Redeemable convertible preferred stock ending balance at Jun. 30, 2018 | | $ 61,410 | $ 132,500 | | | | |
Beginning balance (shares) at Mar. 31, 2018 | | | | 598,678 | | | |
Beginning balance at Mar. 31, 2018 | (40,773) | | | $ 0 | 0 | (40,756) | (17) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | |
Reclassification of shares issued and previously subject to repurchase (shares) | | | | 39,775 | | | |
Exercise of stock options and warrants (shares) | | | | 2,774 | | | |
Stock-based compensation expense | 350 | | | | 350 | | |
Unrealized gain (loss) on investments | 15 | | | | | | 15 |
Accretion of redeemable preferred stock to redemption value | (11,145) | | | | (365) | (10,780) | |
Net loss | (6,187) | | | | | (6,187) | |
Reclassification of shares issued and previously subject to repurchase | 13 | | | | 13 | | |
Exercise of stock options and warrants | 2 | | | | 2 | | |
Ending balance (shares) at Jun. 30, 2018 | | | | 641,227 | | | |
Ending balance at Jun. 30, 2018 | (57,725) | | | $ 0 | 0 | (57,723) | (2) |
Redeemable convertible preferred stock, beginning balance (shares) at Dec. 31, 2018 | | 44,500,001 | 62,500,000 | | | | |
Redeemable convertible preferred stock beginning balance at Dec. 31, 2018 | $ 209,230 | $ 72,980 | $ 136,250 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | |
Accretion of redeemable preferred stock to redemption value | | $ 34,789 | $ 15,111 | | | | |
Conversion of shares upon IPO (in shares) | | (44,500,001) | (62,500,000) | | | | |
Conversion of shares upon IPO | | $ (107,769) | $ (151,361) | | | | |
Redeemable convertible preferred stock, ending balance (shares) at Mar. 31, 2019 | | 0 | 0 | | | | |
Redeemable convertible preferred stock ending balance at Mar. 31, 2019 | | $ 0 | $ 0 | | | | |
Beginning balance (shares) at Dec. 31, 2018 | 726,994 | | | 726,994 | | | |
Beginning balance at Dec. 31, 2018 | $ (85,696) | | | $ 0 | 0 | (85,590) | (106) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | |
Reclassification of shares issued and previously subject to repurchase (shares) | | | | 39,776 | | | |
Exercise of stock options and warrants (shares) | | | | 124 | | | |
Stock-based compensation expense | 1,141 | | | | 1,141 | | |
Unrealized gain (loss) on investments | 107 | | | | | | 107 |
Accretion of redeemable preferred stock to redemption value | (49,900) | | | | (498) | (49,402) | |
Conversion of shares upon IPO (shares) | | | | 17,275,299 | | | |
Conversion of shares upon IPO | 259,130 | | | $ 2 | 259,128 | | |
Initial public offering, net of issuance costs (in shares) | | | | 5,750,000 | | | |
Initial public offering, net of issuance costs | 77,168 | | | | | | |
Net loss | (9,903) | | | | | (9,903) | |
Ending balance (shares) at Mar. 31, 2019 | | | | 23,792,193 | | | |
Ending balance at Mar. 31, 2019 | 192,047 | | | $ 2 | 336,939 | (144,895) | 1 |
Redeemable convertible preferred stock, beginning balance (shares) at Dec. 31, 2018 | | 44,500,001 | 62,500,000 | | | | |
Redeemable convertible preferred stock beginning balance at Dec. 31, 2018 | 209,230 | $ 72,980 | $ 136,250 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | |
Accretion of redeemable preferred stock to redemption value | $ 49,900 | | | | | | |
Redeemable convertible preferred stock, ending balance (shares) at Jun. 30, 2019 | | 0 | 0 | | | | |
Redeemable convertible preferred stock ending balance at Jun. 30, 2019 | | $ 0 | $ 0 | | | | |
Beginning balance (shares) at Dec. 31, 2018 | 726,994 | | | 726,994 | | | |
Beginning balance at Dec. 31, 2018 | $ (85,696) | | | $ 0 | 0 | (85,590) | (106) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | |
Net loss | $ (20,966) | | | | | | |
Ending balance (shares) at Jun. 30, 2019 | 23,856,689 | | | 23,856,689 | | | |
Ending balance at Jun. 30, 2019 | $ 182,636 | | | $ 2 | 338,380 | (155,958) | 212 |
Redeemable convertible preferred stock, beginning balance (shares) at Mar. 31, 2019 | | 0 | 0 | | | | |
Redeemable convertible preferred stock beginning balance at Mar. 31, 2019 | | $ 0 | $ 0 | | | | |
Redeemable convertible preferred stock, ending balance (shares) at Jun. 30, 2019 | | 0 | 0 | | | | |
Redeemable convertible preferred stock ending balance at Jun. 30, 2019 | | $ 0 | $ 0 | | | | |
Beginning balance (shares) at Mar. 31, 2019 | | | | 23,792,193 | | | |
Beginning balance at Mar. 31, 2019 | 192,047 | | | $ 2 | 336,939 | (144,895) | 1 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | |
Reclassification of shares issued and previously subject to repurchase (shares) | | | | 39,775 | | | |
Exercise of stock options and warrants (shares) | | | | 24,721 | | | |
Stock-based compensation expense | 1,444 | | | | 1,444 | | |
Unrealized gain (loss) on investments | 211 | | | | | | 211 |
Initial public offering, net of issuance costs | (34) | | | | (34) | | |
Net loss | (11,063) | | | | | (11,063) | |
Reclassification of shares issued and previously subject to repurchase | 10 | | | | 10 | | |
Exercise of stock options and warrants | $ 21 | | | | 21 | | |
Ending balance (shares) at Jun. 30, 2019 | 23,856,689 | | | 23,856,689 | | | |
Ending balance at Jun. 30, 2019 | $ 182,636 | | | $ 2 | $ 338,380 | $ (155,958) | $ 212 |