XML 29 R9.htm IDEA: XBRL DOCUMENT v3.22.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating activities      
Net loss $ (250,460) $ (276,852) $ (356,388)
Adjustments to reconcile net loss to net cash used in operating activities:      
Amortization of debt discount and deferred financing 2,490 1,794 2,546
Depreciation and amortization 6,209 8,846 4,775
Stock-based compensation 57,838 49,151 44,430
Loss on exchange of convertible notes 0 0 40,624
Loss on extinguishment of debt 257 7,276 0
Non-cash changes in the fair value of contingent consideration payable 6,514 3,144 3,297
Foreign currency remeasurement loss 3,565 5,471 254
Non-cash deferred taxes 34 (155) (1,415)
Other 0 99 (149)
Changes in operating assets and liabilities:      
Accounts receivable (8,189) (11,219) (11,114)
Inventories (7,790) (4,639) (5,114)
Prepaid expenses and other current assets (5,919) (8,766) (3,287)
Accounts payable, accrued expenses, and other current liabilities 7,430 (10,610) 46,742
Other non-current assets and liabilities (2,617) 4,420 (10,117)
Deferred reimbursements (1,500) (1,250) (5,500)
Payment of contingent consideration (10,353) 0 0
Net cash used in operating activities (202,491) (233,290) (250,416)
Investing activities      
Sale and redemption of marketable securities 424,043 354,826 499,047
Purchases of marketable securities (341,398) (365,178) (383,882)
Capital expenditures (3,884) (3,227) (20,012)
Net cash provided by (used in) investing activities 78,761 (13,579) 95,153
Financing activities      
Proceeds from issuance of common stock from equity financing and pre-funded warrants, net of issuance costs 199,750 0 0
Proceeds from issuance of common stock, net of issuance costs 0 0 188,994
Payment of long-term debt 0 (155,249) 0
Proceeds from long-term debt, net of issuance costs 0 385,929 0
Payment of finance leases (479) (76) (420)
Payments of employee withholding taxes related to restricted stock unit vesting (15,009) (10,028) (3,235)
Proceeds from termination of capped call confirmations 0 0 19,875
Proceeds from stock options exercised, net 10,228 42,282 11,476
Proceeds from warrants exercised, net 19,230 0 812
Payment of contingent consideration (1,647) 0 0
Net cash provided by financing activities 212,073 262,858 217,502
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (5,049) 3,830 1,729
Net increase in cash, cash equivalents, and restricted cash 83,294 19,819 63,968
Cash, cash equivalents, and restricted cash at the beginning of the year 166,162 146,343 82,375
Cash, cash equivalents, and restricted cash at the end of the year 249,456 166,162 146,343
Supplemental disclosures of cash flow information      
Tenant improvements paid through lease incentive 300 470 19,388
Cash paid during the period for interest 30,468 24,683 16,966
Contingent consideration paid in shares 0 0 9,316
Capital expenditures unpaid at the end of period 1,448 985 1,865
Cash paid for taxes $ 20,032 $ 10,371 $ 691