XML 83 R52.htm IDEA: XBRL DOCUMENT v3.22.2
Convertible Senior Notes - Schedule of Net Carrying Amount of Liability and Equity Component of Convertible Notes (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Dec. 31, 2021
Jun. 30, 2020
Mar. 31, 2018
Convertible senior notes due 2023        
Net Carrying Amount of Equity Component of Convertible Notes [Abstract]        
Debt discount for conversion option $ 125,000      
Convertible debt | Convertible senior notes due 2025        
Net Carrying Amount of Liability Component of Convertible Notes [Abstract]        
Principal 1,150,000 $ 1,150,000    
Unamortized debt discount 0 (157,983)    
Unamortized issuance costs (12,576) (12,667) $ (17,000)  
Net carrying amount 1,137,424 979,350    
Net Carrying Amount of Equity Component of Convertible Notes [Abstract]        
Debt discount for conversion option 0 220,061 $ 220,000  
Issuance costs 0 (4,035)    
Net carrying amount 0 216,026    
Convertible debt | Convertible senior notes due 2023        
Net Carrying Amount of Liability Component of Convertible Notes [Abstract]        
Principal 149,194 149,194    
Unamortized debt discount 0 (8,641)    
Unamortized issuance costs (507) (815)    
Net carrying amount 148,687 139,738   $ 367,000
Net Carrying Amount of Equity Component of Convertible Notes [Abstract]        
Debt discount for conversion option 0 32,427    
Issuance costs 0 (765)    
Net carrying amount $ 0 $ 31,662