Condensed Statements of Convertible Preferred Stock and Shareholders' (Deficit) Equity - USD ($) $ in Thousands | Total | Convertible Preferred Stock | Common Stock | Additional Paid In Capital | Accumulated Other Comprehensive (Loss) Gain | Accumulated Deficit |
Beginning Balance at Dec. 31, 2017 | $ (224,616) | | $ 1 | $ 24,972 | $ (166) | $ (249,423) |
Beginning Balance, Shares at Dec. 31, 2017 | | | 12,208,731 | | | |
Convertible preferred stock, Beginning Balance at Dec. 31, 2017 | | $ 561,333 | | | | |
Convertible preferred stock, Beginning Balance, Shares at Dec. 31, 2017 | | 92,656,029 | | | | |
Adjustments to accumulated deficit for adoption of guidance on accounting for share-based payment transactions (unaudited) | | | | 140 | | (140) |
Issuance of common stock for cash upon exercise of stock options (unaudited) | 885 | | | 885 | | |
Issuance of common stock for cash upon exercise of stock options (unaudited), Shares | | | 512,696 | | | |
Issuance of Series E-1 convertible preferred stock for cash uponexercise of Series E-1 convertible preferred stock options at fair value (unaudited) | | $ 100 | | | | |
Issuance of Series E-1 convertible preferred stock for cash upon exercise of Series E-1 convertible preferred stock options at fair value (unaudited), Shares | | 134,065 | | | | |
Vested Series E-1 convertible preferred stock option forfeitures (unaudited) | 767 | | | 476 | | 291 |
Vested Series E-1 convertible preferred stock option forfeitures (unaudited) | | $ (767) | | | | |
Series E-1 convertible preferred stock option share-based compensation (unaudited) | 3 | | | 3 | | |
Adjustment to redemption value for vested Series E-1 convertiblepreferred stock options (unaudited) | (3) | | | (3) | | |
Adjustment to redemption value for vested Series E-1 convertible preferred stock options (unaudited) | | 3 | | | | |
Change in redemption value for vested Series E-1 convertible preferred stock options (unaudited) | (2) | | | | | (2) |
Change in redemption value for vested Series E-1 convertible preferred stock options (unaudited) | | 2 | | | | |
Common stock option share-based compensation (unaudited) | 8,100 | | | 8,100 | | |
Other comprehensive income (unaudited) | (35) | | | | (35) | |
Net loss | (33,176) | | | | | (33,176) |
Convertible preferred stock, Ending Balance at Sep. 30, 2018 | | $ 560,671 | | | | |
Convertible preferred stock, Ending Balance, Shares at Sep. 30, 2018 | | 92,790,094 | | | | |
Ending Balance at Sep. 30, 2018 | (248,077) | | $ 1 | 34,573 | (201) | (282,450) |
Ending Balance, Shares at Sep. 30, 2018 | | | 12,721,427 | | | |
Beginning Balance at Jun. 30, 2018 | (242,435) | | $ 1 | 31,958 | (240) | (274,154) |
Beginning Balance, Shares at Jun. 30, 2018 | | | 12,546,844 | | | |
Convertible preferred stock, Beginning Balance at Jun. 30, 2018 | | $ 560,667 | | | | |
Convertible preferred stock, Beginning Balance, Shares at Jun. 30, 2018 | | 92,790,094 | | | | |
Issuance of common stock for cash upon exercise of stock options (unaudited) | 62 | | | 62 | | |
Issuance of common stock for cash upon exercise of stock options (unaudited), Shares | | | 174,583 | | | |
Change in redemption value for vested Series E-1 convertible preferred stock options (unaudited) | (4) | | | | | (4) |
Change in redemption value for vested Series E-1 convertible preferred stock options (unaudited) | | $ 4 | | | | |
Common stock option share-based compensation (unaudited) | 2,553 | | | 2,553 | | |
Other comprehensive income (unaudited) | 39 | | | | 39 | |
Net loss | (8,292) | | | | | (8,292) |
Convertible preferred stock, Ending Balance at Sep. 30, 2018 | | $ 560,671 | | | | |
Convertible preferred stock, Ending Balance, Shares at Sep. 30, 2018 | | 92,790,094 | | | | |
Ending Balance at Sep. 30, 2018 | (248,077) | | $ 1 | 34,573 | (201) | (282,450) |
Ending Balance, Shares at Sep. 30, 2018 | | | 12,721,427 | | | |
Beginning Balance at Dec. 31, 2018 | (258,112) | | $ 1 | 37,902 | (107) | (295,908) |
Beginning Balance, Shares at Dec. 31, 2018 | | | 12,841,536 | | | |
Convertible preferred stock, Beginning Balance at Dec. 31, 2018 | $ 560,858 | $ 560,858 | | | | |
Convertible preferred stock, Beginning Balance, Shares at Dec. 31, 2018 | 92,790,094 | 92,790,094 | | | | |
Proceeds from initial public offering, net of underwriters' discounts and commissions (unaudited) | $ 320,850 | | $ 2 | 320,848 | | |
Proceeds from initial public offering, net of underwriters' discounts and commissions (unaudited), Shares | | | 17,250,000 | | | |
Initial public offering costs (unaudited) | (4,986) | | | (4,986) | | |
Conversion of convertible preferred stock to common stock (unaudited) | 561,931 | $ (561,931) | $ 9 | 561,922 | | |
Conversion of convertible preferred stock to common stock (unaudited), Shares | | (93,039,737) | 93,039,737 | | | |
Conversion of convertible preferred stock warrant to common stock warrant (unaudited) | 2,602 | | | 2,602 | | |
Issuance of common stock upon exercise of common stock warrants (unaudited) | 9 | | | 9 | | |
Issuance of common stock upon exercise of common stock warrants (unaudited), Shares | | | 54,792 | | | |
Issuance of common stock for cash upon exercise of stock options (unaudited) | $ 2,198 | | | 2,198 | | |
Issuance of common stock for cash upon exercise of stock options (unaudited), Shares | 1,379,658 | | 1,130,015 | | | |
Issuance of Series E-1 convertible preferred stock for cash uponexercise of Series E-1 convertible preferred stock options at fair value (unaudited) | | $ 109 | | | | |
Issuance of Series E-1 convertible preferred stock for cash upon exercise of Series E-1 convertible preferred stock options at fair value (unaudited), Shares | | 249,643 | | | | |
Change in redemption value for vested Series E-1 convertible preferred stock options (unaudited) | $ (964) | | | | | (964) |
Change in redemption value for vested Series E-1 convertible preferred stock options (unaudited) | | $ 964 | | | | |
Common stock option and restricted stock unit share-based compensation (unaudited) | 9,713 | | | 9,713 | | |
Other comprehensive income (unaudited) | 679 | | | | 679 | |
Net loss | $ (47,995) | | | | | (47,995) |
Convertible preferred stock, Ending Balance, Shares at Sep. 30, 2019 | 0 | 93,039,737 | | | | |
Ending Balance at Sep. 30, 2019 | $ 585,925 | | $ 12 | 930,208 | 572 | (344,867) |
Ending Balance, Shares at Sep. 30, 2019 | | | 124,316,080 | | | |
Beginning Balance at Jun. 30, 2019 | (284,374) | | $ 1 | 46,160 | 382 | (330,917) |
Beginning Balance, Shares at Jun. 30, 2019 | | | 13,725,381 | | | |
Convertible preferred stock, Beginning Balance at Jun. 30, 2019 | | $ 561,931 | | | | |
Convertible preferred stock, Beginning Balance, Shares at Jun. 30, 2019 | | 93,039,737 | | | | |
Proceeds from initial public offering, net of underwriters' discounts and commissions (unaudited) | 320,850 | | $ 2 | 320,848 | | |
Proceeds from initial public offering, net of underwriters' discounts and commissions (unaudited), Shares | | | 17,250,000 | | | |
Initial public offering costs (unaudited) | (4,986) | | | (4,986) | | |
Conversion of convertible preferred stock to common stock (unaudited) | 561,931 | $ (561,931) | $ 9 | 561,922 | | |
Conversion of convertible preferred stock to common stock (unaudited), Shares | | (93,039,737) | 93,039,737 | | | |
Conversion of convertible preferred stock warrant to common stock warrant (unaudited) | 2,602 | | | 2,602 | | |
Issuance of common stock upon exercise of common stock warrants (unaudited) | 9 | | | 9 | | |
Issuance of common stock upon exercise of common stock warrants (unaudited), Shares | | | 54,792 | | | |
Issuance of common stock for cash upon exercise of stock options (unaudited) | 318 | | | 318 | | |
Issuance of common stock for cash upon exercise of stock options (unaudited), Shares | | | 246,170 | | | |
Common stock option and restricted stock unit share-based compensation (unaudited) | 3,335 | | | 3,335 | | |
Other comprehensive income (unaudited) | 190 | | | | 190 | |
Net loss | $ (13,950) | | | | | (13,950) |
Convertible preferred stock, Ending Balance, Shares at Sep. 30, 2019 | 0 | 93,039,737 | | | | |
Ending Balance at Sep. 30, 2019 | $ 585,925 | | $ 12 | $ 930,208 | $ 572 | $ (344,867) |
Ending Balance, Shares at Sep. 30, 2019 | | | 124,316,080 | | | |