XML 48 R35.htm IDEA: XBRL DOCUMENT v3.22.4
Cash and Cash Equivalents, and Investments and Fair Value Measurements (Tables)
12 Months Ended
Dec. 31, 2022
Cash and Cash Equivalents [Abstract]  
Schedule of Cash and Cash Equivalents, and Investments
The following tables show our cash and cash equivalents, and investments’ fair value level classification, adjusted cost, unrealized gain, unrealized loss and fair value as of December 31, 2022 and 2021 (in thousands):

 December 31, 2022
 Fair Value LevelAdjusted CostUnrealized GainUnrealized LossFair Value
Cash and cash equivalents:   
Cash$33,532 $— $— $33,532 
Money market fundsLevel 1440,145 — — 440,145 
Total cash and cash equivalents$473,677 $— $— $473,677 
Short-term investments:   
Commercial paperLevel 2$11,744 $— $(29)$11,715 
Corporate debt securitiesLevel 2491,459 — (4,130)487,329 
U.S. treasury securitiesLevel 185,271 — (342)84,929 
Total short-term investments$588,474 $— $(4,501)$583,973 
Long-term investments:
Corporate debt securitiesLevel 2$125,735 $158 $(909)$124,984 
Agency bondsLevel 260,635 — (141)60,494 
U.S. treasury securitiesLevel 130,633 122 — 30,755 
Total long-term investments$217,003 $280 $(1,050)$216,233 

 December 31, 2021
 Fair Value LevelAdjusted CostUnrealized GainUnrealized LossFair Value
Cash and cash equivalents:   
Cash$30,324 $— $— $30,324 
Money market fundsLevel 1823,754 — — 823,754 
Total cash and cash equivalents$854,078 $— $— $854,078 
Short-term investments:   
Commercial paperLevel 2$124,211 $$(33)$124,180 
Corporate debt securitiesLevel 2552,609 36 (546)552,099 
Agency bondsLevel 215,500 — 15,502 
Total short-term investments$692,320 $40 $(579)$691,781 
Long-term investments:
Corporate debt securitiesLevel 2$724,517 $— $(3,277)$721,240 
U.S. treasury securitiesLevel 1$24,860 $— $(107)$24,753 
Total long-term investments$749,377 $— $(3,384)$745,993 
Schedule of Realized Gain (Loss) Related to Investments
The following table presents the gross realized gain and loss related to our investments (in thousands):
 Years Ended December 31,
 202220212020
Realized gain$64 $84 $308 
Realized loss(9,739)(262)— 
Realized (loss)/gain on sale of investments$(9,675)$(178)$308 
Schedule of Available-for-sale Securities Reconciliation
The following table shows our cash equivalents and investments' adjusted cost and fair value by contractual maturity as of December 31, 2022 (in thousands):
December 31, 2022
 CostFair Value
Due within one year$588,474 $583,973 
Due after one year through three years217,003 216,233 
Investments not due at a single maturity date440,145 440,145 
Total$1,245,622 $1,240,351