UNPKG

mag-app-video-club

Version:

Video club for stalker.

3 lines 88.1 kB
/*! mag-app-video-club: v1.2.0-rc.15 (webpack: v1.12.14) */ !function(e){function t(a){if(i[a])return i[a].exports;var s=i[a]={exports:{},id:a,loaded:!1};return e[a].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){"use strict";var a=i(4),s=i(3);a.data.windowId=window.parent.stbWebWindow.windowId(),a.data.isPortal=1===a.data.windowId,a.addListeners({load:function(){i(27).load({name:core.environment.language},function(e){s.init([i(23),i(24),i(22),i(25)]),s.pages.forEach(function(e){e.emit("load")})}),window._=window.gettext},done:function(){s.navigate("pageMain")}})},function(e,t,i){"use strict";function a(e){var t,i=this;if(e=e||{},this.visible=!0,this.focusable=!0,this.$node=null,this.$body=null,this.parent=null,this.children=[],this.propagate=!!e.propagate,s.call(this,e.data),this.$node=e.$node||document.createElement("div"),this.$body=e.$body||this.$node,this.$node.className+=" component "+(e.className||""),this.id=e.id||this.$node.id||"cid"+o++,e.parent&&e.parent.add(this),e.visible===!1&&this.hide(),e.focusable===!1&&(this.focusable=!1),this.defaultEvents){e.events=e.events||{};for(t in this.defaultEvents)e.events[t]=e.events[t]||this.defaultEvents[t]}e.events&&this.addListeners(e.events),e.children&&this.add.apply(this,e.children),this.$node.addEventListener("click",function(e){0===e.button&&(i.focus(),i.events.click&&i.emit("click",{event:e})),e.stopPropagation()})}var s=i(5),n=i(3),o=0;a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.defaultEvents=null,a.prototype.add=function(e){var t;for(t=0;t<arguments.length;t++)e=arguments[t],this.children.push(e),e.parent=this,e.$node&&null===e.$node.parentNode&&this.$body.appendChild(e.$node),this.events.add&&this.emit("add",{item:e})},a.prototype.remove=function(){this.parent&&(n.current.activeComponent===this&&(this.blur(),this.parent.focus()),this.parent.children.splice(this.parent.children.indexOf(this),1)),this.children.forEach(function(e){e.remove()}),this.removeAllListeners(),this.$node.parentNode.removeChild(this.$node),this.events.remove&&this.emit("remove")},a.prototype.focus=function(e){var t=n.current,i=t.activeComponent;return this.focusable&&this!==i?(i&&i.blur(),t.activeComponent=i=this,i.$node.classList.add("focus"),i.events.focus&&i.emit("focus",e),!0):!1},a.prototype.blur=function(){var e=n.current,t=e.activeComponent;return this.$node.classList.remove("focus"),this===t?(e.activeComponent=null,this.events.blur&&this.emit("blur"),!0):!1},a.prototype.show=function(e){return this.visible?!0:(this.$node.classList.remove("hidden"),this.visible=!0,this.events.show&&this.emit("show",e),!0)},a.prototype.hide=function(){return this.visible?(this.$node.classList.add("hidden"),this.visible=!1,this.events.hide&&this.emit("hide"),!0):!0},e.exports=a},function(e,t){"use strict";e.exports={back:8,"delete":46,channelPrev:1009,channelNext:9,ok:13,exit:27,up:38,down:40,left:37,right:39,pageUp:33,pageDown:34,end:35,home:36,volumeUp:107,volumeDown:109,f1:112,f2:113,f3:114,f4:115,refresh:116,frame:117,phone:119,set:120,tv:121,menu:122,web:123,mic:2032,rewind:2066,forward:2070,app:2076,usbMounted:2080,usbUnmounted:2081,playPause:2082,stop:2083,power:2085,record:2087,info:2089,mute:2192,clock:2032,audio:2071,keyboard:2076}},function(e,t,i){"use strict";var a,s=i(5);a=new s,a.current=null,a.history=[],a.pages=[],a.ids={},a.init=function(e){var t,i,a;if(e){for(this.pages=[],this.pages=e,t=0,i=e.length;i>t;t++)a=e[t],this.ids[a.id]=a,a.active&&(this.current=a);return this.events.init&&this.emit("init",{pages:e}),!0}return!1},a.parse=function(e){var t={name:"",data:[]};return t.data=e.split("/").map(decodeURIComponent),t.name=t.data.shift().slice(1),t},a.stringify=function(e,t){return t=Array.isArray(t)?t:[],e=encodeURIComponent(e),t=t.map(encodeURIComponent),t.unshift(e),t.join("/")},a.show=function(e,t){return e&&!e.active?(e.$node.classList.add("active"),e.active=!0,this.current=e,e.events.show&&e.emit("show",{page:e,data:t}),!0):!1},a.hide=function(e){return e&&e.active?(e.$node.classList.remove("active"),e.active=!1,this.current=null,e.events.hide&&e.emit("hide",{page:e}),!0):!1},a.navigate=function(e,t){var i=this.current,a=this.ids[e];return a&&!a.active?(location.hash=this.stringify(e,t),this.hide(this.current),this.show(a,t),this.events.navigate&&this.emit("navigate",{from:i,to:a}),this.history.push(a),!0):!1},a.back=function(){var e,t;return this.history.length>1&&(e=this.history.pop(),t=this.history[this.history.length-1],t&&!t.active)?(location.hash=t.id,this.hide(this.current),this.show(t),this.events.navigate&&this.emit("navigate",{from:e,to:t}),!0):!1},e.exports=a},function(e,t,i){"use strict";var a,s,n,o,l=i(28),c=i(3),r=i(2),h=i(19),d={};i(29),window.core=window.parent.getCoreInstance(window),window.core.once("load",function(){a.data.time.load&&a.defaultEvents.load({type:"load"})}),window.parent&&window.parent.gSTB&&(window.dvbManager=window.parent.dvbManager,window.epgManager=window.parent.epgManager,window.gSTB=window.parent.gSTB,window.pvrManager=window.parent.pvrManager,window.stbDownloadManager=window.parent.stbDownloadManager,window.stbStorage=window.parent.stbStorage,window.stbUpdate=window.parent.stbUpdate,window.stbUPnP=window.parent.stbUPnP,window.stbWebWindow=window.parent.stbWebWindow,window.stbWindowMgr=window.parent.stbWindowMgr,window.timeShift=window.parent.timeShift),a=new l({debug:!1,host:!0,screen:null,time:{init:+new Date,load:0,done:0}}),a.setScreen=function(e){return e?(e.availHeight=e.height-(e.availTop+e.availBottom),e.availWidth=e.width-(e.availLeft+e.availRight),window.moveTo(0,0),window.resizeTo(e.width,e.height),n&&n instanceof HTMLLinkElement&&document.head.removeChild(n),o&&o instanceof HTMLLinkElement&&document.head.removeChild(o),o=document.createElement("link"),o.rel="stylesheet",o.href=window.core.theme.path+e.height+".css?"+ +new Date,document.head.appendChild(o),n=document.createElement("link"),n.rel="stylesheet",n.href="css/release."+e.height+".css?"+ +new Date,document.head.appendChild(n),this.data.metrics=e,!0):!1},a.setScreen(h[screen.height]||h[720]);for(s in r)"volumeUp"!==s&&"volumeDown"!==s&&(d[r[s]]=!0);a.defaultEvents={load:function(e){a.data.time.load=e.timeStamp,window.core.ready&&(a.events[e.type]&&a.emit(e.type,e),c.pages.forEach(function(t){t.events[e.type]&&t.emit(e.type,e)}),a.data.time.done=+new Date,a.events.done&&a.emit("done",e))},unload:function(e){a.events[e.type]&&a.emit(e.type,e),c.pages.forEach(function(t){t.events[e.type]&&t.emit(e.type,e)})},error:function(e){},keydown:function(e){var t,i=c.current,s={keyCode:e.keyCode,stop:e.stop,shiftKey:e.shiftKey,altKey:e.altKey,type:e.type,"native":e};0!==s.keyCode&&(s.code=s.keyCode,s.shiftKey&&(s.code+=1e3),s.altKey&&(s.code+=2e3),t=i.activeComponent,t&&t!==i&&(t.events[s.type]&&t.emit(s.type,s),!s.stop&&t.propagate&&t.parent&&t.parent.events[s.type]&&t.parent.emit(s.type,s)),s.stop||(i.events[s.type]&&i.emit(s.type,s),s.stop||a.events[s.type]&&a.emit(s.type,s)),a.data.host&&d[s.code]&&e.preventDefault())},keypress:function(e){var t=c.current;t.activeComponent&&t.activeComponent!==t&&t.activeComponent.events[e.type]&&t.activeComponent.emit(e.type,e)},click:function(e){},contextmenu:function(e){e.preventDefault()},mousewheel:function(e){var t=c.current;t.activeComponent&&t.activeComponent!==t&&t.activeComponent.events[e.type]&&t.activeComponent.emit(e.type,e),e.stop||t.events[e.type]&&t.emit(e.type,e)}};for(s in a.defaultEvents)window.addEventListener(s,a.defaultEvents[s]);a.show=function(){this.events.show&&this.emit("show"),window.core.call("app:ready")},a.exit=function(e){var t,s=i(13),n=i(8),o=c.current.activeComponent;c.current.add(t=new s({title:gettext("Exit"),events:{show:function(){this.children[0].focus()},hide:function(){o.focus()}},children:[new n({size:2,focusIndex:0,data:[{items:[{value:gettext("Exit")}],click:function(){return"function"==typeof e&&e(!0)?(t.hide(),void t.remove()):(a.events.exit&&a.emit("exit"),t.hide(),t.remove(),void core.call("exit"))}},{items:[{value:gettext("Cancel")}],click:function(){"function"==typeof e&&e(!1),t.hide(),t.remove()}}],events:{keydown:function(i){n.prototype.defaultEvents.keydown.call(this,i),i.code===r.back&&(i.stop=!0,"function"==typeof e&&e(!1),t.hide(),t.remove())}}})]})),t.show(),t.focus()},window.gSTB&&gSTB.SetNativeStringMode&&gSTB.SetNativeStringMode(!0),e.exports=a},function(e,t,i){"use strict";function a(){this.events={}}a.prototype={addListener:function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},once:function(e,t){var i=this;this.events[e]=this.events[e]||[],this.events[e].push(function a(){t.apply(this,arguments),i.removeListener(e,a)})},addListeners:function(e){var t;if("object"==typeof e)for(t in e)e.hasOwnProperty(t)&&this.addListener(t,e[t])},removeListener:function(e,t){this.events[e]&&(this.events[e]=this.events[e].filter(function(e){return e!==t}),0===this.events[e].length&&(this.events[e]=void 0))},removeAllListeners:function(e){0===arguments.length?this.events={}:e&&(this.events[e]=void 0)},emit:function(e,t,i){var a,s=this.events[e];if(s)for(a=0;a<s.length;a++)s[a].apply(this,Array.prototype.slice.call(arguments,1))}},a.prototype.constructor=a,e.exports=a},function(e,t,i){"use strict";function a(e){e=e||{},this.active=!1,this.activeComponent=null,e.className="page "+(e.className||""),s.call(this,e),this.active=this.$node.classList.contains("active"),null===this.$node.parentNode&&document.body.appendChild(this.$node),this.page=this}var s=i(1);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){"use strict";var i={};i.tag=function(e,t,i){var a,s,n=null;if(e){if(n=document.createElement(e),t&&"object"==typeof t)for(s in t)n[s]=t[s];for(a=2;a<arguments.length;a++)arguments[a]&&n.appendChild("object"==typeof arguments[a]?arguments[a]:document.createTextNode(arguments[a]))}return n},i.fragment=function(e){var t,i=document.createDocumentFragment();for(t=0;t<arguments.length;t++)e=arguments[t],e&&i.appendChild("object"==typeof e?e:document.createTextNode(e));return i},i.add=function(e,t){var i;if(e instanceof Node){for(i=1;i<arguments.length;i++)arguments[i]&&e.appendChild("object"==typeof arguments[i]?arguments[i]:document.createTextNode(arguments[i]));return e}return null},i.remove=function(e){var t,i=0;for(t=0;t<arguments.length;t++)arguments[t]&&arguments[t].parentNode&&arguments[t].parentNode.removeChild(arguments[t])===arguments[t]&&i++;return arguments.length>0&&i===arguments.length},e.exports=i},function(e,t,i){"use strict";function a(e){var t=this;e=e||{},this.handlers={},this.$noData=null,e.className="layoutList "+(e.className||""),e.propagate=e.propagate||!0,this.fixedData=e.fixedData||!1,e.$body=document.createElement("div"),e.$body.className="body",this.$noData=document.createElement("div"),this.$noData.className="noData hidden",s.call(this,e),this.$node.appendChild(this.$body),this.$node.appendChild(this.$noData),this.addListener("click:item",function(e){e.$item.layout.children.length&&!e.inner&&e.$item.layout.children[e.$item.layout.focusIndex].focus(),e.inner&&(t.focus(),t.focusItem(e.$item)),t.handlers[e.$item.index]&&t.handlers[e.$item.index](e.$item)})}var s=i(12),n=i(11);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.renderItemDefault=function(e,t){var i,a;if(e.ready&&this.fixedData&&!e.innerHTML.length)for(a=0;a<t.items.length;a++)"string"==typeof t.items[a].value&&(e.layout.$node.childNodes[a].innerText=t.items[a].value,e.layout.$node.childNodes[a].className=t.items[a].className);else{for(;e.firstChild;)e.removeChild(e.firstChild);i=new n({focusable:!1,data:t.items}),e.appendChild(i.$node),e.layout=i,i.parent=this,i.$parentItem=e,i.addListener("click",function(){this.parent.emit("click:item",{$item:e,inner:!0})}),t.click&&(this.handlers[e.index]=t.click),e.ready=!0}e.value=t.value||{}},a.prototype.setData=function(e){s.prototype.setData.call(this,e),e.data&&e.data.length?this.$noData.classList.add("hidden"):this.$noData.classList.remove("hidden")},a.prototype.init=function(e){var t;s.prototype.init.call(this,e),e.noData&&(this.$noData.innerHTML="",e.noData instanceof Element?this.$noData.appendChild(e.noData):"string"==typeof e.noData&&(t=document.createElement("div"),t.innerText=e.noData,this.$noData.appendChild(t)))},a.prototype.renderItem=a.prototype.renderItemDefault,e.exports=a},function(e,t,i){"use strict";function a(e){var t,i,a,s,n,o,l=[];if(e&&e.length)for(t=0;t<e.length;t++){for(s=[],i=0;i<e[t].genres.length;i++)s.push(e[t].genres[i].name);n=document.createElement("div"),o=document.createElement("div"),o.className="name",a=document.createElement("div"),a.className="subData"+(s.length?" visible":""),o.innerText=e[t].name,a.innerText=s.join(", "),n.appendChild(o),n.appendChild(a),l[t]={items:[{className:"title",value:n},{className:e[t].censored||e[t].category&&e[t].category.censored?"icon grey":"",value:e[t].censored||e[t].category&&e[t].category.censored?"O":""},{className:e[t].favorite?"icon theme-favorite-icon-active":"hidden",value:e[t].favorite?"C":""}],value:e[t]}}return l}var s=i(5),n=new s;n.urls={base:core.stalker.host},n.video={playerContext:null,intent:null,request:null,config:{sort:!1,genre:"",categories:"",favorite:!1,search:"",limit:7},getList:function(e,t){var i="movies",s=[];t=t||{},(t.genre||""===t.genre)&&(this.config.genre=t.genre),(t.sort||""===t.sort)&&(this.config.sort=t.sort),(t.favorite||t.favorite===!1)&&(this.config.favorite=t.favorite),(t.categories||""===t.categories)&&(this.config.categories=t.categories),(t.search||""===t.search)&&(this.config.search=t.search),this.config.categories&&s.push("categoryId="+this.config.categories),this.config.genre&&s.push("genreId="+this.config.genre),this.config.sort&&s.push("sortby="+this.config.sort),this.config.favorite&&s.push("favorite="+this.config.favorite),this.config.search&&s.push("search="+this.config.search),s.push("offset="+(t.offset?t.offset:"0")),s.push("limit="+(t.limit?t.limit:this.config.limit)),i+="?"+s.join("&"),this.request&&this.request.abort(),this.request=core.stalker.request(i,{method:"GET",version:3,onload:function(t,i){i.error&&(t=!0),e(t,t?[]:a(i.data),t?null:i.paging.total)},onerror:function(t){e(!0,[])}})},addFavorite:function(e,t,i){var a="movies/";a+=t.value.id,core.stalker.request(a,{version:3,method:"PUT",body:'{"favorite":'+i+"}",onload:function(a,s){s.error&&(a=!0),s.data===!0&&(t.value.favorite=i?1:0),e(a)},onerror:function(t){e(!0,[])}})},seasons:function(e,t){var i="movies/"+t+"/seasons?limit=200";core.stalker.request(i,{version:3,method:"GET",onload:function(t,i){i.error&&(t=!0),e(t,t?[]:i.data)},onerror:function(t){e(!0,[])}})},series:function(e,t){var i="movies/"+t.id+"/seasons/"+t.seasonId+"/episodes?limit=200";core.stalker.request(i,{version:3,method:"GET",onload:function(t,i){i.error&&(t=!0),e(t,t?[]:i.data)},onerror:function(t){e(!0,[])}})},episode:function(e,t){var i="movies/"+t.id+"/seasons/"+t.seasonId+"/episodes/"+t.episodeId;core.stalker.request(i,{version:3,method:"GET",onload:function(t,i){e(t,t?[]:i.data)},onerror:function(t){e(!0,[])}})},link:function(e,t){var i="movies/"+t.id+"/files/"+t.video+"/link";core.stalker.request(i,{version:3,method:"GET",onload:function(t,i){e(t,t?null:i.data.url)},onerror:function(t){e(!0,[])}})}},n.categories={getList:function(e){core.stalker.request("movie-categories?fields=name,id&limit=200",{version:3,method:"GET",onload:function(t,i){i.error&&(t=!0),e(t,i)},onerror:function(t){e(!0,[])}})}},n.genre={getList:function(e){core.stalker.request("movie-genres?fields=name,id&limit=200",{method:"GET",version:3,onload:function(t,i){i.error&&(t=!0),e(t,i)},onerror:function(t){e(!0,[])}})}},e.exports=n},function(e,t,i){"use strict";function a(e){var t=document.createElement("div");e=e||{},e.focusable=!1,e.className="clock "+(e.className||""),e.visible=e.visible||!0,o.call(this,e),s=function(){var e=new Date,i=(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours()),a=e.getMinutes();t.innerText=(i>9?i:"0"+i)+":"+(a>9?a:"0"+a)},s(),n=setInterval(s,1e3),this.$node.appendChild(t)}var s,n,o=i(1);core.addListeners({hide:function(){clearInterval(n)},"hide:auto":function(){clearInterval(n)},maximize:function(){s(),n=setInterval(s,1e3)}}),a.prototype=Object.create(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t,i){"use strict";function a(e){e=e||{},this.focusIndex=0,e.className="layout "+(e.className||""),this.data=[],n.call(this,e),this.init(e),this.addListener("keydown",function(e){switch(e.code){case o.right:this.children.length&&this.focusIndex<this.children.length-1&&this.children[++this.focusIndex].focus();break;case o.left:this.children.length&&this.focusIndex>0&&this.children[--this.focusIndex].focus();break;case o.back:this.parent.focus(),this.parent&&this.$parentItem&&this.parent.focusItem(this.$parentItem)}})}function s(e){var t,i;for(t=0;t<e.length;t++)i=e[t],"object"!=typeof i?e[t]={value:e[t],wrap:!0}:i instanceof n||i instanceof HTMLElement?e[t]={value:i,wrap:!1}:e[t].wrap=!0;return e}var n=i(1),o=i(2);a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.init=function(e){for(var t,i,a,o=this,l=s(e.data);this.$node.firstChild;)this.$node.removeChild(this.$node.firstChild);for(this.data=l,a=0;a<l.length;a++)t=l[a],t.value instanceof HTMLElement?t.wrap?(i=document.createElement("div"),t.className&&(i.className=t.className),i.appendChild(t.value),this.$node.appendChild(i)):this.$node.appendChild(t.value):t.value instanceof n?(t.value.propagate=!0,t.value.index=this.children.length,t.value.addListener("click",function(){o.focusIndex=this.index}),t.wrap?(i=document.createElement("div"),t.className&&(i.className=t.className),i.appendChild(t.value.$node),this.$node.appendChild(i),this.children.push(t.value),t.value.parent=this):this.add(t.value)):(i=document.createElement("div"),i.textContent=t.value,t.className&&(i.className=t.className),this.$node.appendChild(i))},e.exports=a},function(e,t,i){"use strict";function a(e){e=e||{},this.$focusItem=null,this.viewIndex=null,this.data=[],this.type=this.TYPE_VERTICAL,this.size=5,this.cycle=!1,this.scroll=null,e.type&&(this.type=e.type),this.provider=null,e.className="list "+(e.className||""),this.type===this.TYPE_HORIZONTAL&&(e.className+=" horizontal"),n.call(this,e),this.init(e)}function s(e){var t,i;for(t=0;t<e.length;t++)i=e[t],"object"!=typeof i&&(i=e[t]={value:e[t]});return e}var n=i(1),o=i(2);a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.TYPE_VERTICAL=1,a.prototype.TYPE_HORIZONTAL=2,a.prototype.renderItemDefault=function(e,t){e.innerText=t.value},a.prototype.renderItem=a.prototype.renderItemDefault,a.prototype.defaultEvents={mousewheel:function(e){this.type===this.TYPE_VERTICAL&&e.wheelDeltaY&&this.move(e.wheelDeltaY>0?o.up:o.down),this.type===this.TYPE_HORIZONTAL&&e.wheelDeltaX&&this.move(e.wheelDeltaX>0?o.left:o.right)},keydown:function(e){switch(e.code){case o.up:case o.down:case o.right:case o.left:case o.pageUp:case o.pageDown:case o.home:case o.end:this.move(e.code);break;case o.ok:this.events["click:item"]&&this.$focusItem&&this.emit("click:item",{$item:this.$focusItem,event:e})}}},a.prototype.init=function(e){var t,i,a=this,s=this.$body.children.length,n=function(e){this.data&&(a.focusItem(this),a.events["click:item"]&&a.emit("click:item",{$item:this,event:e}))};if(void 0!==e.cycle&&(this.cycle=e.cycle),e.scroll&&(this.scroll=e.scroll),e.provider&&(this.provider=e.provider),e.render&&(this.renderItem=e.render),e.size&&(this.size=e.size),this.size!==s)for(s>0&&(this.$body.innerText=null),i=0;i<this.size;i++)t=document.createElement("div"),t.index=i,t.className="item",t.addEventListener("click",n),this.$body.appendChild(t);void 0!==e.viewIndex,this.viewIndex=null,this.provider?this.provider.get(null,function(t,i){t?a.events["data:error"]&&a.emit("data:error",t):(i&&(e.data=i,a.setData(e),a.scroll&&a.scroll.init({realSize:a.provider.maxCount,viewSize:a.provider.size,value:a.provider.head+a.provider.pos})),a.events["data:get"]&&a.emit("data:get"))}):e.data&&this.setData(e)},a.prototype.setData=function(e){e.data&&(this.data=s(e.data)),this.viewIndex=null,this.$focusItem&&this.blurItem(this.$focusItem),this.scroll&&(this.provider?this.scroll.realSize!==this.provider.maxCount&&this.scroll.init({realSize:this.provider.maxCount,viewSize:this.provider.size,value:this.provider.head+this.provider.pos}):this.scroll.init({realSize:this.data.length,viewSize:this.size,value:e.viewIndex||0})),void 0!==e.focusIndex&&this.data.length?this.focusIndex(e.focusIndex):this.renderView(e.viewIndex||0)},a.prototype.renderView=function(e){var t,i,a,s,n;if(this.viewIndex!==e){for(s=this.viewIndex,this.viewIndex=n=e,i=0;i<this.size;i++)t=this.$body.children[i],a=this.data[e],a?(t.data=a,t.index=e,this.renderItem(t,a),a.mark?t.classList.add("mark"):t.classList.remove("mark")):(t.data=t.index=void 0,t.innerHTML="&nbsp;",t.ready=!1),e++;return this.events["move:view"]&&this.emit("move:view",{prevIndex:s,currIndex:n}),this.events["select:item"]&&this.emit("select:item",{$item:t}),this.scroll&&this.scroll.scrollTo(this.provider?this.provider.head+this.provider.pos:this.viewIndex),!0}return!1},a.prototype.move=function(e){var t=this,i=!1;if(this.data.length)switch(e){case o.left:if(this.type!==this.TYPE_HORIZONTAL)break;i=!0;case o.up:(i||this.type===this.TYPE_VERTICAL)&&(this.$focusItem&&this.$focusItem.index>0?this.$focusItem===this.$body.firstChild?this.renderView(this.viewIndex-1):this.focusItem(this.$focusItem.previousSibling):this.provider?this.provider.get(e,function(e,i,a){e?t.events["data:error"]&&t.emit("data:error",e):i&&t.setData({data:i,focusIndex:a||0===a?a:t.$focusItem.index})}):(this.cycle&&this.move(o.end),this.events.overflow&&this.emit("overflow",{direction:e,cycle:this.cycle})));break;case o.right:if(this.type!==this.TYPE_HORIZONTAL)break;i=!0;case o.down:(i||this.type===this.TYPE_VERTICAL)&&(this.$focusItem&&this.$focusItem.index<this.data.length-1?this.$focusItem===this.$body.lastChild?this.renderView(this.viewIndex+1):this.focusItem(this.$focusItem.nextSibling):this.provider?this.provider.get(e,function(e,i,a){e?t.events["data:error"]&&t.emit("data:error",e):i&&t.setData({data:i,focusIndex:a||0===a?a:t.$focusItem.index})}):(this.cycle&&this.move(o.home),this.events.overflow&&this.emit("overflow",{direction:e,cycle:this.cycle})));break;case o.pageUp:if(this.provider)return void this.provider.get(e,function(e,i,a){e?t.events["data:error"]&&t.emit("data:error",e):i&&t.setData({data:i,focusIndex:a?a:0})});this.viewIndex<this.size?this.renderView(0):this.renderView(this.viewIndex-this.size+1),this.focusItem(this.$body.firstChild);break;case o.pageDown:if(this.provider){this.provider.get(e,function(e,i,a){e?t.events["data:error"]&&t.emit("data:error",e):i&&t.setData({data:i,focusIndex:a||0===a?a:i.length<t.size?i.length-1:t.size-1})});break}this.data.length>this.size?(this.viewIndex>this.data.length-2*this.size?this.renderView(this.data.length-this.size):this.renderView(this.viewIndex+this.size-1),this.focusItem(this.$body.lastChild)):this.focusItem(this.$body.children[this.data.length-1]);break;case o.home:if(this.provider){this.provider.get(e,function(e,i,a){e?t.events["data:error"]&&t.emit("data:error",e):i&&t.setData({data:i,focusIndex:a?a:0})});break}this.renderView(0),this.focusItem(this.$body.firstChild);break;case o.end:if(this.provider){this.provider.get(e,function(e,i,a){e?t.events["data:error"]&&t.emit("data:error",e):i&&t.setData({data:i,focusIndex:a||0===a?a:i.length<t.size?i.length-1:t.size-1})});break}this.data.length>this.size?(this.renderView(this.data.length-this.size),this.focusItem(this.$body.lastChild)):this.focusItem(this.$body.children[this.data.length-1])}},a.prototype.focusItem=function(e){var t=this.$focusItem;return e&&t!==e?(null!==t&&(t.classList.remove("focus"),this.events["blur:item"]&&this.emit("blur:item",{$item:t})),this.$focusItem=e,this.$focusItem.data=this.data[this.$focusItem.index],e.classList.add("focus"),this.events["focus:item"]&&this.emit("focus:item",{$prev:t,$curr:e}),this.events["select:item"]&&this.emit("select:item",{$item:e}),!0):!1},a.prototype.blurItem=function(e){return e?(e===this.$focusItem&&(this.$focusItem=null),e.classList.remove("focus"),this.events["blur:item"]&&this.emit("blur:item",{$item:e}),!0):!1},a.prototype.focusIndex=function(e){var t=this.viewIndex||0;e>=t+this.size?(e=e<this.data.length-1?e:this.data.length-1,this.renderView(e-this.size+1),this.focusItem(this.$body.lastChild)):t>e?(e=e>0?e:0,this.renderView(e),this.focusItem(this.$body.firstChild)):(null===this.viewIndex&&this.renderView(0),this.focusItem(this.$body.children[e-t]))},a.prototype.markItem=function(e,t){t?e.classList.add("mark"):e.classList.remove("mark"),e.data.mark=t},e.exports=a},function(e,t,i){"use strict";function a(e){var t;e=e||{},e.focusable=e.focusable||!1,e.className="modalMessage "+(e.className||""),e.visible=e.visible||!1,e.$body=document.createElement("div"),e.$body.className="body",s.call(this,e),this.$node.appendChild(document.createElement("div")),this.$node.firstChild.classList.add("alignBox"),this.$node.firstChild.appendChild(document.createElement("div")),this.$header=document.createElement("div"),this.$header.className="header",this.$text=this.$header.appendChild(document.createElement("div")),this.$text.classList.add("text"),this.$text.innerText=e.title||"",e.icon&&(this.$icon=this.$header.appendChild(document.createElement("div")),this.$icon.className="icon "+e.icon),t=document.createElement("div"),t.className="overlay",this.$node.firstChild.firstChild.appendChild(this.$header),this.$node.firstChild.firstChild.appendChild(this.$body),this.$node.firstChild.firstChild.appendChild(t)}var s=i(1);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.focus=function(){this.$node.classList.add("active"),s.prototype.focus.call(this),this.children[0]&&this.children[0]instanceof s&&this.children[0].focus()},a.prototype.blur=function(){this.$node.classList.remove("active"),s.prototype.blur.call(this)},e.exports=a},function(e,t,i){"use strict";function a(e){var t;e=e||{},this.size=1,this.main=!1,this.index=0,e.className="panelEx "+(e.className||""),e.$body=document.createElement("div"),e.$body.className="body",s.call(this,e),e.size&&(this.size=e.size,this.$node.classList.add("size"+e.size)),e.main&&(this.main=!0,this.$node.classList.add("main")),this.$shadow={left:document.createElement("div"),right:document.createElement("div")},this.$shadow.left.className="shadow left",this.$node.appendChild(this.$shadow.left),this.$shadow.right.className="shadow right",this.$node.appendChild(this.$shadow.right),e.title&&(Array.isArray(e.title)||(e.title=[e.title]),this.$title=new n({className:"title",data:e.title,focusable:!1}),this.$node.appendChild(this.$title.$node)),this.$node.appendChild(this.$body),t=document.createElement("div"),t.className="overlay",this.$node.appendChild(t)}var s=i(1),n=i(11);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.defaultEvents={focus:function(){this.children.length&&this.children[0].focus()}},a.prototype.focus=function(){this.parent.panels[this.parent.focusIndex].$node.classList.remove("active"),this.parent.panels[this.parent.focusIndex].$node.classList.remove("top"),s.prototype.focus.call(this),this.parent.focusIndex=this.index,this.$node.classList.add("active"),this.$node.classList.add("top"),0===this.index&&this.parent.panels[1]&&this.parent.panels[1].main?(this.parent.panels[1].$node.classList.remove("position-left"),this.parent.panels[1].$node.classList.add("position-right"),this.parent.panels[2]&&this.parent.panels[2].$node.classList.remove("expand"),this.$node.classList.add("expand")):2===this.index&&this.parent.panels[1].main&&(this.parent.panels[1].$node.classList.remove("position-right"),this.parent.panels[1].$node.classList.add("position-left"),this.parent.panels[0].$node.classList.remove("expand"),this.$node.classList.add("expand"))},a.prototype.blur=function(){this.parent.panels[this.parent.focusIndex].$node.classList.remove("active"),s.prototype.blur.call(this)},e.exports=a},function(e,t,i){"use strict";function a(e){e=e||{},e.focusable=e.focusable||!1,e.className="panel "+(e.className||""),s.call(this,e)}var s=i(1);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,e.exports=a},function(e,t,i){"use strict";function a(e){function t(e){switch(e.code){case n.left:a.focusIndex>0&&a.panels[a.focusIndex-1].focus();break;case n.right:a.focusIndex<a.panels.length-1&&a.panels[a.focusIndex+1].focus()}}var i,a=this;for(e=e||{},e.focusable=e.focusable||!1,e.className="panelSet "+(e.className||""),s.call(this,e),this.panels=e.panels,this.focusIndex=0,e.panels&&!e.panels[0].main&&(e.panels[0].$node.classList.add("left"),e.panels[0].$node.classList.add("expand")),e.panels&&e.panels[1]&&e.panels[1].main&&e.panels[1].$node.classList.add("position-right"),e.panels&&e.panels[2]&&e.panels[1].main&&e.panels[2].$node.classList.add("right"),e.panels&&this.add.apply(this,e.panels),i=0;i<this.panels.length;i++)this.panels[i].addListeners({keydown:t}),this.panels[i].index=i}var s=i(1),n=i(2);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.drawShadow=function(){var e,t,i;for(e=0;e<this.panels.length;e++)e>0&&(this.panels[e].$node.classList.add("leftShadow"),t=this.panels[e-1].$node.offsetHeight,i=this.panels[e-1].$node.offsetTop-this.panels[e].$node.offsetTop,this.panels[e].$node.offsetHeight>t?(this.panels[e].$shadow.left.style.height=this.panels[e-1].$node.offsetHeight+"px",this.panels[e].$shadow.left.style.top=i+"px"):this.panels[e].$shadow.left.style.height=this.panels[e].$node.offsetHeight+"px"),e<this.panels.length-1&&(this.panels[e].$node.classList.add("rightShadow"),t=this.panels[e+1].$node.offsetHeight,i=this.panels[e+1].$node.offsetTop-this.panels[e].$node.offsetTop,this.panels[e].$node.offsetHeight>t?(this.panels[e].$shadow.right.style.height=this.panels[e-1].$node.offsetHeight+"px",this.panels[e].$shadow.right.style.top=i+"px"):this.panels[e].$shadow.right.style.height=this.panels[e].$node.offsetHeight+"px")},a.prototype.focus=function(){s.prototype.focus.call(this),this.panels[this.focusIndex].focus()},a.prototype.blur=function(){this.panels[this.focusIndex].blur()},e.exports=a},function(e,t,i){"use strict";function a(e){e=e||{},e.className=" scrollArea "+(e.className||""),e.$body=document.createElement("div"),e.$body.className="body",this.step=5,this.realHeight=0,this.viewHeight=0,this.topPosition=0,this.scroll=null,s.call(this,e),this.$node.appendChild(this.$body),this.init(e)}var s=i(1),n=i(4),o=i(2);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.defaultEvents={keydown:function(e){switch(e.code){case o.up:case o.down:this.move(e.code)}}},a.prototype.move=function(e){if(!(this.realHeight<=this.viewHeight))switch(e){case o.down:if(this.topPosition-this.step*n.data.metrics.height/100<this.viewHeight-this.realHeight)return this.topPosition=this.viewHeight-this.realHeight,this.$body.style.top=this.topPosition+"px",this.emit("overflow",{direction:e}),void(this.scroll&&this.scroll.scrollTo(-this.topPosition));this.topPosition-=this.step*n.data.metrics.height/100,this.scroll&&this.scroll.scrollTo(-this.topPosition),this.$body.style.top=this.topPosition+"px";break;case o.up:if(this.topPosition+this.step*n.data.metrics.height/100>0)return this.topPosition=0,this.$body.style.top=this.topPosition+"px",this.emit("overflow",{direction:e}),void(this.scroll&&this.scroll.scrollTo(-this.topPosition));this.topPosition+=this.step*n.data.metrics.height/100,this.scroll&&this.scroll.scrollTo(-this.topPosition),this.$body.style.top=this.topPosition+"px"}},a.prototype.init=function(e){e=e||{},this.realHeight=this.$body.offsetHeight,this.viewHeight=this.$node.offsetHeight,this.topPosition=0,this.$body.style.top=this.topPosition+"px",e.scroll&&(this.scroll=e.scroll),e.step&&(this.step=e.step),this.scroll&&this.scroll.init({ realSize:this.realHeight,viewSize:this.viewHeight,value:this.topPosition})},e.exports=a},function(e,t,i){"use strict";function a(e){e=e||{},this.viewSize=10,this.realSize=100,this.value=0,this.type=this.TYPE_VERTICAL,this.thumbRect=null,this.trackRect=null,e.focusable=e.focusable||!1,e.className="scrollBar "+(e.className||""),e.type&&(this.type=e.type),this.type===this.TYPE_HORIZONTAL&&(e.className+=" horizontal"),s.call(this,e),this.$thumb=this.$body.appendChild(document.createElement("div")),this.$thumb.className="thumb",this.init(e)}var s=i(1);a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.TYPE_VERTICAL=1,a.prototype.TYPE_HORIZONTAL=2,a.prototype.init=function(e){e=e||{},void 0!==e.realSize&&(this.realSize=e.realSize),void 0!==e.viewSize&&(this.viewSize=e.viewSize),this.viewSize>=this.realSize?this.$thumb.classList.add("hidden"):this.$thumb.classList.remove("hidden"),void 0!==e.value&&this.scrollTo(e.value),this.type===this.TYPE_VERTICAL?this.$thumb.style.height=this.viewSize/this.realSize*100+"%":this.$thumb.style.width=this.viewSize/this.realSize*100+"%",this.thumbRect=this.$thumb.getBoundingClientRect(),this.trackRect=this.$node.getBoundingClientRect()},a.prototype.scrollTo=function(e){return this.value!==e?(0!==this.thumbRect.height&&0!==this.thumbRect.width||(this.trackRect=this.$node.getBoundingClientRect(),this.thumbRect=this.$thumb.getBoundingClientRect()),this.type===this.TYPE_VERTICAL?this.$thumb.style.marginTop=(this.trackRect.height-this.thumbRect.height)*e/(this.realSize-this.viewSize)+"px":this.$thumb.style.marginLeft=(this.trackRect.width-this.thumbRect.width)*e/(this.realSize-this.viewSize)+"px",this.events.change&&this.emit("change",{curr:e,prev:this.value}),e>=this.realSize&&(e=this.realSize,this.events.done&&this.emit("done")),this.value=e,!0):!1},e.exports=a},function(e,t){"use strict";e.exports={480:{height:480,width:720,availTop:24,availBottom:24,availRight:32,availLeft:48,keyboardWidth:558,keyboardHeight:311},576:{height:576,width:720,availTop:24,availBottom:24,availRight:26,availLeft:54,keyboardWidth:558,keyboardHeight:311},720:{height:720,width:1280,availTop:30,availBottom:30,availRight:40,availLeft:40,keyboardWidth:818,keyboardHeight:311},1080:{height:1080,width:1920,availTop:45,availBottom:45,availRight:60,availLeft:60,keyboardWidth:1227,keyboardHeight:467}}},function(e,t,i){"use strict";var a,s,n,o=i(21),l={1:{},"2T":{},"2B":{}};for(a=0,s=o.length;s>a;a++)n=o[a],l[1][n[1]]=l["2T"][n["2T"]]=l["2B"][n["2B"]]=[n.name,n.local];o=null,e.exports=l},function(e,t){e.exports=[{1:"ab",2:"abk",3:"abk",name:"Abkhaz",local:"аҧсуа бызшәа","2T":"abk","2B":"abk"},{1:"aa",2:"aar",3:"aar",name:"Afar",local:"Afaraf","2T":"aar","2B":"aar"},{1:"af",2:"afr",3:"afr",name:"Afrikaans",local:"Afrikaans","2T":"afr","2B":"afr"},{1:"ak",2:"aka",3:"aka",name:"Akan",local:"Akan","2T":"aka","2B":"aka"},{1:"sq",2:"sqi",3:"sqi",name:"Albanian",local:"Shqip","2T":"sqi","2B":"alb"},{1:"am",2:"amh",3:"amh",name:"Amharic",local:"አማርኛ","2T":"amh","2B":"amh"},{1:"ar",2:"ara",3:"ara",name:"Arabic",local:"العربية","2T":"ara","2B":"ara"},{1:"an",2:"arg",3:"arg",name:"Aragonese",local:"aragonés","2T":"arg","2B":"arg"},{1:"hy",2:"hye",3:"hye",name:"Armenian",local:"Հայերեն","2T":"hye","2B":"arm"},{1:"as",2:"asm",3:"asm",name:"Assamese",local:"অসমীয়া","2T":"asm","2B":"asm"},{1:"av",2:"ava",3:"ava",name:"Avaric",local:"авар мацӀ","2T":"ava","2B":"ava"},{1:"ae",2:"ave",3:"ave",name:"Avestan",local:"avesta","2T":"ave","2B":"ave"},{1:"ay",2:"aym",3:"aym",name:"Aymara",local:"aymar aru","2T":"aym","2B":"aym"},{1:"az",2:"aze",3:"aze",name:"Azerbaijani",local:"azərbaycan dili","2T":"aze","2B":"aze"},{1:"bm",2:"bam",3:"bam",name:"Bambara",local:"bamanankan","2T":"bam","2B":"bam"},{1:"ba",2:"bak",3:"bak",name:"Bashkir",local:"башҡорт теле","2T":"bak","2B":"bak"},{1:"eu",2:"eus",3:"eus",name:"Basque",local:"euskara","2T":"eus","2B":"baq"},{1:"be",2:"bel",3:"bel",name:"Belarusian",local:"беларуская мова","2T":"bel","2B":"bel"},{1:"bn",2:"ben",3:"ben",name:"Bengali",local:"বাংলা","2T":"ben","2B":"ben"},{1:"bh",2:"bih",3:"bih",name:"Bihari",local:"भोजपुरी","2T":"bih","2B":"bih"},{1:"bi",2:"bis",3:"bis",name:"Bislama",local:"Bislama","2T":"bis","2B":"bis"},{1:"bs",2:"bos",3:"bos",name:"Bosnian",local:"bosanski jezik","2T":"bos","2B":"bos"},{1:"br",2:"bre",3:"bre",name:"Breton",local:"brezhoneg","2T":"bre","2B":"bre"},{1:"bg",2:"bul",3:"bul",name:"Bulgarian",local:"български език","2T":"bul","2B":"bul"},{1:"my",2:"mya",3:"mya",name:"Burmese",local:"ဗမာစာ","2T":"mya","2B":"bur"},{1:"ca",2:"cat",3:"cat",name:"Catalan",local:"català","2T":"cat","2B":"cat"},{1:"ch",2:"cha",3:"cha",name:"Chamorro",local:"Chamoru","2T":"cha","2B":"cha"},{1:"ce",2:"che",3:"che",name:"Chechen",local:"нохчийн мотт","2T":"che","2B":"che"},{1:"ny",2:"nya",3:"nya",name:"Chichewa",local:"chiCheŵa","2T":"nya","2B":"nya"},{1:"zh",2:"zho",3:"zho",name:"Chinese",local:"中文","2T":"zho","2B":"chi"},{1:"cv",2:"chv",3:"chv",name:"Chuvash",local:"чӑваш чӗлхи","2T":"chv","2B":"chv"},{1:"kw",2:"cor",3:"cor",name:"Cornish",local:"Kernewek","2T":"cor","2B":"cor"},{1:"co",2:"cos",3:"cos",name:"Corsican",local:"corsu","2T":"cos","2B":"cos"},{1:"cr",2:"cre",3:"cre",name:"Cree",local:"ᓀᐦᐃᔭᐍᐏᐣ","2T":"cre","2B":"cre"},{1:"hr",2:"hrv",3:"hrv",name:"Croatian",local:"hrvatski jezik","2T":"hrv","2B":"hrv"},{1:"cs",2:"ces",3:"ces",name:"Czech",local:"čeština","2T":"ces","2B":"cze"},{1:"da",2:"dan",3:"dan",name:"Danish",local:"dansk","2T":"dan","2B":"dan"},{1:"iv",2:"div",3:"div",name:"Divehi",local:"Divehi","2T":"div","2B":"div"},{1:"nl",2:"nld",3:"nld",name:"Dutch",local:"Nederlands","2T":"nld","2B":"dut"},{1:"dz",2:"dzo",3:"dzo",name:"Dzongkha",local:"རྫོང་ཁ","2T":"dzo","2B":"dzo"},{1:"en",2:"eng",3:"eng",name:"English",local:"English","2T":"eng","2B":"eng"},{1:"eo",2:"epo",3:"epo",name:"Esperanto",local:"Esperanto","2T":"epo","2B":"epo"},{1:"et",2:"est",3:"est",name:"Estonian",local:"eesti","2T":"est","2B":"est"},{1:"ee",2:"ewe",3:"ewe",name:"Ewe",local:"Eʋegbe","2T":"ewe","2B":"ewe"},{1:"fo",2:"fao",3:"fao",name:"Faroese",local:"føroyskt","2T":"fao","2B":"fao"},{1:"fj",2:"fij",3:"fij",name:"Fijian",local:"vosa Vakaviti","2T":"fij","2B":"fij"},{1:"fi",2:"fin",3:"fin",name:"Finnish",local:"suomi","2T":"fin","2B":"fin"},{1:"fr",2:"fra",3:"fra",name:"French",local:"français","2T":"fra","2B":"fre"},{1:"ff",2:"ful",3:"ful",name:"Fula",local:"Fulfulde","2T":"ful","2B":"ful"},{1:"gl",2:"glg",3:"glg",name:"Galician",local:"galego","2T":"glg","2B":"glg"},{1:"ka",2:"kat",3:"kat",name:"Georgian",local:"ქართული","2T":"kat","2B":"geo"},{1:"de",2:"deu",3:"deu",name:"German",local:"Deutsch","2T":"deu","2B":"ger"},{1:"el",2:"ell",3:"ell",name:"Greek",local:"ελληνικά","2T":"ell","2B":"gre"},{1:"gn",2:"grn",3:"grn",name:"Guaraní",local:"Avañe'ẽ","2T":"grn","2B":"grn"},{1:"gu",2:"guj",3:"guj",name:"Gujarati",local:"ગુજરાતી","2T":"guj","2B":"guj"},{1:"ht",2:"hat",3:"hat",name:"Haitian",local:"Kreyòl ayisyen","2T":"hat","2B":"hat"},{1:"ha",2:"hau",3:"hau",name:"Hausa",local:"هَوُسَ","2T":"hau","2B":"hau"},{1:"he",2:"heb",3:"heb",name:"Hebrew",local:"עברית","2T":"heb","2B":"heb"},{1:"hz",2:"her",3:"her",name:"Herero",local:"Otjiherero","2T":"her","2B":"her"},{1:"hi",2:"hin",3:"hin",name:"Hindi",local:"हिन्दी","2T":"hin","2B":"hin"},{1:"ho",2:"hmo",3:"hmo",name:"Hiri Motu",local:"Hiri Motu","2T":"hmo","2B":"hmo"},{1:"hu",2:"hun",3:"hun",name:"Hungarian",local:"magyar","2T":"hun","2B":"hun"},{1:"ia",2:"ina",3:"ina",name:"Interlingua",local:"Interlingua","2T":"ina","2B":"ina"},{1:"id",2:"ind",3:"ind",name:"Indonesian",local:"Bahasa Indonesia","2T":"ind","2B":"ind"},{1:"ie",2:"ile",3:"ile",name:"Interlingue",local:"Interlingue","2T":"ile","2B":"ile"},{1:"ga",2:"gle",3:"gle",name:"Irish",local:"Gaeilge","2T":"gle","2B":"gle"},{1:"ig",2:"ibo",3:"ibo",name:"Igbo",local:"Asụsụ Igbo","2T":"ibo","2B":"ibo"},{1:"ik",2:"ipk",3:"ipk",name:"Inupiaq",local:"Iñupiaq","2T":"ipk","2B":"ipk"},{1:"io",2:"ido",3:"ido",name:"Ido",local:"Ido","2T":"ido","2B":"ido"},{1:"is",2:"isl",3:"isl",name:"Icelandic",local:"Íslenska","2T":"isl","2B":"ice"},{1:"it",2:"ita",3:"ita",name:"Italian",local:"italiano","2T":"ita","2B":"ita"},{1:"iu",2:"iku",3:"iku",name:"Inuktitut",local:"ᐃᓄᒃᑎᑐᑦ","2T":"iku","2B":"iku"},{1:"ja",2:"jpn",3:"jpn",name:"Japanese",local:"日本語","2T":"jpn","2B":"jpn"},{1:"jv",2:"jav",3:"jav",name:"Javanese",local:"basa Jawa","2T":"jav","2B":"jav"},{1:"kl",2:"kal",3:"kal",name:"Kalaallisut",local:"kalaallisut","2T":"kal","2B":"kal"},{1:"kn",2:"kan",3:"kan",name:"Kannada",local:"ಕನ್ನಡ","2T":"kan","2B":"kan"},{1:"kr",2:"kau",3:"kau",name:"Kanuri",local:"Kanuri","2T":"kau","2B":"kau"},{1:"ks",2:"kas",3:"kas",name:"Kashmiri",local:"कश्मीरी","2T":"kas","2B":"kas"},{1:"kk",2:"kaz",3:"kaz",name:"Kazakh",local:"қазақ тілі","2T":"kaz","2B":"kaz"},{1:"km",2:"khm",3:"khm",name:"Khmer",local:"ខ្មែរ","2T":"khm","2B":"khm"},{1:"ki",2:"kik",3:"kik",name:"Kikuyu",local:"Gĩkũyũ","2T":"kik","2B":"kik"},{1:"rw",2:"kin",3:"kin",name:"Kinyarwanda",local:"Ikinyarwanda","2T":"kin","2B":"kin"},{1:"ky",2:"kir",3:"kir",name:"Kyrgyz",local:"Кыргызча","2T":"kir","2B":"kir"},{1:"kv",2:"kom",3:"kom",name:"Komi",local:"коми кыв","2T":"kom","2B":"kom"},{1:"kg",2:"kon",3:"kon",name:"Kongo",local:"Kikongo","2T":"kon","2B":"kon"},{1:"ko",2:"kor",3:"kor",name:"Korean",local:"한국어","2T":"kor","2B":"kor"},{1:"ku",2:"kur",3:"kur",name:"Kurdish",local:"Kurdî","2T":"kur","2B":"kur"},{1:"kj",2:"kua",3:"kua",name:"Kwanyama",local:"Kuanyama","2T":"kua","2B":"kua"},{1:"la",2:"lat",3:"lat",name:"Latin",local:"latine","2T":"lat","2B":"lat"},{1:"lb",2:"ltz",3:"ltz",name:"Luxembourgish",local:"Lëtzebuergesch","2T":"ltz","2B":"ltz"},{1:"lg",2:"lug",3:"lug",name:"Ganda",local:"Luganda","2T":"lug","2B":"lug"},{1:"li",2:"lim",3:"lim",name:"Limburgish",local:"Limburgs","2T":"lim","2B":"lim"},{1:"ln",2:"lin",3:"lin",name:"Lingala",local:"Lingála","2T":"lin","2B":"lin"},{1:"lo",2:"lao",3:"lao",name:"Lao",local:"ພາສາລາວ","2T":"lao","2B":"lao"},{1:"lt",2:"lit",3:"lit",name:"Lithuanian",local:"lietuvių kalba","2T":"lit","2B":"lit"},{1:"lu",2:"lub",3:"lub",name:"Luba-Katanga",local:"Tshiluba","2T":"lub","2B":"lub"},{1:"lv",2:"lav",3:"lav",name:"Latvian",local:"latviešu valoda","2T":"lav","2B":"lav"},{1:"gv",2:"glv",3:"glv",name:"Manx",local:"Gaelg","2T":"glv","2B":"glv"},{1:"mk",2:"mkd",3:"mkd",name:"Macedonian",local:"македонски јазик","2T":"mkd","2B":"mac"},{1:"mg",2:"mlg",3:"mlg",name:"Malagasy",local:"fiteny malagasy","2T":"mlg","2B":"mlg"},{1:"ms",2:"msa",3:"msa",name:"Malay",local:"bahasa Melayu","2T":"msa","2B":"may"},{1:"ml",2:"mal",3:"mal",name:"Malayalam",local:"മലയാളം","2T":"mal","2B":"mal"},{1:"mt",2:"mlt",3:"mlt",name:"Maltese",local:"Malti","2T":"mlt","2B":"mlt"},{1:"mi",2:"mri",3:"mri",name:"Māori",local:"te reo Māori","2T":"mri","2B":"mao"},{1:"mr",2:"mar",3:"mar",name:"Marathi",local:"मराठी","2T":"mar","2B":"mar"},{1:"mh",2:"mah",3:"mah",name:"Marshallese",local:"Kajin M̧ajeļ","2T":"mah","2B":"mah"},{1:"mn",2:"mon",3:"mon",name:"Mongolian",local:"монгол","2T":"mon","2B":"mon"},{1:"na",2:"nau",3:"nau",name:"Nauru",local:"Ekakairũ Naoero","2T":"nau","2B":"nau"},{1:"nv",2:"nav",3:"nav",name:"Navajo",local:"Diné bizaad","2T":"nav","2B":"nav"},{1:"nd",2:"nde",3:"nde",name:"Northern Ndebele",local:"isiNdebele","2T":"nde","2B":"nde"},{1:"ne",2:"nep",3:"nep",name:"Nepali",local:"नेपाली","2T":"nep","2B":"nep"},{1:"ng",2:"ndo",3:"ndo",name:"Ndonga",local:"Owambo","2T":"ndo","2B":"ndo"},{1:"nb",2:"nob",3:"nob",name:"Norwegian Bokmål",local:"Norsk bokmål","2T":"nob","2B":"nob"},{1:"nn",2:"nno",3:"nno",name:"Norwegian Nynorsk",local:"Norsk nynorsk","2T":"nno","2B":"nno"},{1:"no",2:"nor",3:"nor",name:"Norwegian",local:"Norsk","2T":"nor","2B":"nor"},{1:"ii",2:"iii",3:"iii",name:"Nuosu",local:"ꆈꌠ꒿ Nuosuhxop","2T":"iii","2B":"iii"},{1:"nr",2:"nbl",3:"nbl",name:"Southern Ndebele",local:"isiNdebele","2T":"nbl","2B":"nbl"},{1:"oc",2:"oci",3:"oci",name:"Occitan",local:"occitan","2T":"oci","2B":"oci"},{1:"oj",2:"oji",3:"oji",name:"Ojibwe",local:"ᐊᓂᔑᓈᐯᒧᐎᓐ","2T":"oji","2B":"oji"},{1:"cu",2:"chu",3:"chu",name:"Old Church Slavonic",local:"ѩзыкъ словѣньскъ","2T":"chu","2B":"chu"},{1:"om",2:"orm",3:"orm",name:"Oromo",local:"Afaan Oromoo","2T":"orm","2B":"orm"},{1:"or",2:"ori",3:"ori",name:"Oriya",local:"ଓଡ଼ିଆ","2T":"ori","2B":"ori"},{1:"os",2:"oss",3:"oss",name:"Ossetian",local:"ирон æвзаг","2T":"oss","2B":"oss"},{1:"pa",2:"pan",3:"pan",name:"Panjabi",local:"ਪੰਜਾਬੀ","2T":"pan","2B":"pan"},{1:"pi",2:"pli",3:"pli",name:"Pāli",local:"पाऴि","2T":"pli","2B":"pli"},{1:"fa",2:"fas",3:"fas",name:"Persian",local:"فارسی","2T":"fas","2B":"per"},{1:"pl",2:"pol",3:"pol",name:"Polish",local:"język polski","2T":"pol","2B":"pol"},{1:"ps",2:"pus",3:"pus",name:"Pashto",local:"پښتو","2T":"pus","2B":"pus"},{1:"pt",2:"por",3:"por",name:"Portuguese",local:"português","2T":"por","2B":"por"},{1:"qu",2:"que",3:"que",name:"Quechua",local:"Runa Simi","2T":"que","2B":"que"},{1:"rm",2:"roh",3:"roh",name:"Romansh",local:"rumantsch grischun","2T":"roh","2B":"roh"},{1:"rn",2:"run",3:"run",name:"Kirundi",local:"Ikirundi","2T":"run","2B":"run"},{1:"ro",2:"ron",3:"ron",name:"Romanian",local:"limba română","2T":"ron","2B":"rum"},{1:"ru",2:"rus",3:"rus",name:"Russian",local:"русский язык","2T":"rus","2B":"rus"},{1:"sa",2:"san",3:"san",name:"Sanskrit",local:"संस्कृतम्","2T":"san","2B":"san"},{1:"sc",2:"srd",3:"srd",name:"Sardinian",local:"sardu","2T":"srd","2B":"srd"},{1:"sd",2:"snd",3:"snd",name:"Sindhi",local:"सिन्धी","2T":"snd","2B":"snd"},{1:"se",2:"sme",3:"sme",name:"Northern Sami",local:"Davvisámegiella","2T":"sme","2B":"sme"},{1:"sm",2:"smo",3:"smo",name:"Samoan",local:"gagana fa'a Samoa","2T":"smo","2B":"smo"},{1:"sg",2:"sag",3:"sag",name:"Sango",local:"yângâ tî sängö","2T":"sag","2B":"sag"},{1:"sr",2:"srp",3:"srp",name:"Serbian",local:"српски језик","2T":"srp","2B":"srp"},{1:"gd",2:"gla",3:"gla",name:"Gaelic",local:"Gàidhlig","2T":"gla","2B":"gla"},{1:"sn",2:"sna",3:"sna",name:"Shona",local:"chiShona","2T":"sna","2B":"sna"},{1:"si",2:"sin",3:"sin",name:"Sinhala",local:"සිංහල","2T":"sin","2B":"sin"},{1:"sk",2:"slk",3:"slk",name:"Slovak",local:"slovenčina","2T":"slk","2B":"slo"},{1:"sl",2:"slv",3:"slv",name:"Slovene",local:"slovenski jezik","2T":"slv","2B":"slv"},{1:"so",2:"som",3:"som",name:"Somali",local:"Soomaaliga","2T":"som","2B":"som"},{1:"st",2:"sot",3:"sot",name:"Southern Sotho",local:"Sesotho","2T":"sot","2B":"sot"},{1:"es",2:"spa",3:"spa",name:"Spanish",local:"español","2T":"spa","2B":"spa"},{1:"su",2:"sun",3:"sun",name:"Sundanese",local:"Basa Sunda","2T":"sun","2B":"sun"},{1:"sw",2:"swa",3:"swa",name:"Swahili",local:"Kiswahili","2T":"swa","2B":"swa"},{1:"ss",2:"ssw",3:"ssw",name:"Swati",local:"SiSwati","2T":"ssw","2B":"ssw"},{1:"sv",2:"swe",3:"swe",name:"Swedish",local:"Svenska","2T":"swe","2B":"swe"},{1:"ta",2:"tam",3:"tam",name:"Tamil",local:"தமிழ்","2T":"tam","2B":"tam"},{1:"te",2:"tel",3:"tel",name:"Telugu",local:"తెలుగు","2T":"tel","2B":"tel"},{1:"tg",2:"tgk",3:"tgk",name:"Tajik",local:"тоҷикӣ","2T":"tgk","2B":"tgk"},{1:"th",2:"tha",3:"tha",name:"Thai",local:"ไทย","2T":"tha","2B":"tha"},{1:"ti",2:"tir",3:"tir",name:"Tigrinya",local:"ትግርኛ","2T":"tir","2B":"tir"},{1:"bo",2:"bod",3:"bod",name:"Tibetan Standard",local:"བོད་ཡིག","2T":"bod","2B":"tib"},{1:"tk",2:"tuk",3:"tuk",name:"Turkmen",local:"Türkmen","2T":"tuk","2B":"tuk"},{1:"tl",2:"tgl",3:"tgl",name:"Tagalog",local:"Wikang Tagalog","2T":"tgl","2B":"tgl"},{1:"tn",2:"tsn",3:"tsn",name:"Tswana",local:"Setswana","2T":"tsn","2B":"tsn"},{1:"to",2:"ton",3:"ton",name:"Tonga",local:"faka Tonga","2T":"ton","2B":"ton"},{1:"tr",2:"tur",3:"tur",name:"Turkish",local:"Türkçe","2T":"tur","2B":"tur"},{1:"ts",2:"tso",3:"tso",name:"Tsonga",local:"Xitsonga","2T":"tso","2B":"tso"},{1:"tt",2:"tat",3:"tat",name:"Tatar",local:"татар теле","2T":"tat","2B":"tat"},{1:"tw",2:"twi",3:"twi",name:"Twi",local:"Twi","2T":"twi","2B":"twi"},{1:"ty",2:"tah",3:"tah",name:"Tahitian",local:"Reo Tahiti","2T":"tah","2B":"tah"},{1:"ug",2:"uig",3:"uig",name:"Uyghur",local:"Uyƣurqə","2T":"uig","2B":"uig"},{1:"uk",2:"ukr",3:"ukr",name:"Ukrainian",local:"українська мова","2T":"ukr","2B":"ukr"},{1:"ur",2:"urd",3:"urd",name:"Urdu",local:"اردو","2T":"urd","2B":"urd"},{1:"uz",2:"uzb",3:"uzb",name:"Uzbek",local:"O‘zbek","2T":"uzb","2B":"uzb"},{1:"ve",2:"ven",3:"ven",name:"Venda",local:"Tshivenḓa","2T":"ven","2B":"ven"},{1:"vi",2:"vie",3:"vie",name:"Vietnamese",local:"Tiếng Việt","2T":"vie","2B":"vie"},{1:"vo",2:"vol",3:"vol",name:"Volapük",local:"Volapük","2T":"vol","2B":"vol"},{1:"wa",2:"wln",3:"wln",name:"Walloon",local:"walon","2T":"wln","2B":"wln"},{1:"cy",2:"cym",3:"cym",name:"Welsh",local:"Cymraeg","2T":"cym","2B":"wel"},{1:"wo",2:"wol",3:"wol",name:"Wolof",local:"Wollof","2T":"wol","2B":"wol"},{1:"fy",2:"fry",3:"fry",name:"Western Frisian",local:"Frysk","2T":"fry","2B":"fry"},{1:"xh",2:"xho",3:"xho",name:"Xhosa",local:"isiXhosa","2T":"xho","2B":"xho"},{1:"yi",2:"yid",3:"yid",name:"Yiddish",local:"ייִדיש","2T":"yid","2B":"yid"},{1:"yo",2:"yor",3:"yor",name:"Yoruba",local:"Yorùbá","2T":"yor","2B":"yor"},{1:"za",2:"zha",3:"zha",name:"Zhuang",local:"Saɯ cueŋƅ","2T":"zha","2B":"zha"},{1:"zu",2:"zul",3:"zul",name:"Zulu",local:"isiZulu","2T":"zul","2B":"zul"}]},function(e,t,i){"use strict";function a(e,t){var i,a,s=[];if(e&&e.length)for(i=0;i<e.length;i++)a=t?e[i].name?e[i].name+(e[i].original_name?" ( "+e[i].original_name+" )":""):_("Series")+" "+e[i].number:e[i].name?e[i].name+(e[i].original_name?" ( "+e[i].original_name+" )":""):_("Season")+" "+e[i].number,s[i]={items:[{className:"title",value:a}],value:e[i]};return s}function s(e){var t,i,a,s,n,o=[];if(e&&e.length)for(t=0;t<e.length;t++)if(n=[],"video"===e[t].type){if(e[t].languages.length){for(i=0;i<e[t].languages.length;i++)s=L[1][e[t].languages[i]]||L["2B"][e[t].languages[i]]||L["2T"][e[t].languages[i]],s?n.push(s[1]):n.push(e[t].languages[i]||_("Unknown language"));n=n.join(", ")}e