XML 92 R9.htm IDEA: XBRL DOCUMENT v3.24.1.1.u2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2023
Mar. 31, 2023
Dec. 31, 2022
Mar. 31, 2022
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities:                
Net income (loss) $ (57,233) $ (28,048) $ (7,788) $ (15,142) $ (162,833) $ (82,340) $ 2,062 $ (23,900)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:                
Stock-based compensation         8,064 14,400 13,172  
Depreciation and amortization         8,575 2,621 1,344  
Amortization of contract acquisition costs         8,847 3,200 1,857  
Amortization of debt issuance costs         2,236 1,355 710  
Unrealized loss on foreign exchange forward         0 558 0  
Impairment of capitalized cloud computing costs         0 0 182  
Change in deferred tax assets         11 188 (135)  
Provision for credit losses         7,381 1,787 87  
Accretion of discount on investment securities and investment income, net         1,048 0 0  
Loss on disposal of property and equipment         0 168 0  
Changes in assets and liabilities:                
Accounts receivable         (4,940) (15,900) (9,574)  
Inventories         15,574 (36,305) (10,936)  
Other current assets and prepaid expenses         4,137 (10,049) (5,765)  
Other long-term assets         (6,243) (8,091) (7,128)  
Accounts payable         (14,866) 20,979 1,207  
Accrued liabilities         (3,221) 3,282 21,608  
Operating leases, net         (58) 56 141  
Deferred revenue         (1,582) 2,673 (412)  
Net cash provided by (used in) operating activities         (137,870) (66,995) 1,235  
Cash flows from investing activities:                
Acquisition of property and equipment         (33,010) (22,698) (1,015)  
Disposal of property and equipment         0 0 71  
Proceeds from maturities of marketable investments         193,903 158,000 0  
Purchase of marketable investments         (23,467) (329,484) 0  
Net cash provided by (used in) investing activities         137,426 (194,182) (944)  
Cash flows from financing activities:                
Proceeds from exercise of stock options and employee stock purchase plan         1,323 2,723 2,765  
Purchase of capped call         0 (56,680) (16,134)  
Payment of issuance costs of capped call         0 (352) 0  
Proceeds from issuance of convertible notes         0 360,000 138,250  
Payment of issuance costs of convertible notes         0 (11,202) (4,717)  
Extinguishment of convertible notes         0 (45,776) 0  
Taxes paid related to net share settlement of equity awards         (3,297) (5,256) (2,176)  
Payments on finance lease obligation         (594) (520) (462)  
Net cash provided by (used in) financing activities         (2,568) 242,937 117,526  
Net increase (decrease) in cash, cash equivalents, and restricted cash         (3,012) (18,240) 117,817  
Cash, cash equivalents, and restricted cash at beginning of year   $ 146,624   $ 164,864 146,624 164,864 47,047  
Cash, cash equivalents, and restricted cash at end of year $ 143,612   $ 146,624   143,612 146,624 164,864 $ 47,047
Supplemental disclosure of cash flow information:                
Cash paid for interest         11,696 5,486 1,663  
Cash paid for income taxes, net of refunds         1,418 2,004 891  
Supplemental non-cash investing and financing activities:                
Issuance of common stock in repayment of convertible notes         0 55,947 0  
Assets acquired under finance lease         1,853 689 828  
Assets acquired under operating lease         57 908 123  
Extinguishment of PPP loan         0 0 7,185  
Debt issuance cost accrued         0 635 0  
Capped call costs accrued         0 100 0  
Transfer of inventory to property and equipment         0 12,180 0  
Transfer of property and equipment to inventory         27,757 0 0  
Acquisition of property, equipment and software         5,090 4,131 0  
PPP loan                
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:                
Loss on debt extinguishment         0 0 (7,185)  
Convertible Debt                
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:                
Loss on debt extinguishment         $ 0 $ 34,423 $ 0