XML 76 R63.htm IDEA: XBRL DOCUMENT v3.19.1
Income taxes - Schedule of Domestic and Foreign (loss) Income Before Income Taxes (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Income Taxes      
Domestic $ (122,699) $ (76,255) $ 20,193
Foreign 34,293 60,495 54,291
(Loss) income before income taxes $ (88,406) $ (15,760) $ 74,484