v3.26.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Operating activities    
Net loss $ (436,139) $ (425,586)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation of long-lived assets 12,871 24,910
Amortization of intangible assets 1,822 4,008
Lower of cost or net realizable value inventory adjustments and provision for excess and obsolete inventory 15,166 21,166
Stock-based compensation 26,888 24,167
(Gain)/loss on extinguishment of convertible debt instruments and finance obligations (1,715) 9,127
Provision for losses on accounts receivable 2,394 4,672
Amortization of discount/(premium) of debt issuance costs on convertible debt instruments and long-term debt 2,081 (214)
Provision for common stock warrants 18,950 18,599
Impairment 23,221 21,663
Recovery on service contracts (35,175) (25,806)
Change in fair value of contingent consideration 477 (11,987)
Change in fair value of convertible debt instruments 145,017 (1,902)
Change in fair value of debt   3,408
Change in fair value of warrant liabilities 83,931  
Loss on equity method investments 1,145 48,220
Changes in operating assets and liabilities that provide/(use) cash:    
Accounts receivable 6,503 13,829
Inventory 3,530 16,356
Contract assets (6,942) (5,210)
Prepaid expenses and other assets (11,189) 41,691
Accounts payable, accrued expenses, and other liabilities (49,394) (4,077)
Deferred revenue and other contract liabilities (13,910) (54,938)
Payments of contingent consideration (1,918) (8,341)
Payments of operating lease liabilities, net (31,719) (11,133)
Net cash used in operating activities (244,105) (297,378)
Investing activities    
Purchases of property, plant and equipment (8,711) (79,069)
Proceeds from sale of property, plant and equipment 1,035  
Proceeds from sale of investment tax credit 36,148  
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers (30,064) (7,409)
Cash paid for non-consolidated entities and non-marketable securities (6,600) (838)
Net cash used in investing activities (8,192) (87,316)
Financing activities    
Payments of contingent consideration (2,330)  
Proceeds from public and private offerings, net of transaction costs   276,192
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation (159) (207)
Proceeds from exercise of stock options 1,636  
Contributions by non-controlling interest 300 750
Distributions to non-controlling interest (16,474)  
Principal payments on convertible debt instruments (2,413) (185,962)
Premium on principal of convertible debt instruments settled in cash   (3,832)
Proceeds from debt issuance   199,500
Principal payments on long-term debt (692) (688)
Cash paid for capitalized closing fees related to DOE loan guarantee   (13,414)
Principal repayments of finance obligations and finance leases (47,788) (46,275)
Net cash (used in)/provided by financing activities (67,920) 226,064
Effect of exchange rate changes on cash (2,239) (5,278)
Decrease in cash and cash equivalents (206,646) (64,957)
Decrease in restricted cash (115,810) (98,951)
Cash, cash equivalents, and restricted cash beginning of period 993,984 1,040,709
Cash, cash equivalents, and restricted cash end of period 671,528 876,801
Supplemental disclosure of cash flow information    
Cash paid for interest, net of capitalized interest of $0 and $8.9 million, respectively 31,828 28,034
Summary of non-cash activity    
Recognition of right of use asset - finance leases 6,055  
Recognition of right of use asset - operating leases 1,562 21,596
Principal payment on convertible debenture paid in common stock   50,000
Contributions of property, plant, and equipment from non-controlling interest   2,341
Increase to other current assets due to net transfers between other current assets and long-lived assets 39,200  
Decrease to contract assets due to net transfers between contract assets and long-lived assets (6,106)  
(Decrease)/increase to inventory due to net transfers between inventory and long-lived assets (9,098) 4,794
Accrued purchase of fixed assets, cash to be paid in subsequent period $ 22,285 $ 40,814