XML 53 R34.htm IDEA: XBRL DOCUMENT v3.22.2
Summary of Significant Accounting Policies (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Jan. 01, 2022
Dec. 31, 2021
Aug. 31, 2021
May 31, 2020
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Current portion of convertible senior notes, net $ 0   $ 12,117    
Decrease in additional paid-in capital (1,347,671)   (1,494,512)    
Accumulated deficit $ (751,428)   $ (680,829)    
2025 Notes | Convertible Debt          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Interest rate 0.75%       0.75%
2026 Notes | Convertible Debt          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Interest rate 0.00%     0.00%  
Cumulative Effect, Period of Adoption, Adjustment          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Accumulated deficit   $ 34,300      
Accounting Standards Update 2020-06          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Convertible debt   288,900      
Accounting Standards Update 2020-06 | Cumulative Effect, Period of Adoption, Adjustment          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Current portion of convertible senior notes, net   4,400      
Decrease in additional paid-in capital   $ 318,800