function h(a){throw a;}var j=true,k=null,m=false,p,aa=aa||{},r=this;function s(a,b,c){a=a.split(".");c=c||r;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:c[d]={}}function ba(a,b){for(var c=a.split("."),d=b||r,f;f=c.shift();)if(d[f])d=d[f];else return k;return d}function t(){}
function u(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function v(a){var b=u(a);return b=="array"||b=="object"&&typeof a.length=="number"}function w(a){return typeof a=="string"}function ca(a){return u(a)=="function"}function da(a){a=u(a);return a=="object"||a=="array"||a=="function"}function x(a){return a[ea]||(a[ea]=++fa)}var ea="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),fa=0;
function y(a,b){var c=b||r;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(c,f)}}else return function(){return a.apply(c,arguments)}}function ga(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}var ha=Date.now||function(){return+new Date};
function B(a,b){function c(){}c.prototype=b.prototype;a.p=b.prototype;a.prototype=new c};function ia(a){this.stack=Error().stack||"";if(a)this.message=String(a)}B(ia,Error);ia.prototype.name="CustomError";function ja(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}function C(a,b){if(b)return a.replace(ka,"&amp;").replace(la,"&lt;").replace(ma,"&gt;").replace(na,"&quot;");else{if(!oa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(ka,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(la,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(ma,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(na,"&quot;");return a}}
var ka=/&/g,la=/</g,ma=/>/g,na=/\"/g,oa=/[&<>\"]/;
function pa(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(d.length,f.length),g=0;c==0&&g<e;g++){var i=d[g]||"",l=f[g]||"",n=RegExp("(\\d*)(\\D*)","g"),A=RegExp("(\\d*)(\\D*)","g");do{var q=n.exec(i)||["","",""],o=A.exec(l)||["","",""];if(q[0].length==0&&o[0].length==0)break;c=qa(q[1].length==0?0:parseInt(q[1],10),o[1].length==0?0:parseInt(o[1],10))||qa(q[2].length==0,o[2].length==0)||qa(q[2],o[2])}while(c==
0)}return c}function qa(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};function ra(a,b){b.unshift(a);ia.call(this,ja.apply(k,b));b.shift();this.Va=a}B(ra,ia);ra.prototype.name="AssertionError";function D(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var f=c}h(new ra(""+d,f||[]))}return a}function sa(a){h(new ra("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};var E=Array.prototype,F=E.indexOf?function(a,b,c){D(a.length!=k);return E.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:c<0?Math.max(0,a.length+c):c;if(w(a)){if(!w(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ta=E.forEach?function(a,b,c){D(a.length!=k);E.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=w(a)?a.split(""):a,e=0;e<d;e++)e in f&&b.call(c,f[e],e,a)};
function ua(a,b){var c=F(a,b),d;if(d=c>=0){D(a.length!=k);E.splice.call(a,c,1)}return d}function va(){return E.concat.apply(E,arguments)}function wa(a){if(u(a)=="array")return va(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}function xa(a){D(a.length!=k);return E.splice.apply(a,ya(arguments,1))}function ya(a,b,c){D(a.length!=k);return arguments.length<=2?E.slice.call(a,b):E.slice.call(a,b,c)};var G,za,Aa,Ba;function Ca(){return r.navigator?r.navigator.userAgent:k}Ba=Aa=za=G=m;var Da;if(Da=Ca()){var Ea=r.navigator;G=Da.indexOf("Opera")==0;za=!G&&Da.indexOf("MSIE")!=-1;Aa=!G&&Da.indexOf("WebKit")!=-1;Ba=!G&&!Aa&&Ea.product=="Gecko"}var H=za,Fa=Ba,Ga=Aa,Ha=r.navigator,Ia=(Ha&&Ha.platform||"").indexOf("Mac")!=-1,Ja;
a:{var Ka="",La;if(G&&r.opera){var Ma=r.opera.version;Ka=typeof Ma=="function"?Ma():Ma}else{if(Fa)La=/rv\:([^\);]+)(\)|;)/;else if(H)La=/MSIE\s+([^\);]+)(\)|;)/;else if(Ga)La=/WebKit\/(\S+)/;if(La){var Na=La.exec(Ca());Ka=Na?Na[1]:""}}if(H){var Oa,Pa=r.document;Oa=Pa?Pa.documentMode:undefined;if(Oa>parseFloat(Ka)){Ja=String(Oa);break a}}Ja=Ka}var Qa={};function Ra(a){return Qa[a]||(Qa[a]=pa(Ja,a)>=0)};var Sa=!H||Ra("9");H&&Ra("9");function Ta(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function I(a){var b=Ta(a),c;c=ya(arguments,1);for(var d=0,f=0;f<c.length;f++)if(!(F(b,c[f])>=0)){b.push(c[f]);d++}c=d==c.length;a.className=b.join(" ");return c}function J(a){var b=Ta(a),c;c=ya(arguments,1);for(var d=0,f=0;f<b.length;f++)if(F(c,b[f])>=0){xa(b,f--,1);d++}c=d==c.length;a.className=b.join(" ");return c}function Ua(a,b){var c=!(F(Ta(a),b)>=0);c?I(a,b):J(a,b);return c};function Va(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Wa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Xa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var Ya=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];function Za(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f<Ya.length;f++){b=Ya[f];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};function K(a){return w(a)?document.getElementById(a):a}
function $a(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(!Ga||document.compatMode=="CSS1Compat"||Ra("528"))&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var f=0,e=0,g;g=a[e];e++)if(b==g.nodeName)d[f++]=g;d.length=f;return d}else return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(e=f=0;g=a[e];e++){b=g.className;if(typeof b.split=="function"&&F(b.split(/\s+/),c)>=0)d[f++]=
g}d.length=f;return d}else return a}function ab(a,b){Va(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in bb)a.setAttribute(bb[d],c);else a[d]=c})}var bb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
function cb(a,b,c,d){function f(g){if(g)b.appendChild(w(g)?a.createTextNode(g):g)}for(d=d;d<c.length;d++){var e=c[d];v(e)&&!(da(e)&&e.nodeType>0)?ta(db(e)?wa(e):e,f):f(e)}}
function L(){var a=arguments,b=a[0],c=a[1];if(!Sa&&c&&(c.name||c.type)){b=["<",b];c.name&&b.push(' name="',C(c.name),'"');if(c.type){b.push(' type="',C(c.type),'"');var d={};Za(d,c);c=d;delete c.type}b.push(">");b=b.join("")}b=document.createElement(b);if(c)if(w(c))b.className=c;else u(c)=="array"?I.apply(k,[b].concat(c)):ab(b,c);a.length>2&&cb(document,b,a,2);return b}
function db(a){if(a&&typeof a.length=="number")if(da(a))return typeof a.item=="function"||typeof a.item=="string";else if(ca(a))return typeof a.item=="function";return m};function M(){}M.prototype.la=m;M.prototype.u=function(){if(!this.la){this.la=j;this.f()}};M.prototype.f=function(){};var eb;!H||Ra("9");H&&Ra("8");function N(a,b){this.type=a;this.currentTarget=this.target=b}B(N,M);N.prototype.f=function(){delete this.type;delete this.target;delete this.currentTarget};N.prototype.n=m;N.prototype.O=j;function fb(a,b){a&&this.L(a,b)}B(fb,N);p=fb.prototype;p.target=k;p.relatedTarget=k;p.offsetX=0;p.offsetY=0;p.clientX=0;p.clientY=0;p.screenX=0;p.screenY=0;p.button=0;p.keyCode=0;p.charCode=0;p.ctrlKey=m;p.altKey=m;p.shiftKey=m;p.metaKey=m;p.Oa=m;p.na=k;
p.L=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(Fa)try{d=d.nodeName&&d}catch(f){d=k}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?a.clientY:a.pageY;this.screenX=a.screenX||0;
this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Oa=Ia?a.metaKey:a.ctrlKey;this.na=a;delete this.O;delete this.n};p.f=function(){fb.p.f.call(this);this.relatedTarget=this.currentTarget=this.target=this.na=k};function gb(){}var hb=0;p=gb.prototype;p.key=0;p.o=m;p.ha=m;p.L=function(a,b,c,d,f,e){if(ca(a))this.ra=j;else if(a&&a.handleEvent&&ca(a.handleEvent))this.ra=m;else h(Error("Invalid listener argument"));this.C=a;this.xa=b;this.src=c;this.type=d;this.capture=!!f;this.aa=e;this.ha=m;this.key=++hb;this.o=m};p.handleEvent=function(a){if(this.ra)return this.C.call(this.aa||this.src,a);return this.C.handleEvent.call(this.C,a)};function O(a,b){this.ua=b;this.k=[];if(a>this.ua)h(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.k.push(this.t())}B(O,M);p=O.prototype;p.j=k;p.ka=k;function ib(a){if(a.k.length)return a.k.pop();return a.t()}function P(a,b){a.k.length<a.ua?a.k.push(b):a.X(b)}p.t=function(){return this.j?this.j():{}};p.X=function(a){if(this.ka)this.ka(a);else if(da(a))if(ca(a.u))a.u();else for(var b in a)delete a[b]};
p.f=function(){O.p.f.call(this);for(var a=this.k;a.length;)this.X(a.pop());delete this.k};var jb;var kb=(jb="ScriptEngine"in r&&r.ScriptEngine()=="JScript")?r.ScriptEngineMajorVersion()+"."+r.ScriptEngineMinorVersion()+"."+r.ScriptEngineBuildVersion():"0";var lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb;
(function(){function a(){return{c:0,e:0}}function b(){return[]}function c(){function o(z){return g.call(o.src,o.key,z)}return o}function d(){return new gb}function f(){return new fb}var e=jb&&!(pa(kb,"5.7")>=0),g;qb=function(o){g=o};if(e){lb=function(){return ib(i)};mb=function(o){P(i,o)};nb=function(){return ib(l)};ob=function(o){P(l,o)};pb=function(){return ib(n)};rb=function(){P(n,c())};sb=function(){return ib(A)};tb=function(o){P(A,o)};ub=function(){return ib(q)};vb=function(o){P(q,o)};var i=
new O(0,600);i.j=a;var l=new O(0,600);l.j=b;var n=new O(0,600);n.j=c;var A=new O(0,600);A.j=d;var q=new O(0,600);q.j=f}else{lb=a;mb=t;nb=b;ob=t;pb=c;rb=t;sb=d;tb=t;ub=f;vb=t}})();var Q={},R={},S={},wb={};
function xb(a,b,c,d,f){if(b)if(u(b)=="array"){for(var e=0;e<b.length;e++)xb(a,b[e],c,d,f);return k}else{d=!!d;var g=R;b in g||(g[b]=lb());g=g[b];if(!(d in g)){g[d]=lb();g.c++}g=g[d];var i=x(a),l;g.e++;if(g[i]){l=g[i];for(e=0;e<l.length;e++){g=l[e];if(g.C==c&&g.aa==f){if(g.o)break;return l[e].key}}}else{l=g[i]=nb();g.c++}e=pb();e.src=a;g=sb();g.L(c,e,a,b,d,f);c=g.key;e.key=c;l.push(g);Q[c]=g;S[i]||(S[i]=nb());S[i].push(g);if(a.addEventListener){if(a==r||!a.ja)a.addEventListener(b,e,d)}else a.attachEvent(yb(b),
e);return c}else h(Error("Invalid event type"))}function zb(a,b,c,d,f){if(u(b)=="array"){for(var e=0;e<b.length;e++)zb(a,b[e],c,d,f);return k}d=!!d;a:{e=R;if(b in e){e=e[b];if(d in e){e=e[d];a=x(a);if(e[a]){a=e[a];break a}}}a=k}if(!a)return m;for(e=0;e<a.length;e++)if(a[e].C==c&&a[e].capture==d&&a[e].aa==f)return Ab(a[e].key);return m}
function Ab(a){if(!Q[a])return m;var b=Q[a];if(b.o)return m;var c=b.src,d=b.type,f=b.xa,e=b.capture;if(c.removeEventListener){if(c==r||!c.ja)c.removeEventListener(d,f,e)}else c.detachEvent&&c.detachEvent(yb(d),f);c=x(c);f=R[d][e][c];if(S[c]){var g=S[c];ua(g,b);g.length==0&&delete S[c]}b.o=j;f.va=j;Bb(d,e,c,f);delete Q[a];return j}
function Bb(a,b,c,d){if(!d.M)if(d.va){for(var f=0,e=0;f<d.length;f++)if(d[f].o){var g=d[f].xa;g.src=k;rb(g);tb(d[f])}else{if(f!=e)d[e]=d[f];e++}d.length=e;d.va=m;if(e==0){ob(d);delete R[a][b][c];R[a][b].c--;if(R[a][b].c==0){mb(R[a][b]);delete R[a][b];R[a].c--}if(R[a].c==0){mb(R[a]);delete R[a]}}}}
function Cb(a,b,c){var d=0,f=b==k,e=c==k;c=!!c;if(a==k)Va(S,function(l){for(var n=l.length-1;n>=0;n--){var A=l[n];if((f||b==A.type)&&(e||c==A.capture)){Ab(A.key);d++}}});else{a=x(a);if(S[a]){a=S[a];for(var g=a.length-1;g>=0;g--){var i=a[g];if((f||b==i.type)&&(e||c==i.capture)){Ab(i.key);d++}}}}return d}function yb(a){if(a in wb)return wb[a];return wb[a]="on"+a}
function Db(a,b,c,d,f){var e=1;b=x(b);if(a[b]){a.e--;a=a[b];if(a.M)a.M++;else a.M=1;try{for(var g=a.length,i=0;i<g;i++){var l=a[i];if(l&&!l.o)e&=Eb(l,f)!==m}}finally{a.M--;Bb(c,d,b,a)}}return Boolean(e)}function Eb(a,b){var c=a.handleEvent(b);a.ha&&Ab(a.key);return c}
qb(function(a,b){if(!Q[a])return j;var c=Q[a],d=c.type,f=R;if(!(d in f))return j;f=f[d];var e,g;if(eb===undefined)eb=H&&!r.addEventListener;if(eb){e=b||ba("window.event");var i=j in f,l=m in f;if(i){if(e.keyCode<0||e.returnValue!=undefined)return j;a:{var n=m;if(e.keyCode==0)try{e.keyCode=-1;break a}catch(A){n=j}if(n||e.returnValue==undefined)e.returnValue=j}}n=ub();n.L(e,this);e=j;try{if(i){for(var q=nb(),o=n.currentTarget;o;o=o.parentNode)q.push(o);g=f[j];g.e=g.c;for(var z=q.length-1;!n.n&&z>=0&&
g.e;z--){n.currentTarget=q[z];e&=Db(g,q[z],d,j,n)}if(l){g=f[m];g.e=g.c;for(z=0;!n.n&&z<q.length&&g.e;z++){n.currentTarget=q[z];e&=Db(g,q[z],d,m,n)}}}else e=Eb(c,n)}finally{if(q){q.length=0;ob(q)}n.u();vb(n)}return e}d=new fb(b,this);try{e=Eb(c,d)}finally{d.u()}return e});function Fb(){}B(Fb,M);p=Fb.prototype;p.ja=j;p.fa=k;p.addEventListener=function(a,b,c,d){xb(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){zb(this,a,b,c,d)};
p.dispatchEvent=function(a){a=a;if(w(a))a=new N(a,this);else if(a instanceof N)a.target=a.target||this;else{var b=a;a=new N(a.type,this);Za(a,b)}b=1;var c,d=a.type,f=R;if(d in f){f=f[d];d=j in f;var e;if(d){c=[];for(e=this;e;e=e.fa)c.push(e);e=f[j];e.e=e.c;for(var g=c.length-1;!a.n&&g>=0&&e.e;g--){a.currentTarget=c[g];b&=Db(e,c[g],a.type,j,a)&&a.O!=m}}if(m in f){e=f[m];e.e=e.c;if(d)for(g=0;!a.n&&g<c.length&&e.e;g++){a.currentTarget=c[g];b&=Db(e,c[g],a.type,m,a)&&a.O!=m}else for(c=this;!a.n&&c&&e.e;c=
c.fa){a.currentTarget=c;b&=Db(e,c,a.type,m,a)&&a.O!=m}}a=Boolean(b)}else a=j;return a};p.f=function(){Fb.p.f.call(this);Cb(this);this.fa=k};var Gb=r.window;function Hb(a){if(typeof a.J=="function")return a.J();if(w(a))return a.split("");if(v(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Wa(a)}function Ib(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(v(a)||w(a))ta(a,b,c);else{var d;if(typeof a.w=="function")d=a.w();else if(typeof a.J!="function")if(v(a)||w(a)){d=[];for(var f=a.length,e=0;e<f;e++)d.push(e);d=d}else d=Xa(a);else d=void 0;f=Hb(a);e=f.length;for(var g=0;g<e;g++)b.call(c,f[g],d&&d[g],a)}};var Jb="StopIteration"in r?r.StopIteration:Error("StopIteration");function Kb(){}Kb.prototype.next=function(){h(Jb)};Kb.prototype.U=function(){return this};function Lb(a){if(a instanceof Kb)return a;if(typeof a.U=="function")return a.U(m);if(v(a)){var b=0,c=new Kb;c.next=function(){for(;;){if(b>=a.length)h(Jb);if(b in a)return a[b++];else b++}};return c}h(Error("Not implemented"))}
function Mb(a,b,c){if(v(a))try{ta(a,b,c)}catch(d){if(d!==Jb)h(d)}else{a=Lb(a);try{for(;;)b.call(c,a.next(),undefined,a)}catch(f){if(f!==Jb)h(f)}}};function T(a){this.g={};this.d=[];var b=arguments.length;if(b>1){if(b%2)h(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)Nb(this,arguments[c],arguments[c+1])}else if(a){if(a instanceof T){b=a.w();c=a.J()}else{b=Xa(a);c=Wa(a)}for(var d=0;d<b.length;d++)Nb(this,b[d],c[d])}}p=T.prototype;p.c=0;p.R=0;p.J=function(){Ob(this);for(var a=[],b=0;b<this.d.length;b++)a.push(this.g[this.d[b]]);return a};p.w=function(){Ob(this);return this.d.concat()};
p.clear=function(){this.g={};this.R=this.c=this.d.length=0};function Ob(a){if(a.c!=a.d.length){for(var b=0,c=0;b<a.d.length;){var d=a.d[b];if(Object.prototype.hasOwnProperty.call(a.g,d))a.d[c++]=d;b++}a.d.length=c}if(a.c!=a.d.length){var f={};for(c=b=0;b<a.d.length;){d=a.d[b];if(!Object.prototype.hasOwnProperty.call(f,d)){a.d[c++]=d;f[d]=1}b++}a.d.length=c}}function Pb(a,b,c){if(Object.prototype.hasOwnProperty.call(a.g,b))return a.g[b];return c}
function Nb(a,b,c){if(!Object.prototype.hasOwnProperty.call(a.g,b)){a.c++;a.d.push(b);a.R++}a.g[b]=c}p.U=function(a){Ob(this);var b=0,c=this.d,d=this.g,f=this.R,e=this,g=new Kb;g.next=function(){for(;;){if(f!=e.R)h(Error("The map has changed since the iterator was created"));if(b>=c.length)h(Jb);var i=c[b++];return a?i:d[i]}};return g};function Qb(a){return Rb(a||arguments.callee.caller,[])}
function Rb(a,b){var c=[];if(F(b,a)>=0)c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Sb(a)+"(");for(var d=a.arguments,f=0;f<d.length;f++){f>0&&c.push(", ");var e;e=d[f];switch(typeof e){case "object":e=e?"object":"null";break;case "string":e=e;break;case "number":e=String(e);break;case "boolean":e=e?"true":"false";break;case "function":e=(e=Sb(e))?e:"[fn]";break;default:e=typeof e}if(e.length>40)e=e.substr(0,40)+"...";c.push(e)}b.push(a);c.push(")\n");try{c.push(Rb(a.caller,
b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Sb(a){a=String(a);if(!Tb[a]){var b=/function ([^\(]+)/.exec(a);Tb[a]=b?b[1]:"[Anonymous]"}return Tb[a]}var Tb={};function U(a,b,c,d,f){this.reset(a,b,c,d,f)}U.prototype.Pa=0;U.prototype.pa=k;U.prototype.oa=k;var Ub=0;U.prototype.reset=function(a,b,c,d,f){this.Pa=typeof f=="number"?f:Ub++;this.Ya=d||ha();this.B=a;this.Wa=b;this.Ua=c;delete this.pa;delete this.oa};U.prototype.ya=function(a){this.B=a};function V(a){this.La=a}V.prototype.N=k;V.prototype.B=k;V.prototype.V=k;V.prototype.qa=k;function W(a,b){this.name=a;this.value=b}W.prototype.toString=function(){return this.name};var Vb=new W("SEVERE",1E3),Wb=new W("WARNING",900),Xb=new W("CONFIG",700),Yb=new W("FINE",500),Zb=new W("FINEST",300);V.prototype.ya=function(a){this.B=a};function $b(a){if(a.B)return a.B;if(a.N)return $b(a.N);sa("Root logger has no level set.");return k}
V.prototype.log=function(a,b,c){if(a.value>=$b(this).value){a=this.Ka(a,b,c);for(b=this;b;){c=b;var d=a;if(c.qa)for(var f=0,e=void 0;e=c.qa[f];f++)e(d);b=b.N}}};
V.prototype.Ka=function(a,b,c){var d=new U(a,String(b),this.La);if(c){d.pa=c;var f;var e=arguments.callee.caller;try{var g,i=ba("window.location.href");g=typeof c=="string"?{message:c,name:"Unknown error",lineNumber:"Not available",fileName:i,stack:"Not available"}:!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:c.lineNumber||c.Ta||"Not available",fileName:c.fileName||c.filename||c.sourceURL||i,stack:c.stack||"Not available"}:c;f="Message: "+C(g.message)+'\nUrl: <a href="view-source:'+
g.fileName+'" target="_new">'+g.fileName+"</a>\nLine: "+g.lineNumber+"\n\nBrowser stack:\n"+C(g.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+C(Qb(e)+"-> ")}catch(l){f="Exception trying to expose exception! You win, we lose. "+l}d.oa=f}return d};function X(a,b,c){a.log(Yb,b,c)}var ac={},bc=k;function cc(a){if(!bc){bc=new V("");ac[""]=bc;bc.ya(Xb)}var b;if(!(b=ac[a])){b=new V(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=cc(a.substr(0,c));if(!c.V)c.V={};c.V[d]=b;b.N=c;b=ac[a]=b}return b};function dc(){}dc.prototype.H=k;function ec(){return fc(gc)}var gc;function hc(){}B(hc,dc);function fc(a){return(a=ic(a))?new ActiveXObject(a):new XMLHttpRequest}function jc(a){var b={};if(ic(a)){b[0]=j;b[1]=j}return b}hc.prototype.ca=k;
function ic(a){if(!a.ca&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){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{new ActiveXObject(d);return a.ca=d}catch(f){}}h(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return a.ca}gc=new hc;function kc(){if(Fa){this.i={};this.T={};this.Q=[]}}kc.prototype.b=cc("goog.net.xhrMonitor");kc.prototype.I=Fa;function lc(a,b){if(a.I){var c=w(b)?b:da(b)?x(b):"";a.b.log(Zb,"Pushing context: "+b+" ("+c+")",void 0);a.Q.push(c)}}function mc(a){if(a.I){var b=a.Q.pop();a.b.log(Zb,"Popping context: "+b,void 0);nc(a,b)}}function oc(a,b){if(a.I){var c=x(b);X(a.b,"Opening XHR : "+c);for(var d=0;d<a.Q.length;d++){var f=a.Q[d];pc(a,a.i,f,c);pc(a,a.T,c,f)}}}
function nc(a,b){var c=a.T[b],d=a.i[b];if(c&&d){a.b.log(Zb,"Updating dependent contexts",void 0);ta(c,function(f){ta(d,function(e){pc(this,this.i,f,e);pc(this,this.T,e,f)},this)},a)}}function pc(a,b,c,d){b[c]||(b[c]=[]);F(b[c],d)>=0||b[c].push(d)}var Y=new kc;function Z(a){this.headers=new T;this.q=a||k}B(Z,Fb);Z.prototype.b=cc("goog.net.XhrIo");var qc=[];function rc(a,b,c,d,f,e){var g=new Z;qc.push(g);b&&xb(g,"complete",b);xb(g,"ready",ga(sc,g));if(e)g.G=Math.max(0,e);g.send(a,c,d,f)}function sc(a){a.u();ua(qc,a)}p=Z.prototype;p.h=m;p.a=k;p.S=k;p.ta="";p.sa="";p.z=0;p.A="";p.Y=m;p.K=m;p.da=m;p.l=m;p.G=0;p.m=k;
p.send=function(a,b,c,d){if(this.a)h(Error("[goog.net.XhrIo] Object is active with another request"));b=b||"GET";this.ta=a;this.A="";this.z=0;this.sa=b;this.Y=m;this.h=j;this.a=this.q?fc(this.q):new ec;this.S=this.q?this.q.H||(this.q.H=jc(this.q)):gc.H||(gc.H=jc(gc));oc(Y,this.a);this.a.onreadystatechange=y(this.wa,this);try{X(this.b,$(this,"Opening Xhr"));this.da=j;this.a.open(b,a,j);this.da=m}catch(f){X(this.b,$(this,"Error opening Xhr: "+f.message));tc(this,5,f);return}a=c||"";var e=new T(this.headers);
d&&Ib(d,function(i,l){Nb(e,l,i)});b=="POST"&&!Object.prototype.hasOwnProperty.call(e.g,"Content-Type")&&Nb(e,"Content-Type","application/x-www-form-urlencoded;charset=utf-8");Ib(e,function(i,l){this.a.setRequestHeader(l,i)},this);try{if(this.m){Gb.clearTimeout(this.m);this.m=k}if(this.G>0){X(this.b,$(this,"Will abort after "+this.G+"ms if incomplete"));this.m=Gb.setTimeout(y(this.Ra,this),this.G)}X(this.b,$(this,"Sending request"));this.K=j;this.a.send(a);this.K=m}catch(g){X(this.b,$(this,"Send error: "+
g.message));tc(this,5,g)}};p.dispatchEvent=function(a){if(this.a){lc(Y,this.a);try{return Z.p.dispatchEvent.call(this,a)}finally{mc(Y)}}else return Z.p.dispatchEvent.call(this,a)};p.Ra=function(){if(typeof aa!="undefined")if(this.a){this.A="Timed out after "+this.G+"ms, aborting";this.z=8;X(this.b,$(this,this.A));this.dispatchEvent("timeout");this.abort(8)}};function tc(a,b,c){a.h=m;if(a.a){a.l=j;a.a.abort();a.l=m}a.A=c;a.z=b;uc(a);vc(a)}
function uc(a){if(!a.Y){a.Y=j;a.dispatchEvent("complete");a.dispatchEvent("error")}}p.abort=function(a){if(this.a&&this.h){X(this.b,$(this,"Aborting"));this.h=m;this.l=j;this.a.abort();this.l=m;this.z=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");vc(this)}};p.f=function(){if(this.a){if(this.h){this.h=m;this.l=j;this.a.abort();this.l=m}vc(this,j)}Z.p.f.call(this)};p.wa=function(){!this.da&&!this.K&&!this.l?this.Na():wc(this)};p.Na=function(){wc(this)};
function wc(a){if(a.h)if(typeof aa!="undefined")if(a.S[1]&&xc(a)==4&&yc(a)==2)X(a.b,$(a,"Local request error detected and ignored"));else if(a.K&&xc(a)==4)Gb.setTimeout(y(a.wa,a),0);else{a.dispatchEvent("readystatechange");if(xc(a)==4){X(a.b,$(a,"Request complete"));a.h=m;var b;a:switch(yc(a)){case 0:case 200:case 204:case 304:b=j;break a;default:b=m}if(b){a.dispatchEvent("complete");a.dispatchEvent("success")}else{a.z=6;var c;try{c=xc(a)>2?a.a.statusText:""}catch(d){X(a.b,"Can not get status: "+
d.message);c=""}a.A=c+" ["+yc(a)+"]";uc(a)}vc(a)}}}function vc(a,b){if(a.a){var c=a.a,d=a.S[0]?t:k;a.a=k;a.S=k;if(a.m){Gb.clearTimeout(a.m);a.m=k}if(!b){lc(Y,c);a.dispatchEvent("ready");mc(Y)}if(Y.I){var f=x(c);X(Y.b,"Closing XHR : "+f);delete Y.T[f];for(var e in Y.i){ua(Y.i[e],f);Y.i[e].length==0&&delete Y.i[e]}}try{c.onreadystatechange=d}catch(g){a.b.log(Vb,"Problem encountered resetting onreadystatechange: "+g.message,void 0)}}}function xc(a){return a.a?a.a.readyState:0}
function yc(a){try{return xc(a)>2?a.a.status:-1}catch(b){a.b.log(Wb,"Can not get status: "+b.message,void 0);return-1}}function $(a,b){return b+" ["+a.sa+" "+a.ta+" "+yc(a)+"]"};function zc(a,b,c){for(var d=L("ul","reasons"),f=0,e;e=c.reasons[f];f++){var g=L("li"),i=L("span","action"),l=i;e.action=="++"?I(l,"plusplus"):J(l,"plusplus");l=i;e.action!="++"?I(l,"minusminus"):J(l,"minusminus");i.innerHTML=e.action;g.appendChild(i);i=L("span",{},"'ed by ");g.appendChild(i);i=L("span","sender",e.sender);g.appendChild(i);i=e.reason.toLowerCase().indexOf(a.toLowerCase()+e.action);if(i!=-1){i=e.reason.substring(i+a.length+2);if(!/^[\s\xa0]*$/.test(i==k?"":String(i))){i=L("span",{title:e.reason},
i);g.appendChild(i)}}e=new Date(e.timestampMsec);e=L("span","date"," on "+((e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"/"+(e.getDate()<10?"0"+e.getDate():e.getDate())+"/"+e.getFullYear()));g.appendChild(e);d.appendChild(g)}a=L("img",{src:c.graph});d=L("div","target-details",a,d);b.appendChild(d)}s("addTargetDetails",zc,void 0);
s("toggleTargetDetails",function(a,b,c){var d=a.parentNode,f=d.parentNode;Ua(f,"target-expanded");if($a(document,"div","target-details",d).length==0){I(f,"target-loading");rc("/targetdetailsjson/"+b+"/"+c,function(e){J(f,"target-loading");var g;e=e.target;if(e.a)b:{e=String(e.a.responseText);var i;i=/^\s*$/.test(e)?m:/^[\],:{}\s\u2028\u2029]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,
""));if(i)try{g=eval("("+e+")");break b}catch(l){}h(Error("Invalid JSON string: "+e))}zc(c,d,g)})}},void 0);function Ac(a,b){this.s=a;this.F=b;this.za()}Ac.prototype.za=function(){if(this.P==1){this.F.reverse();Bc(this)}else{this.P=1;this.r="&#9650;";this.F.sort(function(a,b){return a.name.localeCompare(b.name)})}Cc(this)};function Bc(a){a.r=a.r=="&#9660;"?"&#9650;":"&#9660;"}
Ac.prototype.Qa=function(){if(this.P==2){this.F.reverse();Bc(this)}else{this.P=2;this.r="&#9660;";this.F.sort(function(a,b){return b.score-a.score})}Cc(this)};
function Cc(a){var b=K("score-table"),c={s:a.s,Ca:a.F},d='<table class="channel-table"><tr><th class="target-cell" id="target-name-header" style="cursor: pointer; cursor: hand">Target</th><th class="score-cell" id="target-score-header" style="cursor: pointer; cursor: hand">Score</th></tr>';if(c.Ca.length==0)d+="<tr><td>No scores yet! Start ++'ing and --'ing stuff!</td></tr>";else for(var f=c.Ca,e=f.length,g=0;g<e;g++){d=d;var i;i={s:c.s,target:f[g]};i='<tr><td class="target-cell"><div class="target-name" onclick="toggleTargetDetails(this, \''+
C(String(i.s))+"', '"+C(String(i.target.name))+"')\">"+C(String(i.target.name))+'</div></td><td class="score-cell">'+C(String(i.target.score))+"</td></tr>";d=d+i}d+="</table>";b.innerHTML=d;b=K("target-name-header");c=K("target-score-header");b.onclick=y(a.za,a);c.onclick=y(a.Qa,a);if(a.P==1)b.innerHTML=a.r+b.innerHTML;else c.innerHTML=a.r+c.innerHTML}s("partychapp.ScoreTable",Ac,void 0);function Dc(){this.v=[];this.ea=new T;this.Fa=this.Ga=this.Ha=this.Aa=0;this.D=new T;this.ia=this.Ea=0;this.Ma=1;this.Z=new O(0,4E3);this.Z.t=function(){return new Ec};this.Ba=new O(0,50);this.Ba.t=function(){return new Fc};var a=this;this.ba=new O(0,2E3);this.ba.t=function(){return String(a.Ma++)};this.ba.X=function(){};this.Ja=3}Dc.prototype.b=cc("goog.debug.Trace");function Fc(){this.ga=this.Da=this.W=0}
Fc.prototype.toString=function(){var a=[];a.push(this.type," ",this.W," (",Math.round(this.Da*10)/10," ms)");this.ga&&a.push(" [VarAlloc = ",this.ga,"]");return a.join("")};function Ec(){}function Gc(a,b,c,d){var f=[];c==-1?f.push("    "):f.push(Hc(a.ma-c));f.push(" ",Ic(a.ma-b));if(a.$==0)f.push(" Start        ");else if(a.$==1){f.push(" Done ");f.push(Hc(a.Xa-a.startTime)," ms ")}else f.push(" Comment      ");f.push(d,a);a.Sa>0&&f.push("[VarAlloc ",a.Sa,"] ");return f.join("")}
Ec.prototype.toString=function(){return this.type==k?this.Ia:"["+this.type+"] "+this.Ia};Dc.prototype.reset=function(a){this.Ja=a;for(a=0;a<this.v.length;a++){var b=this.Z.id;b&&P(this.ba,b);P(this.Z,this.v[a])}this.v.length=0;this.ea.clear();this.Aa=ha();this.ia=this.Ea=this.Fa=this.Ga=this.Ha=0;b=this.D.w();for(a=0;a<b.length;a++){var c=Pb(this.D,b[a]);c.W=0;c.Da=0;c.ga=0;P(this.Ba,c)}this.D.clear()};
Dc.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.v.length;d++){var f=this.v[d];f.$==1&&c.pop();a.push(" ",Gc(f,this.Aa,b,c.join("")));b=f.ma;a.push("\n");f.$==0&&c.push("|  ")}if(this.ea.c!=0){var e=ha();a.push(" Unstopped timers:\n");Mb(this.ea,function(g){a.push("  ",g," (",e-g.startTime," ms, started at ",Ic(g.startTime),")\n")})}b=this.D.w();for(d=0;d<b.length;d++){c=Pb(this.D,b[d]);c.W>1&&a.push(" TOTAL ",c,"\n")}a.push("Total tracers created ",this.Ea,"\n","Total comments created ",
this.ia,"\n","Overhead start: ",this.Ha," ms\n","Overhead end: ",this.Ga," ms\n","Overhead comment: ",this.Fa," ms\n");return a.join("")};function Hc(a){a=Math.round(a);var b="";if(a<1E3)b=" ";if(a<100)b="  ";if(a<10)b="   ";return b+a}function Ic(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)}new Dc;new O(0,100);s("showCreateForm",function(){I(K("create-button-container"),"hidden");J(K("channel-settings-table"),"hidden")},void 0);
s("submitCreateRoom",function(){var a=K("room-name").value,b=K("inviteonly-true").checked,c=K("invitees").value;if(/^[\s\xa0]*$/.test(a==k?"":String(a))){alert("Please enter a room name.");return m}rc("/channel/create",function(d){var f=K("create-result");J(f,"hidden");var e;d=d.target;try{e=d.a?d.a.responseText:""}catch(g){X(d.b,"Can not get responseText: "+g.message);e=""}f.innerHTML=e},"POST","name="+encodeURIComponent(a)+"&inviteonly="+b+"&invitees="+encodeURIComponent(c));return m},void 0);
s("acceptInvitation",function(a){window.location.href="/channel/invitation/accept?name="+encodeURIComponent(a)},void 0);s("declineInvitation",function(a){window.location.href="/channel/invitation/decline?name="+encodeURIComponent(a)},void 0);s("requestInvitation",function(a){window.location.href="/channel/invitation/request?name="+encodeURIComponent(a)},void 0);s("getInvitation",function(a){window.location.href="/channel/invitation/get?name="+encodeURIComponent(a)},void 0);
s("displayChannels",function(a,b){b.setAttribute("style","display: block");if(a.error)b.innerHTML="ERROR: "+a.error;else{for(var c=L("ul","channel-list"),d=a.channels,f=0,e;e=d[f];f++){var g=L("a",{href:"/channel/"+e.name},e.name);e=L("span","description"," as ",L("b",{},e.alias),e.memberCount>1?" with "+(e.memberCount-1)+(e.memberCount==2?" other":" others"):"");g=L("li",{},g,e);c.appendChild(g)}b.appendChild(c)}},void 0);
s("printEmail",function(a){for(var b=[112,97,114,116,121,99,104,97,112,112,64,103,111,111,103,108,101,103,114,111,117,112,115,46,99,111,109],c=[],d=0;d<b.length;d++)c.push(String.fromCharCode(b[d]));c=c.join("");document.write('<a href="mailto:'+c+'">'+(a||c)+"</a>")},void 0);

