XML 27 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
Cash flows from operating activities:      
Net loss $ (116,861) $ (94,010) $ (78,764)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 10,888 10,167 6,321
Stock-based compensation 109,779 68,585 46,139
Amortization of deferred commissions 14,147 13,106 13,630
Noncash operating lease costs 8,232 8,737 9,023
Amortization of debt discount and issuance costs 6,870 4,096 0
Capital loss from sale of fixed assets 0 0 45
Changes in assets and liabilities:      
Trade receivables (22,950) (19,075) 8,173
Prepaid expenses and other current assets (506) (543) (1,225)
Deferred commissions (21,151) (19,131) (19,132)
Other long-term assets 1,404 1,172 81
Trade payables 4,474 (328) (1,623)
Accrued expenses and other short-term liabilities 5,850 16,058 (886)
Deferred revenues 5,421 (169) 7,219
Other long-term liabilities 1,581 5,493 316
Net cash provided by (used in) operating activities 7,178 (5,842) (10,683)
Cash flows from investing activities:      
Proceeds from sales and maturities of marketable securities 34,117 51,539 65,359
Investment in marketable securities 0 (44,124) (67,120)
Proceeds from short-term and long-term deposits 80,752 74,776 147,531
Investment in short-term and long-term deposits (50,000) (97,454) (87,086)
Acquisition, net of cash acquired 0 (29,369) 0
Proceeds from sale of property and equipment 0 0 11
Purchases of property and equipment (10,490) (10,116) (25,392)
Net cash provided by (used in) investing activities 54,379 (54,748) 33,303
Cash flows from financing activities:      
Proceeds from follow-on offering, net 500,034 0 0
Proceeds from issuance of convertible senior notes, net of issuance costs 0 245,308 0
Purchases of capped calls 0 (29,348) 0
Proceeds from employee stock plans, net 10,078 9,793  
Proceeds from employee stock plans, net     (2,398)
Net cash provided by (used in) financing activities 510,112 225,753 (2,398)
Increase in cash and cash equivalents 571,669 165,163 20,222
Cash and cash equivalents at beginning of period 234,092 68,929 48,707
Cash and cash equivalents at end of period 805,761 234,092 68,929
Supplemental disclosure of cash flow information:      
Cash paid for income taxes 8,507 1,342 3,955
Lease liabilities arising from obtaining right-of-use assets $ 22,156 $ 6,256 $ 10,252