XML 17 R7.htm IDEA: XBRL DOCUMENT v3.19.2
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Cash flows from operating activities:    
Net income (loss) $ (184,658) $ 4,698
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation and amortization 40,749 16,909
Stock-based compensation expense 40,128 31,482
(Gain) loss from foreign currency, sales of investments, assets and other, net (385) 1,491
(Accretion) and amortization on marketable debt securities, net (385) (1,300)
Noncash lease expense 3,161  
Noncash interest expense 1,008  
Change in deferred income taxes and other (34,031) 1,273
Changes in operating assets and liabilities:    
Accounts receivable, net (26,510) 14,009
Prepaid expenses and other assets 7,160 (7,223)
Accounts payable (7,288) (16,261)
Deferred revenue 155,989 28,126
Income tax payable 60 (5,042)
Operating lease and other liabilities 105,166 (30,974)
Net cash provided by (used in) operating activities 100,164 37,188
Cash flows from investing activities:    
Purchases of investments (124,091) (184,089)
Maturities of investments 16,500 302,000
Sales of investments 4,987 9,999
Acquisition of property and equipment (9,958) (3,679)
Proceeds from sale of property and equipment 90 28
Business acquisitions, net of cash acquired and restricted cash held in escrow (299,357) (222,075)
Release of restricted cash escrow from business combinations (10,000) (22,800)
Other investing activities, net   97
Net cash provided by (used in) investing activities (421,829) (120,519)
Cash flows from financing activities:    
Proceeds from issuance of debt, net 672,682  
Purchase of capped calls (73,830)  
Taxes paid related to net share settlement of stockholders' equity awards (27,620) (13,972)
Repurchases of common stock   (65,418)
Proceeds from issuance of common stock 7,031 4,158
Repayment of debt (101,364)  
Other financing activities, net (327)  
Net cash provided by (used in) financing activities 476,572 (75,232)
Effect of exchange rate changes on cash, cash equivalents and restricted cash 11,446 (1,931)
Net change in cash, cash equivalents and restricted cash 166,353 (160,494)
Cash, cash equivalents and restricted cash, beginning of period 579,996 405,677
Cash, cash equivalents and restricted cash, end of period 746,349 $ 245,183
Noncash investing activity:    
Acquisition-related common stock issuance $ 253,903