STOCK-BASED COMPENSATION - Stock-Based Compensation Expense (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
|
Stock-based compensation expense | |||
Stock-based compensation expense | $ 339,226 | $ 152,906 | $ 108,483 |
Cost of sales | |||
Stock-based compensation expense | |||
Stock-based compensation expense | 16,835 | 12,852 | 5,799 |
Research and development | |||
Stock-based compensation expense | |||
Stock-based compensation expense | 49,723 | 19,976 | 17,196 |
General and administrative | |||
Stock-based compensation expense | |||
Stock-based compensation expense | 216,952 | 75,999 | 64,222 |
Sales and marketing | |||
Stock-based compensation expense | |||
Stock-based compensation expense | $ 55,716 | $ 44,079 | $ 21,266 |