Quarterly report pursuant to Section 13 or 15(d)

Fair Value Measurements - Summary of Changes in Fair Value of Convertible Preferred Stock Warrant Liability (Details)

v3.7.0.1
Fair Value Measurements - Summary of Changes in Fair Value of Convertible Preferred Stock Warrant Liability (Details) - Fair Value Measurements Recurring - Level 3 - Convertible Preferred Stock Warrant Liability
$ in Thousands
6 Months Ended
Jun. 30, 2017
USD ($)
Fair Value Liabilities Measured On Recurring Basis Unobservable Input Reconciliation [Line Items]  
Beginning balance, fair value $ 1,875
Issuance of convertible preferred stock warrants 111
Change in fair value recorded in other expense, net 3,725
Reclassification of unexercised warrant into additional paid-in capital upon the IPO (5,711)
Ending balance, fair value $ 0