1window.__tp_pdk_set_versions = function() { 2 $pdk.expectedVersions = {}; 3 $pdk.version = new $pdk.PdkVersion("5", "5", "4", "359507", "2014-08-28 10:25 AM"); 4$pdk.expectedVersions.bootloaderVersion = new $pdk.PdkVersion("5", "5", "4", "359507", "2014-08-28 10:07 AM"); 5$pdk.expectedVersions.gwtVersion = new $pdk.PdkVersion("5", "5", "4", "359507", "2014-08-28 10:07 AM"); 6 7$pdk.expectedVersions.flexVersion = new $pdk.PdkVersion("5", "5", "4", "359507", "2014-08-28 10:04 AM"); 8}; 9(function(){var D='',P='.',I='/',Q='Object',L='[object Array]',N='boolean',J='function',R='js.com.theplatform.pdk',K='js/app',M='number',G='object',F='script',H='string',O='undefined';var j=navigator.userAgent.toLowerCase(),k=function(a){return a.test(j)},l=k(/opera/),m=!l&&k(/msie/),n=m&&k(/msie 6/),o=m&&k(/msie 7/),p=m&&k(/msie 8/),q=m&&k(/trident\/5.0/),r=k(/webkit/),s=k(/chrome/),t=k(/bb10/),u=k(/iphone/)||k(/ipad/),v=k(/android/),w=k(/windows|win32/),A,B=D;try{A=document.getElementsByTagName(F);if(typeof window.$pdk===G&&typeof window.$pdk.scriptRoot===H){B=$pdk.scriptRoot}else{for(var C=0;C<A.length;C++){if(A[C].src.match(/tpPdk\.js/)){B=A[C].src.substr(0,A[C].src.lastIndexOf(I));break}}if(!B){B=A[A.length-1].src.substr(0,A[A.length-1].src.lastIndexOf(I))}}}catch(a){B=D}if(window.$pdk===null||typeof window.$pdk!==G&&typeof window.$pdk!==J){window.$pdk={bootloader_version:1}}if(typeof $pdk.apply!==J){$pdk.apply=function(a,b,c){if(c){$pdk.apply(a,c)}if(a&&(b&&typeof b==G)){for(var d in b){a[d]=b[d]}}return a}}$pdk.apply($pdk,{isOpera:l,isIE:m,isIE6:n,isIE7:o,isIE8:p,isIE9:q,isWebKit:r,isChrome:s,isBB10:t,isAndroid:v,isIOS:u,isWindows:w,scriptRoot:B,startTime:(new Date).getTime(),defaultAppJsRoot:K,isArray:function(a){return Object.prototype.toString.apply(a)===L},isEmpty:function(a,b){return a===null||(a===undefined||($pdk.isArray(a)&&!a.length||(!b?a===D:false)))},isPrimitive:function(a){var b=typeof a;return b==H||(b==M||b==N)},isObject:function(a){return a&&typeof a==G},tupleComp:function(a,b,c){var d=-1,e,f=a.length;for(e=0;e<f;e++){d=c(a[e],b[e]);if(d!==0){break}}return d},each:function(a,b,c){if($pdk.isEmpty(a,true)){return}if(typeof a.length==O||$pdk.isPrimitive(a)){a=[a]}for(var d=0,e=a.length;d<e;d++){if(b.call(c||a[d],a[d],d,a)===false){return d}}},ns:function(){var c,d,e=window;try{e=$wnd!==null&&typeof $wnd===G?$wnd:window}catch(a){e=window}$pdk.each(arguments,function(b){d=b.split(P);c=e[d[0]]=e[d[0]]||{};$pdk.each(d.slice(1),function(a){c=c[a]=c[a]||{}})});return c},override:function(a,b){if(b){var c=a.prototype;$pdk.apply(c,b);if($pdk.isIE&&b.toString!=a.toString){c.toString=b.toString}}},extend:function(){var h=function(a){for(var b in a){this[b]=a[b]}};var i=Object.prototype.constructor;return function(b,c,d){if($pdk.isObject(c)){d=c;c=b;b=d.constructor!=i&&(!d.constructor.name||d.constructor.name!=Q)?d.constructor:function(){c.apply(this,arguments)}}var e=function(){},f,g=c.prototype;e.prototype=g;f=b.prototype=new e;f.constructor=b;b.superclass=g;if(g.constructor==i){g.constructor=c}b.override=function(a){$pdk.override(b,a)};f.superclass=f.supr=function(){return g};f.override=h;$pdk.override(b,d);b.extend=function(a){$pdk.extend(b,a)};return b}}(),isDomReady:function(){if($pdk.isEmpty(document.readyState)){return !$pdk.isEmpty(document.body)}return /loaded|complete/.test(document.readyState)}});$pdk.ns(R);js.com.theplatform.pdk=$pdk}());function PDK(){var fb='',ee='\n-',Cb='" for "gwt:onLoadErrorFn"',Ab='" for "gwt:onPropertyErrorFn"',Td='"<script src=\\"',nb='"><\/script>',db='#',de=');',Xd='-\n',fe='-><\/scr',ke='.cache.js',Ud='.cache.js\\"><\/scr" + "ipt>"',U='/',qb='//',sc='0632B6E2F893AD85C8D41AE68DD16E8D',uc='0820A0E681C63AC7DB59CFF1706B64C0',vc='0F8A1EE86B81C907D0B86C0391016551',wc='15376D868D9D3394BEF3C7F5883470BE',xc='17CB69166345DD343FE0A27EF46156C0',yc='20F81EE1F4ADD7ABA9FB752FDF89DEE4',zc='230F80B62FAAAD698F32D8C63D1A4752',Ac='2A4C1E4237B019406DA09CBD1CAFD05B',Bc='2B9BDA44AFAECF38A80BDCF6B5073EF0',Cc='2BE5F9E53A56283AA445E5CDA90F1812',Dc='2E38F9AF476177E3D2236FDD9C5042D7',Ec='323B163C6F0D524728B7F977BA947A98',Fc='369F8102EFDB4CD31AB7D7E0D014398E',Gc='36DE26B03BBCF5DF505683E716270EEE',Hc='41D0E3F86BDC6E795916A0AFBC06CAC5',Ic='4987C459181D18B4F4D7CA516308C46E',Jc='49E92FEA2389EB97B0F2277AB9A09A7C',Kc='4C149813779D161551C44EC3FF837420',Lc='500EA452DF0C3B846976D72DAF80D146',Mc='505543D745B0B39168728A5C932BB00E',Nc='52C11BF52D31B1995C6DB54DF9117078',Oc='537C87C26FE92387AC42D234
9EC952AB0',Pc='55CEDCBC04E8F1253EE7F178A1D92A07',Qc='5F7DF88BA3702CE64F07A745B384AEF2',Rc='6A0F8B0ED5F41C2CA1B36AD9E1F6664C',Sc='6D9018D49C195FCA0720A16BF2AF46B2',Tc='6D9CC46D8B843EDF0839347D8F8B8FED',Uc='73F19460E73CB1A1F8AB3370EED030B5',Vc='772B60FA1647786213A28EFE1DA867E8',Wc='77704F53274808C90CD7512ACD4EED14',Xc='7783DC60A0EE19DEEFF8CA1E0760782C',Yc='7CCB51854FEEDD080ED74F3DEED0C85C',Zc='80FEA2D7DBCD4AC3257D44B6318D4629',$c='8358FE5BFEE0886B8ECA4B8DA56465C9',_c='839899AECA1A0B603DD1B7C4C84D6FE0',ad='85AED430AB220A906936688C99FBFC51',bd='88535080A6560EC4F0E83EF70AE26EE6',cd='887AD63235EDE784A8C027AAD5BD39BA',dd='910F8C6C60DDA0501E759FE139A59E2E',ed='9BEE3F2DC112D470E6BDD7050B1813B9',fd='9CC8D08376E713EC35D626C87C4D7178',gd='9F58152C668D20C63CF2CD587EDF1CC6',hd='9FA55FEC1BE1F07ACFBE56C2178FD10D',Qd=':',tc=':1',ub='::',Vd='<scr',mb='<script id="',xb='=',eb='?',jd='A45DF8F6808BF2A62F13A15483BAF3FB',kd='A4A9817353E3FBA78C763F540BD0739C',ld='A61AEE19052B6EE9744644042ED1954E',md='A81210869D2793248036D55A50119856',nd='A93DF062010A2E7A8E4AE2EEB7E0C300',od='A9B60D5EA0B73FACED48364E3A57531C',pd='AC5D9A2317AE385C12B688E699554052',qd='B0292639A1CDEDB056C05BB58262496E',rd='B0C8F345C1BF12B1AA3ABBFB0C9A3590',sd='B39C9042071ED2D2E5E28CA727407231',td='BAC5CF7413480D2076FF83BD7B523870',ud='BB66A534465D1621B0228275C9FEFB5E',vd='BE397887B67F18DEF7928F46200813A3',zb='Bad handler "',wd='C2198D7C5E29FC0BA094716BC99AB33E',xd='C225E7923BA71D9178A01747D1C87741',yd='C291483039BD079F2464EF09A7D93958',zd='C3F05003E6893DE6878217A024E9E8C9',Ad='C65F9C4A0C01DC466BFAFFC629F40D2D',Bd='CAE37743EDF146FD7C364DC662DD4969',Cd='CFD2666621A0F3A89118A065907E0BF9',pc='Cross-site hosted mode not yet implemented. See issue ',Dd='D01AC5931939434DF5FCE22ED4A76896',Ed='D2DB39F367E09CB43A9D57E575336D2B',Fd='D4F7F70D48E0F992C627D013EA4427BD',Gd='DB85AFABBBC3D425890F000B0980B1CE',Hd='DB90854566631FC0FF63CF9A50ED264F',Id='DFA771005718733C2F2F9FBF2D5B6274',Rd='DOMContentLoaded',Jd='E2A1F9191E4BF8251874E2732BD37DEF',Kd='E61A651417AE5E1BA719219262D500D5',Ld='EF56DA1E90DE0393B386119C83803977',Md='F80310DD16F04AEF5ECB7C06B5726C72',Nd='F98EC172687A32300D52CED0B71F5739',Od='FA27164DECDADEEF7FB2CDB2844FC455',Pd='FF32A6EF01F79ACB3B0E449FA8FCE1E5',V='PDK',kb='PDK.nocache.js',tb='PDK::',ob='SCRIPT',lb='__gwt_marker_PDK',Lb='android',Pb='android 2',Qb='android 3.0',pb='base',ib='baseUrl',Y='begin',X='bootstrap',Mb='chrome',Ob='chrome_android',cc='chrome_mac',dc='chrome_windows',hb='clear.cache.gif',wb='content',ce='document.write(',cb='end',$d='evtGroup: "loadExternalRefs", millis:(new Date()).getTime(),',ae='evtGroup: "moduleStartup", millis:(new Date()).getTime(),',Jb='false',lc='gecko',oc='gecko1_8',nc='gecko1_8_mac',mc='gecko1_8_windows',$='gwt.codesvr=',_='gwt.hosted=',ab='gwt.hybrid',Bb='gwt:onLoadErrorFn',yb='gwt:onPropertyErrorFn',vb='gwt:property',Db='hasFlash',Eb='hasJquery',ie='head',Hb='html5',qc='http://code.google.com/p/google-web-toolkit/issues/detail?id=2079',hc='ie10',gc='ie10_app',kc='ie6',jc='ie8',ic='ie9',gb='img',Ub='ipad',Wb='iphone',ge='ipt>',Wd='ipt><!-',bc='linux',Sd='loadExternalRefs',Yb='macintosh',rb='meta',Zd='moduleName:"PDK", sessionId:window.__gwtStatsSessionId, subSystem:"startup",',je='moduleRequested',bb='moduleStartup',fc='msapphost',ec='msie',sb='name',Tb='opera',Gb='preferredruntimes',Fb='requiresPhase1',Zb='safari',Sb='safari_android',Rb='safari_android_legacy',Vb='safari_ipad',Xb='safari_iphone',$b='safari_mac',ac='safari_windows',jb='script',rc='selectingPermutation',Nb='silk',W='startup',he='text/javascript',Ib='true',_d='type: "end"});',be='type: "moduleRequested"});',Z='undefined',Kb='user.agent',Yd='window.__gwtStatsEvent && window.__gwtStatsEvent({',_b='windows';var m=window,n=document,o=m.__gwtStatsEvent?function(a){return m.__gwtStatsEvent(a)}:null,p=m.__gwtStatsSessionId?m.__gwtStatsSessionId:null,q,r,s=$pdk.env.Detect.getInstance().baseDir()+U+$pdk.defaultAppJsRoot+U,t={},u=[],v=[],w=[],A=0,B,C;o&&o({moduleName:V,sessionId:p,subSystem:W,evtGroup:X,millis:(new Date).getTime(),type:Y});if(!m.__gwt_stylesLoaded){m.__gwt_stylesLoaded={}}if(!m.__gwt_scriptsLoaded){m.__gwt_scriptsLoaded={}}function D(){if(typeof n.readyState==Z){return typeof n.body!=Z&&n.body!=null}return /loaded|complete/.test(n.readyState)} 10function F(){var b=false;try{var c=m.location.search;return (c.indexOf($)!=-1||(c.indexOf(_)!=-1||m.external&&m.external.gwtOnLoad))&&c.indexOf(ab)==-1}catch(a){}F=function(){return b};return b} 11function G(){if(q&&r){var a=$pdk.env.Detect.getInstance().baseDir()+U+$pdk.defaultAppJsRoot+U;q(B,V,a,A);o&&o({moduleName:V,sessionId:p,subSystem:W,evtGroup:bb,millis:(new Date).getTime(),type:cb})}} 12function H(){function e(a){var b=a.lastIndexOf(db);if(b==-1){b=a.length}var c=a.indexOf(eb);if(c==-1){c=a.length}var d=a.lastIndexOf(U,Math.min(c,b));return d>=0?a.substring(0,d+1):fb} 13function f(a){if(a.match(/^\w+:\/\//)){}else{var b=n.createElement(gb);b.src=a+hb;a=e(b.src)}return a} 14function g(){var a=J(ib);if(a!=null){return a}return fb} 15function h(){var a=n.getElementsByTagName(jb);for(var b=0;b<a.length;++b){if(a[b].src.indexOf(kb)!=-1){return e(a[b].src)}}return fb} 16function i(){var a;if(typeof D==Z||!D()){var b=lb;var c;n.write(mb+b+nb);c=n.getElementById(b);a=c&&c.previousSibling;while(a&&a.tagName!=ob){a=a.previousSibling}if(c){c.parentNode.removeChild(c)}if(a&&a.src){return e(a.src)}}return fb} 17function j(){var a=n.getElementsByTagName(pb);if(a.length>0){return a[a.length-1].href}return fb} 18function k(){var a=n.location;return a.href==a.protocol+qb+a.host+a.pathname+a.search+a.hash} 19var l=g();if(l==fb){l=h()}if(l==fb){l=i()}if(l==fb){l=j()}if(l==fb&&k()){l=e(n.location.href)}l=f(l);s=l;return l} 20function I(){var b=document.getElementsByTagName(rb);for(var c=0,d=b.length;c<d;++c){var e=b[c],f=e.getAttribute(sb),g;if(f){f=f.replace(tb,fb);if(f.indexOf(ub)>=0){continue}if(f==vb){g=e.getAttribute(wb);if(g){var h,i=g.indexOf(xb);if(i>=0){f=g.substring(0,i);h=g.substring(i+1)}else{f=g;h=fb}t[f]=h}}else if(f==yb){g=e.getAttribute(wb);if(g){try{C=eval(g)}catch(a){alert(zb+g+Ab)}}}else if(f==Bb){g=e.getAttribute(wb);if(g){try{B=eval(g)}catch(a){alert(zb+g+Cb)}}}}}} 21function J(a){var b=t[a];return b==null?null:b} 22function K(a,b){var c=w;for(var d=0,e=a.length-1;d<e;++d){c=c[a[d]]||(c[a[d]]=[])}c[a[e]]=b} 23function L(a){var b=v[a](),c=u[a];if(b in c){return b}var d=[];for(var e in c){d[c[e]]=e}if(C){C(a,d,b)}throw null} 24v[Db]=function(){return String($pdk.env.Detect.getInstance().hasFlash())};u[Db]={'false':0,'true':1};v[Eb]=function(){return String($pdk.env.Detect.getInstance().hasJquery())};u[Eb]={'false':0,'true':1};v[Fb]=function(){var a=$pdk.env.Detect.getInstance().getConfigSet(Gb);return a&&a.contains(Hb)?Ib:Jb};u[Fb]={'false':0,'true':1};v[Kb]=function(){var b=navigator.userAgent.toLowerCase();var c=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(function(){return b.indexOf(Lb)!=-1&&b.indexOf(Mb)!=-1||b.indexOf(Nb)!=-1}()){{m.$pdk.userAgentAxis=Ob;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Pb)!=-1||b.indexOf(Qb)!=-1}()){{m.$pdk.userAgentAxis=Rb;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Lb)!=-1&&(b.indexOf(Pb)==-1&&(b.indexOf(Qb)==-1&&b.indexOf(Nb)==-1))}()){{m.$pdk.userAgentAxis=Sb;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Tb)!=-1}()){{m.$pdk.userAgentAxis=Tb;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Ub)!=-1}()){{m.$pdk.userAgentAxis=Vb;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Wb)!=-1}()){{m.$pdk.userAgentAxis=Xb;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Mb)==-1&&(b.indexOf(Nb)==-1&&(b.indexOf(Nb)==-1&&(b.indexOf(Yb)!=-1&&b.indexOf(Zb)!=-1)))}()){{m.$pdk.userAgentAxis=$b;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Mb)==-1&&(b.indexOf(Nb)==-1&&(b.indexOf(_b)!=-1&&b.indexOf(Zb)!=-1))}()){{m.$pdk.userAgentAxis=ac;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Nb)==-1&&(b.indexOf(Lb)==-1&&((b.indexOf(Yb)!=-1||b.indexOf(b
24c)!=-1)&&b.indexOf(Mb)!=-1))}()){{m.$pdk.userAgentAxis=cc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(Nb)==-1&&(b.indexOf(_b)!=-1&&b.indexOf(Mb)!=-1)}()){{m.$pdk.userAgentAxis=dc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(ec)!=-1&&(b.indexOf(fc)!=-1&&n.documentMode>=10)}()){{m.$pdk.userAgentAxis=gc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(ec)!=-1&&n.documentMode>=10}()){{m.$pdk.userAgentAxis=hc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(ec)!=-1&&n.documentMode>=9}()){{m.$pdk.userAgentAxis=ic;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(ec)!=-1&&n.documentMode>=8}()){{m.$pdk.userAgentAxis=jc;return m.$pdk.userAgentAxis}}if(function(){var a=/msie ([0-9]+)\.([0-9]+)/.exec(b);if(a&&a.length==3)return c(a)>=6000}()){{m.$pdk.userAgentAxis=kc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(lc)!=-1&&b.indexOf(_b)!=-1}()){{m.$pdk.userAgentAxis=mc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(lc)!=-1&&(b.indexOf(Yb)!=-1||b.indexOf(bc)!=-1)}()){{m.$pdk.userAgentAxis=nc;return m.$pdk.userAgentAxis}}if(function(){return b.indexOf(lc)!=-1}()){{m.$pdk.userAgentAxis=oc;return m.$pdk.userAgentAxis}}m.$pdk.userAgentAxis=cc;return cc};u[Kb]={chrome_android:0,chrome_mac:1,chrome_windows:2,gecko1_8:3,gecko1_8_mac:4,gecko1_8_windows:5,ie10:6,ie10_app:7,ie6:8,ie8:9,ie9:10,opera:11,safari:12,safari_android:13,safari_android_legacy:14,safari_ipad:15,safari_iphone:16,safari_mac:17,safari_windows:18};PDK.onScriptLoad=function(a){PDK.onScriptLoad=null;q=a;G()};if(F()){alert(pc+qc);return}I();H();o&&o({moduleName:V,sessionId:p,subSystem:W,evtGroup:X,millis:(new Date).getTime(),type:rc});var M;try{K([Ib,Ib,Jb,Ob],sc);K([Ib,Ib,Ib,Ob],sc);K([Ib,Ib,Jb,Ob],sc+tc);K([Ib,Ib,Ib,Ob],sc+tc);K([Ib,Jb,Jb,dc],uc);K([Ib,Jb,Ib,dc],uc);K([Ib,Jb,Jb,dc],uc+tc);K([Ib,Jb,Ib,dc],uc+tc);K([Jb,Jb,Jb,cc],vc);K([Jb,Jb,Ib,cc],vc);K([Jb,Jb,Jb,cc],vc+tc);K([Jb,Jb,Ib,cc],vc+tc);K([Jb,Ib,Jb,Vb],wc);K([Jb,Ib,Ib,Vb],wc);K([Jb,Ib,Jb,Vb],wc+tc);K([Jb,Ib,Ib,Vb],wc+tc);K([Jb,Ib,Jb,cc],xc);K([Jb,Ib,Ib,cc],xc);K([Jb,Ib,Jb,cc],xc+tc);K([Jb,Ib,Ib,cc],xc+tc);K([Ib,Jb,Jb,kc],yc);K([Ib,Jb,Ib,kc],yc);K([Ib,Jb,Jb,kc],yc+tc);K([Ib,Jb,Ib,kc],yc+tc);K([Ib,Jb,Jb,$b],zc);K([Ib,Jb,Ib,$b],zc);K([Ib,Jb,Jb,$b],zc+tc);K([Ib,Jb,Ib,$b],zc+tc);K([Ib,Jb,Jb,Zb],Ac);K([Ib,Jb,Ib,Zb],Ac);K([Ib,Jb,Jb,Zb],Ac+tc);K([Ib,Jb,Ib,Zb],Ac+tc);K([Ib,Ib,Jb,Zb],Bc);K([Ib,Ib,Ib,Zb],Bc);K([Ib,Ib,Jb,Zb],Bc+tc);K([Ib,Ib,Ib,Zb],Bc+tc);K([Ib,Jb,Jb,cc],Cc);K([Ib,Jb,Ib,cc],Cc);K([Ib,Jb,Jb,cc],Cc+tc);K([Ib,Jb,Ib,cc],Cc+tc);K([Jb,Ib,Jb,dc],Dc);K([Jb,Ib,Ib,dc],Dc);K([Jb,Ib,Jb,dc],Dc+tc);K([Jb,Ib,Ib,dc],Dc+tc);K([Jb,Jb,Jb,$b],Ec);K([Jb,Jb,Ib,$b],Ec);K([Jb,Jb,Jb,$b],Ec+tc);K([Jb,Jb,Ib,$b],Ec+tc);K([Jb,Ib,Jb,gc],Fc);K([Jb,Ib,Ib,gc],Fc);K([Jb,Ib,Jb,gc],Fc+tc);K([Jb,Ib,Ib,gc],Fc+tc);K([Jb,Ib,Jb,nc],Gc);K([Jb,Ib,Ib,nc],Gc);K([Jb,Ib,Jb,nc],Gc+tc);K([Jb,Ib,Ib,nc],Gc+tc);K([Jb,Jb,Jb,Zb],Hc);K([Jb,Jb,Ib,Zb],Hc);K([Jb,Jb,Jb,Zb],Hc+tc);K([Jb,Jb,Ib,Zb],Hc+tc);K([Jb,Jb,Jb,jc],Ic);K([Jb,Jb,Ib,jc],Ic);K([Jb,Jb,Jb,jc],Ic+tc);K([Jb,Jb,Ib,jc],Ic+tc);K([Ib,Ib,Jb,gc],Jc);K([Ib,Ib,Ib,gc],Jc);K([Ib,Ib,Jb,gc],Jc+tc);K([Ib,Ib,Ib,gc],Jc+tc);K([Ib,Ib,Jb,ac],Kc);K([Ib,Ib,Ib,ac],Kc);K([Ib,Ib,Jb,ac],Kc+tc);K([Ib,Ib,Ib,ac],Kc+tc);K([Ib,Jb,Jb,ic],Lc);K([Ib,Jb,Ib,ic],Lc);K([Ib,Jb,Jb,ic],Lc+tc);K([Ib,Jb,Ib,ic],Lc+tc);K([Jb,Jb,Jb,mc],Mc);K([Jb,Jb,Ib,mc],Mc);K([Jb,Jb,Jb,mc],Mc+tc);K([Jb,Jb,Ib,mc],Mc+tc);K([Jb,Jb,Jb,Vb],Nc);K([Jb,Jb,Ib,Vb],Nc);K([Jb,Jb,Jb,Vb],Nc+tc);K([Jb,Jb,Ib,Vb],Nc+tc);K([Ib,Ib,Jb,Rb],Oc);K([Ib,Ib,Ib,Rb],Oc);K([Ib,Ib,Jb,Rb],Oc+tc);K([Ib,Ib,Ib,Rb],Oc+tc);K([Ib,Jb,Jb,ac],Pc);K([Ib,Jb,Ib,ac],Pc);K([Ib,Jb,Jb,ac],Pc+tc);K([Ib,Jb,Ib,ac],Pc+tc);K([Jb,Jb,Jb,gc],Qc);K([Jb,Jb,Ib,gc],Qc);K([Jb,Jb,Jb,gc],Qc+tc);K([Jb,Jb,Ib,gc],Qc+tc);K([Ib,Ib,Jb,hc],Rc);K([Ib,Ib,Ib,hc],Rc);K([Ib,Ib,Jb,hc],Rc+tc);K([Ib,Ib,Ib,hc],Rc+tc);K([Ib,Ib,Jb,mc],Sc);K([Ib,Ib,Ib,mc],Sc);K([Ib,Ib,Jb,mc],Sc+tc);K([Ib,Ib,Ib,mc],Sc+tc);K([Ib,Jb,Jb,Xb],Tc);K([Ib,Jb,Ib,Xb],Tc);K([Ib,Jb,Jb,Xb],Tc+tc);K([Ib,Jb,Ib,Xb],Tc+tc);K([Jb,Jb,Jb,hc],Uc);K([Jb,Jb,Ib,hc],Uc);K([Jb,Jb,Jb,hc],Uc+tc);K([Jb,Jb,Ib,hc],Uc+tc);K([Jb,Ib,Jb,Sb],Vc);K([Jb,Ib,Ib,Sb],Vc);K([Jb,Ib,Jb,Sb],Vc+tc);K([Jb,Ib,Ib,Sb],Vc+tc);K([Jb,Ib,Jb,mc],Wc);K([Jb,Ib,Ib,mc],Wc);K([Jb,Ib,Jb,mc],Wc+tc);K([Jb,Ib,Ib,mc],Wc+tc);K([Jb,Jb,Jb,Ob],Xc);K([Jb,Jb,Ib,Ob],Xc);K([Jb,Jb,Jb,Ob],Xc+tc);K([Jb,Jb,Ib,Ob],Xc+tc);K([Jb,Ib,Jb,Zb],Yc);K([Jb,Ib,Ib,Zb],Yc);K([Jb,Ib,Jb,Zb],Yc+tc);K([Jb,Ib,Ib,Zb],Yc+tc);K([Ib,Ib,Jb,oc],Zc);K([Ib,Ib,Ib,oc],Zc);K([Ib,Ib,Jb,oc],Zc+tc);K([Ib,Ib,Ib,oc],Zc+tc);K([Jb,Jb,Jb,oc],$c);K([Jb,Jb,Ib,oc],$c);K([Jb,Jb,Jb,oc],$c+tc);K([Jb,Jb,Ib,oc],$c+tc);K([Ib,Ib,Jb,cc],_c);K([Ib,Ib,Ib,cc],_c);K([Ib,Ib,Jb,cc],_c+tc);K([Ib,Ib,Ib,cc],_c+tc);K([Ib,Ib,Jb,Vb],ad);K([Ib,Ib,Ib,Vb],ad);K([Ib,Ib,Jb,Vb],ad+tc);K([Ib,Ib,Ib,Vb],ad+tc);K([Ib,Jb,Jb,Rb],bd);K([Ib,Jb,Ib,Rb],bd);K([Ib,Jb,Jb,Rb],bd+tc);K([Ib,Jb,Ib,Rb],bd+tc);K([Ib,Jb,Jb,jc],cd);K([Ib,Jb,Ib,jc],cd);K([Ib,Jb,Jb,jc],cd+tc);K([Ib,Jb,Ib,jc],cd+tc);K([Ib,Jb,Jb,gc],dd);K([Ib,Jb,Ib,gc],dd);K([Ib,Jb,Jb,gc],dd+tc);K([Ib,Jb,Ib,gc],dd+tc);K([Ib,Jb,Jb,mc],ed);K([Ib,Jb,Ib,mc],ed);K([Ib,Jb,Jb,mc],ed+tc);K([Ib,Jb,Ib,mc],ed+tc);K([Jb,Ib,Jb,Tb],fd);K([Jb,Ib,Ib,Tb],fd);K([Jb,Ib,Jb,Tb],fd+tc);K([Jb,Ib,Ib,Tb],fd+tc);K([Ib,Ib,Jb,$b],gd);K([Ib,Ib,Ib,$b],gd);K([Ib,Ib,Jb,$b],gd+tc);K([Ib,Ib,Ib,$b],gd+tc);K([Ib,Jb,Jb,nc],hd);K([Ib,Jb,Ib,nc],hd);K([Ib,Jb,Jb,nc],hd+tc);K([Ib,Jb,Ib,nc],hd+tc);K([Jb,Ib,Jb,kc],jd);K([Jb,Ib,Ib,kc],jd);K([Jb,Ib,Jb,kc],jd+tc);K([Jb,Ib,Ib,kc],jd+tc);K([Ib,Ib,Jb,Sb],kd);K([Ib,Ib,Ib,Sb],kd);K([Ib,Ib,Jb,Sb],kd+tc);K([Ib,Ib,Ib,Sb],kd+tc);K([Jb,Jb,Jb,Tb],ld);K([Jb,Jb,Ib,Tb],ld);K([Jb,Jb,Jb,Tb],ld+tc);K([Jb,Jb,Ib,Tb],ld+tc);K([Jb,Jb,Jb,Xb],md);K([Jb,Jb,Ib,Xb],md);K([Jb,Jb,Jb,Xb],md+tc);K([Jb,Jb,Ib,Xb],md+tc);K([Ib,Ib,Jb,ic],nd);K([Ib,Ib,Ib,ic],nd);K([Ib,Ib,Jb,ic],nd+tc);K([Ib,Ib,Ib,ic],nd+tc);K([Jb,Jb,Jb,Rb],od);K([Jb,Jb,Ib,Rb],od);K([Jb,Jb,Jb,Rb],od+tc);K([Jb,Jb,Ib,Rb],od+tc);K([Ib,Jb,Jb,Ob],pd);K([Ib,Jb,Ib,Ob],pd);K([Ib,Jb,Jb,Ob],pd+tc);K([Ib,Jb,Ib,Ob],pd+tc);K([Ib,Jb,Jb,Tb],qd);K([Ib,Jb,Ib,Tb],qd);
24K([Ib,Jb,Jb,Tb],qd+tc);K([Ib,Jb,Ib,Tb],qd+tc);K([Ib,Jb,Jb,oc],rd);K([Ib,Jb,Ib,oc],rd);K([Ib,Jb,Jb,oc],rd+tc);K([Ib,Jb,Ib,oc],rd+tc);K([Jb,Jb,Jb,kc],sd);K([Jb,Jb,Ib,kc],sd);K([Jb,Jb,Jb,kc],sd+tc);K([Jb,Jb,Ib,kc],sd+tc);K([Ib,Ib,Jb,Xb],td);K([Ib,Ib,Ib,Xb],td);K([Ib,Ib,Jb,Xb],td+tc);K([Ib,Ib,Ib,Xb],td+tc);K([Ib,Ib,Jb,Tb],ud);K([Ib,Ib,Ib,Tb],ud);K([Ib,Ib,Jb,Tb],ud+tc);K([Ib,Ib,Ib,Tb],ud+tc);K([Ib,Jb,Jb,hc],vd);K([Ib,Jb,Ib,hc],vd);K([Ib,Jb,Jb,hc],vd+tc);K([Ib,Jb,Ib,hc],vd+tc);K([Jb,Ib,Jb,$b],wd);K([Jb,Ib,Ib,$b],wd);K([Jb,Ib,Jb,$b],wd+tc);K([Jb,Ib,Ib,$b],wd+tc);K([Jb,Jb,Jb,ac],xd);K([Jb,Jb,Ib,ac],xd);K([Jb,Jb,Jb,ac],xd+tc);K([Jb,Jb,Ib,ac],xd+tc);K([Jb,Ib,Jb,oc],yd);K([Jb,Ib,Ib,oc],yd);K([Jb,Ib,Jb,oc],yd+tc);K([Jb,Ib,Ib,oc],yd+tc);K([Jb,Jb,Jb,ic],zd);K([Jb,Jb,Ib,ic],zd);K([Jb,Jb,Jb,ic],zd+tc);K([Jb,Jb,Ib,ic],zd+tc);K([Jb,Ib,Jb,jc],Ad);K([Jb,Ib,Ib,jc],Ad);K([Jb,Ib,Jb,jc],Ad+tc);K([Jb,Ib,Ib,jc],Ad+tc);K([Jb,Ib,Jb,ac],Bd);K([Jb,Ib,Ib,ac],Bd);K([Jb,Ib,Jb,ac],Bd+tc);K([Jb,Ib,Ib,ac],Bd+tc);K([Ib,Ib,Jb,dc],Cd);K([Ib,Ib,Ib,dc],Cd);K([Ib,Ib,Jb,dc],Cd+tc);K([Ib,Ib,Ib,dc],Cd+tc);K([Jb,Ib,Jb,hc],Dd);K([Jb,Ib,Ib,hc],Dd);K([Jb,Ib,Jb,hc],Dd+tc);K([Jb,Ib,Ib,hc],Dd+tc);K([Ib,Jb,Jb,Vb],Ed);K([Ib,Jb,Ib,Vb],Ed);K([Ib,Jb,Jb,Vb],Ed+tc);K([Ib,Jb,Ib,Vb],Ed+tc);K([Ib,Ib,Jb,kc],Fd);K([Ib,Ib,Ib,kc],Fd);K([Ib,Ib,Jb,kc],Fd+tc);K([Ib,Ib,Ib,kc],Fd+tc);K([Ib,Ib,Jb,jc],Gd);K([Ib,Ib,Ib,jc],Gd);K([Ib,Ib,Jb,jc],Gd+tc);K([Ib,Ib,Ib,jc],Gd+tc);K([Jb,Jb,Jb,dc],Hd);K([Jb,Jb,Ib,dc],Hd);K([Jb,Jb,Jb,dc],Hd+tc);K([Jb,Jb,Ib,dc],Hd+tc);K([Jb,Jb,Jb,nc],Id);K([Jb,Jb,Ib,nc],Id);K([Jb,Jb,Jb,nc],Id+tc);K([Jb,Jb,Ib,nc],Id+tc);K([Ib,Jb,Jb,Sb],Jd);K([Ib,Jb,Ib,Sb],Jd);K([Ib,Jb,Jb,Sb],Jd+tc);K([Ib,Jb,Ib,Sb],Jd+tc);K([Jb,Jb,Jb,Sb],Kd);K([Jb,Jb,Ib,Sb],Kd);K([Jb,Jb,Jb,Sb],Kd+tc);K([Jb,Jb,Ib,Sb],Kd+tc);K([Jb,Ib,Jb,ic],Ld);K([Jb,Ib,Ib,ic],Ld);K([Jb,Ib,Jb,ic],Ld+tc);K([Jb,Ib,Ib,ic],Ld+tc);K([Jb,Ib,Jb,Ob],Md);K([Jb,Ib,Ib,Ob],Md);K([Jb,Ib,Jb,Ob],Md+tc);K([Jb,Ib,Ib,Ob],Md+tc);K([Ib,Ib,Jb,nc],Nd);K([Ib,Ib,Ib,nc],Nd);K([Ib,Ib,Jb,nc],Nd+tc);K([Ib,Ib,Ib,nc],Nd+tc);K([Jb,Ib,Jb,Xb],Od);K([Jb,Ib,Ib,Xb],Od);K([Jb,Ib,Jb,Xb],Od+tc);K([Jb,Ib,Ib,Xb],Od+tc);K([Jb,Ib,Jb,Rb],Pd);K([Jb,Ib,Ib,Rb],Pd);K([Jb,Ib,Jb,Rb],Pd+tc);K([Jb,Ib,Ib,Rb],Pd+tc);M=w[L(Db)][L(Eb)][L(Fb)][L(Kb)];var N=M.indexOf(Qd);if(N!=-1){A=Number(M.substring(N+1));M=M.substring(0,N)}}catch(a){return}var O;function P(){if(!r){r=true;G();if(n.removeEventListener){n.removeEventListener(Rd,P,false)}if(O){clearInterval(O)}}} 25if(n.addEventListener){n.addEventListener(Rd,function(){P()},false)}var O=setInterval(function(){if(/loaded|complete/.test(n.readyState)){P()}},50);o&&o({moduleName:V,sessionId:p,subSystem:W,evtGroup:X,millis:(new Date).getTime(),type:cb});o&&o({moduleName:V,sessionId:p,subSystem:W,evtGroup:Sd,millis:(new Date).getTime(),type:Y});var Q=$pdk.env.Detect.getInstance().baseDir()+U+$pdk.defaultAppJsRoot+U;if(/loaded|complete|interactive/.test(document.readyState)===false){var R=Td+Q+M+Ud;n.write(Vd+Wd+Xd+Yd+Zd+$d+_d+Yd+Zd+ae+be+ce+R+de+ee+fe+ge)}else{var S=document.createElement(jb);S.type=he;var T=document.getElementsByTagName(ie)[0];if(!T)T=document.body;window.__gwtStatsEvent&&window.__gwtStatsEvent({moduleName:V,sessionId:window.__gwtStatsSessionId,subSystem:W,evtGroup:Sd,millis:(new Date).getTime(),type:cb});window.__gwtStatsEvent&&window.__gwtStatsEvent({moduleName:V,sessionId:window.__gwtStatsSessionId,subSystem:W,evtGroup:bb,millis:(new Date).getTime(),type:je});S.src=Q+M+ke;T.appendChild(S)}} 26$pdk.gwtBootloader=function(a){PDK()};$pdk.ns("$pdk.entrypoint"); 27$pdk.entrypoint.Entrypoint=$pdk.extend(function(){},{constructor:function(){this._complete=false; 28this._registry=null; 29this._env=null; 30this._callBacks=[]; 31this._postOnLoad=function(){} 32},configure:function(a,b){this._registry=a; 33this._env=b 34},_loaded:false,addCallback:function(a){this._callBacks.push(a); 35if(this._loaded){a.apply() 36}},initialize:function(){},onLoad:function(){var c=0,a=this._callBacks.length,d=this; 37this._loaded=true; 38for(; 39c<a; 40c++){this._callBacks[c].apply() 41}var b=typeof(window._PDK_SUPRESS_INITIALIZE)==="boolean"?window._PDK_SUPRESS_INITIALIZE:false; 42if((this._env===null||this._env.getAutoInitialize())&&!b){this.initialize() 43}this._postOnLoad() 44}}); 45$pdk.ns("$pdk.env.Detect"); 46$pdk.env.Detect._class=$pdk.extend(function(){},{constructor:function(){$pdk.env.Detect._class.superclass.constructor.call(this); 47this._config_sets={}; 48this._has_jquery=window.jQuery!==null&&typeof(window.jQuery)==="function"; 49this._flash_version=null; 50this._model_urls=this._parseRSS(); 51this._nonie_flash_test_str=null; 52this._nonie_silverlight_test_str=null; 53this._has_video=this._detectVideo(); 54this._has_silverlight=null; 55this._default_runtimes=["flash","html5"]; 56this._preferred_formats=null; 57this._default_formats=["mpeg4","f4m","m3u","webm","ogg","flv","mp3"]; 58this._media_factory=null; 59this._playback_format=null; 60this._component_runtime=null; 61this._playback_formats=null; 62this._supported_runtimes=null; 63this._preferred_formats_unfiltered=null; 64this._preload_stylesheets={}; 65this._cookies=this._parseCookies(document.cookie) 66},getCookies:function(){return this._cookies 67},removePreloadStylesheet:function(a){var b=document.getElementById(a+"Loading"); 68if(!$pdk.isEmpty(b)&&!$pdk.isEmpty(b.parentNode)){b.parentNode.removeChild(b) 69}},config:function(b,a){this._nonie_flash_test_str=b; 70this._nonie_silverlight_test_str=a 71},getPlaybackFormat:function(){return this._playback_format 72},setPlaybackFormat:function(a){this._playback_format=a 73},getComponentRuntime:function(){return this._component_runtime 74},setComponentRuntime:function(a){this._component_runtime=a 75},getPlaybackRuntime:function(d){var a=this.getPlayerFormats(d); 76var e=this.getSupportedRuntimes(); 77var b="flash"; 78if(a&&a.length&&e&&e.length){for(var c=0; 79c<e.length; 80c++){if(e[c].indexOf(":"+a[0])>=0){b=e[c].split(":")[0]; 81break 82}}}if(b==="universal"){b="flash" 83}return b 84},_parseCookies:function(f){var e={},d,b=f.split(";"),c=b.length,a; 85for(d=0; 86d<c; 87d++){a=b[d].split("="); 88e[a[0].replace(/\s/g,"")]=a[1] 89}return e 90},_detectFlash:function(){var a=[],d=null,b=[0,0,0],f=null; 91if($pdk.isBB10){return b 92}try{d=this._nonie_flash_test_str===null?navigator.plugins["Shockwave Flash"].description:this._nonie_flash_test_str 93}catch(j){d=null 94}
94if(typeof(d)==="string"&&d.length>0){try{f=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin 95}catch(h){f=null 96}if(f!==null){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1"); 97b[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10); 98b[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10); 99b[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0 100}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); 101d=c.GetVariable("$version") 102}catch(g){a=null 103}if(typeof(d)==="string"){a=d.split(" ")[1].split(","); 104b=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)] 105}}return b 106},_detectVideo:function(){var c='video/mp4; codecs="avc1.42E01E',d=document.createElement("video"),g=false,b={hasVideo:false,codecs:{ogg:false,h264:false,webm:false,m3u:false,mp3:false,aac:false}},a={ogg:['video/ogg; codecs="theora"'],h264:[c+'"',c+', mp4a.40.2"'],webm:['video/webm; codecs="vp8, vorbis"','video/x-webm; codecs="vp8, vorbis"'],m3u:["application/vnd.apple.mpegurl",'audio/x-mpegurl; codecs="mp4a.40.2"','vnd.apple.mpegURL; codecs="mp4a.40.2"','application/x-mpegURL; codecs="mp4a.40.2"'],mp3:["audio/mpeg;"],aac:['audio/mp4; codecs="mp4a.40.5"'],mpegdash:["application/dash+xml","video/vnd.mpeg.dash.mpd"]};
107try{g=typeof(d.canPlayType)==="function"; 108if(g){b.hasVideo=true; 109b.codecs={ogg:this._detectVidFormat(d,a.ogg),h264:this._detectVidFormat(d,a.h264),webm:this._detectVidFormat(d,a.webm),m3u:this._detectVidFormat(d,a.m3u),mp3:this._detectVidFormat(d,a.mp3),aac:this._detectVidFormat(d,a.aac),mpegdash:typeof(window.MediaSource)==="function"||typeof(window.WebKitMediaSource)==="function"||this._detectVidFormat(d,a.mpegdash)} 110}}catch(f){b.hasVideo=false 111}return b 112},_detectVidFormat:function(d,a){var e=a.length,c=false; 113for(var b=0; 114b<e; 115b++){c=!($pdk.isEmpty(d.canPlayType(a[b]))||d.canPlayType(a[b]).toLowerCase()==="no")||(a[b]=='vnd.apple.mpegURL; codecs="mp4a.40.2"'&&$pdk.isChrome&&$pdk.isAndroid); 116if(c){break 117}}return c 118},_detectSilverlight:function(){var j=null,d,a,f,l=false,c,b,k=[4,0,0,0]; 119if(typeof(window.ActiveXObject)==="function"){try{j=new ActiveXObject("AgControl.AgControl"); 120l=j.IsVersionSupported(k.join(".")) 121}catch(g){l=false 122}}else{try{f=navigator.plugins["Silverlight Plug-In"]; 123c=this._nonie_silverlight_test_str!==null?this._nonie_silverlight_test_str:String(f.description); 124c=c==="1.0.30226.2"?"2.0.30226.2":c; 125b=c.split("."); 126for(d=0; 127d<4; 128d++){a=b[d]; 129a=typeof(a)==="string"?parseInt(a,10):0; 130b[d]=a 131}l=$pdk.tupleComp(k,b,function(m,e){var n=e>m?1:0; 132return e<m?-1:n 133})>=0 134}catch(h){l=false 135}}return l 136},_parseRSS:function(){var h=this; 137var m=document.getElementsByTagName("link"),k=m.length,g=false,c=false,a,b,l={releaseurl:null,releasemodel:null,categorymodel:null,rssurl:null},f; 138for(f=0; 139f<k; 140f++){if(!g&&m[f].type=="application/rss+xml"&&m[f].rel=="alternate"&&m[f].href.length>0){a=m[f].href; 141l.rssurl=a; 142try{b=a.split("?") 143}catch(j){b=[] 144}if(b.length>0){l.releasemodelbase=b[0]; 145l.releasemodel=b[0]; 146var d=h._createCategoryModelUrl(a); 147l.categorymodelbase=d; 148l.categorymodel=d+"?form=json&fields=fullTitle,id,label,order,title"; 149g=true 150}}else{if(!c&&(m[f].type=="application/smil+xml"||m[f].type=="application/smil"||m[f].className==="tpRelease")){a=m[f].href; 151if(typeof(a)==="string"&&a.length>0&&a!==document.URL){l.releaseurl=a; 152c=true 153}}}}return l 154},_createCategoryModelUrl:function(a){var f=this; 155var d=a; 156try{url_parts=a.split("?") 157}catch(g){url_parts=[] 158}if(url_parts.length>0){if(f._isLegacyCategoryUrl(a)){var h; 159try{h=url_parts[0].split("/") 160}catch(b){mainUrlparts=[] 161}if(h.length>0){for(i=0; 162i<h.length; 163++i){if(h[i]===""){h.splice(i,1); 164i-- 165}}var k=h[0]; 166var c=h[1]; 167h=h.slice(2); 168if(h.length>0){if(h[0]=="f"){if(h.length>3){h.splice(3,0,"categories") 169}else{h.push("categories") 170}}else{h.push("categories") 171}}var j=h.join("/"); 172d=[k,c].join("//")+"/"+j 173}}else{d=url_parts[0] 174}}return d 175},_isLegacyCategoryUrl:function(a){if(typeof(a)!=="string"||a.length<1){return false 176}return a.match(/\/PortalService\//)!==null&&a.match(/\/getCategoryList/)!==null&&a.match(/[?&]PID\=/)!==null 177},_indexOf:function(a,c){if(typeof a.indexOf==="function"){return a.indexOf(c) 178}for(var b=0; 179b<a.length; 180b++){if(a[b]===c){return b 181}}return -1 182},_filterSupportedMedia:function(g){var f,j=[],h,c=g.length,k=this._indexOf(g,"flash"),d=this._indexOf(g,"html5"),b=this._indexOf(g,"universal"),e,a=false; 183if(k==-1){g.push("flash"); 184c++ 185}if(d==-1){g.push("html5"); 186c++ 187}if(b>=0){if((d>=0)&&(b>d)){g[b]="html5"; 188g[d]="universal" 189}}for(h=0; 190h<c; 191h++){f=g[h].toLowerCase(); 192switch(f){case"flash":if(this.hasFlash()){j.push("flash:3gpp"); 193j.push("flash:3gpp2"); 194j.push("flash:aac"); 195j.push("flash:actionscript"); 196j.push("flash:f4m"); 197j.push("flash:flv"); 198j.push("flash:mp3"); 199j.push("flash:mpeg"); 200j.push("flash:mpeg4"); 201j.push("flash:qt") 202}break; 203case"universal":this.addHtml5Media(j); 204if(this.hasFlash()&&this.hasCanvas()){j.push("universal:m3u"); 205j.push("universal:3gpp"); 206j.push("universal:3gpp2"); 207j.push("universal:f4m"); 208j.push("universal:flv"); 209j.push("universal:mpeg"); 210j.push("universal:qt"); 211j.push("universal:mpeg4"); 212j.push("universal:mp3"); 213j.push("universal:aac") 214}break; 215case"html5":this.addHtml5Media(j); 216break; 217case"silverlight":if(this.hasFlash()){j.push("silverlight:asx"); 218j.push("silverlight:ism"); 219j.push("silverlight:mpeg4"); 220j.push("silverlight:wm") 221}break; 222case"windowsmedia":break; 223case"move":break; 224default:break 225}}return j 226},addHtml5Media:function(b){var c=this.hasVideo(); 227var a; 228if(c.hasVideo){codecs=c.codecs 229}else{codecs={} 230}if(codecs.m3u){b.push("html5:m3u") 231}if(codecs.ogg){b.push("html5:ogg") 232}if(codecs.h264){b.push("html5:mpeg4") 233}if(codecs.webm){b.push("html5:webm") 234}if(codecs.mp3){b.push("html5:mp3") 235}if(codecs.aac){b.push("html5:aac") 236}if(codecs.mpegdash){b.push("html5:mpeg-dash") 237}b.push("html5:javascript") 238},canPlayTypeAugmentation:function(){var a=0,c=$pdk.canPlayTypeAugmentation,b=this.getConfigSet("canplaytypeaugmentation"); 239c=typeof(c)==="boolean"?c:true; 240if(c&&!$pdk.isEmpty(b)){b=b.toArray(); 241for(; 242a<b.length; 243a++){if(b[a].toLowerCase()==="false"){c=false; 244break 245}}}return c 246},sortM3uArray:function(b){var a=[]; 247for(i=b.length-1; 248i>=0; 249i--){if(b[i]==="m3u"){a.push(b[i]) 250}else{a.unshift(b[i]) 251}}return a 252},getPreferredFormats:function(){if(this._preferred_formats===null){try{this._preferred_formats=this._filterPreferredFormats(this.getConfigSet("preferredformats").toArray()) 253}catch(a){this._preferred_formats=[] 254}if(this._preferred_formats.length<1){this._preferred_formats=this._filterPreferredFormats(this._default_formats) 255}if($pdk.isAndroid&&this.canPlayTypeAugmentation()){tpDebug("resorting preferred formats for Android","bootloader","$pdk.env.Detect",tpConsts.DEBUG); 256this._preferred_formats=this.sortM3uArray(this._preferred_formats) 257}}return this._preferred_formats 258},getPreferredFormatsUnfiltered:function(){if(this._preferred_formats_unfiltered===null){try{this._preferred_formats_unfiltered=this.getConfigSet("preferredformats").toArray() 259}catch(a){this._preferred_formats_unfiltered=[] 260}if(this._preferred_formats_unfiltered.length<1){this._preferred_formats_unfiltered=this._default_formats 261}if($pdk.isAndroid&&this.canPlayTypeAugmentation()){this._preferred_formats_unfiltered=this.sortM3uArray(this._preferred_formats_unfiltered) 262}}return this._preferred_formats_unfiltered 263},_filterPreferredFormats:function(d){var e=d.length,f,a=[],h,b,g=false,c; 264h=this.hasVideo(); 265b=h.codecs; 266for(c=0; 267c<e; 268c++){f=d[c].toLowerCase(); 269g=false; 270switch(f){case"mpeg":case"mpeg4":if(b.h264||this.hasFlash()){g=true 271}break; 272case"mp3":if(b.mp3||this.hasFlash()){g=true 273}break; 274case"mpeg-dash":if(b.mpegdash){g=true 275}break; 276case"m3u":if(b.m3u||this.hasFlash()){g=true 277}break; 278case"ogg":if(b.ogg){g=true 279}break; 280case"webm":if(b.webm){g=true 281}break; 282case"ism":case"asx":case"aac":case"wm":case"move":case"flv":case"f4m":if(this.hasFlash()){g=true 283}break; 284default:break 285}if(g){a.push(d[c]) 286}}return a 287}
287,getPlayerFormats:function(a){if(this._playback_formats===null){this._playback_formats=[]; 288if(this.getComponentRuntime()!==null){this._playback_formats=this._filterPlayerFormats(this.getComponentRuntime()) 289}if(this._playback_formats.length<1){if(a===undefined){a="flash" 290}this._playback_formats=this._filterPlayerFormats(a) 291}}return this._playback_formats 292},_filterPlayerFormats:function(g){var e=this.getPreferredFormats(),d=e.length,a=[],f,h,b,c; 293h=this.hasVideo(); 294b=h.codecs; 295g=g.toLowerCase(); 296for(c=0; 297c<d; 298c++){f=e[c].toLowerCase(); 299switch(f){case"mpeg":case"mpeg4":if(((g==="html5"||g==="universal")&&b.h264)||((g==="universal"||g==="flash"||g==="silverlight")&&this.hasFlash())){a.push(e[c]) 300}break; 301case"mp3":if(b.mp3||this.hasFlash()){a.push(e[c]) 302}break; 303case"mpeg-dash":if((g==="html5"||g==="universal")&&b.mpegdash){a.push(e[c]) 304}break; 305case"m3u":if(((g==="html5"||g==="universal")&&b.m3u)||((g==="universal"&&this.hasFlash()))){a.push(e[c]) 306}break; 307case"ogg":if((g==="html5"||g==="universal")&&b.ogg){a.push(e[c]) 308}break; 309case"webm":if((g==="html5"||g==="universal")&&b.webm){a.push(e[c]) 310}break; 311case"ism":if((g==="flash"||g==="silverlight")&&this.hasFlash()){a.push(e[c]) 312}break; 313case"asx":case"wm":if((g==="flash"||g==="silverlight"||g==="windowsmedia")&&this.hasFlash()){a.push(e[c]) 314}break; 315case"3gpp":case"3gpp3":case"aac":case"flv":case"f4m":if((g==="flash"||g==="universal")&&this.hasFlash()){a.push(e[c]) 316}break; 317case"move":if((g==="flash"||g==="move")&&this.hasFlash()){a.push(e[c]) 318}break; 319default:break 320}}return a 321},getModelUrls:function(){return this._model_urls 322},getFlashVersion:function(){if(this._flash_version===null){this._flash_version=this._detectFlash() 323}return this._flash_version 324},hasVideo:function(){return this._has_video 325},hasCanvas:function(){var a=document.createElement("canvas"); 326return !!(a.getContext&&a.getContext("2d")) 327},hasFlash:function(){return $pdk.tupleComp([9,0,115],this.getFlashVersion(),function(d,c){var e=c>d?1:0; 328return c<d?-1:e 329})>=0 330},hasSilverlight:function(){if(this._has_silverlight===null){this._has_silverlight=this._detectSilverlight() 331}return this._has_silverlight 332},hasJquery:function(){return this._has_jquery 333},getAutoInitialize:function(){var a=true; 334try{a=this.getConfigSet("initialize").toArray()[0].toLowerCase()!=="false" 335}catch(b){a=true 336}return a 337},GWTReady:function(){return this._gwt_ready 338},setGWTReady:function(a){this._gwt_ready=a 339},addToConfigSet:function(a,b){var c=this._config_sets[a]; 340if($pdk.isEmpty(c)){c=new $pdk.util.ArraySet(); 341this._config_sets[a]=c 342}c.add(b) 343},getConfigSet:function(a){return this._config_sets[a] 344},baseDir:function(){var a=$pdk.scriptRoot; 345try{a=this.getConfigSet("baseurl").toArray()[0] 346}catch(b){a=$pdk.scriptRoot 347}return a 348},cachePath:function(){return this.baseDir()+"/js" 349},getMediaFactory:function(){if(this._media_factory===null){this._media_factory=new $pdk.env.media.Factory(this.getSupportedRuntimes(),this._filterSupportedMedia(["flash","html5","silverlight","windowsmedia","move"]),new $pdk.env.media.FactoryLoggerTpTraceMainImpl()) 350}return this._media_factory 351},getSupportedRuntimes:function(){if(this._supported_runtimes===null){try{this._supported_runtimes=this._filterSupportedMedia(this.getConfigSet("preferredruntimes").toArray()) 352}catch(a){this._supported_runtimes=[] 353}if(this._supported_runtimes.length<1){this._supported_runtimes=this._filterSupportedMedia(this._default_runtimes) 354}}return this._supported_runtimes 355},_detectPhase1:function(){var f=false; 356var e=false; 357var b=document.getElementsByTagName("script"); 358var d; 359var a=b.length; 360for(d=0; 361d<a; 362d++){var c=b[d].innerHTML; 363if(!f&&(c.indexOf("tpRegisterID(")>=0)){f=true 364}if(!e&&(c.indexOf("Player(")>=0||c.indexOf("ReleaseList(")>
364=0||c.indexOf("ReleaseModel(")>=0)){e=true 365}if(f&&e){return true 366}}return false 367},isPhase1:function(){if(this._is_phase1===undefined){this._is_phase1=this._detectPhase1() 368}return this._is_phase1 369}}); 370$pdk.env.Detect._singleton=null; 371$pdk.env.Detect.getInstance=function(){if($pdk.env.Detect._singleton===null){$pdk.env.Detect._singleton=new $pdk.env.Detect._class() 372}return $pdk.env.Detect._singleton 373}; 374$pdk.ns("$pdk.env.HttpHead"); 375$pdk.env.HttpHead.Processor=$pdk.extend(function(){},{constructor:function(a){this._env=a 376},process:function(f){var e,a,b,g=this._collectTpMetaTags(f),d=g.length,c; 377for(c=0; 378c<d; 379c++){e=g[c]; 380if(!$pdk.isEmpty(e.value)){a=e.value.replace(/\s/g,"").toLowerCase().split(","); 381b=e.name.replace(/^tp:/,"").toLowerCase(); 382while(a.length>0){this._env.addToConfigSet(b,a.shift()) 383}}}},_collectTpMetaTags:function(g){var f,a=[],b,e,h=g.getElementsByTagName("meta"),d=h.length,c; 384for(c=0; 385c<d; 386c++){f=h[c]; 387b=f.getAttribute("name"); 388if(typeof(b)==="string"&&b.match(/^tp:/)){e=f.getAttribute("content"); 389a.push({name:b,value:e}) 390}}return a 391}}); 392$pdk.ns("$pdk.env.media"); 393$pdk.env.media.MediaBase=$pdk.extend(function(){},{_eligibleRuntimes:[],constructor:function(){this._satisfiedRuntimes={} 394},satisfyRuntime:function(a){this._satisfiedRuntimes[a]=true 395},isSatisfied:function(){var b,a=this._eligibleRuntimes.length,c=false; 396for(b=0; 397b<a&&!c; 398b++){c=this._satisfiedRuntimes[this._eligibleRuntimes[b]]; 399c=typeof(c)==="boolean"?c:false 400}return c 401},getRuntimes:function(){var b=[],c,a=this._eligibleRuntimes.length; 402for(c=0; 403c<a; 404c++){name=this._eligibleRuntimes[c]; 405found=this._satisfiedRuntimes[name]; 406if(typeof(found)==="boolean"?found:false){b.push(name) 407}}return b 408},getName:function(){return this._name 409}}); 410$pdk.env.media.AacMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"aac",_eligibleRuntimes:["flash:aac","universal:aac","html5:aac"],constructor:function(){$pdk.env.media.AacMedia.superclass.constructor.apply(this) 411}}); 412$pdk.env.media.ActionScriptMedia=$pdk.extend($pdk.env.media.MediaBase,{_eligibleRuntimes:["flash:actionscript"],_name:"actionscript",constructor:function(){$pdk.env.media.ActionScriptMedia.superclass.constructor.apply(this) 413}}); 414$pdk.env.media.AsxMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"asx",_eligibleRuntimes:["silverlight:asx"],constructor:function(){$pdk.env.media.AsxMedia.superclass.constructor.apply(this) 415}}); 416$pdk.env.media.AviMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"avi",_eligibleRuntimes:["flash:avi","universal:avi"],constructor:function(){$pdk.env.media.AviMedia.superclass.constructor.apply(this) 417}}); 418$pdk.env.media.F4mMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"f4m",_eligibleRuntimes:["flash:f4m","universal:f4m"],constructor:function(){$pdk.env.media.F4mMedia.superclass.constructor.apply(this) 419}}); 420$pdk.env.media.Factory=$pdk.extend(function(){},{constructor:function(b,a,c){this._runtimes=b; 421this._runtimes_any_supported=a; 422this._logger=c 423},getBestRuntime:function(a,c,d,f){var b=new $pdk.env.media.strategy.Context(d,this._logger,this,c,this._runtimes,this._runtimes_any_supported),e; 424if(a==="Player"){e=new $pdk.env.media.strategy.CodecComponentStrategy() 425}else{e=new $pdk.env.media.strategy.GeneralComponentStrategy() 426}return e.getBestRuntime(b) 427},createMedia:function(d,c){c=typeof(c)==="boolean"?c:false; 428var e,b=c?this._runtimes_any_supported:this._runtimes,a=b.length,f=null; 429switch(d){case"actionscript":f=new $pdk.env.media.ActionScriptMedia(); 430break; 431case"flv":f=new $pdk.env.media.FlvMedia(); 432break; 433case"javascript":f=new $pdk.env.media.JavaScriptMedia(); 434break; 435case"mpeg4":f=new $pdk.env.media.Mpeg4Media(); 436break; 437case"mpeg-dash":f=new $pdk.env.media.MpegDashMedia(); 438break; 439case"mpeg":f=new $pdk.env.media.MpegMedia(); 440break; 441case"ogg":f=new $pdk.env.media.OggMedia(); 442break; 443case"webm":f=new $pdk.env.media.WebMMedia(); 444break; 445case"m3u":f=new $pdk.env.media.M3uMedia(); 446break; 447case"3gpp":f=new $pdk.env.media.ThreeGppMedia(); 448break; 449case"3gpp2":f=new $pdk.env.media.ThreeGpp2Media(); 450break; 451case"aac":f=new $pdk.env.media.AacMedia(); 452break; 453case"asx":f=new $pdk.env.media.AsxMedia(); 454break; 455case"avi":f=new $pdk.env.media.AviMedia(); 456break;
457case"f4m":f=new $pdk.env.media.F4mMedia(); 458break; 459case"m3u":f=new $pdk.env.media.M3uMedia(); 460break; 461case"move":f=new $pdk.env.media.MoveMedia(); 462break; 463case"mp3":f=new $pdk.env.media.Mp3Media(); 464break; 465case"qt":f=new $pdk.env.media.QtMedia(); 466break; 467case"ism":f=new $pdk.env.media.IsmMedia(); 468break; 469case"wm":f=new $pdk.env.media.WmMedia(); 470break; 471default:f=new $pdk.env.media.NoOpMedia(); 472break 473}for(e=0; 474e<a; 475e++){f.satisfyRuntime(b[e]) 476}return f 477}}); 478$pdk.env.media.FactoryLoggerConsoleImpl=$pdk.extend(function(){},{constructor:function(){},log:function(a,b){console.log(a) 479}}); 480$pdk.env.media.FactoryLoggerTpTraceMainImpl=$pdk.extend(function(){},{constructor:function(){},log:function(a,b){tpDebug(a,"bootloader","$pdk.env.media.Factory",b) 481}}); 482$pdk.env.media.FlvMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"flv",_eligibleRuntimes:["flash:flv","universal:flv"],constructor:function(){$pdk.env.media.FlvMedia.superclass.constructor.apply(this) 483}}); 484$pdk.env.media.IsmMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"ism",_eligibleRuntimes:["silverlight:ism"],constructor:function(){$pdk.env.media.IsmMedia.superclass.constructor.apply(this) 485}}); 486$pdk.env.media.JavaScriptMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"javascript",_eligibleRuntimes:["html5:javascript"],constructor:function(){$pdk.env.media.JavaScriptMedia.superclass.constructor.apply(this) 487}}); 488$pdk.env.media.M3uMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"m3u",_eligibleRuntimes:["universal:m3u","html5:m3u"],constructor:function(){$pdk.env.media.M3uMedia.superclass.constructor.apply(this) 489}}); 490$pdk.env.media.MoveMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"move",_eligibleRuntimes:["flash:move"],constructor:function(){$pdk.env.media.MoveMedia.superclass.constructor.apply(this) 491}}); 492$pdk.env.media.Mp3Media=$pdk.extend($pdk.env.media.MediaBase,{_name:"mp3",_eligibleRuntimes:["flash:mp3","universal:mp3","html5:mp3"],constructor:function(){$pdk.env.media.Mp3Media.superclass.constructor.apply(this) 493}}); 494$pdk.env.media.Mpeg4Media=$pdk.extend($pdk.env.media.MediaBase,{_name:"mpeg4",_eligibleRuntimes:["flash:mpeg4","universal:mpeg4","html5:mpeg4","silverlight:mpeg4"],constructor:function(){$pdk.env.media.Mpeg4Media.superclass.constructor.apply(this) 495}}); 496$pdk.env.media.MpegDashMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"mpeg-dash",_eligibleRuntimes:["html5:mpeg-dash"],constructor:function(){$pdk.env.media.MpegDashMedia.superclass.constructor.apply(this) 497}}); 498$pdk.env.media.MpegMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"mpeg",_eligibleRuntimes:["flash:mpeg","universal:mpeg"],constructor:function(){$pdk.env.media.Mpeg4Media.superclass.constructor.apply(this) 499}}); 500$pdk.env.media.NoOpMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"noop"}); 501$pdk.env.media.OggMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"ogg",_eligibleRuntimes:["html5:ogg"],constructor:function(){$pdk.env.media.OggMedia.superclass.constructor.apply(this) 502}}); 503$pdk.env.media.QtMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"qt",_eligibleRuntimes:["flash:qt","universal:qt"],constructor:function(){$pdk.env.media.QtMedia.superclass.constructor.apply(this) 504}}); 505$pdk.env.media.ThreeGpp2Media=$pdk.extend($pdk.env.media.MediaBase,{_name:"3gpp2",_eligibleRuntimes:["flash:3gpp2","universal:3gpp2"],constructor:function(){$pdk.env.media.ThreeGpp2Media.superclass.constructor.apply(this) 506}}); 507$pdk.env.media.ThreeGppMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"3gpp",_eligibleRuntimes:["flash:3gpp","universal:3gpp"],constructor:function(){$pdk.env.media.ThreeGppMedia.superclass.constructor.apply(this) 508}}); 509$pdk.env.media.WebMMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"webm",_eligibleRuntimes:["html5:webm"],constructor:function(){$pdk.env.media.WebMMedia.superclass.constructor.apply(this) 510}}); 511$pdk.env.media.WmMedia=$pdk.extend($pdk.env.media.MediaBase,{_name:"wm",_eligibleRuntimes:["silverlight:wm"],constructor:function(){$pdk.env.media.WmMedia.superclass.constructor.apply(this) 512}}); 513$pdk.ns("$pdk.env.media.strategy"); 514$pdk.env.media.strategy.AbstractStrategy=$pdk.extend(function(){},{_getPossibleFormats:function(f,e){var d,k=f.length,g,c,b=[],j,a=e.length,h; 515for(g=0; 516g<a; 517g++){j=e[g].toLowerCase(); 518for(c=0; 519c<k; 520c++){d=f[c].toLowerCase(); 521if(j===d){b.push(d) 522}}}return b 523},_searchByFormatThenRuntime:function(o,p,k,a){var r=false,g,b,d,l,q=k.length,f,c=p.length,e,j,m,h; 524for(g=0; 525g<q&&!r; 526g++){l=k[g]; 527b=o.createMedia(l,a); 528j=b.getRuntimes(); 529m=j.length; 530for(h=0; 531h<c&&!r; 532h++){f=p[h]; 533for(d=0; 534d<m&&!r; 535d++){e=j[d]; 536r=e===f 537}}}return{runtime:r?f.replace(/(.*):.*/,"$1"):"none",medium:r?b.getName():"none"} 538},_searchByRuntimeThenFormat:function(o,p,k,a){var r=false,g,b,d,l,q=k.length,f,c=p.length,e,j,m,h; 539for(h=0; 540h<c&&!r; 541h++){f=p[h]; 542for(g=0; 543g<q&&!r; 544g++){l=k[g]; 545b=o.createMedia(l,a); 546j=b.getRuntimes(); 547m=j.length; 548for(d=0; 549d<m&&!r; 550d++){e=j[d]; 551r=e===f 552}}}return{runtime:r?f.replace(/(.*):.*/,"$1"):"none",medium:r?b.getName():"none"} 553}}); 554$pdk.env.media.strategy.CodecComponentStrategy=$pdk.extend($pdk.env.media.strategy.AbstractStrategy,{getBestRuntime:function(c){var f,g=c.getComponentSupportedFormats(),n=c.getL
554ogger(),l=c.getMediaFactory(),d=[],h,e=c.getPreferredFormats(),k=c.getRuntimes(); 555runtimes_any_supported=c.getRuntimesAnySupported(); 556var a=[]; 557var j=$pdk.env.Detect.getInstance().getConfigSet("preferredruntimes"); 558var m=j?j.toArray()[0]:"flash"; 559if(m=="flash"&&!$pdk.env.Detect.getInstance().hasFlash()){m="html5" 560}var b={medium:e[0],runtime:m}; 561n.log("searching for best runtime for preferred formats ("+e.join(", ")+") from list of supported formats ("+g.join(", ")+")",tpConsts.INFO); 562d=this._getPossibleFormats(g,e); 563h=d.length; 564n.log("possible formats narrowed to: "+(h>0?d.join(", "):"[none]"),tpConsts.INFO); 565f=this._searchByFormatThenRuntime(l,k,d,false); 566if(f.medium==="none"){n.log("falling back to any supported runtime",tpConsts.INFO); 567f=this._searchByFormatThenRuntime(l,runtimes_any_supported,d,true) 568}if(f.runtime==="none"){n.log("no viable runtime found, falling back to HTML",tpConsts.INFO); 569f=b 570}else{n.log("picked best format/runtime : "+f.medium+"/"+f.runtime,tpConsts.INFO) 571}return f 572}}); 573$pdk.env.media.strategy.Context=$pdk.extend(function(){},{constructor:function(f,c,d,e,b,a){this._component_supported_formats=f; 574this._logger=c; 575this._media_factory=d; 576this._preferred_formats=e; 577this._runtimes=b; 578this._runtimes_any_supported=a 579},getComponentSupportedFormats:function(){return this._component_supported_formats 580},getLogger:function(){return this._logger 581},getMediaFactory:function(){return this._media_factory 582},getPreferredFormats:function(){return this._preferred_formats 583},getRuntimes:function(){return this._runtimes 584},getRuntimesAnySupported:function(){return this._runtimes_any_supported 585}}); 586$pdk.env.media.strategy.GeneralComponentStrategy=$pdk.extend($pdk.env.media.strategy.AbstractStrategy,{getBestRuntime:function(a){var d,e=a.getComponentSupportedFormats(),j=a.getLogger(),h=a.getMediaFactory(),b=[],f,c=a.getPreferredFormats(),g=a.getRuntimes(); 587runtimes_any_supported=a.getRuntimesAnySupported(); 588b=this._getPossibleFormats(e,c); 589f=b.length; 590d=this._searchByFormatThenRuntime(h,g,b,false); 591if(d.medium==="none"){d=this._searchByRuntimeThenFormat(h,g,e,false) 592}if(d.medium==="none"){d=this._searchByFormatThenRuntime(h,runtimes_any_supported,b,true) 593}
593if(d.medium==="none"){d=this._searchByFormatThenRuntime(h,runtimes_any_supported,e,true) 594}if(d.runtime==="none"){j.log("no viable runtime found",tpConsts.INFO) 595}else{j.log("picked best format/runtime : "+d.medium+"/"+d.runtime,tpConsts.INFO) 596}if(d.runtime=="universal"){d.runtime="html5" 597}return d 598}}); 599$pdk.ns("$pdk.util"); 600$pdk.util.ArraySet=$pdk.extend(function(){},{constructor:function(){this._members=[] 601},add:function(a){var b=!this.contains(a); 602if(b){this._members.push(a) 603}return b 604},remove:function(b){var c=this._find(b),a=false; 605if(c>-1){a=delete this._members[c] 606}return a 607},contains:function(a){return this._find(a)>-1 608},toArray:function(){return this._members 609},_find:function(c){var b=0,a=this._members.length,d=-1; 610for(; 611b<a&&d<0; 612b++){d=c===this._members[b]?b:-1 613}return d 614}}); 615$pdk.util.Strings=$pdk.apply(function(){},{encodeXmlAttribute:function(a){return typeof(a)!=="string"?null:a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"&apos").replace(/"/g,""") 616}}); 617$pdk.Entrypoint=$pdk.apply({},{_class:$pdk.extend($pdk.entrypoint.Entrypoint,{constructor:function(){$pdk.Entrypoint._class.superclass.constructor.call(this); 618this._loadingStyleInjected=false 619},configure:function(a,b){$pdk.Entrypoint._class.superclass.configure.call(this,a,b); 620this._insertDefaultStylesheet() 621},_insertDefaultStylesheet:function(){var a=document.createElement("link"); 622a.type="text/css"; 623a.rel="stylesheet"; 624a.href=this._env.baseDir()+"/style/default.css"; 625a.media="screen"; 626document.getElementsByTagName("head")[0].insertBefore(a,document.getElementsByTagName("head")[0].firstChild) 627},injectLoadingStyle:function(c){var b,a; 628if(!this._loadingStyleInjected){for(class_name in $pdk.shell.Factory.CLASS_TABLE){b=[".",class_name,class_name==="tpPlayer"?" ":" > * ","{ display: none !important; }"].join(""); 629if(c){a=document.createElement("style"); 630a.setAttribute("type","text/css"); 631a.setAttribute("id",class_name+"Loading"); 632if(a.styleSheet){a.styleSheet.cssText=b 633}else{a.innerHTML=b 634}document.getElementsByTagName("head")[0].appendChild(a) 635}else{document.write(['<style id="',class_name,'Loading" ',">",b,"</style>"].join("")) 636}}this._loadingStyleInjected=true 637}},_injectPhase1JS:function(){var e=this; 638if(this._loaded){var c=this._env.baseDir(); 639var b=document.getElementsByTagName("head")[0]; 640if(typeof(window.tpPhase1Debug)!=="string"){com.theplatform.pdk.ExternalScriptLoader.loadScript("tpPDK.js",function(){}) 641}else{var d=document.createElement("script"); 642d.type="text/javascript"; 643d.src=tpPhase1Debug.indexOf("http://")===0?tpPhase1Debug:this._env.baseDir()+tpPhase1Debug; 644b.appendChild(d) 645}}else{var a=this._postOnLoad; 646this._postOnLoad=function(){a(); 647e._injectPhase1JS() 648} 649}},_connectShellsToGwt:function(b){var d=this; 650if(this._loaded){this._registry.satisfyShellDeps(); 651this._registry.connectShellsToGwt(); 652this._env.setGWTReady(true); 653this._complete=true; 654tpDoInitGwtCommManager(); 655var e=this._registry.getShells().toArray(); 656for(i=0; 657i<e.length; 658i++){if(e[i].getRuntime()==="flash"){tpRegisterID(e[i].getSwfObjectId()) 659}}var c=tpGetRegisteredIDs(); 660tpController.callFunction("htmlPageLoaded",c?[c]:[]) 661}else{var a=this._postOnLoad; 662this._postOnLoad=function(){a(); 663d._connectShellsToGwt(b) 664} 665}},initialize:function(){this.injectLoadingStyle(true); 666$pdk.Entrypoint._class.superclass.initialize.call(this); 667var c=this; 668$pdk.shell.Factory.generate($pdk.shell.Factory.getNamesFromDomElements($pdk.dom.Helper.findByClass(/^tp/)),this._registry,this._env); 669var a=$pdk.env.Detect.getInstance().getConfigSet("preferredruntimes"); 670var b=(!$pdk.env.Detect.getInstance().hasFlash()||a&&a.contains("html5"))?true:false; 671if(!b){var d=c._registry.getShells().toArray(); 672for(i=0; 673i<d.length; 674i++){if(d[i].getRuntime()==="html5"||d[i].getRuntime()==="HTML5"){b=true; 675break 676}}}if(b){window.tpPhase1PDKLoaded=function(){c._connectShellsToGwt(b) 677}; 678this._injectPhase1JS() 679}else{this._connectShellsToGwt(b) 680}}}),_singleton:null,getInstance:function(){if($pdk.Entrypoint._singleton===null){$pdk.Entrypoint._singleton=new $pdk.Entrypoint._class() 681}return $pdk.Entrypoint._singleton 682},onLoad:function(){$pdk.Entrypoint.getInstance().onLoad() 683}}); 684$pdk.PdkVersion=$pdk.extend(function(){},{constructor:function(a,d,c,e,b){this.major=a; 685this.minor=d; 686this.revision=c; 687this.build=e; 688this.date=b 689},toString:function(){return this.major+"."+this.minor+"."+this.revision+"."+this.build+" ("+this.date+")" 690},equals:function(a){return this.major===a.major&&this.minor===a.minor&&this.revision===a.revision&&this.build===a.build 691}}); 692$pdk.ns("$pdk.dom"); 693$pdk.dom.Helper=$pdk.apply({},{findByClass:function(f,e){var d,c,h,a,g=[],b; 694if($pdk.isEmpty(f)){f=null 695}if($pdk.isEmpty(e)){e=document 696}h=e.getElementsByTagName("*"); 697a=h.length; 698for(d=0; 699d<a; 700d++){c=h[d]; 701if(c.nodeType===1){if(f===null){g.push(c) 702}else{b=c.className; 703if(typeof(b)==="string"&&b.match(f)!==null){g.push(c) 704}}}}return g 705}}); 706$pdk.ns("$pdk.queue"); 707$pdk.ns("$pdk.queue"); 708$pdk.queue.Controller=$pdk.extend(function(){},{constructor:function(a){var b=this; 709this._env=a; 710this._events={}; 711this._functions={}; 712this._objects={}; 713this._isLoading=true; 714this._canMessage=false; 715this._messageQueue=[]; 716this._priorityQueue=[]; 717this._sendQueue=[]; 718this._isSending=false; 719this._isShutDown=false; 720this._runtimes=null; 721this._blankString="__blank_string__"; 722this._defaultScope={globalDataType:this._getDataTypeName("ScopeInfo"),controlId:"javascript",isGlobal:true,isAny:false,isEmpty:false,scopeIds:["javascript","default"]} 723},ready:function(){this.isHTML5Loading=false; 724this._checkMessageQueue(); 725this._checkPriorityQueue() 726},sendMessage:function(a,d,b){if(d.name==="controllerComplete"){this.onControllerComplete() 727}if(d&&d.payload&&d.payload.name==="addPlayerCard"&&typeof(a)==="str
727ing"&&a.toLowerCase().match("swf")!==null){tpDebug("------filtering addPlayerCard from category list","javascript","Controller",tpConsts.DEBUG); 728return 729}var c={message:d,destination:a}; 730if(this._isLoading&&!b){this._messageQueue.push(c) 731}else{if(!this._canMessage){this._priorityQueue.push(c) 732}else{this._doSendMessage(c) 733}}},_isSafariWin:(navigator.userAgent.indexOf("Windows")>-1&&navigator.userAgent.indexOf("AppleWebKit")>-1),onControllerComplete:function(){},_doSendMessage:function(a){var b=tpThisMovie(a.destination); 734if(a.message.name==="callFunction"&&a.message.payload.name==="showFullScreen"&&a.message.payload.args[0]===true&&b.tagName&&(b.tagName.toLowerCase()==="object"||b.tagName.toLowerCase()==="embed")){tpDebug("Switching to full screen from Javascript is not supported by the Flash run-time. Flash only allows you to go to full screen mode via a click in the player itself.","tpController","Controller","error"); 735return 736}if(this._isShutDown){return 737}if($pdk.isWebKit&&$pdk.isWindows){setTimeout(function(){b.executeMessage(a.message) 738},1) 739}else{b.executeMessage(a.message) 740}},_checkMessageQueue:function(){var a=this._messageQueue.length; 741while(this._messageQueue.length>0){this._doSendMessage(this._messageQueue.shift()) 742}},_checkPriorityQueue:function(){var a; 743while(this._priorityQueue.length>0){a=this._priorityQueue.shift(); 744if(a.destination==="unknown"){a.destination=tpBridgeID 745}this._doSendMessage(a) 746}},_wrapMessage:function(a,d){var b={globalDataType:this._getDataTypeName("CommInfo"),id:"javascript"},c={globalDataType:this._getDataTypeName("MessageInfo"),name:a,payload:d,comm:b}; 747return c 748},_getDataTypeName:function(a){var b=null; 749switch(a){case"AdPattern":b="com.theplatform.pdk.data::AdPattern"; 750break; 751case"Banner":b="com.theplatform.pdk.data::Banner"; 752break; 753case"BaseClip":b="com.theplatform.pdk.data::BaseClip"; 754break; 755case"CallInfo":b="com.theplatform.pdk.communication::CallInfo"; 756break; 757case"CategoryInfo":b="com.theplatform.pdk.data::CategoryInfo"; 758break; 759case"Clip":b="com.theplatform.pdk.data::Clip"; 760break; 761case"CommInfo":b="com.theplatform.pdk.communication::CommInfo"; 762break; 763case"CustomData":b="com.theplatform.pdk.data::CustomData"; 764break; 765case"CustomValue":b="com.theplatform.pdk.data::CustomValue"; 766break; 767case"DispatchInfo":b="com.theplatform.pdk.communication::DispatchInfo"; 768break; 769case"FunctionInfo":b="com.theplatform.pdk.communication::FunctionInfo"; 770break; 771case"HandlerInfo":b="com.theplatform.pdk.communication::HandlerInfo"; 772break; 773case"HyperLink":b="com.theplatform.pdk.data::HyperLink"; 774break; 775case"MediaClick":b="com.theplatform.pdk.data::MediaClick"; 776break; 777case"MediaFile":b="com.theplatform.pdk.data::MediaFile"; 778break; 779case"MessageInfo":b="com.theplatform.pdk.communication::MessageInfo"; 780break; 781case"MetricInfo":b="com.theplatform.pdk.data::MetricInfo"; 782break; 783case"Overlay":b="com.theplatform.pdk.data::Overlay"; 784break; 785case"PdkEvent":b="com.theplatform.pdk.events::PdkEvent"; 786break; 787case"ProviderInfo":b="com.theplatform.pdk.data::ProviderInfo"; 788break; 789case"Range":b="com.theplatform.pdk.data::Range"; 790break; 791case"Rating":b="com.theplatform.pdk.data::Rating"; 792break; 793case"Release":b="com.theplatform.pdk.data::Release"; 794break; 795case"ReleaseInfo":b="com.theplatform.pdk.data::ReleaseInfo"; 796break; 797case"ScopeInfo":b="com.theplatform.pdk.communication::ScopeInfo"; 798break; 799case"Sort":b="com.theplatform.pdk.data::Sort"; 800break; 801case"Subtitles":b="com.theplatform.pdk.data::Subtitles"; 802break; 803case"TrackingUrl":b="com.theplatform.pdk.data::TrackingUrl"; 804break; 805case"BandwidthPreferences":b="com.theplatform.pdk.data::BandwidthPreferences"; 806break; 807case"Annotation":b="com.theplatform.pdk.data::Annotation"; 808break; 809default:b=null; 810break 811}return b 812},_createScope:function(a){if(a&&a.globalDataType){return a 813}var b=this._defaultScope; 814if(!$pdk.isEmpty(a)){if(a.length===0){a.push("javascript") 815}b={globalDataType:this._getDataTypeName("ScopeInfo"),controlId:"javascript",isGlobal:true,isAny:false,isEmpty:false,scopeIds:a} 816}return b 817},_checkForExternalPlayers:function(){var f=tpGetPlayerFormats(),e,d,a,c,b; 818if(f){f=f.split("|"); 819e=f.length; 820a=this._isWMLoaded(); 821for(b=0; 822b<e; 823b++){d=f[b].toLowerCase(); 824switch(d){case"mpeg":case"mpeg4":if(!a&&this._checkRuntimePreferred(["silverlight","flash"])=="silverlight"){tpLoadScript(this._env.baseDir()+"/js/tpExternal_SMF.js"); 825a=true 826}break; 827case"ism":if(!a){tpLoadScript(this._env.baseDir()+"/js/tpExternal_SMF.js"); 828a=true 829}break; 830case"asx":case"wm":if(!a){c=this._checkRuntimePreferred(["silverlight","windowsmedia"]); 831if(c==="windowsmedia"){tpLoadScript(this._env.baseDir()+"/js/tpExternal_WMP.js"); 832a=true 833}else{tpLoadScript(this._env.baseDir()+"/js/tpExternal_SMF.js"); 834a=true 835}}break; 836case"move":break; 837default:break 838}}}},_isWMLoaded:function(){var b,a; 839if(typeof(tpExternalJS)!=="undefined"){for(b=0; 840b<tpExternalJS.length; 841b++){a=tpExternalJS[b]; 842if(a.indexOf("/tpExternal_SMF.js")>=0||a.indexOf("/tpExternal_WMP.js")){return true 843}}}return false 844},_checkRuntimePreferred:function(d){if(this._runtimes===null){this._runtimes=this._env.getSupp
844ortedRuntimes() 845}var a=d.length,c=this._runtimes.length,f,g,e,b; 846for(e=0; 847e<c; 848e++){f=this._runtimes[e]; 849for(b=0; 850b<a; 851b++){g=d[b]; 852if(f.indexOf(g)===0){return g 853}}}return null 854},getProperty:function(a){return this.component[a.toLowerCase()] 855},registerFunction:function(g,h,j,c){var d=this._createScope(j); 856var b=c===undefined?false:c; 857var e,l,a,k,f=false; 858if($pdk.isEmpty(this._functions[g])){this._functions[g]={}; 859b=true 860}for(e=0; 861e<d.scopeIds.length&&!f; 862e++){l=d.scopeIds[e]; 863if(l==="*"){f=true 864}else{this._functions[g][l]=h; 865b=true 866}}if(!f&&b){a={globalDataType:this._getDataTypeName("FunctionInfo"),name:g,scope:d}; 867k=this._wrapMessage("registerFunction",a); 868this.sendMessage(tpBridgeID,k,true) 869}},unregisterFunction:function(g,h){var c=this._createScope(scopes),d,k,f,b,a,e=false,j; 870if(!$pdk.isEmpty(this._functions[g])){a=this._functions[g]; 871for(d=0; 872d<c.scopeIds.length; 873d++){k=c.scopeIds[d]; 874if(k=="*"){delete this._functions[g]; 875break 876}if(!$pdk.isEmpty(a[k])){delete a[k] 877}}e=false; 878if(!$pdk.isEmpty(a)){for(f in a){e=true; 879break 880}if(!e){delete this._functions[g] 881}}}if(!$pdk.isEmpty(e)){b={globalDataType:this._getDataTypeName("FunctionInfo"),name:g,scope:c}; 882j=this._wrapMessage("unregisterFunction",b); 883this.sendMessage(tpBridgeID,j,true) 884}},addEventListener:function(e,f,g){var d=this._createScope(g),h={globalDataType:this._getDataTypeName("HandlerInfo"),name:e,handler:f,scope:d},b=false,j,a,c,k; 885if($pdk.isEmpty(this._events[e])){this._events[e]=[]; 886b=true 887}j=this._events[e]; 888a=false; 889for(c=0; 890c<j.length; 891c++){if(j[c].handler==f){j[c]=h; 892a=true; 893break 894}}if(!a){j.push(h) 895}if(b){k=this._wrapMessage("addEventListener",h); 896this.sendMessage(tpBridgeID,k,true) 897}},removeEventListener:function(e,f,g){if($pdk.isEmpty(this._events[e])){return 898}var b=this._createScope(g),j={globalDataType:this._getDataTypeName("HandlerInfo"),name:e,handler:f,scope:b},a=this._events[e],c,d,k; 899for(c=0; 900c<a.length; 901c++){d=a[c]; 902if(d.handler==j.handler){a=a.splice(c,1); 903break 904}}if(a.length===0){delete this._events[e]; 905k=this._wrapMessage("removeEventListener",j); 906this.sendMessage(tpBridgeID,k,true) 907}},dispatchEvent:function(b,h,e,g){var d=this._createScope(e),a={globalDataType:this._getDataTypeName("PdkEvent"),type:b,data:h,originator:{controlId:g,isAny:false,isGlobal:true,isEmpty:false,globalDataType:"com.theplatform.pdk.communication::ScopeInfo",scopeIds:[]}},c={globalDataType:this._getDataTypeName("DispatchInfo"),evt:a,scope:d}; 908this._doDispatchEvent(c); 909var f=this._wrapMessage("dispatchEvent",c); 910this.sendMessage(tpBridgeID,f,true) 911},callFunction:function(g,b,e){var d=this._createScope(e),c={globalDataType:this._getDataTypeName("CallInfo"),name:g,args:b,
911scope:d},f; 912var a=this._doCallFunction(c); 913f=this._wrapMessage("callFunction",c); 914this.sendMessage(tpBridgeID,f,true); 915return a 916},_doDispatchEvent:function(dispatch){if($pdk.isEmpty(this._events[dispatch.evt.type])){return 917}var handlers=this._events[dispatch.evt.type].slice(0),i,j,s,k,fired,handler; 918if(dispatch.evt&&dispatch.evt.data){this._parseCustomData(dispatch.evt.data) 919}for(i=0; 920i<handlers.length; 921i++){handler=handlers[i]; 922if(dispatch.scope.isAny){if(typeof handler.handler==="string"){eval(handler.handler)(dispatch.evt) 923}else{if(typeof handler.handler==="function"){handler.handler(dispatch.evt) 924}}continue 925}for(j=0; 926j<handler.scope.scopeIds.length; 927j++){s=handler.scope.scopeIds[j]; 928fired=false; 929if(s=="*"){if(typeof handler.handler==="string"){eval(handler.handler)(dispatch.evt) 930}else{if(typeof handler.handler==="function"){handler.handler(dispatch.evt) 931}}break 932}for(k=0; 933k<dispatch.scope.scopeIds.length; 934k++){if(s==dispatch.scope.scopeIds[k]){fired=true; 935if(typeof handler.handler==="string"){eval(handler.handler)(dispatch.evt) 936}else{if(typeof handler.handler==="function"){handler.handler(dispatch.evt) 937}}break 938}}if(fired){break 939}}}},_parseCustomData:function(a){for(var e in a){var c=a[e]; 940if(c&&(c.globalDataType||$pdk.isArray(c))){if(c.globalDataType=="com.theplatform.pdk.data::CustomData"){for(var d in c){var b=d; 941if(!b){continue 942}if(b.indexOf("__PERIOD__")!=-1){b=b.replace("__PERIOD__",".") 943}if(b.indexOf("__DASH__")!=-1){b=b.replace("__DASH__","-") 944}if(b.indexOf("__COLON__")!=-1){b=b.replace("__COLON__",":") 945}if(b.indexOf("__SPACE__")!=-1){b=b.replace("__SPACE__"," ") 946}if(b.indexOf("__LEFT_BRACKET__")!=-1){b=b.replace("__LEFT_BRACKET__","[") 947}if(b.indexOf("__RIGHT_BRACKET__")!=-1){b=b.replace("__RIGHT_BRACKET__","]") 948}if(b!=d){c[b]=c[d]; 949delete c[d] 950}}}else{this._parseCustomData(c) 951}}}},_doCallFunction:function(k){if($pdk.isEmpty(this._functions[k.name])){return 952}var a={},c,l,d; 953var e; 954for(c=0; 955c<k.scope.scopeIds.length; 956c++){if(k.scope.scopeIds[c]==="*"){if(this._functions[k.name]){for(var h in this._functions[k.name]){if(this._functions[k.name].hasOwnProperty(h)&&!$pdk.isEmpty(this._functions[k.name][h])){a[h]=this._functions[k.name][h] 957}}}}else{l=k.scope.scopeIds[c]; 958if(!$pdk.isEmpty(this._functions[k.name][l])){a[l]=this._functions[k.name][l] 959}}}var g=[]; 960for(d in a){var b=a[d]; 961var j=true; 962for(c=0; 963c<g.length; 964c++){if(g[c]===b){j=false 965}}if(j){g.push(b); 966e=b.apply(this._objects[k.name],k.args) 967}}return e 968},receiveMessage:function(a,b){if(a=="javascript"){switch(b.name){case"commReady":tpBridgeID=tpCommID; 969this._canMessage=true; 970this._checkPriorityQueue(); 971break; 972case"bridgeReady":tpBridgeID=b.comm.id; 973this._canMessage=true; 974this._checkPriorityQueue(); 975break; 976case"dispatchEvent":this.receiveEvent(b.payload); 977break; 978case"callFunction":this._doCallFunction(b.payload); 979break; 980default:break 981}}else{this.sendMessage(a,b,true) 982}},receiveEvent:function(a){if(a.evt.type=="OnPlayerLoaded"){this._isLoading=false; 983this._checkMessageQueue(); 984this._checkForExternalPlayers() 985}this._doDispatchEvent(a) 986},modRelease:function(a){var b; 987if(!$pdk.isEmpty(a)){a.globalDataType=this._getDataTypeName("Release"); 988if(a.categories){a.categories=this.modCategories(a.categories) 989}if(a.thumbnails){for(b=0; 990b<a.thumbnails.length; 991b++){a.thumbnails[b].globalDataType=this._getDataTypeName("MediaFile"); 992if(a.thumbnails[b].customValues){a.thumbnails[b].customValues=this.modCustomValues(a.thumbnails[b].customValues) 993}}}if(a.customValues){a.customValues=this.modCustomValues(a.customValues) 994}if(a.metrics){for(b=0; 995b<a.metrics.length; 996b++){a.metrics[b].globalDataType=this._getDataTypeName("MetricInfo") 997}}if(a.provider){a.provider.globalDataType=this._getDataTypeName("ProviderInfo"); 998if(a.provider.customValues){a.provider.customValues=this.modCustomValues(a.provider.customValues) 999}}if(a.ratings){for(b=0; 1000b<a.ratings.length; 1001b++){a.ratings[b].globalDataType=this._getDataTypeName("Rating") 1002}}if(a.URL){a.url=a.URL 1003}a.mediaPID=a.mediaPid?a.mediaPid:""; 1004delete a.mediaPid 1005}return a 1006},modCustomValues:function(a){var b; 1007for(b=0; 1008b<a.length; 1009b++){a[b].globalDataType=this._getDataTypeName("CustomValue") 1010}return a 1011},modCategories:function(a){var b; 1012for(b=0; 1013b<a.length; 1014b++){a[b].globalDataType=this._getDataTypeName("CategoryInfo") 1015}return a 1016},modClip:function(a){var b; 1017if(!$pdk.isEmpty(a)){a.globalDataType=this._getDataTypeName("Clip"); 1018b=a.baseClip; 1019if($pdk.isEmpty(b)){b={} 1020}if(!$pdk.isEmpty(a.banners)){b.banners=a.banners 1021}if(!$pdk.isEmpty(a.overlays)){b.overlays=a.overlays 1022}a.baseClip=this.modBaseClip(b); 1023if(!$pdk.isEmpty(a.chapter)){a.chapter.globalDataType=this._getDataTypeName("Chapter") 1024}}return a 1025},modBaseClip:function(b){var a; 1026if($pdk.isEmpty(b)){b={} 1027}b.globalDataType=this._getDataTypeName("BaseClip"); 1028if(!$pdk.isEmpty(b.moreInfo)){b.moreInfo.globalDataType=this._getDataTypeName("HyperLink"); 1029if(!$pdk.isEmpty(b.moreInfo.clickTrackingUrls)){b.moreInfo.clickTrackingUrls=this.modTracking(b.moreInfo.clickTrackingUrls) 1030}}if(!$pdk.isEmpty(b.banners)){for(a=0; 1031a<b.banners.length; 1032a++){b.banners[a].globalDataType=this._getDataTypeName("Banner"); 1033if(!$pdk.isEmpty(b.banners[a].clickTrackingUrls)){b.banners[a].clickTrackingUrls=this.modTracking(b.banners[a].clickTrackingUrls) 1034}}}if(!$pdk.isEmpty(b.overlays)){for(a=0; 1035a<b.overlays.length; 1036a++){b.overlays[a].globalDataType=this._getDataTypeName("Overlay"); 1037if(!$pdk.isEmpty(b.overlays[a].clickTrackingUrls)){b.overlays[a].clickTrackingUrls=this.modTracking(b.overlays[a].clickTrackingUrls) 1038}}}
1038if(!$pdk.isEmpty(b.availableSubtitles)){for(a=0; 1039a<b.availableSubtitles; 1040a++){b.availableSubtitles[a].globalDataType=this._getDataTypeName("Subtitles") 1041}}if(!$pdk.isEmpty(b.categories)){b.categories=this.modCategories(b.categories) 1042}if(!$pdk.isEmpty(b.adPattern)){b.adPattern.globalDataType=this._getDataTypeName("AdPattern") 1043}if(!$pdk.isEmpty(b.trackingURLs)){b.trackingURLs=this.modTracking(b.trackingURLs) 1044}if(!$pdk.isEmpty(b.contentCustomData)){b.contentCustomData.globalDataType=this._getDataTypeName("CustomData") 1045}if(!$pdk.isEmpty(b.ownerCustomData)){b.ownerCustomData.globalDataType=this._getDataTypeName("CustomData") 1046}if(!$pdk.isEmpty(b.outletCustomData)){b.outletCustomData.globalDataType=this._getDataTypeName("CustomData") 1047}return b 1048},modTracking:function(a){var b; 1049for(b=0; 1050b<a.length; 1051b++){a.globalDataType=this._getDataTypeName("TrackingUrl") 1052}return a 1053},shutDown:function(){this.callFunction("shutDown",[],["*"]); 1054this._isShutDown=true 1055},_regFunc:function(a,e,g,d){var b,h,f=$pdk.isEmpty(e)?0:e.length,c; 1056for(b=0; 1057b<f; 1058b++){h=e[b]; 1059c=g[b]; 1060if(!$pdk.isEmpty(g[b])){switch(h){case"com.theplatform.pdk.data.Release":c=tpController.modRelease(c); 1061break; 1062case"com.theplatform.pdk.data.Clip":c=tpController.modClip(c); 1063break; 1064case"com.theplatform.pdk.data.Range":c.globalDataType=this._getDataTypeName("Range"); 1065break; 1066case"com.theplatform.pdk.data.Sort":c.globalDataType=this._getDataTypeName("Sort"); 1067break; 1068case"com.theplatform.pdk.data.Annotation":c.globalDataType=this._getDataTypeName("Annotation"); 1069break; 1070case"com.theplatform.pdk.data.BandwidthPreferences":c.globalDataType=this._getDataTypeName("BandwidthPreferences"); 1071break; 1072default:break 1073}}}this.callFunction(a,g,d) 1074}}); 1075$pdk.ns("$pdk.queue"); 1076$pdk.queue.IFrameListener=$pdk.extend(function(){},{constructor:function(){var d=this,a=window.location.hash.substring(1).split("&"),e; 1077this._callbacks={}; 1078this._origin=null; 1079this._iframeMessageHandler=function(f){d._acceptIFrameMessage(f) 1080}; 1081for(var b=0; 1082b<a.length; 1083b++){e=a[b].split("="); 1084if(e[0].toLowerCase()=="playerurl"&&e.length==2){$pdk.parentUrl=unescape(e[1]) 1085}}if(window.addEventListener){addEventListener("message",this._iframeMessageHandler,false) 1086}else{attachEvent("onmessage",this._iframeMessageHandler) 1087}var c=this; 1088$pdk.controller.addEventListener("OnPlayerLoaded",function(f){c._queuedPlayerLoaded=f 1089}) 1090},_acceptIFrameMessage:function(c){var b=this,d,e; 1091if(this._origin&&(c.origin!==this._origin)){return 1092}try{d=JSON.parse(c.data) 1093}catch(a){d=null 1094}if(d!==null&&typeof(d)==="object"){switch(d.type){case"initialization":if(this._origin===null){this._origin=c.origin 1095}else{break 1096}if(d.name.toLowerCase()==="playerurl"){$pdk.parentUrl=d.parameters[0] 1097}break; 1098case"method":if(this._origin){$pdk.controller[d.name].apply($pdk.controller,d.parameters) 1099}break; 1100case"addEventListener":if(this._origin&&d.parameters&&d.parameters.length==2){e=function(f){b._dispatchEventToParentIFrame(f,d.parameters[1]) 1101}; 1102this._callbacks[d.parameters[1]]=e; 1103if(d.name==="OnPlayerLoaded"&&this._queuedPlayerLoaded){e(this._queuedPlayerLoaded) 1104}$pdk.controller.addEventListener(d.name,e,d.parameters[0]) 1105}break; 1106case"removeEventListener":if(this._origin&&d.parameters&&d.parameters.length==2){e=this._callbacks[d.parameters[1]]; 1107if(typeof(e)==="function"){$pdk.controller.removeEventListener(d.name,e,d.parameters[0]) 1108}}break; 1109default:break 1110}}},_dispatchEventToParentIFrame:function(a,c){var b=JSON.stringify({type:"event",name:a.type,parameters:[a,c]}); 1111window.parent.postMessage(b,this._origin) 1112},destroy:function(){this._callbacks=[]; 1113if(window.removeEventListener){removeEventListener("message",this._iframeMessageHandler,false) 1114}else{detachEvent("onmessage",this._iframeMessageHandler) 1115}}}); 1116$pdk.ns("$pdk.queue.deferred"); 1117$pdk.queue.deferred.DeferredController=$pdk.extend(function(){},{constructor:function(){this.functions={}; 1118this.objects={} 1119},buildListenerChain:function(){if(!this.listenerChain){this.listenerChain={} 1120}},addEventListener:function(a,b){if(!b instanceof Function){throw {message:"Listener isn't a function"} 1121}this.buildListenerChain(); 1122if(!this.listenerChain[a]){this.listenerChain[a]=[b] 1123}else{this.listenerChain[a].push(b) 1124}}
1124,hasEventListener:function(a){if(this.listenerChain){return(typeof this.listenerChain[a]!="undefined") 1125}else{return false 1126}},removeEventListener:function(b,c){if(!this.hasEventListener(b)){return false 1127}for(var a=0; 1128a<this.listenerChain[b].length; 1129a++){if(this.listenerChain[b][a]==c){this.listenerChain[b].splice(a,1) 1130}}},dispatchEvent:function(c,a){this.buildListenerChain(); 1131if(!this.hasEventListener(c)){return false 1132}for(var b=0; 1133b<this.listenerChain[c].length; 1134b++){var d=this.listenerChain[c][b]; 1135if(d.call){d.call(this,{type:c,data:a}) 1136}}},callFunction:function(b,e,c,d){var a=this.functions[b]; 1137if(a){return this.functions[b].apply(this.objects[b],e) 1138}else{return null 1139}},registerFunction:function(b,a,c){this.functions[b]=c; 1140this.objects[b]=a 1141}}); 1142$pdk.queue.deferred.DeferredShell=$pdk.extend(function(){},{_STATE:{STARTING:"STARTING",LOADING:"LOADING",RESTING:"RESTING"},_INPUT:{FUNCTION:"FUNCTION",EVENT:"EVENT",EMPTY:"EMPTY",LOADED:"LOADED",LOAD_CANCELED:"LOAD_CANCELED"},constructor:function(a,b){this._queue=[]; 1143this._listeners={}; 1144this._functions={}; 1145this._currentState=this._STATE.STARTING; 1146this._controller=a; 1147this._controllerDeferred=$pdk.isEmpty(b)?new $pdk.queue.deferred.DeferredController():b 1148},getRegisteredFunctions:function(){return this._functions 1149},addFunction:function(a){var b=this; 1150this._functions[a]=function(){b._queueFunction(a,Array.prototype.slice.call(arguments,0)) 1151}; 1152this._controller.registerFunction(a,{},this._functions[a]) 1153},addListener:function(a,b){var c=this; 1154this._listeners[a]=function(d){c._queueEvent(a,d.data,b) 1155}; 1156this._controller.addEventListener(a,this._listeners[a]) 1157},_queueFunction:function(a,b){this._stateInput(this._INPUT.FUNCTION,{type:"function",name:a,parameters:b,triggerLoad:true}) 1158},_queueEvent:function(a,c,b){this._stateInput(this._INPUT.EVENT,{type:"event",name:a,data:c,triggerLoad:b}) 1159},_stateInput:function(a,b){switch(this._currentState){case this._STATE.STARTING:switch(a){case this._INPUT.FUNCTION:case this._INPUT.EVENT:this._queue.push(b); 1160break; 1161default:break 1162}if(b.triggerLoad){this._changeState(this._STATE.LOADING,b) 1163}break; 1164case this._STATE.LOADING:switch(a){case this._INPUT.FUNCTION:case this._INPUT.EVENT:this._queue.push(b); 1165break; 1166case this._INPUT.LOADED:this._changeState(this._STATE.RESTING,b); 1167break; 1168case this._INPUT.LOAD_CANCELED:this._changeState(this._STATE.STARTING,b); 1169break; 1170default:break 1171}break; 1172case this._STATE.RESTING:switch(a){case this._INPUT.FUNCTION:this._controller.callFunction(b.name,b.parameters); 1173break; 1174case this._INPUT.EVENT:this._controller.dispatchEvent(b.name,b.data); 1175break; 1176default:break 1177}break; 1178default:break 1179}},_changeState:function(e,d){var c; 1180var b=this; 1181switch(e){case this._STATE.STARTING:this._currentState=this._STATE.STARTING; 1182break; 1183case this._STATE.LOADING:this._currentState=this._STATE.LOADING; 1184this._load(d); 1185break; 1186case this._STATE.RESTING:for(var a in this._listeners){this._controller.removeEventListener(a,this._listeners[a]) 1187}while(this._queue.length>0){c=this._queue.shift(); 1188switch(c.type){case"function":this._controller.callFunction(c.name,c.parameters,[]); 1189break; 1190case"event":this._controllerDeferred.dispatchEvent(c.name,c.data); 1191break; 1192default:break 1193}}this._currentState=this._STATE.RESTING; 1194break; 1195default:break 1196}},_load:function(a){}}); 1197$pdk.queue.deferred.GlobalController=$pdk.extend(function(){},{constructor:function(a,c,b){this._controller=a; 1198this._defaultScopes=[c].concat(b?b:["default"]) 1199},addEventListener:function(a,c,b){this._controller.addEventListener(a,c,(b?b:this._defaultScopes)) 1200},removeEventListener:function(a,c,b){this._controller.removeEventListener(a,c,(b?b:this._defaultScopes)) 1201},dispatchEvent:function(b,a,c){this._controller.dispatchEvent(b,a,(c?c:this._defaultScopes)) 1202},callFunction:function(a,d,b,c){this._controller.callFunction(a,d,(b?b:this._defaultScopes)) 1203},registerFunction:function(b,a,d,c){this._controller.registerFunction(b,d,(c?c:this._defaultScopes)) 1204}}); 1205$pdk.ns("$pdk.queue.deferred.ShellController.flash"); 1206$pdk.apply($pdk.queue.deferred.ShellController.flash,{_currentContextId:0,_contexts:{},create:function(){var a=new $pdk.queue.deferred.DeferredController(); 1207$pdk.queue.deferred.ShellController.flash._contexts[++$pdk.queue.deferred.ShellController.flash._currentContextId]=a; 1208return $pdk.queue.deferred.ShellController.flash._currentContextId 1209},getContext:function(a){return $pdk.queue.deferred.ShellController.flash._contexts[a] 1210},applyContextFunction:function(a,b,d){var c=$pdk.queue.deferred.ShellController.flash._contexts[a]; 1211if(c!==null&&typeof(c)==="object"){var e=c.getRegisteredFunctions(); 1212if(e!==null&&typeof(e[b])==="function"){e[b].apply(c,d) 1213}}},addEventListener:function(b,d,a,f){var e=$pdk.queue.deferred.ShellController.flash._contexts[b],
1213c=$pdk.shell.Registry.getInstance().getShells().get(d),g=null; 1214if(e!==null&&typeof(e)==="object"&&c!==null&&typeof(c)==="object"){g=document.getElementById(c.getSwfObjectId()); 1215if(g!==null&&(typeof(g)==="object"||typeof(g)=="function")&&typeof(g[f])==="function"){e.addEventListener(a,function(h){g[f].call(g,h) 1216}) 1217}}}}); 1218$pdk.ns("$pdk.queue.deferred.loader"); 1219$pdk.queue.deferred.loader.CardsLoader=$pdk.extend($pdk.queue.deferred.DeferredShell,{constructor:function(b,a,c){this._cardsLoader=b; 1220$pdk.queue.deferred.loader.CardsLoader.superclass.constructor.call(this,a,c); 1221this.addFunction("addPlayerCard"); 1222this.addFunction("showPlayerCard"); 1223this.addFunction("hidePlayerCard"); 1224this.addListener("OnMediaAreaChanged",false); 1225this.addListener("OnOverlayAreaChanged",false); 1226this.addListener("OnMediaAreaChangedFlash",false); 1227this.addListener("OnOverlayAreaChangedFlash",false); 1228this.addListener("OnMediaStart",false); 1229this.addListener("OnReleaseStart",false); 1230this.addListener("OnLoadRelease",false); 1231this.addListener("OnLoadReleaseUrl",false); 1232this.addListener("OnSetRelease",false); 1233this.addListener("OnPlayerComponentAreaChanged",false) 1234},_load:function(){var a=this; 1235a._cardsLoader({onSuccess:function(){tpDebug("success loading cards"); 1236a._stateInput(a._INPUT.LOADED,{}) 1237},onUnavailable:function(b){tpDebug("failed to load cards: "+b) 1238}}) 1239}}); 1240$pdk.queue.deferred.loader.ControlsLoader=$pdk.extend($pdk.queue.deferred.DeferredShell,{constructor:function(a,b,d,c){$pdk.queue.deferred.loader.ControlsLoader.superclass.constructor.call(this,a); 1241this._playerId=b; 1242this._onSuccess=d; 1243this._onFailure=c; 1244this.addListener("OnMediaPlaying",true); 1245this.addListener("OnPlayerLoaded",true); 1246this.addListener("OnGetSubtitleLanguage",false); 1247this.addListener("OnHideCard",false); 1248this.addListener("OnLoadRelease",false); 1249this.addListener("OnLoadReleaseUrl",false); 1250this.addListener("OnMediaEnd",false); 1251this.addListener("OnMediaLoadStart",false); 1252this.addListener("OnMediaLoading",false); 1253this.addListener("OnMediaPause",false); 1254this.addListener("OnMediaSeek",false); 1255this.addListener("OnMediaStart",false); 1256this.addListener("OnMediaUnpause",false); 1257this.addListener("OnMute",false); 1258this.addListener("OnReleaseEnd",false); 1259this.addListener("OnReleaseStart",false); 1260this.addListener("OnResize",false); 1261this.addListener("OnSetReleaseUrl",false); 1262this.addListener("OnShowCard",false); 1263this.addListener("OnShowFullScreen",false); 1264this.addListener("OnShowPlayOverlay",false); 1265this.addListener("OnVolumeChange",false) 1266},_load:function(c){var a=this; 1267var b=new com.theplatform.pdk.controls.loader.ControlsLoaderExported(); 1268b.load(a._controller,a._controllerDeferred,a._playerId,c.name,a._onSuccess,a._onFailure,{onSuccess:function(){tpDebug("success loading com.theplatform.pdk.controls.loader.ControlsLoaderExported","Controls"); 1269a._stateInput(a._INPUT.LOADED,{}) 1270},onUnavailable:function(d){tpDebug("could not load com.theplatform.pdk.controls.loader.ControlsLoaderExported: "+d,"Controls"); 1271a._stateInput(a._INPUT.LOAD_CANCELED,{}) 1272}}) 1273}}); 1274$pdk.queue.deferred.loader.ReleaseListLoader=$pdk.extend($pdk.queue.deferred.DeferredShell,{constructor:function(a,b){$pdk.queue.deferred.loader.ReleaseListLoader.superclass.constructor.call(this,a,b); 1275this.addListener("OnRefreshReleaseModel",false); 1276this.addListener("OnRefreshReleaseModelStarted",false) 1277},load:function(){var a=this; 1278a._stateInput(a._INPUT.EMPTY,{triggerLoad:true}) 1279},_load:function(){var a=this; 1280a._stateInput(a._INPUT.LOADED,{}) 1281}}); 1282$pdk.queue.deferred.loader.Subtitles=$pdk.extend($pdk.queue.deferred.DeferredShell,{constructor:function(g,e,h,a,f,j,d,c,b){$pdk.queue.deferred.loader.Subtitles.superclass.constructor.call(this,g); 1283this._initOverlayArea=e; 1284this._viewElement=h; 1285this._subtitleSettingsCookieName=a; 1286this._defaultFontSizePixel=f; 1287this._defaultStyle=j; 1288this._defaultMissingRegionStyle=d; 1289this._showSubtitles=c; 1290this._enableDynamicSubtitleFonts=b; 1291this.addFunction("setShowSubtitles"); 1292this.addListener("OnGetSubtitleLanguage",true); 1293this.addListener("OnOverlayAreaChanged",false); 1294this.addListener("OnSubtitleCuePoint",true); 1295this.addListener("OnMediaStart",true) 1296}
1296,_load:function(){var a=this; 1297$pdk.Entrypoint.getInstance().addCallback(function(){var b=new com.theplatform.pdk.subtitles.loader.SubtitlesLoaderExported(); 1298b.load(a._viewElement,a._defaultFontSizePixel,a._defaultStyle,a._defaultMissingRegionStyle,a._subtitleSettingsCookieName,a._enableDynamicSubtitleFonts,a._showSubtitles,a._controller,a._controllerDeferred,{onSuccess:function(){tpDebug("success loading com.theplatform.pdk.subtitles.webapp.SubtitlesExported","Subtitles"); 1299a._stateInput(a._INPUT.LOADED,{}) 1300},onUnavailable:function(c){tpDebug("could not load com.theplatform.pdk.subtitles.webapp.SubtitlesExported: "+c,"Subtitles",tpConsts.ERROR) 1301}}) 1302}) 1303}}); 1304$pdk.queue.deferred.loader.SubtitlesSettingsManager=$pdk.extend($pdk.queue.deferred.DeferredShell,{constructor:function(a,b){$pdk.queue.deferred.loader.SubtitlesSettingsManager.superclass.constructor.call(this,a); 1305this._subtitleSettingsCookieName=b; 1306this.addFunction("getSubtitleLanguage"); 1307this.addFunction("getSubtitleStyle"); 1308this.addFunction("setSubtitleLanguage"); 1309this.addFunction("setSubtitleStyle") 1310},_load:function(){var a=this; 1311$pdk.Entrypoint.getInstance().addCallback(function(){var b=new com.theplatform.pdk.subtitles.loader.SubtitlesSettingsManagerLoaderExported(); 1312b.load(a._subtitleSettingsCookieName,a._controller,a._controllerDeferred,{onSuccess:function(){tpDebug("success loading com.theplatform.pdk.subtitles.loader.SubtitlesSettingsManagerLoaderExported","SubtitlesSettingsManagerLoader"); 1313a._stateInput(a._INPUT.LOADED,{}) 1314},onUnavailable:function(c){tpDebug("could not load com.theplatform.pdk.subtitles.loader.SubtitlesSettingsManagerLoaderExported: "+c,"SubtitlesSettingsManagerLoader",tpConsts.ERROR) 1315}}) 1316}) 1317}}); 1318$pdk.queue.deferred.loader.SubtitlesSettingsManager.flash={_currentContextId:0,_contexts:{},create:function(c,d){var a=$pdk.queue.deferred.ShellController.flash.getContext(c),b=new $pdk.queue.deferred.loader.SubtitlesSettingsManager(a,d); 1319$pdk.queue.deferred.loader.SubtitlesSettingsManager.flash._contexts[++$pdk.queue.deferred.loader.SubtitlesSettingsManager.flash._currentContextId]=b; 1320return $pdk.queue.deferred.loader.SubtitlesSettingsManager.flash._currentContextId 1321},applyContextFunction:function(a,b,d){var c=$pdk.queue.deferred.loader.SubtitlesSettingsManager.flash._contexts[a]; 1322if(c!==null&&typeof(c)==="object"){var e=c.getRegisteredFunctions(); 1323if(e!==null&&typeof(e[b])==="function"){e[b].apply(c,d) 1324}}}}; 1325$pdk.ns("$pdk.shell"); 1326$pdk.shell.DefaultsAbstractImpl=$pdk.extend(function(){},{decorate:function(b,c,a){b.fp.allowscriptaccess="always"; 1327b.fp.allowfullscreeninteractive="false"; 1328b.fp.menu=true; 1329b.fp.salign="tl"; 1330b.fp.scale="noscale"; 1331b.fp.wmode="transparent"; 1332b.fa.wmode="transparent" 1333},configureRuntime:function(c,d){var b=c.supportedMedia.split(","); 1334tpDebug("configuring shell "+c.getName(),"bootloader","$pdk.shell.DefaultsAbstractImpl",tpConsts.INFO); 1335if($pdk.isAndroid&&d.canPlayTypeAugmentation()){b=d.sortM3uArray(b) 1336}var a=d.getMediaFactory().getBestRuntime(c.getName(),d.getPreferredFormatsUnfiltered(),b); 1337if($pdk.isIE6||$pdk.isIE7||$pdk.isIE8){c.setRuntime("flash"); 1338tpDebug("Legacy IE, using runtime: flash","bootloader","$pdk.shell.DefaultsAbstractImpl",tpConsts.DEBUG) 1339}else{tpDebug("best_runtime.runtime: "+a.runtime,"bootloader","$pdk.shell.DefaultsAbstractImpl",tpConsts.DEBUG); 1340c.setRuntime(a.runtime) 1341}tpDebug("best_runtime.medium: "+a.medium,"bootloader","$pdk.shell.DefaultsAbstractImpl",tpConsts.DEBUG); 1342c.setMedium(a.medium); 1343this._is_phase1=$pdk.env.Detect.getInstance().isPhase1() 1344},isPhase1:function(){return this._is_phase1 1345}}); 1346$pdk.shell.Base=$pdk.extend(function(){},{constructor:function(e,c,b,d){var a; 1347$pdk.shell.Base.superclass.constructor.call(this); 1348this.fp={}; 1349this.fa={}; 1350this.useBootloader="true"; 1351this._markupId=typeof(e)==="string"?e:String(Math.round(Math.random()*100000000000000)); 1352this._width=typeof(c)==="string"||typeof(c)==="number"?String(c):null; 1353this._height=typeof(b)==="string"||typeof(b)==="number"?String(b):null; 1354this._write_was_called=false; 1355this._attach_was_called=false; 1356this._gwt_component=null; 1357this._registry.add(this); 1358this._runtime=null; 1359this._medium=null; 1360this._configureProcessor=function(){}; 1361if($pdk.isObject(d)){$pdk.apply(this,d) 1362}this._config_decorator.decorate(this,this._env,this._registry) 1363},getWidth:function(){return this._width!==null?String(this._width):null 1364},getHeight:function(){return this._height!==null?String(this._height):null 1365},setWidth:function(a){this._width=a 1366},setHeight:function(a){this._height=a 1367},getId:function(){return this._markupId 1368},getSwfObjectId:function(){return this._markupId===null?null:["_",this._markupId,"PdkSwfObject"].join("") 1369},getName:function(){return this._name 1370},getMarkupClass:function(){return this._markupClass 1371},getRuntime:function(){if(typeof(this.runtime)==="string"){this._runtime=this.runtime; 1372delete this.runtime 1373}return this._runtime 1374},setRuntime:function(a){this._runtime=a 1375},getMedium:function(){return this._medium 1376},setMedium:function(a){this._medium=a 1377},asSwf:function(){return this._asSwf 1378},jsViewImpl:function(){return this._jsViewImpl 1379},jsViewCallBackName:function(){return this._jsViewCallBackName 1380},getPriority:function(){return this._priority 1381},write:function(){this._write_was_called=true; 1382var a=document.getElementsByTagName("script"); 1383var b=a[a.length-1]; 1384var c=b.parentNode; 1385this._registry.remove(this); 1386this._markupId=c.id; 1387this._registry.add(this); 1388this.bind() 1389},attach:function(){this.bind() 1390},bind:function(){this._attach_was_called=true;
1391if(this._env.GWTReady()){this._attachToGWT() 1392}},resyncAttach:function(){if(this._attach_was_called){this._attachToGWT() 1393}},_attachToGWT:function(){var a; 1394if(this._gwt_component===null){tpSetCssClass(this._markupId,this._markupClass); 1395a=new com.theplatform.pdk.ComponentFactory(this.getName(),this.getConfig()); 1396this._gwt_component=a.create(); 1397this._gwt_component.bind() 1398}},getConfig:function(){this._prepareConfigure(); 1399var c={id:this._markupId,skinurl:this._env.baseDir()+"/skins/glass/glass.json"},b; 1400c=this._normalizeNVP(this,c); 1401if(this.getName()==="Player"&&c.releaseurl===undefined){c.releaseurl=this._env.getModelUrls().releaseurl 1402}delete this.fa.height; 1403delete this.fa.width; 1404delete this.fp.height; 1405delete this.fp.width; 1406delete c.height; 1407delete c.width; 1408delete c.engine; 1409var a=this.jsViewImpl(); 1410if(a&&a!==""&&a.indexOf("@Bundle:")===-1){a=this._env.baseDir()+"/js/"+this.jsViewImpl() 1411}else{if(a.indexOf("@Bundle:")!==-1){a=a.replace("@Bundle:","") 1412}}return{as_swf:this._env.baseDir()+"/swf/"+this.asSwf(),js_view_impl:a,markup_class:this.getMarkupClass(),engine:this.getRuntime(),medium:this.getMedium(),markup_id:this.getId(),pdk_swf_object_id:this.getSwfObjectId(),variables:c,width:this.getWidth(),height:this.getHeight(),flash_attributes:this._normalizeNVP(this.fa,{}),flash_parameters:this._normalizeNVP(this.fp,{})} 1413},setConfigureProcessor:function(a){this._configureProcessor=a 1414},_prepareConfigure:function(){this._configureProcessor(this,{variables:this._normalizeNVP(this,{}),flash_attributes:this._normalizeNVP(this.fa,{}),flash_parameters:this._normalizeNVP(this.fp,{})}) 1415},_normalizeNVP:function(d,c){var b,a,e; 1416for(e in d){if(!e.match(/^_/)){b=d[e]; 1417a=typeof(b); 1418if(a==="number"||a==="boolean"){b=String(b); 1419a="string" 1420}if(a==="string"){c[e.toLowerCase()]=b 1421}}}return c 1422}}); 1423$pdk.shell.Collection=$pdk.extend(function(){},{constructor:function(){$pdk.shell.Collection.superclass.constructor.call(this); 1424this._shells={} 1425},put:function(b,a){this._shells[b]=a 1426},remove:function(a){delete this._shells[a] 1427},get:function(a){return this._shells[a] 1428},keys:function(){var b,a=[]; 1429for(b in this._shells){if(this._shells[b]!==Object.prototype[b]){a.push(b) 1430}}return a 1431},toArray:function(){var d=[],c=this.keys(),a=c.length,b; 1432for(b=0; 1433b<a; 1434b++){d.push(this.get(c[b])) 1435}return d 1436}}); 1437$pdk.shell.DefaultsCategoryListImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){$pdk.shell.DefaultsCategoryListImpl.superclass.decorate.apply(this,arguments); 1438b.divId=b.getId(); 1439b.supportedMedia="actionscript,javascript"; 1440if(typeof(b.expandedcssclass)!=="string"||b.expandedcssclass.length>0){b.expandedcssclass=b.getMarkupClass()+"Expanded" 1441}this.configureRuntime(b,c); 1442b.setConfigureProcessor(function(d,e){if(!(typeof(e.variables.enablemenus)==="string"&&e.variables.enablemenus==="false")&&$pdk.env.Detect.getInstance()._flash_version[0]>0){tpDebug("forcing flash runtime for category list",tpConsts.INFO); 1443d.setRuntime("flash"); 1444d.setMedium("javascript") 1445}}); 1446b._deferredController=new $pdk.queue.deferred.DeferredController(); 1447if(this.isPhase1()){this.setPhase1Defaults(b) 1448}},setPhase1Defaults:function(a){a.allchoiceindex=1; 1449a.allchoicelabel="All Videos"; 1450a.backgroundcolor="0x383838"; 1451a.expandedheight=198; 1452a.expandedwidth=795; 1453a.expandercolor="0xBEBEBE"; 1454a.expanderhovercolor="0xBEBEBE"; 1455a.expanderselectedcolor="0x00CCFF"; 1456a.framecolor="0x545759"; 1457a.itembackgroundcolor="0x383838"; 1458a.itemframecolor="0x131313"; 1459a.itemshineselectedcolor="0x00CCFF"; 1460a.mostpopularchoiceindex=2; 1461a.mostpopularchoicelabel="Most Popular"; 1462a.textcolor="0xBEBEBE"; 1463a.textframecolor="0x242424"; 1464a.textframehovercolor="0xBEBEBE"; 1465a.textframeselectedcolor="0x00CCFF"; 1466a.texthovercolor="0xBEBEBE"; 1467a.textselectedcolor="0x00CCFF" 1468}}); 1469$pdk.shell.DefaultsCategoryModelImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){var d=this; 1470$pdk.shell.DefaultsCategoryModelImpl.superclass.decorate.apply(this,arguments); 1471b.setWidth(1); 1472b.setHeight(1); 1473b.supportedMedia="actionscript"; 1474b.categoryModelRssUrl=c.getModelUrls().rssurl; 1475if($pdk.isIE6||$pdk.isIE7||$pdk.isIE8){b.setRuntime("flash"); 1476b.setMedium("actionscript") 1477}else{b.setRuntime("html5"); 1478b.setMedium("javascript") 1479}b.setConfigureProcessor(function(e,f){if((typeof(f.variables.feedpid)==="str
1479ing"&&f.variables.feedpid.length>0)||d._isLegacyCategoryURL(f.variables.feedsserviceurl)||d._isLegacyCategoryURL(e.categoryModelRssUrl)){tpDebug("forcing flash runtime for category model",tpConsts.INFO); 1480e.setRuntime("flash"); 1481e.setMedium("javascript") 1482}}) 1483},_isLegacyCategoryURL:function(a){if(typeof(a)!=="string"||a.length<1){return false 1484}return a.match(/\/PortalService\//)!==null&&a.match(/\/getCategoryList/)!==null&&a.match(/[?&]PID\=/)!==null 1485}}); 1486$pdk.shell.DefaultsClipInfoImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(c,e,b){var a=c.getWidth(),d=c.getHeight(); 1487if(typeof(a)!=="string"||a.length<1){c.setWidth("100%") 1488}if(typeof(d)!=="string"||d.length<1){c.setHeight("100%") 1489}$pdk.shell.DefaultsClipInfoImpl.superclass.decorate.apply(this,arguments); 1490c.supportedMedia="actionscript,javascript"; 1491this.configureRuntime(c,e); 1492if(this.isPhase1()){this.setPhase1Defaults(c) 1493}},setPhase1Defaults:function(a){a.backgroundcolor="0xFFFFFF"; 1494a.banneralignment="top"; 1495a.bannerregions=""; 1496a.descriptioncolor="0xF2F2F2"; 1497a.framecolor="0xFFFFFF"; 1498a.titlecolor="0xF2F2F2" 1499}}); 1500$pdk.shell.DefaultsHeaderImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){$pdk.shell.DefaultsHeaderImpl.superclass.decorate.apply(this,arguments); 1501b.backgroundcolor="0x383838"; 1502b.framecolor="0x545759"; 1503b.supportedMedia="actionscript"; 1504this.configureRuntime(b,c) 1505}}); 1506$pdk.shell.DefaultsNavigationImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){$pdk.shell.DefaultsNavigationImpl.superclass.decorate.apply(this,arguments); 1507b.supportedMedia="actionscript,javascript"; 1508this.configureRuntime(b,c); 1509if(this.isPhase1()){this.setPhase1Defaults(b) 1510}},setPhase1Defaults:function(a){a.backgroundcolor="0x131313"; 1511a.framecolor="0x000000"; 1512a.itembackgroundcolor="0x383838"; 1513a.itemframecolor="0xFF0000"; 1514a.itemshineselectedcolor="0xFF0000"; 1515a.textbackgroundcolor="0x383838"; 1516a.textcolor="0xDFDFDF"; 1517a.textframecolor="0x383838"; 1518a.texthighlighthovercolor="0x00CCFF"; 1519a.texthighlightselectedcolor="0xFFFFFF"; 1520a.texthovercolor="0xDFDFDF"; 1521a.textselectedcolor="0xDFDFDF"; 1522a.thumbnailbackgroundcolor="0x242424"; 1523a.thumbnailframecolor="0x383838"; 1524a.thumbnailhighlighthovercolor="0x00CCFF"; 1525a.thumbnailhighlightselectedcolor="0xFFFFFF"; 1526a.controlbackgroundcolor="0xFF0000"; 1527a.controlcolor="0xF2F2F2"; 1528a.controlframecolor="0xFF0000"; 1529a.controlframehovercolor="0xFF0000"; 1530a.controlframeselectedcolor="0xFF0000"; 1531a.controlhovercolor="0xFFFFFF"; 1532a.controlselectedcolor="0x00CCFF"; 1533a.infocolor="0x1D1D1D"; 1534a.itemsperpage=4; 1535a.fa.wmode="transparent"; 1536a.fp.wmode="transparent" 1537}}); 1538$pdk.shell.DefaultsNoOpImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){}}); 1539$pdk.shell.DefaultsPlayerImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(k,j,b){$pdk.shell.DefaultsPlayerImpl.superclass.decorate.apply(this,arguments); 1540var c=document.getElementById(k.getId()),a,m=k.getWidth(),f=k.getHeight(),g=j.getConfigSet("usedefaultcards"); 1541if(typeof(m)!=="string"||m.length<1){k.setWidth("100%") 1542}if(typeof(f)!=="string"||f.length<1){k.setHeight("100%") 1543}if(c===null){var e=document.getElementsByTagName("script"); 1544var n=e[e.length-1]; 1545var d=n.parentNode; 1546this._markupId=d.id; 1547c=d 1548}if(c.nodeName.toLowerCase()=="video"){a=c.getElementsByTagName("source"); 1549if(a&&a.length&&a[0].src){k.releaseurl=a[0].src.split("?")[0] 1550}else{if(c.src){k.releaseurl=c.src.split("?")[0] 1551}}if(c.poster){k.previewimageurl=c.poster 1552}if(c.autoplay){k.autoplay=c.autoplay 1553}}if(!j.rssurl&&j.getModelUrls().rssurl){k.rssurl=j.getModelUrls().rssurl 1554}if(!this.isPhase1()){k.backgroundcolor="0x131313"; 1555k.controlbackgroundcolor="0x131313"; 1556k.controlcolor="0xF2F2F2"; 1557k.controlframecolor="0xE0E0E0"; 1558k.controlhovercolor="0xFFFFFF"; 1559k.controlselectedcolor="0x00CCFF"; 1560k.framecolor="0xE0E0E0"; 1561k.loadprogresscolor="0x7C7C7C"; 1562k.pagebackgroundcolor="0x131313"; 1563k.playprogresscolor="0xE0E0E0"; 1564k.scrubtrackcolor="0x131313"; 1565k.scrubbercolor="0xF2F2F2"; 1566k.scrubberframecolor="0xF2F2F2"; 1567k.textbackgroundcolor="0x383838"; 1568k.textcolor="0xF2F2F2" 1569}k.allowfullscreen=true; 1570k.fa.allowfullscreen="true"; 1571k.fp.allowfullscreen="true"; 1572k.wmode=k.fa.wmode=k.fp.wmode="opaque"; 1573k.supportedMedia="mpeg4,f4m,flv,m3u,ogg,webm,mpeg,qt,3gpp,ism,wm,3gpp2,aac,asx,avi,move,mp3,mpeg-dash"; 1574k.releaseUrlFormatResolution=false; 1575this.configureRuntime(k,j); 1576j.setPlaybackFormat(k.getMedium()); 1577j.setComponentRuntime(k.getRuntime()); 1578if(k.getRuntime()=="universal"){k.setRuntime("html5") 1579}var l=this; 1580k.setConfigureProcessor(function(u,v){var p=l._getVideoLayer(u,v); 1581if(p){var o=false; 1582var h=j.getSupportedRuntimes(); 1583var t=0; 1584for(; 1585t<h.length; 1586t++){if(h[t].indexOf(p.runtime+":")===0){if(p.runtime==="html"||p.runtime==="html5"||(p.runtime==="flash"&&$pdk.env.Detect.getInstance().hasFlash())){o=true 1587}break 1588}}if(o){u.videoengineruntime=p.runtime 1589}u.videolayer=p.layer; 1590u.videolayerconfig=p.config; 1591u.formats=p.formats?p.formats.concat(u.formats):u.formats; 1592var q=p.formats?p.formats.split(","):[]; 1593var s=0; 1594var r=q.length; 1595for(; 1596s<r; 1597s++){if(typeof($pdk.overrideFormats)==="undefined"){$pdk.overrideFormats={} 1598}$pdk.overrideFormats[q[s].toLowerCase()]=true 1599}u.formats=l._createFormats(j,u); 1600if(u.getRuntime()=="html5"&&!u.videoEngineRuntime){u.videoengineruntime=j.getPlaybackRuntime(u.getRuntime()) 1601}}if(!u.videoEngineRuntime){u.videoengineruntime=j.getPlaybackRuntime(u.getRuntime()) 1602}if(!u.formats){u.formats=l._createFormats(j,u) 1603}}); 1604k.useDefaultCards=k.getRuntime()==="html5"; 1605if(!$pdk.isEmpty(g)){k.useDefaultCards=g.toArray()[0].toLowerCase()!=="false" 1606}},_getVideoLayer:function(e){var a={runtime:null,layer:null,formats:null,config:null}; 1607var b=[];
1608for(prop in e){if(typeof e[prop]==="string"&&prop.toLowerCase().indexOf("plugin")===0&&e[prop].toLowerCase().indexOf("videolayer")>=0){b.push(e[prop].split("|")) 1609}}if(b.length>0){for(var d=0; 1610d<b.length; 1611d++){for(var c=0; 1612c<b[d].length; 1613c++){if(b[d][c].toLowerCase().indexOf("videolayer=")===0){a.layer=b[d][c].toLowerCase().split("=")[1] 1614}else{if(b[d][c].toLowerCase().indexOf("formats=")===0){a.formats=b[d][c].toLowerCase().split("=")[1] 1615}else{if(b[d][c].toLowerCase().indexOf("runtime=")===0){a.runtime=b[d][c].toLowerCase().split("=")[1] 1616}}}}if(a.layer){a.config=b[d].join("|"); 1617return a 1618}}}},_createFormats:function(c,a){var b=c.getPlayerFormats(a.getRuntime()); 1619var d; 1620if(b.length>0){d=b.join(","); 1621tpDebug("using player formats: "+d,"bootloader","$pdk.shell.DefaultsPlayerImpl",tpConsts.INFO) 1622}else{tpDebug("Could not find a preferred format for this browser. Player will not add formats to selector calls","bootloader","$pdk.shell.DefaultsPlayerImpl",tpConsts.WARN) 1623}return d 1624}}); 1625$pdk.shell.DefaultsReleaseListImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){$pdk.shell.DefaultsReleaseListImpl.superclass.decorate.apply(this,arguments); 1626b.supportedMedia="actionscript,javascript"; 1627this.configureRuntime(b,c); 1628b._deferredController=new $pdk.queue.deferred.DeferredController(); 1629b._loader=new $pdk.queue.deferred.loader.ReleaseListLoader(new $pdk.queue.deferred.GlobalController($pdk.controller),b._deferredController); 1630if(this.isPhase1()){this.setPhase1Defaults(b) 1631}},setPhase1Defaults:function(a){a.allowscrolling="false"; 1632a.animation="slideHorizontal"; 1633a.backgroundcolor="0x131313"; 1634a.columns=2; 1635a.framecolor="0x383838"; 1636a.itembackgroundcolor="0x383838"; 1637a.itemframecolor="0x383838"; 1638a.itemshineselectedcolor="0x383838"; 1639a.itemsperpage=4; 1640a.textbackgroundcolor="0x383838"; 1641a.textcolor="0xDFDFDF"; 1642a.textframecolor="0x383838"; 1643a.texthighlighthovercolor="0x00CCFF"; 1644a.texthighlightselectedcolor="0xFFFFFF"; 1645a.texthovercolor="0xDFDFDF"; 1646a.textselectedcolor="0xDFDFDF"; 1647a.thumbnailbackgroundcolor="0x242424"; 1648a.thumbnailframecolor="0x383838"; 1649a.thumbnailheight=75; 1650a.thumbnailhighlighthovercolor="0x00CCFF"; 1651a.thumbnailhighlightselectedcolor="0xFFFFFF"; 1652a.thumbnailwidth=100; 1653a.showairdate=false; 1654a.showauthor=false; 1655a.showbitrate=false; 1656a.showdescription=true; 1657a.showformat=false; 1658a.showlength=true; 1659a.showthumbnail=true; 1660a.showtitle=true 1661}}); 1662$pdk.shell.DefaultsReleaseModelImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){var e=this; 1663$pdk.shell.DefaultsReleaseModelImpl.superclass.decorate.apply(e,arguments); 1664b.setWidth(1); 1665b.setHeight(1); 1666b.supportedMedia="actionscript,javascript"; 1667b._paramsOriginal=b.params; 1668b.releaseModelRssUrl=c.getModelUrls().rssurl; 1669if($pdk.isIE6||$pdk.isIE7||$pdk.isIE8){b.setRuntime("flash"); 1670b.setMedium("actionscript") 1671}else{b.setRuntime("html5"); 1672b.setMedium("javascript") 1673}var d=this; 1674b.setConfigureProcessor(function(f,g){f._paramsOriginal=f.params; 1675f.params=d._createParams(c,f); 1676if((typeof(g.variables.feedpid)==="string"&&g.variables.feedpid.length>0)||e._isLegacyReleaseURL(g.variables.feedsserviceurl)||e._isLegacyReleaseURL(f.releaseModelRssUrl)){tpDebug("forcing flash runtime for release model",tpConsts.INFO); 1677f.setRuntime("flash"); 1678f.setMedium("javascript") 1679}}) 1680},_isLegacyReleaseURL:function(a){if(typeof(a)!=="string"||a.length<1){return false 1681}return a.match(/\/PortalService\//)!==null&&a.match(/\/getReleaseList/)!==null&&a.match(/[?&]PID\=/)!==null 1682},_createParams:function(f,d){tpDebug("looking up best format for player","bootloader","$pdk.shell.DefaultsReleaseModelImpl",tpConsts.INFO); 1683var h=[],b=[],a=null,c=f.getMediaFactory().getBestRuntime("Player",f.getPreferredFormatsUnfiltered(),["mpeg4","f4m","flv","m3u","ogg","webm","mpeg","qt","3gpp","ism","wm","3gpp2","aac","asx","avi","move","mp3","mpeg-dash"]),e=f.getPlayerFormats(c.runtime); 1684if(e.length>0){tpDebug("using player formats: "+e.join(", "),"bootloader","$pdk.shell.DefaultsReleaseModelImpl",tpConsts.INFO); 1685a=e.join("|") 1686}else{e=f.getPreferredFormatsUnfiltered(); 1687if(e.length>0){tpDebug("Release model could not find viable format for player. Choosing first preferred format from ("+e.join(", ")+")","bootloader","$pdk.shell.DefaultsReleaseModelImpl",tpConsts.INFO); 1688a=e[0] 1689}else{tpDebug("Could not find a preferred format. Release model will fetch all formats.","bootloader","$pdk.shell.DefaultsReleaseModelImpl",tpConsts.WARN) 1690}}var g=false; 1691if(d._paramsOriginal&&d._paramsOriginal.indexOf("byContent")!==-1){g=true 1692}
1692if(!g&&a!==null){h.push("byContent=byFormat%3D"+a) 1693}if(!$pdk.isEmpty(d.thumbnailwidth)){b.push("byWidth%3D"+d.thumbnailwidth) 1694}if(!$pdk.isEmpty(d.thumbnailheight)){b.push("byHeight%3D"+d.thumbnailheight) 1695}if(b.length>0){h.push("thumbnailFilter="+b.join("%26")) 1696}return h.join("&")+(h&&h.length>0?"&":"")+(d._paramsOriginal?d._paramsOriginal:"") 1697}}); 1698$pdk.shell.DefaultsSearchImpl=$pdk.extend($pdk.shell.DefaultsAbstractImpl,{decorate:function(b,c,a){$pdk.shell.DefaultsSearchImpl.superclass.decorate.apply(this,arguments); 1699b.backgroundcolor="0x131313"; 1700b.controlbackgroundcolor="0x242424"; 1701b.controlcolor="0xBEBEBE"; 1702b.controlframecolor="0x545759"; 1703b.controlframehovercolor="0xBEBEBE"; 1704b.controlframeselectedcolor="0x00CCFF"; 1705b.controlhovercolor="0xBEBEBE"; 1706b.controlselectedcolor="0x00CCFF"; 1707b.editbackgroundcolor="0x131313"; 1708b.editcolor="0xBEBEBE"; 1709b.framecolor="0x545759"; 1710b.labelcolor="0xBEBEBE"; 1711b.searchhint="Search..."; 1712b.searchlabel="Search"; 1713b.supportedMedia="actionscript,javascript"; 1714this.configureRuntime(b,c) 1715}}); 1716$pdk.shell.Factory=$pdk.apply({},{generate:function(j,a,f){var e,d,k=j.length,g,h,c,b; 1717for(e=0; 1718e<k; 1719e++){d=j[e]; 1720h=$pdk.shell.Factory.CLASS_TABLE[d.markupClass]; 1721if(d.markupClass=="tpPlayer"){if($pdk.isEmpty(d.tpVars.releaseurl)){c=f.getModelUrls().releaseurl; 1722if(typeof(c)==="string"&&c.length>0){d.tpVars.releaseurl=c 1723}}if(d.tpVars.loglevel&&(!window.tpLogLevel||window.tpLogLevel==="warn")){window.tpLogLevel=d.tpVars.loglevel 1724}if($pdk.isEmpty(d.tpVars.releaseurl)||$pdk.isAndroid||$pdk.isIOS){d.tpVars.autoplay="false" 1725}else{if($pdk.isEmpty(d.tpVars.autoplay)&&!$pdk.isEmpty(d.tpVars.releaseurl)){d.tpVars.autoplay="true" 1726}}}if(typeof(h)==="function"){g=a.getShells().get(d.markupId); 1727g=g===null||typeof(g)!=="object"?new h(d.markupId):g; 1728$pdk.apply(g,d.tpVars); 1729$pdk.apply(g.fp,d.tpFp); 1730$pdk.apply(g.fa,d.tpFa); 1731g.attach() 1732}}$pdk.shell.Factory._generateMissingModels(a,f) 1733},_generateMissingModels:function(a,h){var j=a.getShells().toArray(),b=[],f=[],d=[],k=0,n=0,e,c=j.length,g,m; 1734for(e=0; 1735e<c; 1736e++){g=j[e]; 1737switch(g.getName()){case"ReleaseList":b={}; 1738n++; 1739d.push(b); 1740b.startindex=1; 1741b.endindex=parseInt(g.itemsperpage,10); 1742b.thumbnailwidth=g.thumbnailwidth; 1743b.thumbnailheight=g.thumbnailheight; 1744break; 1745case"ReleaseModel":n--; 1746d.pop(); 1747break; 1748case"CategoryList":k++; 1749f.push({}); 1750break; 1751case"CategoryModel":k--; 1752f.pop(); 1753break; 1754default:break 1755}}for(e=0; 1756e<n; 1757e++){g=$pdk.shell.Factory._buildModelShell(h,"releasemodel"+String(e),"tpReleaseModel",$pdk.shell.Factory.CLASS_TABLE.tpReleaseModel,[h.getModelUrls().releasemodel,h.getModelUrls().releasemodelbase],d[e]) 1758}for(e=0; 1759e<k; 1760e++){g=$pdk.shell.Factory._buildModelShell(h,"categorymodel"+String(e),"tpCategoryModel",$pdk.shell.Factory.CLASS_TABLE.tpCategoryModel,[h.getModelUrls().categorymodel,h.getModelUrls().categorymodelbase],f[e]) 1761}},_buildModelShell:function(f,c,e,h,j,d){var b=document.createElement("div"),g=new h(c,1,1,d),a; 1762b.id=c; 1763b.className=e; 1764b.setAttribute("style","position:absolute; top:0px; left:0px; width:1px; height:1px;"); 1765document.body.insertBefore(b,document.body.childNodes[0]); 1766if($pdk.isArray(j)&&j.length>0){a=j[0]; 1767if(typeof(a)==="string"&&a.length>0){g.feedsServiceUrl=a 1768}a=j[1]; 1769if(typeof(a)==="string"&&a.length>0){g.feedsServiceUrlBase=a 1770}}g.attach(); 1771return g 1772},getNamesFromDomElements:function(h){var q,r,v,k,c,u=h.length,t,p,w,g,x,d,e,l,o,j=[],f={},s={},m={},y,b; 1773for(t=0; 1774t<u; 1775t++){f={}; 1776s={}; 1777m={}; 1778c=h[t]; 1779e=c.attributes; 1780attributes_l=e.length; 1781for(w=0; 1782w<attributes_l; 1783w++){g=e[w]; 1784d=g.nodeValue; 1785switch(g.name){case"class":q=d; 1786break; 1787case"id":o=d; 1788break; 1789default:if(g.name.match(/^tp:/)){x=g.name.replace(/^tp:/,"").toLowerCase(); 1790b=x.match(/^fa\./)!==null?"fa":"var"; 1791b=x.match(/^fp\./)!==null?"fp":b; 1792switch(b){case"fa":s[x.replace(/^fa\./,"")]=d; 1793break; 1794case"fp":m[x.replace(/^fp\./,"")]=d; 1795break; 1796case"var":f[x]=d; 1797break; 1798default:break 1799}}break 1800}}v=typeof(q)==="string"?q.split(" "):[]; 1801k=v.length; 1802for(p=0; 1803p<k; 1804p++){r=v[p]; 1805if(r.match(/^tp/)){j.push({markupClass:r,markupId:o,tpVars:$pdk.apply({},f),tpFp:$pdk.apply({},m),tpFa:$pdk.apply({},s)}) 1806}}}return j 1807},CLASS_TABLE:{}}); 1808$pdk.ns("$pdk.shell.Registry"); 1809$pdk.shell.Registry._class=$pdk.extend(function(){},{constructor:function(){$pdk.shell.Registry._class.superclass.constructor.call(this); 1810this._collection=new $pdk.shell.Collection(); 1811this._swfloader=null 1812},getShells:function(){return this._collection 1813},bind:function(a){this._swfloader=a 1814},add:function(a){this._collection.put(a.getId(),a) 1815},remove:function(a){this._collection.remove(a.getId()) 1816},hasPlayer:function(){var a=this._collection.toArray(); 1817var b=0; 1818len=a.length; 1819for(; 1820b<len; 1821b++){if(a[b].getName()==="Player"){return true 1822}}return false 1823},connectShellsToGwt:function(){var c,b,e=this._collection.toArray().sort(function(g,f){return g.getPriority()>f.getPriority() 1824}),d=e.length,a; 1825for(c=0; 1826c<d; 1827c++){b=e[c]; 1828if(b.getRuntime()==="flash"){this._swfloader.add(b) 1829}else{b.resyncAttach() 1830}}this._swfloader.initializeShells() 1831},satisfyShellDeps:function(){var w,j,u,m=null,s,E,b,c,d,q,r,f,t,h,a,B,A=false,v,l=this._collection.toArray(),D={},C=l.length,o,k; 1832for(u=0; 1833u<C; 1834u++){v=l[u]; 1835E=v.getName(); 1836if($pdk.isEmpty(D[E])){D[E]=[] 1837}D[E].push(v) 1838}try{j=D.ReleaseModel.length; 1839if(j>0){w=D.Player.length; 1840for(u=0; 1841u<w; 1842u++){D.Player[u].releaseUrlFormatResolution=true 1843}}var p=D.ReleaseModel; 1844for(u=0; 1845u<p.length; 1846u++){if(p[u].params&&p[u]._paramsOriginal.indexOf("byContent")>=0&&p[u].params.indexOf("byContent")==-1){p[u].params+="&"+p[u]._paramsOriginal 1847}}}catch(g){}try{B=D.ReleaseList.length; 1848r=D.Navigation.length; 1849for(u=0; 1850u<r; 1851u++){b=D.Navigation[u]; 1852m=b.itemsPerPage; 1853m=$pdk.isEmpty(m)?null:m; 1854m=m===null?b.itemsperpage:m; 1855m=$pdk.isEmpty(m)?null:m; 1856if(m===null){delete b.itemsPerPage;
1857d=typeof(b.scopes)==="string"?b.scopes.split(","):[]; 1858q=d.length; 1859for(s=0; 1860s<B&&m===null; 1861s++){f=D.ReleaseList[s]; 1862h=typeof(f.scopes)==="string"?f.scopes.split(","):[]; 1863a=h.length; 1864if(q<1&&a<1){A=true 1865}else{A=false; 1866for(k=0; 1867k<q&&A===false; 1868k++){c=d[k]; 1869for(o=0; 1870o<a&&A===false; 1871o++){t=h[o]; 1872A=c===t 1873}}}if(A){m=f.itemsPerPage; 1874m=$pdk.isEmpty(m)?null:m; 1875m=m===null?f.itemsperpage:m; 1876m=$pdk.isEmpty(m)?null:m 1877}}if(m!==null){b.itemsperpage=m 1878}}}}catch(y){}}}); 1879$pdk.shell.Registry._singleton=null; 1880$pdk.shell.Registry.getInstance=function(){if($pdk.shell.Registry._singleton===null){$pdk.shell.Registry._singleton=new $pdk.shell.Registry._class() 1881}return $pdk.shell.Registry._singleton 1882}; 1883$pdk.shell.SwfSerializedLoader=$pdk.extend(function(){},{constructor:function(){this._shells_unattached=[]; 1884this._shells_unattached_batched={}; 1885this._batch_index=[]; 1886this._expected_responses=0; 1887this._timeouts=[] 1888},add:function(a){if(!$pdk.isEmpty(a)&&a.getRuntime()==="flash"){this._shells_unattached.push(a) 1889}},initializeShells:function(){while(this._shells_unattached.length>0){this._batch(this._shells_unattached.shift()) 1890}this._processNextBatch() 1891},onSwfReady:function(){this._expected_responses--; 1892if(this._expected_responses<1){this._processNextBatch() 1893}},_processNextBatch:function(){var d=this._batch_index.shift(),c=this._shells_unattached_batched[d],a=0,b=this; 1894while(this._timeouts.length){window.clearTimeout(this._timeouts.shift()) 1895}if(!$pdk.isEmpty(c)){while(c.length){shell=c.shift(); 1896shell.resyncAttach(); 1897a++ 1898}}this._expected_responses=a; 1899if(this._expected_responses>0){this._timeouts.push(window.setTimeout(function(){b._onTimeout(d) 1900},5000)) 1901}},_onTimeout:function(a){this._expected_responses=0; 1902this._processNextBatch() 1903},_batch:function(a){var b=String(Math.floor(a.getPriority())); 1904if($pdk.isEmpty(this._shells_unattached_batched[b])){this._shells_unattached_batched[b]=[]; 1905this._batch_index.push(b) 1906}this._shells_unattached_batched[b].push(a) 1907}}); 1908$pdk.bootloaderVersion=new $pdk.PdkVersion("5","5","4","359507","2014-08-28 10:07 AM"); 1909function tpExternalControllerClass(){this.playerTypes=new Object(); 1910this.extPlayers=new Object(); 1911this.registerExternalPlayer=function(type,playerClass){this.playerTypes[type]=playerClass 1912}; 1913this.routeMessage=function(swfId,controllerId,streamType,funcName,args){var curController=this.extPlayers[controllerId]; 1914if(!curController){curController=this.extPlayers[controllerId]={} 1915}var curPlayer=curController[streamType]; 1916if(!curPlayer){var playerClass=this.playerTypes[streamType]; 1917if(!playerClass){return 1918}curPlayer=eval("new "+playerClass+"('"+swfId+"', '"+controllerId+"');"); 1919if(!curPlayer){return 1920}curController[streamType]=curPlayer 1921}curPlayer[funcName](args) 1922}; 1923this.returnMessage=function(swfId,controllerId,funcName,args){var obj=tpThisMovie(swfId); 1924obj.receiveJSMessage(controllerId,funcName,args) 1925}; 1926this.cleanup=function(){for(var controllerId in this.extPlayers){var players=this.extPlayers[controllerId]; 1927for(var player in players){players[player].cleanup(); 1928delete players[player] 1929}delete this.extPlayers[controllerId] 1930}} 1931}function tpExternalMessage(b,d,c,e,a){window.tpExternalController.routeMessage(b,d,c,e,a) 1932}window.tpExternalController=new tpExternalControllerClass(); 1933function tpShowAlert(a){switch(a){case"FULLSCREEN_DISABLED":alert("Full screen is only available with Flash 9 or later"); 1934break 1935}}tpScriptLoader=new ScriptLoader(); 1936function tpLoadJScript(a,d,c,b){tpScriptLoader.addScript(a,d,c,b) 1937}function callbackDispatcher(a){tpScriptLoader.callbackDispatcher(a) 1938}function invokeCallbacks(a){tpScriptLoader.invokeCallbacks() 1939}function LoadObj(a,d,c,b){this.script=a; 1940this.callback=d; 1941this.id=c; 1942this.atts=b 1943}function ScriptLoader(){this.scriptQueue=new Array(); 1944this.callbackQueue=new Array() 1945}ScriptLoader.prototype.addScript=function(a,e,d,c){var b=new LoadObj(a,e,d,c); 1946this.scriptQueue.push(b); 1947if(this.scriptQueue.length==1){this.checkScriptQueue() 1948}}; 1949ScriptLoader.prototype.checkScriptQueue=function(){if(this.scriptQueue.length){var a=this.scriptQueue.shift(); 1950this.loadScript(a) 1951}else{interval_id=setInterval("invokeCallbacks()",100) 1952}}; 1953ScriptLoader.prototype.callbackDispatcher=function(b){for(var a in this.callbackQueue){if(this.callbackQueue[a]==b){this.checkScriptQueue(); 1954return 1955}}this.callbackQueue.push(b); 1956this.checkScriptQueue() 1957}; 1958ScriptLoader.prototype.invokeCallbacks=function(){clearInterval(interval_id); 1959while(this.callbackQueue.length){var loadObj=this.callbackQueue.shift(); 1960eval(loadObj.callback)(loadObj.script) 1961}}; 1962ScriptLoader.prototype.loadScript=function(h){var e=h.script; 1963var b=h.callback; 1964var g=h.id; 1965var f=h.atts; 1966var d=window.document.createElement("script"); 1967d.charset="utf-8"; 1968if(g){d.id=g 1969}d.type="text/javascript"; 1970if(f){for(var c=0; 1971c<f.length; 1972c++){d.setAttribute(f[c].att,f[c].value) 1973}}d.src=e; 1974if(b){var a=function(k,j){j(k); 1975this.onreadystatechange=null; 1976this.onload=null; 1977this.onerror=null 1978}; 1979d.onreadystatechange=function(){a(h,callbackDispatcher) 1980}; 1981d.onload=function(){a(h,callbackDispatcher) 1982}; 1983d.onerror=function(){a(h,callbackDispatcher) 1984} 1985}window.document.getElementsByTagName("head")[0].appendChild(d) 1986}; 1987function tpLoadScript(f,c,h,g){var e=window.document.createElement("script"); 1988e.charset="utf-8"; 1989if(h){e.id=h 1990}e.type="text/javascript"; 1991if(g){for(var d=0; 1992d<g.length; 1993d++){e.setAttribute(g[d].att,g[d].value) 1994}}e.src=f; 1995var b=false; 1996if(c){var a=function(j,k){j(k); 1997this.onreadystatechange=null; 1998this.onload=null; 1999this.onerror=null 2000}; 2001e.onreadystatechange=function(){if((this.readyState==="loaded"||this.readyState==="complete"||this.readyState===4)&&!b){a(c,f); 2002b=true 2003}}; 2004e.onload=function(){if(!b){b=true; 2005a(c,f) 2006}}; 2007e.onerror=function(){if(!b){a(c,f) 2008}} 2009}window.document.getElementsByTagName("head")[0].appendChild(e) 2010}function tpGetScriptPath(){return $pdk.env.Detect.getInstance().baseDir() 2011}function tpSetCssClass(a,b){try{var f=document.getElementById(a),c=f.className;
2012c=typeof(c)==="string"?c:""; 2013if(c.match(new RegExp(b))===null){f.className=b+(c.length?" "+c:"") 2014}}catch(d){}}function tpUnsetCssClass(a,c){try{var g=document.getElementById(a),d=g.className,b=new RegExp(c+" "); 2015d=typeof(d)==="string"?d:""; 2016g.className=d.replace(b,"","g") 2017}catch(f){}}function tpResize(b,a,c){}function tpGetTop(a){result=0; 2018while(a){result+=a.offsetTop; 2019a=a.offsetParent 2020}return result 2021}function tpGetLeft(a){result=0; 2022while(a){result+=a.offsetLeft; 2023a=a.offsetParent 2024}return result 2025}tpThisJsObject=function(a){return window[a] 2026}; 2027var tpRegisteredGWTWidgets={}; 2028tpThisMovie=function(b){if(b=="communicationwidget"||window.tpRegisteredGWTWidgets&&tpRegisteredGWTWidgets[b]!=undefined){var c=tpThisJsObject("tpGwtCommManager"); 2029if(c){return c 2030}}var a; 2031if(window.frame&&(window.frame.hasOwnProperty("contentWindow")||window.frame.hasOwnProperty("contentDocument"))){a=frame.contentWindow.document||frame.contentDocument.document 2032}else{a=document 2033}return a.getElementById(b) 2034}; 2035function tpDebug(c,b,a,d){if(!b){b="javascript" 2036}if(!a){a="utils" 2037}if(!d){d=tpConsts.INFO 2038}else{if(typeof d=="string"){d=tpGetLevelNumber(d) 2039}}if(d<tpGetLevelNumber(tpGetLogLevel())){return 2040}if(tpController!==undefined){tpController.dispatchEvent("OnPdkTrace",{message:c,timestamp:(new Date().valueOf()),controllerId:b,className:a,level:d}) 2041}else{tpTrace(c,(new Date()).valueOf(),b,a,d) 2042}}function tpOpenNewWindow(d,b,a){var c=window.open(d,b,a) 2043}var tpTrackingImage=new Image(); 2044function tpCallTrackingUrl(a){a=unescape(a); 2045tpTrackingImage.src=a; 2046for(i=0; 2047((!tpTrackingImage.complete)&&(i<100000)); 2048i++){}}var tpConsts={}; 2049tpConsts.NONE=2000; 2050tpConsts.FATAL=1000; 2051tpConsts.ERROR=8; 2052tpConsts.WARN=6; 2053tpConsts.INFO=4; 2054tpConsts.DEBUG=2; 2055tpConsts.TEST=1; 2056function tpGetLevel(a){switch(a){case tpConsts.DEBUG:return"DEBUG"; 2057case tpConsts.INFO:return"INFO"; 2058case tpConsts.WARN:return"WARN"; 2059case tpConsts.ERROR:return"ERROR"; 2060case tpConsts.FATAL:return"FATAL"; 2061case tpConsts.TEST:return"TEST"; 2062case tpConsts.NONE:return"NONE" 2063}return"UNKNOWN" 2064}function tpGetLevelNumber(a){switch(a.toUpperCase()){case"DEBUG":return tpConsts.DEBUG; 2065case"INFO":return tpConsts.INFO; 2066case"WARN":return tpConsts.WARN; 2067case"ERROR":return tpConsts.ERROR; 2068case"FATAL":return tpConsts.FATAL; 2069case"TEST":return tpConsts.TEST; 2070case"NONE":return tpConsts.NONE 2071}return 4 2072}function tpTrace(d,f,e,j,a){if(typeof(window.console)!=="object"){return 2073}var g=new Date(Number(f)); 2074var b=g.getMilliseconds(); 2075if(b.toString().length==2){b="0"+b 2076}else{if(b.toString().length==1){b="00"+b 2077}}var l=g.getHours(); 2078var c=g.getMinutes(); 2079var h=g.getSeconds(); 2080var k=(l>=10?l:"0"+l)+":"+(c>=10?c:"0"+c)+":"+(h>=10?h:"0"+h)+"."+b; 2081var m=k+" \t"+tpGetLevel(Number(a))+" \t"+e+" \t"; 2082if(j&&j.length){m+=j+" :: " 2083}m+=d; 2084switch(Number(a)){case tpConsts.DEBUG:console.log(m); 2085break; 2086case tpConsts.INFO:console.info(m); 2087break; 2088case tpConsts.WARN:console.warn(m); 2089break; 2090case tpConsts.ERROR:case tpConsts.FATAL:console.error(m); 2091break 2092}}function tpGetUseJS(){return"true" 2093}function tpGetCommManagerID(){return tpCommID 2094}if(!self.tpLogLevel){tpLogLevel="warn" 2095}function tpSetLogLevel(a){tpLogLevel=a 2096}function tpGetLogLevel(){return tpLogLevel 2097}function tpGetProperties(){var a=new Object(); 2098a.commManagerId=tpGetCommManagerID(); 2099a.useJS=tpGetUseJS(); 2100a.registeredComponents=tpGetRegisteredIDs(); 2101a.logLevel=tpGetLogLevel(); 2102return a 2103}var tpRegisteredIDArr; 2104function tpRegisterID(b){if(!tpRegisteredIDArr){tpRegisteredIDArr=[] 2105}for(var a=0; 2106a<tpRegisteredIDArr.length; 2107a++){if(tpRegisteredIDArr[a]==b){return 2108}}tpRegisteredIDArr.push(b) 2109}function tpGetRegisteredIDs(){return tpRegisteredIDArr 2110}var tpController; 2111var tpCommID; 2112var tpBridgeID; 2113var tpExternalController; 2114var tpGwtCommManager; 2115var useWorkerIfPossible=false; 2116var gwtWorker; 2117function tpDoInitGwtCommManager(){try{if(tpCommID=="communicationwidget"&&window.tpGwtCommManager===undefined){tpGwtCommManager=new com.theplatform.pdk.CommManager() 2118}else{if((window.tryWorker===undefined||!tryWorker)&&window.tpGwtCommManager===undefined){tpGwtCommManager=new com.theplatform.pdk.CommManager(tpCommID) 2119}}}catch(a){if(window.console!=undefined){console.error("GwtCommManager module failed to load 1!") 2120}else{}}}function tpInitGwtCommManager(b,a){try{if(useWorkerIfPossible&&Worker!=undefined){gwtWorker=new Worker("js/commManagerWorker.js"); 2121tpGwtCommManager=new Object(); 2122tpGwtCommManager.executeMessage=function(d){gwtWorker.postMessage(d) 2123}; 2124gwtWorker.onmessage=function(d){console.log(d.data); 2125if(d.data.destination){tpReceiveMessage(d.data.destination,d.data.message) 2126}}; 2127gwtWorker.onerror=function(d){if(self.console){console.error(d.message) 2128}} 2129}else{tpGwtCommManager=new com.theplatform.pdk.CommManager(tpCommID) 2130}}catch(c){if(a==true){if(console!=undefined){console.error("GwtCommManager module failed to load! 2") 2131}else{}}}}function tpSetCommManagerID(c,e,d,a,b){if(b){useWorkerIfPossible=true 2132}if(c&&e){tpInitGwtCommManager(c) 2133}tpCommID=c; 2134tpBridgeID=c?c:"unknown"; 2135if(window.tpTraceListener===undefined){window.tpTraceListener=function(g){var f=g.data; 2136if(f){tpTrace(f.message,f.timestamp,f.controllerId,f.className,f.level) 2137}}; 2138tpController.addEventListener("OnPdkTrace",window.tpTraceListener) 2139}}
2139function tpReceiveMessage(a,b){tpController.receiveMessage(a,b) 2140}function tpGetPreferredFormats(){if($pdk!==undefined){return $pdk.env.Detect.getInstance().getPreferredFormats() 2141}else{return[] 2142}}function tpGetPlayerFormats(){if($pdk!==undefined){var a=$pdk.env.Detect.getInstance().getPlayerFormats(),b=""; 2143if($pdk.isArray(a)){b=a.join("|") 2144}return b 2145}else{return[] 2146}}var tpHolderName="pdkHolder"; 2147var tpExternalJS; 2148function tpSetPlayerIDForExternal(a){}function tpSetHolderIDForExternal(a){tpHolderName=a 2149}function tpSetPdkBaseDirectory(a){}function tpLoadExternalMediaJS(){tpExternalJS=tpLoadExternalMediaJS.arguments; 2150for(var a=0; 2151a<tpExternalJS.length; 2152a++){tpLoadScript(tpExternalJS[a]) 2153}}function tpCleanupExternal(){if(tpExternalJS){var a=window.document.getElementsByTagName("head")[0].getElementsByTagName("script"); 2154for(var c=0; 2155c<a.length; 2156c++){for(var b=0; 2157b<tpExternalJS.length; 2158b++){if(a[c].src==tpExternalJS[b]){window.document.getElementsByTagName("head")[0].removeChild(a[c]); 2159break 2160}}}tpExternalJS.length=0 2161}if(tpExternalController){tpExternalController.cleanup() 2162}}$pdk.ns("$pdk.interfaces"); 2163$pdk.interfaces.expose=function(b,a){b.Player=$pdk.extend($pdk.shell.Base,{_name:"Player",_markupClass:"tpPlayer",_runtime:"default",_jsViewImpl:"@Bundle:tpPlayerView.js",_markupClass:"tpPlayer",_priority:5,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsPlayerImpl(),_asSwf:"flvPlayer.swf"}); 2164b.Header=$pdk.extend($pdk.shell.Base,{_name:"Header",_markupClass:"tpHeader",_runtime:"default",_jsViewImpl:"",_markupClass:"tpHeader",_priority:2147483647,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsHeaderImpl(),_asSwf:"header.swf"}); 2165b.Navigation=$pdk.extend($pdk.shell.Base,{_name:"Navigation",_markupClass:"tpNavigation",_runtime:"default",_jsViewImpl:"@Bundle:tpNavigationView.js",_markupClass:"tpNavigation",_priority:2147483647,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsNavigationImpl(),_asSwf:"nav.swf"}); 2166b.ClipInfo=$pdk.extend($pdk.shell.Base,{_name:"ClipInfo",_markupClass:"tpClipInfo",_runtime:"default",_jsViewImpl:"@Bundle:tpClipInfoView.js",_markupClass:"tpClipInfo",_priority:40,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsClipInfoImpl(),_asSwf:"info.swf"}); 2167b.CategoryList=$pdk.extend($pdk.shell.Base,{_name:"CategoryList",_markupClass:"tpCategoryList",_runtime:"default",_jsViewImpl:"@Bundle:tpCategoryListView.js",_markupClass:"tpCategoryList",_priority:30,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsCategoryListImpl(),_asSwf:"categoryList.swf"}); 2168b.ReleaseModel=$pdk.extend($pdk.shell.Base,{_name:"ReleaseModel",_markupClass:"tpReleaseModel",_runtime:"default",_jsViewImpl:"@Bundle:tpReleaseModel.js",_markupClass:"tpReleaseModel",_priority:10,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsReleaseModelImpl(),_asSwf:"releaseModel.swf"}); 2169b.ReleaseList=$pdk.extend($pdk.shell.Base,{_name:"ReleaseList",_markupClass:"tpReleaseList",_runtime:"default",_jsViewImpl:"@Bundle:tpReleaseListView.js",_markupClass:"tpReleaseList",_priority:30,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsReleaseListImpl(),_asSwf:"releaseList.swf"}); 2170b.CategoryModel=$pdk.extend($pdk.shell.Base,{_name:"CategoryModel",_markupClass:"tpCategoryModel",_runtime:"default",_jsViewImpl:"",_markupClass:"tpCategoryModel",_priority:50.2,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsCategoryModelImpl(),_asSwf:"categoryModel.swf"}); 2171b.Search=$pdk.extend($pdk.shell.Base,{_name:"Search",_markupClass:"tpSearch",_runtime:"default",_jsViewImpl:"@Bundle:tpSearchView.js",_markupClass:"tpSearch",_priority:2147483647,_env:$pdk.env.Detect.getInstance(),_registry:$pdk.shell.Registry.getInstance(),_config_decorator:new $pdk.shell.DefaultsSearchImpl(),_asSwf:"search.swf"}); 2172$pdk.shell.Factory.CLASS_TABLE={tpPlayer:b.Player,tpHeader:b.Header,tpNavigation:b.Navigation,tpCl
2172ipInfo:b.ClipInfo,tpCategoryList:b.CategoryList,tpReleaseModel:b.ReleaseModel,tpReleaseList:b.ReleaseList,tpCategoryModel:b.CategoryModel,tpSearch:b.Search}; 2173a.setClipInfo=function(d,e,c){this._regFunc("setClipInfo",["com.theplatform.pdk.smil.api.shared.data.Clip","boolean"],[d,e],c) 2174}; 2175a.firstRange=function(d,c){d=typeof(d)==="undefined"?true:d; 2176this._regFunc("firstRange",["boolean"],[d],c) 2177}; 2178a.getCurrentRange=function(c){this._regFunc("getCurrentRange",[],[],c) 2179}; 2180a.previousRange=function(d,c){d=typeof(d)==="undefined"?true:d; 2181this._regFunc("previousRange",["boolean"],[d],c) 2182}; 2183a.nextRange=function(d,c){d=typeof(d)==="undefined"?true:d; 2184this._regFunc("nextRange",["boolean"],[d],c) 2185}; 2186a.search=function(d,c){d=typeof(d)==="undefined"?"":d; 2187this._regFunc("search",["java.lang.String"],[d],c) 2188}; 2189a.hidePlayerCard=function(c,e,d){this._regFunc("hidePlayerCard",["java.lang.String","java.lang.String"],[c,e],d) 2190}; 2191a.addPlayerCard=function(g,k,d,j,e,c,f,h){this._regFunc("addPlayerCard",["java.lang.String","java.lang.String","java.lang.String","java.lang.String","java.lang.String","java.lang.String","int"],[g,k,d,j,e,c,f],h) 2192}; 2193a.showPlayerCard=function(d,g,f,c,e){this._regFunc("showPlayerCard",["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],[d,g,f,c],e) 2194}; 2195a.getDefaultBanners=function(c){this._regFunc("getDefaultBanners",[],[],c) 2196}; 2197a.getValidRegions=function(c){this._regFunc("getValidRegions",[],[],c) 2198}; 2199a.setProperty=function(f,d,g,c,e){this._regFunc("setProperty",["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],[f,d,g,c],e) 2200}; 2201a.clearAnnotations=function(c){this._regFunc("clearAnnotations",[],[],c) 2202}; 2203a.setVolume=function(d,c){this._regFunc("setVolume",["java.lang.Number"],[d],c) 2204}; 2205a.setSubtitleStyle=function(d,c){this._regFunc("setSubtitleStyle",["com.theplatform.pdk.data.SubtitleStyle"],[d],c) 2206}; 2207a.trace=function(e,d,f,c){this._regFunc("trace",["java.lang.String","java.lang.String","java.lang.Number"],[e,d,f],c) 2208}; 2209a.loadSmil=function(d,c,e){this._regFunc("loadSmil",["java.lang.String","java.lang.Boolean"],[d,c],e) 2210}; 2211a.showLinkForm=function(d,c){this._regFunc("showLinkForm",["java.lang.Boolean"],[d],c) 2212}; 2213a.getPlayerVariables=function(d,c){this._regFunc("getPlayerVariables",["java.lang.String[]"],[d],c) 2214}; 2215a.endCurrentRelease=function(c){this._regFunc("endCurrentRelease",[],[],c) 2216}; 2217a.getNextRelease=function(e,c,d){this._regFunc("getNextRelease",["java.lang.Boolean","java.lang.Boolean"],[e,c],d) 2218}; 2219a.previousClip=function(c){this._regFunc("previousClip",[],[],c) 2220}; 2221a.setRelease=function(c,d,e){this._regFunc("setRelease",["com.theplatform.pdk.data.Release","java.lang.Boolean"],[c,d],e) 2222}; 2223a.disablePlayerControls=function(c,d,e){this._regFunc("disablePlayerControls",["java.lang.Boolean","java.lang.String[]"],[c,d],e) 2224}; 2225a.clearAdCookie=function(c){this._regFunc("clearAdCookie",[],[],c) 2226}; 2227a.pause=function(c,d,e){this._regFunc("pause",["java.lang.Boolean","java.lang.Boolean"],[c,e],d) 2228}; 2229a.suspendPlayAll=function(d,c){this._regFunc("suspendPlayAll",["java.lang.Boolean"],[d],c) 2230}; 2231a.loadRelease=function(c,d,e){this._regFunc("loadRelease",["com.theplatform.pdk.data.Release","java.lang.Boolean"],[c,d],e) 2232}; 2233a.setVideoScalingMethod=function(d,c){this._regFunc("setVideoScalingMethod",["java.lang.String"],[d],c) 2234}; 2235a.refreshCategoryModel=function(d,c,e){this._regFunc("refreshCategoryModel",["java.lang.String","java.lang.String"],[d,e],c) 2236}; 2237a.getSubtitleStyle=function(c){this._regFunc("getSubtitleStyle",[],[],c) 2238}; 2239a.previewNextRefreshReleaseModel=function(c){this._regFunc("previewNextRefreshReleaseModel",[],[],c) 2240}; 2241a.setBandwidthPreferences=function(d,c){this._regFunc("setBandwidthPreferences",["com.theplatform.pdk.smil.api.shared.data.BandwidthPreferences"],[d],c) 2242}; 2243a.getAnnotations=function(c){this._regFunc("getAnnotations",[],[],c) 2244}; 2245a.setShowSubtitles=function(c,d){this._regFunc("setShowSubtitles",["java.lang.Boolean"],[c],d) 2246}; 2247a.setVariable=function(f,d,g,c,e){this._regFunc("setVariable",["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],[f,d,g,c],e) 2248}; 2249a.getSubtitleLanguage=function(c,d){this._regFunc("getSubtitleLanguage",["java.lang.String"],[c],d) 2250}; 2251a.setPlayerMessage=function(e,c,d){this._regFunc("setPlayerMessage",["java.lang.String","java.lang.Number"],[e,c],d) 2252}; 2253a.setReleaseURL=function(d,c,e){this._regFunc("setReleaseURL",["java.lang.String","java.lang.Boolean"],[d,c],e) 2254}; 2255a.nextClip=function(c){this._regFunc("nextClip",[],[],c) 2256}; 2257a.clearCategorySelection=function(c){this._regFunc("clearCategorySelection",[],[],c) 2258}; 2259a.mute=function(d,c){this._regFunc("mute",["java.lang.Boolean"],[d],c) 2260}; 2261a.clearCurrentRelease=function(c){this._regFunc("clearCurrentRelease",[],[],c) 2262}; 2263a.cancelMedia=function(c,d){this._regFunc("cancelMedia",["java.lang.Object"],[c],d) 2264}; 2265a.showEmailForm=function(d,c){this._regFunc("showEmailForm",["java.lang.Boolean"],[d],c) 2266}; 2267a.seekToPosition=function(c,d){this._regFunc("seekToPosition",["java.lang.Number"],[c],d) 2268}; 2269a.seekToPercentage=function(d,c){this._regFunc("seekToPercentage",["java.lang.Number"],[d],c) 2270}; 2271a.removeAnnotation=function(c,d){this._regFunc("removeAnnotation",["com.theplatform.pdk.data.Annotation"],[c],d) 2272}; 2273a.useDefaultEmailForm=function(c,d){this._regFunc("useDefaultEmailForm",["java.lang.Boolean"],[c],d) 2274}; 2275a.useDefaultPlayOverlay=function(c,d){this._regFunc("useDefaultPlayOverlay",["java.lang.Boolean"],[c],d) 2276}; 2277a.setSubtitleLanguage=function(d,c){this._regFunc("setSubtitleLanguage",["java.lang.String"],[d],c) 2278}; 2279a.useDefaultLinkForm=function(c,d){this._regFunc("useDefaultLinkForm",["java.lang.Boolean"],[c],d) 2280}; 2281a.getCurrentRange=function(c){this._regFunc("getCurrentRange",[],[],c) 2282}; 2283a.showFullScreen=function(c,d){this._regFunc("showFullScreen",["java.lang.Boolean"],[c],d) 2284}; 2285a.loadReleaseURL=function(c,d,e){this._regFunc("loadReleaseURL",["java.lang.String","java.lang.Boolean"],[c,d],e) 2286}; 2287a.clickPlayButton=function(c){this._regFunc("clickPlayButton",[],[],c) 2288}; 2289a.playPrevious=function(d,c){this._regFunc("playPrevious",["java.lang.Boolean"],[d],c) 2290}; 2291a.setSmil=function(c,d){this._regFunc("setSmil",["java.lang.String"],[c],d) 2292}; 2293a.clearPlayerMessage=function(c){this._regFunc("clearPlayerMessage",[],[],c) 2294}; 2295a.addAnnotation=function(c,d){this._regFunc("addAnnotation",["com.theplatform.pdk.data.Annotation"],[c],d) 2296}; 2297a.getBandwidthPreferences=function(c){this._regFunc("getBandwidthPreferences",[],[],c) 2298}; 2299a.getNextClip=function(c){this._regFunc("getNextClip",[],[],c) 2300}; 2301a.previewRefreshReleaseModel=function(c,l,e,f,d,j,k,g,h){this._regFunc("previewRefreshReleaseModel",["java.lang.String","java.lang.String","com.theplatform.pdk.data.Sort","com.theplatform.pdk.data.Range","java.lang.String[]","java.lang.String[]","java.lang.String[]","java.lang.String"],[c,l,e,f,d,j,g,h],k) 2302}; 2303a.setCurrentReleaseList=function(d,c){this._regFunc("setCurrentReleaseList",["java.lang.String"],[d],c) 2304}; 2305a.refreshReleaseModel=function(c,l,e,f,d,j,k,g,h){this._regFunc("refreshReleaseModel",["java.lang.String","java.lang.String","com.theplatform.pdk.data.Sort","com.theplatform.pdk.data.Range","java.lang.String[]","java.lang.String[]","java.lang.String[]","java.lang.String"],[c,l,e,f,d,j,g,h],k) 2306}; 2307a.resetPlayer=function(c){this._regFunc("resetPlayer",[],[],c) 2308}; 2309a.playNext=function(e,c,d){this._regFunc("playNext",["java.lang.Boolean","java.lang.Boolean"],[e,c],d) 2310}; 2311a.setToken=function(c,e,d){this._regFunc("setToken",["java.lang.String","java.lang.String"],[c,e],d) 2312}; 2313a.getUseDefaultPlayOverlay=function(c){this._regFunc("getUseDefaultPlayOverlay",[],[],c) 2314}; 2315a.hidePlayerRegions=function(d,c,e){this._regFunc("hidePlayerRegions",["java.lang.Boolean","java.lang.String[]"],[d,c],e) 2316}; 2317a.setPreviewImageUrl=function(c,d){this._regFunc("setPreviewImageUrl",["java.lang.String"],[c],d) 2318}; 2319a.setClipInfo=function(d,e,c){this._regFunc("setClipInfo",["com.theplatform.pdk.smil.api.shared.data.Clip","java.lang.Boolean"],[d,e],c) 2320}; 2321a.setExpandVideo=function(d,c){this._regFunc("setExpandVideo",["java.lang.String"],[d],c) 2322} 2323}; 2324(function(h,e){var d,c,b,g,j,a,f,k; 2325if(typeof(window.__tp_pdk_set_versions)==="function"){window.__tp_pdk_set_versions(); 2326if(typeof(window.console)==="object"){console.log("thePlatform PDK"); 2327console.log($pdk.version.toString()) 2328}}e=typeof(e)==="boolean"?e:false; 2329if(!e){g=$pdk.env.Detect.getInstance(); 2330j=new $pdk.env.HttpHead.Processor(g); 2331j.process(document); 2332if(typeof(g.baseDir())!=="string"||g.baseDir().length<1){if(typeof(window.console)==="object"&&console.error){console.error("No PDK base URL could be detected. Asynchronous load of PDK requies a tp:baseUrl meta tag.") 2333}}if($pdk.isIE){document.createElement("video") 2334}c=g.getConfigSet("enableexternalcontroller"); 2335c=$pdk.isEmpty(c)?[]:c.toArray(); 2336c=c.length<1?"false":c[0]; 2337c=c.toLowerCase()==="true"; 2338window.tpCommID="communicationwidget";
2339window.tpBridgeID=typeof(window.tpCommID)==="string"?window.tpCommID:"unknown"; 2340b=$pdk.Entrypoint.getInstance(); 2341a=$pdk.shell.Registry.getInstance(); 2342f=new $pdk.shell.SwfSerializedLoader(); 2343a.bind(f); 2344h.tpController=new $pdk.queue.Controller(g); 2345$pdk.interfaces.expose(h,h.tpController); 2346if(g.getAutoInitialize()){b.injectLoadingStyle($pdk.isDomReady()) 2347}if(window.tpTraceListener===undefined){window.tpTraceListener=function(m){var l=m.data; 2348if(l){tpTrace(l.message,l.timestamp,l.controllerId,l.className,l.level) 2349}}; 2350tpController.addEventListener("OnPdkTrace",window.tpTraceListener) 2351}h.tpController.onControllerComplete=function(){f.onSwfReady() 2352}; 2353b.configure(a,g); 2354$pdk.controller=h.tpController; 2355$pdk.initialize=function(){b.initialize() 2356}; 2357$pdk.getConfiguration=function(l){return a.getShells().get(l) 2358}; 2359$pdk.gwtBootloader(g); 2360if(c){new $pdk.queue.IFrameListener() 2361}}}(window,window._PDK_SUPRESS_AUTOINIT));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.