XML 25 R8.htm IDEA: XBRL DOCUMENT v3.22.4
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Operating activities      
Net loss $ (724,008) $ (459,965) $ (596,155)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation of long-lived assets 30,402 20,900 14,434
Amortization of intangible assets 21,195 2,469 1,135
Stock-based compensation 179,627 76,470 17,135
(Gain)/loss on extinguishment of debt 986   (17,686)
Amortization of debt issuance costs and discount on convertible senior notes 2,710 3,018 17,061
Provision for common stock warrants recorded as a reduction to revenue 12,683 6,566 425,047
Deferred income tax expense (benefit) 170 (16,197) (30,845)
Impairment of long-lived assets 5,218 10,224 6,430
(Benefit)/loss on service contracts (8,645) 63,124 33,125
Fair value adjustment to contingent consideration 16,468 11,176 (1,160)
Net realized loss on investments 1,395 81  
Amortization of premium on available-for-sale securities 990 9,232  
Lease origination costs (8,815) (10,410)  
Provision for bad debts and other assets     700
Loss on disposal of assets 268    
Change in fair value for equity securities 18,159 (6,738)  
Loss on equity method investments 20,166 5,704  
Changes in operating assets and liabilities that provide (use) cash:      
Accounts receivable (30,920) (27,601) (15,701)
Inventory (363,709) (98,791) (63,389)
Contract assets (39,515) (10,608)  
Prepaid expenses and other assets (92,521) (32,392) (18,401)
Accounts payable, accrued expenses, and other liabilities 88,458 24,908 51,880
Deferred revenue and other contract liabilities 40,615 70,654 20,914
Net cash used in operating activities (828,623) (358,176) (155,476)
Investing activities      
Purchases of property, plant and equipment (436,610) (172,166) (22,526)
Purchase of intangible assets   (928) (1,957)
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers (27,263) (20,172) (25,738)
Purchase of available-for-sale securities (838,622) (3,159,372)  
Proceeds from sales of available-for-sale securities 475,676 778,038  
Proceeds from maturities of available-for-sale securities 247,879 1,129,088  
Purchase of equity securities (5,000) (169,793)  
Proceeds from sales of equity securities   28,536  
Net cash paid for acquisitions (56,906) (136,526) (45,113)
Cash paid for non-consolidated entities and non-marketable equity securities (38,524) (17,596)  
Net cash used in investing activities (679,370) (1,740,891) (95,334)
Financing activities      
Proceeds from exercise of warrants, net of transaction costs   15,445  
Payments of contingent consideration (2,667) (1,541)  
Proceeds from public and private offerings, net of transaction costs   3,587,833 1,271,714
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation (23,735) (32,092)  
Proceeds from exercise of stock options 2,301 7,520 32,023
Proceeds from issuance of convertible senior notes, net     205,098
Repurchase of convertible senior notes     (90,238)
Purchase of capped calls and common stock forward     (16,253)
Proceeds from long-term debt, net     99,000
Proceeds from the termination of capped calls     24,158
Principal payments on long-term debt (121,389) (48,681) (48,020)
Proceeds from finance obligations 122,886 108,925 65,259
Principal repayments of finance obligations and finance leases (54,853) (39,630) (27,212)
Net cash (used in) provided by financing activities (77,457) 3,597,779 1,515,529
Effect of exchange rate changes on cash 2,600 (802) 65
(Decrease)/increase in cash and cash equivalents (1,790,639) 1,168,865 1,172,908
Increase in restricted cash 207,789 329,045 91,876
Cash, cash equivalents, and restricted cash beginning of period 3,132,194 1,634,284 369,500
Cash, cash equivalents, and restricted cash end of period 1,549,344 3,132,194 1,634,284
Supplemental disclosure of cash flow information      
Cash paid for interest, net of capitalized interest of $13.1 million, $4.8 million and $0 35,520 19,327 28,942
Summary of non-cash activity      
Recognition of right of use asset - finance leases 25,650 28,180  
Recognition of right of use asset - operating leases 178,222 110,337 55,651
Net tangible assets (liablities) acquired (assumed) in a business combination 5,342 (26,066) 8,751
Common stock issued for acquisitions 6,107 46,697  
Intangible assets acquired in a business combination 73,952 120,962 32,268
Conversion of convertible senior notes to common stock   15,345 62,553
Net transfers between inventory and long-lived assets 1,619 6,297  
Accrued purchase of fixed assets, cash to be paid in subsequent period $ 62,320 14,006  
Settlement of liability from acquisitions   $ 7,100  
Conversion of preferred stock to common stock     $ 1,179