XML 99 R85.htm IDEA: XBRL DOCUMENT v3.22.4
CONVERTIBLE PROMISSORY NOTES - Narrative (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Nov. 22, 2021
USD ($)
day
$ / shares
Nov. 19, 2021
USD ($)
$ / shares
Apr. 28, 2021
USD ($)
shares
Jan. 31, 2021
USD ($)
Dec. 31, 2022
USD ($)
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Debt Instrument [Line Items]              
Proceeds from convertible notes         $ 0 $ 446,827 $ 33,081
Loss on extinguishment of debt         0 5,064 0
Capped Call Options              
Debt Instrument [Line Items]              
Cost of capped calls   $ 66,700       66,700  
Initial strike price (in dollars per share) | $ / shares   $ 29.2428          
Cap price (in dollars per share) | $ / shares   $ 49.6575          
Convertible Notes              
Debt Instrument [Line Items]              
Convertible notes payable           0 $ 67,600
Convertible Notes | Level 2              
Debt Instrument [Line Items]              
Outstanding principal         293,100    
Convertible Notes | Q1 2021 Convertible Notes              
Debt Instrument [Line Items]              
Proceeds from convertible notes       $ 1,100      
Convertible Notes | Convertible Promissory Notes              
Debt Instrument [Line Items]              
Debt conversion, converted instrument, shares issued (in shares) | shares     10,921,548        
Debt conversion, converted instrument, amount     $ 77,700        
Debt instrument, increase, accrued interest     7,700        
Loss on extinguishment of debt     $ 1,100        
Convertible Notes | 2028 Convertible Notes              
Debt Instrument [Line Items]              
Proceeds from convertible notes $ 445,700            
Face amount $ 460,000       460,000    
Fixed interest rate, annual 0.50%            
Conversion ratio 0.0341965            
Conversion price (in dollars per share) | $ / shares $ 29.24            
Redemption price, percentage 100.00%            
Term 7 years            
Unamortized discount $ 14,291       $ 12,091 $ 143,458  
Unamortized discount 12,420            
Debt Issuance Costs $ 1,871            
Effective interest rate 5.96%            
Equity component $ 135,200            
Debt discount, percent 0.90%            
Convertible Notes | 2028 Convertible Notes | Level 2              
Debt Instrument [Line Items]              
Outstanding principal $ 324,800            
Convertible Notes | 2028 Convertible Notes | Debt Instrument, Redemption, Period One              
Debt Instrument [Line Items]              
Conversion price, percentage 130.00%            
Convertible Notes | 2028 Convertible Notes | Debt Instrument, Redemption, Period Two              
Debt Instrument [Line Items]              
Threshold trading days | day 20