v3.24.0.1
Debt - Additional Information (Details) - USD ($)
$ in Thousands
1 Months Ended 12 Months Ended
Jul. 26, 2023
Aug. 10, 2022
Aug. 31, 2021
Jan. 31, 2020
Dec. 31, 2023
Dec. 31, 2021
Dec. 31, 2020
Sep. 21, 2023
DEBT                
Debt issuance costs paid         $ 2,997 $ 9,152    
Loss on debt extinguishment         9,766 26,146    
Blackstone Alternative Credit Advisors ("Blackstone")                
DEBT                
Extinguishment of loan, amount         207,308      
Loss on debt extinguishment         9,766      
Unamortized debt issuance costs         1,972      
Term Loans                
DEBT                
Debt issuance costs         2,997      
Net cash received         197,003      
Fair value of loan         199,859      
Term Loans | Repayment Of Debt Commencing On December 31 2023                
DEBT                
Periodic payment principal         3,750      
Term Loans | Repayment Of Debt Beginning On December 31 2025                
DEBT                
Periodic payment principal         5,000      
Term Loans | Repayment of Debt Due on Maturity Date of July 26, 2028                
DEBT                
Periodic payment principal         $ 115,000      
Term Loans | Base rate | Minimum                
DEBT                
Basis spread on variable rate         2.50%      
Term Loans | Base rate | Maximum                
DEBT                
Basis spread on variable rate         3.00%      
Term Loans | SOFR                
DEBT                
Credit spread adjustment rate         0.10%      
Term Loans | SOFR | Minimum                
DEBT                
Basis spread on variable rate         3.50%      
Term Loans | SOFR | Maximum                
DEBT                
Basis spread on variable rate         4.00%      
TLA Term Loan                
DEBT                
Term of loan 5 years              
Aggregate principal amount $ 185,000              
Incremental Term Loan                
DEBT                
Aggregate principal amount               $ 15,000
Senior Secured Term Loan | Blackstone Alternative Credit Advisors ("Blackstone")                
DEBT                
Aggregate principal amount     $ 200,000          
Debt issuance costs     8,151          
Net cash received     191,849          
Senior Secured Delayed Draw Term Loan | Blackstone Alternative Credit Advisors ("Blackstone")                
DEBT                
Aggregate principal amount     100,000          
Percentage of ticking fee   1.00%            
Debt issuance costs paid     $ 1,000          
Credit Agreement | OrbiMed Royalty & Credit Opportunities, LP.                
DEBT                
Aggregate principal amount       $ 200,000        
Basis spread on variable rate       11.00%        
Extinguishment of loan, amount       $ 222,666        
Loss on debt extinguishment           $ 26,146    
Fixed interest rate       2.00%        
Debt instrument exit fee percentage       7.00%        
Multi-draw Loan Agreement | CRG Servicing LLC                
DEBT                
Aggregate principal amount       $ 200,000        
Extinguishment of loan, amount       $ 120,893        
Loss on debt extinguishment             $ 22,639