EQUITY Equity (Tables)
   | 
9 Months Ended | 
Sep. 30, 2021  | 
| Equity [Abstract] | 
 
 | 
| Schedule of Accumulated Other Comprehensive Income (Loss) | 
The following table presents changes in the components of AOCI, net of taxes, for the nine months ended September 30, 2021:
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Cash Flow Hedge | 
 | 
 Foreign Currency Items | 
 | 
Total | 
 
 | 
(in thousands) | 
 
| Balance at December 31, 2020 | 
$ | 
(31,587) | 
 | 
 | 
$ | 
(145,422) | 
 | 
 | 
$ | 
(177,009) | 
 | 
 
Other comprehensive income before reclassifications  | 
10,160  | 
 | 
 | 
(10,001) | 
 | 
 | 
159  | 
 | 
 
| Amount reclassified from AOCI | 
5,853  | 
 | 
 | 
—  | 
 | 
 | 
5,853  | 
 | 
 
| Net other comprehensive income | 
16,013  | 
 | 
 | 
(10,001) | 
 | 
 | 
6,012  | 
 | 
 
| Balance at September 30, 2021 | 
$ | 
(15,574) | 
 | 
 | 
$ | 
(155,423) | 
 | 
 | 
$ | 
(170,997) | 
 | 
 
 
 | 
| Schedule of Weighted Average Number of Shares | 
 The following table sets forth the computation of weighted average common shares outstanding: 
  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Three Months Ended September 30, | 
 | 
Nine Months Ended September 30, | 
 
 | 
2021 | 
 | 
2020 | 
 | 
2021 | 
 | 
2020 | 
 
 | 
 | 
 
| Weighted average common shares—basic | 
216,888,355  | 
 | 
 | 
212,593,719  | 
 | 
 | 
215,716,239  | 
 | 
 | 
211,781,620  | 
 | 
 
| Effect of dilutive securities: | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
|     Stock options and restricted stock | 
6,912,045  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Weighted average common shares—diluted | 
223,800,400  | 
 | 
 | 
212,593,719  | 
 | 
 | 
215,716,239  | 
 | 
 | 
211,781,620  | 
 | 
 
  
 | 
| Potentially Dilutive Securities Excluded From Diluted Net Income (Loss) Per Common Share | 
 The following table shows securities excluded from the calculation of diluted net loss per common share because such securities are anti-dilutive: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Three Months Ended September 30, | 
 | 
Nine Months Ended September 30, | 
 
 | 
2021 | 
 | 
2020 | 
 | 
2021 | 
 | 
2020 | 
 
| Options to purchase shares of common stock | 
3,750  | 
 | 
 | 
9,874,376  | 
 | 
 | 
7,727,064  | 
 | 
 | 
9,874,376  | 
 | 
 
| Restricted stock and deferred stock—unvested | 
91,275  | 
 | 
 | 
3,713,249  | 
 | 
 | 
3,207,115  | 
 | 
 | 
3,713,249  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Conversion shares related to the convertible senior notes | 
11,864,035  | 
 | 
 | 
11,864,035  | 
 | 
 | 
11,864,035  | 
 | 
 | 
10,729,717  | 
 | 
 
| Number of anti-dilutive potentially issuable shares excluded from diluted common shares outstanding | 
11,959,060  | 
 | 
 | 
25,451,660  | 
 | 
 | 
22,798,214  | 
 | 
 | 
24,317,342  | 
 | 
 
  
 |