Annual report pursuant to Section 13 and 15(d)

CASH EQUIVALENTS AND SHORT-TERM INVESTMENTS (Details)

v3.22.0.1
CASH EQUIVALENTS AND SHORT-TERM INVESTMENTS (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Debt Securities, Available-for-sale [Line Items]    
Cash equivalents $ 46,521 $ 482,886
Amortized Cost 197,198 111,876
Unrealized Gains   2
Unrealized Losses (49) (11)
Fair Value 197,149 111,867
Total cash equivalents and short-term investments, Amortized Cost 243,719 594,762
Total cash equivalents and short-term investments, Fair Value 243,670 594,753
U.S Treasury securities    
Debt Securities, Available-for-sale [Line Items]    
Amortized Cost   19,995
Unrealized Gains   2
Fair Value   19,997
Commercial paper    
Debt Securities, Available-for-sale [Line Items]    
Amortized Cost 70,401 43,911
Fair Value 70,401 43,911
Corporate bonds    
Debt Securities, Available-for-sale [Line Items]    
Amortized Cost 65,645 47,970
Unrealized Losses (28) (11)
Fair Value 65,617 47,959
Government bonds    
Debt Securities, Available-for-sale [Line Items]    
Amortized Cost 36,487  
Unrealized Losses (11)  
Fair Value 36,476  
Assetbacked securities    
Debt Securities, Available-for-sale [Line Items]    
Amortized Cost 24,665  
Unrealized Losses (10)  
Fair Value 24,655  
Commercial paper    
Debt Securities, Available-for-sale [Line Items]    
Cash equivalents   75,374
Money market funds    
Debt Securities, Available-for-sale [Line Items]    
Cash equivalents $ 46,521 $ 407,512