v3.22.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities      
Net loss $ (1,429,653) $ (487,955) $ (944,839)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 202,173 119,141 86,744
Stock-based compensation 1,387,787 1,092,135 770,182
Amortization of debt discount and issuance costs 6,865 4,311 81,401
Losses (gains) on debt and equity securities, net 36,838 (289,052) (10,250)
Induced conversion expense related to convertible notes 0 41,538 0
Other 15,596 8,643 2,963
Change in operating assets and liabilities, net of effect of acquisitions:      
Accounts receivable, net of allowance (119,780) (332,967) (255,818)
Prepaid expenses and other current assets (40,917) (26,607) (14,587)
Operating lease right-of-use assets 71,441 47,258 38,940
Other assets (504) (10,916) (11,442)
Accounts payable 46,492 53,579 20,374
Accrued expenses and other current liabilities 71,706 117,092 108,601
Operating lease liabilities (68,886) (49,294) (49,730)
Other liabilities 5,456 5,974 9,817
Net cash provided by (used in) operating activities 184,614 292,880 (167,644)
Cash flows from investing activities      
Purchases of property and equipment (129,306) (69,875) (57,832)
Purchases of strategic investments (26,346) (41,160) (111,586)
Sales of strategic investments 63,276 36,777 0
Cash paid for acquisitions, net of cash acquired (67,067) (310,915) (168,850)
Purchases of marketable securities (3,485,638) (2,438,983) (3,524,599)
Sales of marketable securities 75,716 379,555 389,974
Maturities of marketable securities 2,525,215 2,536,725 2,737,523
Other (18,125) (1,897) 5,506
Net cash provided by (used in) investing activities (1,062,275) 90,227 (729,864)
Cash flows from financing activities      
Proceeds from issuance of convertible notes, net of issuance costs 1,483,500 1,137,227 988,582
Purchase of capped calls (177,000) (86,825) (100,000)
Proceeds from the exercise of stock options 4,272 14,671 34,209
Payments of debt issuance costs (3,006) 0 0
Repurchases of Class A non-voting common stock (1,001,052) 0 0
Net cash provided by (used in) financing activities 306,714 1,065,073 922,791
Change in cash, cash equivalents, and restricted cash (570,947) 1,448,180 25,283
Cash, cash equivalents, and restricted cash, beginning of period 1,994,723 546,543 521,260
Cash, cash equivalents, and restricted cash, end of period 1,423,776 1,994,723 546,543
Supplemental disclosures      
Cash paid for income taxes, net 12,087 25,333 3,692
Cash paid for interest $ 8,873 $ 10,887 $ 12,019