Income Taxes Income Tax (Tables)
   | 
12 Months Ended | 
Dec. 31, 2019  | 
| Income Tax Disclosure [Abstract] | 
 
 | 
| Schedule of Income before Income Tax, Domestic and Foreign [Table Text Block] | 
The domestic and international components of loss before income taxes are presented as follows:
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Years Ended December 31,  | 
 
   | 
2019  | 
   | 
2018  | 
   | 
2017  | 
 
   | 
(in thousands)  | 
 
Domestic  | 
$  | 
(61,893  | 
)  | 
   | 
$  | 
16,405  | 
 
  | 
   | 
$  | 
42,580  | 
 
  | 
 
Foreign  | 
29,409  | 
 
  | 
   | 
(49,257  | 
)  | 
   | 
(76,578  | 
)  | 
 
Loss before income taxes  | 
$  | 
(32,484  | 
)  | 
   | 
$  | 
(32,852  | 
)  | 
   | 
$  | 
(33,998  | 
)  | 
 
  
 
 
 | 
| Schedule of Components of Income Tax Expense (Benefit) [Table Text Block] | 
The income tax provision (benefit) consists of the following:
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Years Ended December 31,  | 
 
   | 
2019  | 
   | 
2018  | 
   | 
2017  | 
 
   | 
(in thousands)  | 
 
Current:  | 
   | 
   | 
   | 
   | 
   | 
 
Federal  | 
$  | 
1,604  | 
 
  | 
   | 
$  | 
3,292  | 
 
  | 
   | 
$  | 
13,470  | 
 
  | 
 
State  | 
16  | 
 
  | 
   | 
37  | 
 
  | 
   | 
26  | 
 
  | 
 
Foreign  | 
1,560  | 
 
  | 
   | 
1,640  | 
 
  | 
   | 
1,784  | 
 
  | 
 
Total current  | 
3,180  | 
 
  | 
   | 
4,969  | 
 
  | 
   | 
15,280  | 
 
  | 
 
Deferred:  | 
   | 
   | 
   | 
   | 
   | 
 
Federal  | 
(13,793  | 
)  | 
   | 
788  | 
 
  | 
   | 
19,451  | 
 
  | 
 
State  | 
(1,829  | 
)  | 
   | 
(2,799  | 
)  | 
   | 
(4,668  | 
)  | 
 
Foreign  | 
1,095  | 
 
  | 
   | 
(3,884  | 
)  | 
   | 
(3,697  | 
)  | 
 
Change in valuation allowance  | 
(1,239  | 
)  | 
   | 
(5,727  | 
)  | 
   | 
(51,177  | 
)  | 
 
Total deferred  | 
(15,766  | 
)  | 
   | 
(11,622  | 
)  | 
   | 
(40,091  | 
)  | 
 
Total income tax benefit  | 
$  | 
(12,586  | 
)  | 
   | 
$  | 
(6,653  | 
)  | 
   | 
$  | 
(24,811  | 
)  | 
 
  
 
 
 | 
| Schedule of Effective Income Tax Rate Reconciliation [Table Text Block] | 
The actual income tax provision (benefit) differs from the amount computed using the federal statutory rate as follows:
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Years Ended December 31,  | 
 
   | 
2019  | 
   | 
2018  | 
   | 
2017  | 
 
   | 
(in thousands)  | 
 
Provision (benefit) at statutory rate  | 
$  | 
(6,821  | 
)  | 
   | 
$  | 
(6,814  | 
)  | 
   | 
$  | 
(11,899  | 
)  | 
 
State income taxes (net of federal benefit)  | 
11  | 
 
  | 
   | 
20  | 
 
  | 
   | 
17  | 
 
  | 
 
Research and development credits  | 
(7,815  | 
)  | 
   | 
(8,849  | 
)  | 
   | 
(8,153  | 
)  | 
 
Foreign rate differential  | 
(4,489  | 
)  | 
   | 
8,640  | 
 
  | 
   | 
23,666  | 
 
  | 
 
Stock compensation  | 
(2,750  | 
)  | 
   | 
74  | 
 
  | 
   | 
(5,713  | 
)  | 
 
Foreign income inclusion  | 
3,936  | 
 
  | 
   | 
1,103  | 
 
  | 
   | 
—  | 
 
  | 
 
Transaction costs  | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
553  | 
 
  | 
 
Provision to return  | 
1,887  | 
 
  | 
   | 
(27  | 
)  | 
   | 
(917  | 
)  | 
 
Uncertain tax positions  | 
1,244  | 
 
  | 
   | 
1,463  | 
 
  | 
   | 
1,993  | 
 
  | 
 
Foreign tax credits  | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
(5  | 
)  | 
 
Permanent and other  | 
716  | 
 
  | 
   | 
1,319  | 
 
  | 
   | 
1,730  | 
 
  | 
 
Foreign unremitted earnings  | 
(103  | 
)  | 
   | 
1,960  | 
 
  | 
   | 
(1,368  | 
)  | 
 
Tax Act  | 
—  | 
 
  | 
   | 
185  | 
 
  | 
   | 
25,205  | 
 
  | 
 
Other tax rate changes  | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
1,257  | 
 
  | 
 
Attribute expirations  | 
2,837  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
 
Valuation allowance  | 
(1,239  | 
)  | 
   | 
(5,727  | 
)  | 
   | 
(51,177  | 
)  | 
 
Total income tax benefit  | 
$  | 
(12,586  | 
)  | 
   | 
$  | 
(6,653  | 
)  | 
   | 
$  | 
(24,811  | 
)  | 
 
  
 
 
 | 
| Schedule of Deferred Tax Assets and Liabilities [Table Text Block] | 
The components of the deferred income tax assets are as follows:
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
December 31,  | 
 
   | 
2019  | 
   | 
2018  | 
 
   | 
(in thousands)  | 
 
Deferred tax assets:  | 
   | 
   | 
   | 
 
Net operating loss carryforwards  | 
$  | 
65,477  | 
 
  | 
   | 
$  | 
64,887  | 
 
  | 
 
Research and development credits  | 
80,404  | 
 
  | 
   | 
75,032  | 
 
  | 
 
Accrued expenses and other  | 
7,768  | 
 
  | 
   | 
7,965  | 
 
  | 
 
Lease obligation  | 
2,047  | 
 
  | 
   | 
—  | 
 
  | 
 
Accrued compensation  | 
1,441  | 
 
  | 
   | 
2,504  | 
 
  | 
 
Stock-based compensation  | 
3,460  | 
 
  | 
   | 
2,550  | 
 
  | 
 
   | 
160,597  | 
 
  | 
   | 
152,938  | 
 
  | 
 
Less valuation allowance  | 
(77,957  | 
)  | 
   | 
(79,196  | 
)  | 
 
   | 
82,640  | 
 
  | 
   | 
73,742  | 
 
  | 
 
Deferred tax liabilities:  | 
   | 
   | 
   | 
 
Fixed assets  | 
(246  | 
)  | 
   | 
(1,391  | 
)  | 
 
Leased right-of-use assets  | 
(1,483  | 
)  | 
   | 
—  | 
 
  | 
 
Intangible assets  | 
(13,627  | 
)  | 
   | 
(20,833  | 
)  | 
 
Net deferred tax assets  | 
$  | 
67,284  | 
 
  | 
   | 
$  | 
51,518  | 
 
  | 
 
  
 
 
 | 
| Schedule of Unrecognized Tax Benefits Roll Forward [Table Text Block] | 
The following table summarizes the changes to the unrecognized tax benefits during 2019, 2018 and 2017:
 |  
 | 
 | 
 | 
 | 
 
   | 
(in thousands)  | 
 
Balance as of December 31, 2016  | 
$  | 
23,417  | 
 
  | 
 
Additions based on tax positions related to the current year  | 
3,037  | 
 
  | 
 
Additions related to acquisitions  | 
37,090  | 
 
  | 
 
Decreases based on tax positions of prior year  | 
(458  | 
)  | 
 
Balance as of December 31, 2017  | 
$  | 
63,086  | 
 
  | 
 
Additions based on tax positions related to the current year  | 
3,080  | 
 
  | 
 
Decreases based on tax positions of prior year  | 
(4,696  | 
)  | 
 
Balance as of December 31, 2018  | 
$  | 
61,470  | 
 
  | 
 
Additions based on tax positions related to the current year  | 
1,678  | 
 
  | 
 
Decreases based on tax positions of prior year  | 
(1,121  | 
)  | 
 
Balance as of December 31, 2019  | 
$  | 
62,027  | 
 
  | 
 
  
 
 
 |