Commitments and Contingencies - Schedule of Supplemental Information Related to Leases (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash paid for amounts included in the measurement of lease liabilities (in thousands):      
Operating cash flows from operating leases $ 7,925 $ 5,389 $ 2,495
New right-of-use assets obtained in exchange for lease obligations (in thousands):      
Operating leases $ 6,562 $ 3,174 $ 12,331
Weighted average remaining lease term (years):      
Operating leases 5 years 3 months 18 days 6 months 3 days 7 years 2 months 12 days
Weighted average discount rate:      
Operating leases 7.40% 9.00% 9.00%