XML 54 R42.htm IDEA: XBRL DOCUMENT v3.22.2.2
DEBT OBLIGATIONS - Schedule of Long-term Debt (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Dec. 31, 2021
Debt Instrument [Line Items]    
Less: Unamortized debt issuance costs $ (12,437) $ (15,073)
Net carrying amount 677,563 674,927
Less: Current installments of long-term debt 0 0
Less: Current installments of long-term debt to related party 0 (16,082)
Long-term debt, net of current portion 677,563 674,927
Convertible Notes Due 2026 | Convertible Debt    
Debt Instrument [Line Items]    
Outstanding balance, gross 690,000 690,000
Related Party Debt    
Debt Instrument [Line Items]    
Less: Unamortized debt discount 0 (517)
Net carrying amount 0 16,082
Less: Current installments of long-term debt to related party 0 (16,082)
Long-term debt, net of current portion 0 0
Related Party Debt | Offtake Advances    
Debt Instrument [Line Items]    
Outstanding balance, gross $ 0 $ 16,599