v3.22.0.1

Net Income Per Share (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Earnings Per Share [Abstract] |
Calculation of Basic and Diluted Net Income Per Share | The following tables present the calculation of basic and diluted net income per share attributable to common stockholders (in thousands, except per share data):
| Year Ended December 31,
| 2021 |  | 2020 |  | 2019
Numerator: |  |  |  |  |
Net income | $ | 230,141 |  |  | $ | 118,503 |  |  | $ | 626,698 |
Denominator: |  |  |  |  |
Weighted-average shares outstanding - basic | 198,094 |  |  | 193,096 |  |  | 186,466 |
Weighted-average effect of potentially dilutive securities: |  |  |  |  |
Common stock options | 293 |  |  | 547 |  |  | 1,109 |
RSUs | 3,429 |  |  | 4,421 |  |  | 4,897 |
2018 Warrants | — |  |  | — |  |  | 842 |
2022 Notes | 535 |  |  | 842 |  |  | 2,737 |
2022 Notes settlements | 116 |  |  | 1,931 |  |  | — |
2022 Warrants | 649 |  |  | 920 |  |  | 1,172 |
Partial settlement of 2022 Warrants | 51 |  |  | 721 |  |  | — |
Weighted-average shares outstanding - diluted | 203,167 |  |  | 202,478 |  |  | 197,223 |
Net income per share - basic | $ | 1.16 |  |  | $ | 0.61 |  |  | $ | 3.36 |
Net income per share - diluted | $ | 1.13 |  |  | $ | 0.59 |  |  | $ | 3.18 |
Summary of Potentially Dilutive Securities | Potentially dilutive securities that are not included in the calculation of diluted net income per share because doing so would be antidilutive are as follows (in thousands):
| Year Ended December 31,
| 2021 |  | 2020 |  | 2019
Common stock options | 998 |  |  | — |  |  | 161 |
RSUs | 381 |  |  | 347 |  |  | 413 |
ESPP obligations | 209 |  |  | 224 |  |  | 273 |
Total potentially dilutive securities | 1,588 |  |  | 571 |  |  | 847 |

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration