Investments - Investments Measured at Fair Value on Recurring Basis (Detail) - USD ($) $ in Thousands | 6 Months Ended | 12 Months Ended |
Jun. 30, 2021 | Dec. 31, 2020 |
Schedule Of Available For Sale Securities [Line Items] | | |
Short-term investments, Fair Value | $ 528,520 | $ 307,827 |
Fair Value Measurements on Recurring Basis | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Cash equivalents, Amortized Cost | | 317,237 |
Cash equivalents, Fair Value | | 317,237 |
Short-term investments, Amortized Cost | 528,770 | 307,779 |
Short-term investments, Unrealized Gains | 51 | 86 |
Short-term investments, Unrealized Losses | (301) | (38) |
Short-term investments, Fair Value | 528,520 | 307,827 |
Cash equivalents and Short-term investments, Amortized Cost | 566,241 | 625,016 |
Cash equivalents and Short-term investments, Unrealized Gains | 51 | 86 |
Cash equivalents and Short-term investments, Unrealized Losses | (301) | (38) |
Cash equivalents and Short-term investments, Estimated Fair Value | $ 565,991 | $ 625,064 |
Fair Value Measurements on Recurring Basis | Money Market Funds | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 1 or less | 1 or less |
Cash equivalents, Amortized Cost | $ 37,471 | $ 311,239 |
Cash equivalents, Fair Value | $ 37,471 | $ 311,239 |
Fair Value Measurements on Recurring Basis | Commercial Paper | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | | 1 or less |
Cash equivalents, Amortized Cost | | $ 5,998 |
Cash equivalents, Fair Value | | $ 5,998 |
Maturities (years) | 1 or less | 1 or less |
Short-term investments, Amortized Cost | $ 133,427 | $ 106,350 |
Short-term investments, Fair Value | $ 133,427 | $ 106,350 |
Fair Value Measurements on Recurring Basis | Corporate Debt Securities | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 3 or less | 2 or less |
Short-term investments, Amortized Cost | $ 202,294 | $ 113,020 |
Short-term investments, Unrealized Gains | 33 | 36 |
Short-term investments, Unrealized Losses | (153) | (36) |
Short-term investments, Fair Value | $ 202,174 | $ 113,020 |
Fair Value Measurements on Recurring Basis | U.S. Treasury Securities | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 3 or less | 1 or less |
Short-term investments, Amortized Cost | $ 160,877 | $ 88,409 |
Short-term investments, Unrealized Gains | 18 | 50 |
Short-term investments, Unrealized Losses | (112) | (2) |
Short-term investments, Fair Value | $ 160,783 | $ 88,457 |
Fair Value Measurements on Recurring Basis | Non U S Government And Supranational Debt Securities | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 3 or less | |
Short-term investments, Amortized Cost | $ 23,180 | |
Short-term investments, Unrealized Losses | (21) | |
Short-term investments, Fair Value | $ 23,159 | |
Fair Value Measurements on Recurring Basis | U.S. Agency Bonds | | |
Schedule Of Available For Sale Securities [Line Items] | | |
Maturities (years) | 2 or less | |
Short-term investments, Amortized Cost | $ 8,992 | |
Short-term investments, Unrealized Losses | (15) | |
Short-term investments, Fair Value | $ 8,977 | |