v3.22.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities        
Net loss $ (422,067) $ (151,664) $ (781,691) $ (438,546)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:        
Depreciation and amortization 79,291 28,270 117,391 51,768
Stock-based compensation 318,810 256,600 594,254 493,673
Amortization of debt issuance costs 1,780 1,148 3,193 2,192
Losses (gains) on debt and equity securities, net 12,210 (79,940) 91,337 (102,451)
Other 3,079 34,856 4,204 41,685
Change in operating assets and liabilities, net of effect of acquisitions:        
Accounts receivable, net of allowance (81,001) (174,452) 45,026 (45,136)
Prepaid expenses and other current assets (11,980) 1,065 (39,158) (11,371)
Operating lease right-of-use assets 18,299 12,549 35,283 23,747
Other assets (7,230) (338) (7,538) (1,236)
Accounts payable (3,919) (50,159) 51,061 6,346
Accrued expenses and other current liabilities (14,392) 27,690 (77,220) 33,039
Operating lease liabilities (16,499) (8,059) (34,315) (21,354)
Other liabilities (462) 1,348 1,551 3,444
Net cash provided by (used in) operating activities (124,081) (101,086) 3,378 35,800
Cash flows from investing activities        
Purchases of property and equipment (23,370) (14,623) (44,545) (25,474)
Purchases of strategic investments (6,200) (31,425) (6,350) (32,775)
Sales of strategic investments 63,276 36,250 63,276 36,435
Cash paid for acquisitions, net of cash acquired (11,220) (30,304) (12,008) (139,216)
Purchases of marketable securities (568,055) (764,371) (1,910,436) (1,287,590)
Sales of marketable securities 2,982 239,500 12,759 347,556
Maturities of marketable securities 554,026 696,892 896,571 1,513,823
Other   (50) (5,493) (335)
Net cash provided by (used in) investing activities 11,439 131,869 (1,006,226) 412,424
Cash flows from financing activities        
Proceeds from issuance of convertible notes, net of issuance costs   1,137,227 1,483,500 1,137,227
Purchase of capped calls   (86,825) (177,000) (86,825)
Proceeds from the exercise of stock options 1,388 3,257 3,654 7,710
Payments of debt issuance costs (3,006)   (3,006)  
Net cash provided by (used in) financing activities (1,618) 1,053,659 1,307,148 1,058,112
Change in cash, cash equivalents, and restricted cash (114,260) 1,084,442 304,300 1,506,336
Cash, cash equivalents, and restricted cash, beginning of period 2,413,283 968,437 1,994,723 546,543
Cash, cash equivalents, and restricted cash, end of period 2,299,023 2,052,879 2,299,023 2,052,879
Supplemental disclosures        
Cash paid for income taxes, net 4,848 3,280 7,484 14,288
Cash paid for interest $ 551 $ 1,614 $ 4,005 $ 6,741