XML 38 R8.htm IDEA: XBRL DOCUMENT v3.10.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Operating activities      
Net loss $ (86,420) $ (120,875) $ (58,068)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation 6,562 6,099 6,040
Net amortization of premium and discount on investments (42) 1,844 2,729
Unrealized loss on cash equivalents and short-term equity investments 1,120 2 0
Loss on disposal of property and equipment 53 3 0
Stock-based compensation 52,142 37,539 32,132
Realized foreign currency gain (1,074) 0 0
Tax benefit on unrealized gain on available-for-sale securities 0 0 (211)
Realized gain on sales of available-for-sale securities (87) (143) (37)
Changes in operating assets and liabilities:      
Accounts receivable ($(43,206), $98 and $353 from related party) (55,232) 1,996 4,957
Prepaid expenses and other current assets (129) (1,911) 1,099
Other assets 1,090 (2,365) (136)
Accounts payable 3,630 (714) (298)
Accrued liabilities ($172, $(1,343) and $(430) from related party) 5,606 9,196 2,965
Deferred revenue (5,031) 174 13,225
Lease financing liability 32 1,023 814
Other long-term liabilities 1,636 1,619 1,897
Net cash provided by (used in) operating activities (76,144) (66,513) 7,108
Investing activities      
Purchases of property and equipment (8,020) (8,500) (1,252)
Proceeds from sale of property and equipment 184 5 0
Purchases of available-for-sale securities and term deposit (576,880) (169) (9,041)
Proceeds from sales of available-for-sale securities 8,167 21,109 4,298
Proceeds from maturities of investments 54,426 57,421 12,617
Net cash provided by (used in) investing activities (522,123) 69,866 6,622
Financing activities      
Borrowings under capital lease obligations 49 0 0
Repayments of capital lease obligations (6) 0 0
Repayments of lease liability (403) (403) (403)
Proceeds from follow-on offerings, net of underwriting discounts and commission costs 0 471,205 0
Cash paid for payroll taxes on restricted stock unit releases (15,612) (8,296) (2,740)
Proceeds from issuance of common stock 29,847 34,910 9,881
Payments of deferred offering costs 0 (944) 0
Net cash provided by financing activities 13,875 496,472 6,738
Effect of exchange rate change on cash and cash equivalents (8) 51 (10)
Net increase (decrease) in cash and cash equivalents (584,400) 499,876 20,458
Total cash and cash equivalents at beginning of period 673,658 173,782 153,324
Total cash and cash equivalents at end of period 89,258 673,658 173,782
Supplemental cash flow information:      
Interest payments 218 255 295
Balance in accounts payable and accrued liabilities related to purchases of property and equipment 276 3,781 356
Deferred offering costs recorded in accounts payable and accrued liabilities $ 24 $ 35 $ 0