CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN REDEEMABLE CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS' (DEFICIT) EQUITY (Unaudited) - USD ($) $ in Thousands | Total | IPO | Redeemable Convertible Preferred Stock | Common Stock | Common StockIPO | Additional Paid-in Capital | Additional Paid-in CapitalIPO | Accumulated Deficit |
Balance at Dec. 31, 2018 | $ (296,866) | | | $ 8 | | | | $ (296,874) |
Temporary Equity, Balance, shares at Dec. 31, 2018 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Dec. 31, 2018 | | | $ 519,100 | | | | | |
Balance (in shares) at Dec. 31, 2018 | | | | 8,571,386 | | | | |
Stock-based compensation | 869 | | | | | $ 869 | | |
Exercise of stock options | 347 | | | | | 347 | | |
Exercise of stock options (in shares) | | | | 101,950 | | | | |
Repurchase of common stock | (542) | | | | | (1,216) | | 674 |
Repurchase of common stock (in shares) | | | | (93,186) | | | | |
Accretion of redeemable convertible preferred stock | (17,964) | | | | | | | (17,964) |
Temporary equity, Accretion of redeemable convertible preferred stock | | | $ 17,964 | | | | | |
Net loss | (27,139) | | | | | | | (27,139) |
Balance at Mar. 31, 2019 | (341,295) | | | $ 8 | | | | (341,303) |
Temporary Equity, Balance (in shares) at Mar. 31, 2019 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Mar. 31, 2019 | | | $ 537,064 | | | | | |
Balance (in shares) at Mar. 31, 2019 | | | | 8,580,150 | | | | |
Balance at Dec. 31, 2018 | (296,866) | | | $ 8 | | | | (296,874) |
Temporary Equity, Balance, shares at Dec. 31, 2018 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Dec. 31, 2018 | | | $ 519,100 | | | | | |
Balance (in shares) at Dec. 31, 2018 | | | | 8,571,386 | | | | |
Net loss | (60,479) | | | | | | | |
Balance at Jun. 30, 2019 | (399,847) | | | $ 8 | | | | (399,855) |
Temporary Equity, Balance (in shares) at Jun. 30, 2019 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Jun. 30, 2019 | | | $ 562,943 | | | | | |
Balance (in shares) at Jun. 30, 2019 | | | | 8,580,150 | | | | |
Balance at Dec. 31, 2018 | (296,866) | | | $ 8 | | | | (296,874) |
Temporary Equity, Balance, shares at Dec. 31, 2018 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Dec. 31, 2018 | | | $ 519,100 | | | | | |
Balance (in shares) at Dec. 31, 2018 | | | | 8,571,386 | | | | |
Temporary equity, Accretion of redeemable convertible preferred stock | 132,800 | | | | | | | |
Balance at Dec. 31, 2019 | $ (573,852) | | | $ 8 | | | | (573,860) |
Temporary Equity, Balance (in shares) at Dec. 31, 2019 | 83,568,628 | | 83,568,628 | | | | | |
Temporary Equity, Balance at Dec. 31, 2019 | $ 874,332 | | $ 874,332 | | | | | |
Balance (in shares) at Dec. 31, 2019 | | | | 8,650,922 | | | | |
Balance at Mar. 31, 2019 | (341,295) | | | $ 8 | | | | (341,303) |
Temporary Equity, Balance, shares at Mar. 31, 2019 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Mar. 31, 2019 | | | $ 537,064 | | | | | |
Balance (in shares) at Mar. 31, 2019 | | | | 8,580,150 | | | | |
Stock-based compensation | 667 | | | | | 667 | | |
Repurchase of common stock | | | | | | (667) | | 667 |
Accretion of redeemable convertible preferred stock | (25,879) | | | | | | | (25,879) |
Temporary equity, Accretion of redeemable convertible preferred stock | | | $ 25,879 | | | | | |
Net loss | (33,340) | | | | | | | (33,340) |
Balance at Jun. 30, 2019 | (399,847) | | | $ 8 | | | | (399,855) |
Temporary Equity, Balance (in shares) at Jun. 30, 2019 | | | 66,825,300 | | | | | |
Temporary Equity, Balance at Jun. 30, 2019 | | | $ 562,943 | | | | | |
Balance (in shares) at Jun. 30, 2019 | | | | 8,580,150 | | | | |
Balance at Dec. 31, 2019 | $ (573,852) | | | $ 8 | | | | (573,860) |
Temporary Equity, Balance, shares at Dec. 31, 2019 | 83,568,628 | | 83,568,628 | | | | | |
Temporary Equity, Balance at Dec. 31, 2019 | $ 874,332 | | $ 874,332 | | | | | |
Balance (in shares) at Dec. 31, 2019 | | | | 8,650,922 | | | | |
Stock-based compensation | 600 | | | | | 600 | | |
Exercise of stock options | 6 | | | | | 6 | | |
Exercise of stock options (in shares) | | | | 2,774 | | | | |
Repurchase of common stock | (1,818) | | | | | (606) | | (1,212) |
Repurchase of common stock (in shares) | | | | (200,000) | | | | |
Issuance of Series H redeemable convertible preferred stock, net of issuance costs | | | $ 26,714 | | | | | |
Issuance of Series H redeemable convertible preferred stock, net of issuance costs, shares | | | 1,964,766 | | | | | |
Net loss | (41,059) | | | | | | | (41,059) |
Balance at Mar. 31, 2020 | (616,123) | | | $ 8 | | | | (616,131) |
Temporary Equity, Balance (in shares) at Mar. 31, 2020 | | | 85,533,394 | | | | | |
Temporary Equity, Balance at Mar. 31, 2020 | | | $ 901,046 | | | | | |
Balance (in shares) at Mar. 31, 2020 | | | | 8,453,696 | | | | |
Balance at Dec. 31, 2019 | $ (573,852) | | | $ 8 | | | | (573,860) |
Temporary Equity, Balance, shares at Dec. 31, 2019 | 83,568,628 | | 83,568,628 | | | | | |
Temporary Equity, Balance at Dec. 31, 2019 | $ 874,332 | | $ 874,332 | | | | | |
Balance (in shares) at Dec. 31, 2019 | | | | 8,650,922 | | | | |
Exercise of stock options (in shares) | 3,274 | | | | | | | |
Net loss | $ (104,287) | | | | | | | |
Balance at Jun. 30, 2020 | $ 745,435 | | | $ 119 | | 1,424,675 | | (679,359) |
Temporary Equity, Balance (in shares) at Jun. 30, 2020 | 0 | | | | | | | |
Balance (in shares) at Jun. 30, 2020 | | | | 119,336,588 | | | | |
Balance at Mar. 31, 2020 | $ (616,123) | | | $ 8 | | | | (616,131) |
Temporary Equity, Balance, shares at Mar. 31, 2020 | | | 85,533,394 | | | | | |
Temporary Equity, Balance at Mar. 31, 2020 | | | $ 901,046 | | | | | |
Balance (in shares) at Mar. 31, 2020 | | | | 8,453,696 | | | | |
Issuance of common stock, net of offering costs | 2,127 | $ 496,510 | | | $ 24 | 2,127 | $ 496,486 | |
Issuance of common stock, net of offering costs (in shares) | | | | 183,870 | 24,437,500 | | | |
Conversion of redeemable convertible preferred stock to common stock | 901,046 | | | $ 86 | | 900,960 | | |
Temporary equity, Conversion of redeemable convertible preferred stock to common stock (in shares) | | | (85,533,394) | | | | | |
Temporary equity, Conversion of redeemable convertible preferred stock to common stock | | | $ (901,046) | | | | | |
Conversion of redeemable convertible preferred stock to common stock (in shares) | | | | 85,533,394 | | | | |
Conversion of redeemable convertible preferred stock warrant to common stock warrant | 21,873 | | | | | 21,873 | | |
Stock-based compensation | 4,100 | | | | | 4,100 | | |
Exercise of stock options | 7 | | | | | 7 | | |
Exercise of stock options (in shares) | | | | 500 | | | | |
Exercise of common stock warrants | 1 | | | $ 1 | | | | |
Exercise of common stock warrants (in shares) | | | | 636,112 | | | | |
Vesting of restricted stock units (in shares) | | | | 133,334 | | | | |
Common stock shares withheld to satisfy employee tax withholding obligations | (878) | | | | | (878) | | |
Common stock shares withheld to satisfy employee tax withholding obligations (in shares) | | | | (41,818) | | | | |
Net loss | (63,228) | | | | | | | (63,228) |
Balance at Jun. 30, 2020 | $ 745,435 | | | $ 119 | | $ 1,424,675 | | $ (679,359) |
Temporary Equity, Balance (in shares) at Jun. 30, 2020 | 0 | | | | | | | |
Balance (in shares) at Jun. 30, 2020 | | | | 119,336,588 | | | | |