v3.23.3
Debt - Narrative (Details)
1 Months Ended 3 Months Ended 9 Months Ended
Jan. 11, 2023
USD ($)
day
$ / shares
Jan. 09, 2023
USD ($)
Apr. 30, 2020
USD ($)
$ / shares
Apr. 30, 2020
USD ($)
day
$ / shares
Sep. 30, 2023
USD ($)
agreement
$ / shares
Mar. 31, 2023
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2023
USD ($)
agreement
$ / shares
Sep. 30, 2022
USD ($)
Jan. 08, 2023
USD ($)
Dec. 31, 2022
USD ($)
$ / shares
Debt Instrument [Line Items]                      
Net carrying amount         $ 883,090,000     $ 883,090,000     $ 936,144,000
Debt instrument, unamortized debt discount and issuance costs         $ 46,678,000     46,678,000     $ 17,666,000
Proceeds from debt               $ 309,223,000 $ 530,000    
Common stock, par value (in dollars per share) | $ / shares     $ 0.001 $ 0.001 $ 0.001     $ 0.001     $ 0.001
Loss on debt extinguishment           $ 12,100,000   $ 12,123,000 $ 0    
Unamortized issuance costs           $ 4,600,000          
Prince Georges County Maryland                      
Debt Instrument [Line Items]                      
Interest rate (as a percent)         3.00%     3.00%      
Number of contracts (in contracts) | agreement         2     2      
Revolving facility                      
Debt Instrument [Line Items]                      
Borrowing capacity terminated         $ 20,000,000     $ 20,000,000      
Line of credit facility, remaining borrowing capacity         20,000,000     20,000,000      
Standby Letters of Credit                      
Debt Instrument [Line Items]                      
Borrowing capacity terminated         12,100,000     12,100,000      
Term Loan Agreement                      
Debt Instrument [Line Items]                      
Debt instrument, unamortized debt discount and issuance costs         $ 23,500,000     $ 23,500,000     $ 12,800,000
Debt instrument, effective interest rate (as a percent)         14.30%   9.00% 14.20% 9.00%    
Revolving Loan Facility                      
Debt Instrument [Line Items]                      
Debt instrument, effective interest rate (as a percent)         10.80%     10.60%      
Convertible senior notes                      
Debt Instrument [Line Items]                      
Net carrying amount         $ 527,000,000     $ 527,000,000     380,000,000
Convertible senior notes | 2030 Notes                      
Debt Instrument [Line Items]                      
Debt instrument, convertible, conversion ratio 0.1111111                    
Principal $ 147,000,000       147,000,000     147,000,000      
Net carrying amount         127,133,000     127,133,000      
Interest rate (as a percent) 4.50%                    
Proceeds from debt $ 127,100,000                    
Debt issuance costs         $ 2,400,000     $ 6,700,000      
Debt instrument, convertible, threshold percentage of stock price trigger (as a percent) 130.00%                    
Debt instrument, convertible, threshold trading days | day 20                    
Debt instrument, convertible, threshold consecutive trading days (in days) | day 30                    
Debt instrument, convertible, conversion price (in dollars per share) | $ / shares $ 9.00                    
Interest rate during period         7.50%     7.40%      
Convertible senior notes | The 2025 Notes                      
Debt Instrument [Line Items]                      
Principal     $ 380,000,000 $ 380,000,000              
Interest rate (as a percent)     2.25% 2.25%              
Convertible senior notes | The 2025 Notes | Minimum | Debt Instrument, Redemption, Period One from December 28, 2024 to December 28, 2026                      
Debt Instrument [Line Items]                      
Principal   $ 40,000,000                  
Convertible senior notes | The Notes                      
Debt Instrument [Line Items]                      
Debt instrument, convertible, conversion ratio       0.0353773              
Net carrying amount         $ 376,669,000     $ 376,669,000     375,102,000
Principal     $ 380,000,000 $ 380,000,000 $ 380,000,000     $ 380,000,000     380,000,000
Interest rate (as a percent)     2.25% 2.25%              
Proceeds from debt       $ 369,600,000              
Debt instrument, effective interest rate (as a percent)         2.90%     2.90%      
Debt issuance costs         $ 2,700,000   $ 2,700,000 $ 8,000,000 $ 8,000,000    
Debt instrument, convertible, threshold percentage of stock price trigger (as a percent)       130.00%              
Debt instrument, convertible, threshold trading days | day       20              
Debt instrument, convertible, threshold consecutive trading days (in days) | day       30              
Debt instrument, convertible, threshold consecutive trading days, sale price per share (in days) | day       5              
Debt instrument, convertible, measurement period (in days) | day       10              
Debt instrument, threshold percentage of sales price per share (as a percent)       98.00%              
Debt instrument, convertible, conversion price (in dollars per share) | $ / shares     $ 28.27 $ 28.27              
Capped call, cap price (in dollars per share) | $ / shares     $ 44.34                
Cost of capped call transaction     $ 50,500,000 $ 50,500,000              
Line of Credit | Term Loan Agreement                      
Debt Instrument [Line Items]                      
Net carrying amount   380,000,000               $ 567,000,000  
Net carrying amount   $ 372,400,000                  
Debt instrument, prepayment fee   1.00%                  
Principal repayments (as a percent)         0.25%     0.25%      
Interest expense         $ 14,000,000   $ 13,200,000 $ 40,500,000 $ 35,400,000    
Line of Credit | Term Loan Agreement | Base rate                      
Debt Instrument [Line Items]                      
Variable rate, applicable margin (as a percent)   5.50%                  
Interest rate (as a percent)         4.75%     4.75%      
Line of Credit | Term Loan Agreement | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate                      
Debt Instrument [Line Items]                      
Variable rate, applicable margin (as a percent)   6.50%                  
Line of Credit | Term Loan Agreement | Eurodollar                      
Debt Instrument [Line Items]                      
Interest rate (as a percent)         5.75%     5.75%      
Line of Credit | The 2025 Notes | Minimum | Debt Instrument, Redemption, Period Two from June 28 2026                      
Debt Instrument [Line Items]                      
Long-term debt, average amount outstanding   $ 50,000,000                  
Line of Credit | Revolving Loan Facility                      
Debt Instrument [Line Items]                      
Principal   $ 40,000,000                  
Line of Credit | Revolving Loan Facility | Base rate                      
Debt Instrument [Line Items]                      
Variable rate, applicable margin (as a percent)   4.50%                  
Line of Credit | Revolving Loan Facility | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate                      
Debt Instrument [Line Items]                      
Variable rate, applicable margin (as a percent)   5.50%                  
Line of Credit | Senior Secured Term Loan Facility                      
Debt Instrument [Line Items]                      
Senior secured term loan facility       $ 250,000,000              
Deferred government grant obligations                      
Debt Instrument [Line Items]                      
Net carrying amount         $ 3,500,000     $ 3,500,000     3,500,000
Interest payable         700,000     700,000     600,000
Deferred government grant obligations | Prince Georges County Maryland                      
Debt Instrument [Line Items]                      
Net carrying amount         3,500,000     3,500,000      
Fair Value, Inputs, Level 2 | Convertible senior notes                      
Debt Instrument [Line Items]                      
Fair value         226,900,000     226,900,000     $ 241,600,000
Fair Value, Inputs, Level 2 | Convertible senior notes | 2030 Notes                      
Debt Instrument [Line Items]                      
Fair value         $ 73,200,000     $ 73,200,000