Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Cash flows from operating activities    
Net loss $ (185,369) $ (80,265)
Reconciliation of net loss to net cash used in operating activities:    
Depreciation and amortization expense 11,467 5,157
Non-cash interest expense, and amortization of debt discount and issuance costs 2,227
Stock-based compensation expense 19,418 4,639
Other non-cash compensation expense 5,775
Convertible note extinguishment loss 665 0
Loss from change in value of warrants and earnout shares 11,578  
Loss from transaction costs related to merger 9,015
Write-off of in-process research and development project 5,030
Net change in equity method investment and gain on deconsolidation of subsidiary (9,187) (7,190)
Net accretion and amortization of investments in marketable securities 3,893 432
Changes in operating assets and liabilities    
Other receivables and prepaid expenses and other current assets (11,227) (4,531)
Other non-current assets (9,856) (220)
Accounts payable and accrued and other liabilities (435) 6,404
Net cash used in operating activities (147,006) (75,574)
Cash flows from investing activities    
Purchase of marketable securities (336,914) (583,244)
Proceeds from sales of marketable securities 47,139 11,100
Proceeds from maturities of marketable securities 308,141 154,325
Purchases of property and equipment (20,694) (17,742)
Asset acquisition and deconsolidations (4,981) (407)
Net cash used in investing activities (7,309) (435,968)
Cash flows from financing activities    
Proceeds from issuance of Series C redeemable convertible preferred stock, net 69,860
Proceeds from merger 1,067,922
Payments for offering costs (49,717)
Proceeds from issuance of convertible notes payable 74,972
Proceeds from exercise of stock options and stock purchase rights 998 77
Repayments of tenant improvement loan and capital lease obligation (813) (842)
Proceeds from issuance common stock warrants 181 0
Net cash provided by financing activities 1,093,543 69,095
Net change in cash, cash equivalents and restricted cash 939,228 (442,447)
Cash, cash equivalents and restricted cash, at the beginning of the period 78,030 507,869
Cash, cash equivalents and restricted cash, at the end of the period 1,017,258 65,422
Reconciliation of cash, cash equivalents and restricted cash to consolidated balance sheets    
Cash and cash equivalents 1,016,496 64,729
Restricted cash 762 693
Cash, cash equivalents and restricted cash in consolidated balance sheets 1,017,258 65,422
Non-cash investing and financing activities    
Unpaid property and equipment purchases 621 861
Property and equipment purchased through capital leases 926
Uber Elevate acquisition in exchange for Series C redeemable convertible preferred stock (Note ⚫) 77,619
Conversation of Uber note payable to Series C redeemable 77,399
Conversion of pre-merger warrants 691
Unpaid offering costs 470
Conversion of preferred stock 845,931
Net non-cash assets acquired in merger $ 1,119