v3.19.3
Net Income (Loss) Per Share - Antidilutive Securities (Details) - shares
shares in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Sep. 30, 2019
Sep. 30, 2018
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 138,167 1,273,838 138,168 1,236,732
Redeemable convertible preferred stock        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 0 893,354 0 893,354
Convertible notes        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 0 200,595 0 200,595
Stock options        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 40,532 43,240 40,532 8,690
Restricted common stock with performance condition        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 0 1,640 0 1,640
Common stock subject to repurchase        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 827 7,340 828 7,196
Warrants to purchase redeemable convertible preferred stock        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 0 1,073 0 1,073
SARs        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 0 712 0 712
RSUs to settle fixed monetary awards        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 325 1,256 325 582
RSUs        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 91,284 123,927 91,284 122,763
Shares committed under ESPP        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 5,012 0 5,012 0
Shares in escrow        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 0 459 0 0
Warrants to purchase common stock        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities excluded from computation of earnings per share (in shares) 187 242 187 127