Annual report pursuant to Section 13 and 15(d)

Summary of Significant Accounting Policies - Summary of Effects Of the Adjustment On The Line items Within Consolidated Financial Statements (Detail)

v3.22.0.1
Summary of Significant Accounting Policies - Summary of Effects Of the Adjustment On The Line items Within Consolidated Financial Statements (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Error Corrections and Prior Period Adjustments Restatement [Line Items]      
Inventories $ 30,447 $ 25,451  
Current assets 55,401 45,623  
Total assets 346,744 353,133  
Accrued and other current liabilities 99,446 55,053  
Current liabilities 285,821 231,879  
Total liabilities 369,141 305,804  
Accumulated deficit (800,390) (724,142)  
Total shareholders' equity (22,397) 47,329 $ 352,473
Total liabilities and shareholders' equity 346,744 353,133  
Costs and expenses applicable to revenues (91,735) (69,829)  
Gross margin 111,283 81,840  
Loss from operations (22,025) (249,891)  
Loss from operations before income tax   (294,911)  
Income tax expense 22,249 18,633  
Net loss $ (76,248) (313,362)  
Change in operating assets and liabilities   12,537  
Previously Reported [Member]      
Error Corrections and Prior Period Adjustments Restatement [Line Items]      
Inventories   30,292  
Current assets   50,464  
Total assets   357,974  
Accrued and other current liabilities   56,381  
Current liabilities   233,207  
Total liabilities   307,132  
Accumulated deficit   (720,629)  
Total shareholders' equity   50,842  
Total liabilities and shareholders' equity   357,974  
Costs and expenses applicable to revenues   (64,988)  
Gross margin   86,681  
Loss from operations   (245,050)  
Loss from operations before income tax   (290,070)  
Income tax expense   19,961  
Net loss   (309,849)  
Change in operating assets and liabilities   9,024  
Revision of Prior Period, Adjustment [Member]      
Error Corrections and Prior Period Adjustments Restatement [Line Items]      
Inventories   (4,841)  
Current assets   (4,841)  
Total assets   (4,841)  
Accrued and other current liabilities   (1,328)  
Current liabilities   (1,328)  
Total liabilities   (1,328)  
Accumulated deficit   (3,513)  
Total shareholders' equity   (3,513)  
Total liabilities and shareholders' equity   (4,841)  
Costs and expenses applicable to revenues   (4,841)  
Gross margin   (4,841)  
Loss from operations   (4,841)  
Loss from operations before income tax   (4,841)  
Income tax expense   (1,328)  
Net loss   (3,513)  
Change in operating assets and liabilities   $ 3,513