text: function aa(a){return function(){return this[a]}}var e,ba=ba||{},l=this;function ca(a){a=a.split(".");for(var b=l,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function da(){}
  function ea(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
  else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function m(a){return void 0!==a}function p(a){return"array"==ea(a)}function fa(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function q(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==ea(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function r(a){return a[ja]||(a[ja]=++ka)}
  var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
  function t(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return t.apply(null,arguments)}function na(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var w=Date.now||function(){return+new Date};function x(a,b){function c(){}c.prototype=b.prototype;a.i=b.prototype;a.prototype=new c};function oa(a){Error.captureStackTrace?Error.captureStackTrace(this,oa):this.stack=Error().stack||"";a&&(this.message=String(a))}x(oa,Error);oa.prototype.name="CustomError";function pa(a,b){for(var c=a.split("%s"),d="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)d+=c.shift()+f.shift();return d+c.join("%s")}function qa(a){if(!ra.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(sa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ta,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ua,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(va,"&quot;"));return a}var sa=/&/g,ta=/</g,ua=/>/g,va=/\"/g,ra=/[&<>\"]/;
  function y(a,b){var c=m(void 0)?a.toFixed(void 0):String(a),d=c.indexOf(".");-1==d&&(d=c.length);d=Math.max(0,b-d);return Array(d+1).join("0")+c}function wa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function xa(a){var b=q(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,f){return b+f.toUpperCase()})};function ya(a,b){b.unshift(a);oa.call(this,pa.apply(null,b));b.shift()}x(ya,oa);ya.prototype.name="AssertionError";function za(a,b){throw new ya("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};function Aa(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Ba(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Ca(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Da(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ea(a){for(var b in a)return!1;return!0}var Fa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
  function Ga(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var g=0;g<Fa.length;g++)c=Fa[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var z=Array.prototype,Ha=z.indexOf?function(a,b,c){return z.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(q(a))return q(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ia=z.forEach?function(a,b,c){z.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=q(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},Ja=z.filter?function(a,b,c){return z.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=[],g=0,h=q(a)?
  a.split(""):a,k=0;k<d;k++)if(k in h){var s=h[k];b.call(c,s,k,a)&&(f[g++]=s)}return f},Ka=z.some?function(a,b,c){return z.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=q(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return!0;return!1};function La(a){var b;a:{b=Ma;for(var c=a.length,d=q(a)?a.split(""):a,f=0;f<c;f++)if(f in d&&b.call(void 0,d[f],f,a)){b=f;break a}b=-1}return 0>b?null:q(a)?a.charAt(b):a[b]}
  function Na(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Oa(a,b){var c=Ha(a,b),d;(d=0<=c)&&z.splice.call(a,c,1);return d}function Pa(a){return z.concat.apply(z,arguments)}function Qa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ra(a,b,c){return 2>=arguments.length?z.slice.call(a,b):z.slice.call(a,b,c)};var Sa;function Ta(a,b){var c;c=a.className;c=q(c)&&c.match(/\S+/g)||[];for(var d=Ra(arguments,1),f=c.length+d.length,g=c,h=0;h<d.length;h++)0<=Ha(g,d[h])||g.push(d[h]);a.className=c.join(" ");return c.length==f};var Ua,Va,Wa,Xa,Ya;function Za(){return l.navigator?l.navigator.userAgent:null}function $a(){return l.navigator}Xa=Wa=Va=Ua=!1;var ab;if(ab=Za()){var bb=$a();Ua=0==ab.indexOf("Opera");Va=!Ua&&-1!=ab.indexOf("MSIE");Wa=!Ua&&-1!=ab.indexOf("WebKit");Xa=!Ua&&!Wa&&"Gecko"==bb.product}var cb=Ua,A=Va,B=Xa,C=Wa,db=$a();Ya=-1!=(db&&db.platform||"").indexOf("Mac");var eb=!!$a()&&-1!=($a().appVersion||"").indexOf("X11");function fb(){var a=l.document;return a?a.documentMode:void 0}var gb;
  a:{var hb="",ib;if(cb&&l.opera)var jb=l.opera.version,hb="function"==typeof jb?jb():jb;else if(B?ib=/rv\:([^\);]+)(\)|;)/:A?ib=/MSIE\s+([^\);]+)(\)|;)/:C&&(ib=/WebKit\/(\S+)/),ib)var kb=ib.exec(Za()),hb=kb?kb[1]:"";if(A){var lb=fb();if(lb>parseFloat(hb)){gb=String(lb);break a}}gb=hb}var mb={};
  function D(a){var b;if(!(b=mb[a])){b=0;for(var c=String(gb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(c.length,d.length),g=0;0==b&&g<f;g++){var h=c[g]||"",k=d[g]||"",s=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var v=s.exec(h)||["","",""],u=n.exec(k)||["","",""];if(0==v[0].length&&0==u[0].length)break;b=((0==v[1].length?0:parseInt(v[1],10))<(0==u[1].length?0:parseInt(u[1],10))?-1:(0==v[1].length?0:parseInt(v[1],
  10))>(0==u[1].length?0:parseInt(u[1],10))?1:0)||((0==v[2].length)<(0==u[2].length)?-1:(0==v[2].length)>(0==u[2].length)?1:0)||(v[2]<u[2]?-1:v[2]>u[2]?1:0)}while(0==b)}b=mb[a]=0<=b}return b}var nb=l.document,ob=nb&&A?fb()||("CSS1Compat"==nb.compatMode?parseInt(gb,10):5):void 0;function pb(a,b){this.width=a;this.height=b}e=pb.prototype;e.r=function(){return new pb(this.width,this.height)};e.toString=function(){return"("+this.width+" x "+this.height+")"};e.u=function(){return!(this.width*this.height)};function qb(a,b){return a.width<=b.width&&a.height<=b.height}e.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};e.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var rb=!A||A&&9<=ob,sb=!B&&!A||A&&A&&9<=ob||B&&D("1.9.1");A&&D("9");function tb(a,b){Aa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in ub?a.setAttribute(ub[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var ub={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
  function vb(a,b,c){return wb(document,arguments)}function wb(a,b){var c=b[0],d=b[1];if(!rb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',qa(d.name),'"');if(d.type){c.push(' type="',qa(d.type),'"');var f={};Ga(f,d);delete f.type;d=f}c.push(">");c=c.join("")}c=a.createElement(c);d&&(q(d)?c.className=d:p(d)?Ta.apply(null,[c].concat(d)):tb(c,d));2<b.length&&xb(a,c,b);return c}
  function xb(a,b,c){function d(c){c&&b.appendChild(q(c)?a.createTextNode(c):c)}for(var f=2;f<c.length;f++){var g=c[f];!fa(g)||ia(g)&&0<g.nodeType?d(g):Ia(yb(g)?Qa(g):g,d)}}function zb(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Ab(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Bb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
  function yb(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(ha(a))return"function"==typeof a.item}return!1}function Cb(a){this.Fa=a||l.document||document}e=Cb.prototype;e.hc=tb;e.Sc=function(a,b,c){return wb(this.Fa,arguments)};e.createElement=function(a){return this.Fa.createElement(a)};e.createTextNode=function(a){return this.Fa.createTextNode(String(a))};e.appendChild=function(a,b){a.appendChild(b)};
  e.Tb=function(a){return sb&&void 0!=a.children?a.children:Ja(a.childNodes,function(a){return 1==a.nodeType})};function E(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}E.prototype.r=function(){return new E(this.top,this.right,this.bottom,this.left)};E.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};E.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
  E.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function F(a,b,c){q(b)?Db(a,c,b):Aa(b,na(Db,a))}function Db(a,b,c){var d;a:if(d=wa(c),void 0===a.style[d]&&(c=(C?"Webkit":B?"Moz":A?"ms":cb?"O":null)+xa(c),void 0!==a.style[c])){d=c;break a}d&&(a.style[d]=b)}function G(a,b){var c=Bb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
  function H(a,b,c){if(b instanceof pb)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=Eb(b,!0);a.style.height=Eb(c,!0)}function Eb(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
  function Fb(a){var b=Gb;if("none"!=(G(a,"display")||(a.currentStyle?a.currentStyle.display:null)||a.style&&a.style.display))return b(a);var c=a.style,d=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=f;return a}
  function Gb(a){var b=a.offsetWidth,c=a.offsetHeight,d=C&&!b&&!c;if((!m(b)||d)&&a.getBoundingClientRect){var f;a:{try{f=a.getBoundingClientRect()}catch(g){f={left:0,top:0,right:0,bottom:0};break a}A&&(a=a.ownerDocument,f.left-=a.documentElement.clientLeft+a.body.clientLeft,f.top-=a.documentElement.clientTop+a.body.clientTop)}return new pb(f.right-f.left,f.bottom-f.top)}return new pb(b,c)}
  function Hb(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var f=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return f}function Ib(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Hb(a,c):0}var Jb={thin:2,medium:4,thick:6};
  function Kb(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Jb?Jb[c]:Hb(a,c)}function Lb(a){var b={};Ia(a.split(/\s*;\s*/),function(a){a=a.split(/\s*:\s*/);2==a.length&&(b[wa(a[0].toLowerCase())]=a[1])});return b};function Mb(a){if("function"==typeof a.n)return a.n();if(q(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ca(a)}function Nb(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(fa(a)||q(a))Ia(a,b,c);else{var d;if("function"==typeof a.N)d=a.N();else if("function"!=typeof a.n)if(fa(a)||q(a)){d=[];for(var f=a.length,g=0;g<f;g++)d.push(g)}else d=Da(a);else d=void 0;for(var f=Mb(a),g=f.length,h=0;h<g;h++)b.call(c,f[h],d&&d[h],a)}};function Ob(a,b){this.k={};this.h=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.hb(a)}e=Ob.prototype;e.e=0;e.j=aa("e");e.n=function(){Pb(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.k[this.h[b]]);return a};e.N=function(){Pb(this);return this.h.concat()};e.ga=function(a){return Qb(this.k,a)};e.u=function(){return 0==this.e};e.clear=function(){this.k={};this.e=this.h.length=0};
  e.remove=function(a){return Qb(this.k,a)?(delete this.k[a],this.e--,this.h.length>2*this.e&&Pb(this),!0):!1};function Pb(a){if(a.e!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];Qb(a.k,d)&&(a.h[c++]=d);b++}a.h.length=c}if(a.e!=a.h.length){for(var f={},c=b=0;b<a.h.length;)d=a.h[b],Qb(f,d)||(a.h[c++]=d,f[d]=1),b++;a.h.length=c}}e.get=function(a,b){return Qb(this.k,a)?this.k[a]:b};e.set=function(a,b){Qb(this.k,a)||(this.e++,this.h.push(a));this.k[a]=b};
  e.hb=function(a){var b;a instanceof Ob?(b=a.N(),a=a.n()):(b=Da(a),a=Ca(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};e.r=function(){return new Ob(this)};function Qb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Rb(a){this.k=new Ob;a&&this.hb(a)}function Sb(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+r(a):b.substr(0,1)+a}e=Rb.prototype;e.j=function(){return this.k.j()};e.add=function(a){this.k.set(Sb(a),a)};e.hb=function(a){a=Mb(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};e.ya=function(a){a=Mb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};e.remove=function(a){return this.k.remove(Sb(a))};e.clear=function(){this.k.clear()};e.u=function(){return this.k.u()};e.n=function(){return this.k.n()};
  e.r=function(){return new Rb(this)};function Tb(a){return Ub(a||arguments.callee.caller,[])}
  function Ub(a,b){var c=[];if(0<=Ha(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Vb(a)+"(");for(var d=a.arguments,f=0;f<d.length;f++){0<f&&c.push(", ");var g;g=d[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=Vb(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+"...");c.push(g)}b.push(a);c.push(")\n");try{c.push(Ub(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?
  c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Vb(a){if(Wb[a])return Wb[a];a=String(a);if(!Wb[a]){var b=/function ([^\(]+)/.exec(a);Wb[a]=b?b[1]:"[Anonymous]"}return Wb[a]}var Wb={};function Xb(a,b,c,d,f){this.reset(a,b,c,d,f)}Xb.prototype.Sb=null;Xb.prototype.Rb=null;var Yb=0;Xb.prototype.reset=function(a,b,c,d,f){"number"==typeof f||Yb++;d||w();this.va=a;this.kd=b;delete this.Sb;delete this.Rb};Xb.prototype.gc=function(a){this.va=a};function Zb(a){this.ld=a}Zb.prototype.W=null;Zb.prototype.va=null;Zb.prototype.jb=null;Zb.prototype.Ub=null;function $b(a,b){this.name=a;this.value=b}$b.prototype.toString=aa("name");var ac=new $b("SEVERE",1E3),bc=new $b("WARNING",900),cc=new $b("INFO",800),dc=new $b("CONFIG",700),ec=new $b("FINE",500);e=Zb.prototype;e.getParent=aa("W");e.Tb=function(){this.jb||(this.jb={});return this.jb};e.gc=function(a){this.va=a};
  function fc(a){if(a.va)return a.va;if(a.W)return fc(a.W);za("Root logger has no level set.");return null}e.log=function(a,b,c){if(a.value>=fc(this).value)for(a=this.Zc(a,b,c),b="log:"+a.kd,l.console&&(l.console.timeStamp?l.console.timeStamp(b):l.console.markTimeline&&l.console.markTimeline(b)),l.msWriteProfilerMark&&l.msWriteProfilerMark(b),b=this;b;){c=b;var d=a;if(c.Ub)for(var f=0,g=void 0;g=c.Ub[f];f++)g(d);b=b.getParent()}};
  e.Zc=function(a,b,c){var d=new Xb(a,String(b),this.ld);if(c){d.Sb=c;var f;var g=arguments.callee.caller;try{var h;var k=ca("window.location.href");if(q(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};else{var s,n,v=!1;try{s=c.lineNumber||c.Bd||"Not available"}catch(u){s="Not available",v=!0}try{n=c.fileName||c.filename||c.sourceURL||l.$googDebugFname||k}catch($e){n="Not available",v=!0}h=!v&&c.lineNumber&&c.fileName&&c.stack?c:{message:c.message,name:c.name,
  lineNumber:s,fileName:n,stack:c.stack||"Not available"}}f="Message: "+qa(h.message)+'\nUrl: <a href="view-source:'+h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+qa(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+qa(Tb(g)+"-> ")}catch(ye){f="Exception trying to expose exception! You win, we lose. "+ye}d.Rb=f}return d};e.info=function(a,b){this.log(cc,a,b)};var gc={},hc=null;
  function I(a){hc||(hc=new Zb(""),gc[""]=hc,hc.gc(dc));var b;if(!(b=gc[a])){b=new Zb(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=I(a.substr(0,c));c.Tb()[d]=b;b.W=c;gc[a]=b}return b};function ic(){this.dc=w()}new ic;ic.prototype.set=function(a){this.dc=a};ic.prototype.reset=function(){this.set(w())};ic.prototype.get=aa("dc");var jc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function kc(a){if(lc){lc=!1;var b=l.location;if(b){var c=b.href;if(c&&(c=(c=kc(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw lc=!0,Error();}}return a.match(jc)}var lc=C;function mc(a,b){var c;if(a instanceof mc)this.t=m(b)?b:a.t,nc(this,a.la),c=a.bb,J(this),this.bb=c,c=a.qa,J(this),this.qa=c,oc(this,a.Ta),c=a.da,J(this),this.da=c,pc(this,a.D.r()),c=a.Ia,J(this),this.Ia=c;else if(a&&(c=kc(String(a)))){this.t=!!b;nc(this,c[1]||"",!0);var d=c[2]||"";J(this);this.bb=d?decodeURIComponent(d):"";d=c[3]||"";J(this);this.qa=d?decodeURIComponent(d):"";oc(this,c[4]);d=c[5]||"";J(this);this.da=d?decodeURIComponent(d):"";pc(this,c[6]||"",!0);c=c[7]||"";J(this);this.Ia=c?decodeURIComponent(c):
  ""}else this.t=!!b,this.D=new qc(null,0,this.t)}e=mc.prototype;e.la="";e.bb="";e.qa="";e.Ta=null;e.da="";e.Ia="";e.ed=!1;e.t=!1;e.toString=function(){var a=[],b=this.la;b&&a.push(rc(b,sc),":");if(b=this.qa){a.push("//");var c=this.bb;c&&a.push(rc(c,sc),"@");a.push(encodeURIComponent(String(b)));b=this.Ta;null!=b&&a.push(":",String(b))}if(b=this.da)this.qa&&"/"!=b.charAt(0)&&a.push("/"),a.push(rc(b,"/"==b.charAt(0)?tc:uc));(b=this.D.toString())&&a.push("?",b);(b=this.Ia)&&a.push("#",rc(b,vc));return a.join("")};
  e.r=function(){return new mc(this)};function nc(a,b,c){J(a);a.la=c?b?decodeURIComponent(b):"":b;a.la&&(a.la=a.la.replace(/:$/,""))}function oc(a,b){J(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ta=b}else a.Ta=null}function pc(a,b,c){J(a);b instanceof qc?(a.D=b,a.D.Cb(a.t)):(c||(b=rc(b,wc)),a.D=new qc(b,0,a.t))}function J(a){if(a.ed)throw Error("Tried to modify a read-only Uri");}e.Cb=function(a){this.t=a;this.D&&this.D.Cb(a);return this};
  function rc(a,b){return q(a)?encodeURI(a).replace(b,xc):null}function xc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var sc=/[#\/\?@]/g,uc=/[\#\?:]/g,tc=/[\#\?]/g,wc=/[\#\?@]/g,vc=/#/g;function qc(a,b,c){this.q=a||null;this.t=!!c}
  function K(a){if(!a.g&&(a.g=new Ob,a.e=0,a.q))for(var b=a.q.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),f=null,g=null;0<=d?(f=b[c].substring(0,d),g=b[c].substring(d+1)):f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));f=yc(a,f);a.add(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}e=qc.prototype;e.g=null;e.e=null;e.j=function(){K(this);return this.e};e.add=function(a,b){K(this);this.q=null;a=yc(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.e++;return this};
  e.remove=function(a){K(this);a=yc(this,a);return this.g.ga(a)?(this.q=null,this.e-=this.g.get(a).length,this.g.remove(a)):!1};e.clear=function(){this.g=this.q=null;this.e=0};e.u=function(){K(this);return 0==this.e};e.ga=function(a){K(this);a=yc(this,a);return this.g.ga(a)};e.N=function(){K(this);for(var a=this.g.n(),b=this.g.N(),c=[],d=0;d<b.length;d++)for(var f=a[d],g=0;g<f.length;g++)c.push(b[d]);return c};
  e.n=function(a){K(this);var b=[];if(a)this.ga(a)&&(b=Pa(b,this.g.get(yc(this,a))));else{a=this.g.n();for(var c=0;c<a.length;c++)b=Pa(b,a[c])}return b};e.set=function(a,b){K(this);this.q=null;a=yc(this,a);this.ga(a)&&(this.e-=this.g.get(a).length);this.g.set(a,[b]);this.e++;return this};e.get=function(a,b){var c=a?this.n(a):[];return 0<c.length?String(c[0]):b};
  e.toString=function(){if(this.q)return this.q;if(!this.g)return"";for(var a=[],b=this.g.N(),c=0;c<b.length;c++)for(var d=b[c],f=encodeURIComponent(String(d)),d=this.n(d),g=0;g<d.length;g++){var h=f;""!==d[g]&&(h+="="+encodeURIComponent(String(d[g])));a.push(h)}return this.q=a.join("&")};e.r=function(){var a=new qc;a.q=this.q;this.g&&(a.g=this.g.r(),a.e=this.e);return a};function yc(a,b){var c=String(b);a.t&&(c=c.toLowerCase());return c}
  e.Cb=function(a){a&&!this.t&&(K(this),this.q=null,Nb(this.g,function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.remove(d),0<a.length&&(this.q=null,this.g.set(yc(this,d),Qa(a)),this.e+=a.length))},this));this.t=a};var zc="closure_listenable_"+(1E6*Math.random()|0);function Ac(a){return!(!a||!a[zc])}var Bc=0;function Cc(a,b,c,d,f,g){this.J=a;this.cc=b;this.src=c;this.type=d;this.capture=!!f;this.Z=g;this.key=++Bc;this.Q=this.fa=!1}function Dc(a){a.Q=!0;a.J=null;a.cc=null;a.src=null;a.Z=null};var Ec=!A||A&&9<=ob,Fc=A&&!D("9");!C||D("528");B&&D("1.9b")||A&&D("8")||cb&&D("9.5")||C&&D("528");B&&!D("8")||A&&D("9");function L(){0!=Gc&&(Hc[r(this)]=this)}var Gc=0,Hc={};L.prototype.ha=!1;L.prototype.m=function(){if(!this.ha&&(this.ha=!0,this.f(),0!=Gc)){var a=r(this);delete Hc[a]}};L.prototype.f=function(){if(this.$b)for(;this.$b.length;)this.$b.shift()()};function M(a,b){this.type=a;this.currentTarget=this.target=b}e=M.prototype;e.f=function(){};e.m=function(){};e.ea=!1;e.defaultPrevented=!1;e.ec=!0;e.preventDefault=function(){this.defaultPrevented=!0;this.ec=!1};function Ic(a){Ic[" "](a);return a}Ic[" "]=da;function Jc(a,b){a&&Kc(this,a,b)}x(Jc,M);e=Jc.prototype;e.target=null;e.relatedTarget=null;e.offsetX=0;e.offsetY=0;e.clientX=0;e.clientY=0;e.screenX=0;e.screenY=0;e.button=0;e.keyCode=0;e.charCode=0;e.ctrlKey=!1;e.altKey=!1;e.shiftKey=!1;e.metaKey=!1;e.Qb=null;
  function Kc(a,b,c){var d=a.type=b.type;M.call(a,d);a.target=b.target||b.srcElement;a.currentTarget=c;if(c=b.relatedTarget){if(B){var f;a:{try{Ic(c.nodeName);f=!0;break a}catch(g){}f=!1}f||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;a.offsetX=C||void 0!==b.offsetX?b.offsetX:b.layerX;a.offsetY=C||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||0;
  a.screenY=b.screenY||0;a.button=b.button;a.keyCode=b.keyCode||0;a.charCode=b.charCode||("keypress"==d?b.keyCode:0);a.ctrlKey=b.ctrlKey;a.altKey=b.altKey;a.shiftKey=b.shiftKey;a.metaKey=b.metaKey;a.state=b.state;a.Qb=b;b.defaultPrevented&&a.preventDefault();delete a.ea}e.preventDefault=function(){Jc.i.preventDefault.call(this);var a=this.Qb;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Fc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};e.f=function(){};var Lc={},N={},O={},Mc={};function Nc(a,b,c,d,f){if(p(b)){for(var g=0;g<b.length;g++)Nc(a,b[g],c,d,f);return null}c=Oc(c);return Ac(a)?a.Pa(b,c,d,f):Pc(a,b,c,!1,d,f)}
  function Pc(a,b,c,d,f,g){if(!b)throw Error("Invalid event type");f=!!f;var h=N;b in h||(h[b]={e:0});h=h[b];f in h||(h[f]={e:0},h.e++);var h=h[f],k=r(a),s;if(h[k]){s=h[k];for(var n=0;n<s.length;n++)if(h=s[n],h.J==c&&h.Z==g){if(h.Q)break;d||(s[n].fa=!1);return s[n]}}else s=h[k]=[],h.e++;n=Qc();h=new Cc(c,n,a,b,f,g);h.fa=d;n.src=a;n.J=h;s.push(h);O[k]||(O[k]=[]);O[k].push(h);a.addEventListener?a.addEventListener(b,n,f):a.attachEvent(b in Mc?Mc[b]:Mc[b]="on"+b,n);return Lc[h.key]=h}
  function Qc(){var a=Rc,b=Ec?function(c){return a.call(b.src,b.J,c)}:function(c){c=a.call(b.src,b.J,c);if(!c)return c};return b}function P(a,b,c,d,f){if(p(b)){for(var g=0;g<b.length;g++)P(a,b[g],c,d,f);return null}c=Oc(c);return Ac(a)?a.vb(b,c,d,f):Pc(a,b,c,!0,d,f)}function Sc(a,b,c,d,f){if(p(b))for(var g=0;g<b.length;g++)Sc(a,b[g],c,d,f);else if(c=Oc(c),Ac(a))a.ma(b,c,d,f);else if(d=!!d,a=Tc(a,b,d))for(g=0;g<a.length;g++)if(a[g].J==c&&a[g].capture==d&&a[g].Z==f){Uc(a[g]);break}}
  function Uc(a){if(ga(a)||!a||a.Q)return!1;var b=a.src;if(Ac(b))return Vc(b.B,a);var c=a.type,d=a.cc,f=a.capture;b.removeEventListener?b.removeEventListener(c,d,f):b.detachEvent&&b.detachEvent(c in Mc?Mc[c]:Mc[c]="on"+c,d);b=r(b);O[b]&&(d=O[b],Oa(d,a),0==d.length&&delete O[b]);Dc(a);if(d=N[c][f][b])Oa(d,a),0==d.length&&(delete N[c][f][b],N[c][f].e--),0==N[c][f].e&&(delete N[c][f],N[c].e--),0==N[c].e&&delete N[c];delete Lc[a.key];return!0}
  function Wc(a){var b=0;if(null!=a)if(a&&Ac(a))a.B&&a.B.ya(void 0);else{if(a=r(a),O[a]){a=O[a];for(var c=a.length-1;0<=c;c--)Uc(a[c]),b++}}else Aa(Lc,function(a){Uc(a);b++})}function Tc(a,b,c){var d=N;return b in d&&(d=d[b],c in d&&(d=d[c],a=r(a),d[a]))?d[a]:null}function Xc(a,b,c){var d=1;b=r(b);if(a[b])for(a=Qa(a[b]),b=0;b<a.length;b++){var f=a[b];f&&!f.Q&&(d&=!1!==Yc(f,c))}return Boolean(d)}function Yc(a,b){var c=a.J,d=a.Z||a.src;a.fa&&Uc(a);return c.call(d,b)}
  function Rc(a,b){if(a.Q)return!0;var c=a.type,d=N;if(!(c in d))return!0;var d=d[c],f,g;if(!Ec){f=b||ca("window.event");var c=!0 in d,h=!1 in d;if(c){if(0>f.keyCode||void 0!=f.returnValue)return!0;a:{var k=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){k=!0}if(k||void 0==f.returnValue)f.returnValue=!0}}k=new Jc;Kc(k,f,this);f=!0;try{if(c){for(var n=[],v=k.currentTarget;v;v=v.parentNode)n.push(v);g=d[!0];for(var u=n.length-1;!k.ea&&0<=u;u--)k.currentTarget=n[u],f&=Xc(g,n[u],k);if(h)for(g=d[!1],
  u=0;!k.ea&&u<n.length;u++)k.currentTarget=n[u],f&=Xc(g,n[u],k)}else f=Yc(a,k)}finally{n&&(n.length=0)}return f}d=new Jc(b,this);return f=Yc(a,d)}var Zc="__closure_events_fn_"+(1E9*Math.random()>>>0);function Oc(a){return ha(a)?a:a[Zc]||(a[Zc]=function(b){return a.handleEvent(b)})};var Q={};var R;
  R={tc:["BC","AD"],sc:["Before Christ","Anno Domini"],xc:"JFMAMJJASOND".split(""),Dc:"JFMAMJJASOND".split(""),wc:"January February March April May June July August September October November December".split(" "),Cc:"January February March April May June July August September October November December".split(" "),zc:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Fc:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Ic:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Hc:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  Bc:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Gc:"Sun Mon Tue Wed Thu Fri Sat".split(" "),zd:"SMTWTFS".split(""),Ec:"SMTWTFS".split(""),Ac:["Q1","Q2","Q3","Q4"],yc:["1st quarter","2nd quarter","3rd quarter","4th quarter"],qc:["AM","PM"],Fb:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Gb:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],rc:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],uc:6,Ad:[5,6],vc:5};function $c(a,b,c){ga(a)?(this.b=new Date(a,b||0,c||1),ad(this,c||1)):ia(a)?(this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate()),ad(this,a.getDate())):(this.b=new Date(w()),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0))}e=$c.prototype;e.Ga=R.uc;e.Ha=R.vc;e.r=function(){var a=new $c(this.b);a.Ga=this.Ga;a.Ha=this.Ha;return a};e.getFullYear=function(){return this.b.getFullYear()};e.getYear=function(){return this.getFullYear()};e.getMonth=function(){return this.b.getMonth()};
  e.getDate=function(){return this.b.getDate()};e.getTime=function(){return this.b.getTime()};e.getDay=function(){return this.b.getDay()};e.getUTCFullYear=function(){return this.b.getUTCFullYear()};e.getUTCMonth=function(){return this.b.getUTCMonth()};e.getUTCDate=function(){return this.b.getUTCDate()};e.getUTCHours=function(){return this.b.getUTCHours()};e.getUTCMinutes=function(){return this.b.getUTCMinutes()};e.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};
  function bd(a){a=a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+y(c,2)+":"+y(b,2)}return a}e.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};e.setFullYear=function(a){this.b.setFullYear(a)};e.setMonth=function(a){this.b.setMonth(a)};e.setDate=function(a){this.b.setDate(a)};
  e.add=function(a){if(a.yd||a.jd){var b=this.getMonth()+a.jd+12*a.yd,c=this.getYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;a:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.Tc&&(a=new Date((new Date(this.getYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.Tc),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),
  this.setDate(a.getDate()),ad(this,a.getDate()))};e.Za=function(a,b){return[this.getFullYear(),y(this.getMonth()+1,2),y(this.getDate(),2)].join(a?"-":"")+(b?bd(this):"")};e.toString=function(){return this.Za()};function ad(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}e.valueOf=function(){return this.b.valueOf()};function cd(a,b,c,d,f,g,h){this.b=ga(a)?new Date(a,b||0,c||1,d||0,f||0,g||0,h||0):new Date(a?a.getTime():w())}x(cd,$c);e=cd.prototype;e.getHours=function(){return this.b.getHours()};
  e.getMinutes=function(){return this.b.getMinutes()};e.getSeconds=function(){return this.b.getSeconds()};e.getMilliseconds=function(){return this.b.getMilliseconds()};e.getUTCHours=function(){return this.b.getUTCHours()};e.getUTCMinutes=function(){return this.b.getUTCMinutes()};e.setHours=function(a){this.b.setHours(a)};e.setMinutes=function(a){this.b.setMinutes(a)};e.setSeconds=function(a){this.b.setSeconds(a)};e.setMilliseconds=function(a){this.b.setMilliseconds(a)};e.setUTCHours=function(a){this.b.setUTCHours(a)};
  e.add=function(a){$c.prototype.add.call(this,a);a.bd&&this.setHours(this.b.getHours()+a.bd);a.hd&&this.setMinutes(this.b.getMinutes()+a.hd);a.pd&&this.setSeconds(this.b.getSeconds()+a.pd)};e.Za=function(a,b){var c=$c.prototype.Za.call(this,a);return a?c+" "+y(this.getHours(),2)+":"+y(this.getMinutes(),2)+":"+y(this.getSeconds(),2)+(b?bd(this):""):c+"T"+y(this.getHours(),2)+y(this.getMinutes(),2)+y(this.getSeconds(),2)+(b?bd(this):"")};e.toString=function(){return this.Za()};
  e.r=function(){var a=new cd(this.b);a.Ga=this.Ga;a.Ha=this.Ha;return a};function dd(a){this.src=a;this.p={}}dd.prototype.add=function(a,b,c,d,f){var g=this.p[a];g||(g=this.p[a]=[]);var h=ed(g,b,d,f);-1<h?(a=g[h],c||(a.fa=!1)):(a=new Cc(b,null,this.src,a,!!d,f),a.fa=c,g.push(a));return a};dd.prototype.remove=function(a,b,c,d){if(!(a in this.p))return!1;var f=this.p[a];b=ed(f,b,c,d);return-1<b?(Dc(f[b]),z.splice.call(f,b,1),0==f.length&&delete this.p[a],!0):!1};
  function Vc(a,b){var c=b.type;if(!(c in a.p))return!1;var d=Oa(a.p[c],b);d&&(Dc(b),0==a.p[c].length&&delete a.p[c]);return d}dd.prototype.ya=function(a){var b=0,c;for(c in this.p)if(!a||c==a){for(var d=this.p[c],f=0;f<d.length;f++)++b,d[f].Q=!0;delete this.p[c]}return b};dd.prototype.qb=function(a,b,c,d){a=this.p[a];var f=-1;a&&(f=ed(a,b,c,d));return-1<f?a[f]:null};function ed(a,b,c,d){for(var f=0;f<a.length;++f){var g=a[f];if(!g.Q&&g.J==b&&g.capture==!!c&&g.Z==d)return f}return-1};function S(){L.call(this);this.B=new dd(this);this.Kc=this}x(S,L);S.prototype[zc]=!0;e=S.prototype;e.Bb=null;e.addEventListener=function(a,b,c,d){Nc(this,a,b,c,d)};e.removeEventListener=function(a,b,c,d){Sc(this,a,b,c,d)};
  e.dispatchEvent=function(a){var b,c=this.Bb;if(c)for(b=[];c;c=c.Bb)b.push(c);var c=this.Kc,d=a.type||a;if(q(a))a=new M(a,c);else if(a instanceof M)a.target=a.target||c;else{var f=a;a=new M(d,c);Ga(a,f)}var f=!0,g;if(b)for(var h=b.length-1;!a.ea&&0<=h;h--)g=a.currentTarget=b[h],f=fd(g,d,!0,a)&&f;a.ea||(g=a.currentTarget=c,f=fd(g,d,!0,a)&&f,a.ea||(f=fd(g,d,!1,a)&&f));if(b)for(h=0;!a.ea&&h<b.length;h++)g=a.currentTarget=b[h],f=fd(g,d,!1,a)&&f;return f};
  e.f=function(){S.i.f.call(this);this.B&&this.B.ya(void 0);this.Bb=null};e.Pa=function(a,b,c,d){return this.B.add(a,b,!1,c,d)};e.vb=function(a,b,c,d){return this.B.add(a,b,!0,c,d)};e.ma=function(a,b,c,d){return this.B.remove(a,b,c,d)};function fd(a,b,c,d){b=a.B.p[b];if(!b)return!0;b=Qa(b);for(var f=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.Q&&h.capture==c){var k=h.J,s=h.Z||h.src;h.fa&&Vc(a.B,h);f=!1!==k.call(s,d)&&f}}return f&&!1!=d.ec}e.qb=function(a,b,c,d){return this.B.qb(a,b,c,d)};function gd(a,b,c){if(ha(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:l.setTimeout(a,b||0)};function hd(a,b,c){L.call(this);this.wb=a;this.dd=b||0;this.I=c;this.Nc=t(this.Vc,this)}x(hd,L);e=hd.prototype;e.sa=0;e.f=function(){hd.i.f.call(this);this.stop();delete this.wb;delete this.I};e.start=function(a){this.stop();this.sa=gd(this.Nc,m(a)?a:this.dd)};e.stop=function(){this.Na()&&l.clearTimeout(this.sa);this.sa=0};e.Na=function(){return 0!=this.sa};e.Vc=function(){this.sa=0;this.wb&&this.wb.call(this.I)};function T(a){S.call(this);a=a||{};this.id=a.id||null;this.pc=a.type||"unknown";this.duration=a.duration||10;this.a=vb("div")}x(T,S);e=T.prototype;e.c=I("concerto.frontend.Content");function id(a){a.c.info("Content "+a.pc+" "+a.id+" is starting to load.");a.kc=new cd;a.nc=new hd(a.Xc,1E3*a.duration,a);P(a,jd,a.rd,!1,a);a.dispatchEvent(kd);a.ba()}e.ib=function(a,b){b=b||this.a;F(b,a)};e.ba=function(){ld(this)};
  function ld(a){a.Pb=new cd;a.c.info("Content "+a.id+" is done loading. Took: "+(a.Pb.getMilliseconds()-a.kc.getMilliseconds())+"ms.");a.dispatchEvent(md)}e.rd=function(){this.nc.start()};e.Xc=function(){this.dispatchEvent(nd)};e.m=function(){Wc(this);this.nc.m();this.Pb=this.kc=this.a=null};var kd="a",md="b",jd="d",nd="g";function od(a,b,c){S.call(this);this.field=a;this.l=b||null;this.v=c||null}x(od,S);e=od.prototype;e.go=function(){null!=this.l?this.Ab():null!=this.v&&this.Ma()};e.Ab=function(){this.l.dispatchEvent("e");this.zb()};e.zb=function(){var a=this.l.s;a&&a.parentNode&&a.parentNode.removeChild(a);this.l.dispatchEvent("f");null!=this.v&&this.Ma()};e.Ma=function(){this.v.dispatchEvent("c");this.field.P(this.v.s);this.sb()};e.sb=function(){this.v.dispatchEvent(jd)};function pd(a,b,c){b=new pb(b,c);c=100;var d=a.cloneNode(!0);d.style.display="none";document.body.appendChild(d);for(F(d,"fontSize",c+"px");1<c&&!qb(Fb(d),b);)F(d,"fontSize",--c+"px");document.body.removeChild(d);delete d;F(a,"fontSize",c+"px");return a};function qd(a){T.call(this,a);this.G=a.field.size.height;this.H=a.field.size.width;this.cd=a.render_details.data}x(qd,T);Q.HtmlText=qd;qd.prototype.ba=function(){this.a.innerHTML=this.cd;this.a=pd(this.a,this.H,this.G);ld(this)};function rd(a){L.call(this);this.I=a;this.h={}}x(rd,L);var sd=[];e=rd.prototype;e.Pa=function(a,b,c,d,f){p(b)||(sd[0]=b,b=sd);for(var g=0;g<b.length;g++){var h=Nc(a,b[g],c||this,d||!1,f||this.I||this);if(!h)break;this.h[h.key]=h}return this};e.vb=function(a,b,c,d,f){if(p(b))for(var g=0;g<b.length;g++)this.vb(a,b[g],c,d,f);else a=P(a,b,c||this,d,f||this.I||this),this.h[a.key]=a;return this};
  e.ma=function(a,b,c,d,f){if(p(b))for(var g=0;g<b.length;g++)this.ma(a,b[g],c,d,f);else{a:if(f=f||this.I||this,d=!!d,c=Oc(c||this),Ac(a))a=a.qb(b,c,d,f);else{if(a=Tc(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Q&&a[b].J==c&&a[b].capture==d&&a[b].Z==f){a=a[b];break a}a=null}a&&(Uc(a),delete this.h[a.key])}return this};e.ya=function(){Aa(this.h,Uc);this.h={}};e.f=function(){rd.i.f.call(this);this.ya()};e.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function td(a){S.call(this);this.ua={};this.ta={};this.I=new rd(this);this.W=a}x(td,S);var ud=[A?"readystatechange":"load","abort","error"];td.prototype.start=function(){var a=this.ua;Ia(Da(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ha)){var d;d=this.W?(this.W?new Cb(Bb(this.W)):Sa||(Sa=new Cb)).Sc("img"):new Image;this.I.Pa(d,ud,this.ac);this.ta[b]=d;d.id=b;d.src=c}},this)};
  td.prototype.ac=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});!this.ha&&(a=b.id,delete this.ua[a],b=this.ta[a])&&(delete this.ta[a],this.I.ma(b,ud,this.ac),Ea(this.ta)&&Ea(this.ua)&&this.dispatchEvent("complete"))}};
  td.prototype.f=function(){delete this.ua;delete this.ta;var a=this.I;a&&"function"==typeof a.m&&a.m();td.i.f.call(this)};function U(a){T.call(this,a);this.wa=new td;P(this.wa,"load",this.fd,!1,this);this.G=a.field.size.height;this.H=a.field.size.width;this.$=null;a=new mc(a.render_details.path);var b=this.G;J(a);a.D.set("height",b);b=this.H;J(a);a.D.set("width",b);a=a.toString();(a=q(a)?a:a.src)&&(this.wa.ua.graphic=a)}x(U,T);Q.Graphic=U;U.prototype.ba=function(){this.wa.start()};
  U.prototype.fd=function(a){this.c.info("Content "+this.pc+" "+this.id+" is in .loaderFinish_");this.$=a.target;this.a.appendChild(this.$);F(this.$,"margin",(this.G-this.$.height)/2+"px "+(this.H-this.$.width)/2+"px");H(this.a,"100%","100%");ld(this)};
  U.prototype.ib=function(a){U.i.ib.call(this,a,void 0!=this.a.firstElementChild?this.a.firstElementChild:Ab(this.a.firstChild));F(this.a,"position","absolute");var b=void 0!=this.a.firstElementChild?this.a.firstElementChild:Ab(this.a.firstChild);a=this.$.width;var c=this.$.height,d;d="CSS1Compat"==(Bb(b)?new Cb(Bb(Bb(b))):Sa||(Sa=new Cb)).Fa.compatMode;if(!A||d&&D("8")){var f=b.style;B?f.MozBoxSizing="border-box":C?f.WebkitBoxSizing="border-box":f.boxSizing="border-box";f.width=Math.max(a,0)+"px";
  f.height=Math.max(c,0)+"px"}else if(f=b.style,d){if(A){d=Ib(b,"paddingLeft");var g=Ib(b,"paddingRight"),h=Ib(b,"paddingTop"),k=Ib(b,"paddingBottom");d=new E(h,g,k,d)}else d=G(b,"paddingLeft"),g=G(b,"paddingRight"),h=G(b,"paddingTop"),k=G(b,"paddingBottom"),d=new E(parseFloat(h),parseFloat(g),parseFloat(k),parseFloat(d));A?(g=Kb(b,"borderLeft"),h=Kb(b,"borderRight"),k=Kb(b,"borderTop"),b=Kb(b,"borderBottom"),b=new E(k,h,b,g)):(g=G(b,"borderLeftWidth"),h=G(b,"borderRightWidth"),k=G(b,"borderTopWidth"),
  b=G(b,"borderBottomWidth"),b=new E(parseFloat(k),parseFloat(h),parseFloat(b),parseFloat(g)));f.pixelWidth=a-b.left-d.left-d.right-b.right;f.pixelHeight=c-b.top-d.top-d.bottom-b.bottom}else f.pixelWidth=a,f.pixelHeight=c};U.prototype.m=function(){U.i.m.call(this);this.wa.m();this.wa=null};function vd(a){T.call(this,a);this.G=a.field.size.height;this.H=a.field.size.width;this.o=null;this.wd=a.render_details.path;this.duration+=1}x(vd,T);Q.RemoteVideo=vd;vd.prototype.ba=function(){this.o=document.createElement("iframe");this.o.src=this.wd;this.o.Yc=0;H(this.o,"100%","100%");H(this.a,"100%","100%");F(this.o,"border",0);this.a.appendChild(this.o);ld(this)};function wd(a){T.call(this,a);this.text=a.render_details.data;this.G=a.field.size.height;this.H=a.field.size.width}x(wd,T);Q.Ticker=wd;
  wd.prototype.ba=function(){zb(this.a);var a;var b="<div>"+this.text+"</div>",c=document;a=c.createElement("div");A?(a.innerHTML="<br>"+b,a.removeChild(a.firstChild)):a.innerHTML=b;if(1==a.childNodes.length)a=a.removeChild(a.firstChild);else{for(b=c.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);a=b}this.a.appendChild(a);this.a=pd(this.a,this.H,this.G);console.log(this.a);ld(this)};function xd(a){T.call(this,a);this.G=a.field.size.height;this.H=a.field.size.width;this.o=null;this.url=a.render_details.path;this.duration+=1}x(xd,T);Q.Iframe=xd;xd.prototype.ba=function(){this.o=document.createElement("iframe");this.o.src=this.url;this.o.Yc=0;this.o.scrolling="no";H(this.o,"100%","100%");H(this.a,"100%","100%");F(this.o,"border",0);this.a.appendChild(this.o);ld(this)};function yd(){}function zd(a){if("number"==typeof a){var b=new yd;b.Wa=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",y(c,2));c=d.join("")}b.lc=c;0==a?a="UTC":(c=["UTC",0>a?"+":"-"],a=Math.abs(a),c.push(Math.floor(a/60)%100),a%=60,0!=a&&c.push(":",a),a=c.join(""));b.Eb=[a,a];b.$a=[];return b}b=new yd;b.lc=a.id;b.Wa=-a.std_offset;b.Eb=a.names;b.$a=a.transitions;return b}
  function Ad(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.$a.length&&c>=a.$a[d];)d+=2;return 0==d?0:a.$a[d-1]};function Bd(a){this.Ra=[];"number"==typeof a?Cd(this,a):Dd(this,a)}var Ed=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];function Dd(a,b){for(;b;)for(var c=0;c<Ed.length;++c){var d=b.match(Ed[c]);if(d){d=d[0];b=b.substring(d.length);0==c&&("''"==d?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.Ra.push({text:d,type:c});break}}}
  function Fd(a,b,c){var d=c?6E4*(b.getTimezoneOffset()-(c.Wa-Ad(c,b))):0,f=d?new Date(b.getTime()+d):b,g=f;c&&f.getTimezoneOffset()!=b.getTimezoneOffset()&&(g=new Date(b.getTime()+(d+(0<d?-864E5:864E5))));for(var d=[],h=0;h<a.Ra.length;++h){var k=a.Ra[h].text;1==a.Ra[h].type?d.push(Gd(k,b,f,g,c)):d.push(k)}return d.join("")}
  function Cd(a,b){var c;if(4>b)c=R.Fb[b];else if(8>b)c=R.Gb[b-4];else if(12>b)c=R.rc[b-8],c=c.replace("{1}",R.Fb[b-8]),c=c.replace("{0}",R.Gb[b-8]);else{Cd(a,10);return}Dd(a,c)}function V(a){if(void 0===R.Jc)return a;for(var b=[],c=0;c<a.length;c++){var d=a.charCodeAt(c);b.push(48<=d&&57>=d?String.fromCharCode(R.Jc+d-48):a.charAt(c))}return b.join("")}
  function Gd(a,b,c,d,f){var g=a.length;switch(a.charAt(0)){case "G":return b=0<c.getFullYear()?1:0,4<=g?R.sc[b]:R.tc[b];case "y":return b=c.getFullYear(),0>b&&(b=-b),V(2==g?y(b%100,2):String(b));case "M":a:switch(b=c.getMonth(),g){case 5:g=R.xc[b];break a;case 4:g=R.wc[b];break a;case 3:g=R.zc[b];break a;default:g=V(y(b+1,g))}return g;case "k":return V(y(d.getHours()||24,g));case "S":return V((d.getTime()%1E3/1E3).toFixed(Math.min(3,g)).substr(2)+(3<g?y(0,g-3):""));case "E":return b=c.getDay(),4<=
  g?R.Ic[b]:R.Bc[b];case "a":return g=d.getHours(),R.qc[12<=g&&24>g?1:0];case "h":return V(y(d.getHours()%12||12,g));case "K":return V(y(d.getHours()%12,g));case "H":return V(y(d.getHours(),g));case "c":a:switch(b=c.getDay(),g){case 5:g=R.Ec[b];break a;case 4:g=R.Hc[b];break a;case 3:g=R.Gc[b];break a;default:g=V(y(b,1))}return g;case "L":a:switch(b=c.getMonth(),g){case 5:g=R.Dc[b];break a;case 4:g=R.Cc[b];break a;case 3:g=R.Fc[b];break a;default:g=V(y(b+1,g))}return g;case "Q":return b=Math.floor(c.getMonth()/
  3),4>g?R.Ac[b]:R.yc[b];case "d":return V(y(c.getDate(),g));case "m":return V(y(d.getMinutes(),g));case "s":return V(y(d.getSeconds(),g));case "v":return g=f||zd(b.getTimezoneOffset()),g.lc;case "z":return a=f||zd(b.getTimezoneOffset()),4>g?a.Eb[0<Ad(a,b)?2:0]:a.Eb[0<Ad(a,b)?3:1];case "Z":return a=f||zd(b.getTimezoneOffset()),4>g?(g=-(a.Wa-Ad(a,b)),b=[0>g?"-":"+"],g=Math.abs(g),b.push(y(Math.floor(g/60)%100,2),y(g%60,2)),g=b.join("")):(g=a.Wa-Ad(a,b),b=["GMT"],b.push(0>=g?"+":"-"),g=Math.abs(g),b.push(y(Math.floor(g/
  60)%100,2),":",y(g%60,2)),g=V(b.join(""))),g;default:return""}};function Hd(a){T.call(this,a);this.G=a.field.size.height;this.H=a.field.size.width;this.Db=a.timezone;this.pb=a.field.config?a.field.config.format:null}x(Hd,T);Q.ClientTime=Hd;
  Hd.prototype.ba=function(){var a=new cd,b=new Bd(2),c=new Bd(7),b=Fd(b,a,this.Db)+" "+Fd(c,a,this.Db);null!=this.pb&&""!=this.pb.trim()&&(b=Fd(new Bd(this.pb),a,this.Db));a=this.a;if("textContent"in a)a.textContent=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else zb(a),a.appendChild(Bb(a).createTextNode(String(b)));this.a=pd(this.a,this.H,this.G);ld(this)};function Id(){this.T=[]}e=Id.prototype;e.C=0;e.X=0;e.ia=function(a){this.T[this.X++]=a};e.Y=function(){if(this.C!=this.X){var a=this.T[this.C];delete this.T[this.C];this.C++;return a}};e.Sa=function(){return this.C==this.X?void 0:this.T[this.C]};e.j=function(){return this.X-this.C};e.u=function(){return 0==this.X-this.C};e.clear=function(){this.X=this.C=this.T.length=0};e.remove=function(a){a=Ha(this.T,a);if(0>a)return!1;a==this.C?this.Y():(z.splice.call(this.T,a,1),this.X--);return!0};
  e.n=function(){return this.T.slice(this.C,this.X)};function Jd(a,b,c,d,f,g){S.call(this);if(null!=g)for(var h in g)g.hasOwnProperty(h)&&this.c.info("Field "+b+" has configuration "+h+": "+g[h]);this.position=a;this.id=b;this.name=c;this.Rc=d;this.l=null;this.V=new Id;this.Lc=!0;this.td=f;this.Lb=g;this.Pc=this.position.Xa.screen.Mb;null==this.a&&(a=vb("div",{id:"field_"+this.id,"class":"field"}),H(a,"100%","100%"),this.position.P(a),this.a=a);Kd(this)}x(Jd,S);Jd.prototype.c=I("concerto.frontend.Field");Jd.prototype.P=function(a){this.a.appendChild(a)};
  function Ld(a){a.c.info("Field "+a.id+" is looking for new content.");if("Time"==a.name){var b={duration:15,id:0,name:"System Time",type:"ClientTime",render_details:{data:null},field:{size:Fb(a.position.a),config:a.Lb}},b=new Q.ClientTime(b);a.V.ia(b);P(b,md,a.jc,!1,a);P(b,nd,a.Jb,!1,a);id(a.V.Sa())}else a.Pc.send("field"+a.id,a.Rc,"GET","",null,1,t(function(a){a=a.target;if(!Md(a))return this.c.log(bc,"Field "+this.id+" was unable to fetch content. "+(q(a.U)?a.U:String(a.U)),void 0),setTimeout(t(function(){Kd(this,
  !0)},this),10);a=Nd(a);if(!a.length)return this.c.info("Field "+this.id+" received empty content."),setTimeout(t(function(){Kd(this,!0)},this),10);Ia(a,t(function(a){a.field={size:Fb(this.position.a),config:this.Lb};if(a.type in Q){var b=new Q[a.type](a);this.V.ia(b);this.c.info("Field "+this.id+" queued "+a.type+" content "+a.id);P(b,md,this.jc,!1,this);P(b,nd,this.Jb,!1,this)}else this.c.log(bc,"Field "+this.id+" Unable to find "+a.type+" renderer for content "+a.id,void 0)},this));!this.V.u()&&
  id(this.V.Sa())},a))}Jd.prototype.jc=function(){this.c.info("Field "+this.id+" is showing new content.");var a=this.V.Y();a.ib(Od(this.position));a.c.info("Content "+a.id+" is being rendered.");a.s=a.a;(new this.td(this,this.l,a)).go();Wc(this.Ua);this.Ua&&this.Ua.m();this.Ua=null;this.Ua=this.l;this.l=a};
  function Kd(a,b){b=b||!1;a.c.info("Field "+a.id+" would like a new piece of content (error state: "+b+" ).");a.V.u()?(a.c.info("Field "+a.id+" needs to look for more content [queue is empty]."),b?(a.c.info("In error state, sleeping for "+Pd+" seconds."),setTimeout(t(function(){Ld(this)},a),1E3*Pd)):Ld(a)):(a.c.info("Field "+a.id+" is getting content from its queue."),id(a.V.Sa()))}
  Jd.prototype.Jb=function(){this.Lc?(this.c.info("Field "+this.id+" is auto-advancing."),Kd(this)):this.c.info("Field "+this.id+" is not advancing.")};var Pd=10+50*Math.random();var Qd={},Rd=null;function Sd(a){a=r(a);delete Qd[a];Ea(Qd)&&Rd&&Rd.stop()}function Td(){Rd||(Rd=new hd(function(){Ud()},20));var a=Rd;a.Na()||a.start()}function Ud(){var a=w();Aa(Qd,function(b){Vd(b,a)});Ea(Qd)||Td()};function Wd(){S.call(this);this.K=Xd;this.Ob=this.startTime=null}x(Wd,S);var Xd=0;Wd.prototype.ca=function(){this.L("begin")};Wd.prototype.ka=function(){this.L("end")};Wd.prototype.L=function(a){this.dispatchEvent(a)};function Yd(a,b,c,d){Wd.call(this);if(!p(a)||!p(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.Aa=a;this.Wc=b;this.duration=c;this.Ib=d;this.coords=[];this.vd=!1}x(Yd,Wd);e=Yd.prototype;e.A=0;
  e.play=function(a){if(a||this.K==Xd)this.A=0,this.coords=this.Aa;else if(1==this.K)return!1;Sd(this);this.startTime=a=w();-1==this.K&&(this.startTime-=this.duration*this.A);this.Ob=this.startTime+this.duration;this.A||this.ca();this.L("play");-1==this.K&&this.L("resume");this.K=1;var b=r(this);b in Qd||(Qd[b]=this);Td();Vd(this,a);return!0};e.stop=function(a){Sd(this);this.K=Xd;a&&(this.A=1);Zd(this,this.A);this.L("stop");this.ka()};e.f=function(){this.K==Xd||this.stop(!1);this.L("destroy");Yd.i.f.call(this)};
  function Vd(a,b){a.A=(b-a.startTime)/(a.Ob-a.startTime);1<=a.A&&(a.A=1);Zd(a,a.A);1==a.A?(a.K=Xd,Sd(a),a.L("finish"),a.ka()):1==a.K&&a.yb()}function Zd(a,b){ha(a.Ib)&&(b=a.Ib(b));a.coords=Array(a.Aa.length);for(var c=0;c<a.Aa.length;c++)a.coords[c]=(a.Wc[c]-a.Aa[c])*b+a.Aa[c]}e.yb=function(){this.L("animate")};e.L=function(a){this.dispatchEvent(new $d(a,this))};
  function $d(a,b){M.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.A=b.A;this.state=b.K}x($d,M);function W(a,b,c,d,f){Yd.call(this,b,c,d,f);this.element=a}x(W,Yd);W.prototype.Ba=da;W.prototype.yb=function(){this.Ba();W.i.yb.call(this)};W.prototype.ka=function(){this.Ba();W.i.ka.call(this)};W.prototype.ca=function(){this.Ba();W.i.ca.call(this)};function ae(a,b,c,d,f){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");W.apply(this,arguments)}x(ae,W);
  ae.prototype.Ba=function(){var a;if(a=this.vd)m(this.fc)||(this.fc="rtl"==(G(this.element,"direction")||(this.element.currentStyle?this.element.currentStyle.direction:null)||this.element.style&&this.element.style.direction)),a=this.fc;this.element.style[a?"right":"left"]=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};
  function be(a,b,c,d,f){ga(b)&&(b=[b]);ga(c)&&(c=[c]);W.call(this,a,b,c,d,f);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}x(be,W);be.prototype.Ba=function(){var a=this.coords[0],b=this.element.style;"opacity"in b?b.opacity=a:"MozOpacity"in b?b.MozOpacity=a:"filter"in b&&(b.filter=""===a?"":"alpha(opacity="+100*a+")")};be.prototype.show=function(){this.element.style.display=""};function ce(a,b,c){be.call(this,a,1,0,b,c)}x(ce,be);
  ce.prototype.ca=function(){this.show();ce.i.ca.call(this)};ce.prototype.ka=function(){this.element.style.display="none";ce.i.ka.call(this)};function de(a,b,c){be.call(this,a,0,1,b,c)}x(de,be);de.prototype.ca=function(){this.show();de.i.ca.call(this)};function ee(a,b,c){this.duration=500;od.call(this,a,b,c)}x(ee,od);ee.prototype.Ab=function(){this.l.dispatchEvent("e");var a=new ce(this.l.s,this.duration);Nc(a,"end",this.zb,!1,this);a.play()};ee.prototype.Ma=function(){this.v.dispatchEvent("c");this.v.s.style.display="none";this.field.P(this.v.s);var a=new de(this.v.s,this.duration);Nc(a,"end",this.sb,!1,this);a.play()};function fe(a){return a*a*a}function ge(a){return 1-Math.pow(1-a,3)};function he(a,b,c){this.duration=500;od.call(this,a,b,c)}x(he,od);he.prototype.c=I("concerto.frontend.Transition.Slide");he.prototype.Ab=function(){this.l.dispatchEvent("e");var a=new ae(this.l.s,[this.l.s.offsetLeft,this.l.s.offsetTop],[0-this.field.position.a.clientWidth,this.l.s.offsetTop],this.duration,fe);Nc(a,"end",this.zb,!1,this);a.play()};
  he.prototype.Ma=function(){this.c.info("Field "+this.field.id+" is sliding in.");this.v.dispatchEvent("c");this.field.P(this.v.s);var a=new ae(this.v.s,[this.field.position.a.clientWidth,0],[0,0],this.duration,ge);Nc(a,"end",this.sb,!1,this);a.play()};function ie(a,b){this.id=null;this.Xa=a;this.a=b||this.lb()}e=ie.prototype;e.c=I("concerto.frontend.Position");e.lb=function(){var a=vb("div",{id:"position_"+this.id,"class":"position"});F(a,"position","absolute");this.Xa.P(a);return a};
  e.load=function(a){this.id=a.id;this.Mc=parseFloat(a.bottom);this.Yb=parseFloat(a.left);this.od=parseFloat(a.right);this.oc=parseFloat(a.top);this.sd=a.style;var b=this.a,c=100*this.Yb+"%",d=100*this.oc+"%",f=B&&(Ya||eb)&&D("1.9");b.style.left=Eb(c,f);b.style.top=Eb(d,f);H(this.a,100*(this.od-this.Yb)+"%",100*(this.Mc-this.oc)+"%");b=ee;c=null;if(null!=a.field.config&&(c=a.field.config,null!=c.transition))switch(c.transition.toLowerCase()){case "slide":b=he;break;case "replace":b=od;break;default:b=
  ee}this.field=new Jd(this,a.field.id,a.field.name,a.field_contents_path,b,c);this.hc()};e.P=function(a){this.a.appendChild(a)};e.hc=function(){tb(this.a,{id:"position_"+this.id,"class":"position"});F(this.a,je)};function Od(a){a=Lb(a.sd);a=Ba(a,function(a,b){return!(0<=Ha(ke,b.toLowerCase()))});var b={};Ga(b,le);Ga(b,a);return b}var ke="overflow width height top left bottom right".split(" "),je={overflow:"hidden"},le={position:"absolute"};function me(a,b){this.screen=a;this.path=this.id=null;this.nd=[];this.a=b||this.lb()}me.prototype.c=I("concerto.frontend.Template");me.prototype.lb=function(){var a=vb("div",{id:"template","class":"template"});H(a,"100%","100%");this.screen.P(a);return a};me.prototype.load=function(a){this.id=a.id;this.da=a.path;tb(this.a,{id:"template_"+this.id});ne(this);null!=a.positions&&Ia(a.positions,t(function(a){var c=new ie(this);c.load(a);a=this.nd;0<=Ha(a,c)||a.push(c)},this))};
  function ne(a){var b=Fb(a.a);if(null!=a.da){var c=new mc(a.da),d=b.height;J(c);c.D.set("height",d);b=b.width;J(c);c.D.set("width",b);F(a.a,"background-image","url("+c.toString()+")")}F(a.a,"background-size","100% 100%");F(a.a,"background-repeat","no-repeat")}me.prototype.P=function(a){this.a.appendChild(a)};function oe(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function pe(){}pe.prototype.Ea=null;var qe;function re(){}x(re,pe);function se(a){return(a=te(a))?new ActiveXObject(a):new XMLHttpRequest}function ue(a){var b={};te(a)&&(b[0]=!0,b[1]=!0);return b}
  function te(a){if(!a.Vb&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.Vb=d}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Vb}qe=new re;function X(a,b){a&&a.log(ec,b,void 0)};function ve(a){S.call(this);this.headers=new Ob;this.oa=a||null;this.S=!1;this.gb=this.d=null;this.Xb=this.Oa="";this.ja=0;this.U="";this.aa=this.tb=this.La=this.ob=!1;this.R=0;this.Ya=null;this.za=we;this.ab=this.xd=!1}x(ve,S);var we="",xe=ve.prototype,ze=I("goog.net.XhrIo");xe.c=ze;var Ae=/^https?$/i,Be=["POST","PUT"];e=ve.prototype;e.ic=function(a){this.R=Math.max(0,a)};
  e.send=function(a,b,c,d){if(this.d)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Oa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Oa=a;this.U="";this.ja=0;this.Xb=b;this.ob=!1;this.S=!0;this.d=this.oa?se(this.oa):se(qe);this.gb=this.oa?this.oa.Ea||(this.oa.Ea=ue(this.oa)):qe.Ea||(qe.Ea=ue(qe));this.d.onreadystatechange=t(this.bc,this);try{X(this.c,Y(this,"Opening Xhr")),this.tb=!0,this.d.open(b,a,!0),this.tb=!1}catch(f){X(this.c,Y(this,"Error opening Xhr: "+f.message));
  Ce(this,f);return}a=c||"";var g=this.headers.r();d&&Nb(d,function(a,b){g.set(b,a)});d=La(g.N());c=l.FormData&&a instanceof l.FormData;!(0<=Ha(Be,b))||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Nb(g,function(a,b){this.d.setRequestHeader(b,a)},this);this.za&&(this.d.responseType=this.za);"withCredentials"in this.d&&(this.d.withCredentials=this.xd);try{De(this),0<this.R&&(this.ab=A&&D(9)&&ga(this.d.timeout)&&m(this.d.ontimeout),X(this.c,Y(this,"Will abort after "+this.R+
  "ms if incomplete, xhr2 "+this.ab)),this.ab?(this.d.timeout=this.R,this.d.ontimeout=t(this.mc,this)):this.Ya=gd(this.mc,this.R,this)),X(this.c,Y(this,"Sending request")),this.La=!0,this.d.send(a),this.La=!1}catch(h){X(this.c,Y(this,"Send error: "+h.message)),Ce(this,h)}};function Ma(a){return"content-type"==a.toLowerCase()}e.mc=function(){"undefined"!=typeof ba&&this.d&&(this.U="Timed out after "+this.R+"ms, aborting",this.ja=8,X(this.c,Y(this,this.U)),this.dispatchEvent("timeout"),this.abort(8))};
  function Ce(a,b){a.S=!1;a.d&&(a.aa=!0,a.d.abort(),a.aa=!1);a.U=b;a.ja=5;Ee(a);Fe(a)}function Ee(a){a.ob||(a.ob=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}e.abort=function(a){this.d&&this.S&&(X(this.c,Y(this,"Aborting")),this.S=!1,this.aa=!0,this.d.abort(),this.aa=!1,this.ja=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Fe(this))};e.f=function(){this.d&&(this.S&&(this.S=!1,this.aa=!0,this.d.abort(),this.aa=!1),Fe(this,!0));ve.i.f.call(this)};
  e.bc=function(){this.ha||(this.tb||this.La||this.aa?Ge(this):this.md())};e.md=function(){Ge(this)};
  function Ge(a){if(a.S&&"undefined"!=typeof ba)if(a.gb[1]&&4==He(a)&&2==Ie(a))X(a.c,Y(a,"Local request error detected and ignored"));else if(a.La&&4==He(a))gd(a.bc,0,a);else if(a.dispatchEvent("readystatechange"),4==He(a)){X(a.c,Y(a,"Request complete"));a.S=!1;try{if(Md(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.ja=6;var b;try{b=2<He(a)?a.d.statusText:""}catch(c){X(a.c,"Can not get status: "+c.message),b=""}a.U=b+" ["+Ie(a)+"]";Ee(a)}}finally{Fe(a)}}}
  function Fe(a,b){if(a.d){De(a);var c=a.d,d=a.gb[0]?da:null;a.d=null;a.gb=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(f){(c=a.c)&&c.log(ac,"Problem encountered resetting onreadystatechange: "+f.message,void 0)}}}function De(a){a.d&&a.ab&&(a.d.ontimeout=null);ga(a.Ya)&&(l.clearTimeout(a.Ya),a.Ya=null)}e.Na=function(){return!!this.d};
  function Md(a){var b=Ie(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=kc(String(a.Oa))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!Ae.test(a?a.toLowerCase():"");c=b}return c}function He(a){return a.d?a.d.readyState:0}function Ie(a){try{return 2<He(a)?a.d.status:-1}catch(b){return(a=a.c)&&a.log(bc,"Can not get status: "+b.message,void 0),-1}}
  function Nd(a){if(a.d)return oe(a.d.responseText)}function Y(a,b){return b+" ["+a.Xb+" "+a.Oa+" "+Ie(a)+"]"};function Je(a,b){L.call(this);this.Zb=a||0;this.Qa=b||10;if(this.Zb>this.Qa)throw Error(Ke);this.M=new Id;this.O=new Rb;this.nb=0;this.ub=null;this.Ca()}x(Je,L);var Ke="[goog.structs.Pool] Min can not be greater than max";e=Je.prototype;e.Ja=function(){var a=w();if(!(null!=this.ub&&a-this.ub<this.nb)){for(var b;0<this.M.j()&&(b=this.M.Y(),!this.xb(b));)this.Ca();!b&&this.j()<this.Qa&&(b=this.mb());b&&(this.ub=a,this.O.add(b));return b}};
  e.pa=function(a){this.O.remove(a);this.xb(a)&&this.j()<this.Qa?this.M.ia(a):Le(a)};e.Ca=function(){for(var a=this.M;this.j()<this.Zb;)a.ia(this.mb());for(;this.j()>this.Qa&&0<this.M.j();)Le(a.Y())};e.mb=function(){return{}};function Le(a){if("function"==typeof a.m)a.m();else for(var b in a)a[b]=null}e.xb=function(a){return"function"==typeof a.Oc?a.Oc():!0};e.j=function(){return this.M.j()+this.O.j()};e.u=function(){return this.M.u()&&this.O.u()};
  e.f=function(){Je.i.f.call(this);if(0<this.O.j())throw Error("[goog.structs.Pool] Objects not released");delete this.O;for(var a=this.M;!a.u();)Le(a.Y());delete this.M};function Me(a,b){this.Wb=a;this.cb=b}Me.prototype.getKey=aa("Wb");Me.prototype.r=function(){return new Me(this.Wb,this.cb)};function Ne(a){this.w=[];if(a)a:{var b,c;if(a instanceof Ne){if(b=a.N(),c=a.n(),0>=a.j()){a=this.w;for(var d=0;d<b.length;d++)a.push(new Me(b[d],c[d]));break a}}else b=Da(a),c=Ca(a);for(d=0;d<b.length;d++)Oe(this,b[d],c[d])}}function Oe(a,b,c){var d=a.w;d.push(new Me(b,c));b=d.length-1;a=a.w;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}e=Ne.prototype;
  e.remove=function(){var a=this.w,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Na(a);else{a[0]=a.pop();for(var a=0,b=this.w,d=b.length,f=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].getKey()<b[g].getKey()?h:g;if(b[g].getKey()>f.getKey())break;b[a]=b[g];a=g}b[a]=f}return c.cb}};e.Sa=function(){var a=this.w;return 0==a.length?void 0:a[0].cb};e.n=function(){for(var a=this.w,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].cb);return b};
  e.N=function(){for(var a=this.w,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};e.ga=function(a){return Ka(this.w,function(b){return b.getKey()==a})};e.r=function(){return new Ne(this)};e.j=function(){return this.w.length};e.u=function(){return 0==this.w.length};e.clear=function(){Na(this.w)};function Pe(){Ne.call(this)}x(Pe,Ne);Pe.prototype.ia=function(a,b){Oe(this,a,b)};Pe.prototype.Y=function(){return this.remove()};function Z(a,b){this.Va=new Pe;Je.call(this,a,b)}x(Z,Je);e=Z.prototype;e.Ja=function(a,b){if(!a){var c=Z.i.Ja.call(this);c&&this.nb&&(this.Uc=l.setTimeout(t(this.Ka,this),this.nb));return c}this.Va.ia(m(b)?b:100,a);this.Ka()};e.Ka=function(){for(var a=this.Va;0<a.j();){var b=this.Ja();if(b)a.Y().apply(this,[b]);else break}};e.pa=function(a){Z.i.pa.call(this,a);this.Ka()};e.Ca=function(){Z.i.Ca.call(this);this.Ka()};e.f=function(){Z.i.f.call(this);l.clearTimeout(this.Uc);this.Va.clear();this.Va=null};function Qe(a,b,c){Z.call(this,b,c);this.rb=a}x(Qe,Z);Qe.prototype.mb=function(){var a=new ve,b=this.rb;b&&Nb(b,function(b,d){a.headers.set(d,b)});return a};Qe.prototype.xb=function(a){return!a.ha&&!a.Na()};function Re(a,b,c,d,f){S.call(this);this.xa=m(a)?a:1;this.R=m(f)?Math.max(0,f):0;this.na=new Qe(b,c,d);this.F=new Ob;this.ra=new rd(this)}x(Re,S);var Se="ready complete success error abort timeout".split(" ");e=Re.prototype;e.ic=function(a){this.R=Math.max(0,a)};e.send=function(a,b,c,d,f,g,h,k,s){if(this.F.get(a))throw Error("[goog.net.XhrManager] ID in use");b=new Te(b,t(this.ad,this,a),c,d,f,h,m(k)?k:this.xa,s);this.F.set(a,b);a=t(this.$c,this,a);this.na.Ja(a,g);return b};
  e.abort=function(a,b){var c=this.F.get(a);if(c){var d=c.fb;c.Hb=!0;b&&(d&&(this.ra.ma(d,Se,c.eb),P(d,"ready",function(){var a=this.na;a.O.remove(d)&&a.pa(d)},!1,this)),this.F.remove(a));d&&d.abort()}};e.$c=function(a,b){var c=this.F.get(a);c&&!c.fb?(this.ra.Pa(b,Se,c.eb),b.ic(this.R),b.za=c.za,c.fb=b,this.dispatchEvent(new Ue("ready",this,a,b)),Ve(this,a,b),c.Hb&&b.abort()):(c=this.na,c.O.remove(b)&&c.pa(b))};
  e.ad=function(a,b){var c=b.target;switch(b.type){case "ready":Ve(this,a,c);break;case "complete":a:{var d=this.F.get(a);if(7==c.ja||Md(c)||d.Da>d.xa)if(this.dispatchEvent(new Ue("complete",this,a,c)),d&&(d.Kb=!0,d.kb)){c=d.kb.call(c,b);break a}c=null}return c;case "success":this.dispatchEvent(new Ue("success",this,a,c));break;case "timeout":case "error":d=this.F.get(a);d.Da>d.xa&&this.dispatchEvent(new Ue("error",this,a,c));break;case "abort":this.dispatchEvent(new Ue("abort",this,a,c))}return null};
  function Ve(a,b,c){var d=a.F.get(b);!d||d.Kb||d.Da>d.xa?(d&&(a.ra.ma(c,Se,d.eb),a.F.remove(b)),a=a.na,a.O.remove(c)&&a.pa(c)):(d.Da++,c.send(d.ud,d.gd,d.Qc,d.rb))}e.f=function(){Re.i.f.call(this);this.na.m();this.na=null;this.ra.m();this.ra=null;var a=this.F;Nb(a,function(a){a.m()});a.clear();this.F=null};function Ue(a,b,c,d){M.call(this,a,b);this.id=c;this.fb=d}x(Ue,M);
  function Te(a,b,c,d,f,g,h,k){L.call(this);this.ud=a;this.gd=c||"GET";this.Qc=d;this.rb=f||null;this.xa=m(h)?h:1;this.Da=0;this.Hb=this.Kb=!1;this.eb=b;this.kb=g;this.za=k||we;this.fb=null}x(Te,L);Te.prototype.f=function(){Te.i.f.call(this);delete this.eb;delete this.kb};function We(a,b,c){this.Mb=new Re(2,null,0,2);this.id=a;this.qd=b;this.name="New Screen";this.Nb=c||document.body;Xe(this)}var Ye=["concerto","frontend","Screen"],$=l;Ye[0]in $||!$.execScript||$.execScript("var "+Ye[0]);for(var Ze;Ye.length&&(Ze=Ye.shift());)Ye.length||void 0===We?$=$[Ze]?$[Ze]:$[Ze]={}:$[Ze]=We;We.prototype.c=I("concerto.frontend.Screen");
  function Xe(a){var b=vb("div",{id:"screen_"+a.id,"class":"screen"});H(b,"100%","100%");F(b,"position","relative");zb(a.Nb);a.Nb.appendChild(b);a.a=b;b=a.qd;a.c.info("Requesting screen config from "+b);a.Mb.send("setup",b,"GET","",null,1,t(function(a){a=Nd(a.target);this.name=a.name;null!=a.template&&(this.Xa=new me(this),this.Xa.load(a.template))},a))}We.prototype.P=function(a){this.a.appendChild(a)};
  