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
Operating Activities:      
Net loss $ (77,837) $ (85,031) $ (53,746)
Adjustments to reconcile net loss to net cash and cash equivalents provided by operating activities:      
Depreciation and amortization 45,159 37,060 28,793
Stock-based compensation 166,761 121,488 97,754
Loss on early extinguishment of 2022 Convertible Notes 4,892 10,507  
Repayment of 2022 Convertible Notes attributable to the debt discount (26,428) (49,048)  
Gain on termination of operating leases (4,276)    
Loss on disposal of fixed assets 6,468    
Gain on strategic investments (11,741)    
Benefit from deferred income taxes (2,869) (2,185) (799)
Amortization of debt discount and issuance costs 23,507 24,890 21,790
Amortization (accretion) of bond discount 4,275 (3,657) (14,160)
Unrealized currency translation 1,304 (952) (156)
Changes in assets and liabilities, net of acquisition      
Accounts receivable (34,107) (29,971) (15,428)
Prepaid expenses and other assets (1,077) (17,026) (3,296)
Deferred commission expense (32,560) (19,288) (9,666)
Right-of-use assets 31,418 31,406 22,657
Accounts payable (10,608) 3,697 3,927
Accrued expenses and other current liabilities 58,209 26,020 7,819
Operating lease liabilities (29,478) (31,621) (15,781)
Deferred revenue 127,716 72,624 49,265
Net cash and cash equivalents provided by operating activities 238,728 88,913 118,973
Investing Activities:      
Purchases of investments (1,484,762) (1,517,357) (1,304,847)
Maturities of investments 1,387,498 1,352,231 1,066,366
Sale of investments   10,932  
Purchases of property and equipment (28,726) (37,274) (40,372)
Capitalization of software development costs (33,139) (21,599) (13,474)
Acquisition of a business, net of cash acquired (16,810)   (23,314)
Proceeds from sale of strategic investments 12,620    
Equity method investment (3,100)    
Purchase of strategic investments (13,089) (2,500) (553)
Net cash and cash equivalents used in investing activities (179,508) (215,567) (316,194)
Financing Activities:      
Proceeds from issuance of 2025 Convertible Notes, net of issuance costs paid of $9.9 million   450,123  
Proceeds from settlement of Convertible Note Hedges related to the 2022 Convertible Notes 8,985 363,554  
Payments for settlement of Warrants related to the 2022 Convertible Notes   (327,543)  
Repayment of 2022 Convertible Notes attributable to the principal (89,525) (235,993)  
Payments for Capped Call Options related to the 2025 Convertible Notes   (50,600)  
Proceeds from common stock offering, net of offering costs paid of $365     342,628
Repayment of debt     (333)
Employee taxes paid related to the net share settlement of stock-based awards (17,439) (7,424) (6,247)
Proceeds related to the issuance of common stock under stock plans 46,510 30,371 23,578
Repayment of finance lease obligations   (28) (284)
Net cash and cash equivalents (used) provided by financing activities (51,469) 222,460 359,342
Effect on exchange rate changes on cash and cash equivalents (8,861) 6,831 (720)
Net increase in cash, cash equivalents and restricted cash (1,110) 102,637 161,401
Cash, cash equivalents and restricted cash, beginning of year 381,152 278,515 117,114
Cash, cash equivalents and restricted cash, end of year 380,042 381,152 278,515
Supplemental cash flow disclosure:      
Cash paid for interest 1,843 1,512 1,014
Cash paid for income taxes 6,970 2,306 3,090
Right-of-use assets obtained in exchange for operating lease facilities 92,131 65,340 105,496
Right-of-use asset reductions related to operating lease terminations (46,587)    
Non-cash investing and financing activities:      
Capital expenditures incurred but not yet paid 470 1,038 4,606
Asset retirement obligations 71 773 $ 2,014
Issuance of common stock for repayment of 2022 Convertible Notes $ 493,172 $ 336,289