Quarterly report pursuant to Section 13 or 15(d)

Convertible Senior Notes - Narrative (Details)

v3.23.1
Convertible Senior Notes - Narrative (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended 12 Months Ended
Nov. 15, 2022
position
$ / shares
Aug. 31, 2022
USD ($)
Jan. 31, 2021
USD ($)
May 31, 2018
USD ($)
d
$ / shares
shares
Mar. 31, 2023
USD ($)
Mar. 31, 2022
USD ($)
Jun. 30, 2022
USD ($)
Dec. 31, 2021
USD ($)
shares
Dec. 31, 2022
USD ($)
Debt Instrument [Line Items]                  
Gain on extinguishment of debt         $ 0 $ 1,532      
Payments to unwind warrants               $ 18,400  
Convertible Notes | 2023 convertible senior notes                  
Debt Instrument [Line Items]                  
Interest rate (as a percent)       0.75%          
Aggregate principal amount outstanding       $ 750,000 76,854       $ 76,854
Proceeds from debt, net of issuance costs       $ 733,100          
Initial conversion price (in USD per share) | $ / shares       $ 206.65          
Debt issuance costs         $ 16,900        
Term of debt instrument         5 years        
Effective interest rate (as a percent)         0.50%        
Total interest expense         $ 200        
Contractual interest expense         100        
Amortized issuance costs         $ 100        
Repurchased amount of debt instrument     $ 20,300     163,700   152,000  
Repayments of notes     19,100     165,800   156,000  
Accrued interest portion of repurchased amount of debt instrument     $ 100     400 $ 400 $ 300  
Gain on extinguishment of debt           1,500      
Decrease in debt discount           $ 900      
Warrants issued in public offering (in shares) | shares       3,018,327       2,559,254  
Payments for convertible bond hedges       $ 140,300          
Warrant exercise price (in USD per share) | $ / shares       $ 315.38          
Adjustments to additional paid-in-capital from warrants       $ 90,000          
Convertible Notes | 2023 convertible senior notes | Notes repurchased in August 2022                  
Debt Instrument [Line Items]                  
Repayments of notes   $ 223,700              
Repurchased amount of debt instrument   $ 227,800              
Convertible Notes | 2023 convertible senior notes | Debt Instrument, Redemption, Period One                  
Debt Instrument [Line Items]                  
Threshold trading days | d       20          
Consecutive trading days | d       30          
Stock price trigger to classify convertible debt as current (as a percent)       130.00%          
Convertible Notes | 2023 convertible senior notes | Debt Instrument, Redemption, Period Two                  
Debt Instrument [Line Items]                  
Threshold trading days | d       5          
Consecutive trading days 10     10          
Maximum threshold of debt trading price trigger (as a percent)       98.00%          
Convertible Notes | 2023 convertible senior notes | Minimum                  
Debt Instrument [Line Items]                  
Initial conversion rate (shares per $1,000) 0.004839                
Initial conversion price (in USD per share) | $ / shares $ 206.65                
Convertible Notes | 2023 convertible senior notes | Maximum                  
Debt Instrument [Line Items]                  
Initial conversion rate (shares per $1,000) 0.0062907                
Initial conversion price (in USD per share) | $ / shares $ 158.97