v3.23.1
NET LOSS PER SHARE - Potential Common Shares Excluded from the Calculation of Diluted Net Income (Loss) Per Share (Details) - shares
3 Months Ended
Mar. 31, 2023
Mar. 31, 2022
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 116,344,152 168,931,951
Time-Based RSUs    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 63,632,646 77,721,705
Market-Based RSUs    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 22,822,518 58,803,580
Stock options    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 14,540,171 17,486,667
Early-exercised stock options    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 0 7,362
Warrants    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 14,278,034 14,278,034
ESPP shares    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Anti-dilutive securities (in shares) 1,070,783 634,603