(i, t)
| 695 | } |
| 696 | class Ct { |
| 697 | constructor(i, t) { |
| 698 | const n = new At({ url: i, token: t }); |
| 699 | n.fetch = function(s, a) { |
| 700 | const o = { headers: this.headers() }; |
| 701 | return a && (o.method = "POST", o.body = a), fetch(s, o).then((_) => _.json()); |
| 702 | }, this._ready = n.load().then((s) => this._remote = s); |
| 703 | } |
| 704 | ready() { |
| 705 | return this._ready; |
| 706 | } |