XML 18 R7.htm IDEA: XBRL DOCUMENT v3.20.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Cash flows from operating activities    
Net loss $ (136,964) $ (144,517)
Adjustments to reconcile net loss to net cash used in operating activities    
Depreciation 4,741 3,610
Amortization and accretion 20,446 6,335
Stock-based compensation 30,505 33,921
Other non-cash (369) (252)
Changes in operating assets and liabilities    
Accounts receivable, net (8,494) (30,563)
Inventory 915 (4,080)
Prepaid, current and other assets (371) (2,715)
Accounts payable, accrued expenses and other current liabilities 6,884 18,576
Operating lease liabilities (4,345) (3,621)
Net cash used in operating activities (87,052) (123,306)
Cash flows from investing activities    
Purchase of available-for-sale investments (84,111) (97,268)
Proceeds from sales and maturities of investments 160,769 0
Purchase of property, plant and equipment (2,504) (7,911)
Net cash provided by (used in) investing activities 74,154 (105,179)
Cash flows from financing activities    
Proceeds from loan 8,274 0
Repayment of loan (8,274) 0
Proceeds from convertible notes, net of issuance costs 0 308,349
Payment for capped call options 0 (32,890)
Payments related to issuance of stock for stock-based compensation arrangements, net (1,255) (597)
Payments of debt issuance costs 0 (532)
Proceeds from exercise of warrants 0 375
Other financing 0 (336)
Net cash (used in) provided by financing activities (1,255) 274,369
Net change in cash and cash equivalents (14,153) 45,884
Cash and cash equivalents, at beginning of period 143,940 202,818
Cash and cash equivalents, at end of period 129,787 248,702
Non-cash investing and financing activities    
Purchase of property, plant and equipment 321 1,389
Debt issuance costs included in accrued expense and other current liabilities $ 0 $ 1,275