function e(a){throw a;}var j=void 0,l=null;function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function n(a){return function(){return this[a]}}function o(a){return function(){return a}}var p,ca=ca||{},r=this;function da(a){for(var a=a.split("."),b=r,c;c=a.shift();)if(b[c]!=l)b=b[c];else return l;return b}function s(){}function u(a){a.c=function(){return a.Pj||(a.Pj=new a)}}
function ea(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[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 ga(a){return a!==j}function ha(a){return ea(a)=="array"}function ia(a){var b=ea(a);return b=="array"||b=="object"&&typeof a.length=="number"}function v(a){return typeof a=="string"}function ja(a){return typeof a=="number"}function ka(a){return ea(a)=="function"}function la(a){a=ea(a);return a=="object"||a=="array"||a=="function"}function ma(a){return a[na]||(a[na]=++oa)}
var na="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){a||e(Error());if(arguments.length>2){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)}}else return function(){return a.apply(b,arguments)}}
function ra(a,b,c){ra=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?pa:qa;return ra.apply(l,arguments)}function sa(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 ta=Date.now||function(){return+new Date};function ua(a){var b={},c;for(c in b)var d=(""+b[c]).replace(/\$/g,"$$$$"),a=a.replace(RegExp("\\{\\$"+c+"\\}","gi"),d);return a}
function w(a,b){function c(){}c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c;a.prototype.constructor=a};function va(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function wa(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function xa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function ya(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")}
function za(a){if(!Aa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(Ba,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(Ca,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(Da,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(Ea,"&quot;"));return a}var Ba=/&/g,Ca=/</g,Da=/>/g,Ea=/\"/g,Aa=/[&<>\"]/;function Fa(a){return ya(a.replace(/  /g," &#160;"),j)}
function Ga(a,b){for(var c=0,d=xa(String(a)).split("."),g=xa(String(b)).split("."),h=Math.max(d.length,g.length),i=0;c==0&&i<h;i++){var k=d[i]||"",m=g[i]||"",q=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");do{var y=q.exec(k)||["","",""],L=t.exec(m)||["","",""];if(y[0].length==0&&L[0].length==0)break;c=Ha(y[1].length==0?0:parseInt(y[1],10),L[1].length==0?0:parseInt(L[1],10))||Ha(y[2].length==0,L[2].length==0)||Ha(y[2],L[2])}while(c==0)}return c}
function Ha(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var Ia,Ja,Ka,La,Ma,Na,Oa;function Pa(){return r.navigator?r.navigator.userAgent:l}function Qa(){return r.navigator}Ma=La=Ka=Ja=Ia=!1;var Ra;if(Ra=Pa()){var Sa=Qa();Ia=Ra.indexOf("Opera")==0;Ja=!Ia&&Ra.indexOf("MSIE")!=-1;La=(Ka=!Ia&&Ra.indexOf("WebKit")!=-1)&&Ra.indexOf("Mobile")!=-1;Ma=!Ia&&!Ka&&Sa.product=="Gecko"}var Ta=Ia,x=Ja,z=Ma,A=Ka,Ua=La,Va,Wa=Qa();Va=Wa&&Wa.platform||"";Na=Va.indexOf("Mac")!=-1;Oa=Va.indexOf("Win")!=-1;var Xa=!!Qa()&&(Qa().appVersion||"").indexOf("X11")!=-1,Ya;
a:{var Za="",$a;if(Ta&&r.opera)var ab=r.opera.version,Za=typeof ab=="function"?ab():ab;else if(z?$a=/rv\:([^\);]+)(\)|;)/:x?$a=/MSIE\s+([^\);]+)(\)|;)/:A&&($a=/WebKit\/(\S+)/),$a)var bb=$a.exec(Pa()),Za=bb?bb[1]:"";if(x){var cb,db=r.document;cb=db?db.documentMode:j;if(cb>parseFloat(Za)){Ya=String(cb);break a}}Ya=Za}var eb={};function B(a){return eb[a]||(eb[a]=Ga(Ya,a)>=0)}var fb={};function gb(){return fb[9]||(fb[9]=x&&document.documentMode&&document.documentMode>=9)};function hb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function ib(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function jb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function kb(){var a=lb,b;for(b in a)return!1;return!0}function mb(a,b,c){b in a&&e(Error('The object already contains the key "'+b+'"'));a[b]=c}var nb="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
function ob(a,b){for(var c,d,g=1;g<arguments.length;g++){d=arguments[g];for(c in d)a[c]=d[c];for(var h=0;h<nb.length;h++)c=nb[h],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function pb(a){this.stack=Error().stack||"";if(a)this.message=String(a)}w(pb,Error);pb.prototype.name="CustomError";function qb(a,b){b.unshift(a);pb.call(this,va.apply(l,b));b.shift();this.dl=a}w(qb,pb);qb.prototype.name="AssertionError";function rb(a,b){e(new qb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};var C=Array.prototype,sb=C.indexOf?function(a,b,c){return C.indexOf.call(a,b,c)}:function(a,b,c){c=c==l?0:c<0?Math.max(0,a.length+c):c;if(v(a))return!v(b)||b.length!=1?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},tb=C.forEach?function(a,b,c){C.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=v(a)?a.split(""):a,h=0;h<d;h++)h in g&&b.call(c,g[h],h,a)},ub=C.map?function(a,b,c){return C.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=Array(d),h=v(a)?a.split(""):
a,i=0;i<d;i++)i in h&&(g[i]=b.call(c,h[i],i,a));return g},vb=C.some?function(a,b,c){return C.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=v(a)?a.split(""):a,h=0;h<d;h++)if(h in g&&b.call(c,g[h],h,a))return!0;return!1},wb=C.every?function(a,b,c){return C.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,g=v(a)?a.split(""):a,h=0;h<d;h++)if(h in g&&!b.call(c,g[h],h,a))return!1;return!0};function xb(a,b){return sb(a,b)>=0}
function yb(a){if(!ha(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}function zb(a,b){var c=sb(a,b),d;(d=c>=0)&&C.splice.call(a,c,1);return d}function Ab(a){return C.concat.apply(C,arguments)}function Bb(a){if(ha(a))return Ab(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}
function Cb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],g;if(ha(d)||(g=ia(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(g)for(var h=a.length,i=d.length,k=0;k<i;k++)a[h+k]=d[k];else a.push(d)}}function Db(a,b,c,d){C.splice.apply(a,Eb(arguments,1))}function Eb(a,b,c){return arguments.length<=2?C.slice.call(a,b):C.slice.call(a,b,c)}function Fb(){for(var a=[],b=0;b<512;b++)a[b]=!1;return a};var Gb;var D="click",Hb="keydown";var Ib=!x||gb(),Jb=x&&!B("8");function Kb(){}p=Kb.prototype;p.Zc=!1;p.Qj=n("Zc");p.Jh=Kb.prototype.Qj;p.j=function(){if(!this.Zc)this.Zc=!0,this.g()};p.g=function(){this.ij&&Lb.apply(l,this.ij)};function Mb(a){a&&typeof a.j=="function"&&a.j()}function Lb(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?Lb.apply(l,d):Mb(d)}};function E(a,b){this.type=a;this.currentTarget=this.target=b}w(E,Kb);p=E.prototype;p.g=function(){delete this.type;delete this.target;delete this.currentTarget};p.Ec=!1;p.he=!0;p.stopPropagation=function(){this.Ec=!0};p.preventDefault=function(){this.he=!1};function Nb(a){a.preventDefault()};function Ob(a){Ob[" "](a);return a}Ob[" "]=s;function Pb(a,b){a&&this.Zb(a,b)}w(Pb,E);var Qb=[1,4,2];p=Pb.prototype;p.target=l;p.relatedTarget=l;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=!1;p.altKey=!1;p.shiftKey=!1;p.metaKey=!1;p.kk=!1;p.oa=l;
p.Zb=function(a,b){var c=this.type=a.type;E.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(z){var g;a:{try{Ob(d.nodeName);g=!0;break a}catch(h){}g=!1}g||(d=l)}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==j?a.offsetX:a.layerX;this.offsetY=a.offsetY!==j?a.offsetY:a.layerY;this.clientX=a.clientX!==j?a.clientX:a.pageX;this.clientY=a.clientY!==j?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.kk=Na?a.metaKey:a.ctrlKey;this.state=a.state;this.oa=a;delete this.he;delete this.Ec};function Rb(a){return(Ib?a.oa.button==0:a.type=="click"?!0:!!(a.oa.button&Qb[0]))&&!(A&&Na&&a.ctrlKey)}
p.stopPropagation=function(){Pb.b.stopPropagation.call(this);this.oa.stopPropagation?this.oa.stopPropagation():this.oa.cancelBubble=!0};p.preventDefault=function(){Pb.b.preventDefault.call(this);var a=this.oa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Jb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};p.sj=n("oa");p.g=function(){Pb.b.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.oa=l};function Sb(){}var Tb=0;p=Sb.prototype;p.key=0;p.Hc=!1;p.Of=!1;p.Zb=function(a,b,c,d,g,h){ka(a)?this.Yh=!0:a&&a.handleEvent&&ka(a.handleEvent)?this.Yh=!1:e(Error("Invalid listener argument"));this.nd=a;this.vi=b;this.src=c;this.type=d;this.capture=!!g;this.Se=h;this.Of=!1;this.key=++Tb;this.Hc=!1};p.handleEvent=function(a){return this.Yh?this.nd.call(this.Se||this.src,a):this.nd.handleEvent.call(this.nd,a)};var Ub,Vb=(Ub="ScriptEngine"in r&&r.ScriptEngine()=="JScript")?r.ScriptEngineMajorVersion()+"."+r.ScriptEngineMinorVersion()+"."+r.ScriptEngineBuildVersion():"0";function Wb(a,b){this.zc=b;this.aa=[];a>this.zc&&e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.aa.push(this.Xc())}w(Wb,Kb);p=Wb.prototype;p.qc=l;p.Ch=l;p.getObject=function(){return this.aa.length?this.aa.pop():this.Xc()};p.Gc=function(a){this.aa.length<this.zc?this.aa.push(a):this.rc(a)};p.Xc=function(){return this.qc?this.qc():{}};p.rc=function(a){if(this.Ch)this.Ch(a);else if(la(a))if(ka(a.j))a.j();else for(var b in a)delete a[b]};
p.g=function(){Wb.b.g.call(this);for(var a=this.aa;a.length;)this.rc(a.pop());delete this.aa};var Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc;
(function(){function a(){return{U:0,ib:0}}function b(){return[]}function c(){function a(b){b=i.call(a.src,a.key,b);if(!b)return b}return a}function d(){return new Sb}function g(){return new Pb}var h=Ub&&!(Ga(Vb,"5.7")>=0),i;bc=function(a){i=a};if(h){Xb=function(){return k.getObject()};Yb=function(a){k.Gc(a)};Zb=function(){return m.getObject()};$b=function(a){m.Gc(a)};ac=function(){return q.getObject()};cc=function(){q.Gc(c())};dc=function(){return t.getObject()};ec=function(a){t.Gc(a)};fc=function(){return y.getObject()};
gc=function(a){y.Gc(a)};var k=new Wb(0,600);k.qc=a;var m=new Wb(0,600);m.qc=b;var q=new Wb(0,600);q.qc=c;var t=new Wb(0,600);t.qc=d;var y=new Wb(0,600);y.qc=g}else Xb=a,Yb=s,Zb=b,$b=s,ac=c,cc=s,dc=d,ec=s,fc=g,gc=s})();var hc={},ic={},jc={},kc={};
function F(a,b,c,d,g){if(b)if(ha(b)){for(var h=0;h<b.length;h++)F(a,b[h],c,d,g);return l}else{var d=!!d,i=ic;b in i||(i[b]=Xb());i=i[b];d in i||(i[d]=Xb(),i.U++);var i=i[d],k=ma(a),m;i.ib++;if(i[k]){m=i[k];for(h=0;h<m.length;h++)if(i=m[h],i.nd==c&&i.Se==g){if(i.Hc)break;return m[h].key}}else m=i[k]=Zb(),i.U++;h=ac();h.src=a;i=dc();i.Zb(c,h,a,b,d,g);c=i.key;h.key=c;m.push(i);hc[c]=i;jc[k]||(jc[k]=Zb());jc[k].push(i);a.addEventListener?(a==r||!a.Ah)&&a.addEventListener(b,h,d):a.attachEvent(b in kc?
kc[b]:kc[b]="on"+b,h);return c}else e(Error("Invalid event type"))}function lc(a,b,c,d,g){if(ha(b))for(var h=0;h<b.length;h++)lc(a,b[h],c,d,g);else a=F(a,b,c,d,g),hc[a].Of=!0}function mc(a,b,c,d,g){if(ha(b))for(var h=0;h<b.length;h++)mc(a,b[h],c,d,g);else if(d=!!d,a=nc(a,b,d))for(h=0;h<a.length;h++)if(a[h].nd==c&&a[h].capture==d&&a[h].Se==g){oc(a[h].key);break}}
function oc(a){if(!hc[a])return!1;var b=hc[a];if(b.Hc)return!1;var c=b.src,d=b.type,g=b.vi,h=b.capture;c.removeEventListener?(c==r||!c.Ah)&&c.removeEventListener(d,g,h):c.detachEvent&&c.detachEvent(d in kc?kc[d]:kc[d]="on"+d,g);c=ma(c);g=ic[d][h][c];if(jc[c]){var i=jc[c];zb(i,b);i.length==0&&delete jc[c]}b.Hc=!0;g.gi=!0;pc(d,h,c,g);delete hc[a];return!0}
function pc(a,b,c,d){if(!d.af&&d.gi){for(var g=0,h=0;g<d.length;g++)if(d[g].Hc){var i=d[g].vi;i.src=l;cc(i);ec(d[g])}else g!=h&&(d[h]=d[g]),h++;d.length=h;d.gi=!1;h==0&&($b(d),delete ic[a][b][c],ic[a][b].U--,ic[a][b].U==0&&(Yb(ic[a][b]),delete ic[a][b],ic[a].U--),ic[a].U==0&&(Yb(ic[a]),delete ic[a]))}}
function qc(a){var b,c=0,d=b==l;b=!!b;if(a==l)hb(jc,function(a){for(var g=a.length-1;g>=0;g--){var h=a[g];if(d||b==h.capture)oc(h.key),c++}});else if(a=ma(a),jc[a])for(var a=jc[a],g=a.length-1;g>=0;g--){var h=a[g];if(d||b==h.capture)oc(h.key),c++}}function nc(a,b,c){var d=ic;return b in d&&(d=d[b],c in d&&(d=d[c],a=ma(a),d[a]))?d[a]:l}
function rc(a,b,c,d,g){var h=1,b=ma(b);if(a[b]){a.ib--;a=a[b];a.af?a.af++:a.af=1;try{for(var i=a.length,k=0;k<i;k++){var m=a[k];m&&!m.Hc&&(h&=sc(m,g)!==!1)}}finally{a.af--,pc(c,d,b,a)}}return Boolean(h)}function sc(a,b){var c=a.handleEvent(b);a.Of&&oc(a.key);return c}
bc(function(a,b){if(!hc[a])return!0;var c=hc[a],d=c.type,g=ic;if(!(d in g))return!0;var g=g[d],h,i;Gb===j&&(Gb=x&&!r.addEventListener);if(Gb){h=b||da("window.event");var k=!0 in g,m=!1 in g;if(k){if(h.keyCode<0||h.returnValue!=j)return!0;a:{var q=!1;if(h.keyCode==0)try{h.keyCode=-1;break a}catch(t){q=!0}if(q||h.returnValue==j)h.returnValue=!0}}q=fc();q.Zb(h,this);h=!0;try{if(k){for(var y=Zb(),L=q.currentTarget;L;L=L.parentNode)y.push(L);i=g[!0];i.ib=i.U;for(var fa=y.length-1;!q.Ec&&fa>=0&&i.ib;fa--)q.currentTarget=
y[fa],h&=rc(i,y[fa],d,!0,q);if(m){i=g[!1];i.ib=i.U;for(fa=0;!q.Ec&&fa<y.length&&i.ib;fa++)q.currentTarget=y[fa],h&=rc(i,y[fa],d,!1,q)}}else h=sc(c,q)}finally{if(y)y.length=0,$b(y);q.j();gc(q)}return h}d=new Pb(b,this);try{h=sc(c,d)}finally{d.j()}return h});function tc(a){this.Ua=a;this.N=[]}w(tc,Kb);var uc=[];p=tc.prototype;p.f=function(a,b,c,d,g){ha(b)||(uc[0]=b,b=uc);for(var h=0;h<b.length;h++)this.N.push(F(a,b[h],c||this,d||!1,g||this.Ua||this));return this};p.X=function(a,b,c,d,g){if(ha(b))for(var h=0;h<b.length;h++)this.X(a,b[h],c,d,g);else{a:{c=c||this;g=g||this.Ua||this;d=!!d;if(a=nc(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Hc&&a[b].nd==c&&a[b].capture==d&&a[b].Se==g){a=a[b];break a}a=l}if(a)a=a.key,oc(a),zb(this.N,a)}return this};
p.ge=function(){tb(this.N,oc);this.N.length=0};p.g=function(){tc.b.g.call(this);this.ge()};p.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};function G(a,b){this.width=a;this.height=b}function vc(a,b){return a==b?!0:!a||!b?!1:a.width==b.width&&a.height==b.height}p=G.prototype;p.Ba=function(){return new G(this.width,this.height)};p.toString=function(){return"("+this.width+" x "+this.height+")"};p.Ib=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function H(a,b){this.x=ga(a)?a:0;this.y=ga(b)?b:0}H.prototype.Ba=function(){return new H(this.x,this.y)};H.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function wc(a,b){return new H(a.x-b.x,a.y-b.y)};function xc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}xc.prototype.Ba=function(){return new xc(this.top,this.right,this.bottom,this.left)};xc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};xc.prototype.contains=function(a){return!this||!a?!1:a instanceof xc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}p=yc.prototype;p.Ba=function(){return new yc(this.left,this.top,this.width,this.height)};p.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
p.Wh=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};p.contains=function(a){return a instanceof yc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
p.Mh=function(){return new G(this.width,this.height)};var Ac;function Bc(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function I(a,b){var c=Bc(a),d=Eb(arguments,1),g;g=c;for(var h=0,i=0;i<d.length;i++)xb(g,d[i])||(g.push(d[i]),h++);g=h==d.length;a.className=c.join(" ");return g}function Cc(a,b){var c=Bc(a),d=Eb(arguments,1),g;g=c;for(var h=0,i=0;i<g.length;i++)xb(d,g[i])&&(Db(g,i--,1),h++);g=h==d.length;a.className=c.join(" ");return g}
function Dc(a,b,c){for(var d=Bc(a),g=!1,h=0;h<d.length;h++)d[h]==b&&(Db(d,h--,1),g=!0);if(g)d.push(c),a.className=d.join(" ")}function Ec(a,b,c){c?I(a,b):Cc(a,b)};var Fc=!x||gb();!z&&!x||x&&gb()||z&&B("1.9.1");var Gc=x&&!B("9");function J(a){return a?new Hc(K(a)):Ac||(Ac=new Hc)}function N(a){return v(a)?document.getElementById(a):a}
function Ic(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(!A||Jc(document)||B("528"))&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName)if(a=a.getElementsByClassName(c),b){for(var d={},g=0,h=0,i;i=a[h];h++)b==i.nodeName&&(d[g++]=i);d.length=g;return d}else return a;a=a.getElementsByTagName(b||"*");if(c){d={};for(h=g=0;i=a[h];h++)b=i.className,typeof b.split=="function"&&xb(b.split(/\s+/),c)&&(d[g++]=i);d.length=g;return d}else return a}
function Kc(a,b){hb(b,function(b,d){d=="style"?a.style.cssText=b:d=="class"?a.className=b:d=="for"?a.htmlFor=b:d in Lc?a.setAttribute(Lc[d],b):d.lastIndexOf("aria-",0)==0?a.setAttribute(d,b):a[d]=b})}var Lc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};
function Mc(a){var b=a.document;if(A&&!B("500")&&!Ua){typeof a.innerHeight=="undefined"&&(a=window);var b=a.innerHeight,c=a.document.documentElement.scrollHeight;a==a.top&&c<b&&(b-=15);return new G(a.innerWidth,b)}a=Jc(b)?b.documentElement:b.body;return new G(a.clientWidth,a.clientHeight)}function Nc(a){return a.parentWindow||a.defaultView}function O(a,b,c){return Oc(document,arguments)}
function Oc(a,b){var c=b[0],d=b[1];if(!Fc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',za(d.name),'"');if(d.type){c.push(' type="',za(d.type),'"');var g={};ob(g,d);d=g;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)v(d)?c.className=d:ha(d)?I.apply(l,[c].concat(d)):Kc(c,d);b.length>2&&Pc(a,c,b,2);return c}
function Pc(a,b,c,d){function g(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var h=c[d];if(ia(h)&&!(la(h)&&h.nodeType>0)){var i;a:{if(h&&typeof h.length=="number")if(la(h)){i=typeof h.item=="function"||typeof h.item=="string";break a}else if(ka(h)){i=typeof h.item=="function";break a}i=!1}tb(i?Bb(h):h,g)}else g(h)}}function P(a){return document.createElement(a)}function Jc(a){return a.compatMode=="CSS1Compat"}function Qc(a,b){a.appendChild(b)}
function Rc(a,b){Pc(K(a),a,arguments,1)}function Sc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Tc(a){return a&&a.parentNode?a.parentNode.removeChild(a):l}function Uc(a){return a.firstElementChild!=j?a.firstElementChild:Vc(a.firstChild)}function Wc(a){return a.nextElementSibling!=j?a.nextElementSibling:Vc(a.nextSibling)}function Vc(a){for(;a&&a.nodeType!=1;)a=a.nextSibling;return a}
function Xc(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function K(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function Yc(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else Sc(a),a.appendChild(K(a).createTextNode(b))}var Zc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},$c={IMG:" ",BR:"\n"};function ad(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,ja(a)&&a>=0&&a<32768):!1}function bd(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))}
function cd(a){if(Gc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];dd(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Gc||(a=a.replace(/ +/g," "));a!=" "&&(a=a.replace(/^\s*/,""));return a}function ed(a){var b=[];dd(a,b,!1);return b.join("")}
function dd(a,b,c){if(!(a.nodeName in Zc))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in $c)b.push($c[a.nodeName]);else for(a=a.firstChild;a;)dd(a,b,c),a=a.nextSibling}function Hc(a){this.A=a||r.document||document}p=Hc.prototype;p.k=J;function fd(a){return a.A}p.a=function(a){return v(a)?this.A.getElementById(a):a};p.d=function(a,b,c){return Oc(this.A,arguments)};p.createElement=function(a){return this.A.createElement(a)};
p.createTextNode=function(a){return this.A.createTextNode(a)};function gd(a){return Jc(a.A)}function hd(a){return Nc(a.A)}function id(a){var b=a.A,a=!A&&Jc(b)?b.documentElement:b.body,b=Nc(b);return new H(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}p.appendChild=Qc;p.removeNode=Tc;p.Kh=Uc;p.contains=Xc;function Q(){}w(Q,Kb);p=Q.prototype;p.Ah=!0;p.kf=l;p.Ug=ba("kf");p.addEventListener=function(a,b,c,d){F(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){mc(this,a,b,c,d)};
p.dispatchEvent=function(a){var b=a.type||a,c=ic;if(b in c){if(v(a))a=new E(a,this);else if(a instanceof E)a.target=a.target||this;else{var d=a,a=new E(b,this);ob(a,d)}var d=1,g,c=c[b],b=!0 in c,h;if(b){g=[];for(h=this;h;h=h.kf)g.push(h);h=c[!0];h.ib=h.U;for(var i=g.length-1;!a.Ec&&i>=0&&h.ib;i--)a.currentTarget=g[i],d&=rc(h,g[i],a.type,!0,a)&&a.he!=!1}if(!1 in c)if(h=c[!1],h.ib=h.U,b)for(i=0;!a.Ec&&i<g.length&&h.ib;i++)a.currentTarget=g[i],d&=rc(h,g[i],a.type,!1,a)&&a.he!=!1;else for(g=this;!a.Ec&&
g&&h.ib;g=g.kf)a.currentTarget=g,d&=rc(h,g,a.type,!1,a)&&a.he!=!1;a=Boolean(d)}else a=!0;return a};p.g=function(){Q.b.g.call(this);qc(this);this.kf=l};function jd(a,b,c){this.target=a;this.handle=b||a;this.$d=c||new yc(NaN,NaN,NaN,NaN);this.A=K(a);this.na=new tc(this);F(this.handle,["touchstart","mousedown"],this.Fi,!1,this)}w(jd,Q);var kd=x||z&&B("1.9.3");p=jd.prototype;p.clientX=0;p.clientY=0;p.screenX=0;p.screenY=0;p.Gi=0;p.Hi=0;p.cb=0;p.eb=0;p.S=!0;p.Cb=!1;p.kg=0;p.Vj=0;p.Oj=!1;p.G=n("na");p.u=ba("S");
p.g=function(){jd.b.g.call(this);mc(this.handle,["touchstart","mousedown"],this.Fi,!1,this);this.na.j();delete this.target;delete this.handle;delete this.na};
p.Fi=function(a){var b=a.type=="mousedown";if(this.S&&!this.Cb&&(!b||Rb(a))){ld(a);if(this.kg==0)if(this.og(a),this.Cb)a.preventDefault();else return;else a.preventDefault();var b=this.A,c=b.documentElement,d=!kd;this.na.f(b,["touchmove","mousemove"],this.Gj,d);this.na.f(b,["touchend","mouseup"],this.He,d);kd?(c.setCapture(!1),this.na.f(c,"losecapture",this.He)):this.na.f(b?Nc(b):window,"blur",this.He);x&&this.Oj&&this.na.f(b,"dragstart",Nb);this.ke&&this.na.f(this.ke,"scroll",this.fk,d);this.clientX=
this.Gi=a.clientX;this.clientY=this.Hi=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.cb=this.target.offsetLeft;this.eb=this.target.offsetTop;this.qd=id(J(this.A));this.Vj=ta()}else this.dispatchEvent("earlycancel")};p.og=function(a){if(this.dispatchEvent(new md("start",this,a.clientX,a.clientY,a))!==!1)this.Cb=!0};
p.He=function(a,b){this.na.ge();kd&&this.A.releaseCapture();var c=nd(this,this.cb),d=od(this,this.eb);this.Cb?(ld(a),this.Cb=!1,this.dispatchEvent(new md("end",this,a.clientX,a.clientY,a,c,d,b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel");(a.type=="touchend"||a.type=="touchcancel")&&a.preventDefault()};
function ld(a){var b=a.type;b=="touchstart"||b=="touchmove"?a.Zb(a.oa.targetTouches[0],a.currentTarget):(b=="touchend"||b=="touchcancel")&&a.Zb(a.oa.changedTouches[0],a.currentTarget)}
p.Gj=function(a){if(this.S){ld(a);var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Cb){var d=this.Gi-this.clientX,g=this.Hi-this.clientY;if(d*d+g*g>this.kg&&(this.og(a),!this.Cb)){this.He(a);return}}c=this.Nf(b,c);b=c.x;c=c.y;this.Cb&&this.dispatchEvent(new md("beforedrag",this,a.clientX,a.clientY,a,b,c))!==!1&&(pd(this,a,b,c),a.preventDefault())}};
p.Nf=function(a,b){var c=id(J(this.A));a+=c.x-this.qd.x;b+=c.y-this.qd.y;this.qd=c;this.cb+=a;this.eb+=b;var c=nd(this,this.cb),d=od(this,this.eb);return new H(c,d)};p.fk=function(a){var b=this.Nf(0,0);a.clientX=this.clientX;a.clientY=this.clientY;pd(this,a,b.x,b.y)};function pd(a,b,c,d){a.Uf(c,d);a.dispatchEvent(new md("drag",a,b.clientX,b.clientY,b,c,d))}
function nd(a,b){var c=a.$d,d=!isNaN(c.left)?c.left:l,c=!isNaN(c.width)?c.width:0;return Math.min(d!=l?d+c:Infinity,Math.max(d!=l?d:-Infinity,b))}function od(a,b){var c=a.$d,d=!isNaN(c.top)?c.top:l,c=!isNaN(c.height)?c.height:0;return Math.min(d!=l?d+c:Infinity,Math.max(d!=l?d:-Infinity,b))}p.Uf=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};
function md(a,b,c,d,g,h,i,k){E.call(this,a);this.clientX=c;this.clientY=d;this.Yk=g;this.left=ga(h)?h:b.cb;this.top=ga(i)?i:b.eb;this.Md=b;this.$k=!!k}w(md,E);function qd(a,b){var c=K(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,l))?c[b]||c.getPropertyValue(b):""}function rd(a,b){return qd(a,b)||(a.currentStyle?a.currentStyle[b]:l)||a.style[b]}function sd(a){return rd(a,"position")}function td(a,b,c){var d,g=z&&(Na||Xa)&&B("1.9");b instanceof H?(d=b.x,b=b.y):(d=b,b=c);a.style.left=ud(d,g);a.style.top=ud(b,g)}function vd(a){return new H(a.offsetLeft,a.offsetTop)}
function wd(a){var b=a.getBoundingClientRect();if(x)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b}
function xd(a){if(x)return a.offsetParent;for(var b=K(a),c=rd(a,"position"),d=c=="fixed"||c=="absolute",a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=rd(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return l}
function yd(a){for(var b=new xc(0,Infinity,Infinity,0),c=J(a),d=c.A.body,g=c.A.documentElement,h=!A&&Jc(c.A)?c.A.documentElement:c.A.body;a=xd(a);)if((!x||a.clientWidth!=0)&&(!A||a.clientHeight!=0||a!=d)&&a!=d&&a!=g&&rd(a,"overflow")!="visible"){var i=zd(a),k;k=a;if(z&&!B("1.9")){var m=parseFloat(qd(k,"borderLeftWidth"));if(Ad(k)){var q=k.offsetWidth-k.clientWidth-m-parseFloat(qd(k,"borderRightWidth"));m+=q}k=new H(m,parseFloat(qd(k,"borderTopWidth")))}else k=new H(k.clientLeft,k.clientTop);i.x+=
k.x;i.y+=k.y;b.top=Math.max(b.top,i.y);b.right=Math.min(b.right,i.x+a.clientWidth);b.bottom=Math.min(b.bottom,i.y+a.clientHeight);b.left=Math.max(b.left,i.x)}d=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,h);c=Mc(hd(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,h+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:l}
function zd(a){var b,c=K(a),d=rd(a,"position"),g=z&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),h=new H(0,0),i;b=c?c.nodeType==9?c:K(c):document;i=x&&!gb()&&!gd(J(b))?b.body:b.documentElement;if(a==i)return h;if(a.getBoundingClientRect)b=wd(a),a=id(J(c)),h.x=b.left+a.x,h.y=b.top+a.y;else if(c.getBoxObjectFor&&!g)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(i),h.x=b.screenX-a.screenX,h.y=b.screenY-a.screenY;else{b=a;do{h.x+=b.offsetLeft;
h.y+=b.offsetTop;b!=a&&(h.x+=b.clientLeft||0,h.y+=b.clientTop||0);if(A&&sd(b)=="fixed"){h.x+=c.body.scrollLeft;h.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Ta||A&&d=="absolute")h.y-=c.body.offsetTop;for(b=a;(b=xd(b))&&b!=c.body&&b!=i;)if(h.x-=b.scrollLeft,!Ta||b.tagName!="TR")h.y-=b.scrollTop}return h}function Bd(a,b){var c=Cd(a),d=Cd(b);return new H(c.x-d.x,c.y-d.y)}
function Cd(a){var b=new H;if(a.nodeType==1)if(a.getBoundingClientRect)a=wd(a),b.x=a.left,b.y=a.top;else{var c=id(J(a)),a=zd(a);b.x=a.x-c.x;b.y=a.y-c.y}else{var c=ka(a.sj),d=a;a.targetTouches?d=a.targetTouches[0]:c&&a.oa.targetTouches&&(d=a.oa.targetTouches[0]);b.x=d.clientX;b.y=d.clientY}return b}function Dd(a,b,c){b instanceof G?(c=b.height,b=b.width):c==j&&e(Error("missing height argument"));a.style.width=ud(b,!0);a.style.height=ud(c,!0)}
function ud(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}function Ed(a){if(rd(a,"display")!="none")return Fd(a);var b=a.style,c=b.display,d=b.visibility,g=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Fd(a);b.display=c;b.position=g;b.visibility=d;return a}function Fd(a){var b=a.offsetWidth,c=a.offsetHeight,d=A&&!b&&!c;return(!ga(b)||d)&&a.getBoundingClientRect?(a=wd(a),new G(a.right-a.left,a.bottom-a.top)):new G(b,c)}
function Gd(a){var b=zd(a),a=Ed(a);return new yc(b.x,b.y,a.width,a.height)}function Hd(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=b===""?"":"alpha(opacity="+b*100+")"}function R(a,b){a.style.display=b?"":"none"}
function Id(a,b){var c=J(b),d=l;if(x)d=c.A.createStyleSheet(),Jd(d,a);else{var g=Ic(c.A,"head",j,j)[0];g||(d=Ic(c.A,"body",j,j)[0],g=c.d("head"),d.parentNode.insertBefore(g,d));d=c.d("style");Jd(d,a);c.appendChild(g,d)}}function Jd(a,b){x?a.cssText=b:a[A?"innerText":"innerHTML"]=b}function Ad(a){return"rtl"==rd(a,"direction")}var Kd=z?"MozUserSelect":A?"WebkitUserSelect":l;
function Ld(a,b,c){c=!c?a.getElementsByTagName("*"):l;if(Kd){if(b=b?"none":"",a.style[Kd]=b,c)for(var a=0,d;d=c[a];a++)d.style[Kd]=b}else if(x||Ta)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}function Md(a){return new G(a.offsetWidth,a.offsetHeight)}
function Nd(a,b){var c=gd(J(K(a)));if(x&&(!c||!B("8"))){var d=a.style;if(c){var c=Od(a),g=Pd(a);d.pixelWidth=b.width-g.left-c.left-c.right-g.right;d.pixelHeight=b.height-g.top-c.top-c.bottom-g.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}else d=a.style,z?d.MozBoxSizing="border-box":A?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=b.width+"px",d.height=b.height+"px"}
function Qd(a){var b=K(a),c=x&&a.currentStyle;return c&&gd(J(b))&&c.width!="auto"&&c.height!="auto"&&!c.boxSizing?(b=Rd(a,c.width,"width","pixelWidth"),a=Rd(a,c.height,"height","pixelHeight"),new G(b,a)):(c=Md(a),b=Od(a),a=Pd(a),new G(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom))}
function Rd(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var g=a.style[c],h=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=g;a.runtimeStyle[c]=h;return b}}function Sd(a,b){return Rd(a,a.currentStyle?a.currentStyle[b]:l,"left","pixelLeft")}
function Od(a){if(x){var b=Sd(a,"paddingLeft"),c=Sd(a,"paddingRight"),d=Sd(a,"paddingTop"),a=Sd(a,"paddingBottom");return new xc(d,c,a,b)}else return b=qd(a,"paddingLeft"),c=qd(a,"paddingRight"),d=qd(a,"paddingTop"),a=qd(a,"paddingBottom"),new xc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Td={thin:2,medium:4,thick:6};
function Ud(a,b){if((a.currentStyle?a.currentStyle[b+"Style"]:l)=="none")return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:l;return c in Td?Td[c]:Rd(a,c,"left","pixelLeft")}function Pd(a){if(x){var b=Ud(a,"borderLeft"),c=Ud(a,"borderRight"),d=Ud(a,"borderTop"),a=Ud(a,"borderBottom");return new xc(d,c,a,b)}else return b=qd(a,"borderLeftWidth"),c=qd(a,"borderRightWidth"),d=qd(a,"borderTopWidth"),a=qd(a,"borderBottomWidth"),new xc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};function Vd(){}u(Vd);Vd.prototype.Zj=0;Vd.c();function S(a){this.p=a||J();this.ie=Wd}w(S,Q);S.prototype.Mj=Vd.c();var Wd=l;function Xd(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}e(Error("Invalid component state"))}p=S.prototype;p.gd=l;p.v=!1;p.e=l;p.ie=l;p.yg=l;p.D=l;p.Z=l;p.Ra=l;p.Pi=!1;
function Yd(a){return a.gd||(a.gd=":"+(a.Mj.Zj++).toString(36))}function Zd(a,b){if(a.D&&a.D.Ra){var c=a.D.Ra,d=a.gd;d in c&&delete c[d];mb(a.D.Ra,b,a)}a.gd=b}p.a=n("e");p.G=function(){return this.dd||(this.dd=new tc(this))};function $d(a,b){a==b&&e(Error("Unable to set parent component"));b&&a.D&&a.gd&&ae(a.D,a.gd)&&a.D!=b&&e(Error("Unable to set parent component"));a.D=b;S.b.Ug.call(a,b)}p.getParent=n("D");p.Ug=function(a){this.D&&this.D!=a&&e(Error("Method not supported"));S.b.Ug.call(this,a)};
p.k=n("p");p.d=function(){this.e=this.p.createElement("div")};p.L=function(a){this.Ic(a)};p.Ic=function(a,b){this.v&&e(Error("Component already rendered"));this.e||this.d();a?a.insertBefore(this.e,b||l):this.p.A.body.appendChild(this.e);(!this.D||this.D.v)&&this.o()};p.n=function(a){if(this.v)e(Error("Component already rendered"));else if(a&&this.R(a)){this.Pi=!0;if(!this.p||this.p.A!=K(a))this.p=J(a);this.F(a);this.o()}else e(Error("Invalid element to decorate"))};p.R=o(!0);p.F=ba("e");
p.o=function(){this.v=!0;be(this,function(a){!a.v&&a.a()&&a.o()})};p.K=function(){be(this,function(a){a.v&&a.K()});this.dd&&this.dd.ge();this.v=!1};p.g=function(){S.b.g.call(this);this.v&&this.K();this.dd&&(this.dd.j(),delete this.dd);be(this,function(a){a.j()});!this.Pi&&this.e&&Tc(this.e);this.D=this.yg=this.e=this.Ra=this.Z=l};p.ra=function(a,b){this.Tc(a,ce(this),b)};
p.Tc=function(a,b,c){a.v&&(c||!this.v)&&e(Error("Component already rendered"));(b<0||b>ce(this))&&e(Error("Child component index out of bounds"));if(!this.Ra||!this.Z)this.Ra={},this.Z=[];a.getParent()==this?(this.Ra[Yd(a)]=a,zb(this.Z,a)):mb(this.Ra,Yd(a),a);$d(a,this);Db(this.Z,b,0,a);a.v&&this.v&&a.getParent()==this?(c=this.B(),c.insertBefore(a.a(),c.childNodes[b]||l)):c?(this.e||this.d(),b=T(this,b+1),a.Ic(this.B(),b?b.e:l)):this.v&&!a.v&&a.e&&a.o()};p.B=n("e");
function de(a){if(a.ie==l)a.ie=Ad(a.v?a.e:a.p.A.body);return a.ie}p.wd=function(a){this.v&&e(Error("Component already rendered"));this.ie=a};function ce(a){return a.Z?a.Z.length:0}function ae(a,b){return a.Ra&&b?(b in a.Ra?a.Ra[b]:j)||l:l}function T(a,b){return a.Z?a.Z[b]||l:l}function be(a,b,c){a.Z&&tb(a.Z,b,c)}function ee(a,b){return a.Z&&b?sb(a.Z,b):-1}
p.removeChild=function(a,b){if(a){var c=v(a)?a:Yd(a),a=ae(this,c);if(c&&a){var d=this.Ra;c in d&&delete d[c];zb(this.Z,a);b&&(a.K(),a.e&&Tc(a.e));$d(a,l)}}a||e(Error("Child is not in parent component"));return a};function fe(a,b){return a.removeChild(T(a,b),!0)};function ge(a,b,c,d){S.call(this,d);this.C=c;this.Rd=a;this.ra(a);this.me=b;this.ra(b)}w(ge,S);p=ge.prototype;p.Lc=l;p.fa=l;p.ud=l;p.ed=5;p.ng=l;p.Ai=l;p.Qd=l;p.zh=!0;p.qb=l;p.d=function(){var a=this.k(),b=a.d("div","goog-splitpane-first-container"),c=a.d("div","goog-splitpane-second-container"),d=a.d("div","goog-splitpane-handle");this.e=a.d("div","goog-splitpane",b,c,d);this.fa=b;this.ud=c;this.Oa=d;he(this);ie(this)};
p.R=function(a){var b=Ic(document,l,"goog-splitpane-first-container",a)[0];if(!b)return!1;this.fa=b;b=Ic(document,l,"goog-splitpane-second-container",a)[0];if(!b)return!1;this.ud=b;a=Ic(document,l,"goog-splitpane-handle",a)[0];if(!a)return!1;this.Oa=a;return!0};p.F=function(a){ge.b.F.call(this,a);he(this);a=Md(a);je(this,new G(a.width,a.height));ie(this)};
function ie(a){var b=a.k();a.Rd.a()||a.Rd.d();b.appendChild(a.fa,a.Rd.a());a.me.a()||a.me.d();b.appendChild(a.ud,a.me.a());a.Lc=new jd(a.Oa,a.Oa);a.fa.style.position="absolute";a.ud.style.position="absolute";a=a.Oa.style;a.position="absolute";a.overflow="hidden";a.zIndex=2}p.o=function(){ge.b.o.call(this);var a=this.a();if(sd(a)=="static")a.style.position="relative";this.G().f(this.Oa,"dblclick",this.yj).f(this.Lc,"start",this.Aj).f(this.Lc,"drag",this.Bj).f(this.Lc,"end",this.zj);ke(this,this.ng)};
function le(a){return a.C=="vertical"}function he(a){le(a)?(a.Oa.style.height=a.ed+"px",I(a.Oa,"goog-splitpane-handle-vertical")):(a.Oa.style.width=a.ed+"px",I(a.Oa,"goog-splitpane-handle-horizontal"))}
p.re=function(a){if(this.C!=a&&(this.C=a,a=le(this),this.v))if(le(this)?Dc(this.Oa,"goog-splitpane-handle-horizontal","goog-splitpane-handle-vertical"):Dc(this.Oa,"goog-splitpane-handle-vertical","goog-splitpane-handle-horizontal"),ja(this.Qd)){var b=Md(this.a());ke(this,this.Qd*(a?b.height/b.width:b.width/b.height))}else ke(this)};function me(a,b){td(a,b.left,b.top);Nd(a,new G(Math.max(b.width,0),Math.max(b.height,0)))}
function ke(a,b){var c=Md(a.a()),d=le(a),g=ja(b)?b:ja(a.Qd)?a.Qd:Math.floor((d?c.height:c.width)/2);a.Qd=g;var h,i,k,m,q,t,y;d?(k=d=c.width,m=a.ed,i=c.height-g-m,h=c.width,y=0+g,t=0,q=y+m,c=0):(d=g,g=c.height,k=a.ed,m=c.height,h=c.width-d-k,i=c.height,t=0+d,y=0,c=t+k,q=0);me(a.fa,new yc(0,0,d,g));typeof a.Rd.Ng=="function"&&a.Rd.Ng(new G(d,g));me(a.Oa,new yc(t,y,k,m));me(a.ud,new yc(c,q,h,i));typeof a.me.Ng=="function"&&a.me.Ng(new G(h,i));a.dispatchEvent("change")}
function je(a,b){Nd(a.a(),b);a.qb&&Nd(a.qb,b);ke(a)}
p.Aj=function(){if(!this.qb){var a="position: relative";x&&(a+=";background-color: #000;filter: Alpha(Opacity=0)");this.qb=this.k().d("div",{style:a});this.k().appendChild(this.a(),this.qb)}this.qb.style.zIndex=1;Nd(this.qb,Md(this.a()));var b=vd(this.fa),c=a=0,d=b.x,b=b.y,g=Md(this.fa),h=Qd(this.fa),i=Qd(this.ud);le(this)?(c=h.height+i.height,b+=g.height-h.height):(a=h.width+i.width,d+=g.width-h.width);this.Lc.$d=new yc(d,b,a,c)||new yc(NaN,NaN,NaN,NaN)};
p.Bj=function(a){this.zh&&(le(this)?ke(this,a.top-vd(this.fa).y):ke(this,a.left-vd(this.fa).x))};p.zj=function(a){this.qb.style.zIndex=-1;this.zh||(le(this)?ke(this,a.top-vd(this.fa).y):ke(this,a.left-vd(this.fa).x));this.dispatchEvent("handle_drag_end")};p.yj=function(){var a=Bd(this.Oa,this.fa),b=Md(this.fa),c=Qd(this.fa),d=le(this);d?(b=b.height-c.height,a=a.y):(b=b.width-c.width,a=a.x);b==a?ke(this,this.Ai):(this.Ai=d?Md(this.fa).height:Md(this.fa).width,ke(this,b))};
p.g=function(){ge.b.g.call(this);this.Lc.j();this.Lc=l;Tc(this.qb);this.qb=l};function ne(a,b){a.setAttribute("role",b);a.el=b}function U(a,b,c){a.setAttribute("aria-"+b,c)};function oe(){}var pe;u(oe);p=oe.prototype;p.Ka=aa();p.d=function(a){var b=a.k().d("div",this.tc(a).join(" "),a.la);this.qf(a,b);return b};p.B=function(a){return a};p.Od=function(a,b,c){if(a=a.a?a.a():a)if(x&&!B("7")){var d=qe(Bc(a),b);d.push(b);sa(c?I:Cc,a).apply(l,d)}else Ec(a,b,c)};p.R=o(!0);
p.n=function(a,b){b.id&&Zd(a,b.id);var c=this.B(b);a.la=c&&c.firstChild?c.firstChild.nextSibling?Bb(c.childNodes):c.firstChild:l;var d=0,g=this.i(),h=this.i(),i=!1,k=!1,c=!1,m=Bc(b);tb(m,function(a){!i&&a==g?(i=!0,h==g&&(k=!0)):!k&&a==h?k=!0:d|=this.cg(a)},this);a.q=d;i||(m.push(g),h==g&&(k=!0));k||m.push(h);var q=a.fb;q&&m.push.apply(m,q);if(x&&!B("7")){var t=qe(m);t.length>0&&(m.push.apply(m,t),c=!0)}if(!i||!k||q||c)b.className=m.join(" ");this.qf(a,b);return b};
p.kd=function(a){de(a)&&this.wd(a.a(),!0);a.isEnabled()&&this.hc(a,a.H())};p.qf=function(a,b){a.isEnabled()||this.Ga(b,1,!0);a.xc()&&this.Ga(b,8,!0);a.Q&16&&this.Ga(b,16,a.sb());a.Q&64&&this.Ga(b,64,!!(a.q&64))};p.ne=function(a,b){Ld(a,!b,!x&&!Ta)};p.wd=function(a,b){this.Od(a,this.i()+"-rtl",b)};p.$b=function(a){var b;return a.Q&32&&(b=a.V())?ad(b):!1};p.hc=function(a,b){var c;if(a.Q&32&&(c=a.V())){if(!b&&a.q&32){try{c.blur()}catch(d){}a.q&32&&a.uc(l)}ad(c)!=b&&bd(c,b)}};p.h=function(a,b){R(a,b)};
p.ya=function(a,b,c){var d=a.a();if(d){var g=this.Sd(b);g&&this.Od(a,g,c);this.Ga(d,b,c)}};p.Ga=function(a,b,c){pe||(pe={1:"disabled",8:"selected",16:"checked",64:"expanded"});(b=pe[b])&&U(a,b,c)};p.t=function(a,b){var c=this.B(a);if(c&&(Sc(c),b))if(v(b))Yc(c,b);else{var d=function(a){if(a){var b=K(c);c.appendChild(v(a)?b.createTextNode(a):a)}};ha(b)?tb(b,d):ia(b)&&!("nodeType"in b)?tb(Bb(b),d):d(b)}};p.V=function(a){return a.a()};p.i=o("goog-control");
p.tc=function(a){var b=this.i(),c=[b],d=this.i();d!=b&&c.push(d);b=a.q;for(d=[];b;){var g=b&-b;d.push(this.Sd(g));b&=~g}c.push.apply(c,d);(a=a.fb)&&c.push.apply(c,a);x&&!B("7")&&c.push.apply(c,qe(c));return c};function qe(a,b){var c=[];b&&(a=a.concat([b]));tb([],function(d){wb(d,sa(xb,a))&&(!b||xb(d,b))&&c.push(d.join("_"))});return c}p.Sd=function(a){this.ze||re(this);return this.ze[a]};
p.cg=function(a){if(!this.Ii){this.ze||re(this);var b=this.ze,c={},d;for(d in b)c[b[d]]=d;this.Ii=c}a=parseInt(this.Ii[a],10);return isNaN(a)?0:a};function re(a){var b=a.i();a.ze={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function se(a,b){a||e(Error("Invalid class name "+a));ka(b)||e(Error("Invalid decorator function "+b));te[a]=b}function ue(a){for(var b=Bc(a),c=0,d=b.length;c<d;c++)if(a=b[c]in te?te[b[c]]():l)return a;return l}var ve={},te={};function we(a){var b=ue(a);b&&b.n(a);return b};function xe(a,b,c,d,g){if(!x&&(!A||!B("525")))return!0;if(Na&&g)return ye(a);if(g&&!d)return!1;if(!c&&(b==17||b==18))return!1;if(x&&d&&b==a)return!1;switch(a){case 13:return!(x&&gb());case 27:return!A}return ye(a)}
function ye(a){if(a>=48&&a<=57)return!0;if(a>=96&&a<=106)return!0;if(a>=65&&a<=90)return!0;if(A&&a==0)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};function ze(a,b){a&&Ae(this,a,b)}w(ze,Q);p=ze.prototype;p.e=l;p.Xe=l;p.pg=l;p.Ye=l;p.dc=-1;p.bc=-1;
var Be={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Ce={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},De={61:187,59:186},Ee=x||A&&B("525");p=ze.prototype;
p.gg=function(a){if(A&&(this.dc==17&&!a.ctrlKey||this.dc==18&&!a.altKey))this.bc=this.dc=-1;Ee&&!xe(a.keyCode,this.dc,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.bc=z&&a.keyCode in De?De[a.keyCode]:a.keyCode};p.Cj=function(){this.bc=this.dc=-1};
p.handleEvent=function(a){var b=a.oa,c,d;x&&a.type=="keypress"?(c=this.bc,d=c!=13&&c!=27?b.keyCode:0):A&&a.type=="keypress"?(c=this.bc,d=b.charCode>=0&&b.charCode<63232&&ye(c)?b.charCode:0):Ta?(c=this.bc,d=ye(c)?b.keyCode:0):(c=b.keyCode||this.bc,d=b.charCode||0,Na&&d==63&&!c&&(c=191));var g=c,h=b.keyIdentifier;c?c>=63232&&c in Be?g=Be[c]:c==25&&a.shiftKey&&(g=9):h&&h in Ce&&(g=Ce[h]);a=g==this.dc;this.dc=g;b=new Fe(g,d,a,b);try{this.dispatchEvent(b)}finally{b.j()}};p.a=n("e");
function Ae(a,b,c){a.Ye&&a.detach();a.e=b;a.Xe=F(a.e,"keypress",a,c);a.pg=F(a.e,Hb,a.gg,c,a);a.Ye=F(a.e,"keyup",a.Cj,c,a)}p.detach=function(){if(this.Xe)oc(this.Xe),oc(this.pg),oc(this.Ye),this.Ye=this.pg=this.Xe=l;this.e=l;this.bc=this.dc=-1};p.g=function(){ze.b.g.call(this);this.detach()};function Fe(a,b,c,d){d&&this.Zb(d,j);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}w(Fe,Pb);function V(a,b,c){S.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=ma(b);if(d=ve[d])break;b=b.b?b.b.constructor:l}b=d?ka(d.c)?d.c():new d:l}this.m=b;this.la=a}w(V,S);p=V.prototype;p.la=l;p.q=0;p.Q=39;p.Kf=255;p.Zg=0;p.Y=!0;p.fb=l;p.Oe=!0;p.xe=!1;p.lf=l;function Ge(a,b){a.v&&b!=a.Oe&&He(a,b);a.Oe=b}p.V=function(){return this.m.V(this)};p.Le=function(){return this.ba||(this.ba=new ze)};
p.Od=function(a,b){if(b){if(a)this.fb?xb(this.fb,a)||this.fb.push(a):this.fb=[a],this.m.Od(this,a,!0)}else if(a&&this.fb){zb(this.fb,a);if(this.fb.length==0)this.fb=l;this.m.Od(this,a,!1)}};p.d=function(){var a=this.m.d(this);this.e=a;var b=this.lf||this.m.Ka();b&&ne(a,b);this.xe||this.m.ne(a,!1);this.H()||this.m.h(a,!1)};p.B=function(){return this.m.B(this.a())};p.R=function(a){return this.m.R(a)};
p.F=function(a){this.e=a=this.m.n(this,a);var b=this.lf||this.m.Ka();b&&ne(a,b);this.xe||this.m.ne(a,!1);this.Y=a.style.display!="none"};p.o=function(){V.b.o.call(this);this.m.kd(this);if(this.Q&-2&&(this.Oe&&He(this,!0),this.Q&32)){var a=this.V();if(a){var b=this.Le();Ae(b,a);this.G().f(b,"key",this.Gb).f(a,"focus",this.Ne).f(a,"blur",this.uc)}}};
function He(a,b){var c=a.G(),d=a.a();b?(c.f(d,"mouseover",a.Qe).f(d,"mousedown",a.Vb).f(d,"mouseup",a.Wb).f(d,"mouseout",a.Pe),x&&c.f(d,"dblclick",a.Oh)):(c.X(d,"mouseover",a.Qe).X(d,"mousedown",a.Vb).X(d,"mouseup",a.Wb).X(d,"mouseout",a.Pe),x&&c.X(d,"dblclick",a.Oh))}p.K=function(){V.b.K.call(this);this.ba&&this.ba.detach();this.H()&&this.isEnabled()&&this.m.hc(this,!1)};p.g=function(){V.b.g.call(this);this.ba&&(this.ba.j(),delete this.ba);delete this.m;this.fb=this.la=l};
p.t=function(a){this.m.t(this.a(),a);this.la=a};p.Tb=function(){var a=this.la;if(!a)return"";a=v(a)?a:ha(a)?ub(a,ed).join(""):cd(a);return wa(a)};p.wd=function(a){V.b.wd.call(this,a);var b=this.a();b&&this.m.wd(b,a)};p.ne=function(a){this.xe=a;var b=this.a();b&&this.m.ne(b,a)};p.H=n("Y");p.h=function(a,b){if(b||this.Y!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.a();c&&this.m.h(c,a);this.isEnabled()&&this.m.hc(this,a);this.Y=a;return!0}return!1};p.isEnabled=function(){return!(this.q&1)};
p.u=function(a){var b=this.getParent();if((!b||typeof b.isEnabled!="function"||b.isEnabled())&&Ie(this,1,!a))a||(this.setActive(!1),this.vb(!1)),this.H()&&this.m.hc(this,a),this.ya(1,!a)};p.vb=function(a){Ie(this,2,a)&&this.ya(2,a)};p.ha=function(){return!!(this.q&4)};p.setActive=function(a){Ie(this,4,a)&&this.ya(4,a)};p.xc=function(){return!!(this.q&8)};p.Xg=function(a){Ie(this,8,a)&&this.ya(8,a)};p.sb=function(){return!!(this.q&16)};p.Kc=function(a){Ie(this,16,a)&&this.ya(16,a)};
p.P=function(a){Ie(this,64,a)&&this.ya(64,a)};p.ya=function(a,b){if(this.Q&a&&b!=!!(this.q&a))this.m.ya(this,a,b),this.q=b?this.q|a:this.q&~a};function Je(a,b,c){a.v&&a.q&b&&!c&&e(Error("Component already rendered"));!c&&a.q&b&&a.ya(b,!1);a.Q=c?a.Q|b:a.Q&~b}function Ke(a,b){return!!(a.Kf&b)&&!!(a.Q&b)}function Ie(a,b,c){return!!(a.Q&b)&&!!(a.q&b)!=c&&(!(a.Zg&b)||a.dispatchEvent(Xd(b,c)))&&!a.Zc}
p.Qe=function(a){(!a.relatedTarget||!Xc(this.a(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&Ke(this,2)&&this.vb(!0)};p.Pe=function(a){if((!a.relatedTarget||!Xc(this.a(),a.relatedTarget))&&this.dispatchEvent("leave"))Ke(this,4)&&this.setActive(!1),Ke(this,2)&&this.vb(!1)};p.Vb=function(a){this.isEnabled()&&(Ke(this,2)&&this.vb(!0),Rb(a)&&(Ke(this,4)&&this.setActive(!0),this.m.$b(this)&&this.V().focus()));!this.xe&&Rb(a)&&a.preventDefault()};
p.Wb=function(a){this.isEnabled()&&(Ke(this,2)&&this.vb(!0),this.ha()&&this.Dc(a)&&Ke(this,4)&&this.setActive(!1))};p.Oh=function(a){this.isEnabled()&&this.Dc(a)};p.Dc=function(a){Ke(this,16)&&this.Kc(!this.sb());Ke(this,8)&&this.Xg(!0);Ke(this,64)&&this.P(!(this.q&64));var b=new E("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],d,g=0;d=c[g];g++)b[d]=a[d];return this.dispatchEvent(b)};p.Ne=function(){Ke(this,32)&&Ie(this,32,!0)&&this.ya(32,!0)};
p.uc=function(){Ke(this,4)&&this.setActive(!1);Ke(this,32)&&Ie(this,32,!1)&&this.ya(32,!1)};p.Gb=function(a){return this.H()&&this.isEnabled()&&this.vc(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};p.vc=function(a){return a.keyCode==13&&this.Dc(a)};ka(V)||e(Error("Invalid component class "+V));ka(oe)||e(Error("Invalid renderer class "+oe));var Le=ma(V);ve[Le]=oe;se("goog-control",function(){return new V(l)});function Me(){}w(Me,oe);u(Me);Me.prototype.d=function(a){return a.k().d("div",this.i())};Me.prototype.n=function(a,b){if(b.tagName=="HR"){var c=b,b=this.d(a);c.parentNode&&c.parentNode.insertBefore(b,c);Tc(c)}else I(b,this.i());return b};Me.prototype.t=aa();Me.prototype.i=o("goog-menuseparator");function Ne(a,b){V.call(this,l,a||Me.c(),b);Je(this,1,!1);Je(this,2,!1);Je(this,4,!1);Je(this,32,!1);this.q=1}w(Ne,V);Ne.prototype.o=function(){Ne.b.o.call(this);ne(this.a(),"separator")};se("goog-menuseparator",function(){return new Ne});function Oe(){}u(Oe);p=Oe.prototype;p.Ka=aa();function Pe(a,b){if(a)a.tabIndex=b?0:-1}p.d=function(a){return a.k().d("div",this.tc(a).join(" "))};p.B=function(a){return a};p.R=function(a){return a.tagName=="DIV"};p.n=function(a,b){b.id&&Zd(a,b.id);var c=this.i(),d=!1,g=Bc(b);g&&tb(g,function(b){b==c?d=!0:b&&(b==c+"-disabled"?a.u(!1):b==c+"-horizontal"?a.re(Qe):b==c+"-vertical"&&a.re(Re))},this);d||I(b,c);Se(this,a,this.B(b));return b};
function Se(a,b,c){if(c)for(var d=c.firstChild,g;d&&d.parentNode==c;){g=d.nextSibling;if(d.nodeType==1){var h=a.Td(d);if(h)h.e=d,b.isEnabled()||h.u(!1),b.ra(h),h.n(d)}else(!d.nodeValue||xa(d.nodeValue)=="")&&c.removeChild(d);d=g}}p.Td=function(a){return ue(a)};p.kd=function(a){a=a.a();Ld(a,!0,z);if(x)a.hideFocus=!0;var b=this.Ka();b&&ne(a,b)};p.V=function(a){return a.a()};p.i=o("goog-container");
p.tc=function(a){var b=this.i(),c=[b,a.C==Qe?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};p.Ih=function(){return Re};function Te(a,b,c){S.call(this,c);this.m=b||Oe.c();this.C=a||this.m.Ih()}w(Te,S);var Qe="horizontal",Re="vertical";p=Te.prototype;p.qg=l;p.ba=l;p.m=l;p.C=l;p.Y=!0;p.S=!0;p.bg=!0;p.ga=-1;p.W=l;p.Kb=!1;p.Zi=!1;p.hk=!0;p.yb=l;p.V=function(){return this.qg||this.m.V(this)};p.Le=function(){return this.ba||(this.ba=new ze(this.V()))};p.d=function(){this.e=this.m.d(this)};p.B=function(){return this.m.B(this.a())};p.R=function(a){return this.m.R(a)};
p.F=function(a){this.e=this.m.n(this,a);if(a.style.display=="none")this.Y=!1};p.o=function(){Te.b.o.call(this);be(this,function(a){a.v&&Ue(this,a)},this);var a=this.a();this.m.kd(this);this.h(this.Y,!0);this.G().f(this,"enter",this.eg).f(this,"highlight",this.fg).f(this,"unhighlight",this.ig).f(this,"open",this.Hj).f(this,"close",this.vj).f(a,"mousedown",this.Vb).f(K(a),"mouseup",this.xj).f(a,["mousedown","mouseup","mouseover","mouseout"],this.uj);this.$b()&&Ve(this,!0)};
function Ve(a,b){var c=a.G(),d=a.V();b?c.f(d,"focus",a.Ne).f(d,"blur",a.uc).f(a.Le(),"key",a.Gb):c.X(d,"focus",a.Ne).X(d,"blur",a.uc).X(a.Le(),"key",a.Gb)}p.K=function(){We(this,-1);this.W&&this.W.P(!1);this.Kb=!1;Te.b.K.call(this)};p.g=function(){Te.b.g.call(this);if(this.ba)this.ba.j(),this.ba=l;this.m=this.W=this.yb=this.qg=l};p.eg=o(!0);
p.fg=function(a){var b=ee(this,a.target);if(b>-1&&b!=this.ga){var c=T(this,this.ga);c&&c.vb(!1);this.ga=b;c=T(this,this.ga);this.Kb&&c.setActive(!0);this.hk&&this.W&&c!=this.W&&(c.Q&64?c.P(!0):this.W.P(!1))}U(this.a(),"activedescendant",a.target.a().id)};p.ig=function(a){if(a.target==T(this,this.ga))this.ga=-1;U(this.a(),"activedescendant","")};p.Hj=function(a){if((a=a.target)&&a!=this.W&&a.getParent()==this)this.W&&this.W.P(!1),this.W=a};p.vj=function(a){if(a.target==this.W)this.W=l};
p.Vb=function(a){if(this.S)this.Kb=!0;var b=this.V();b&&ad(b)?b.focus():a.preventDefault()};p.xj=function(){this.Kb=!1};p.uj=function(a){var b;a:{b=a.target;if(this.yb)for(var c=this.a();b&&b!==c;){var d=b.id;if(d in this.yb){b=this.yb[d];break a}b=b.parentNode}b=l}if(b)switch(a.type){case "mousedown":b.Vb(a);break;case "mouseup":b.Wb(a);break;case "mouseover":b.Qe(a);break;case "mouseout":b.Pe(a)}};p.Ne=aa();p.uc=function(){We(this,-1);this.Kb=!1;this.W&&this.W.P(!1)};
p.Gb=function(a){return this.isEnabled()&&this.H()&&(ce(this)!=0||this.qg)&&this.vc(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
p.vc=function(a){var b=T(this,this.ga);if(b&&typeof b.Gb=="function"&&b.Gb(a))return!0;if(this.W&&this.W!=b&&typeof this.W.Gb=="function"&&this.W.Gb(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.$b())this.V().blur();else return!1;break;case 36:Xe(this);break;case 35:Ye(this);break;case 38:if(this.C==Re)Ze(this);else return!1;break;case 37:if(this.C==Qe)de(this)?$e(this):Ze(this);else return!1;break;case 40:if(this.C==Re)$e(this);else return!1;
break;case 39:if(this.C==Qe)de(this)?Ze(this):$e(this);else return!1;break;default:return!1}return!0};function Ue(a,b){var c=b.a(),c=c.id||(c.id=Yd(b));if(!a.yb)a.yb={};a.yb[c]=b}p.ra=function(a,b){Te.b.ra.call(this,a,b)};p.Tc=function(a,b,c){a.Zg|=2;a.Zg|=64;(this.$b()||!this.Zi)&&Je(a,32,!1);Ge(a,!1);Te.b.Tc.call(this,a,b,c);c&&this.v&&Ue(this,a);b<=this.ga&&this.ga++};
p.removeChild=function(a,b){if(a=v(a)?ae(this,a):a){var c=ee(this,a);c!=-1&&(c==this.ga?a.vb(!1):c<this.ga&&this.ga--);var d=a.a();if(d&&d.id&&this.yb)c=this.yb,d=d.id,d in c&&delete c[d]}a=Te.b.removeChild.call(this,a,b);Ge(a,!0);return a};p.re=function(a){this.a()&&e(Error("Component already rendered"));this.C=a};p.H=n("Y");
p.h=function(a,b){if(b||this.Y!=a&&this.dispatchEvent(a?"show":"hide")){this.Y=a;var c=this.a();c&&(R(c,a),this.$b()&&Pe(this.V(),this.S&&this.Y),b||this.dispatchEvent(this.Y?"aftershow":"afterhide"));return!0}return!1};p.isEnabled=n("S");p.u=function(a){if(this.S!=a&&this.dispatchEvent(a?"enable":"disable"))a?(this.S=!0,be(this,function(a){a.Qi?delete a.Qi:a.u(!0)})):(be(this,function(a){a.isEnabled()?a.u(!1):a.Qi=!0}),this.Kb=this.S=!1),this.$b()&&Pe(this.V(),a&&this.Y)};p.$b=n("bg");
p.hc=function(a){a!=this.bg&&this.v&&Ve(this,a);this.bg=a;this.S&&this.Y&&Pe(this.V(),a)};function We(a,b){var c=T(a,b);c?c.vb(!0):a.ga>-1&&T(a,a.ga).vb(!1)}p.vb=function(a){We(this,ee(this,a))};function Xe(a){af(a,function(a,c){return(a+1)%c},ce(a)-1)}function Ye(a){af(a,function(a,c){a--;return a<0?c-1:a},0)}function $e(a){af(a,function(a,c){return(a+1)%c},a.ga)}function Ze(a){af(a,function(a,c){a--;return a<0?c-1:a},a.ga)}
function af(a,b,c){for(var c=c<0?ee(a,a.W):c,d=ce(a),c=b.call(a,c,d),g=0;g<=d;){var h=T(a,c);if(h&&a.th(h)){We(a,c);break}g++;c=b.call(a,c,d)}}p.th=function(a){return a.H()&&a.isEnabled()&&!!(a.Q&2)};function bf(){}bf.prototype.id=s;bf.prototype.Ae=function(a){if(this.id()>a.id())return 1;else if(this.id()<a.id())return-1;return 0};function cf(a,b,c,d){V.call(this,"",c,d);this.$a=a;this.ob=b}w(cf,V);cf.prototype.item=n("$a");cf.prototype.R=o(!1);cf.prototype.o=function(){cf.b.o.call(this);F(this.a(),D,function(){this.ob(this.$a)},!1,this)};cf.prototype.update=function(a){this.t(a.name())};function df(a,b){this.zb=a;this.wh=b}
function ef(a,b){var c=0,d=0,g=b.length;for(b.sort(function(a,b){return a.Ae(b)});c!=ce(a.zb)&&d!=g;){var h=b[d],i=T(a.zb,c),k=i.item(),k=h.Ae(k);k==-1?(h=a.wh.de(h),a.zb.Tc(h,c,!0),d++,c++):k==0?(i.update(b[d]),c++,d++):(h=a.zb.removeChild(i,!0),delete f)}for(;c<ce(a.zb);)h=fe(a.zb,c),delete h;for(;d<g;d++)h=a.wh.de(b[d]),a.zb.ra(h,!0)};function ff(a){this.Ff=a.id;this.Gf=a.name;this.jh=a.input_ports;this.kh=a.output_ports;this.lh=a.rdm_devices}w(ff,bf);ff.prototype.id=n("Ff");ff.prototype.name=n("Gf");function gf(a,b,c,d){cf.call(this,a,b,c,d);this.t(a.name())}w(gf,cf);gf.prototype.o=function(){gf.b.o.call(this);this.a().title="Universe "+this.$a.id()};function hf(a){this.ob=a}hf.prototype.de=function(a){return new gf(a,this.ob)};function jf(a){this.Ff=a.id;this.Gf=a.name}w(jf,bf);jf.prototype.id=n("Ff");jf.prototype.name=n("Gf");jf.prototype.Ae=function(a){if(this.name()>a.name())return 1;else if(this.name()<a.name())return-1;return 0};function kf(a,b,c,d){cf.call(this,a,b,c,d);this.t(a.name())}w(kf,cf);kf.prototype.o=function(){kf.b.o.call(this);this.a().title=this.$a.name()+" Plugin"};function lf(a){this.ob=a}lf.prototype.de=function(a){return new kf(a,this.ob)};function mf(a){if(typeof a.Fb=="function")return a.Fb();if(v(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return ib(a)}function nf(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ia(a)||v(a))tb(a,b,c);else{var d;if(typeof a.Ud=="function")d=a.Ud();else if(typeof a.Fb!="function")if(ia(a)||v(a)){d=[];for(var g=a.length,h=0;h<g;h++)d.push(h)}else d=jb(a);else d=j;for(var g=mf(a),h=g.length,i=0;i<h;i++)b.call(c,g[i],d&&d[i],a)}};var of=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function pf(a,b){this.Yd=a||1;this.ue=b||qf;this.Mf=ra(this.Hk,this);this.ug=ta()}w(pf,Q);pf.prototype.enabled=!1;var qf=r.window;p=pf.prototype;p.Fa=l;p.setInterval=function(a){this.Yd=a;this.Fa&&this.enabled?(this.stop(),this.start()):this.Fa&&this.stop()};p.Hk=function(){if(this.enabled){var a=ta()-this.ug;if(a>0&&a<this.Yd*0.8)this.Fa=this.ue.setTimeout(this.Mf,this.Yd-a);else if(this.dispatchEvent(rf),this.enabled)this.Fa=this.ue.setTimeout(this.Mf,this.Yd),this.ug=ta()}};
p.start=function(){this.enabled=!0;if(!this.Fa)this.Fa=this.ue.setTimeout(this.Mf,this.Yd),this.ug=ta()};p.stop=function(){this.enabled=!1;if(this.Fa)this.ue.clearTimeout(this.Fa),this.Fa=l};p.g=function(){pf.b.g.call(this);this.stop();delete this.ue};var rf="tick";function sf(a,b,c){ka(a)?c&&(a=ra(a,c)):a&&typeof a.handleEvent=="function"?a=ra(a.handleEvent,a):e(Error("Invalid listener argument"));b>2147483647||qf.setTimeout(a,b||0)};function tf(a,b){this.da={};this.N=[];var c=arguments.length;if(c>1){c%2&&e(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Hf(a)}p=tf.prototype;p.U=0;p.hh=0;p.pa=n("U");p.Fb=function(){uf(this);for(var a=[],b=0;b<this.N.length;b++)a.push(this.da[this.N[b]]);return a};p.Ud=function(){uf(this);return this.N.concat()};p.Sf=function(a){return vf(this.da,a)};p.Ib=function(){return this.U==0};
p.clear=function(){this.da={};this.hh=this.U=this.N.length=0};p.remove=function(a){return vf(this.da,a)?(delete this.da[a],this.U--,this.hh++,this.N.length>2*this.U&&uf(this),!0):!1};function uf(a){if(a.U!=a.N.length){for(var b=0,c=0;b<a.N.length;){var d=a.N[b];vf(a.da,d)&&(a.N[c++]=d);b++}a.N.length=c}if(a.U!=a.N.length){for(var g={},c=b=0;b<a.N.length;)d=a.N[b],vf(g,d)||(a.N[c++]=d,g[d]=1),b++;a.N.length=c}}p.get=function(a,b){return vf(this.da,a)?this.da[a]:b};
p.set=function(a,b){vf(this.da,a)||(this.U++,this.N.push(a),this.hh++);this.da[a]=b};p.Hf=function(a){var b;a instanceof tf?(b=a.Ud(),a=a.Fb()):(b=jb(a),a=ib(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};p.Ba=function(){return new tf(this)};function vf(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function wf(a){this.da=new tf;a&&this.Hf(a)}function xf(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+ma(a):b.substr(0,1)+a}p=wf.prototype;p.pa=function(){return this.da.pa()};p.add=function(a){this.da.set(xf(a),a)};p.Hf=function(a){for(var a=mf(a),b=a.length,c=0;c<b;c++)this.add(a[c])};p.ge=function(a){for(var a=mf(a),b=a.length,c=0;c<b;c++)this.remove(a[c])};p.remove=function(a){return this.da.remove(xf(a))};p.clear=function(){this.da.clear()};p.Ib=function(){return this.da.Ib()};
p.contains=function(a){return this.da.Sf(xf(a))};p.Wh=function(a){for(var b=new wf,a=mf(a),c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};p.Fb=function(){return this.da.Fb()};p.Ba=function(){return new wf(this)};function yf(a){return zf(a||arguments.callee.caller,[])}
function zf(a,b){var c=[];if(xb(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Af(a)+"(");for(var d=a.arguments,g=0;g<d.length;g++){g>0&&c.push(", ");var h;h=d[g];switch(typeof h){case "object":h=h?"object":"null";break;case "string":break;case "number":h=String(h);break;case "boolean":h=h?"true":"false";break;case "function":h=(h=Af(h))?h:"[fn]";break;default:h=typeof h}h.length>40&&(h=h.substr(0,40)+"...");c.push(h)}b.push(a);c.push(")\n");try{c.push(zf(a.caller,b))}catch(i){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Af(a){if(Bf[a])return Bf[a];a=String(a);if(!Bf[a]){var b=/function ([^\(]+)/.exec(a);Bf[a]=b?b[1]:"[Anonymous]"}return Bf[a]}var Bf={};function Cf(a,b,c,d,g){this.reset(a,b,c,d,g)}Cf.prototype.xk=0;Cf.prototype.$f=l;Cf.prototype.Zf=l;var Df=0;Cf.prototype.reset=function(a,b,c,d,g){this.xk=typeof g=="number"?g:Df++;this.Ki=d||ta();this.md=a;this.fi=b;this.Tj=c;delete this.$f;delete this.Zf};Cf.prototype.Tg=ba("md");function Ef(a){this.Xj=a}Ef.prototype.D=l;Ef.prototype.md=l;Ef.prototype.Z=l;Ef.prototype.Wd=l;function Ff(a,b){this.name=a;this.value=b}Ff.prototype.toString=n("name");var Gf=new Ff("SHOUT",1200),Hf=new Ff("SEVERE",1E3),If=new Ff("WARNING",900),Jf=new Ff("INFO",800),Kf=new Ff("CONFIG",700),Lf=new Ff("FINE",500),Mf=new Ff("FINEST",300),Nf=new Ff("ALL",0);p=Ef.prototype;p.getParent=n("D");p.Tg=ba("md");
function Of(a){if(a.md)return a.md;if(a.D)return Of(a.D);rb("Root logger has no level set.");return l}p.log=function(a,b,c){if(a.value>=Of(this).value){a=this.tj(a,b,c);b="log:"+a.fi;r.console&&(r.console.timeStamp?r.console.timeStamp(b):r.console.markTimeline&&r.console.markTimeline(b));r.msWriteProfilerMark&&r.msWriteProfilerMark(b);for(b=this;b;){var c=b,d=a;if(c.Wd)for(var g=0,h=j;h=c.Wd[g];g++)h(d);b=b.getParent()}}};
p.tj=function(a,b,c){var d=new Cf(a,String(b),this.Xj);if(c){d.$f=c;var g;var h=arguments.callee.caller;try{var i;var k=da("window.location.href");if(v(c))i={message:c,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};else{var m,q,t=!1;try{m=c.lineNumber||c.cl||"Not available"}catch(y){m="Not available",t=!0}try{q=c.fileName||c.filename||c.sourceURL||k}catch(L){q="Not available",t=!0}i=t||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:m,
fileName:q,stack:c.stack||"Not available"}:c}g="Message: "+za(i.message)+'\nUrl: <a href="view-source:'+i.fileName+'" target="_new">'+i.fileName+"</a>\nLine: "+i.lineNumber+"\n\nBrowser stack:\n"+za(i.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+za(yf(h)+"-> ")}catch(fa){g="Exception trying to expose exception! You win, we lose. "+fa}d.Zf=g}return d};p.info=function(a,b){this.log(Jf,a,b)};function Pf(a,b){a.log(Lf,b,j)}p.se=ba("D");var Qf={},Rf=l;
function Sf(){Rf||(Rf=new Ef(""),Qf[""]=Rf,Rf.Tg(Kf))}function Tf(){Sf();return Rf}function Uf(a){Sf();var b;if(!(b=Qf[a])){b=new Ef(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Uf(a.substr(0,c));if(!c.Z)c.Z={};c.Z[d]=b;b.se(c);Qf[a]=b}return b};function Vf(){if(z)this.pc={},this.Cf={},this.wf=[]}Vf.prototype.ca=Uf("goog.net.xhrMonitor");Vf.prototype.S=z;Vf.prototype.u=function(a){this.S=z&&a};function Wf(a){var b=Xf;if(b.S){var c=v(a)?a:la(a)?ma(a):"";b.ca.log(Mf,"Pushing context: "+a+" ("+c+")",j);b.wf.push(c)}}function Yf(){var a=Xf;if(a.S){var b=a.wf.pop();a.ca.log(Mf,"Popping context: "+b,j);Zf(a,b)}}
function $f(a){var b=Xf;if(b.S){a=ma(a);Pf(b.ca,"Opening XHR : "+a);for(var c=0;c<b.wf.length;c++){var d=b.wf[c];ag(b.pc,d,a);ag(b.Cf,a,d)}}}function Zf(a,b){var c=a.Cf[b],d=a.pc[b];c&&d&&(a.ca.log(Mf,"Updating dependent contexts",j),tb(c,function(a){tb(d,function(b){ag(this.pc,a,b);ag(this.Cf,b,a)},this)},a))}function ag(a,b,c){a[b]||(a[b]=[]);xb(a[b],c)||a[b].push(c)}var Xf=new Vf;function bg(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.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,"")))try{return eval("("+a+")")}catch(b){}e(Error("Invalid JSON string: "+a))};function cg(){}cg.prototype.sh=l;function dg(a){var b;if(!(b=a.sh))b={},eg(a)&&(b[0]=!0,b[1]=!0),b=a.sh=b;return b};var fg;function gg(){}w(gg,cg);function hg(a){return(a=eg(a))?new ActiveXObject(a):new XMLHttpRequest}gg.prototype.lg=l;
function eg(a){if(!a.lg&&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{return new ActiveXObject(d),a.lg=d}catch(g){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return a.lg}fg=new gg;function ig(a){this.headers=new tf;this.Df=a||l}w(ig,Q);ig.prototype.ca=Uf("goog.net.XhrIo");var jg=/^https?:?$/i;p=ig.prototype;p.Pb=!1;p.z=l;p.Bf=l;p.va="";p.$h="";p.Zd=0;p.cc="";p.Yf=!1;p.Te=!1;p.mg=!1;p.wc=!1;p.xf=0;p.Nc=l;p.zi="";p.Sk=!1;
p.send=function(a,b,c,d){this.z&&e(Error("[goog.net.XhrIo] Object is active with another request"));b=b?b.toUpperCase():"GET";this.va=a;this.cc="";this.Zd=0;this.$h=b;this.Yf=!1;this.Pb=!0;this.z=this.Df?hg(this.Df):hg(fg);this.Bf=this.Df?dg(this.Df):dg(fg);$f(this.z);this.z.onreadystatechange=ra(this.mi,this);try{Pf(this.ca,kg(this,"Opening Xhr")),this.mg=!0,this.z.open(b,a,!0),this.mg=!1}catch(g){Pf(this.ca,kg(this,"Error opening Xhr: "+g.message));lg(this,g);return}var a=c||"",h=this.headers.Ba();
d&&nf(d,function(a,b){h.set(b,a)});b=="POST"&&!h.Sf("Content-Type")&&h.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");nf(h,function(a,b){this.z.setRequestHeader(b,a)},this);if(this.zi)this.z.responseType=this.zi;if("withCredentials"in this.z)this.z.withCredentials=this.Sk;try{if(this.Nc)qf.clearTimeout(this.Nc),this.Nc=l;if(this.xf>0)Pf(this.ca,kg(this,"Will abort after "+this.xf+"ms if incomplete")),this.Nc=qf.setTimeout(ra(this.Ik,this),this.xf);Pf(this.ca,kg(this,"Sending request"));
this.Te=!0;this.z.send(a);this.Te=!1}catch(i){Pf(this.ca,kg(this,"Send error: "+i.message)),lg(this,i)}};p.dispatchEvent=function(a){if(this.z){Wf(this.z);try{return ig.b.dispatchEvent.call(this,a)}finally{Yf()}}else return ig.b.dispatchEvent.call(this,a)};p.Ik=function(){if(typeof ca!="undefined"&&this.z)this.cc="Timed out after "+this.xf+"ms, aborting",this.Zd=8,Pf(this.ca,kg(this,this.cc)),this.dispatchEvent("timeout"),this.abort(8)};
function lg(a,b){a.Pb=!1;if(a.z)a.wc=!0,a.z.abort(),a.wc=!1;a.cc=b;a.Zd=5;mg(a);ng(a)}function mg(a){if(!a.Yf)a.Yf=!0,a.dispatchEvent("complete"),a.dispatchEvent("error")}p.abort=function(a){if(this.z&&this.Pb)Pf(this.ca,kg(this,"Aborting")),this.Pb=!1,this.wc=!0,this.z.abort(),this.wc=!1,this.Zd=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ng(this)};p.g=function(){if(this.z){if(this.Pb)this.Pb=!1,this.wc=!0,this.z.abort(),this.wc=!1;ng(this,!0)}ig.b.g.call(this)};
p.mi=function(){!this.mg&&!this.Te&&!this.wc?this.ek():og(this)};p.ek=function(){og(this)};
function og(a){if(a.Pb&&typeof ca!="undefined")if(a.Bf[1]&&pg(a)==4&&rg(a)==2)Pf(a.ca,kg(a,"Local request error detected and ignored"));else if(a.Te&&pg(a)==4)qf.setTimeout(ra(a.mi,a),0);else if(a.dispatchEvent("readystatechange"),pg(a)==4){Pf(a.ca,kg(a,"Request complete"));a.Pb=!1;var b;a:switch(rg(a)){case 0:b=v(a.va)?a.va.match(of)[1]||l:a.va.bl();b=!(b?jg.test(b):self.location?jg.test(self.location.protocol):1);break a;case 200:case 201:case 202:case 204:case 304:case 1223:b=!0;break a;default:b=
!1}if(b)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.Zd=6;var c;try{c=pg(a)>2?a.z.statusText:""}catch(d){Pf(a.ca,"Can not get status: "+d.message),c=""}a.cc=c+" ["+rg(a)+"]";mg(a)}ng(a)}}
function ng(a,b){if(a.z){var c=a.z,d=a.Bf[0]?s:l;a.z=l;a.Bf=l;if(a.Nc)qf.clearTimeout(a.Nc),a.Nc=l;b||(Wf(c),a.dispatchEvent("ready"),Yf());var g=Xf;if(g.S){var h=ma(c);Pf(g.ca,"Closing XHR : "+h);delete g.Cf[h];for(var i in g.pc)zb(g.pc[i],h),g.pc[i].length==0&&delete g.pc[i]}try{c.onreadystatechange=d}catch(k){a.ca.log(Hf,"Problem encountered resetting onreadystatechange: "+k.message,j)}}}p.ha=function(){return!!this.z};function pg(a){return a.z?a.z.readyState:0}
function rg(a){try{return pg(a)>2?a.z.status:-1}catch(b){return a.ca.log(If,"Can not get status: "+b.message,j),-1}}function sg(a){if(a.z)return bg(a.z.responseText)}function tg(a){return v(a.cc)?a.cc:String(a.cc)}function kg(a,b){return b+" ["+a.$h+" "+a.va+" "+rg(a)+"]"};function ug(){this.Sb=[]}p=ug.prototype;p.Hb=0;p.Mc=0;p.Ie=function(a){this.Sb[this.Mc++]=a};p.Yc=function(){if(this.Hb!=this.Mc){var a=this.Sb[this.Hb];delete this.Sb[this.Hb];this.Hb++;return a}};p.pa=function(){return this.Mc-this.Hb};p.Ib=function(){return this.Mc-this.Hb==0};p.clear=function(){this.Mc=this.Hb=this.Sb.length=0};p.contains=function(a){return xb(this.Sb,a)};p.remove=function(a){a=sb(this.Sb,a);if(a<0)return!1;a==this.Hb?this.Yc():(C.splice.call(this.Sb,a,1),this.Mc--);return!0};
p.Fb=function(){return this.Sb.slice(this.Hb,this.Mc)};function vg(a,b){this.di=a||0;this.zc=b||10;this.di>this.zc&&e(Error(wg));this.aa=new ug;this.Xb=new wf;this.Vf=0;this.rg=l;this.we()}w(vg,Kb);var wg="[goog.structs.Pool] Min can not be greater than max";p=vg.prototype;p.getObject=function(){var a=ta();if(!(this.rg!=l&&a-this.rg<this.Vf)){for(var b;this.aa.pa()>0;)if(b=this.aa.Yc(),this.zg(b))break;else this.we();!b&&this.pa()<this.zc&&(b=this.Xc());if(b)this.rg=a,this.Xb.add(b);return b}};
p.Gc=function(a){return this.Xb.remove(a)?(this.If(a),!0):!1};p.If=function(a){this.Xb.remove(a);this.zg(a)&&this.pa()<this.zc?this.aa.Ie(a):this.rc(a)};p.we=function(){for(var a=this.aa;this.pa()<this.di;)a.Ie(this.Xc());for(;this.pa()>this.zc&&this.aa.pa()>0;)this.rc(a.Yc())};p.Xc=function(){return{}};p.rc=function(a){if(typeof a.j=="function")a.j();else for(var b in a)a[b]=l};p.zg=function(a){return typeof a.ej=="function"?a.ej():!0};p.contains=function(a){return this.aa.contains(a)||this.Xb.contains(a)};
p.pa=function(){return this.aa.pa()+this.Xb.pa()};p.Ib=function(){return this.aa.Ib()&&this.Xb.Ib()};p.g=function(){vg.b.g.call(this);this.Xb.pa()>0&&e(Error("[goog.structs.Pool] Objects not released"));delete this.Xb;for(var a=this.aa;!a.Ib();)this.rc(a.Yc());delete this.aa};function xg(a,b){this.Jb=a;this.Ha=b}xg.prototype.s=n("Ha");xg.prototype.Ba=function(){return new xg(this.Jb,this.Ha)};function yg(a){this.hb=[];if(a)a:{var b,c;if(a instanceof yg){if(b=a.Ud(),c=a.Fb(),a.pa()<=0){for(var a=this.hb,d=0;d<b.length;d++)a.push(new xg(b[d],c[d]));break a}}else b=jb(a),c=ib(a);for(d=0;d<b.length;d++)zg(this,b[d],c[d])}}function zg(a,b,c){var d=a.hb;d.push(new xg(b,c));b=d.length-1;a=a.hb;for(c=a[b];b>0;)if(d=b-1>>1,a[d].Jb>c.Jb)a[b]=a[d],b=d;else break;a[b]=c}p=yg.prototype;
p.remove=function(){var a=this.hb,b=a.length,c=a[0];if(!(b<=0)){if(b==1)yb(a);else{a[0]=a.pop();for(var a=0,b=this.hb,d=b.length,g=b[a];a<d>>1;){var h=a*2+1,i=a*2+2,h=i<d&&b[i].Jb<b[h].Jb?i:h;if(b[h].Jb>g.Jb)break;b[a]=b[h];a=h}b[a]=g}return c.s()}};p.Fb=function(){for(var a=this.hb,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].s());return b};p.Ud=function(){for(var a=this.hb,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Jb);return b};p.Sf=function(a){return vb(this.hb,function(b){return b.Jb==a})};p.Ba=function(){return new yg(this)};
p.pa=function(){return this.hb.length};p.Ib=function(){return this.hb.length==0};p.clear=function(){yb(this.hb)};function Ag(){yg.call(this)}w(Ag,yg);Ag.prototype.Ie=function(a,b){zg(this,a,b)};Ag.prototype.Yc=function(){return this.remove()};function Bg(a,b){this.nf=new Ag;vg.call(this,a,b)}w(Bg,vg);p=Bg.prototype;p.getObject=function(a,b){if(!a){var c=Bg.b.getObject.call(this);if(c&&this.Vf)this.hj=r.setTimeout(ra(this.Re,this),this.Vf);return c}this.nf.Ie(b||100,a);this.Re()};p.Re=function(){for(var a=this.nf;a.pa()>0;){var b=this.getObject();if(b)a.Yc().apply(this,[b]);else break}};p.If=function(a){Bg.b.If.call(this,a);this.Re()};p.we=function(){Bg.b.we.call(this);this.Re()};
p.g=function(){Bg.b.g.call(this);r.clearTimeout(this.hj);this.nf.clear();this.nf=l};function Cg(a,b,c){Bg.call(this,b,c);this.Lj=a}w(Cg,Bg);Cg.prototype.Xc=function(){var a=new ig,b=this.Lj;b&&nf(b,function(b,d){a.headers.set(d,b)});return a};Cg.prototype.rc=function(a){a.j()};Cg.prototype.zg=function(a){return!a.Zc&&!a.ha()};function Dg(a,b,c,d){this.url=a;this.ob=b;this.jk=c;this.ik=d}function W(){this.si=new Cg({},1);this.lb={};this.of=[]}w(W,Q);u(W);function Eg(a){E.call(this,"server_info_change");this.Jc=a}w(Eg,E);function Fg(a){E.call(this,"plugin_list_change");this.plugins=a}w(Fg,E);function Gg(a){E.call(this,"universe_list_change");this.lb=a}w(Fg,E);function Hg(a){E.call(this,"plugin_change");this.ec=a}w(Hg,E);function Ig(a){E.call(this,"universe_change");this.Oc=a}w(Ig,E);
function Jg(a){X(a,"json/server_stats",function(a){a=sg(a.target);this.dispatchEvent(new Eg(a))})}function Kg(a){var b=W.c();X(b,"reload",a)}function Lg(a){var b=W.c();X(b,"quit",a)}
function Mg(a){X(a,"json/universe_plugin_list",function(a){if(rg(a.target)!=200)Ng.info("Request failed: "+String(a.target.va)+" : "+tg(a.target));else{a=sg(a.target);this.lb={};for(var c=0;c<a.universes.length;++c)this.lb[a.universes[c].id]=!0;this.dispatchEvent(new Fg(a.plugins));this.dispatchEvent(new Gg(a.universes))}})}function Og(a,b){X(a,"json/plugin_info?id="+b,function(a){a=sg(a.target);this.dispatchEvent(new Hg(a))})}
function Pg(a,b){X(a,"json/universe_info?id="+b,function(a){a=sg(a.target);this.dispatchEvent(new Ig(a))})}function Qg(a,b,c){var d="json/get_ports";b!=j&&(d+="?id="+b);X(a,d,c)}function Rg(a,b,c,d,g){X(a,"new_universe",g,"POST","id="+b+(c?"&name="+encodeURI(c):"")+"&add_ports="+d.join(","))}function Sg(a,b,c,d){b="rdm/run_discovery?id="+b;c||(b+="&incremental=true");X(a,b,d)}function Tg(a,b,c,d){X(a,"json/rdm/supported_sections?id="+b+"&uid="+c,d)}
function Ug(a,b,c,d,g,h){X(a,"json/rdm/section_info?id="+b+"&uid="+c+"&section="+d+"&hint="+g,h)}function Vg(a,b,c,d,g,h,i){X(a,"json/rdm/set_section_info?id="+b+"&uid="+c+"&section="+d+"&hint="+g+"&"+h,i)}function Wg(a,b,c){X(a,"json/rdm/uids?id="+b,c)}function Xg(a,b,c,d){X(a,"json/rdm/uid_info?id="+b+"&uid="+c,d)}function Yg(a,b,c,d){X(a,"json/rdm/uid_identify?id="+b+"&uid="+c,d)}function Zg(a,b,c,d){X(a,"json/rdm/uid_personalities?id="+b+"&uid="+c,d)}
function $g(a,b,c,d,g,h,i,k){b="id="+b+"&name="+c+"&merge_mode="+d+"&add_ports="+i.join(",")+"&remove_ports="+h.join(",");modified_port_ids=[];for(c=0;c<g.length;++c)d=g[c],b+="&"+d.id+"_priority_value="+d.Lg,d.mode!=j&&(b+="&"+d.id+"_priority_mode="+d.mode),modified_port_ids.push(d.id);b+="&modify_ports="+modified_port_ids.join(",");X(a,"modify_universe",k,"POST",b)}function ah(a,b,c){X(a,"get_dmx?u="+b,function(a){c(sg(a.target))})}
function bh(a,b,c,d){X(a,"set_dmx",function(a){d(a.target)},"POST","u="+b+"&d="+c.join(","))}function ch(a,b){if(rg(b.target)==200){var c=sg(b.target);if(c.error)a.Mb(c.error);else return c}else a.Mb(String(b.target.va)+" : "+tg(b.target))}function dh(a,b){if(rg(b.target)==200){var c=sg(b.target);if(c.error)Ng.info(c.error);else return c}else Ng.info(String(b.target.va)+" : "+tg(b.target))}W.prototype.Mb=function(a){var b=Y.c();Z(b,eh);b.M("Request Failed");b.t(a);b.h(!0)};
function X(a,b,c,d,g){a.of.length>=30?(b=Y.c(),Z(b,eh),b.M("Failed to Communicate with Server"),b.t("The request pool was empty, the server is probably down."),b.h(!0)):(a.of.push(new Dg(b,c,d,g)),a.si.getObject(function(b){if(a.of.length){var c=a.of.shift();c.ob&&F(b,"complete",c.ob,!1,a);F(b,"ready",a.fj,!1,a);b.send(c.url,c.jk,c.ik)}},1))}W.prototype.fj=function(a){a=a.target;qc(a);this.si.Gc(a)};function fh(){this.xi=ta()}var gh=new fh;fh.prototype.set=ba("xi");fh.prototype.reset=function(){this.set(ta())};fh.prototype.get=n("xi");function hh(a){this.nk=a||"";this.Dk=gh}hh.prototype.Ci=!0;hh.prototype.Ck=!0;hh.prototype.Bk=!0;hh.prototype.Di=!1;function ih(a){return a<10?"0"+a:String(a)}function jh(a,b){var c=(a.Ki-b)/1E3,d=c.toFixed(3),g=0;if(c<1)g=2;else for(;c<100;)g++,c*=10;for(;g-- >0;)d=" "+d;return d}function kh(a){hh.call(this,a)}w(kh,hh);kh.prototype.Di=!0;function lh(a){this.qk=ra(this.Wi,this);this.Gh=new kh;this.Xh=this.Gh.Ci=!1;this.e=a;this.lj=this.e.ownerDocument||this.e.document;Id(".dbg-sev{color:#F00}.dbg-w{color:#C40}.dbg-sh{font-weight:bold;color:#000}.dbg-i{color:#444}.dbg-f{color:#999}.dbg-ev{color:#0A0}.dbg-m{color:#990}.logmsg{border-bottom:1px solid #CCC;padding:2px}.logsep{background-color: #8C8;}.logdiv{border:1px solid #CCC;background-color:#FCFCFC;font:medium monospace}",this.e);this.e.className+=" logdiv"}
lh.prototype.Wi=function(a){var b=this.e.scrollHeight-this.e.scrollTop-this.e.clientHeight<=100,c=this.lj.createElement("div");c.className="logmsg";var d=this.Gh,g;switch(a.md.value){case Gf.value:g="dbg-sh";break;case Hf.value:g="dbg-sev";break;case If.value:g="dbg-w";break;case Jf.value:g="dbg-i";break;default:g="dbg-f"}var h=[];h.push(d.nk," ");if(d.Ci){var i=new Date(a.Ki);h.push("[",ih(i.getFullYear()-2E3)+ih(i.getMonth()+1)+ih(i.getDate())+" "+ih(i.getHours())+":"+ih(i.getMinutes())+":"+ih(i.getSeconds())+
"."+ih(Math.floor(i.getMilliseconds()/10)),"] ")}d.Ck&&h.push("[",Fa(jh(a,d.Dk.get())),"s] ");d.Bk&&h.push("[",za(a.Tj),"] ");h.push('<span class="',g,'">',ya(Fa(za(a.fi))));d.Di&&a.$f&&h.push("<br>",ya(Fa(a.Zf||"")));h.push("</span><br>");c.innerHTML=h.join("");this.e.appendChild(c);if(b)this.e.scrollTop=this.e.scrollHeight};lh.prototype.clear=function(){this.e.innerHTML=""};function mh(a,b,c,d,g,h,i,k){var m,q=c.offsetParent;if(q){var t=q.tagName=="HTML"||q.tagName=="BODY";if(!t||sd(q)!="static")m=zd(q),t||(m=wc(m,new H(q.scrollLeft,q.scrollTop)))}q=Gd(a);(t=yd(a))&&q.Wh(new yc(t.left,t.top,t.right-t.left,t.bottom-t.top));var t=J(a),y=J(c);if(t.A!=y.A){var L=t.A.body,y=hd(y),fa=new H(0,0),zc=K(L)?Nc(K(L)):window,qg=L;do{var zi=zc==y?zd(qg):Cd(qg);fa.x+=zi.x;fa.y+=zi.y}while(zc&&zc!=y&&(qg=zc.frameElement)&&(zc=zc.parent));L=wc(fa,zd(L));x&&!gd(t)&&(L=wc(L,id(t)));q.left+=
L.x;q.top+=L.y}a=(b&4&&Ad(a)?b^2:b)&-5;b=new H(a&2?q.left+q.width:q.left,a&1?q.top+q.height:q.top);m&&(b=wc(b,m));g&&(b.x+=(a&2?-1:1)*g.x,b.y+=(a&1?-1:1)*g.y);var M;if(i&&(M=yd(c))&&m)M.top-=m.y,M.right-=m.x,M.bottom-=m.y,M.left-=m.x;a:{m=M;g=b.Ba();M=0;a=(d&4&&Ad(c)?d^2:d)&-5;d=Ed(c);k=k?k.Ba():d.Ba();if(h||a!=0)a&2?g.x-=k.width+(h?h.right:0):h&&(g.x+=h.left),a&1?g.y-=k.height+(h?h.bottom:0):h&&(g.y+=h.top);if(i){if(m){h=g;M=0;if((i&65)==65&&(h.x<m.left||h.x>=m.right))i&=-2;if((i&132)==132&&(h.y<
m.top||h.y>=m.bottom))i&=-5;if(h.x<m.left&&i&1)h.x=m.left,M|=1;h.x<m.left&&h.x+k.width>m.right&&i&16&&(k.width-=h.x+k.width-m.right,M|=4);if(h.x+k.width>m.right&&i&1)h.x=Math.max(m.right-k.width,m.left),M|=1;i&2&&(M|=(h.x<m.left?16:0)|(h.x+k.width>m.right?32:0));if(h.y<m.top&&i&4)h.y=m.top,M|=2;h.y>=m.top&&h.y+k.height>m.bottom&&i&32&&(k.height-=h.y+k.height-m.bottom,M|=8);if(h.y+k.height>m.bottom&&i&4)h.y=Math.max(m.bottom-k.height,m.top),M|=2;i&8&&(M|=(h.y<m.top?64:0)|(h.y+k.height>m.bottom?128:
0));i=M}else i=256;M=i;if(M&496){c=M;break a}}td(c,g);vc(d,k)||Nd(c,k);c=M}return c};function nh(){}nh.prototype.Na=aa();function oh(a,b){this.element=a;this.Tf=b}w(oh,nh);oh.prototype.Na=function(a,b,c){mh(this.element,this.Tf,a,b,j,c)};function ph(a,b){this.Ua=new tc(this);var c=a||l;qh(this);this.e=c;if(b)this.Cd=b}w(ph,Q);p=ph.prototype;p.e=l;p.qh=!0;p.ph=l;p.ld=!1;p.Ak=!1;p.tg=-1;p.Zh=-1;p.Sh=!1;p.mj=!0;p.Cd="toggle_display";p.a=n("e");function qh(a){a.ld&&e(Error("Can not change this state of the popup while showing."))}p.H=n("ld");p.h=function(a){this.te&&this.te.stop();this.Xd&&this.Xd.stop();a?this.Yg():this.fd()};p.Na=s;
p.Yg=function(){if(!this.ld&&this.dispatchEvent("beforeshow")){this.e||e(Error("Caller must call setElement before trying to show the popup"));this.Na();var a=K(this.e);this.Sh&&this.Ua.f(a,Hb,this.ck,!0);if(this.qh)if(this.Ua.f(a,"mousedown",this.li,!0),x){var b;try{b=a.activeElement}catch(c){}for(;b&&b.nodeName=="IFRAME";){try{var d=A?b.document||b.contentWindow.document:b.contentDocument||b.contentWindow.document}catch(g){break}a=d;b=a.activeElement}this.Ua.f(a,"mousedown",this.li,!0);this.Ua.f(a,
"deactivate",this.ki)}else this.Ua.f(a,"blur",this.ki);this.Cd=="toggle_display"?(this.e.style.visibility="visible",R(this.e,!0)):this.Cd=="move_offscreen"&&this.Na();this.ld=!0;this.te?(lc(this.te,"end",this.ni,!1,this),this.te.play()):this.ni()}};p.fd=function(a){if(!this.ld||!this.dispatchEvent({type:"beforehide",target:a}))return!1;this.Ua&&this.Ua.ge();this.Xd?(lc(this.Xd,"end",sa(this.yh,a),!1,this),this.Xd.play()):this.yh(a);return!0};
p.yh=function(a){if(this.Cd=="toggle_display")this.Ak?sf(this.Th,0,this):this.Th();else if(this.Cd=="move_offscreen")this.e.style.left="-200px",this.e.style.top="-200px";this.ld=!1;this.Zh=ta();this.dispatchEvent({type:"hide",target:a})};p.Th=function(){this.e.style.visibility="hidden";R(this.e,!1)};p.ni=function(){this.tg=ta();this.Zh=-1;this.dispatchEvent("show")};p.li=function(a){a=a.target;!Xc(this.e,a)&&(!this.ph||Xc(this.ph,a))&&!(ta()-this.tg<150)&&this.fd(a)};
p.ck=function(a){a.keyCode==27&&this.fd(a.target)&&(a.preventDefault(),a.stopPropagation())};p.ki=function(a){if(this.mj){var b=K(this.e);if(x||Ta){if(a=b.activeElement,!a||Xc(this.e,a)||a.tagName=="BODY")return}else if(a.target!=b)return;ta()-this.tg<150||this.fd()}};p.g=function(){ph.b.g.call(this);this.Ua.j();Mb(this.te);Mb(this.Xd);delete this.e;delete this.Ua};function rh(a,b,c){oh.call(this,a,b);this.Yi=c}w(rh,oh);rh.prototype.Lh=o(5);rh.prototype.Na=function(a,b,c,d){var g=mh(this.element,this.Tf,a,b,l,c,10,d);if(g&496){var h=sh(g,this.Tf),b=sh(g,b),g=mh(this.element,h,a,b,l,c,10,d);g&496&&(h=sh(g,h),b=sh(g,b),this.Yi?mh(this.element,h,a,b,l,c,this.Lh(),d):mh(this.element,h,a,b,l,c,0,d))}};function sh(a,b){a&48&&(b^=2);a&192&&(b^=1);return b};function th(a,b){this.ti=4;this.Kg=b||j;ph.call(this,a)}w(th,ph);th.prototype.Vg=function(a){this.Kg=a||j;this.H()&&this.Na()};th.prototype.Na=function(){if(this.Kg){var a=!this.H()&&this.Cd!="move_offscreen",b=this.a();if(a)b.style.visibility="hidden",R(b,!0);this.Kg.Na(b,this.ti,this.wg);a&&R(b,!1)}};function uh(a,b,c){return Math.min(Math.max(a,b),c)};var Ng=Uf("ola");function vh(){Tf().Tg(Nf);var a=new lh(N("log"));if(!0!=a.Xh){var b=Tf(),c=a.qk;if(!b.Wd)b.Wd=[];b.Wd.push(c);a.Xh=!0}this.bf=N("log_control");(new V).n(this.bf);F(this.bf,D,this.Qa,!1,this);a=this.fc=new th(document.getElementById("log_popup"));qh(a);a.Sh=!0;a=this.fc;qh(a);a.qh=!0}vh.prototype.Qa=function(){this.fc.h(!1);var a=this.fc;a.ti=2;a.H()&&a.Na();var a=this.fc,b=new xc(2,2,2,2);a.wg=b==l||b instanceof xc?b:new xc(b,j,j,j);a.H()&&a.Na();this.fc.Vg(new rh(this.bf,3));this.fc.h(!0)};function wh(a){this.e=a;a=x?"focusout":"blur";this.Rj=F(this.e,x?"focusin":"focus",this,!x);this.Sj=F(this.e,a,this,!x)}w(wh,Q);wh.prototype.handleEvent=function(a){var b=new Pb(a.oa);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.j()}};wh.prototype.g=function(){wh.b.g.call(this);oc(this.Rj);oc(this.Sj);delete this.e};function xh(a,b){S.call(this,b);this.Qk=!!a}w(xh,S);p=xh.prototype;p.ag=l;p.Y=!1;p.Ia=l;p.ka=l;p.wb=l;p.i=o("goog-modalpopup");p.Je=n("Ia");p.d=function(){xh.b.d.call(this);var a=this.a();I(a,this.i());bd(a,!0);R(a,!1);yh(this);zh(this)};function yh(a){if(a.Qk&&!a.ka){var b;b=a.k().d("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});a.ka=b;a.ka.className=a.i()+"-bg";R(a.ka,!1);Hd(a.ka,0)}if(!a.Ia)a.Ia=a.k().d("div",a.i()+"-bg"),R(a.Ia,!1)}
function zh(a){if(!a.wb)a.wb=a.k().createElement("span"),R(a.wb,!1),bd(a.wb,!0),a.wb.style.position="absolute"}p.R=function(a){return!!a&&a.tagName=="DIV"};p.F=function(a){xh.b.F.call(this,a);I(this.a(),this.i());yh(this);zh(this);R(this.a(),!1)};
p.o=function(){if(this.ka){var a=this.a();a.parentNode&&a.parentNode.insertBefore(this.ka,a)}a=this.a();a.parentNode&&a.parentNode.insertBefore(this.Ia,a);xh.b.o.call(this);a=this.a();a.parentNode&&a.parentNode.insertBefore(this.wb,a.nextSibling);this.ag=new wh(fd(this.k()));this.G().f(this.ag,"focusin",this.dk)};p.K=function(){this.H()&&this.h(!1);Mb(this.ag);xh.b.K.call(this);Tc(this.ka);Tc(this.Ia);Tc(this.wb)};p.h=function(a){a!=this.Y&&(a?this.Yg():this.fd())};
p.Yg=function(){if(this.dispatchEvent("beforeshow"))this.Og(),this.Na(),this.G().f(hd(this.k()),"resize",this.Og),Ah(this,!0),this.focus(),this.Y=!0,this.dispatchEvent("show")};p.fd=function(){if(this.dispatchEvent("beforehide"))this.G().X(hd(this.k()),"resize",this.Og),Ah(this,!1),this.Y=!1,this.dispatchEvent("hide")};function Ah(a,b){a.ka&&R(a.ka,b);a.Ia&&R(a.Ia,b);R(a.a(),b);R(a.wb,b)}p.H=n("Y");p.focus=function(){this.Fh()};
p.Og=function(){this.ka&&R(this.ka,!1);this.Ia&&R(this.Ia,!1);var a=fd(this.k()),b=Mc((a?Nc(a):window)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);this.ka&&(R(this.ka,!0),Dd(this.ka,c,a));this.Ia&&(R(this.Ia,!0),Dd(this.Ia,c,a))};
p.Na=function(){var a=fd(this.k()),b=(a?Nc(a):window)||window;if(sd(this.a())=="fixed")var c=a=0;else c=id(this.k()),a=c.x,c=c.y;var d=Ed(this.a()),b=Mc(b||window),a=Math.max(a+b.width/2-d.width/2,0),c=Math.max(c+b.height/2-d.height/2,0);td(this.a(),a,c);td(this.wb,a,c)};p.dk=function(a){a.target==this.wb&&sf(this.Fh,0,this)};p.Fh=function(){try{x&&fd(this.k()).body.focus(),this.a().focus()}catch(a){}};function Bh(a,b,c){xh.call(this,b,c);this.sa=a||"modal-dialog";this.ea=Ch(Ch(new Dh,Eh,!0),Fh,!1,!0)}w(Bh,xh);p=Bh.prototype;p.pj=!0;p.jg=!0;p.ei=!0;p.Dh=!0;p.ye=0.5;p.yf="";p.la="";p.ad=l;p.jj=!1;p.Pa=l;p.xb=l;p.bh=l;p.Nb=l;p.Sa=l;p.T=l;p.i=n("sa");p.M=function(a){this.yf=a;this.xb&&Yc(this.xb,a)};p.t=function(a){this.la=a;if(this.Sa)this.Sa.innerHTML=a};p.B=function(){this.a()||this.L();return this.Sa};p.Je=function(){this.a()||this.L();return Bh.b.Je.call(this)};
function Gh(a,b){a.ye=b;if(a.a()){var c=a.Je();c&&Hd(c,a.ye)}}
p.d=function(){Bh.b.d.call(this);var a=this.a(),b=this.k();this.Pa=b.d("div",{className:this.sa+"-title",id:Yd(this)},this.xb=b.d("span",this.sa+"-title-text",this.yf),this.Nb=b.d("span",this.sa+"-title-close"));Rc(a,this.Pa,this.Sa=b.d("div",this.sa+"-content"),this.T=b.d("div",this.sa+"-buttons"));this.bh=this.Pa.id;ne(a,"dialog");U(a,"labelledby",this.bh||"");if(this.la)this.Sa.innerHTML=this.la;R(this.Nb,this.jg);if(this.ea)a=this.ea,a.e=this.T,a.L();R(this.T,!!this.ea);Gh(this,this.ye)};
p.F=function(a){Bh.b.F.call(this,a);a=this.sa+"-content";if(this.Sa=Ic(document,l,a,this.a())[0])this.la=this.Sa.innerHTML;else{this.Sa=this.k().d("div",a);if(this.la)this.Sa.innerHTML=this.la;this.a().appendChild(this.Sa)}var a=this.sa+"-title",b=this.sa+"-title-text",c=this.sa+"-title-close";(this.Pa=Ic(document,l,a,this.a())[0])?(this.xb=Ic(document,l,b,this.Pa)[0],this.Nb=Ic(document,l,c,this.Pa)[0]):(this.Pa=this.k().d("div",a),this.a().insertBefore(this.Pa,this.Sa));this.xb?this.yf=cd(this.xb):
(this.xb=this.k().d("span",b,this.yf),this.Pa.appendChild(this.xb));U(this.a(),"labelledby",this.bh||"");if(!this.Nb)this.Nb=this.k().d("span",c),this.Pa.appendChild(this.Nb);R(this.Nb,this.jg);a=this.sa+"-buttons";if(this.T=Ic(document,l,a,this.a())[0])this.ea=new Dh(this.k()),this.ea.n(this.T);else{this.T=this.k().d("div",a);this.a().appendChild(this.T);if(this.ea)a=this.ea,a.e=this.T,a.L();R(this.T,!!this.ea)}Gh(this,this.ye)};
p.o=function(){Bh.b.o.call(this);this.G().f(this,["show","hide"],this.zk);if(this.Dh&&!this.ad)I(this.Pa,this.sa+"-title-draggable"),this.ad=new jd(this.a(),this.Pa);this.G().f(this.Nb,D,this.gk);ne(this.a(),"dialog");this.xb.id!==""&&U(this.a(),"labelledby",this.xb.id);if(!this.ei&&(this.ei=!1,this.v)){var a=this.k(),b=this.Je();a.removeNode(this.ka);a.removeNode(b)}};p.K=function(){this.H()&&this.h(!1);if(this.ad)this.ad.j(),this.ad=l;Bh.b.K.call(this)};
p.h=function(a){a!=this.H()&&(this.v||this.L(),Bh.b.h.call(this,a))};p.zk=function(a){a.target==this&&(this.H()?(this.G().f(this.a(),Hb,this.gf).f(this.a(),"keypress",this.gf),this.dispatchEvent(Hh),this.Sg(),this.G().f(this.T,D,this.ji).f(hd(this.k()),"resize",this.Sg)):(this.G().X(this.a(),Hb,this.gf).X(this.a(),"keypress",this.gf).X(this.T,D,this.ji).X(hd(this.k()),"resize",this.Sg),this.dispatchEvent(Ih),this.jj&&this.j()))};
p.focus=function(){Bh.b.focus.call(this);if(this.ea){var a=this.ea.De;if(a)for(var b=fd(this.k()),c=this.T.getElementsByTagName("button"),d=0,g;g=c[d];d++)if(g.name==a){try{if(A||Ta){var h=b.createElement("input");h.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.a().appendChild(h);h.focus();this.a().removeChild(h)}g.focus()}catch(i){}break}}};
p.Sg=function(){if(this.Dh){var a=fd(this.k()),b=Mc((a?Nc(a):window)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Ed(this.a());this.ad.$d=sd(this.a())=="fixed"?new yc(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):new yc(0,0,c-d.width,a-d.height)}};p.gk=function(){if(this.jg){var a=this.ea,b=a&&a.Pf;b?(a=a.get(b),this.dispatchEvent(new Jh(b,a))&&this.h(!1)):this.h(!1)}};p.g=function(){this.T=this.Nb=l;Bh.b.g.call(this)};
function Z(a,b){a.ea=b;if(a.T){if(a.ea){var c=a.ea;c.e=a.T;c.L()}else a.T.innerHTML="";R(a.T,!!a.ea)}}p.ji=function(a){a:{for(a=a.target;a!=l&&a!=this.T;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=l}if(a&&!a.disabled){var a=a.name,b=this.ea.get(a);this.dispatchEvent(new Jh(a,b))&&this.h(!1)}};
p.gf=function(a){var b=!1,c=!1,d=this.ea,g=a.target;if(a.type==Hb)if(this.pj&&a.keyCode==27){var h=d&&d.Pf,g=g.tagName=="SELECT"&&!g.disabled;h&&!g?(c=!0,b=d.get(h),b=this.dispatchEvent(new Jh(h,b))):g||(b=!0)}else a.keyCode==9&&a.shiftKey&&g==this.a()&&(c=!0);else if(a.keyCode==13){if(g.tagName=="BUTTON")h=g.name;else if(d){var i=d.De,k;if(k=i)a:{k=d.e.getElementsByTagName("BUTTON");for(var m=0,q;q=k[m];m++)if(q.name==i||q.id==i){k=q;break a}k=l}g=(g.tagName=="TEXTAREA"||g.tagName=="SELECT")&&!g.disabled;
k&&!k.disabled&&!g&&(h=i)}h&&d&&(c=!0,b=this.dispatchEvent(new Jh(h,String(d.get(h)))))}if(b||c)a.stopPropagation(),a.preventDefault();b&&this.h(!1)};function Jh(a,b){this.type=Kh;this.key=a;this.caption=b}w(Jh,E);var Kh="dialogselect",Ih="afterhide",Hh="aftershow";function Dh(a){this.p=a||J();tf.call(this)}var eh,Lh,Mh;w(Dh,tf);p=Dh.prototype;p.sa="goog-buttonset";p.De=l;p.e=l;p.Pf=l;p.set=function(a,b,c,d){tf.prototype.set.call(this,a,b);if(c)this.De=a;if(d)this.Pf=a;return this};
function Ch(a,b,c,d){return a.set(b.key,b.caption,c,d)}p.L=function(){if(this.e){this.e.innerHTML="";var a=J(this.e);nf(this,function(b,c){var d=a.d("button",{name:c},b);if(c==this.De)d.className=this.sa+"-default";this.e.appendChild(d)},this)}};p.n=function(a){if(a&&a.nodeType==1){this.e=a;for(var a=this.e.getElementsByTagName("button"),b=0,c,d,g;c=a[b];b++)if(d=c.name||c.id,g=cd(c)||c.value,d){var h=b==0;this.set(d,g,h,c.name==Nh);h&&I(c,this.sa+"-default")}}};p.a=n("e");p.k=n("p");
var Nh="cancel",Oh=ua("OK"),Ph=ua("Cancel"),Qh=ua("Yes"),Rh=ua("No"),Sh=ua("Save"),Th=ua("Continue"),Eh={key:"ok",caption:Oh},Fh={key:Nh,caption:Ph},Uh={key:"yes",caption:Qh},Vh={key:"no",caption:Rh},Wh={key:"save",caption:Sh},Xh={key:"continue",caption:Th};typeof document!="undefined"&&(eh=Ch(new Dh,Eh,!0,!0),Lh=Ch(Ch(new Dh,Eh,!0),Fh,!1,!0),Mh=Ch(Ch(new Dh,Uh,!0),Vh,!1,!0),Ch(Ch(Ch(new Dh,Uh),Vh,!0),Fh,!1,!0),Ch(Ch(Ch(new Dh,Xh),Wh),Fh,!0,!0));function Y(){Bh.call(this,l,!0)}w(Y,Bh);u(Y);Y.prototype.Lb=function(){this.M("Waiting for server response....");Z(this,l);this.t('<div align="center"><img src="/loader.gif"></div>')};function Yh(){}w(Yh,Me);u(Yh);Yh.prototype.d=function(a){return a.k().d("div",this.i()+" goog-inline-block","\u00a0")};Yh.prototype.n=function(a,b){b=Yh.b.n.call(this,a,b);I(b,"goog-inline-block");return b};Yh.prototype.i=o("goog-toolbar-separator");function Zh(a,b){Ne.call(this,a||Yh.c(),b)}w(Zh,Ne);se("goog-toolbar-separator",function(){return new Zh});function $h(a){this.element=N(a);this.nh=!1;this.J=j}$h.prototype.jb=ba("J");$h.prototype.kc=function(a){Nd(this.element,new G(a.width-7,a.height-34))};$h.prototype.setActive=ba("nh");$h.prototype.ha=n("nh");function ai(){}w(ai,oe);u(ai);p=ai.prototype;p.Ka=o("button");p.Ga=function(a,b,c){b==16?U(a,"pressed",c):ai.b.Ga.call(this,a,b,c)};p.d=function(a){var b=ai.b.d.call(this,a),c=a.Vd();c&&this.za(b,c);(c=a.s())&&this.ja(b,c);a.Q&16&&this.Ga(b,16,a.sb());return b};p.n=function(a,b){var b=ai.b.n.call(this,a,b),c=this.s(b);a.Ha=c;a.dh=this.Vd(b);a.Q&16&&this.Ga(b,16,a.sb());return b};p.s=s;p.ja=s;p.Vd=function(a){return a.title};p.za=function(a,b){if(a)a.title=b||""};p.i=o("goog-button");function bi(){}w(bi,ai);u(bi);p=bi.prototype;p.Ka=aa();p.d=function(a){Ge(a,!1);a.Kf&=-256;Je(a,32,!1);return a.k().d("button",{"class":this.tc(a).join(" "),disabled:!a.isEnabled(),title:a.Vd()||"",value:a.s()||""},a.Tb()||"")};p.R=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};p.n=function(a,b){Ge(a,!1);a.Kf&=-256;Je(a,32,!1);b.disabled&&I(b,this.Sd(1));return bi.b.n.call(this,a,b)};p.kd=function(a){a.G().f(a.a(),D,a.Dc)};p.ne=s;
p.wd=s;p.$b=function(a){return a.isEnabled()};p.hc=s;p.ya=function(a,b,c){bi.b.ya.call(this,a,b,c);if((a=a.a())&&b==1)a.disabled=c};p.s=function(a){return a.value};p.ja=function(a,b){if(a)a.value=b};p.Ga=s;function ci(a,b,c){V.call(this,a,b||bi.c(),c)}w(ci,V);p=ci.prototype;p.s=n("Ha");p.ja=function(a){this.Ha=a;this.m.ja(this.a(),a)};p.Vd=n("dh");p.za=function(a){this.dh=a;this.m.za(this.a(),a)};p.g=function(){ci.b.g.call(this);delete this.Ha;delete this.dh};p.o=function(){ci.b.o.call(this);if(this.Q&32){var a=this.V();a&&this.G().f(a,"keyup",this.vc)}};p.vc=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.Dc(a):a.keyCode==32};se("goog-button",function(){return new ci(l)});function di(){}w(di,ai);u(di);p=di.prototype;p.d=function(a){var b={"class":"goog-inline-block "+this.tc(a).join(" "),title:a.Vd()||""},b=a.k().d("div",b,this.Be(a.la,a.k()));this.qf(a,b);return b};p.Ka=o("button");p.qf=function(a,b){a.isEnabled()||this.Ga(b,1,!0);a.xc()&&this.Ga(b,8,!0);a.Q&16&&this.Ga(b,16,!0);a.q&64&&this.Ga(b,64,!0)};p.B=function(a){return a&&a.firstChild.firstChild};
p.Be=function(a,b){return b.d("div","goog-inline-block "+(this.i()+"-outer-box"),b.d("div","goog-inline-block "+(this.i()+"-inner-box"),a))};p.R=function(a){return a.tagName=="DIV"};p.n=function(a,b){ei(b,!0);ei(b,!1);var c;a:{if((c=a.k().Kh(b))&&c.className.indexOf(this.i()+"-outer-box")!=-1)if((c=a.k().Kh(c))&&c.className.indexOf(this.i()+"-inner-box")!=-1){c=!0;break a}c=!1}c||b.appendChild(this.Be(b.childNodes,a.k()));I(b,"goog-inline-block",this.i());return di.b.n.call(this,a,b)};p.i=o("goog-custom-button");
function ei(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var g=c.nodeValue;if(xa(g)=="")a.removeChild(c);else{c.nodeValue=b?g.replace(/^[\s\xa0]+/,""):g.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function fi(){}w(fi,di);u(fi);fi.prototype.i=o("goog-toolbar-button");function gi(a,b,c){ci.call(this,a,b||fi.c(),c)}w(gi,ci);se("goog-toolbar-button",function(){return new gi(l)});function hi(){}w(hi,Oe);u(hi);hi.prototype.Ka=o("toolbar");hi.prototype.Td=function(a){return a.tagName=="HR"?new Ne(Yh.c()):hi.b.Td.call(this,a)};hi.prototype.i=o("goog-toolbar");hi.prototype.Ih=function(){return Qe};function ii(a,b,c){Te.call(this,b,a||hi.c(),c)}w(ii,Te);function ji(a){this.Ef=a.device_id;this.Jd=a.manufacturer_id;this.Sc=a.device;this.Id=a.manufacturer}w(ji,bf);ji.prototype.id=function(){return ki(this)};function li(a,b){a<0&&(a=4294967295+a+1);for(var c=a.toString(16);c.length<b;)c="0"+c;return c}function ki(a){return li(a.Jd,4)+":"+li(a.Ef,8)}ji.prototype.toString=function(){var a="";this.Id&&(a+=this.Id);this.Id&&this.Sc&&(a+=", ");this.Sc&&(a+=this.Sc);if(this.Id||this.Sc)a+=" [";a+=ki(this);if(this.Id||this.Sc)a+="]";return a};
ji.prototype.Ae=function(a){if(this.Jd>a.Jd)return 1;else if(this.Jd<a.Jd)return-1;return this.Ef-a.Ef};function mi(a,b,c,d){cf.call(this,a,b,c,d);this.t(a.toString())}w(mi,cf);mi.prototype.o=function(){mi.b.o.call(this);this.a().title=this.item().toString()};mi.prototype.update=function(a){this.t(a.toString())};function ni(a){this.ob=a}ni.prototype.de=function(a){return new mi(a,this.ob)};function oi(){this.vh=[]}w(oi,oe);u(oi);function pi(a,b){var c=a.vh[b];if(!c){switch(b){case 0:c=a.i()+"-highlight";break;case 1:c=a.i()+"-checkbox";break;case 2:c=a.i()+"-content"}a.vh[b]=c}return c}p=oi.prototype;p.Ka=o("menuitem");p.d=function(a){var b=a.k().d("div",this.tc(a).join(" "),qi(this,a.la,a.k()));ri(this,a,b,!!(a.Q&8)||!!(a.Q&16));return b};p.B=function(a){return a&&a.firstChild};
p.n=function(a,b){var c=Uc(b),d=pi(this,2);c&&c.className.indexOf(d)!=-1||b.appendChild(qi(this,b.childNodes,a.k()));xb(Bc(b),"goog-option")&&(a.rf(!0),this.rf(a,b,!0));return oi.b.n.call(this,a,b)};p.t=function(a,b){var c=this.B(a),d=si(this,a)?c.firstChild:l;oi.b.t.call(this,a,b);d&&!si(this,a)&&c.insertBefore(d,c.firstChild||l)};function qi(a,b,c){a=pi(a,2);return c.d("div",a,b)}p.Wg=function(a,b,c){b&&(ne(b,c?"menuitemradio":this.Ka()),ri(this,a,b,c))};
p.rf=function(a,b,c){b&&(ne(b,c?"menuitemcheckbox":this.Ka()),ri(this,a,b,c))};function si(a,b){var c=a.B(b);if(c){var c=c.firstChild,d=pi(a,1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return!1}function ri(a,b,c,d){d!=si(a,c)&&(Ec(c,"goog-option",d),c=a.B(c),d?(a=pi(a,1),c.insertBefore(b.k().d("div",a),c.firstChild||l)):c.removeChild(c.firstChild))}p.Sd=function(a){switch(a){case 2:return pi(this,0);case 16:case 8:return"goog-option-selected";default:return oi.b.Sd.call(this,a)}};
p.cg=function(a){var b=pi(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return oi.b.cg.call(this,a)}};p.i=o("goog-menuitem");function ti(a,b,c,d){V.call(this,a,d||oi.c(),c);this.ja(b)}w(ti,V);p=ti.prototype;p.s=function(){var a=this.yg;return a!=l?a:this.Tb()};p.ja=ba("yg");p.Wg=function(a){Je(this,8,a);this.sb()&&!a&&this.Kc(!1);var b=this.a();b&&this.m.Wg(this,b,a)};p.rf=function(a){Je(this,16,a);var b=this.a();b&&this.m.rf(this,b,a)};p.Tb=function(){var a=this.la;return ha(a)?(a=ub(a,function(a){return xb(Bc(a),"goog-menuitem-accel")?"":ed(a)}).join(""),wa(a)):ti.b.Tb.call(this)};
p.Wb=function(a){var b=this.getParent();if(b){var c=b.pi;b.pi=l;if(b=c&&ja(a.clientX))b=new H(a.clientX,a.clientY),b=c==b?!0:!c||!b?!1:c.x==b.x&&c.y==b.y;if(b)return}ti.b.Wb.call(this,a)};se("goog-menuitem",function(){return new ti(l)});function ui(a,b,c){jd.call(this,a,b,c)}w(ui,jd);ui.prototype.og=function(a){if(this.dispatchEvent(new md("start",this,a.clientX,a.clientY,a))!==!1)this.cb=this.target.offsetLeft,this.eb=this.target.offsetTop,this.Cb=!0;Ng.info("delta from parent: "+this.cb+", "+this.eb)};ui.prototype.Nf=function(a,b){var c=new H(this.ke.scrollLeft,this.ke.scrollTop);a+=c.x-this.qd.x;b+=c.y-this.qd.y;this.qd=c;this.cb+=a;this.eb+=b;var c=nd(this,this.cb),d=od(this,this.eb);return new H(c,d)};function vi(a,b,c){this.Wc=a;this.le=new pf(wi);this.na=new tc(this);this.pf=new H;this.Vc=Gd(a);this.wg=b||0;this.je=b?xi(this,this.Vc.Ba()):this.Vc;c||this.na.f(K(this.Wc),"mousemove",this.Dg);this.na.f(this.le,rf,this.Gg)}w(vi,Kb);var wi=50;vi.prototype.gj=!1;function xi(a,b){var c=a.wg;if(c){var d=Math.min(c,b.height*0.25);b.top+=d;b.height-=2*d;c=Math.min(c,b.width*0.25);b.top+=c;b.height-=2*c}return b}vi.prototype.Gg=function(){this.Wc.scrollTop+=this.pf.y;this.Wc.scrollLeft+=this.pf.x};
vi.prototype.Dg=function(a){var b=yi(a.clientX,this.je.left,this.je.width),c=yi(a.clientY,this.je.top,this.je.height);this.pf.x=b;this.pf.y=c;if(!(b=!b&&!c))if(b=this.gj)b=a.clientX,a=a.clientY,c=this.Vc,b=!(c.left<=b&&c.left+c.width>=b&&c.top<=a&&c.top+c.height>=a);b?this.le.stop():this.le.enabled||this.le.start()};function yi(a,b,c){var d=0;a<b?d=-8:a>b+c&&(d=8);return d}vi.prototype.g=function(){vi.b.g.call(this);this.na.j();this.le.j()};function Ai(a,b){vi.call(this,a,b,!0)}w(Ai,vi);Ai.prototype.u=function(a){a?this.na.f(K(this.Wc),"mousemove",this.Dg):this.na.X(K(this.Wc),"mousemove",this.Dg)};function Bi(a,b,c,d){rh.call(this,a,b,c||d);this.vk=d}w(Bi,rh);Bi.prototype.Lh=function(){return 65|(this.vk?32:132)};var Ci,Di;Di=Ci=!1;var Ei=Pa();Ei&&(Ei.indexOf("Firefox")!=-1||Ei.indexOf("Camino")!=-1||(Ei.indexOf("iPhone")!=-1||Ei.indexOf("iPod")!=-1?Ci=!0:Ei.indexOf("iPad")!=-1&&(Di=!0)));var Fi=Ci,Gi=Di;function Hi(){}w(Hi,Oe);u(Hi);p=Hi.prototype;p.Ka=o("menu");p.R=function(a){return a.tagName=="UL"||Hi.b.R.call(this,a)};p.Td=function(a){return a.tagName=="HR"?new Ne:Hi.b.Td.call(this,a)};p.oc=function(a,b){return Xc(a.a(),b)};p.i=o("goog-menu");p.kd=function(a){Hi.b.kd.call(this,a);U(a.a(),"haspopup","true")};se("goog-menuseparator",function(){return new Ne});function Ii(){}w(Ii,oe);u(Ii);Ii.prototype.i=o("goog-menuheader");function Ji(a,b,c){V.call(this,a,c||Ii.c(),b);Je(this,1,!1);Je(this,2,!1);Je(this,4,!1);Je(this,32,!1);this.q=1}w(Ji,V);se("goog-menuheader",function(){return new Ji(l)});function Ki(a,b){Te.call(this,Re,b||Hi.c(),a);this.hc(!1)}w(Ki,Te);p=Ki.prototype;p.Jf=!0;p.$i=!1;p.i=function(){return this.m.i()};p.oc=function(a){if(this.m.oc(this,a))return!0;for(var b=0,c=ce(this);b<c;b++){var d=T(this,b);if(typeof d.oc=="function"&&d.oc(a))return!0}return!1};p.bb=function(a){this.ra(a,!0)};p.Uc=function(a,b){this.Tc(a,b,!0)};p.removeItem=function(a){(a=this.removeChild(a,!0))&&a.j()};p.td=function(a){(a=fe(this,a))&&a.j()};p.cd=function(a){return T(this,a)};p.Ke=function(){return ce(this)};
p.Vg=function(a,b){var c=this.H();c||R(this.a(),!0);var d=this.a(),g=a,h=b,i=zd(d);if(g instanceof H)h=g.y,g=g.x;td(d,d.offsetLeft+(g-i.x),d.offsetTop+(h-i.y));c||R(this.a(),!1)};p.h=function(a,b,c){(b=Ki.b.h.call(this,a,b))&&a&&this.v&&this.Jf&&this.V().focus();this.pi=a&&c&&ja(c.clientX)?new H(c.clientX,c.clientY):l;return b};p.eg=function(a){this.Jf&&this.V().focus();return Ki.b.eg.call(this,a)};p.th=function(a){return(this.$i||a.isEnabled())&&a.H()&&!!(a.Q&2)};
p.F=function(a){var b=this.m,c;c=this.k();c=Ic(c.A,"div",b.i()+"-content",a);for(var d,g=0;d=c[g];g++)Se(b,this,d);Ki.b.F.call(this,a)};function Li(){}w(Li,di);u(Li);if(z)Li.prototype.t=function(a,b){var c=Li.b.B.call(this,a&&a.firstChild);if(c){var d=this.createCaption(b,J(a)),g=c.parentNode;g&&g.replaceChild(d,c)}};p=Li.prototype;p.B=function(a){a=Li.b.B.call(this,a&&a.firstChild);if(z&&a&&a.__goog_wrapper_div)a=a.firstChild;return a};p.n=function(a,b){var c=Ic(document,"*","goog-menu",b)[0];if(c){R(c,!1);K(c).body.appendChild(c);var d=new Ki;d.n(c);a.qe(d)}return Li.b.n.call(this,a,b)};
p.Be=function(a,b){return Li.b.Be.call(this,[this.createCaption(a,b),b.d("div","goog-inline-block "+(this.i()+"-dropdown"),"\u00a0")],b)};p.createCaption=function(a,b){return b.d("div","goog-inline-block "+(this.i()+"-caption"),a)};p.i=o("goog-menu-button");function Mi(a,b,c,d){ci.call(this,a,c||Li.c(),d);Je(this,64,!0);b&&this.qe(b);this.Fa=new pf(500);if((Fi||Gi)&&!B("533.17.9"))this.We=!0}w(Mi,ci);p=Mi.prototype;p.oh=!0;p.Pg=!1;p.We=!1;p.uk=!1;p.o=function(){Mi.b.o.call(this);this.l&&Ni(this,this.l,!0);U(this.a(),"haspopup","true")};p.K=function(){Mi.b.K.call(this);if(this.l){this.P(!1);this.l.K();Ni(this,this.l,!1);var a=this.l.a();a&&Tc(a)}};p.g=function(){Mi.b.g.call(this);this.l&&(this.l.j(),delete this.l);delete this.mk;this.Fa.j()};
p.Vb=function(a){Mi.b.Vb.call(this,a);if(this.ha()&&(this.P(!(this.q&64),a),this.l))this.l.Kb=!!(this.q&64)};p.Wb=function(a){Mi.b.Wb.call(this,a);if(this.l&&!this.ha())this.l.Kb=!1};p.Dc=function(){this.setActive(!1);return!0};p.wj=function(a){this.l&&this.l.H()&&!this.oc(a.target)&&this.P(!1)};p.oc=function(a){return a&&Xc(this.a(),a)||this.l&&this.l.oc(a)||!1};
p.vc=function(a){if(a.keyCode==32){if(a.preventDefault(),a.type!="keyup")return!1}else if(a.type!="key")return!1;if(this.l&&this.l.H()){var b=this.l.Gb(a);return a.keyCode==27?(this.P(!1),!0):b}return a.keyCode==40||a.keyCode==38||a.keyCode==32?(this.P(!0),!0):!1};p.hg=function(){this.P(!1)};p.Dj=function(){this.ha()||this.P(!1)};p.uc=function(a){this.We||this.P(!1);Mi.b.uc.call(this,a)};function Oi(a){a.l||a.qe(new Ki(a.k()));return a.l||l}
p.qe=function(a){var b=this.l;if(a!=b&&(b&&(this.P(!1),this.v&&Ni(this,b,!1),delete this.l),a)){this.l=a;$d(a,this);a.h(!1);var c=this.We;(a.Jf=c)&&a.hc(!0);this.v&&Ni(this,a,!0)}return b};p.bb=function(a){Oi(this).ra(a,!0)};p.Uc=function(a,b){Oi(this).Tc(a,b,!0)};p.removeItem=function(a){(a=Oi(this).removeChild(a,!0))&&a.j()};p.td=function(a){(a=fe(Oi(this),a))&&a.j()};p.cd=function(a){return this.l?T(this.l,a):l};p.Ke=function(){return this.l?ce(this.l):0};
p.h=function(a,b){var c=Mi.b.h.call(this,a,b);c&&!this.H()&&this.P(!1);return c};p.u=function(a){Mi.b.u.call(this,a);this.isEnabled()||this.P(!1)};
p.P=function(a,b){Mi.b.P.call(this,a);if(this.l&&!!(this.q&64)==a){if(a)this.l.v||(this.uk?this.l.L(this.a().parentNode):this.l.L()),this.Pc=yd(this.a()),this.nc=Gd(this.a()),Pi(this),We(this.l,-1);else if(this.setActive(!1),this.l.Kb=!1,this.a()&&U(this.a(),"activedescendant",""),this.hf!=l){this.hf=j;var c=this.l.a();c&&Dd(c,"","")}this.l.h(a,!1,b);if(!this.Zc){var c=this.G(),d=a?c.f:c.X;d.call(c,fd(this.k()),"mousedown",this.wj,!0);this.We&&d.call(c,this.l,"blur",this.Dj);d.call(c,this.Fa,rf,this.Gg);
a?this.Fa.start():this.Fa.stop()}}};function Pi(a){if(a.l.v){var b=new Bi(a.mk||a.a(),a.oh?5:7,!a.Pg,a.Pg),c=a.l.a();if(!a.l.H())c.style.visibility="hidden",R(c,!0);if(!a.hf&&a.Pg)a.hf=Ed(c);b.Na(c,a.oh?4:6,l,a.hf);if(!a.l.H())R(c,!1),c.style.visibility="visible"}}
p.Gg=function(){var a=Gd(this.a()),b=yd(this.a());if(!(this.nc==a||(!this.nc||!a?0:this.nc.left==a.left&&this.nc.width==a.width&&this.nc.top==a.top&&this.nc.height==a.height))||!(this.Pc==b||(!this.Pc||!b?0:this.Pc.top==b.top&&this.Pc.right==b.right&&this.Pc.bottom==b.bottom&&this.Pc.left==b.left)))this.nc=a,this.Pc=b,Pi(this)};function Ni(a,b,c){var d=a.G(),c=c?d.f:d.X;c.call(d,b,"action",a.hg);c.call(d,b,"highlight",a.fg);c.call(d,b,"unhighlight",a.ig)}
p.fg=function(a){U(this.a(),"activedescendant",a.target.a().id)};p.ig=function(){T(this.l,this.l.ga)||U(this.a(),"activedescendant","")};se("goog-menu-button",function(){return new Mi(l)});function Qi(a){this.ac=[];Ri(this,a)}w(Qi,Q);p=Qi.prototype;p.ub=l;p.Bi=l;p.Ke=function(){return this.ac.length};p.cd=function(a){return this.ac[a]||l};function Ri(a,b){b&&(tb(b,function(a){Si(this,a,!1)},a),Cb(a.ac,b))}p.bb=function(a){this.Uc(a,this.Ke())};p.Uc=function(a,b){a&&(Si(this,a,!1),Db(this.ac,b,0,a))};p.removeItem=function(a){if(a&&zb(this.ac,a)&&a==this.ub)this.ub=l,this.dispatchEvent("select")};p.td=function(a){this.removeItem(this.cd(a))};p.Me=n("ub");
p.ic=function(a){if(a!=this.ub)Si(this,this.ub,!1),this.ub=a,Si(this,a,!0);this.dispatchEvent("select")};p.Eb=function(){return this.ub?sb(this.ac,this.ub):-1};p.xa=function(a){this.ic(this.cd(a))};p.clear=function(){yb(this.ac);this.ub=l};p.g=function(){Qi.b.g.call(this);delete this.ac;this.ub=l};function Si(a,b,c){b&&(typeof a.Bi=="function"?a.Bi(b,c):typeof b.Xg=="function"&&b.Xg(c))};function $(a,b,c,d){Mi.call(this,a,b,c,d);this.Ee=a;Ti(this);this.lf="listbox"}w($,Mi);p=$.prototype;p.w=l;p.Ee=l;p.o=function(){$.b.o.call(this);Ti(this);Ui(this);U(this.a(),"haspopup","false")};p.F=function(a){$.b.F.call(this,a);(a=this.Tb())?(this.Ee=a,Ti(this)):this.xa(0)};p.g=function(){$.b.g.call(this);if(this.w)this.w.j(),this.w=l;this.Ee=l};p.hg=function(a){this.ic(a.target);$.b.hg.call(this,a);a.stopPropagation();this.dispatchEvent("action")};
p.Kj=function(){var a=this.Me();$.b.ja.call(this,a&&a.s());Ti(this)};p.qe=function(a){var b=$.b.qe.call(this,a);a!=b&&(this.w&&this.w.clear(),a&&(this.w?be(a,function(a){Vi(a);this.w.bb(a)},this):Wi(this,a)));return b};p.bb=function(a){Vi(a);$.b.bb.call(this,a);this.w?this.w.bb(a):Wi(this,Oi(this))};p.Uc=function(a,b){Vi(a);$.b.Uc.call(this,a,b);this.w?this.w.Uc(a,b):Wi(this,Oi(this))};p.removeItem=function(a){$.b.removeItem.call(this,a);this.w&&this.w.removeItem(a)};
p.td=function(a){$.b.td.call(this,a);this.w&&this.w.td(a)};p.ic=function(a){this.w&&this.w.ic(a)};p.xa=function(a){this.w&&this.ic(this.w.cd(a))};p.ja=function(a){if(a!=l&&this.w)for(var b=0,c;c=this.w.cd(b);b++)if(c&&typeof c.s=="function"&&c.s()==a){this.ic(c);return}this.ic(l)};p.Me=function(){return this.w?this.w.Me():l};p.Eb=function(){return this.w?this.w.Eb():-1};function Wi(a,b){a.w=new Qi;b&&be(b,function(a){Vi(a);this.w.bb(a)},a);Ui(a)}function Ui(a){a.w&&a.G().f(a.w,"select",a.Kj)}
function Ti(a){var b=a.Me();a.t(b?b.Tb():a.Ee)}function Vi(a){a.lf=a instanceof ti?"option":"separator"}p.P=function(a,b){$.b.P.call(this,a,b);this.q&64&&We(Oi(this),this.Eb())};se("goog-select",function(){return new $(l)});function Xi(){}w(Xi,oe);u(Xi);Xi.prototype.d=function(a){var b=a.k().d("span",this.tc(a).join(" "));Yi(this,b,a.Rb);return b};Xi.prototype.n=function(a,b){var b=Xi.b.n.call(this,a,b),c=Bc(b),d=Zi;xb(c,$i(this,aj))?d=aj:xb(c,$i(this,bj))?d=bj:xb(c,$i(this,Zi))&&(d=Zi);a.Rb=d;U(b,"checked",d==aj?"mixed":d==bj?"true":"false");return b};Xi.prototype.Ka=o("checkbox");
function Yi(a,b,c){if(b){var d=$i(a,c);xb(Bc(b),d)||(hb(cj,function(a){a=$i(this,a);Ec(b,a,a==d)},a),U(b,"checked",c==aj?"mixed":c==bj?"true":"false"))}}Xi.prototype.i=o("goog-checkbox");function $i(a,b){var c=a.i();if(b==bj)return c+"-checked";else if(b==Zi)return c+"-unchecked";else if(b==aj)return c+"-undetermined";e(Error("Invalid checkbox state: "+b))};function dj(a,b,c){c=c||Xi.c();V.call(this,l,c,b);this.Rb=ga(a)?a:Zi}w(dj,V);var bj=!0,Zi=!1,aj=l,cj={Tk:bj,Vk:Zi,Wk:aj};p=dj.prototype;p.tb=l;p.sb=function(){return this.Rb==bj};p.Kc=function(a){if(a!=this.Rb)this.Rb=a,Yi(this.m,this.a(),this.Rb)};p.toggle=function(){this.Kc(this.Rb?Zi:bj)};
p.o=function(){dj.b.o.call(this);if(this.Oe){var a=this.G();this.tb&&a.f(this.tb,D,this.dg).f(this.tb,"mouseover",this.Qe).f(this.tb,"mouseout",this.Pe).f(this.tb,"mousedown",this.Vb).f(this.tb,"mouseup",this.Wb);a.f(this.a(),D,this.dg)}if(this.tb){if(!this.tb.id)this.tb.id=Yd(this)+".lbl";U(this.a(),"labelledby",this.tb.id)}};p.u=function(a){dj.b.u.call(this,a);if(a=this.a())a.tabIndex=this.isEnabled()?0:-1};
p.dg=function(a){a.stopPropagation();var b=this.Rb?"uncheck":"check";this.isEnabled()&&this.dispatchEvent(b)&&(a.preventDefault(),this.toggle(),this.dispatchEvent("change"))};p.vc=function(a){a.keyCode==32&&this.dg(a);return!1};se("goog-checkbox",function(){return new dj});function ej(a,b){this.Bh=a;this.hi=b}function fj(a,b,c,d,g,h){this.Dd=a;this.label=b;this.start=c-1;this.pb=d;this.Zk=g;this.qi=h;this.setStart(c);this.Hd=[]}fj.prototype.setStart=function(a){this.start=a-1;gj(this)};function gj(a){a.end=Math.min(a.start+a.pb-1,512)}function hj(a,b){return a.start-b.start}function ij(a,b){return a.pb-b.pb}
function jj(a,b){this.element=N(a);this.Ek=N(b);this.J=j;this.ma=[];this.rows=[];this.Lf=[];this.Wf=[];this.Fe=[];this.Ad=this.ab=this.Bb=j;this.Qg=new Ai(this.element);this.Ig=j;this.lc=[];this.Hg=!1}p=jj.prototype;p.kc=function(a){this.element.style.height=a+"px";a=this.Qg;a.Vc=Gd(a.Wc);a.je=a.gl?xi(a,a.Vc.Ba()):a.Vc};p.jb=ba("J");function kj(a){for(var b=0;b<a.rows.length;++b)a.rows[b].style.display="none"}
p.update=function(){if(this.rows.length==0)for(var a=0;a<64;++a){var b=P("div");b.className="patch_row";this.rows.push(b);var c=P("table");c.className="patcher_table";var d=P("tr");d.id="str_"+a;for(var g=0;g<8;++g){var h=P("td");d.appendChild(h);this.Lf.push(h)}c.appendChild(d);b.appendChild(c);c=P("table");c.className="content_table";d=P("tr");for(g=0;g<8;++g)h=P("td"),h.className="patcher_title",h.innerHTML=1+a*8+g,d.appendChild(h);c.appendChild(d);this.Wf.push(c);b.appendChild(c);this.element.appendChild(b)}for(a=
0;a<this.rows.length;++a)this.rows[a].style.display="block";this.Ic()};
p.Ic=function(){this.ma.sort(hj);var a=[];a.push(Fb());for(var b=0;b<this.Fe.length;++b)qc(this.Fe[b]);this.Fe=[];for(b=0;b<this.ma.length;++b){var c=this.ma[b],d=!1,g;for(g=0;g<a.length;++g){var h;for(h=c.start;h<=c.end;++h)if(a[g][h])break;if(h>c.end){d=!0;break}}d||a.push(Fb());for(h=c.start;h<=c.end;++h)a[g][h]=c;g=c;for(h=0;h<g.Hd.length;++h)qc(g.Hd[h]);g.Hd=[]}var b=512,c=-1,d=0,i=!0,k=0;for(h=0;h<512;++h){var m=!1;for(g=0;g<a.length;++g)if(a[g][h]){m=!0;break}m||(k++,h<b&&(b=h),h>c&&(c=h));
m&&!i&&k>d&&(d=k,k=0);i=m}k>d&&(d=k);b==512?g="No slots free":(b++,c++,g="Free slots: first: "+b+", last: "+c+", max contiguous: "+d);this.Ek.innerHTML=g;g=(1+Math.max(1,a.length))*14;for(h=0;h<this.rows.length;++h)this.rows[h].style.height=g+"px";for(h=0;h<this.Lf.length;++h)this.Lf[h].style.height=g-1+"px";this.Qf=g;for(h=0;h<this.Wf.length;++h){b=this.Wf[h];c=h*8;d=Uc(b);d=Wc(d);for(g=0;g<a.length;){if(d==j)d=P("tr"),b.appendChild(d);else for(i=Uc(d);i!=j;)Sc(i),i=Wc(i);lj(this,d,a[g],c);d=Wc(d);
g++}for(;d!=j;){for(i=Uc(d);i!=j;)Sc(i),i.colSpan=1,i=Wc(i);d=Wc(d)}}};
function lj(a,b,c,d){for(var g=d,h=d+8,d=Uc(b);g<h;){d==j&&(d=P("td"),b.appendChild(d));d.colSpan=1;d.className="";if(c[g]){var i=c[g];d.className="patcher_occupied_cell";var k=Math.min(i.end-g+1,h-g);d.colSpan=k;g+=k;k=P("div");k.innerHTML=i.label;i.start+i.pb>512?(k.className="patcher_overflow_device",k.title="Device overflows the 512 slot limit"):k.className="patcher_device";i.Hd.push(k);d.appendChild(k);F(k,D,function(a){return function(b){mj(this,a,b)}}(i),!1,a);var m=new ui(k);m.ke=a.element;
m.kg=Math.pow(8,2);F(m,"start",function(a,b){return function(c){for(var d=b.Hd,g=0;g<d.length;++g)a!=d[g]&&Tc(d[g]);for(d=Uc(this.element);!xb(Bc(d),"patch_row");)d=Wc(d);d=Md(d);this.Rf=d.width/8-1;this.element.appendChild(a);a.className="draggable_device";Hd(a,0.5);a.style.width=this.Rf+"px";var g=Md(a),h=Cd(this.element);a.style.top=this.element.scrollTop+c.clientY-h.y-g.height/2+"px";a.style.left=c.clientX-h.x-g.width/2+"px";c.Md.$d=new yc(0,0,d.width-g.width-1,64*this.Qf-g.height-1)||new yc(NaN,
NaN,NaN,NaN);this.Qg.u(!0)}}(k,i),!1,a);F(m,"end",function(a,b){return function(c){Hd(a,1);this.Qg.u(!1);var d=Md(a),g=Math.max(0,c.Md.cb),c=Math.max(0,c.Md.eb),g=Math.min(g+d.width/2,this.Rf*8-1),d=Math.min(c+d.height/2,this.Qf*64-1),d=Math.floor(g/this.Rf)+8*Math.floor(d/this.Qf);Tc(a);nj(this,b,d+1)}}(k,i),!1,a);m.ke=a.element;a.Fe.push(m)}else g++;d=Wc(d)}for(;d!=j;)a=Wc(d),Tc(d),d=a}
function mj(a,b,c){if(c.target.parentNode){if(a.Bb==j){a.Bb=new Bh(l,!0);Z(a.Bb,Lh);F(a.Bb,Kh,a.wk,!1,a);var c=P("table"),d=P("tr"),g=P("td");g.innerHTML="Start Address";d.appendChild(g);g=P("td");a.Ad=P("input");g.appendChild(a.Ad);d.appendChild(g);c.appendChild(d);d=P("tr");g=P("td");g.innerHTML="Personality";d.appendChild(g);g=P("td");g.noWrap=!0;d.appendChild(g);a.rd=new $;a.rd.L(g);a.sd=P("img");a.sd.src="/loader-mini.gif";a.sd.style.display="none";a.sd.style.verticalAlign="middle";g.appendChild(a.sd);
a.ri=d;c.appendChild(d);F(a.rd,"action",a.yk,!1,a);d=P("tr");g=P("td");g.innerHTML="Identify";d.appendChild(g);g=P("td");g.noWrap=!0;var h=new dj;h.L(g);F(h,"change",a.Jk,!1,a);a.Nj=h;a.hd=P("img");a.hd.src="/loader-mini.gif";a.hd.style.display="none";a.hd.style.verticalAlign="middle";g.appendChild(a.hd);d.appendChild(g);c.appendChild(d);a.Bb.B().appendChild(c)}a.ab=b;Yg(W.c(),a.J,b.Dd,function(b){oj(a,b)});a.ri.style.display="none";b=Y.c();b.Lb();b.h(!0)}}
function oj(a,b){var c=dh(W.c(),b);c!=j&&a.Nj.Kc(c.identify_mode?bj:Zi);a.ab.qi==j||a.ab.qi<2?pj(a):Zg(W.c(),a.J,a.ab.Dd,function(b){b=dh(W.c(),b);if(b!=j){for(var c=a.rd.Ke()-1;c>=0;--c)a.rd.td(c);a.Ig=[];personalities=b.personalities;for(c=0;c<personalities.length;++c)if(personalities[c].footprint>0){var h=new ti(personalities[c].name+" ("+personalities[c].footprint+")");a.rd.bb(h);b.selected==c+1&&a.rd.ic(h);a.Ig.push(personalities[c])}a.ri.style.display="table-row"}pj(a)})}
function pj(a){Y.c().h(!1);a.Ad.value=a.ab.start+1;a.Bb.M(a.ab.label);a.Bb.h(!0);a.Ad.focus()}p.wk=function(a){a.key==Nh||this.Ad==j||this.ab==j||(a=parseInt(this.Ad.value),isNaN(a)||a<1||a>512?alert("Must be between 1 and 512"):nj(this,this.ab,a))};function nj(a,b,c){Vg(W.c(),a.J,b.Dd,"dmx_address","","address="+c,function(d){ch(W.c(),d)!=j&&(Y.c().h(!1),b.setStart(c));a.Ic()});var d=Y.c();d.Lb();d.h(!0)}
p.yk=function(a){var b=W.c();this.sd.style.display="inline";var a=this.Ig[a.target.Eb()],c=this,d=a.footprint;Vg(b,this.J,this.ab.Dd,"personality","","int="+a.index,function(a){c.sd.style.display="none";ch(W.c(),a)==j?c.Bb.h(!1):(a=c.ab,a.pb=d,gj(a),c.Ic())})};p.Jk=function(a){var b=W.c();this.hd.style.display="inline";var c=this;Vg(b,this.J,this.ab.Dd,"identify","","bool="+(a.target.sb()?"1":"0"),function(a){c.hd.style.display="none";ch(W.c(),a)==j&&c.Bb.h(!1)})};
function qj(a){var b=a.lc[0];Vg(W.c(),a.J,b.Bh.Dd,"dmx_address","","address="+b.hi,function(b){var b=dh(W.c(),b),d=a.lc.shift();b==j?a.Hg=!0:d.Bh.setStart(d.hi);a.lc.length?qj(a):(b=Y.c(),a.Hg?(b.M("Failed to Set Start Address"),Z(b,eh),b.t("Some devices failed to change their DMX start address,  click refresh to fetch the current state."),b.h(!0)):b.h(!1),a.Ic())})};function rj(){}w(rj,Li);u(rj);rj.prototype.i=o("goog-toolbar-menu-button");function sj(a,b,c,d){Mi.call(this,a,b,c||rj.c(),d)}w(sj,Mi);se("goog-toolbar-menu-button",function(){return new sj(l)});function tj(a){$h.call(this,a);a=new ii;a.n(N("patcher_toolbar"));var b=ae(a,"autoPatchButton");b.za("Automatically Patch Devices");F(b,"action",function(){this.rh()},!1,this);a=ae(a,"patcherRefreshButton");a.za("Refresh Devices");F(a,"action",function(){uj(this)},!1,this);this.Cc=new jj("patcher_div","patcher_status");this.ee=[];this.ma=[];this.yc=P("div");this.yc.style.width="100%";this.yc.style.textAlign="center";this.yc.innerHTML='<img src="/loader.gif"><br>Loading...</div>';this.yc.style.marginTop=
"10px";Qc(N("patcher_div"),this.yc)}w(tj,$h);p=tj.prototype;p.jb=function(a){tj.b.jb.call(this,a);this.Cc.jb(a);this.ee=[];this.Cc.ma=[]};p.kc=function(a){tj.b.kc.call(this,a);this.Cc.kc(a.height-34-27-16-5)};p.setActive=function(a){tj.b.setActive.call(this,a);this.ha()&&uj(this)};p.ve=function(a){if(dh(W.c(),a)!=j){this.ee=[];this.ma=[];for(var a=sg(a.target).uids,b=0;b<a.length;++b)this.ee.push(new ji(a[b]));this.ha()&&vj(this)}};
function vj(a){if(a.ee.length){var b=W.c(),c=a.ee.shift();Ng.info("Fetching device "+ki(c));Xg(b,a.J,ki(c),function(b){if(a.ha()){b=dh(W.c(),b);if(b!=j){var g=c.Sc;g?g+=" ["+ki(c)+"]":g=ki(c);b.footprint>0&&a.ma.push(new fj(ki(c),g,b.address,b.footprint,b.personality,b.personality_count))}vj(a)}})}else a.Cc.ma=a.ma,a.yc.style.display="none",a.Cc.update()}function uj(a){kj(a.Cc);a.yc.style.display="block";Wg(W.c(),a.J,function(b){a.ve(b)})}
p.rh=function(){var a=Y.c();a.M("Confirm Auto Patch");Z(a,Mh);a.t("This will change the start addresses of all devices. Are you sure you want to continue?");F(a,Kh,this.cj,!1,this);a.h(!0)};
p.cj=function(a){var b=Y.c();mc(b,Kh,this.rh,!1,this);if(a.key=="yes"){a=this.Cc;a.lc=[];for(var c=b=0;c<a.ma.length;++c)b+=a.ma[c].pb;a.ma.sort(ij);if(b>512)for(c=a.ma.slice(0);c.length;){var d=[],b=0,g;for(Ng.info("new round");c.length&&b<512;){g=c.pop();var h=512-b;Ng.info(g.label+" : "+g.pb);g.pb>h?(d.unshift(g),Ng.info("deferring "+g.label)):(a.lc.push(new ej(g,b+1)),Ng.info("set "+g.label+" to "+b),b+=g.pb)}c=c.concat(d)}else for(c=b=0;c<a.ma.length;++c)a.lc.push(new ej(a.ma[c],b+1)),b+=a.ma[c].pb;
if(a.lc.length)b=Y.c(),b.Lb(),b.h(!0),a.Hg=!1,qj(a);return!1}};function wj(a){this.zb=a;this.Fd=[];this.enabled=this.jc=!1;this.J=j}wj.prototype.ya=function(a,b){this.enabled=a;this.J=b;if(this.enabled){if(!this.jc){for(var c=0;c<512;++c){var d=P("div");d.title="Channel "+(c+1);var g=P("div");g.innerHTML=c+1;var h=P("span");h.innerHTML="&nbsp";d.appendChild(g);d.appendChild(h);this.zb.appendChild(d);this.Fd.push(h)}this.jc=!0}xj(this)}};function xj(a){a.enabled&&ah(W.c(),a.J,function(b){yj(a,b.dmx)})}
function yj(a,b){for(var c=Math.min(512,b.length),d=0;d<c;++d)a.oe(d,b[d]);for(d=c;d<512;++d)zj(a,d);a.enabled&&sf(function(){xj(a)},1E3)}wj.prototype.oe=function(a,b){var c=this.Fd[a];if(c!=j){c.innerHTML=b;var d=255-b;c.style.background="rgb("+d+","+d+","+d+")";c.style.color=b>90?"#ffffff":"#000000"}};function zj(a,b){var c=a.Fd[b];if(c!=j)c.innerHTML="&nbsp;",c.style.background="#ffffff"};function Aj(a){$h.call(this,a);this.kj=new wj(N("monitor_values"));this.jc=!1}w(Aj,$h);Aj.prototype.setActive=function(a){Aj.b.setActive.call(this,a);if(this.ha()&&!this.jc){var b=new ii;b.n(N("monitor_toolbar"));b=ae(b,"monitor_view_button");b.za("Change the DMX Monitor layout");F(b,"action",this.Rk,!1,this);this.jc=!0}this.kj.ya(a,this.J)};Aj.prototype.Rk=function(a){a.target.Tb()=="Full"?N("monitor_values").className="monitor_full":N("monitor_values").className="monitor_compact"};function Bj(a,b,c,d,g){function h(a){if(a)a.tabIndex=0,F(a,D,i.ef,!1,i),F(a,Hb,i.ff,!1,i)}this.p=g||J();this.Db=this.p.a(a)||l;this.Nd=this.p.a(d||l);this.$=(this.vg=ka(b)?b:l)||!b?l:this.p.a(b);this.Ta=c==!0;var i=this;h(this.Db);h(this.Nd);this.vd(this.Ta)}w(Bj,Q);p=Bj.prototype;p.g=function(){this.Db&&qc(this.Db);this.Nd&&qc(this.Nd);Bj.b.g.call(this)};p.B=n("$");p.toggle=function(){this.vd(!this.Ta)};
p.vd=function(a){if(this.$)R(this.$,a);else if(a&&this.vg)this.$=this.vg();this.Nd?(R(this.Db,!a),R(this.Nd,a)):(Cj(this,a),this.Db&&U(this.Db,"expanded",a));this.Ta=a;this.dispatchEvent(new Dj("toggle",this,this.Ta))};function Cj(a,b){a.Db&&(Ec(a.Db,"goog-zippy-expanded",b),Ec(a.Db,"goog-zippy-collapsed",!b))}p.ff=function(a){if(a.keyCode==13||a.keyCode==32)this.toggle(),a.preventDefault(),a.stopPropagation()};p.ef=function(){this.toggle()};function Dj(a,b,c){E.call(this,a,b);this.qj=c}w(Dj,E);function Ej(a,b,c,d){(!ha(a)||!ha(b))&&e(Error("Start and end parameters must be arrays"));a.length!=b.length&&e(Error("Start and end points must be the same length"));this.zd=a;this.oj=b;this.duration=c;this.mh=d;this.coords=[]}w(Ej,Q);var lb={},Fj=l;function Gj(){Hj();var a=ta(),b;for(b in lb)Ij(lb[b],a);Fj=kb()?l:qf.setTimeout(Gj,20)}function Hj(){Fj&&(qf.clearTimeout(Fj),Fj=l)}function Jj(a){a=ma(a);delete lb[a];kb()&&Hj()}p=Ej.prototype;p.q=0;p.Hh=0;p.Ma=0;p.startTime=l;p.Eh=l;p.sg=l;
p.play=function(a){if(a||this.q==0)this.Ma=0,this.coords=this.zd;else if(this.q==1)return!1;Jj(this);this.startTime=a=ta();this.q==-1&&(this.startTime-=this.duration*this.Ma);this.Eh=this.startTime+this.duration;this.sg=this.startTime;this.Ma||this.Bc();Kj(this,"play");this.q==-1&&this.Eg();this.q=1;var b=ma(this);b in lb||(lb[b]=this);Fj||(Fj=qf.setTimeout(Gj,20));Ij(this,a);return!0};p.stop=function(a){Jj(this);this.q=0;if(a)this.Ma=1;Lj(this,this.Ma);this.Fg();this.df()};
p.g=function(){this.q!=0&&this.stop(!1);this.Cg();Ej.b.g.call(this)};function Ij(a,b){a.Ma=(b-a.startTime)/(a.Eh-a.startTime);if(a.Ma>=1)a.Ma=1;a.Hh=1E3/(b-a.sg);a.sg=b;Lj(a,a.Ma);a.Ma==1?(a.q=0,Jj(a),Kj(a,"finish"),a.df()):a.q==1&&a.Bg()}function Lj(a,b){ka(a.mh)&&(b=a.mh(b));a.coords=Array(a.zd.length);for(var c=0;c<a.zd.length;c++)a.coords[c]=(a.oj[c]-a.zd[c])*b+a.zd[c]}p.Bg=function(){Kj(this,"animate")};p.Bc=function(){Kj(this,"begin")};p.Cg=function(){Kj(this,"destroy")};
p.df=function(){Kj(this,"end")};p.Eg=function(){Kj(this,"resume")};p.Fg=function(){Kj(this,"stop")};function Kj(a,b){a.dispatchEvent(new Mj(b,a))}function Mj(a,b){E.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.hl=b.coords[2];this.duration=b.duration;this.Ma=b.Ma;this.al=b.Hh;this.state=b.q;this.Xk=b}w(Mj,E);function Nj(a,b,c){var d=O("div",{style:"overflow:hidden"}),b=N(b);b.parentNode.replaceChild(d,b);d.appendChild(b);this.Ge=d;this.nb=l;Bj.call(this,a,b,c);a=this.Ta;this.Ge.style.display=a?"":"none";Cj(this,a)}w(Nj,Bj);p=Nj.prototype;p.bj=500;p.aj=function(a){return 1-Math.pow(1-a,3)};
p.vd=function(a){if(this.Ta!=a||this.nb){if(this.Ge.style.display=="none")this.Ge.style.display="";var b=this.B().offsetHeight,c=0;this.nb?(a=this.Ta,qc(this.nb),this.nb.stop(!1),c=parseInt(this.B().style.marginTop,10),c=b-Math.abs(c)):c=a?0:b;Cj(this,a);this.nb=new Ej([0,c],[0,a?b:0],this.bj,this.aj);F(this.nb,["begin","animate","end"],this.ak,!1,this);F(this.nb,"end",ra(this.bk,this,a));this.nb.play(!1)}};p.ak=function(a){var b=this.B();b.style.marginTop=a.y-b.offsetHeight+"px"};
p.bk=function(a){if(a)this.B().style.marginTop="0";qc(this.nb);this.Ta=a;this.nb=l;if(!a)this.Ge.style.display="none";this.dispatchEvent(new Dj("toggle",this,a))};function Oj(a,b){S.call(this,b);this.data=a}w(Oj,S);p=Oj.prototype;p.R=o(!1);p.d=function(){var a=this.p.d("tr",{});a.style.cursor="pointer";var b=O("td",{},"");this.p.appendChild(a,b);this.Ja=new dj;this.Ja.L(b);this.p.appendChild(a,O("td",{},this.data.device));this.p.appendChild(a,O("td",{},this.data.is_output?"Output":"Input"));this.p.appendChild(a,O("td",{},this.data.description));this.e=a};p.o=function(){Oj.b.o.call(this);F(this.a(),D,function(){this.Ja.toggle()},!1,this)};
p.K=function(){Oj.b.K.call(this);this.Ja.K();qc(this.a())};p.j=function(){this.Jh()||(Oj.b.j.call(this),this.Ja.j())};p.fe=function(){return this.data.id};p.xc=function(){return this.Ja.sb()};function Pj(a){S.call(this,a)}w(Pj,S);p=Pj.prototype;p.d=function(){this.F(this.p.createElement("tbody"))};p.F=function(a){Pj.b.F.call(this,a)};p.R=function(a){return a.tagName=="TBODY"};function Qj(a){for(var b=[],c=ce(a),d=0;d<c;++d){var g=T(a,d);g.xc()&&b.push(g.fe())}return b}
p.Mg=function(){for(;ce(this);)fe(this,0).j()};p.update=function(a){var b=this;Qg(W.c(),a,function(a){var d;d=W.c();rg(a.target)!=200?(d.Mb(String(a.target.va)+" : "+tg(a.target)),d=!1):d=!0;if(d){b.Mg();a=sg(a.target);d=a.length;for(var g=0;g<d;++g)b.ra(new Oj(a[g]),!0)}})};function Rj(a,b){S.call(this,b);this.data=a}w(Rj,S);p=Rj.prototype;p.R=o(!1);
p.d=function(){var a=this.p.d("tr",{});a.style.cursor="pointer";var b=O("td",{},"");this.Ja=new dj;this.Ja.Kc(!0);this.Ja.L(b);this.p.appendChild(a,b);this.p.appendChild(a,O("td",{},this.data.device));this.p.appendChild(a,O("td",{},this.data.description));b=this.data.priority;b==j?this.p.appendChild(a,O("td",{},"Not supported")):(this.La=P("input"),this.La.value=b.value,this.La.maxLength=3,this.La.size=3,b.current_mode==j?b=O("td",{},this.La):(this.ia=new $,this.ia.bb(new ti("Inherit")),this.ia.bb(new ti("Override")),
this.ia.xa(b.current_mode=="inherit"?0:1),this.ui(),b=P("td"),this.ia.L(b),this.p.appendChild(b,this.La)),this.p.appendChild(a,b));this.e=a};p.o=function(){Rj.b.o.call(this);this.ia!=j&&(F(this.ia,"action",this.ui,!1,this),F(this.ia.a(),D,function(a){a.stopPropagation()}));this.La!=j&&F(this.La,D,function(a){a.stopPropagation()});F(this.a(),D,function(){this.Ja.toggle()},!1,this)};
p.K=function(){Oj.b.K.call(this);this.Ja.K();this.La&&qc(this.La);this.ia&&(qc(this.ia.a()),qc(this.ia),this.ia.K());qc(this.a())};p.j=function(){if(!this.Jh()){Rj.b.j.call(this);this.Ja.j();this.Ja=j;if(this.ia)this.ia.j(),this.ia=j;this.La=j}};p.fe=function(){return this.data.id};p.xc=function(){return this.Ja.sb()};p.Lg=function(){if(this.La)return this.La.value};p.ui=function(){this.La.style.visibility=this.ia.Eb()?"visible":"hidden"};function Sj(a){S.call(this,a)}w(Sj,S);p=Sj.prototype;p.d=function(){this.F(this.p.createElement("tbody"))};
p.F=function(a){Sj.b.F.call(this,a)};p.R=function(a){return a.tagName=="TBODY"};p.Mg=function(){for(;ce(this);)fe(this,0).j()};p.update=function(a){this.Mg();for(var b=a.length,c=0;c<b;++c)this.ra(new Rj(a[c]),!0)};function Tj(a,b){$h.call(this,a);this.oi=b;this.Rg=W.c();var c=N("universe_save_button");we(c);F(c,D,function(){Uj(this,!1)},!1,this);this.xg=we(N("universe_merge_mode"));this.Ue=new Sj;this.Ue.n(N("input_ports"));this.jf=new Sj;this.jf.n(N("output_ports"));new Nj("additional_ports_expander","additional_ports");this.mc=new Pj;this.mc.n(N("universe_available_ports"));F(this.Rg,"universe_change",this.Mk,!1,this)}w(Tj,$h);p=Tj.prototype;p.jb=function(a){Tj.b.jb.call(this,a)};
p.kc=function(a){Tj.b.kc.call(this,a)};p.setActive=function(a){Tj.b.setActive.call(this,a);this.ha()&&Vj(this)};function Vj(a){Pg(a.Rg,a.J);a.mc.update(a.J)}p.Mk=function(a){this.J!=a.Oc.id?Ng.info("Mismatched universe, expected "+this.J+", got "+a.Oc.id):(N("universe_id").innerHTML=a.Oc.id,N("universe_name").value=a.Oc.name,a.Oc.merge_mode=="HTP"?this.xg.xa(0):this.xg.xa(1),this.Ue.update(a.Oc.input_ports),this.jf.update(a.Oc.output_ports))};
function Wj(a,b){var c=a.Lg();if(c!=j){var d={};d.id=a.fe();d.Lg=c;c=a.ia?a.ia.s():j;if(c!=j)d.mode=c=="Inherit"?0:1;b.push(d)}}
function Uj(a,b){for(var c=Y.c(),d=[],g=[],h=!1,i=ce(a.Ue),k=0;k<i;++k){var m=T(a.Ue,k);m.xc()?(h=!0,Wj(m,d)):g.push(m.fe())}i=ce(a.jf);for(k=0;k<i;++k)m=T(a.jf,k),m.xc()?(h=!0,Wj(m,d)):g.push(m.fe());i=Qj(a.mc);if(!h&&i.length==0)if(b)a.Ri=!0;else{F(c,Kh,a.yi,!1,a);c.M("Confirm Universe Removal");Z(c,Mh);c.t("Removing all ports will cause this universe to be deleted. Is this ok?");c.h(!0);return}else a.Ri=!1;h=N("universe_name").value;h==""?(c.M("Empty Universe Name"),Z(c,eh),c.t("The universe name cannot be empty")):
($g(a.Rg,a.J,h,a.xg.s(),d,g,i,function(b){var c=Y.c();rg(b.target)==200?(c.h(!1),a.Ri&&a.oi&&a.oi(),Vj(a)):(c.M("Failed to Save Settings"),c.t(String(b.target.va)+" : "+tg(b.target)),Z(c,eh),c.h(!0))}),c=Y.c(),c.Lb());c.h(!0)}p.yi=function(a){var b=Y.c();mc(b,Kh,this.yi,!1,this);a.key=="yes"&&(b.h(!1),Uj(this,!0))};function Xj(a){this.element=N(a)}Xj.prototype.Qa=function(){this.element.style.display="block"};Xj.prototype.Rc=function(){this.element.style.display="none"};Xj.prototype.Lb=function(){this.element.innerHTML='<div align="center"><img src="/loader.gif"></div>'};function Yj(a,b,c,d){this.p=c||J();this.ta=a;this.Wa=[];this.Gk=b?b:Zj;this.Ni=!!d;this.ta.className="goog-tabpane";a=[];for(b=Uc(this.ta);b;)a.push(b),b=Wc(b);this.Ca=this.p.d("ul",{className:"goog-tabpane-tabs",tabIndex:"0"});this.$=this.p.d("div","goog-tabpane-cont");this.ta.appendChild(this.$);switch(this.Gk){case Zj:this.ta.insertBefore(this.Ca,this.$);this.ta.insertBefore($j(this),this.$);I(this.ta,"goog-tabpane-top");break;case 1:this.ta.appendChild(this.Ca);this.ta.appendChild($j(this));I(this.ta,
"goog-tabpane-bottom");break;case 2:this.ta.insertBefore(this.Ca,this.$);I(this.ta,"goog-tabpane-left");break;case 3:this.ta.insertBefore(this.Ca,this.$);I(this.ta,"goog-tabpane-right");break;default:e(Error("Invalid tab location"))}this.Ca.tabIndex=0;F(this.Ca,this.Ni?"mousedown":D,this.ef,!1,this);F(this.Ca,Hb,this.ff,!1,this);for(c=0;b=a[c];c++)ak(this,new bk(b))}w(Yj,Q);var Zj=0;
function $j(a){Id(".goog-tabpane-clear { clear: both; height: 0px; overflow: hidden }");return a.p.d("div","goog-tabpane-clear")}p=Yj.prototype;p.g=function(){Yj.b.g.call(this);mc(this.Ca,this.Ni?"mousedown":D,this.ef,!1,this);mc(this.Ca,Hb,this.ff,!1,this);delete this.ta;this.$=this.Ca=l};
function ak(a,b){if(b.D&&b.D!=a&&b.D instanceof Yj){var c=b.D,d=b;ja(d)&&(d=c.Wa[d]);c.Wa.splice(d.jd,1);d.se(l);Tc(d.bd);Tc(d.$);for(var g=0;d=c.Wa[g];g++)d.se(c,g)}c=a.Wa.length;ga(j)&&j!=c?(c=j,a.Wa.splice(c,0,b),a.Ca.insertBefore(b.bd,a.Ca.childNodes[c])):(a.Wa.push(b),a.Ca.appendChild(b.bd));b.se(a,c);if(!a.Xa)a.Xa=b,a.dispatchEvent(new ck("change",a,a.Xa));a.$.appendChild(b.$);dk(b,b==a.Xa);for(d=c+1;c=a.Wa[d];d++)c.jd=d}
p.xa=function(a){if(a>=0&&a<this.Wa.length&&(a=this.Wa[a],a.isEnabled()&&(!this.Xa||a!=this.Xa)))dk(this.Xa,!1),dk(a,!0),this.Xa=a,this.dispatchEvent(new ck("change",this,this.Xa))};p.Eb=function(){return this.Xa?this.Xa.jd:-1};p.B=function(){return this.$||l};p.a=function(){return this.ta||l};p.ef=function(a){for(var b=a.target;b!=this.Ca;){if(b.tagName=="LI"){var c;for(c=0;b=b.previousSibling;c++);this.xa(c);break}b=b.parentNode}a.preventDefault()};
p.ff=function(a){if(!a.altKey&&!a.metaKey&&!a.ctrlKey)switch(a.keyCode){case 37:a=this.Xa.jd-1;this.xa(a<0?this.Wa.length-1:a);break;case 39:a=this.Xa.jd+1;this.xa(a>=this.Wa.length?0:a);break;case 36:this.xa(0);break;case 35:this.xa(this.Wa.length-1)}};function bk(a,b,c){var d,g;if(v(a)&&!ga(b))d=a;else if(b)d=b,g=a;else if(a){if(b=Uc(a))d=cd(b),b.parentNode.removeChild(b);g=a}this.p=c||J();this.$=g||this.p.d("div");this.bd=this.p.d("li",l,d);this.jd=this.D=l;this.S=!0}p=bk.prototype;
p.M=function(a){Yc(this.bd,a)};p.B=n("$");p.getParent=n("D");p.u=function(a){this.S=a;this.bd.className=a?"goog-tabpane-tab":"goog-tabpane-tab-disabled"};p.isEnabled=n("S");function dk(a,b){if(a.isEnabled())a.$.style.display=b?"":"none",a.bd.className=b?"goog-tabpane-tab-selected":"goog-tabpane-tab"}p.se=function(a,b){this.D=a;this.jd=ga(b)?b:l};function ck(a,b,c){E.call(this,a,b);this.page=c}w(ck,E);function ek(a,b,c){ti.call(this,a,b,c);this.Wg(!0)}w(ek,ti);ek.prototype.Dc=function(){return this.dispatchEvent("action")};se("goog-option",function(){return new ek(l)});function fk(a,b){var c=b.type,d=b.value,g=b.id;if(c=="hidden"){var h=P("input");h.id=g;h.type="hidden";h.value=d;a.appendChild(h)}else{h=P("tr");a.appendChild(h);var i=P("td");i.innerHTML=b.description;h.appendChild(i);i=P("td");h.appendChild(i);if(g)if(c=="string"||c=="uint"||c=="hidden"){h=P("input");h.value=d;h.name=g;if(c=="hidden")h.type="hidden";i.appendChild(h);b.button&&(new gk(b.button)).L(i)}else{if(c=="bool")c=new dj,c.Kc(d==1);else{c=new $;g=d.length;for(h=0;h<g;++h)c.bb(new ek(d[h].label));
b.selected_offset!=j&&c.xa(b.selected_offset)}c.L(i);b.object=c}else i.innerHTML=d}};function hk(a,b){this.element=N(a);this.Ld=this.Ab=j;this.Xf=[];this.mb=[];this.wa=j;this.Pd=ae(b,"showAllSectionsButton");this.Pd.za("Show All Attributes");this.Pd.u(!1);F(this.Pd,"action",function(){for(var a=0;a<this.mb.length;++a)this.mb[a].Ta||(this.mb[a].vd(!0),this.wa[a].loaded||ik(this,a))},!1,this);this.Kd=ae(b,"hideAllSectionsButton");this.Kd.za("Hide All Attributes");this.Kd.u(!1);F(this.Kd,"action",function(){for(var a=0;a<this.mb.length;++a)this.mb[a].Ta&&this.mb[a].vd(!1)},!1,this);
var c=ae(b,"refreshButton");c.za("Configure how often attributes are refreshed");F(c,"action",this.rk,!1,this);this.mf=new pf(3E4);F(this.mf,rf,this.sk,!1,this)}var jk={"30s":3E4,"1m":6E4,"5m":3E5};function kk(a,b){lk(a.element);Tg(W.c(),a.Ab,ki(b),function(b){mk(a,b)});a.Ld=ki(b);a.Pd.u(!0);a.Kd.u(!0)}hk.prototype.clear=function(){this.Ld=j;this.Pd.u(!1);this.Kd.u(!1);this.element.innerHTML=""};
hk.prototype.rk=function(a){a=a.target.Tb();if(a=="Never")this.mf.stop();else{var b=jk[a];b!=j?this.mf.setInterval(b):Ng.info("Invalid timeout "+a);this.mf.start()}};hk.prototype.sk=function(){for(var a=0;a<this.mb.length;++a)this.mb[a].Ta&&ik(this,a)};function lk(a){a.innerHTML='<div align="center"><img src="/loader.gif"><br>Loading...</div>'}
function mk(a,b){a.element.innerHTML="";a.Xf=[];a.mb=[];for(var c=sg(b.target),d=c.length,g=0;g<d;++g){var h=P("fieldset"),i=P("legend"),k=P("img");k.src="/blank.gif";k.width="12";k.height="12";i.appendChild(k);i.appendChild(document.createTextNode(" "+c[g].name));k=P("div");k.align="center";lk(k);h.appendChild(i);h.appendChild(k);a.element.appendChild(h);h=new Nj(i,k);a.Xf.push(k);a.mb.push(h);F(i,D,function(a){return function(b){b.qj||this.wa[a].loaded||ik(this,a)}}(g),!1,a);c.data=j;c.loaded=!1}a.wa=
c}function ik(a,b){Ug(W.c(),a.Ab,a.Ld,a.wa[b].id,a.wa[b].hint,function(c){nk(a,c,b)});a.wa[b].loaded=!0}
function nk(a,b,c){var b=sg(b.target),d=a.Xf[c];d.innerHTML="";if(b.error)a.Mb("Error: "+a.wa[c].name,b.error),a.wa[c].loaded=!1,b=a.mb[c],b.Ta&&b.vd(!1);else{var g=b.items,h=g.length,i=P("form");i.id=a.wa[c].id;i.onsubmit=function(){ok(a,c);return!1};var k=P("table");k.className="ola-table";for(var m=!1,q=0;q<h;++q)fk(k,g[q]),m|=g[q].id&&!g[q].button;i.appendChild(k);d.appendChild(i);b.refresh&&(g=new gk("Refresh"),g.L(d),F(g,"action",function(){ik(this,c)},!1,a));m&&(g=new gk(b.save_button||"Save"),
g.L(d),F(g,"action",function(){ok(this,c)},!1,a));a.wa[c].data=b}}
function ok(a,b){for(var c=a.wa[b].data.items,d=c.length,g=N(a.wa[b].id),h="",i=0;i<d;++i){var k=c[i].id;if(k)if(c[i].type=="uint"){var m=g.elements[k].value,q=parseInt(m);if(isNaN(q)){a.Mb("Invalid Value",c[i].description+" must be an integer");return}var t=c[i].min;if(t!=j&&q<t){a.Mb("Invalid Value",c[i].description+" must be > "+(t-1));return}t=c[i].max;if(t!=j&&q>t){a.Mb("Invalid Value",c[i].description+" must be < "+(t+1));return}h+=k+"="+m+"&"}else if(c[i].type=="string")m=g.elements[k].value,
h+=k+"="+m+"&";else if(c[i].type=="bool")h+=k+"="+(c[i].object.sb()?"1":"0")+"&";else if(c[i].type=="select")m=c[i].object.Eb(),m=c[i].value[m].value,h+=k+"="+m+"&"}Vg(W.c(),a.Ab,a.Ld,a.wa[b].id,a.wa[b].hint,h,function(c){c=sg(c.target);c.error?a.Mb("Set "+a.wa[b].name+" Failed",c.error):ik(a,b)})}hk.prototype.Mb=function(a,b){var c=Y.c();c.M(a);c.t(b);Z(c,eh);c.h(!0)};function pk(a){$h.call(this,a);a=new ii;a.n(N("rdm_toolbar"));var b=ae(a,"discoveryButton");b.za("Run full RDM discovery for this universe");F(b,"action",function(){qk(this,!0)},!1,this);b=ae(a,"incrementalDiscoveryButton");b.za("Run incremental RDM discovery for this universe");F(b,"action",function(){qk(this,!1)},!1,this);this.uf=new ge(new S,new S,"horizontal");this.uf.ng=250;this.uf.ed=2;this.uf.n(N("rdm_split_pane"));var c=new hk("rdm_attributes",a);this.wi=c;a=new Te;a.n(N("uid_container"));
this.Kk=new df(a,new ni(function(a){kk(c,a)}));this.eh=new pf(rk);F(this.eh,rf,this.ve,!1,this)}w(pk,$h);var rk=5E3;pk.prototype.jb=function(a){pk.b.jb.call(this,a);var b=this.wi;b.Ab=a;b.Ld=j;this.wi.clear()};pk.prototype.kc=function(a){je(this.uf,new G(a.width-7,a.height-67))};pk.prototype.setActive=function(a){pk.b.setActive.call(this,a);this.ve();this.ha()?this.ve():this.eh.stop()};
pk.prototype.ve=function(){var a=this;Wg(W.c(),this.J,function(b){rg(b.target)!=200?Ng.info("Request failed: "+String(b.target.va)+" : "+tg(b.target)):sk(a,b)});this.eh.start()};function qk(a,b){Sg(W.c(),a.J,b,function(b){var c=Y.c();Z(c,eh);rg(b.target)==200?(c.h(!1),sk(a,b)):(c.M("Failed to Start Discovery Process"),c.t(String(b.target.va)+" : "+tg(b.target)),c.h(!0))});var c=Y.c();c.Lb();c.M("RDM Discovery Running...");c.h(!0)}
function sk(a,b){for(var c=sg(b.target).uids,d=[],g=0;g<c.length;++g)d.push(new ji(c[g]));ef(a.Kk,d)};function tk(a){this.e=a;this.ai=F(this.e,z?"DOMMouseScroll":"mousewheel",this)}w(tk,Q);
tk.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.oa;if(a.type=="mousewheel"){c=1;if(x||A&&(Oa||B("532.0")))c=40;d=A&&Na&&-a.wheelDelta%c!=0?-a.wheelDelta:-a.wheelDelta/c;ga(a.wheelDeltaX)?(b=A&&Na&&-a.wheelDeltaX%c!=0?-a.wheelDeltaX:-a.wheelDeltaX/c,c=A&&Na&&-a.wheelDeltaY%c!=0?-a.wheelDeltaY:-a.wheelDeltaY/c):c=d}else d=a.detail,d>100?d=3:d<-100&&(d=-3),ga(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ja(this.bi)&&(b=uh(b,-this.bi,this.bi));ja(this.ci)&&(c=uh(c,-this.ci,this.ci));b=new uk(d,
a,b,c);try{this.dispatchEvent(b)}finally{b.j()}};tk.prototype.g=function(){tk.b.g.call(this);oc(this.ai);delete this.ai};function uk(a,b,c,d){b&&this.Zb(b,j);this.type="mousewheel";this.detail=a;this.cb=c;this.eb=d}w(uk,Pb);function vk(){Ej.call(this,[0],[0],0);this.Fc=[]}w(vk,Ej);vk.prototype.Eg=function(){wk(this,function(a){a.play(a.Ma==0)});vk.b.Eg.call(this)};vk.prototype.Fg=function(){wk(this,function(a){a.stop()});vk.b.Fg.call(this)};vk.prototype.Cg=function(){xk(this);vk.b.Cg.call(this)};function xk(a){tb(a.Fc,function(a){a.j()})}function yk(){vk.call(this)}w(yk,vk);yk.prototype.Bc=function(){for(var a=0;a<this.Fc.length;a++)this.Fc[a].play();yk.b.Bc.call(this)};function wk(a,b){tb(a.Fc,b)}
yk.prototype.add=function(a){this.Fc.push(a);this.duration=Math.max(this.duration,a.duration)};yk.prototype.remove=function(a){if(zb(this.Fc,a)&&a.duration==this.duration)this.duration=0,tb(this.Fc,function(a){this.duration=Math.max(a.duration,this.duration)},this)};function zk(a,b,c,d,g){Ej.call(this,b,c,d,g);this.element=a}w(zk,Ej);zk.prototype.Ed=s;zk.prototype.Bg=function(){this.Ed();zk.b.Bg.call(this)};zk.prototype.df=function(){this.Ed();zk.b.df.call(this)};zk.prototype.Bc=function(){this.Ed();zk.b.Bc.call(this)};function Ak(a,b,c,d,g){(b.length!=2||c.length!=2)&&e(Error("Start and end points must be 2D"));zk.apply(this,arguments)}w(Ak,zk);
Ak.prototype.Ed=function(){this.element.style.left=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};function Bk(a,b,c,d){Ak.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}w(Bk,Ak);Bk.prototype.Bc=function(){this.zd=[this.element.offsetLeft,this.element.offsetTop];Bk.b.Bc.call(this)};function Ck(a,b,c,d,g){zk.call(this,a,[b],[c],d,g)}w(Ck,zk);Ck.prototype.Ed=function(){this.element.style.width=Math.round(this.coords[0])+"px"};
function Dk(a,b,c,d,g){zk.call(this,a,[b],[c],d,g)}w(Dk,zk);Dk.prototype.Ed=function(){this.element.style.height=Math.round(this.coords[0])+"px"};function Ek(){}w(Ek,Q);p=Ek.prototype;p.Ha=0;p.gb=0;p.Va=100;p.Ea=0;p.Bd=1;p.rb=!1;p.od=!1;p.ja=function(a){a=Fk(this,a);if(this.Ha!=a)this.Ha=a+this.Ea>this.Va?this.Va-this.Ea:a<this.gb?this.gb:a,!this.rb&&!this.od&&this.dispatchEvent("change")};p.s=function(){return Fk(this,this.Ha)};p.pe=function(a){a=Fk(this,a);if(this.Ea!=a)this.Ea=a<0?0:this.Ha+a>this.Va?this.Va-this.Ha:a,!this.rb&&!this.od&&this.dispatchEvent("change")};
p.Ub=function(){return this.Bd==l?this.Ea:Math.round(this.Ea/this.Bd)*this.Bd};p.tf=function(a){if(this.gb!=a){var b=this.rb;this.rb=!0;this.gb=a;if(a+this.Ea>this.Va)this.Ea=this.Va-this.gb;a>this.Ha&&this.ja(a);if(a>this.Va)this.Ea=0,this.sf(a),this.ja(a);this.rb=b;!this.rb&&!this.od&&this.dispatchEvent("change")}};p.qa=function(){return Fk(this,this.gb)};
p.sf=function(a){a=Fk(this,a);if(this.Va!=a){var b=this.rb;this.rb=!0;this.Va=a;a<this.Ha+this.Ea&&this.ja(a-this.Ea);if(a<this.gb)this.Ea=0,this.tf(a),this.ja(this.Va);if(a<this.gb+this.Ea)this.Ea=this.Va-this.gb;this.rb=b;!this.rb&&!this.od&&this.dispatchEvent("change")}};p.ua=function(){return Fk(this,this.Va)};function Fk(a,b){return a.Bd==l?b:a.gb+Math.round((b-a.gb)/a.Bd)*a.Bd};function Gk(a){S.call(this,a);this.r=new Ek;F(this.r,"change",this.Ij,!1,this)}w(Gk,S);var Hk={Ui:"vertical",Uk:"horizontal"};p=Gk.prototype;p.C="horizontal";p.Ve=!1;p.Wj=!1;p.Qb=10;p.ae=0;p.d=function(){Gk.b.d.call(this);this.F(this.k().d("div",this.i(this.C)))};p.F=function(a){Gk.b.F.call(this,a);I(a,this.i(this.C));var a=this.a(),b=Ic(document,l,"goog-slider-thumb",a)[0];b||(b=this.k().d("div","goog-slider-thumb"),ne(b,"button"),a.appendChild(b));this.I=this.Da=b;ne(this.a(),"slider");Ik(this)};
p.o=function(){Gk.b.o.call(this);this.Ob=new jd(this.I);this.sc=new jd(this.Da);this.Ob.Uf=this.sc.Uf=s;this.ba=new ze(this.a());this.be=new tk(this.a());this.G().f(this.Ob,"beforedrag",this.Nh).f(this.sc,"beforedrag",this.Nh).f(this.Ob,["start","end"],this.Qh).f(this.sc,["start","end"],this.Qh).f(this.ba,"key",this.gg).f(this.a(),"mousedown",this.Ej).f(this.be,"mousewheel",this.Fj);this.a().tabIndex=0;Jk(this)};p.K=function(){Gk.b.K.call(this);Lb(this.Ob,this.sc,this.ba,this.be)};
p.Nh=function(a){var b=a.Md==this.Ob?this.I:this.Da,c;this.C=="vertical"?(c=this.a().clientHeight-b.offsetHeight,c=(c-a.top)/c*(this.ua()-this.qa())+this.qa()):c=a.left/(this.a().clientWidth-b.offsetWidth)*(this.ua()-this.qa())+this.qa();c=a.Md==this.Ob?Math.min(Math.max(c,this.qa()),this.s()+this.Ub()):Math.min(Math.max(c,this.s()),this.ua());Kk(this,b,c)};p.Qh=function(a){var b=a.type=="start";Ec(this.a(),"goog-slider-dragging",b);Ec(a.target.handle,"goog-slider-thumb-dragging",b)};
p.gg=function(a){var b=!0;switch(a.keyCode){case 36:Lk(this,this.qa());break;case 35:Lk(this,this.ua());break;case 33:Mk(this,this.Qb);break;case 34:Mk(this,-this.Qb);break;case 37:case 40:Mk(this,a.shiftKey?-this.Qb:-this.fh);break;case 39:case 38:Mk(this,a.shiftKey?this.Qb:this.fh);break;default:b=!1}b&&a.preventDefault()};
p.Ej=function(a){this.a().focus&&this.a().focus();var b=a.target;if(!Xc(this.I,b)&&!Xc(this.Da,b))if(this.Wj)Lk(this,Nk(this,a));else{this.$g(a);this.Za=Ok(this,Nk(this,a));this.Vh=this.C=="vertical"?this.Ze<this.Za.offsetTop:this.Ze>this.Za.offsetLeft+this.Za.offsetWidth;a=K(this.a());this.G().f(a,"mouseup",this.Ph,!0).f(this.a(),"mousemove",this.$g);if(!this.Yb)this.Yb=new pf(200),this.G().f(this.Yb,rf,this.Rh);this.Rh();this.Yb.start()}};p.Fj=function(a){Mk(this,(a.detail>0?-1:1)*this.fh);a.preventDefault()};
p.Rh=function(){var a;if(this.C=="vertical"){var b=this.Ze,c=this.Za.offsetTop;this.Vh?b<c&&(a=Pk(this,this.Za)+this.Qb):b>c+this.Za.offsetHeight&&(a=Pk(this,this.Za)-this.Qb)}else b=this.Ze,c=this.Za.offsetLeft,this.Vh?b>c+this.Za.offsetWidth&&(a=Pk(this,this.Za)+this.Qb):b<c&&(a=Pk(this,this.Za)-this.Qb);ga(a)&&Kk(this,this.Za,a)};p.Ph=function(){this.Yb&&this.Yb.stop();var a=K(this.a());this.G().X(a,"mouseup",this.Ph,!0).X(this.a(),"mousemove",this.$g)};
function Qk(a,b){var c=Bd(b,a.a());return a.C=="vertical"?c.y:c.x}p.$g=function(a){this.Ze=Qk(this,a)};function Nk(a,b){var c=a.qa(),d=a.ua();if(a.C=="vertical"){var g=a.I.offsetHeight,h=a.a().clientHeight-g,g=Qk(a,b)-g/2;return(d-c)*(h-g)/h+c}else return g=a.I.offsetWidth,h=a.a().clientWidth-g,g=Qk(a,b)-g/2,(d-c)*g/h+c}function Pk(a,b){if(b==a.I)return a.r.s();else if(b==a.Da)return a.r.s()+a.r.Ub();else e(Error("Illegal thumb element. Neither minThumb nor maxThumb"))}
function Mk(a,b){var c=Pk(a,a.I)+b,d=Pk(a,a.Da)+b,c=uh(c,a.qa(),a.ua()-a.ae),d=uh(d,a.qa()+a.ae,a.ua());Rk(a,c,d-c)}function Kk(a,b,c){var d=l;b==a.Da&&c<=a.r.ua()&&c>=a.r.s()+a.ae&&(d=c-a.r.s());var g=d||a.r.Ub();b==a.I&&c>=a.qa()&&c<=a.r.s()+g-a.ae&&(b=g-(c-a.r.s()),Fk(a.r,c)+Fk(a.r,b)==Fk(a.r,c+b)&&(Rk(a,c,b),d=l));d!=l&&a.r.pe(d)}
function Rk(a,b,c){if(a.qa()<=b&&b<=a.ua()-c&&a.ae<=c&&c<=a.ua()-b&&!(b==a.s()&&c==a.Ub()))a.r.od=!0,a.r.pe(0),a.r.ja(b),a.r.pe(c),a.r.od=!1,Jk(a),a.dispatchEvent("change")}p.qa=function(){return this.r.qa()};p.tf=function(a){this.r.tf(a)};p.ua=function(){return this.r.ua()};p.sf=function(a){this.r.sf(a)};function Ok(a,b){return b<=a.r.s()+a.r.Ub()/2?a.I:a.Da}p.Ij=function(){Jk(this);Ik(this);this.dispatchEvent("change")};
function Jk(a){if(a.I&&!a.Ve){var b=Sk(a,Pk(a,a.I)),c=Sk(a,Pk(a,a.Da));if(a.C=="vertical"){if(a.I.style.top=b.y+"px",a.Da.style.top=c.y+"px",a.O)b=Tk(c.y,b.y,a.I.offsetHeight),a.O.style.top=b.cf+"px",a.O.style.height=b.size+"px"}else if(a.I.style.left=b.x+"px",a.Da.style.left=c.x+"px",a.O)b=Tk(b.x,c.x,a.I.offsetWidth),a.O.style.left=b.cf+"px",a.O.style.width=b.size+"px"}}function Tk(a,b,c){var d=Math.ceil(c/2);return{cf:a+d,size:Math.max(b-a+c-2*d,0)}}
function Sk(a,b){var c=new H;if(a.I){var d=a.qa(),g=a.ua(),g=b==d&&d==g?0:(b-d)/(g-d);a.C=="vertical"?(d=a.a().clientHeight-a.I.offsetHeight,g=Math.round(g*d),c.y=d-g):(d=Math.round(g*(a.a().clientWidth-a.I.offsetWidth)),c.x=d)}return c}
function Lk(a,b){b=Math.min(a.ua(),Math.max(b,a.qa()));a.Ve&&a.Ce.stop(!0);var c=new yk,d=Ok(a,b),g=Sk(a,b);c.add(new Bk(d,a.C=="vertical"?[d.offsetLeft,g.y]:[g.x,d.offsetTop],100));if(a.O){var h=Sk(a,a.r.s()),i=Sk(a,a.r.s()+a.r.Ub());d==a.I?h=g:i=g;a.C=="vertical"?(g=Tk(i.y,h.y,a.I.offsetHeight),c.add(new Bk(a.O,[a.O.offsetLeft,g.cf],100)),c.add(new Dk(a.O,a.O.offsetHeight,g.size,100))):(g=Tk(h.x,i.x,a.I.offsetWidth),c.add(new Bk(a.O,[g.cf,a.O.offsetTop],100)),c.add(new Ck(a.O,a.O.offsetWidth,g.size,
100)))}a.Ce=c;a.G().f(c,"end",a.nj);a.Ve=!0;Kk(a,d,b);c.play(!1)}p.nj=function(){this.Ve=!1};p.re=function(a){if(this.C!=a){var b=this.i(this.C),c=this.i(a);this.C=a;if(this.a()){Dc(this.a(),b,c);this.I.style.left=this.I.style.top="";this.Da.style.left=this.Da.style.top="";if(this.O)this.O.style.left=this.O.style.top="",this.O.style.width=this.O.style.height="";Jk(this)}}};
p.g=function(){Gk.b.g.call(this);this.Yb&&this.Yb.j();delete this.Yb;this.Ce&&this.Ce.j();delete this.Ce;delete this.I;delete this.Da;this.O&&delete this.O;this.r.j();delete this.r;this.ba&&(this.ba.j(),delete this.ba);this.be&&(this.be.j(),delete this.be);this.Ob&&(this.Ob.j(),delete this.Ob);this.sc&&(this.sc.j(),delete this.sc)};p.fh=1;p.s=function(){return this.r.s()};p.ja=function(a){Kk(this,this.I,a)};p.Ub=function(){return this.r.Ub()};p.pe=function(a){Kk(this,this.Da,this.r.s()+a)};
p.h=function(a){R(this.a(),a);a&&Jk(this)};function Ik(a){var b=a.a();b&&(U(b,"valuemin",a.qa()),U(b,"valuemax",a.ua()),U(b,"valuenow",a.s()))};function Uk(a){Gk.call(this,a);this.r.pe(0)}w(Uk,Gk);Uk.prototype.i=function(a){return a=="vertical"?"goog-slider-vertical":"goog-slider-horizontal"};function Vk(){this.jc=!1;this.yd=[];this.Ei=[];this.data=Array(512);this.Fd=[];this.Ya=0}w(Vk,Q);function Wk(){E.call(this,"console-change-event")}w(Wk,E);p=Vk.prototype;p.getData=n("data");p.setData=function(a){for(var b=Math.min(512,a.length),c=0;c<b;++c)this.data[c]=a[c];for(c=b;c<512;++c)this.data[c]=0;Xk(this);b=this.data.length;for(c=0;c<b;++c)this.oe(c,this.data[c])};
function Yk(a){if(!a.jc){var b=new ii;a.gc=new gi(O("div","ola-icon ola-icon-prev"));a.gc.za("Previous Page");a.Ac=new gi(O("div","ola-icon ola-icon-next"));a.Ac.za("Next Page");a.gc.u(!1);var c=new gi(O("div","ola-icon ola-icon-dbo"));c.za("Set all channels to 0");var d=new gi(O("div","ola-icon ola-icon-full"));d.za("Set all channels to full");b.ra(a.gc,!0);b.ra(a.Ac,!0);b.ra(new Zh,!0);b.ra(c,!0);b.ra(d,!0);b.L(N("console_toolbar"));F(a.gc,"action",a.pk,!1,a);F(a.Ac,"action",a.$j,!1,a);F(c,"action",
a.dj,!1,a);F(d,"action",a.rj,!1,a);c=N("channel_values");for(b=0;b<512;++b)d=P("div"),d.innerHTML=0,d.title="Channel "+(b+1),c.appendChild(d),a.Fd.push(d);for(var c=N("console_channel_row"),d=N("console_value_row"),g=N("console_slider_row"),b=0;b<16;++b){var h=P("td");h.innerHTML=b+1;c.appendChild(h);h=P("td");h.innerHTML="0";d.appendChild(h);a.Ei.push(h);h=P("td");g.appendChild(h);var i=new Uk;i.re(Hk.Ui);i.tf(0);i.sf(255);i.L(h);F(i,"change",function(a){return function(){var b=this.yd[a].s();this.Ei[a].innerHTML=
b;var c=this.Ya+a;this.oe(c,b);this.data[c]!=b&&(this.data[c]=b,this.dispatchEvent(new Wk))}}(b),!1,a);a.yd.push(i)}a.jc=!0;Zk(a,0)}}p.update=function(){this.Ya==0?this.gc.u(!1):this.gc.u(!0);this.Ya==496?this.Ac.u(!1):this.Ac.u(!0)};p.$j=function(){this.Ya+=16;this.gc.u(!0);if(this.Ya>=496)this.Ya=496,this.Ac.u(!1);Xk(this)};p.pk=function(){this.Ya-=16;this.Ac.u(!0);if(this.Ya<=0)this.Ya=0,this.gc.u(!1);Xk(this)};
function Xk(a){for(var b=N("console_channel_row"),b=Uc(b),c=a.Ya;c<a.data.length&&b!=j;)b.innerHTML=c+1,c++,b=Wc(b);for(c=0;c<a.yd.length;++c)a.yd[c].ja(a.data[a.Ya+c])}p.dj=function(){Zk(this,0)};p.rj=function(){Zk(this,255)};function Zk(a,b){for(var c=a.data.length,d=0;d<c;++d)a.data[d]=b,a.oe(d,b);for(d=0;d<a.yd.length;++d)a.yd[d].ja(b);a.dispatchEvent(new Wk)}
p.oe=function(a,b){var c=this.Fd[a];if(c!=j){c.innerHTML=b;var d=255-b;c.style.background="rgb("+d+","+d+","+d+")";c.style.color=b>90?"#ffffff":"#000000"}};function $k(a){$h.call(this,a);this.$c=new Vk;this.ah=new pf(1E3);this.ce=!0;F(this.ah,rf,this.xh,!1,this);F(this.$c,"console-change-event",this.xh,!1,this)}w($k,$h);$k.prototype.jb=function(a){$k.b.jb.call(this,a);for(var a=this.$c,b=a.data.length,c=0;c<b;++c)a.data[c]=0;a.Ya=0};$k.prototype.setActive=function(a){$k.b.setActive.call(this,a);this.ha()?(this.ce=!0,Yk(this.$c),this.$c.update(),al(this)):this.ah.stop()};
function al(a){ah(W.c(),a.J,function(b){a.$c.setData(b.dmx);a.ce=!1;a.ha()&&a.ah.start()})}$k.prototype.xh=function(){if(!this.ce){this.ce=!0;var a=this.$c.getData(),b=this;bh(W.c(),this.J,a,function(){b.ce=!1})}};function bl(a,b){this.element=N(a);this.Ag=b;this.Ab=j;this.kb=new Yj(N(a+"_tab_pane"));ak(this.kb,new bk(N("tab_page_1"),"Settings"));ak(this.kb,new bk(N("tab_page_2"),"RDM"));ak(this.kb,new bk(N("tab_page_3"),"RDM Patcher"));ak(this.kb,new bk(N("tab_page_4"),"DMX Monitor"));ak(this.kb,new bk(N("tab_page_5"),"DMX Console"));this.Aa=[];this.Aa.push(new Tj("tab_page_1",function(){b.Gd()}));this.kb.xa(1);this.Aa.push(new pk("tab_page_2"));this.kb.xa(0);this.Aa.push(new tj("tab_page_3"));this.Aa.push(new Aj("tab_page_4"));
this.Aa.push(new $k("tab_page_5"));F(this.kb,"change",this.Mi,!1,this);var c=W.c();F(c,"universe_list_change",this.Yj,!1,this)}w(bl,Xj);function cl(a){var b=N("ola-splitpane-content"),b=Md(b);a.Aa[a.kb.Eb()].kc(b)}bl.prototype.Qa=function(a,b){if(this.Ab!=a){for(var c=0;c<this.Aa.length;++c)this.Aa[c].jb(a);this.Ab=a}bl.b.Qa.call(this);b&&this.kb.xa(0);this.Mi()};bl.prototype.Rc=function(){for(var a=0;a<this.Aa.length;++a)this.Aa[a].ha()&&this.Aa[a].setActive(!1);bl.b.Rc.call(this)};
bl.prototype.Mi=function(){if(this.element.style.display=="block"){for(var a=0;a<this.Aa.length;++a)this.Aa[a].ha()&&this.Aa[a].setActive(!1);cl(this);this.Aa[this.kb.Eb()].setActive(!0)}};bl.prototype.Yj=function(a){for(var b=!1,c=0;c<a.lb.length;++c)if(a.lb[c].id==this.Ab){b=!0;break}this.element.style.display=="block"&&!b&&(a=Y.c(),a.M("Universe "+this.Ab+" Removed"),Z(a,eh),a.t("This universe has been removed by another user."),a.h(!0),this.Ag.Gd())};function gk(a,b,c){ci.call(this,a,b||di.c(),c)}w(gk,ci);se("goog-custom-button",function(){return new gk(l)});function dl(){var a=W.c();F(a,"server_info_change",this.Ok,!1,this);Jg(a)}dl.prototype.title=o("Home");dl.prototype.blur=aa();dl.prototype.update=function(){Jg(W.c())};
dl.prototype.Ok=function(a){N("server_hostname").innerHTML=a.Jc.hostname;N("server_ip").innerHTML=a.Jc.ip;N("server_broadcast").innerHTML=a.Jc.broadcast;N("server_mac").innerHTML=a.Jc.hw_address;N("server_version").innerHTML=a.Jc.version;N("server_uptime").innerHTML=a.Jc.up_since;if(!a.Jc.quit_enabled&&(a=N("stop_button")))a.style.display="none"};function el(a){S.call(this,a)}w(el,S);el.prototype.d=function(){this.F(this.p.createElement("tbody"))};el.prototype.F=function(a){el.b.F.call(this,a)};el.prototype.R=function(a){return a.tagName=="TBODY"};function fl(a,b){S.call(this,b);this.$a=a}w(fl,S);fl.prototype.item=n("$a");fl.prototype.R=o(!1);fl.prototype.d=function(){this.e=this.p.d("tr",{},O("td",{},this.$a.id().toString()),O("td",{},this.$a.name()),O("td",{},this.$a.jh.toString()),O("td",{},this.$a.kh.toString()),O("td",{},this.$a.lh.toString()))};
fl.prototype.update=function(a){var b=Uc(this.a()),b=Wc(b);b.innerHTML=a.name();b=Wc(b);b.innerHTML=a.jh.toString();b=Wc(b);b.innerHTML=a.kh.toString();b=Wc(b);b.innerHTML=a.lh.toString()};function gl(){}gl.prototype.de=function(a){return new fl(a)};
function hl(a){var b=W.c();this.element=N(a);a=N("reload_button");we(a);F(a,D,this.tk,!1,this);a=N("stop_button");we(a);F(a,D,this.Fk,!1,this);a=N("new_universe_button");we(a);F(b,"universe_list_change",this.Lk,!1,this);this.fl=new dl;b=new el;b.n(N("active_universe_list"));this.gh=new df(b,new gl)}w(hl,Xj);hl.prototype.Lk=function(a){for(var b=[],c=0;c<a.lb.length;++c)b.push(new ff(a.lb[c]));ef(this.gh,b)};
hl.prototype.Fk=function(){var a=Y.c();F(a,Kh,this.Ji,!1,this);a.M("Please confirm");Z(a,Mh);a.t("Are you sure? OLA may not be configured to restart automatically");a.h(!0)};hl.prototype.Ji=function(a){var b=Y.c();mc(b,Kh,this.Ji,!1,this);a.key=="yes"&&(b.Lb(),b.h(!0),Lg(function(a){var b=Y.c();rg(a.target)==200?b.h(!1):(b.M("Failed to stop the server"),b.t(String(a.target.va)+" : "+tg(a.target)),Z(b,eh))}))};
hl.prototype.tk=function(){var a=Y.c();a.Lb();a.h(!0);Kg(function(a){var c=Y.c();rg(a.target)==200?c.h(!1):(c.M("Failed to Reload plugins"),c.t(String(a.target.va)+" : "+tg(a.target)),Z(c,eh))})};function il(a,b){this.element=N(a);this.Ag=b;var c=N("cancel_new_universe_button");we(c);F(c,D,b.Gd,!1,b);c=N("confirm_new_universe_button");we(c);F(c,D,this.Xi,!1,this);this.mc=new Pj;this.mc.n(N("available_ports"))}w(il,Xj);il.prototype.Qa=function(){N("new_universe_id").value="";N("new_universe_name").value="";this.mc.update();bl.b.Qa.call(this)};
il.prototype.Xi=function(){var a=Y.c(),b=N("new_universe_id"),b=parseInt(b.value);if(isNaN(b)||b<0||b>4294967295)a.M("Invalid Universe Number"),Z(a,eh),a.t("The universe number must be between 0 and 4294967295");else{var c=W.c();if(c.lb[b]!=j)a.M("Universe already exists"),Z(a,eh),a.t("Universe "+b+" already exists");else{var d=N("new_universe_name").value,g=Qj(this.mc);if(g.length==0)a.M("No ports selected"),Z(a,eh),a.t("At least one port must be bound to the universe");else{var h=this;Rg(c,b,d,
g,function(a){var b=Y.c();rg(a.target)!=200?(b.M("New Universe Failed"),b.t(String(a.target.va)+" : "+tg(a.target)),Z(b,eh),b.h(!0)):(a=sg(a.target),a.ok?(b.h(!1),b=h.Ag,a=a.universe,jl(b),b.zf.Qa(a,!0),Mg(W.c())):(b.M("New Universe Failed"),Z(b,eh),b.t(a.message),b.h(!0)))});a.Lb()}}}a.h(!0)};function kl(a,b){this.element=N(a);this.Vi=b;F(W.c(),"plugin_change",this.Ti,!1,this);this.controls=[]}w(kl,Xj);
kl.prototype.Ti=function(a){N("plugin_name").innerHTML=a.ec.name;N("plugin_preference_source").innerHTML=a.ec.preferences_source;var b=N("plugin_enabled");a.ec.enabled?(b.innerHTML="Yes",b.className="plugin_enabled"):(b.innerHTML="No",b.className="plugin_disabled");b=N("plugin_active");a.ec.active?(b.innerHTML="Yes",b.className="plugin_enabled"):(b.innerHTML="No",b.className="plugin_disabled");var b=a.ec.enabled&&!a.ec.active,c=N("plugin_conflict_row"),d=a.ec.conflicts_with;if(d.length){c.style.display=
"table-row";for(c=0;c<this.controls.length;++c)this.controls[c].j();this.controls=[];var g=N("plugin_conflict_list");g.innerHTML="";for(c=0;c<d.length;++c){var h=d[c],i=new V(O("span",l,h.name));i.L(g);ll(this,i,h.id);this.controls.push(i);b&&h.active&&(h=O("img",{src:"/warning.png"}),g.appendChild(h));h=O("br");g.appendChild(h)}}else c.style.display="none";a=za(a.ec.description);a=a.replace(/\n/g,"<br>");N("plugin_description").innerHTML=a};
function ll(a,b,c){F(b,"action",function(){this.Vi(c)},!1,a)};function ml(a){this.Qc=a||window;this.$e=F(this.Qc,"resize",this.Jj,!1,this);this.xd=Mc(this.Qc||window);if(A&&Oa||Ta&&this.Qc.self!=this.Qc.top)this.Af=window.setInterval(ra(this.uh,this),nl)}w(ml,Q);var nl=500;p=ml.prototype;p.$e=l;p.Qc=l;p.xd=l;p.Af=l;p.Mh=function(){return this.xd?this.xd.Ba():l};p.g=function(){ml.b.g.call(this);if(this.$e)oc(this.$e),this.$e=l;if(this.Af)window.clearInterval(this.Af),this.Af=l;this.xd=this.Qc=l};p.Jj=function(){this.uh()};
p.uh=function(){var a=Mc(this.Qc||window);if(!vc(a,this.xd))this.xd=a,this.dispatchEvent("resize")};function ol(){this.Uj=new vh;this.pd=W.c();this.Uh=new hl("home_frame");this.zf=new bl("universe_frame",this);var a=this;this.Jg=new kl("plugin_frame",function(b){Og(a.pd,b);jl(a);a.Jg.Qa()});this.ii=new il("new_universe_frame",this);F(N("new_universe_button"),D,this.Si,!1,this);var b=new S,c=new S;this.vf=new ge(b,c,"horizontal");this.vf.ng=130;this.vf.ed=2;this.vf.n(N("split_pane"));this.Oi=new ml;this.ih();F(this.Oi,"resize",this.ih,!1,this);pl(this);this.Gd();N("split_pane").style.visibility=
"visible"}
function pl(a){var b=N("home_control");we(b);F(b,D,a.Gd,!1,a);new Nj("plugin_list_control","plugin_container");new Nj("universe_list_control","universe_container");b=new Te;b.n(N("plugin_container"));a.lk=new df(b,new lf(function(b){b=b.id();Og(a.pd,b);jl(a);a.Jg.Qa()}));F(a.pd,"plugin_list_change",a.Nk,!1,a);b=new Te;b.n(N("universe_container"));a.gh=new df(b,new hf(function(b){b=b.id();jl(a);a.zf.Qa(b,!0)}));F(a.pd,"universe_list_change",a.Pk,!1,a);a.Li=new pf(5E3);F(a.Li,rf,function(){Mg(this)},!1,
a.pd);Mg(a.pd);a.Li.start()}p=ol.prototype;p.Pk=function(a){var b=[];Ng.info("Got "+a.lb.length+" universes");for(var c=0;c<a.lb.length;++c)b.push(new ff(a.lb[c]));ef(this.gh,b)};p.Nk=function(a){for(var b=[],c=0;c<a.plugins.length;++c)b.push(new jf(a.plugins[c]));ef(this.lk,b)};p.Gd=function(){jl(this);this.Uh.Qa()};p.Si=function(){jl(this);this.ii.Qa()};function jl(a){a.Uh.Rc();a.zf.Rc();a.Jg.Rc();a.ii.Rc()}
p.ih=function(){var a=this.Oi.Mh();je(this.vf,new G(a.width,a.height-85));var b=this.Uj;Nd(N("log_popup"),new G(0.75*a.width,0.5*a.height));b.fc.Vg(new rh(b.bf,3));cl(this.zf)};function ql(){new ol}var rl="ola.Setup".split("."),sl=r;!(rl[0]in sl)&&sl.execScript&&sl.execScript("var "+rl[0]);for(var tl;rl.length&&(tl=rl.shift());)!rl.length&&ga(ql)?sl[tl]=ql:sl=sl[tl]?sl[tl]:sl[tl]={};
