 
 
| (d) |  The components of deferred tax assets and liabilities were as follows: | 
|  |  |  Deferred tax assets |  |  Deferred tax liabilities |  | Total |  | ||||||||||||
|  |  | December 31, 2017 |  | December 31, 2016 |  | December 31, 2017 |  | December 31, 2016 |  | December 31, 2017 |  | December 31, 2016 |  | ||||||
|  |  | (in thousands) |  | ||||||||||||||||
| Investment tax credits |  | $ | 656,480 |  |  | 840,112 |  |  | - |  |  | - |  |  | 656,480 |  |  | 840,112 |  | 
| Tax losses carryforwards |  |  | 3,942,012 |  |  | - |  |  | - |  |  | - |  |  | 3,942,012 |  |  | - |  | 
| Unrealized loss and expenses |  |  | 284,084 |  |  | 182,443 |  |  | (61,345) |  |  | (3,495) |  |  | 222,739 |  |  | 178,948 |  | 
| Inventories write-down |  |  | 644,887 |  |  | 69,938 |  |  | - |  |  | - |  |  | 644,887 |  |  | 69,938 |  | 
| Foreign investment gains under the equity method |  |  | - |  |  | - |  |  | (890,153) |  |  | (1,091,023) |  |  | (890,153) |  |  | (1,091,023) |  | 
| Remeasurement of defined benefit plans |  |  | 155,930 |  |  | - |  |  | - |  |  | - |  |  | 155,930 |  |  | - |  | 
| Foreign operations  foreign currency translation differences |  |  | 279,517 |  |  | - |  |  | (44,992) |  |  | (81,847) |  |  | 234,525 |  |  | (81,847) |  | 
| Others |  |  | 1,106,104 |  |  | 644,361 |  |  | (641,737) |  |  | (653,899) |  |  | 464,367 |  |  | (9,538) |  | 
| Deferred tax assets (liabilities) |  | $ | 7,069,014 |  |  | 1,736,854 |  |  | (1,638,227) |  |  | (1,830,264) |  |  | 5,430,787 |  |  | (93,410) |  |