Fair Value Measurements - Fair Value of Liabilities (Details) - USD ($) $ in Thousands |
Jun. 30, 2022 |
Dec. 31, 2021 |
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Private Common Stock Warrants |
$ 808
|
$ 6,293
|
| Fair Value, Recurring |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
492,559
|
528,902
|
| Total liabilities |
808
|
6,293
|
| Fair Value, Recurring | Asset backed securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
97,733
|
111,552
|
| Fair Value, Recurring | Certificates of deposits |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
|
6,002
|
| Fair Value, Recurring | Corporate notes and bonds |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
174,340
|
206,989
|
| Fair Value, Recurring | Commercial paper |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
159,030
|
109,391
|
| Fair Value, Recurring | Foreign government securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
15,025
|
8,181
|
| Fair Value, Recurring | US government and agency securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
46,431
|
86,787
|
| Fair Value, Recurring | Private Common Stock Warrants |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Private Common Stock Warrants |
808
|
6,293
|
| Level 1 | Fair Value, Recurring |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
30,979
|
86,787
|
| Total liabilities |
0
|
0
|
| Level 1 | Fair Value, Recurring | Asset backed securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 1 | Fair Value, Recurring | Certificates of deposits |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
|
0
|
| Level 1 | Fair Value, Recurring | Corporate notes and bonds |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 1 | Fair Value, Recurring | Commercial paper |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 1 | Fair Value, Recurring | Foreign government securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 1 | Fair Value, Recurring | US government and agency securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
30,979
|
86,787
|
| Level 1 | Fair Value, Recurring | Private Common Stock Warrants |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Private Common Stock Warrants |
0
|
0
|
| Level 2 | Fair Value, Recurring |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
461,580
|
442,115
|
| Total liabilities |
0
|
0
|
| Level 2 | Fair Value, Recurring | Asset backed securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
97,733
|
111,552
|
| Level 2 | Fair Value, Recurring | Certificates of deposits |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
|
6,002
|
| Level 2 | Fair Value, Recurring | Corporate notes and bonds |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
174,340
|
206,989
|
| Level 2 | Fair Value, Recurring | Commercial paper |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
159,030
|
109,391
|
| Level 2 | Fair Value, Recurring | Foreign government securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
15,025
|
8,181
|
| Level 2 | Fair Value, Recurring | US government and agency securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
15,452
|
0
|
| Level 2 | Fair Value, Recurring | Private Common Stock Warrants |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Private Common Stock Warrants |
0
|
0
|
| Level 3 | Fair Value, Recurring |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Total liabilities |
808
|
6,293
|
| Level 3 | Fair Value, Recurring | Asset backed securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 3 | Fair Value, Recurring | Certificates of deposits |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
|
0
|
| Level 3 | Fair Value, Recurring | Corporate notes and bonds |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 3 | Fair Value, Recurring | Commercial paper |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 3 | Fair Value, Recurring | Foreign government securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 3 | Fair Value, Recurring | US government and agency securities |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Available-for-Sale Investments |
0
|
0
|
| Level 3 | Fair Value, Recurring | Private Common Stock Warrants |
|
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |
|
|
| Private Common Stock Warrants |
$ 808
|
$ 6,293
|