| Dec 31, 2014 | Dec 31, 2015 | Dec 31, 2016 | Dec 31, 2017 | Dec 31, 2018 | Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net loss | -148 | -77 | -194 | -245 | -504 | -985 | 185 | -131 | -1,331 | -738 | -492 |
|---|
| Depreciation and amortization | 22 | 32 | 56 | 87 | 124 | 192 | 286 | 322 | 371 | 417 | 387 |
|---|
| Equity-based compensation expense | 61 | 31 | 49 | 68 | 128 | 227 | 276 | 344 | 513 | 605 | 395 |
|---|
| Amortization of debt discount and issuance costs | - | - | - | 6 | 23 | 62 | 134 | 7 | 8 | 8 | 9 |
|---|
| Other Asset Impairment Charges | - | - | - | - | - | - | - | - | 39 | 14 | 37 |
|---|
| Gain on debt extinguishment | - | - | - | - | - | - | - | - | 96 | 100 | 29 |
|---|
| Other non-cash adjustments | -1 | -3 | -0 | -1 | 0 | 2 | -13 | -6 | -41 | 3 | 1 |
|---|
| Accounts receivable, net | - | - | - | 18 | 13 | 49 | 15 | 118 | 48 | -132 | 35 |
|---|
| Inventories | 5 | 0 | -1 | 9 | 18 | 16 | -10 | 17 | 21 | -16 | 2 |
|---|
| Prepaid expenses and other assets | 20 | 30 | 16 | 39 | 65 | 33 | 61 | 28 | -26 | -16 | -10 |
|---|
| Accounts payable and other liabilities | 60 | 136 | 126 | 104 | 285 | 330 | 532 | 9 | -177 | -18 | 38 |
|---|
| Net cash provided by (used in) operating activities | - | - | - | 34 | 85 | -197 | 1,417 | 410 | -674 | 349 | 317 |
|---|
| Purchase of short- and long-term investments | - | 207 | 88 | 55 | 99 | 554 | - | - | - | - | 67 |
|---|
| Sale and maturities of short- and long-term investments | 125 | 134 | 120 | 71 | 61 | 115 | 580 | 749 | 889 | 233 | 39 |
|---|
| Purchase of property and equipment | 32 | 45 | 97 | 100 | 159 | 272 | 186 | 101 | 186 | 148 | 73 |
|---|
| Site and software development costs | 14 | 18 | 31 | 46 | 63 | 129 | 148 | 179 | 272 | 203 | 161 |
|---|
| Other investing activities, net | -1 | 5 | 1 | - | 0 | 16 | 0 | -5 | - | -2 | - |
|---|
| Net cash (used in) provided by investing activities | - | - | - | -130 | -260 | -855 | -236 | -515 | 1 | -152 | -262 |
|---|
| Repurchase of common stock | 24 | - | - | - | - | - | 380 | 300 | 75 | - | - |
|---|
| Proceeds from Debt, Net of Issuance Costs | - | - | - | 420 | 562 | 935 | - | - | - | 678 | 786 |
|---|
| Premiums paid for capped call confirmations | - | - | - | 44 | 93 | 146 | 255 | - | 80 | 87 | - |
|---|
| Payment of principal upon maturity of debt | - | - | - | - | - | - | 1,040 | - | 3 | - | 117 |
|---|
| Payments to extinguish debt | - | - | - | - | - | - | - | - | 504 | 514 | 741 |
|---|
| Other financing activities, net | - | - | - | - | - | - | 0 | -3 | - | - | 3 |
|---|
| Net cash (used in) provided by financing activities | - | - | - | 375 | 467 | 787 | 353 | -303 | 16 | 77 | -69 |
|---|
| Effect of exchange rate changes on cash, cash equivalents and restricted cash | - | - | - | - | - | - | 13 | -16 | 1 | 2 | 8 |
|---|
| Net (decrease) increase in cash, cash equivalents and restricted cash | - | - | - | - | - | - | 1,547 | -424 | -656 | 276 | -6 |
|---|
| Cash paid for interest on long-term debt | - | - | - | - | 2 | 8 | 17 | 27 | 27 | 53 | 63 |
|---|
| Capital Expenditures Incurred but Not yet Paid, Net | - | - | - | - | - | - | - | - | - | - | 7 |
|---|