XML 44 R8.htm IDEA: XBRL DOCUMENT v3.20.2
Condensed Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Operating activities    
Net income (loss) $ (130,657) $ 21,153
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation 8,671 8,715
Amortization of finance lease right-of-use assets 7,886 7,720
Net accretion of discount on investments 103 (3,354)
Unrealized loss on equity investments (3) (78)
Investment loss in unconsolidated variable interest entity 13 0
Gain on disposal of property and equipment (3) (10)
Stock-based compensation 52,451 48,865
Realized loss on sales of available-for-sale securities 258 0
Changes in operating assets and liabilities:    
Accounts receivable, net 2,520 44,459
Inventories (5,206) (4,908)
Prepaid expenses and other current assets 121,923 (128,922)
Other assets 7,586 (953)
Accounts payable 1,440 (5,084)
Accrued and other liabilities 3,249 5,484
Deferred revenue 45,925 (50,915)
Accrued interest for finance lease liabilities (196) 104
Other long-term liabilities (27,130) 24,069
Net cash provided by (used in) operating activities 88,830 (33,655)
Investing activities    
Purchases of property and equipment (1,604) (4,017)
Payment made for acquisition (2,145) 0
Purchases of available-for-sale securities and term deposit (38) (155,932)
Proceeds from sales of available-for-sale securities 10,606 0
Proceeds from maturities of investments 301,900 305,000
Net cash provided by (used in) investing activities 308,719 145,051
Financing activities    
Repayments of finance lease liabilities (9,254) (8,810)
Repayments of lease obligations (302) (302)
Cash paid for payroll taxes on restricted stock unit releases (9,007) (10,614)
Proceeds from issuance of common stock 26,247 15,710
Net cash provided by (used in) financing activities 7,684 (4,016)
Effect of exchange rate change on cash and cash equivalents 969 (46)
Net increase (decrease) in cash and cash equivalents 406,202 107,334
Total cash and cash equivalents at beginning of period 126,266 89,258
Total cash and cash equivalents at end of period $ 532,468 $ 196,592