stremiok 2.3.3 → 2.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +6 -5
  3. package/config.xml +1 -1
  4. package/css/style.css +5 -0
  5. package/index.html +42 -39
  6. package/js/app.js +7 -3
  7. package/js/downloads.js +16 -16
  8. package/js/epg.js +2 -3
  9. package/js/hubpreview.js +1 -1
  10. package/js/i18n.js +108 -0
  11. package/js/iptv.js +13 -13
  12. package/js/jellyfin.js +62 -29
  13. package/js/lang/ar.js +1941 -0
  14. package/js/lang/de.js +1941 -0
  15. package/js/lang/es.js +1941 -0
  16. package/js/lang/fi.js +1941 -0
  17. package/js/lang/fr.js +1941 -0
  18. package/js/lang/he.js +1941 -0
  19. package/js/lang/hi.js +1941 -0
  20. package/js/lang/it.js +1941 -0
  21. package/js/lang/ja.js +1941 -0
  22. package/js/lang/ko.js +1941 -0
  23. package/js/lang/languages.js +21 -0
  24. package/js/lang/pl.js +1941 -0
  25. package/js/lang/pt-BR.js +1941 -0
  26. package/js/lang/ru.js +1941 -0
  27. package/js/lang/tr.js +1941 -0
  28. package/js/lang/zh-CN.js +1941 -0
  29. package/js/local.js +9 -9
  30. package/js/netfolders.js +13 -13
  31. package/js/player-audio.js +17 -17
  32. package/js/player-controls.js +100 -100
  33. package/js/player-core.js +60 -57
  34. package/js/player-lang.js +22 -22
  35. package/js/player-quality.js +15 -15
  36. package/js/player-store.js +25 -18
  37. package/js/player-subs.js +69 -69
  38. package/js/plex.js +69 -21
  39. package/js/stremio-account.js +17 -12
  40. package/js/stremio-sync.js +641 -0
  41. package/js/stremio.js +79 -76
  42. package/js/stvod.js +4 -4
  43. package/js/trakt.js +23 -23
  44. package/js/tvapps.js +4 -4
  45. package/js/util.js +39 -27
  46. package/js/view-core.js +109 -92
  47. package/js/view-detail.js +135 -126
  48. package/js/view-discover.js +27 -27
  49. package/js/view-guide.js +13 -13
  50. package/js/view-home.js +148 -120
  51. package/js/view-search.js +25 -25
  52. package/js/view-settings.js +735 -643
  53. package/js/xtvod.js +2 -2
  54. package/js/youtube.js +17 -17
  55. package/js/ytplay.js +11 -6
  56. package/package.json +1 -1
  57. package/tizenbrew.html +1 -1
package/js/jellyfin.js CHANGED
@@ -24,6 +24,7 @@ var Jellyfin = (function () {
24
24
 
25
25
  var KEY = 'stremiok.jellyfin.servers', DEV_KEY = 'stremiok.jellyfin.device', LIBS_KEY = 'stremiok.jellyfin.libs';
26
26
  var PAGE = 100, INDEX_FRESH_MS = 30 * 60000, INDEX_RETRY_MS = 60000, INDEX_SLOW_MS = 30 * 60000, LIBS_FRESH_MS = 86400000;
27
+ var INDEX_PAGE = 2000, INDEX_PAGES = 25; // (a server's list read 2,000 titles at a time, 50,000 at most: see pages)
27
28
  var QC_EVERY = 3000, QC_FOR = 10 * 60000, REPORT_EVERY = 60000, TICKS = 10000000;
28
29
  var _changeFns = [];
29
30
  function onChange(fn) { _changeFns.push(fn); }
@@ -116,7 +117,7 @@ var Jellyfin = (function () {
116
117
  }
117
118
  function addressProblem(v) {
118
119
  var s = normAddress(v), p = /^https?:\/\//i.test(s) ? U.parseUrl(s) : null;
119
- return p && p.host ? null : 'An address like http://192.168.0.50:8096';
120
+ return p && p.host ? null : U.t('An address like http://192.168.0.50:8096');
120
121
  }
121
122
  // What answers there: a Jellyfin (10.9 or newer) or Emby (4.7 or newer) server, its kind, name
122
123
  // and version. Asked at the address, then under /emby (an Emby that answers only there).
@@ -124,20 +125,20 @@ var Jellyfin = (function () {
124
125
  var url = normAddress(address);
125
126
  function info() { return U.getJSON(url + '/System/Info/Public', 10000, 65536).then(null, function (e) { return U.getJSON(url + '/emby/System/Info/Public', 10000, 65536).then(null, function () { throw e; }); }); }
126
127
  return info().then(function (r) {
127
- if (!r || typeof r !== 'object' || !r.Id || !r.Version) { throw new Error('That address doesn’t answer as a Jellyfin or Emby server.'); }
128
+ if (!r || typeof r !== 'object' || !r.Id || !r.Version) { throw new Error(U.t('That address doesn’t answer as a Jellyfin or Emby server.')); }
128
129
  // (Jellyfin always names itself, "Jellyfin Server"; Emby usually sends no ProductName at
129
130
  // all: one that doesn't say Jellyfin is Emby when it says so or its version is Emby's, 4.x)
130
131
  var v = ('' + r.Version).split('.').map(function (x) { return parseInt(x, 10) || 0; }), pn = '' + (r.ProductName || '');
131
132
  var kind = /jellyfin/i.test(pn) ? 'jellyfin' : (/emby/i.test(pn) || v[0] < 10) ? 'emby' : 'jellyfin';
132
- if (kind === 'jellyfin' && !(v[0] > 10 || (v[0] === 10 && v[1] >= 9))) { throw new Error('Jellyfin ' + r.Version + ' is too old: 10.9 or newer is needed.'); }
133
- if (kind === 'emby' && !(v[0] > 4 || (v[0] === 4 && v[1] >= 7))) { throw new Error('Emby ' + r.Version + ' is too old: 4.7 or newer is needed.'); }
133
+ if (kind === 'jellyfin' && !(v[0] > 10 || (v[0] === 10 && v[1] >= 9))) { throw new Error(U.t('Jellyfin {v} is too old: 10.9 or newer is needed.', { v: r.Version })); }
134
+ if (kind === 'emby' && !(v[0] > 4 || (v[0] === 4 && v[1] >= 7))) { throw new Error(U.t('Emby {v} is too old: 4.7 or newer is needed.', { v: r.Version })); }
134
135
  return { url: url, kind: kind, serverId: '' + r.Id, name: ('' + (r.ServerName || KINDS[kind].name)).replace(/\s+/g, ' ').trim().slice(0, 60) || KINDS[kind].name, version: ('' + r.Version).slice(0, 20) };
135
- }, function (e) { throw new Error('No answer from ' + url + ' (' + U.problem(e) + ').'); });
136
+ }, function (e) { throw new Error(U.t('No answer from {link} ({why}).', { link: url, why: U.problem(e) })); });
136
137
  }
137
138
  function kindName(s) { return K(s).name; }
138
139
  // Signed in: kept (the same server and user again: in its place, its id kept).
139
140
  function added(info, r) {
140
- if (!r || !r.AccessToken || !r.User || !r.User.Id) { throw new Error(kindName(info) + ' didn’t sign in.'); }
141
+ if (!r || !r.AccessToken || !r.User || !r.User.Id) { throw new Error(U.t('{server} didn’t sign in.', { server: kindName(info) })); }
141
142
  var list = allServers(), old = list.filter(function (s) { return s.serverId === info.serverId && s.userId === '' + r.User.Id; })[0];
142
143
  var srv = { id: old ? old.id : 's' + rand(8), url: info.url, kind: kindOf(info), serverId: info.serverId, name: info.name, version: info.version,
143
144
  user: ('' + (r.User.Name || '')).slice(0, 60), userId: '' + r.User.Id, token: '' + r.AccessToken, at: Date.now() };
@@ -157,7 +158,7 @@ var Jellyfin = (function () {
157
158
  return U.getJSON(api(info) + '/Users/AuthenticateByName', 15000, 1048576, null, headers(info, '', true), JSON.stringify({ Username: '' + user, Pw: '' + pass })).then(function (r) {
158
159
  return withLibs(added(info, r));
159
160
  }, function (e) {
160
- throw new Error(/HTTP 401/.test(e && e.message) ? 'Wrong user name or password.' : 'Couldn’t sign in (' + U.problem(e) + ').');
161
+ throw new Error(/HTTP 401/.test(e && e.message) ? U.t('Wrong user name or password.') : U.t('Couldn’t sign in ({why}).', { why: U.problem(e) }));
161
162
  });
162
163
  }
163
164
  // Quick Connect: a code for you to enter in Jellyfin, then asked every QC_EVERY whether it
@@ -167,10 +168,10 @@ var Jellyfin = (function () {
167
168
  function fail(msg) { if (!stopped) { stopped = true; cb.onError(msg); } }
168
169
  U.getJSON(info.url + '/QuickConnect/Enabled', 10000, 4096, null, headers(info, ''), null, true).then(function (on) {
169
170
  if (stopped) { return; }
170
- if (on !== true) { fail('Quick Connect is off on this server: turn it on in Jellyfin (Dashboard › General), or sign in with a password.'); return; }
171
+ if (on !== true) { fail(U.t('Quick Connect is off on this server: turn it on in Jellyfin (Dashboard › General), or sign in with a password.')); return; }
171
172
  return U.getJSON(info.url + '/QuickConnect/Initiate', 10000, 65536, null, headers(info, '', true), '').then(function (r) {
172
173
  if (stopped) { return; }
173
- if (!r || !r.Secret || !r.Code) { fail('Jellyfin didn’t give a code.'); return; }
174
+ if (!r || !r.Secret || !r.Code) { fail(U.t('Jellyfin didn’t give a code.')); return; }
174
175
  cb.onCode('' + r.Code);
175
176
  function signedIn() {
176
177
  U.getJSON(info.url + '/Users/AuthenticateWithQuickConnect', 15000, 1048576, null, headers(info, '', true), JSON.stringify({ Secret: r.Secret })).then(function (a) {
@@ -180,24 +181,24 @@ var Jellyfin = (function () {
180
181
  stopped = true;
181
182
  cb.onSuccess(srv);
182
183
  });
183
- }).then(null, function (e) { fail('Couldn’t sign in (' + U.problem(e) + ').'); });
184
+ }).then(null, function (e) { fail(U.t('Couldn’t sign in ({why}).', { why: U.problem(e) })); });
184
185
  }
185
186
  function poll() {
186
187
  timer = setTimeout(function () {
187
188
  if (stopped) { return; }
188
- if (Date.now() > until) { fail('The code expired: try again.'); return; }
189
+ if (Date.now() > until) { fail(U.t('The code expired: try again.')); return; }
189
190
  U.getJSON(info.url + '/QuickConnect/Connect?secret=' + enc(r.Secret), 10000, 65536, null, headers(info, ''), null, true).then(function (s) {
190
191
  if (stopped) { return; }
191
192
  if (s && s.Authenticated) { signedIn(); } else { poll(); }
192
193
  }, function (e) {
193
194
  if (stopped) { return; }
194
- if (/HTTP 404/.test(e && e.message)) { fail('The code expired: try again.'); } else { poll(); }
195
+ if (/HTTP 404/.test(e && e.message)) { fail(U.t('The code expired: try again.')); } else { poll(); }
195
196
  });
196
197
  }, QC_EVERY);
197
198
  }
198
199
  poll();
199
200
  });
200
- }).then(null, function (e) { fail('Couldn’t start Quick Connect (' + U.problem(e) + ').'); });
201
+ }).then(null, function (e) { fail(U.t('Couldn’t start Quick Connect ({why}).', { why: U.problem(e) })); });
201
202
  return function () { stopped = true; clearTimeout(timer); };
202
203
  }
203
204
  // Sign out and remove: its sign-in ended on the server too (if it answers).
@@ -241,7 +242,7 @@ var Jellyfin = (function () {
241
242
  _libsAsked[srv.id] = true; // (once a launch, unless asked)
242
243
  return get(srv, K(srv).views(uid(srv))).then(function (r) {
243
244
  var list = U.listOf(r && r.Items, 50, function (x) { return x.Id && (x.CollectionType === 'movies' || x.CollectionType === 'tvshows'); }).map(function (x) {
244
- return { id: '' + x.Id, name: ('' + (x.Name || '')).replace(/\s+/g, ' ').trim().slice(0, 60) || (x.CollectionType === 'movies' ? 'Movies' : 'Shows'), type: x.CollectionType === 'movies' ? 'movie' : 'series' };
245
+ return { id: '' + x.Id, name: ('' + (x.Name || '')).replace(/\s+/g, ' ').trim().slice(0, 60) || (x.CollectionType === 'movies' ? U.t('Movies') : U.t('Shows')), type: x.CollectionType === 'movies' ? 'movie' : 'series' };
245
246
  });
246
247
  if (!server(srv.id)) { return; } // (removed meanwhile)
247
248
  var all = libsAll(), keep = {}, before = JSON.stringify(all[srv.id] && all[srv.id].list);
@@ -263,8 +264,8 @@ var Jellyfin = (function () {
263
264
  servers(kind).forEach(function (srv) {
264
265
  var libs = libsOf(srv), on = many ? ' · ' + srv.name : ''; // (Home adds “Jellyfin” / “Emby”)
265
266
  if (!libs.length) { return; } // (its libraries not read yet, or none)
266
- if (libs.some(function (l) { return l.type === 'movie'; })) { out.push({ type: 'movie', id: 'jf.' + srv.id + '.resume', name: 'Continue watching' + on, extra: [] }); }
267
- if (libs.some(function (l) { return l.type === 'series'; })) { out.push({ type: 'series', id: 'jf.' + srv.id + '.nextup', name: 'Next up' + on, extra: [] }); }
267
+ if (libs.some(function (l) { return l.type === 'movie'; })) { out.push({ type: 'movie', id: 'jf.' + srv.id + '.resume', name: U.t('Continue watching') + on, extra: [] }); }
268
+ if (libs.some(function (l) { return l.type === 'series'; })) { out.push({ type: 'series', id: 'jf.' + srv.id + '.nextup', name: U.t('Next up') + on, extra: [] }); }
268
269
  libs.forEach(function (lib) {
269
270
  out.push({ type: lib.type, id: 'jf.' + srv.id + '.' + lib.id, name: lib.name + (many ? ' · ' + srv.name : ''), extra: [{ name: 'search' }, { name: 'skip' }] });
270
271
  });
@@ -386,12 +387,12 @@ var Jellyfin = (function () {
386
387
  if (Array.isArray(it.Genres) && it.Genres.length) { m.genres = it.Genres.slice(0, 12).map(String); }
387
388
  if (names(it.People, 'Actor').length) { m.cast = names(it.People, 'Actor'); }
388
389
  if (names(it.People, 'Director').length) { m.director = names(it.People, 'Director'); }
389
- if (+it.RunTimeTicks > 0) { m.runtime = Math.round(it.RunTimeTicks / TICKS / 60) + ' min'; }
390
+ if (+it.RunTimeTicks > 0) { m.runtime = U.t('{n} min', { n: Math.round(it.RunTimeTicks / TICKS / 60) }); }
390
391
  if (m.releaseInfo) { m.year = m.releaseInfo; }
391
392
  if (t === 'movie') { return m; }
392
393
  return episodes(srv, it.Id).then(function (eps) {
393
394
  m.videos = eps.map(function (e) {
394
- var v = { id: showId + ':' + e.season + ':' + e.episode, season: e.season, episode: e.episode, title: ('' + (e.it.Name || '')).trim() || 'Episode ' + e.episode };
395
+ var v = { id: showId + ':' + e.season + ':' + e.episode, season: e.season, episode: e.episode, title: ('' + (e.it.Name || '')).trim() || U.t('Episode {n}', { n: e.episode }) };
395
396
  if (e.it.Overview) { v.overview = ('' + e.it.Overview).slice(0, 1000); }
396
397
  if (e.it.ImageTags && e.it.ImageTags.Primary) { v.thumbnail = img(srv, e.it.Id, 'Primary', e.it.ImageTags.Primary, 'maxWidth=640'); }
397
398
  var rel = Date.parse(e.it.PremiereDate || '');
@@ -406,22 +407,54 @@ var Jellyfin = (function () {
406
407
  // ---- Which titles each server has (for titles from your addons) ----
407
408
  // type|tt… and type|tmdb:… -> its item ids; read when first asked, kept INDEX_FRESH_MS (the
408
409
  // old list answers while a new one is read).
410
+ // A list is read a page at a time (page(start) -> a Promise of that page's items), INDEX_PAGE
411
+ // titles a page, each with the server's own wait, until a page comes short, INDEX_PAGES at
412
+ // most: { items, part } (part: not all of it: more than that, or a page after the first that
413
+ // didn't come, its error in part.e). The first page not coming: the whole read fails.
414
+ function pages(page) {
415
+ var items = [];
416
+ function next(n) {
417
+ return page(n * INDEX_PAGE).then(function (l) {
418
+ items = items.concat(l);
419
+ if (l.length < INDEX_PAGE) { return { items: items, part: null }; }
420
+ if (n + 1 >= INDEX_PAGES) { return { items: items, part: { more: true } }; }
421
+ return next(n + 1);
422
+ }, function (e) {
423
+ if (!n) { throw e; }
424
+ return { items: items, part: { e: e } };
425
+ });
426
+ }
427
+ return next(0);
428
+ }
409
429
  var _index = {};
410
430
  function index(srv) {
411
431
  var x = _index[srv.id];
412
432
  if (x && x.map && (x.p || Date.now() - x.at < INDEX_FRESH_MS)) { return Promise.resolve(x.map); }
413
433
  if (x && x.p) { return x.p; }
414
- var p = get(srv, K(srv).items(uid(srv)) + 'recursive=true&includeItemTypes=Movie,Series&fields=ProviderIds&enableImages=false&enableUserData=true&enableTotalRecordCount=false', 16 * 1048576).then(function (r) {
434
+ var p = pages(function (start) {
435
+ return get(srv, K(srv).items(uid(srv)) + 'recursive=true&includeItemTypes=Movie,Series&fields=ProviderIds&enableImages=false&enableUserData=true&enableTotalRecordCount=false' +
436
+ '&sortBy=SortName&sortOrder=Ascending&startIndex=' + start + '&limit=' + INDEX_PAGE, 8 * 1048576).then(function (r) { return U.listOf(r && r.Items, INDEX_PAGE); });
437
+ }).then(function (got) {
415
438
  var map = { __ids: {}, __tm: {}, __played: [] }; // (__ids, __tm: an item's IMDb, TMDB id, for Next up's cards and watched marks; __played: its played films and shows)
416
439
  function add(k, v) { (map[k] = map[k] || []).push(v); }
417
- U.listOf(r && r.Items, 100000).forEach(function (it) {
440
+ got.items.forEach(function (it) {
418
441
  var t = it.Type === 'Movie' ? 'movie' : it.Type === 'Series' ? 'series' : '', tt = imdbOf(it), tm = tmdbOf(it);
419
442
  if (!t || !it.Id) { return; }
420
443
  if (tt) { add(t + '|' + tt, '' + it.Id); map.__ids['' + it.Id] = tt; }
421
444
  if (tm) { add(t + '|tmdb:' + tm, '' + it.Id); map.__tm['' + it.Id] = tm; }
422
445
  if (it.UserData && it.UserData.Played) { map.__played.push({ t: t, ids: titleIds(map, (t === 'movie' ? 'jfm.' : 'jfs.') + srv.id + '.', '' + it.Id), at: Date.parse(it.UserData.LastPlayedDate || '') || 1 }); }
423
446
  });
424
- if (_index[srv.id] && _index[srv.id].p === p) { _index[srv.id] = { at: Date.now(), map: map }; }
447
+ // Not all of it (__part): titles looked up by name too (idsFor). A page that didn't come:
448
+ // the list read again as a failed one would be (in a minute; timed out: in 30).
449
+ var at = Date.now();
450
+ if (got.part) {
451
+ map.__part = true;
452
+ if (got.part.e) {
453
+ U.log('jellyfin', '“' + srv.name + '” (' + kindName(srv) + '): only ' + got.items.length + ' of its titles read (' + U.problem(got.part.e) + ')');
454
+ at -= INDEX_FRESH_MS - (/Timed out/i.test(got.part.e.message || '') ? INDEX_SLOW_MS : INDEX_RETRY_MS);
455
+ }
456
+ }
457
+ if (_index[srv.id] && _index[srv.id].p === p) { _index[srv.id] = { at: at, map: map }; }
425
458
  return map;
426
459
  }, function (e) {
427
460
  U.log('jellyfin', '“' + srv.name + '” (' + kindName(srv) + '): its titles couldn’t be read (' + U.problem(e) + ')');
@@ -444,9 +477,9 @@ var Jellyfin = (function () {
444
477
  if (map.__tm && map.__tm[id]) { l.push('tmdb:' + map.__tm[id]); }
445
478
  return l;
446
479
  }
447
- // A title the server's list can't give (never read: too big or slow for one answer, as a server
448
- // presenting a whole catalog is): searched for by its name, taken only when its IMDb or TMDB id
449
- // is the one asked for. Kept FOUND_MS (a failed search: asked again next time).
480
+ // A title the server's list can't give (never read, or not all of it: too big or slow, as a
481
+ // server presenting a whole catalog is): searched for by its name, taken only when its IMDb or
482
+ // TMDB id is the one asked for. Kept FOUND_MS (a failed search: asked again next time).
450
483
  var FOUND_MS = 30 * 60000, _found = U.lru(300);
451
484
  function lookup(srv, type, key, name) {
452
485
  name = ('' + (name || '')).replace(/\s+/g, ' ').trim().slice(0, 100);
@@ -464,12 +497,12 @@ var Jellyfin = (function () {
464
497
  _found.set(k, { at: Date.now(), p: p });
465
498
  return p;
466
499
  }
467
- // The server's items for a title: from its list, as before; with no list yet, or none to be
468
- // had, looked up by name meanwhile (lookup), the list's answer used when that finds none.
500
+ // The server's items for a title: from its list, as before; with no list yet, none to be had or
501
+ // not all of it, looked up by name meanwhile (lookup), the list's answer used when that finds none.
469
502
  function idsFor(srv, type, key, name) {
470
503
  var x = _index[srv.id];
471
504
  var fromList = index(srv).then(function (map) { return map[type + '|' + key] || []; });
472
- if (x && x.map && !x.map.__err) { return fromList; }
505
+ if (x && x.map && !x.map.__err && !x.map.__part) { return fromList; }
473
506
  return lookup(srv, type, key, name).then(function (ids) { return ids.length ? ids : fromList; });
474
507
  }
475
508
  // A film or episode listed without its files (a server presenting remote ones gives them only
@@ -782,7 +815,7 @@ var Jellyfin = (function () {
782
815
  var ch = jf.ch || {}, more = [];
783
816
  out = out || { intro: [], recap: [], credits: [], preview: [], from: {} };
784
817
  ['intro', 'recap', 'credits', 'preview'].forEach(function (k) {
785
- if (!out[k].length && U.listOf(ch[k], 10).length) { out[k] = U.listOf(ch[k], 10); out.from[k] = name + '’s chapters'; more.push(k); }
818
+ if (!out[k].length && U.listOf(ch[k], 10).length) { out[k] = U.listOf(ch[k], 10); out.from[k] = U.t('{server}’s chapters', { server: name }); more.push(k); }
786
819
  });
787
820
  if (asked) { asked.push(name + ': ' + (has.length ? has.join(', ') : why) + (more.length ? '; its chapters: ' + more.join(', ') : '')); }
788
821
  return has.length || more.length ? out : null;
@@ -873,6 +906,6 @@ var Jellyfin = (function () {
873
906
  signIn: signIn, quickConnect: quickConnect, remove: remove, reload: reload, libraries: libsOf, synthAddon: synthAddon, synthAddons: synthAddons, kindsOn: kindsOn,
874
907
  kindName: kindName, nameOfId: nameOfId, catalog: catalog, meta: meta, streams: streams, isJellyfinId: isJellyfinId, onPlayer: onPlayer, resumeFor: resumeFor,
875
908
  segments: segments, trickplayAt: trickplayAt, waitMs: waitMs, sourceKind: sourceKind, refreshMarks: refreshMarks, watchedAt: watchedAt,
876
- shared: { chapterSegments: chapterSegments, namedChapters: namedChapters, marksFrom: marksFrom } // (Plex's chapters and watched marks read the same way)
909
+ shared: { chapterSegments: chapterSegments, namedChapters: namedChapters, marksFrom: marksFrom, pages: pages, INDEX_PAGE: INDEX_PAGE } // (Plex's chapters, watched marks and lists read the same way)
877
910
  };
878
911
  })();