XML 20 R8.htm IDEA: XBRL DOCUMENT v3.22.2.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Cash flows from operating activities:    
Net loss $ (13,741) $ (411,204)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 14,620 13,304
Stock-based compensation 173,631 100,907
Deferred income taxes 1,522 (1,614)
Net loss on exchange derivative and capped call transactions 0 424,482
Amortization of debt discount and issuance cost 118 9,841
Net loss on strategic investments 11,513 31,422
Net foreign currency gain (3,625) (6,398)
Gain on a non-cash sale of a controlling interest of a subsidiary (43,092) 0
Other 0 (615)
Changes in operating assets and liabilities:    
Accounts receivable, net 61,314 (13,211)
Prepaid expenses and other assets (22,677) (21,185)
Accounts payable 31,147 10,223
Accrued expenses and other liabilities (108,443) (84,406)
Deferred revenue (9,845) 13,455
Net cash provided by operating activities 92,442 65,001
Cash flows from Investing activities:    
Business combinations, net of cash acquired (600) (1,138)
Purchases of property and equipment (16,496) (6,881)
Purchases of strategic investments (8,350) (53,000)
Purchases of marketable securities (10,000) (21,003)
Proceeds from maturities of investments 28,950 53,887
Proceeds from sale of strategic investments 258 0
Proceeds from sales of marketable securities 0 186,262
Net cash provided by (used in) investing activities (6,238) 158,127
Cash flows from financing activities:    
Proceeds from term loan facility 0 650,000
Repayment of exchangeable senior notes 0 (314,310)
Proceeds from settlement of capped call transactions 0 30,978
Proceeds from other financing arrangements 1,572 0
Other financing activities (176) 1
Net cash provided by financing activities 1,396 366,669
Effect of foreign exchange rate changes on cash, cash equivalents and restricted cash (4,939) (2,109)
Net increase in cash, cash equivalents, and restricted cash 82,661 587,688
Cash, cash equivalents, and restricted cash at beginning of period 1,386,686 931,023
Net decrease in cash and cash equivalents included in assets held for sale 602 502
Cash, cash equivalents, and restricted cash at end of period 1,469,949 1,519,213
Reconciliation of cash, cash equivalents, and restricted cash within the consolidated balance sheets to the amounts shown in the consolidated statements of cash flows above:    
Cash and cash equivalents 1,385,265  
Restricted cash included in other non-current assets 1,378 11,795
Total cash, cash equivalents, and restricted cash 1,469,949 1,519,213
Supplemental disclosures of cash flow information:    
Income taxes paid, net of refunds 29,220 11,330
Interest paid 5,575 1,199
Non-cash investing and financing activities:    
Purchase of property and equipment included in accrued expenses and other current liabilities $ (6,978) $ (2)