Financial Instruments - Financial Assets Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Sep. 30, 2019 | Dec. 31, 2018 |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Included in marketable securities | $ 628,373 | $ 693,884 |
Fair Value Measurements, Recurring | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 698,506 | 756,441 |
Included in cash and cash equivalents | 70,133 | 62,557 |
Included in marketable securities | 628,373 | 693,884 |
Fair Value Measurements, Recurring | Corporate bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 428,148 | 460,210 |
Fair Value Measurements, Recurring | Asset-backed securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 120,514 | 127,078 |
Fair Value Measurements, Recurring | U.S. Treasury securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 75,826 | 58,039 |
Fair Value Measurements, Recurring | Money market funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 65,836 | 57,758 |
Fair Value Measurements, Recurring | Commercial paper | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 7,961 | 38,900 |
Fair Value Measurements, Recurring | Agency securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 221 | 11,256 |
Fair Value Measurements, Recurring | Certificates of deposit and time deposits | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | | 3,200 |
Fair Value Measurements, Recurring | Level 1 | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 65,836 | 57,758 |
Fair Value Measurements, Recurring | Level 1 | Corporate bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 0 | 0 |
Fair Value Measurements, Recurring | Level 1 | Asset-backed securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 0 | 0 |
Fair Value Measurements, Recurring | Level 1 | U.S. Treasury securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 0 | 0 |
Fair Value Measurements, Recurring | Level 1 | Money market funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 65,836 | 57,758 |
Fair Value Measurements, Recurring | Level 1 | Commercial paper | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 0 | 0 |
Fair Value Measurements, Recurring | Level 1 | Agency securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 0 | 0 |
Fair Value Measurements, Recurring | Level 1 | Certificates of deposit and time deposits | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | | 0 |
Fair Value Measurements, Recurring | Level 2 | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 632,670 | 698,683 |
Fair Value Measurements, Recurring | Level 2 | Corporate bonds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 428,148 | 460,210 |
Fair Value Measurements, Recurring | Level 2 | Asset-backed securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 120,514 | 127,078 |
Fair Value Measurements, Recurring | Level 2 | U.S. Treasury securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 75,826 | 58,039 |
Fair Value Measurements, Recurring | Level 2 | Money market funds | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 0 | 0 |
Fair Value Measurements, Recurring | Level 2 | Commercial paper | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | 7,961 | 38,900 |
Fair Value Measurements, Recurring | Level 2 | Agency securities | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | $ 221 | 11,256 |
Fair Value Measurements, Recurring | Level 2 | Certificates of deposit and time deposits | | |
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] | | |
Total fair value of financial assets | | $ 3,200 |