XML 28 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 income (loss) $ (96,047) $ 316,438 $ (128,323)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:      
Depreciation and amortization 46,489 27,500 36,988
Share-based compensation 497,123 415,382 321,020
Non-cash charitable contributions 0 45,300 2,748
Other (13,889) 9,607 8,332
Changes in assets and liabilities:      
Accounts receivable (28,856) (88,862) (253,173)
Prepaid expenses and other assets (30,214) (14,727) 4,128
Operating lease right-of-use assets 56,024 43,995 41,898
Accounts payable 70,777 (33,451) 15,721
Accrued expenses and other liabilities 20,627 82,435 23,647
Operating lease liabilities (52,832) (50,710) (44,160)
Net cash provided by operating activities 469,202 752,907 28,826
Investing activities      
Purchases of property and equipment and intangible assets (28,984) (9,031) (17,401)
Purchases of marketable securities (1,028,480) (1,104,087) (1,216,260)
Sales of marketable securities 7,417 274,654 265,422
Maturities of marketable securities 1,007,861 849,520 920,300
Acquisition of business, net of cash acquired (86,059) (36,914) 0
Other investing activities 0 0 316
Net cash used in investing activities (128,245) (25,858) (47,623)
Financing activities      
Proceeds from exercise of stock options, net 12,882 23,912 78,282
Shares repurchased for tax withholdings on release of restricted stock units and restricted stock awards (161,809) 0 (56,894)
Payment of deferred offering costs and other financing activities 0 (1,750) (1,750)
Net cash (used in) provided by financing activities (148,927) 22,162 19,638
Effect of exchange rate changes on cash, cash equivalents and restricted cash (1,434) (1,058) 327
Net increase in cash, cash equivalents and restricted cash 190,596 748,153 1,168
Cash, cash equivalents and restricted cash, beginning of period 1,427,064 678,911 677,743
Cash, cash equivalents and restricted cash, end of period 1,617,660 1,427,064 678,911
Supplemental cash flow information      
Operating lease right-of-use assets obtained in exchange for operating lease liabilities $ 31,515 $ 118,977 $ 15,089