Corporate Conversion and Equity - Additional Information (Details) | Jun. 20, 2018USD ($)Unit$ / sharesshares | Mar. 31, 2019USD ($)$ / sharesshares | Mar. 31, 2019USD ($)Vote$ / sharesshares | Dec. 31, 2017USD ($)$ / sharesshares | Dec. 31, 2018$ / sharesshares | Jun. 30, 2018$ / shares | Jun. 21, 2018$ / sharesshares | Mar. 31, 2018shares |
Class of Stock [Line Items] | | | | | | | | |
Common stock, shares authorized | | 500,000,000 | 500,000,000 | | 500,000,000 | | 500,000,000 | |
Preferred stock, shares authorized | | 10,000,000 | 10,000,000 | | 10,000,000 | | 10,000,000 | |
Common stock, par value | $ / shares | | $ 0.001 | $ 0.001 | | $ 0.001 | | $ 0.001 | |
Preferred stock, par value | $ / shares | | $ 0.001 | $ 0.001 | | $ 0.001 | | $ 0.001 | |
Common stock, shares issued | | 29,633,240 | 29,633,240 | | 29,450,035 | | | |
Preferred stock, shares issued | | 0 | 0 | | 0 | | 0 | |
Number of classes of units permitted for issuance | Unit | 4 | | | | | | | |
Number of vote each member is entitled to for each unit held | Vote | | | 1 | | | | | |
Warrants issued to purchase of stock | | | | | | | | 7,739,092 |
Financial Advisors | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants to purchase common stock | | | | 101,119 | | | | |
Exercise price of warrants | $ / shares | | | | $ 12.60 | | | | |
Purchasers of Bridge Notes | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants to purchase common stock | | | | | | | 429,948 | |
Exercise price of warrants | $ / shares | | | | | | | $ 12.60 | |
Series A Preferred Units | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Accrued and unpaid preferred return payable | $ | | $ 3,600,000 | $ 3,600,000 | | | | | |
Total convertible preferred units | $ | $ 54,923,430 | | | | | | | |
Preferred return percentage | | 4.00% | | | | | | |
Reduction in preferred return percentage | | 2.00% | | | | | | |
Stock split, conversion ratio | | 0.05556 | | | | | | |
Warrants issued to purchase of stock | 0 | | | | | | | |
Series A Preferred Units | December 2015 Term Loan | Financial Advisors | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants issued to purchase of stock | 221,766 | | | | | | | |
Series B Preferred Units | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Stock split, conversion ratio | | 0.05556 | | | | | | |
Series B Preferred Units | Purchase Agreement | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Proceeds from issuance of preferred stock | $ | | | | $ 46,911,300 | | | | |
Aggregate amount of bridge notes and related accrued and unpaid interest | $ | | | | 73,630,210 | | | | |
Aggregate amount of bridge notes and related accrued and unpaid interest | $ | | | | 73,630,210 | | | | |
Series B Preferred Units | Promissory Notes | Purchase Agreement | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Bridge note converted amount | $ | | | | $ 26,718,910 | | | | |
Common Stock | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Units converted into common stock shares | | | 23,470,034 | | | | | |
Preferred return payable upon public offering | $ | $ 3,629,092 | | | | | | | |
Warrants issued to purchase of stock | | 35,452,084 | 35,452,084 | | | | | |
Exercise price of warrants | $ / shares | | $ 1.25 | $ 1.25 | | | | | |
Common Stock | Advisors | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants issued to purchase of stock | | | | | | | 2,724,549 | |
Warrants to purchase common stock | | | | | | | 151,364 | |
Exercise price of warrants | $ / shares | | | | | | | $ 12.60 | |
Common Stock | Advisors | Exercise Price One | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants issued to purchase of stock | | 2,724,549 | 2,724,549 | | | | | |
Exercise price of warrants | $ / shares | | $ 0.70 | $ 0.70 | | | | | |
Common Stock | Advisors | Exercise Price Two | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants issued to purchase of stock | | 72,000 | 72,000 | | | | | |
Exercise price of warrants | $ / shares | | $ 1.25 | $ 1.25 | | | | | |
Common Stock | Profits Interests | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Units converted into common stock shares | | | 1,345,231 | | | | | |
Options to purchase common stock shares | | 2,141,751 | | | | | | |
Options to purchase common stock shares, exercise price | $ / shares | | $ 15 | $ 15 | | | | | |
Common Stock | Common Units | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Units converted into common stock shares | | | 12,099,280 | | | | | |
Common Stock | Series A Preferred Units | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Units converted into common stock shares | | | 4,181,856 | | | | | |
Common stock shares issued as payment in full for accrued and unpaid preferred return payable | | 241,939 | 241,939 | | | | | |
Common Stock | Series B Preferred Units | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Units converted into common stock shares | | | 5,843,668 | | | | | |
IPO | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Common stock, shares issued | | | | | | | 29,450,034 | |
IPO | Common Stock | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Options to purchase common stock shares, exercise price | $ / shares | | | | | | $ 15 | $ 15 | |
IPO | Common Stock | Series A Warrants | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | |
Warrants to purchase common stock | 12,321 | | | | | | | |
Exercise price of warrants | $ / shares | $ 15.30 | | | | | | | |