Net Income (Loss) Per Share (Details) - Schedule of basic and diluted earnings (loss) per share attributable to common stockholders - USD ($) $ / shares in Units, $ in Thousands |
12 Months Ended | |||||||
|---|---|---|---|---|---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
|||||||
| Numerator: | ||||||||
| Net (loss) income | $ (40,617) | $ 4,345 | ||||||
| Accretion of preferred stock | [1] | 0 | (14,682) | |||||
| Gain on extinguishment of convertible notes | [2] | 412 | 0 | |||||
| Net (loss) income attributable to common stockholders, basic | (40,205) | (10,337) | ||||||
| Effect of convertible notes | [3] | 0 | (59,626) | |||||
| Net loss attributable to common stockholders, diluted | $ (40,205) | $ (69,963) | ||||||
| Weighted-average common shares attributable to common stockholders, basic | 7,027,860 | 0 | ||||||
| Effect of convertible notes | [3] | 0 | 8,529,846 | |||||
| Weighted average number of common shares—diluted | 7,027,860 | 8,529,846 | ||||||
| Net loss per common share attributable to common stockholders, basic | $ (5.72) | $ 0 | ||||||
| Effect of convertible notes | 0 | (8.20) | ||||||
| Net loss per common share attributable to common stockholders, diluted | $ (5.72) | $ (8.20) | ||||||
| ||||||||