XML 34 R24.htm IDEA: XBRL DOCUMENT v3.8.0.1
Earnings Per Share - Reconciliations of Numerators and Denominators of Basic and Diluted Earnings (Loss) Per Share Computations (Detail)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
USD ($)
Class
$ / shares
shares
Sep. 30, 2016
USD ($)
$ / shares
shares
Sep. 30, 2017
USD ($)
Class
$ / shares
shares
Sep. 30, 2016
USD ($)
$ / shares
shares
Earnings Per Share        
Number of classes of common stock | Class 2   2  
Numerator:        
Net income | $ $ 10,229 $ 3,644 $ 33,987 $ 10,202
Less: Income attributable to convertible preferred stock | $   (2,672)    
Less: Premium on repurchase of convertible preferred stock | $       (47,209)
Net income (loss) attributable to common stockholders—basic | $ $ 10,229 $ 972 $ 33,987 $ (37,007)
Denominator:        
Weighted-average shares outstanding 40,700 12,629 39,977 11,461
Earnings (loss) per share—basic | $ / shares $ 0.25 $ 0.08 $ 0.85 $ (3.23)
Numerator:        
Net income (loss) attributable to common stockholders—diluted | $ $ 10,229 $ 972 $ 33,987 $ (37,007)
Denominator:        
Weighted-average shares outstanding 40,700 12,629 39,977 11,461
Options to purchase common stock 3,078 4,430 3,593  
Employee stock purchase plan shares 322 5 250  
Restricted stock 145   99  
Weighted-average shares outstanding—diluted 44,245 17,064 43,919 11,461
Earnings (loss) per share—diluted | $ / shares $ 0.23 $ 0.06 $ 0.77 $ (3.23)