Long-term Debt - Additional Information (Detail) $ / shares in Units, $ in Thousands | Sep. 16, 2019USD ($) | Mar. 26, 2019USD ($) | Oct. 20, 2017USD ($)Installment$ / sharesshares | Oct. 19, 2017USD ($)$ / sharesshares | Mar. 31, 2020USD ($)d$ / shares | Mar. 31, 2019USD ($) | Sep. 30, 2019USD ($) | Dec. 31, 2019USD ($) | Sep. 11, 2019USD ($)CounterParty$ / shares |
Debt Instrument [Line Items] | | | | | | | | | |
Amortization of debt discounts | | | | | | $ 19 | | | |
Premium paid for capped call transactions | | | | | | | $ 28,400 | | |
Loss on extinguishment of debt | | | | | | $ 1,208 | | | |
Term Loan Facility [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Principal amount | | $ 21,700 | | | | | | | |
Final payment due amount | | 21,800 | | | | | | | |
Debt instrument per diem interest amount | | $ 100 | | | | | | | |
Final payment percentage equal to original principal amount | | 8.00% | | | | | | | |
Final payment towards original principal amount | | $ 1,600 | | | | | | | |
Prepayment fee | | 100 | | | | | | | |
Loss on extinguishment of debt | | $ 1,200 | | | | | | | |
Silicon Valley Bank [Member] | Term Loan Facility [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Warrant to purchase common stock | shares | | | 14,064,000 | | | | | | |
Exercise price per share | $ / shares | | | $ 5.484 | | | | | | |
Warrant term | | | 10 years | | | | | | |
Aggregate purchase price | | | $ 250 | | | | | | |
Loan and Security Agreement [Member] | Silicon Valley Bank [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, due and payment description | | | | | the Company was required to make monthly interest-only payments through November 1, 2019 and was required to make 24 equal monthly payments of principal, plus accrued interest, from November 1, 2019 through October 1, 2021, when all unpaid principal and interest became due and payable | | | | |
Term loan facility | | | $ 20,000 | | | | | | |
Loan and Security Agreement [Member] | Silicon Valley Bank [Member] | Convertible Preferred Stock [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, number of equal monthly installments | Installment | | | 24 | | | | | | |
Loan and Security Agreement [Member] | Silicon Valley Bank [Member] | Prime Rate [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Interest bear rate | | | 1.50% | | | | | | |
Capped Call Transactions [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Number of counterparties | CounterParty | | | | | | | | | 2 |
Initial conversion price | $ / shares | | | | | | | | | $ 39.4625 |
Initial cap price | $ / shares | | | | | | | | | 63.14 |
Sale price | $ / shares | | | | | | | | | $ 31.57 |
Convertible Senior Notes Due 2026 [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Principal amount | | | | | $ 220,000 | | | | |
Net proceeds from the sale of the notes | | | | | 212,900 | | | | |
Payment of convertible debt discounts and commissions | | | | | 6,600 | | | | |
Payment of convertible debt offering expenses | | | | | 500 | | | | |
Payments of transactions cost | | | | | $ 28,400 | | | | |
Debt instrument, stated percentage | 3.50% | | | | | | | | |
Debt instrument, due and payment description | | | | | The Convertible Notes are senior unsecured obligations of the Company and bear interest at a rate of 3.5% per year payable semiannually in arrears on March 15 and September 15 of each year, beginning on March 15, 2020. | | | | |
Debt instrument, frequency of periodic payment | | | | | semiannually | | | | |
Maturity date | Sep. 15, 2026 | | | | | | | | |
Redemption period, start date | | | | | Sep. 20, 2023 | | | | |
Threshold percentage of stock price trigger | | | | | 130.00% | | | | |
Threshold trading days | d | | | | | 20 | | | | |
Threshold consecutive trading days | d | | | | | 30 | | | | |
Redemption price, percentage | | | | | 100.00% | | | | |
Debt instrument effective interest rate | | | | | | | | | 10.50% |
Debt instrument convertible carrying amount of liability component | | | | | | | | | $ 145,100 |
Debt discount | | | | | | | | | 74,900 |
Debt issuance costs | | | | | | | | | 7,100 |
Debt interest expense | | | | | $ 3,900 | | | | |
Amortization of debt discounts | | | | | 1,900 | | | | |
Accrued semi annual coupon payable | | | | | 1,900 | | | | |
Amortization of debt issuance costs | | | | | 100 | | | | |
Debt issuance costs gross | | | | | 700 | | | | |
Long-term debt | | | | | $ 144,600 | | | $ 142,600 | |
Convertible Senior Notes Due 2026 [Member] | Liability Component [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt issuance costs | | | | | | | | | 4,700 |
Convertible Senior Notes Due 2026 [Member] | Equity Component [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt issuance costs | | | | | | | | | $ 2,400 |
Convertible Senior Notes Due 2026 [Member] | Common Stock [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Terms of conversion | | | | | The Convertible Notes are convertible into shares of the Company’s common stock at an initial conversion rate of 25.3405 shares per $1,000 principal amount of Convertible Notes (equivalent to an initial conversion price of approximately $39.46 per share of common stock). | | | | |
Conversion ratio | | | | | 0.0253405 | | | | |
Conversion price | $ / shares | | | | | $ 39.46 | | | | |
Convertible Senior Notes Due 2026 [Member] | Private Offering [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Principal amount | $ 220,000 | | | | | | | | |
Unsecured Promissory Note [Member] | Golda Darty Partners S A [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Principal amount | 7,000 | | | $ 7,000 | | | | | |
Debt instrument, due and payment description | | | | | The promissory note accrued interest at a rate per annum of 8.0%, and was due and payable quarterly in arrears on the 19th day of each April, July, October and January. | | | | |
Maturity date | | | | Oct. 19, 2022 | | | | | |
Long-term debt | | | | $ 7,000 | | | | | |
Debt instrument per diem interest amount | 100 | | | | | | | | |
Loss on extinguishment of debt | | | | $ 300 | | | | | |
Warrant to purchase common stock | shares | | | | 93,764,000 | | | | | |
Exercise price per share | $ / shares | | | | $ 5.484 | | | | | |
Accrued interest rate | | | | 8.00% | | | | | |
Repayment of related party due amount including diem interest | $ 7,100 | | | | | | | | |
Fair value of warrant | | | | $ 400 | | | | | |