XML 67 R51.htm IDEA: XBRL DOCUMENT v3.22.4
Income taxes - Schedule of Net (Loss) Income Before Tax (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Income Tax Disclosure [Abstract]      
Domestic $ 1,896 $ 1,517 $ 1,053
Foreign 49,257 (98,602) (274,396)
Net income (loss) before tax $ 51,153 $ (97,085) $ (273,343)