/usr/share/olad/www/ola.js is in ola 0.10.3.nojsmin-2+deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | 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,"&"));a.indexOf("<")!=-1&&(a=a.replace(Ca,"<"));a.indexOf(">")!=-1&&(a=a.replace(Da,">"));a.indexOf('"')!=-1&&(a=a.replace(Ea,"""));return a}var Ba=/&/g,Ca=/</g,Da=/>/g,Ea=/\"/g,Aa=/[&<>\"]/;function Fa(a){return ya(a.replace(/ /g,"  "),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)||["","",""],M=t.exec(m)||["","",""];if(y[0].length==0&&M[0].length==0)break;c=Ha(y[1].length==0?0:parseInt(y[1],10),M[1].length==0?0:parseInt(M[1],10))||Ha(y[2].length==0,M[2].length==0)||Ha(y[2],M[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.Fc=!1;p.je=!0;p.stopPropagation=function(){this.Fc=!0};p.preventDefault=function(){this.je=!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.na=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.na=a;delete this.je;delete this.Fc};function Rb(a){return(Ib?a.na.button==0:a.type=="click"?!0:!!(a.na.button&Qb[0]))&&!(A&&Na&&a.ctrlKey)}
p.stopPropagation=function(){Pb.b.stopPropagation.call(this);this.na.stopPropagation?this.na.stopPropagation():this.na.cancelBubble=!0};p.preventDefault=function(){Pb.b.preventDefault.call(this);var a=this.na;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("na");p.g=function(){Pb.b.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.na=l};function Sb(){}var Tb=0;p=Sb.prototype;p.key=0;p.Ic=!1;p.Pf=!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.Ue=h;this.Pf=!1;this.key=++Tb;this.Ic=!1};p.handleEvent=function(a){return this.Yh?this.nd.call(this.Ue||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.Ac=b;this.aa=[];a>this.Ac&&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.rc=l;p.Ch=l;p.getObject=function(){return this.aa.length?this.aa.pop():this.Xc()};p.Hc=function(a){this.aa.length<this.Ac?this.aa.push(a):this.sc(a)};p.Xc=function(){return this.rc?this.rc():{}};p.sc=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.sc(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.Hc(a)};Zb=function(){return m.getObject()};$b=function(a){m.Hc(a)};ac=function(){return q.getObject()};cc=function(){q.Hc(c())};dc=function(){return t.getObject()};ec=function(a){t.Hc(a)};fc=function(){return y.getObject()};
gc=function(a){y.Hc(a)};var k=new Wb(0,600);k.rc=a;var m=new Wb(0,600);m.rc=b;var q=new Wb(0,600);q.rc=c;var t=new Wb(0,600);t.rc=d;var y=new Wb(0,600);y.rc=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.Ue==g){if(i.Ic)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].Pf=!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].Ue==g){oc(a[h].key);break}}
function oc(a){if(!hc[a])return!1;var b=hc[a];if(b.Ic)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.Ic=!0;g.gi=!0;pc(d,h,c,g);delete hc[a];return!0}
function pc(a,b,c,d){if(!d.cf&&d.gi){for(var g=0,h=0;g<d.length;g++)if(d[g].Ic){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.cf?a.cf++:a.cf=1;try{for(var i=a.length,k=0;k<i;k++){var m=a[k];m&&!m.Ic&&(h&=sc(m,g)!==!1)}}finally{a.cf--,pc(c,d,b,a)}}return Boolean(h)}function sc(a,b){var c=a.handleEvent(b);a.Pf&&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(),M=q.currentTarget;M;M=M.parentNode)y.push(M);i=g[!0];i.ib=i.U;for(var fa=y.length-1;!q.Fc&&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.Fc&&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.Ta=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.Ta||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.Ta||this;d=!!d;if(a=nc(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Ic&&a[b].nd==c&&a[b].capture==d&&a[b].Ue==g){a=a[b];break a}a=l}if(a)a=a.key,oc(a),zb(this.N,a)}return this};
p.ie=function(){tb(this.N,oc);this.N.length=0};p.g=function(){tc.b.g.call(this);this.ie()};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 zc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}p=zc.prototype;p.Ba=function(){return new zc(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 zc?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 a=a||window,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);a=new G(a.innerWidth,b)}else a=Jc(b)?b.documentElement:b.body,a=new G(a.clientWidth,a.clientHeight);return a}function Nc(a){return a?a.parentWindow||a.defaultView:window}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.v=a||r.document||document}p=Hc.prototype;p.k=J;function fd(a){return a.v}p.a=function(a){return v(a)?this.v.getElementById(a):a};p.d=function(a,b,c){return Oc(this.v,arguments)};p.createElement=function(a){return this.v.createElement(a)};
p.createTextNode=function(a){return this.v.createTextNode(a)};function gd(a){return Jc(a.v)}function hd(a){return a.v.parentWindow||a.v.defaultView}function id(a){var b=a.v,a=!A&&Jc(b)?b.documentElement:b.body,b=b.parentWindow||b.defaultView;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.mf=l;p.Vg=ba("mf");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.mf)g.push(h);h=c[!0];h.ib=h.U;for(var i=g.length-1;!a.Fc&&i>=0&&h.ib;i--)a.currentTarget=g[i],d&=rc(h,g[i],a.type,!0,a)&&a.je!=!1}if(!1 in c)if(h=c[!1],h.ib=h.U,b)for(i=0;!a.Fc&&i<g.length&&h.ib;i++)a.currentTarget=g[i],d&=rc(h,g[i],a.type,!1,a)&&a.je!=!1;else for(g=this;!a.Fc&&
g&&h.ib;g=g.mf)a.currentTarget=g,d&=rc(h,g,a.type,!1,a)&&a.je!=!1;a=Boolean(d)}else a=!0;return a};p.g=function(){Q.b.g.call(this);qc(this);this.mf=l};function jd(a,b,c){this.target=a;this.handle=b||a;this.be=c||new zc(NaN,NaN,NaN,NaN);this.v=K(a);this.ma=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.lg=0;p.Vj=0;p.Oj=!1;p.G=n("ma");p.u=ba("S");
p.g=function(){jd.b.g.call(this);mc(this.handle,["touchstart","mousedown"],this.Fi,!1,this);this.ma.j();delete this.target;delete this.handle;delete this.ma};
p.Fi=function(a){var b=a.type=="mousedown";if(this.S&&!this.Cb&&(!b||Rb(a))){ld(a);if(this.lg==0)if(this.pg(a),this.Cb)a.preventDefault();else return;else a.preventDefault();var b=this.v,c=b.documentElement,d=!kd;this.ma.f(b,["touchmove","mousemove"],this.Gj,d);this.ma.f(b,["touchend","mouseup"],this.Ke,d);kd?(c.setCapture(!1),this.ma.f(c,"losecapture",this.Ke)):this.ma.f(Nc(b),"blur",this.Ke);x&&this.Oj&&this.ma.f(b,"dragstart",Nb);this.me&&this.ma.f(this.me,"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.v));this.Vj=ta()}else this.dispatchEvent("earlycancel")};p.pg=function(a){if(this.dispatchEvent(new md("start",this,a.clientX,a.clientY,a))!==!1)this.Cb=!0};
p.Ke=function(a,b){this.ma.ie();kd&&this.v.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.na.targetTouches[0],a.currentTarget):(b=="touchend"||b=="touchcancel")&&a.Zb(a.na.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.lg&&(this.pg(a),!this.Cb)){this.Ke(a);return}}c=this.Of(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.Of=function(a,b){var c=id(J(this.v));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.Of(0,0);a.clientX=this.clientX;a.clientY=this.clientY;pd(this,a,b.x,b.y)};function pd(a,b,c,d){a.Vf(c,d);a.dispatchEvent(new md("drag",a,b.clientX,b.clientY,b,c,d))}
function nd(a,b){var c=a.be,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.be,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.Vf=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.Nd=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.v.body,g=c.v.documentElement,h=!A&&Jc(c.v)?c.v.documentElement:c.v.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));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.na.targetTouches&&(d=a.na.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 zc(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.v.createStyleSheet(),Jd(d,a);else{var g=Ic(c.v,"head",j,j)[0];g||(d=Ic(c.v,"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.ke=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.w=!1;p.e=l;p.ke=l;p.zg=l;p.D=l;p.Z=l;p.Qa=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.Qa){var c=a.D.Qa,d=a.gd;d in c&&delete c[d];mb(a.D.Qa,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.Vg.call(a,b)}p.getParent=n("D");p.Vg=function(a){this.D&&this.D!=a&&e(Error("Method not supported"));S.b.Vg.call(this,a)};
p.k=n("p");p.d=function(){this.e=this.p.createElement("div")};p.L=function(a){this.Jc(a)};p.Jc=function(a,b){this.w&&e(Error("Component already rendered"));this.e||this.d();a?a.insertBefore(this.e,b||l):this.p.v.body.appendChild(this.e);(!this.D||this.D.w)&&this.o()};p.n=function(a){if(this.w)e(Error("Component already rendered"));else if(a&&this.R(a)){this.Pi=!0;if(!this.p||this.p.v!=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.w=!0;be(this,function(a){!a.w&&a.a()&&a.o()})};p.K=function(){be(this,function(a){a.w&&a.K()});this.dd&&this.dd.ie();this.w=!1};p.g=function(){S.b.g.call(this);this.w&&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.zg=this.e=this.Qa=this.Z=l};p.ra=function(a,b){this.Tc(a,ce(this),b)};
p.Tc=function(a,b,c){a.w&&(c||!this.w)&&e(Error("Component already rendered"));(b<0||b>ce(this))&&e(Error("Child component index out of bounds"));if(!this.Qa||!this.Z)this.Qa={},this.Z=[];a.getParent()==this?(this.Qa[Yd(a)]=a,zb(this.Z,a)):mb(this.Qa,Yd(a),a);$d(a,this);Db(this.Z,b,0,a);a.w&&this.w&&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.Jc(this.B(),b?b.e:l)):this.w&&!a.w&&a.e&&a.o()};p.B=n("e");
function de(a){if(a.ke==l)a.ke=Ad(a.w?a.e:a.p.v.body);return a.ke}p.wd=function(a){this.w&&e(Error("Component already rendered"));this.ke=a};function ce(a){return a.Z?a.Z.length:0}function ae(a,b){return a.Qa&&b?(b in a.Qa?a.Qa[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.Qa;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.Sd=a;this.ra(a);this.oe=b;this.ra(b)}w(ge,S);p=ge.prototype;p.Lc=l;p.fa=l;p.ud=l;p.ed=5;p.og=l;p.Ai=l;p.Rd=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.Na=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.Na=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.Sd.a()||a.Sd.d();b.appendChild(a.fa,a.Sd.a());a.oe.a()||a.oe.d();b.appendChild(a.ud,a.oe.a());a.Lc=new jd(a.Na,a.Na);a.fa.style.position="absolute";a.ud.style.position="absolute";a=a.Na.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.Na,"dblclick",this.yj).f(this.Lc,"start",this.Aj).f(this.Lc,"drag",this.Bj).f(this.Lc,"end",this.zj);ke(this,this.og)};
function le(a){return a.C=="vertical"}function he(a){le(a)?(a.Na.style.height=a.ed+"px",I(a.Na,"goog-splitpane-handle-vertical")):(a.Na.style.width=a.ed+"px",I(a.Na,"goog-splitpane-handle-horizontal"))}
p.te=function(a){if(this.C!=a&&(this.C=a,a=le(this),this.w))if(le(this)?Dc(this.Na,"goog-splitpane-handle-horizontal","goog-splitpane-handle-vertical"):Dc(this.Na,"goog-splitpane-handle-vertical","goog-splitpane-handle-horizontal"),ja(this.Rd)){var b=Md(this.a());ke(this,this.Rd*(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.Rd)?a.Rd:Math.floor((d?c.height:c.width)/2);a.Rd=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 zc(0,0,d,g));typeof a.Sd.Og=="function"&&a.Sd.Og(new G(d,g));me(a.Na,new zc(t,y,k,m));me(a.ud,new zc(c,q,h,i));typeof a.oe.Og=="function"&&a.oe.Og(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.be=new zc(d,b,a,c)||new zc(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.Na,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.uc(a).join(" "),a.ka);this.sf(a,b);return b};p.B=function(a){return a};p.Pd=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.ka=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.dg(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.sf(a,b);return b};
p.kd=function(a){de(a)&&this.wd(a.a(),!0);a.isEnabled()&&this.ic(a,a.H())};p.sf=function(a,b){a.isEnabled()||this.Ga(b,1,!0);a.yc()&&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.pe=function(a,b){Ld(a,!b,!x&&!Ta)};p.wd=function(a,b){this.Pd(a,this.i()+"-rtl",b)};p.$b=function(a){var b;return a.Q&32&&(b=a.V())?ad(b):!1};p.ic=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.vc(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.Td(b);g&&this.Pd(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.uc=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.Td(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.Td=function(a){this.Ce||re(this);return this.Ce[a]};
p.dg=function(a){if(!this.Ii){this.Ce||re(this);var b=this.Ce,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.Ce={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.Ze=l;p.qg=l;p.$e=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.hg=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.na,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.$e&&a.detach();a.e=b;a.Ze=F(a.e,"keypress",a,c);a.qg=F(a.e,Hb,a.hg,c,a);a.$e=F(a.e,"keyup",a.Cj,c,a)}p.detach=function(){if(this.Ze)oc(this.Ze),oc(this.qg),oc(this.$e),this.$e=this.qg=this.Ze=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.ka=a}w(V,S);p=V.prototype;p.ka=l;p.q=0;p.Q=39;p.Lf=255;p.$g=0;p.Y=!0;p.fb=l;p.Qe=!0;p.ze=!1;p.nf=l;function Ge(a,b){a.w&&b!=a.Qe&&He(a,b);a.Qe=b}p.V=function(){return this.m.V(this)};p.Oe=function(){return this.ba||(this.ba=new ze)};
p.Pd=function(a,b){if(b){if(a)this.fb?xb(this.fb,a)||this.fb.push(a):this.fb=[a],this.m.Pd(this,a,!0)}else if(a&&this.fb){zb(this.fb,a);if(this.fb.length==0)this.fb=l;this.m.Pd(this,a,!1)}};p.d=function(){var a=this.m.d(this);this.e=a;var b=this.nf||this.m.Ka();b&&ne(a,b);this.ze||this.m.pe(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.nf||this.m.Ka();b&&ne(a,b);this.ze||this.m.pe(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.Qe&&He(this,!0),this.Q&32)){var a=this.V();if(a){var b=this.Oe();Ae(b,a);this.G().f(b,"key",this.Gb).f(a,"focus",this.Pe).f(a,"blur",this.vc)}}};
function He(a,b){var c=a.G(),d=a.a();b?(c.f(d,"mouseover",a.Se).f(d,"mousedown",a.Vb).f(d,"mouseup",a.Wb).f(d,"mouseout",a.Re),x&&c.f(d,"dblclick",a.Oh)):(c.X(d,"mouseover",a.Se).X(d,"mousedown",a.Vb).X(d,"mouseup",a.Wb).X(d,"mouseout",a.Re),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.ic(this,!1)};p.g=function(){V.b.g.call(this);this.ba&&(this.ba.j(),delete this.ba);delete this.m;this.fb=this.ka=l};
p.t=function(a){this.m.t(this.a(),a);this.ka=a};p.Eb=function(){var a=this.ka;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.pe=function(a){this.ze=a;var b=this.a();b&&this.m.pe(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.ic(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.ic(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.yc=function(){return!!(this.q&8)};p.Yg=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.w&&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.Lf&b)&&!!(a.Q&b)}function Ie(a,b,c){return!!(a.Q&b)&&!!(a.q&b)!=c&&(!(a.$g&b)||a.dispatchEvent(Xd(b,c)))&&!a.Zc}
p.Se=function(a){(!a.relatedTarget||!Xc(this.a(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&Ke(this,2)&&this.vb(!0)};p.Re=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.ze&&Rb(a)&&a.preventDefault()};
p.Wb=function(a){this.isEnabled()&&(Ke(this,2)&&this.vb(!0),this.ha()&&this.Ec(a)&&Ke(this,4)&&this.setActive(!1))};p.Oh=function(a){this.isEnabled()&&this.Ec(a)};p.Ec=function(a){Ke(this,16)&&this.Kc(!this.sb());Ke(this,8)&&this.Yg(!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.Pe=function(){Ke(this,32)&&Ie(this,32,!0)&&this.ya(32,!0)};
p.vc=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.wc(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};p.wc=function(a){return a.keyCode==13&&this.Ec(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.uc(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.te(Qe):b==c+"-vertical"&&a.te(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.Ud(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.Ud=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.uc=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.rg=l;p.ba=l;p.m=l;p.C=l;p.Y=!0;p.S=!0;p.cg=!0;p.ga=-1;p.W=l;p.Kb=!1;p.Zi=!1;p.hk=!0;p.yb=l;p.V=function(){return this.rg||this.m.V(this)};p.Oe=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.w&&Ue(this,a)},this);var a=this.a();this.m.kd(this);this.h(this.Y,!0);this.G().f(this,"enter",this.fg).f(this,"highlight",this.gg).f(this,"unhighlight",this.jg).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.Pe).f(d,"blur",a.vc).f(a.Oe(),"key",a.Gb):c.X(d,"focus",a.Pe).X(d,"blur",a.vc).X(a.Oe(),"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.rg=l};p.fg=o(!0);
p.gg=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.jg=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.Se(a);break;case "mouseout":b.Re(a)}};p.Pe=aa();p.vc=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.rg)&&this.wc(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
p.wc=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.$g|=2;a.$g|=64;(this.$b()||!this.Zi)&&Je(a,32,!1);Ge(a,!1);Te.b.Tc.call(this,a,b,c);c&&this.w&&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.te=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("cg");
p.ic=function(a){a!=this.cg&&this.w&&Ve(this,a);this.cg=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.De=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.De(b)});c!=ce(a.zb)&&d!=g;){var h=b[d],i=T(a.zb,c),k=i.item(),k=h.De(k);k==-1?(h=a.wh.fe(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.fe(b[d]),a.zb.ra(h,!0)};function ff(a){this.Gf=a.id;this.Hf=a.name;this.kh=a.input_ports;this.lh=a.output_ports;this.mh=a.rdm_devices}w(ff,bf);ff.prototype.id=n("Gf");ff.prototype.name=n("Hf");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.fe=function(a){return new gf(a,this.ob)};function jf(a){this.Gf=a.id;this.Hf=a.name}w(jf,bf);jf.prototype.id=n("Gf");jf.prototype.name=n("Hf");jf.prototype.De=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.fe=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.Vd=="function")d=a.Vd();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.$d=a||1;this.we=b||qf;this.Nf=ra(this.Hk,this);this.vg=ta()}w(pf,Q);pf.prototype.enabled=!1;var qf=r.window;p=pf.prototype;p.Fa=l;p.setInterval=function(a){this.$d=a;this.Fa&&this.enabled?(this.stop(),this.start()):this.Fa&&this.stop()};p.Hk=function(){if(this.enabled){var a=ta()-this.vg;if(a>0&&a<this.$d*0.8)this.Fa=this.we.setTimeout(this.Nf,this.$d-a);else if(this.dispatchEvent(rf),this.enabled)this.Fa=this.we.setTimeout(this.Nf,this.$d),this.vg=ta()}};
p.start=function(){this.enabled=!0;if(!this.Fa)this.Fa=this.we.setTimeout(this.Nf,this.$d),this.vg=ta()};p.stop=function(){this.enabled=!1;if(this.Fa)this.we.clearTimeout(this.Fa),this.Fa=l};p.g=function(){pf.b.g.call(this);this.stop();delete this.we};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.If(a)}p=tf.prototype;p.U=0;p.ih=0;p.oa=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.Vd=function(){uf(this);return this.N.concat()};p.Tf=function(a){return vf(this.da,a)};p.Ib=function(){return this.U==0};
p.clear=function(){this.da={};this.ih=this.U=this.N.length=0};p.remove=function(a){return vf(this.da,a)?(delete this.da[a],this.U--,this.ih++,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.ih++);this.da[a]=b};p.If=function(a){var b;a instanceof tf?(b=a.Vd(),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.If(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.oa=function(){return this.da.oa()};p.add=function(a){this.da.set(xf(a),a)};p.If=function(a){for(var a=mf(a),b=a.length,c=0;c<b;c++)this.add(a[c])};p.ie=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.Tf(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.ag=l;Cf.prototype.$f=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.ag;delete this.$f};Cf.prototype.Ug=ba("md");function Ef(a){this.Xj=a}Ef.prototype.D=l;Ef.prototype.md=l;Ef.prototype.Z=l;Ef.prototype.Yd=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.Ug=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.Yd)for(var g=0,h=j;h=c.Yd[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.ag=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(M){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.$f=g}return d};p.info=function(a,b){this.log(Jf,a,b)};function Pf(a,b){a.log(Lf,b,j)}p.ue=ba("D");var Qf={},Rf=l;
function Sf(){Rf||(Rf=new Ef(""),Qf[""]=Rf,Rf.Ug(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.ue(c);Qf[a]=b}return b};function Vf(){if(z)this.qc={},this.Ef={},this.yf=[]}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.yf.push(c)}}function Yf(){var a=Xf;if(a.S){var b=a.yf.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.yf.length;c++){var d=b.yf[c];ag(b.qc,d,a);ag(b.Ef,a,d)}}}function Zf(a,b){var c=a.Ef[b],d=a.qc[b];c&&d&&(a.ca.log(Mf,"Updating dependent contexts",j),tb(c,function(a){tb(d,function(b){ag(this.qc,a,b);ag(this.Ef,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.Be=l;var dg;function eg(){}w(eg,cg);function fg(a){return(a=gg(a))?new ActiveXObject(a):new XMLHttpRequest}function hg(a){var b={};gg(a)&&(b[0]=!0,b[1]=!0);return b}eg.prototype.mg=l;
function gg(a){if(!a.mg&&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.mg=d}catch(g){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return a.mg}dg=new eg;function ig(a){this.headers=new tf;this.Gd=a||l}w(ig,Q);ig.prototype.ca=Uf("goog.net.XhrIo");var jg=/^https?:?$/i;p=ig.prototype;p.Pb=!1;p.A=l;p.Df=l;p.va="";p.$h="";p.ae=0;p.cc="";p.Zf=!1;p.Ve=!1;p.ng=!1;p.xc=!1;p.zf=0;p.Nc=l;p.zi="";p.Sk=!1;
p.send=function(a,b,c,d){this.A&&e(Error("[goog.net.XhrIo] Object is active with another request"));b=b?b.toUpperCase():"GET";this.va=a;this.cc="";this.ae=0;this.$h=b;this.Zf=!1;this.Pb=!0;this.A=this.Gd?fg(this.Gd):fg(dg);this.Df=this.Gd?this.Gd.Be||(this.Gd.Be=hg(this.Gd)):dg.Be||(dg.Be=hg(dg));$f(this.A);this.A.onreadystatechange=ra(this.mi,this);try{Pf(this.ca,kg(this,"Opening Xhr")),this.ng=!0,this.A.open(b,a,!0),this.ng=!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.Tf("Content-Type")&&h.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");nf(h,function(a,b){this.A.setRequestHeader(b,a)},this);if(this.zi)this.A.responseType=this.zi;if("withCredentials"in this.A)this.A.withCredentials=this.Sk;try{if(this.Nc)qf.clearTimeout(this.Nc),this.Nc=l;if(this.zf>0)Pf(this.ca,kg(this,"Will abort after "+this.zf+"ms if incomplete")),this.Nc=qf.setTimeout(ra(this.Ik,
this),this.zf);Pf(this.ca,kg(this,"Sending request"));this.Ve=!0;this.A.send(a);this.Ve=!1}catch(i){Pf(this.ca,kg(this,"Send error: "+i.message)),lg(this,i)}};p.dispatchEvent=function(a){if(this.A){Wf(this.A);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.A)this.cc="Timed out after "+this.zf+"ms, aborting",this.ae=8,Pf(this.ca,kg(this,this.cc)),this.dispatchEvent("timeout"),this.abort(8)};
function lg(a,b){a.Pb=!1;if(a.A)a.xc=!0,a.A.abort(),a.xc=!1;a.cc=b;a.ae=5;mg(a);ng(a)}function mg(a){if(!a.Zf)a.Zf=!0,a.dispatchEvent("complete"),a.dispatchEvent("error")}p.abort=function(a){if(this.A&&this.Pb)Pf(this.ca,kg(this,"Aborting")),this.Pb=!1,this.xc=!0,this.A.abort(),this.xc=!1,this.ae=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ng(this)};p.g=function(){if(this.A){if(this.Pb)this.Pb=!1,this.xc=!0,this.A.abort(),this.xc=!1;ng(this,!0)}ig.b.g.call(this)};
p.mi=function(){!this.ng&&!this.Ve&&!this.xc?this.ek():og(this)};p.ek=function(){og(this)};
function og(a){if(a.Pb&&typeof ca!="undefined")if(a.Df[1]&&pg(a)==4&&rg(a)==2)Pf(a.ca,kg(a,"Local request error detected and ignored"));else if(a.Ve&&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.ae=6;var c;try{c=pg(a)>2?a.A.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.A){var c=a.A,d=a.Df[0]?s:l;a.A=l;a.Df=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.Ef[h];for(var i in g.qc)zb(g.qc[i],h),g.qc[i].length==0&&delete g.qc[i]}try{c.onreadystatechange=d}catch(k){a.ca.log(Hf,"Problem encountered resetting onreadystatechange: "+k.message,j)}}}p.ha=function(){return!!this.A};function pg(a){return a.A?a.A.readyState:0}
function rg(a){try{return pg(a)>2?a.A.status:-1}catch(b){return a.ca.log(If,"Can not get status: "+b.message,j),-1}}function sg(a){if(a.A)return bg(a.A.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.Le=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.oa=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.Ac=b||10;this.di>this.Ac&&e(Error(wg));this.aa=new ug;this.Xb=new wf;this.Wf=0;this.sg=l;this.ye()}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.sg!=l&&a-this.sg<this.Wf)){for(var b;this.aa.oa()>0;)if(b=this.aa.Yc(),this.Ag(b))break;else this.ye();!b&&this.oa()<this.Ac&&(b=this.Xc());if(b)this.sg=a,this.Xb.add(b);return b}};
p.Hc=function(a){return this.Xb.remove(a)?(this.Jf(a),!0):!1};p.Jf=function(a){this.Xb.remove(a);this.Ag(a)&&this.oa()<this.Ac?this.aa.Le(a):this.sc(a)};p.ye=function(){for(var a=this.aa;this.oa()<this.di;)a.Le(this.Xc());for(;this.oa()>this.Ac&&this.aa.oa()>0;)this.sc(a.Yc())};p.Xc=function(){return{}};p.sc=function(a){if(typeof a.j=="function")a.j();else for(var b in a)a[b]=l};p.Ag=function(a){return typeof a.ej=="function"?a.ej():!0};p.contains=function(a){return this.aa.contains(a)||this.Xb.contains(a)};
p.oa=function(){return this.aa.oa()+this.Xb.oa()};p.Ib=function(){return this.aa.Ib()&&this.Xb.Ib()};p.g=function(){vg.b.g.call(this);this.Xb.oa()>0&&e(Error("[goog.structs.Pool] Objects not released"));delete this.Xb;for(var a=this.aa;!a.Ib();)this.sc(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.Vd(),c=a.Fb(),a.oa()<=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.Vd=function(){for(var a=this.hb,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Jb);return b};p.Tf=function(a){return vb(this.hb,function(b){return b.Jb==a})};p.Ba=function(){return new yg(this)};
p.oa=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.Le=function(a,b){zg(this,a,b)};Ag.prototype.Yc=function(){return this.remove()};function Bg(a,b){this.pf=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.Wf)this.hj=r.setTimeout(ra(this.Te,this),this.Wf);return c}this.pf.Le(b||100,a);this.Te()};p.Te=function(){for(var a=this.pf;a.oa()>0;){var b=this.getObject();if(b)a.Yc().apply(this,[b]);else break}};p.Jf=function(a){Bg.b.Jf.call(this,a);this.Te()};p.ye=function(){Bg.b.ye.call(this);this.Te()};
p.g=function(){Bg.b.g.call(this);r.clearTimeout(this.hj);this.pf.clear();this.pf=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.sc=function(a){a.j()};Cg.prototype.Ag=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.qf=[]}w(W,Q);u(W);function Eg(a){E.call(this,"server_info_change");this.hc=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+"§ion="+d+"&hint="+g,h)}function Vg(a,b,c,d,g,h,i){X(a,"json/rdm/set_section_info?id="+b+"&uid="+c+"§ion="+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.Mg,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.qf.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.qf.push(new Dg(b,c,d,g)),a.si.getObject(function(b){if(a.qf.length){var c=a.qf.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.Hc(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.ag&&h.push("<br>",ya(Fa(a.$f||"")));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 zc(t.left,t.top,t.right-t.left,t.bottom-t.top));var t=J(a),y=J(c);if(t.v!=y.v){var M=t.v.body,y=hd(y),fa=new H(0,0),yc=Nc(K(M)),qg=M;do{var zi=yc==y?zd(qg):Cd(qg);fa.x+=zi.x;fa.y+=zi.y}while(yc&&yc!=y&&(qg=yc.frameElement)&&(yc=yc.parent));M=wc(fa,zd(M));x&&!gd(t)&&(M=wc(M,id(t)));q.left+=M.x;q.top+=
M.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 L;if(i&&(L=yd(c))&&m)L.top-=m.y,L.right-=m.x,L.bottom-=m.y,L.left-=m.x;a:{m=L;g=b.Ba();L=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;L=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,L|=1;h.x<m.left&&h.x+k.width>m.right&&i&16&&(k.width-=h.x+k.width-m.right,L|=4);if(h.x+k.width>m.right&&i&1)h.x=Math.max(m.right-k.width,m.left),L|=1;i&2&&(L|=(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,L|=2;h.y>=m.top&&h.y+k.height>m.bottom&&i&32&&(k.height-=h.y+k.height-m.bottom,L|=8);if(h.y+k.height>m.bottom&&i&4)h.y=Math.max(m.bottom-k.height,m.top),L|=2;i&8&&(L|=(h.y<m.top?64:0)|(h.y+k.height>m.bottom?128:0));i=L}else i=
256;L=i;if(L&496){c=L;break a}}td(c,g);vc(d,k)||Nd(c,k);c=L}return c};function nh(){}nh.prototype.Ma=aa();function oh(a,b){this.element=a;this.Uf=b}w(oh,nh);oh.prototype.Ma=function(a,b,c){mh(this.element,this.Uf,a,b,j,c)};function ph(a,b){this.Ta=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.rh=!0;p.qh=l;p.ld=!1;p.Ak=!1;p.ug=-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.ve&&this.ve.stop();this.Zd&&this.Zd.stop();a?this.Zg():this.fd()};p.Ma=s;
p.Zg=function(){if(!this.ld&&this.dispatchEvent("beforeshow")){this.e||e(Error("Caller must call setElement before trying to show the popup"));this.Ma();var a=K(this.e);this.Sh&&this.Ta.f(a,Hb,this.ck,!0);if(this.rh)if(this.Ta.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.Ta.f(a,"mousedown",this.li,!0);this.Ta.f(a,
"deactivate",this.ki)}else this.Ta.f(a,"blur",this.ki);this.Cd=="toggle_display"?(this.e.style.visibility="visible",R(this.e,!0)):this.Cd=="move_offscreen"&&this.Ma();this.ld=!0;this.ve?(lc(this.ve,"end",this.ni,!1,this),this.ve.play()):this.ni()}};p.fd=function(a){if(!this.ld||!this.dispatchEvent({type:"beforehide",target:a}))return!1;this.Ta&&this.Ta.ie();this.Zd?(lc(this.Zd,"end",sa(this.yh,a),!1,this),this.Zd.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.ug=ta();this.Zh=-1;this.dispatchEvent("show")};p.li=function(a){a=a.target;!Xc(this.e,a)&&(!this.qh||Xc(this.qh,a))&&!(ta()-this.ug<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.ug<150||this.fd()}};p.g=function(){ph.b.g.call(this);this.Ta.j();Mb(this.ve);Mb(this.Zd);delete this.e;delete this.Ta};function rh(a,b,c){oh.call(this,a,b);this.Yi=c}w(rh,oh);rh.prototype.Lh=o(5);rh.prototype.Ma=function(a,b,c,d){var g=mh(this.element,this.Uf,a,b,l,c,10,d);if(g&496){var h=sh(g,this.Uf),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.Lg=b||j;ph.call(this,a)}w(th,ph);th.prototype.Wg=function(a){this.Lg=a||j;this.H()&&this.Ma()};th.prototype.Ma=function(){if(this.Lg){var a=!this.H()&&this.Cd!="move_offscreen",b=this.a();if(a)b.style.visibility="hidden",R(b,!0);this.Lg.Ma(b,this.ti,this.xg);a&&R(b,!1)}};function uh(a,b,c){return Math.min(Math.max(a,b),c)};var Ng=Uf("ola");function vh(){Tf().Ug(Nf);var a=new lh(N("log"));if(!0!=a.Xh){var b=Tf(),c=a.qk;if(!b.Yd)b.Yd=[];b.Yd.push(c);a.Xh=!0}this.df=N("log_control");(new V).n(this.df);F(this.df,D,this.Pa,!1,this);a=this.fc=new th(document.getElementById("log_popup"));qh(a);a.Sh=!0;a=this.fc;qh(a);a.rh=!0}vh.prototype.Pa=function(){this.fc.h(!1);var a=this.fc;a.ti=2;a.H()&&a.Ma();var a=this.fc,b=new xc(2,2,2,2);a.xg=b==l||b instanceof xc?b:new xc(b,j,j,j);a.H()&&a.Ma();this.fc.Wg(new rh(this.df,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.na);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.bg=l;p.Y=!1;p.Ia=l;p.ja=l;p.wb=l;p.i=o("goog-modalpopup");p.Me=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.ja){var b;b=a.k().d("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});a.ja=b;a.ja.className=a.i()+"-bg";R(a.ja,!1);Hd(a.ja,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.ja){var a=this.a();a.parentNode&&a.parentNode.insertBefore(this.ja,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.bg=new wh(fd(this.k()));this.G().f(this.bg,"focusin",this.dk)};p.K=function(){this.H()&&this.h(!1);Mb(this.bg);xh.b.K.call(this);Tc(this.ja);Tc(this.Ia);Tc(this.wb)};p.h=function(a){a!=this.Y&&(a?this.Zg():this.fd())};
p.Zg=function(){if(this.dispatchEvent("beforeshow"))this.Pg(),this.Ma(),this.G().f(hd(this.k()),"resize",this.Pg),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.Pg),Ah(this,!1),this.Y=!1,this.dispatchEvent("hide")};function Ah(a,b){a.ja&&R(a.ja,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.Pg=function(){this.ja&&R(this.ja,!1);this.Ia&&R(this.Ia,!1);var a=fd(this.k()),b=Mc(Nc(a)||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);this.ja&&(R(this.ja,!0),Dd(this.ja,c,a));this.Ia&&(R(this.Ia,!0),Dd(this.Ia,c,a))};
p.Ma=function(){var a=fd(this.k()),b=Nc(a)||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),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.kg=!0;p.ei=!0;p.Dh=!0;p.Ae=0.5;p.Af="";p.ka="";p.ad=l;p.jj=!1;p.Oa=l;p.xb=l;p.dh=l;p.Nb=l;p.Ra=l;p.T=l;p.i=n("sa");p.M=function(a){this.Af=a;this.xb&&Yc(this.xb,a)};p.t=function(a){this.ka=a;if(this.Ra)this.Ra.innerHTML=a};p.B=function(){this.a()||this.L();return this.Ra};p.Me=function(){this.a()||this.L();return Bh.b.Me.call(this)};
function Gh(a,b){a.Ae=b;if(a.a()){var c=a.Me();c&&Hd(c,a.Ae)}}
p.d=function(){Bh.b.d.call(this);var a=this.a(),b=this.k();this.Oa=b.d("div",{className:this.sa+"-title",id:Yd(this)},this.xb=b.d("span",this.sa+"-title-text",this.Af),this.Nb=b.d("span",this.sa+"-title-close"));Rc(a,this.Oa,this.Ra=b.d("div",this.sa+"-content"),this.T=b.d("div",this.sa+"-buttons"));this.dh=this.Oa.id;ne(a,"dialog");U(a,"labelledby",this.dh||"");if(this.ka)this.Ra.innerHTML=this.ka;R(this.Nb,this.kg);if(this.ea)a=this.ea,a.e=this.T,a.L();R(this.T,!!this.ea);Gh(this,this.Ae)};
p.F=function(a){Bh.b.F.call(this,a);a=this.sa+"-content";if(this.Ra=Ic(document,l,a,this.a())[0])this.ka=this.Ra.innerHTML;else{this.Ra=this.k().d("div",a);if(this.ka)this.Ra.innerHTML=this.ka;this.a().appendChild(this.Ra)}var a=this.sa+"-title",b=this.sa+"-title-text",c=this.sa+"-title-close";(this.Oa=Ic(document,l,a,this.a())[0])?(this.xb=Ic(document,l,b,this.Oa)[0],this.Nb=Ic(document,l,c,this.Oa)[0]):(this.Oa=this.k().d("div",a),this.a().insertBefore(this.Oa,this.Ra));this.xb?this.Af=cd(this.xb):
(this.xb=this.k().d("span",b,this.Af),this.Oa.appendChild(this.xb));U(this.a(),"labelledby",this.dh||"");if(!this.Nb)this.Nb=this.k().d("span",c),this.Oa.appendChild(this.Nb);R(this.Nb,this.kg);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.Ae)};
p.o=function(){Bh.b.o.call(this);this.G().f(this,["show","hide"],this.zk);if(this.Dh&&!this.ad)I(this.Oa,this.sa+"-title-draggable"),this.ad=new jd(this.a(),this.Oa);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.w)){var a=this.k(),b=this.Me();a.removeNode(this.ja);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.w||this.L(),Bh.b.h.call(this,a))};p.zk=function(a){a.target==this&&(this.H()?(this.G().f(this.a(),Hb,this.jf).f(this.a(),"keypress",this.jf),this.dispatchEvent(Hh),this.Tg(),this.G().f(this.T,D,this.ji).f(hd(this.k()),"resize",this.Tg)):(this.G().X(this.a(),Hb,this.jf).X(this.a(),"keypress",this.jf).X(this.T,D,this.ji).X(hd(this.k()),"resize",this.Tg),this.dispatchEvent(Ih),this.jj&&this.j()))};
p.focus=function(){Bh.b.focus.call(this);if(this.ea){var a=this.ea.Ge;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.Tg=function(){if(this.Dh){var a=fd(this.k()),b=Mc(Nc(a)||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Ed(this.a());this.ad.be=sd(this.a())=="fixed"?new zc(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):new zc(0,0,c-d.width,a-d.height)}};p.gk=function(){if(this.kg){var a=this.ea,b=a&&a.Qf;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.jf=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.Qf,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.Ge,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.Ge=l;p.e=l;p.Qf=l;p.set=function(a,b,c,d){tf.prototype.set.call(this,a,b);if(c)this.Ge=a;if(d)this.Qf=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.Ge)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.oh=!1;this.J=j}$h.prototype.jb=ba("J");$h.prototype.lc=function(a){Nd(this.element,new G(a.width-7,a.height-34))};$h.prototype.setActive=ba("oh");$h.prototype.ha=n("oh");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.Xd();c&&this.za(b,c);(c=a.s())&&this.ia(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.eh=this.Xd(b);a.Q&16&&this.Ga(b,16,a.sb());return b};p.s=s;p.ia=s;p.Xd=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.Lf&=-256;Je(a,32,!1);return a.k().d("button",{"class":this.uc(a).join(" "),disabled:!a.isEnabled(),title:a.Xd()||"",value:a.s()||""},a.Eb()||"")};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.Lf&=-256;Je(a,32,!1);b.disabled&&I(b,this.Td(1));return bi.b.n.call(this,a,b)};p.kd=function(a){a.G().f(a.a(),D,a.Ec)};p.pe=s;
p.wd=s;p.$b=function(a){return a.isEnabled()};p.ic=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.ia=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.ia=function(a){this.Ha=a;this.m.ia(this.a(),a)};p.Xd=n("eh");p.za=function(a){this.eh=a;this.m.za(this.a(),a)};p.g=function(){ci.b.g.call(this);delete this.Ha;delete this.eh};p.o=function(){ci.b.o.call(this);if(this.Q&32){var a=this.V();a&&this.G().f(a,"keyup",this.wc)}};p.wc=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.Ec(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.uc(a).join(" "),title:a.Xd()||""},b=a.k().d("div",b,this.Ee(a.ka,a.k()));this.sf(a,b);return b};p.Ka=o("button");p.sf=function(a,b){a.isEnabled()||this.Ga(b,1,!0);a.yc()&&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.Ee=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.Ee(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.Ud=function(a){return a.tagName=="HR"?new Ne(Yh.c()):hi.b.Ud.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.Ff=a.device_id;this.Kd=a.manufacturer_id;this.Sc=a.device;this.Jd=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.Kd,4)+":"+li(a.Ff,8)}ji.prototype.toString=function(){var a="";this.Jd&&(a+=this.Jd);this.Jd&&this.Sc&&(a+=", ");this.Sc&&(a+=this.Sc);if(this.Jd||this.Sc)a+=" [";a+=ki(this);if(this.Jd||this.Sc)a+="]";return a};
ji.prototype.De=function(a){if(this.Kd>a.Kd)return 1;else if(this.Kd<a.Kd)return-1;return this.Ff-a.Ff};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.fe=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.uc(a).join(" "),qi(this,a.ka,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.tf(!0),this.tf(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.Xg=function(a,b,c){b&&(ne(b,c?"menuitemradio":this.Ka()),ri(this,a,b,c))};
p.tf=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.Td=function(a){switch(a){case 2:return pi(this,0);case 16:case 8:return"goog-option-selected";default:return oi.b.Td.call(this,a)}};
p.dg=function(a){var b=pi(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return oi.b.dg.call(this,a)}};p.i=o("goog-menuitem");function ti(a,b,c,d){V.call(this,a,d||oi.c(),c);this.ia(b)}w(ti,V);p=ti.prototype;p.s=function(){var a=this.zg;return a!=l?a:this.Eb()};p.ia=ba("zg");p.Xg=function(a){Je(this,8,a);this.sb()&&!a&&this.Kc(!1);var b=this.a();b&&this.m.Xg(this,b,a)};p.tf=function(a){Je(this,16,a);var b=this.a();b&&this.m.tf(this,b,a)};p.Eb=function(){var a=this.ka;return ha(a)?(a=ub(a,function(a){return xb(Bc(a),"goog-menuitem-accel")?"":ed(a)}).join(""),wa(a)):ti.b.Eb.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.pg=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.Of=function(a,b){var c=new H(this.me.scrollLeft,this.me.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.ne=new pf(wi);this.ma=new tc(this);this.rf=new H;this.Vc=Gd(a);this.xg=b||0;this.le=b?xi(this,this.Vc.Ba()):this.Vc;c||this.ma.f(K(this.Wc),"mousemove",this.Eg);this.ma.f(this.ne,rf,this.Hg)}w(vi,Kb);var wi=50;vi.prototype.gj=!1;function xi(a,b){var c=a.xg;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.Hg=function(){this.Wc.scrollTop+=this.rf.y;this.Wc.scrollLeft+=this.rf.x};
vi.prototype.Eg=function(a){var b=yi(a.clientX,this.le.left,this.le.width),c=yi(a.clientY,this.le.top,this.le.height);this.rf.x=b;this.rf.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.ne.stop():this.ne.enabled||this.ne.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.ma.j();this.ne.j()};function Ai(a,b){vi.call(this,a,b,!0)}w(Ai,vi);Ai.prototype.u=function(a){a?this.ma.f(K(this.Wc),"mousemove",this.Eg):this.ma.X(K(this.Wc),"mousemove",this.Eg)};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.Ud=function(a){return a.tagName=="HR"?new Ne:Hi.b.Ud.call(this,a)};p.pc=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.ic(!1)}w(Ki,Te);p=Ki.prototype;p.Kf=!0;p.$i=!1;p.i=function(){return this.m.i()};p.pc=function(a){if(this.m.pc(this,a))return!0;for(var b=0,c=ce(this);b<c;b++){var d=T(this,b);if(typeof d.pc=="function"&&d.pc(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.Ne=function(){return ce(this)};
p.Wg=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.w&&this.Kf&&this.V().focus();this.pi=a&&c&&ja(c.clientX)?new H(c.clientX,c.clientY):l;return b};p.fg=function(a){this.Kf&&this.V().focus();return Ki.b.fg.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.v,"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.se(d)}return Li.b.n.call(this,a,b)};
p.Ee=function(a,b){return Li.b.Ee.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.se(b);this.Fa=new pf(500);if((Fi||Gi)&&!B("533.17.9"))this.Ye=!0}w(Mi,ci);p=Mi.prototype;p.ph=!0;p.Qg=!1;p.Ye=!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.Ec=function(){this.setActive(!1);return!0};p.wj=function(a){this.l&&this.l.H()&&!this.pc(a.target)&&this.P(!1)};p.pc=function(a){return a&&Xc(this.a(),a)||this.l&&this.l.pc(a)||!1};
p.wc=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.ig=function(){this.P(!1)};p.Dj=function(){this.ha()||this.P(!1)};p.vc=function(a){this.Ye||this.P(!1);Mi.b.vc.call(this,a)};function Oi(a){a.l||a.se(new Ki(a.k()));return a.l||l}
p.se=function(a){var b=this.l;if(a!=b&&(b&&(this.P(!1),this.w&&Ni(this,b,!1),delete this.l),a)){this.l=a;$d(a,this);a.h(!1);var c=this.Ye;(a.Kf=c)&&a.ic(!0);this.w&&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.Ne=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.w||(this.uk?this.l.L(this.a().parentNode):this.l.L()),this.Pc=yd(this.a()),this.oc=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.kf!=l){this.kf=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.Ye&&d.call(c,this.l,"blur",this.Dj);d.call(c,this.Fa,rf,this.Hg);
a?this.Fa.start():this.Fa.stop()}}};function Pi(a){if(a.l.w){var b=new Bi(a.mk||a.a(),a.ph?5:7,!a.Qg,a.Qg),c=a.l.a();if(!a.l.H())c.style.visibility="hidden",R(c,!0);if(!a.kf&&a.Qg)a.kf=Ed(c);b.Ma(c,a.ph?4:6,l,a.kf);if(!a.l.H())R(c,!1),c.style.visibility="visible"}}
p.Hg=function(){var a=Gd(this.a()),b=yd(this.a());if(!(this.oc==a||(!this.oc||!a?0:this.oc.left==a.left&&this.oc.width==a.width&&this.oc.top==a.top&&this.oc.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.oc=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.ig);c.call(d,b,"highlight",a.gg);c.call(d,b,"unhighlight",a.jg)}
p.gg=function(a){U(this.a(),"activedescendant",a.target.a().id)};p.jg=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.Ne=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.Ne())};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.Wd=n("ub");
p.jc=function(a){if(a!=this.ub)Si(this,this.ub,!1),this.ub=a,Si(this,a,!0);this.dispatchEvent("select")};p.Ub=function(){return this.ub?sb(this.ac,this.ub):-1};p.xa=function(a){this.jc(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.Yg=="function"&&b.Yg(c))};function $(a,b,c,d){Mi.call(this,a,b,c,d);this.He=a;Ti(this);this.nf="listbox"}w($,Mi);p=$.prototype;p.z=l;p.He=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.Eb())?(this.He=a,Ti(this)):this.xa(0)};p.g=function(){$.b.g.call(this);if(this.z)this.z.j(),this.z=l;this.He=l};p.ig=function(a){this.jc(a.target);$.b.ig.call(this,a);a.stopPropagation();this.dispatchEvent("action")};
p.Kj=function(){var a=this.Wd();$.b.ia.call(this,a&&a.s());Ti(this)};p.se=function(a){var b=$.b.se.call(this,a);a!=b&&(this.z&&this.z.clear(),a&&(this.z?be(a,function(a){Vi(a);this.z.bb(a)},this):Wi(this,a)));return b};p.bb=function(a){Vi(a);$.b.bb.call(this,a);this.z?this.z.bb(a):Wi(this,Oi(this))};p.Uc=function(a,b){Vi(a);$.b.Uc.call(this,a,b);this.z?this.z.Uc(a,b):Wi(this,Oi(this))};p.removeItem=function(a){$.b.removeItem.call(this,a);this.z&&this.z.removeItem(a)};
p.td=function(a){$.b.td.call(this,a);this.z&&this.z.td(a)};p.jc=function(a){this.z&&this.z.jc(a)};p.xa=function(a){this.z&&this.jc(this.z.cd(a))};p.ia=function(a){if(a!=l&&this.z)for(var b=0,c;c=this.z.cd(b);b++)if(c&&typeof c.s=="function"&&c.s()==a){this.jc(c);return}this.jc(l)};p.Wd=function(){return this.z?this.z.Wd():l};p.Ub=function(){return this.z?this.z.Ub():-1};function Wi(a,b){a.z=new Qi;b&&be(b,function(a){Vi(a);this.z.bb(a)},a);Ui(a)}function Ui(a){a.z&&a.G().f(a.z,"select",a.Kj)}
function Ti(a){var b=a.Wd();a.t(b?b.Eb():a.He)}function Vi(a){a.nf=a instanceof ti?"option":"separator"}p.P=function(a,b){$.b.P.call(this,a,b);this.q&64&&We(Oi(this),this.Ub())};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.uc(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.Qe){var a=this.G();this.tb&&a.f(this.tb,D,this.eg).f(this.tb,"mouseover",this.Se).f(this.tb,"mouseout",this.Re).f(this.tb,"mousedown",this.Vb).f(this.tb,"mouseup",this.Wb);a.f(this.a(),D,this.eg)}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.eg=function(a){a.stopPropagation();var b=this.Rb?"uncheck":"check";this.isEnabled()&&this.dispatchEvent(b)&&(a.preventDefault(),this.toggle(),this.dispatchEvent("change"))};p.wc=function(a){a.keyCode==32&&this.eg(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.Id=[]}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.la=[];this.rows=[];this.Mf=[];this.Xf=[];this.Ie=[];this.Ad=this.ab=this.Bb=j;this.Rg=new Ai(this.element);this.Jg=j;this.mc=[];this.Ig=!1}p=jj.prototype;p.lc=function(a){this.element.style.height=a+"px";a=this.Rg;a.Vc=Gd(a.Wc);a.le=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.Mf.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.Xf.push(c);b.appendChild(c);this.element.appendChild(b)}for(a=
0;a<this.rows.length;++a)this.rows[a].style.display="block";this.Jc()};
p.Jc=function(){this.la.sort(hj);var a=[];a.push(Fb());for(var b=0;b<this.Ie.length;++b)qc(this.Ie[b]);this.Ie=[];for(b=0;b<this.la.length;++b){var c=this.la[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.Id.length;++h)qc(g.Id[h]);g.Id=[]}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.Mf.length;++h)this.Mf[h].style.height=g-1+"px";this.Rf=g;for(h=0;h<this.Xf.length;++h){b=this.Xf[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.Id.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.me=a.element;
m.lg=Math.pow(8,2);F(m,"start",function(a,b){return function(c){for(var d=b.Id,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.Sf=d.width/8-1;this.element.appendChild(a);a.className="draggable_device";Hd(a,0.5);a.style.width=this.Sf+"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.Nd.be=new zc(0,0,d.width-g.width-1,64*this.Rf-g.height-1)||new zc(NaN,
NaN,NaN,NaN);this.Rg.u(!0)}}(k,i),!1,a);F(m,"end",function(a,b){return function(c){Hd(a,1);this.Rg.u(!1);var d=Md(a),g=Math.max(0,c.Nd.cb),c=Math.max(0,c.Nd.eb),g=Math.min(g+d.width/2,this.Sf*8-1),d=Math.min(c+d.height/2,this.Rf*64-1),d=Math.floor(g/this.Sf)+8*Math.floor(d/this.Rf);Tc(a);nj(this,b,d+1)}}(k,i),!1,a);m.me=a.element;a.Ie.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.Ne()-1;c>=0;--c)a.rd.td(c);a.Jg=[];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.jc(h);a.Jg.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.Jc()});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.Jg[a.target.Ub()],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.Jc())})};p.Jk=function(a){var b=W.c();this.hd.style.display="inline";var c=this;Vg(b,this.J,this.ab.Dd,"identify_device","","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.mc[0];Vg(W.c(),a.J,b.Bh.Dd,"dmx_address","","address="+b.hi,function(b){var b=dh(W.c(),b),d=a.mc.shift();b==j?a.Ig=!0:d.Bh.setStart(d.hi);a.mc.length?qj(a):(b=Y.c(),a.Ig?(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.Jc())})};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.sh()},!1,this);a=ae(a,"patcherRefreshButton");a.za("Refresh Devices");F(a,"action",function(){uj(this)},!1,this);this.Dc=new jj("patcher_div","patcher_status");this.ge=[];this.la=[];this.zc=P("div");this.zc.style.width="100%";this.zc.style.textAlign="center";this.zc.innerHTML='<img src="/loader.gif"><br>Loading...</div>';this.zc.style.marginTop=
"10px";Qc(N("patcher_div"),this.zc)}w(tj,$h);p=tj.prototype;p.jb=function(a){tj.b.jb.call(this,a);this.Dc.jb(a);this.ge=[];this.Dc.la=[]};p.lc=function(a){tj.b.lc.call(this,a);this.Dc.lc(a.height-34-27-16-5)};p.setActive=function(a){tj.b.setActive.call(this,a);this.ha()&&uj(this)};p.xe=function(a){if(dh(W.c(),a)!=j){this.ge=[];this.la=[];for(var a=sg(a.target).uids,b=0;b<a.length;++b)this.ge.push(new ji(a[b]));this.ha()&&vj(this)}};
function vj(a){if(a.ge.length){var b=W.c(),c=a.ge.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.la.push(new fj(ki(c),g,b.address,b.footprint,b.personality,b.personality_count))}vj(a)}})}else a.Dc.la=a.la,a.zc.style.display="none",a.Dc.update()}function uj(a){kj(a.Dc);a.zc.style.display="block";Wg(W.c(),a.J,function(b){a.xe(b)})}
p.sh=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.sh,!1,this);if(a.key=="yes"){a=this.Dc;a.mc=[];for(var c=b=0;c<a.la.length;++c)b+=a.la[c].pb;a.la.sort(ij);if(b>512)for(c=a.la.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.mc.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.la.length;++c)a.mc.push(new ej(a.la[c],b+1)),b+=a.la[c].pb;
if(a.mc.length)b=Y.c(),b.Lb(),b.h(!0),a.Ig=!1,qj(a);return!1}};function wj(a){this.zb=a;this.Fd=[];this.enabled=this.kc=!1;this.J=j}wj.prototype.ya=function(a,b){this.enabled=a;this.J=b;if(this.enabled){if(!this.kc){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=" ";d.appendChild(g);d.appendChild(h);this.zb.appendChild(d);this.Fd.push(h)}this.kc=!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.qe(d,b[d]);for(d=c;d<512;++d)zj(a,d);a.enabled&&sf(function(){xj(a)},1E3)}wj.prototype.qe=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=" ",c.style.background="#ffffff"};function Aj(a){$h.call(this,a);this.kj=new wj(N("monitor_values"));this.kc=!1}w(Aj,$h);Aj.prototype.setActive=function(a){Aj.b.setActive.call(this,a);if(this.ha()&&!this.kc){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.kc=!0}this.kj.ya(a,this.J)};Aj.prototype.Rk=function(a){a.target.Eb()=="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.gf,!1,i),F(a,Hb,i.hf,!1,i)}this.p=g||J();this.Db=this.p.a(a)||l;this.Od=this.p.a(d||l);this.$=(this.wg=ka(b)?b:l)||!b?l:this.p.a(b);this.Sa=c==!0;var i=this;h(this.Db);h(this.Od);this.vd(this.Sa)}w(Bj,Q);p=Bj.prototype;p.g=function(){this.Db&&qc(this.Db);this.Od&&qc(this.Od);Bj.b.g.call(this)};p.B=n("$");p.toggle=function(){this.vd(!this.Sa)};
p.vd=function(a){if(this.$)R(this.$,a);else if(a&&this.wg)this.$=this.wg();this.Od?(R(this.Db,!a),R(this.Od,a)):(Cj(this,a),this.Db&&U(this.Db,"expanded",a));this.Sa=a;this.dispatchEvent(new Dj("toggle",this,this.Sa))};function Cj(a,b){a.Db&&(Ec(a.Db,"goog-zippy-expanded",b),Ec(a.Db,"goog-zippy-collapsed",!b))}p.hf=function(a){if(a.keyCode==13||a.keyCode==32)this.toggle(),a.preventDefault(),a.stopPropagation()};p.gf=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.nh=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.La=0;p.startTime=l;p.Eh=l;p.tg=l;
p.play=function(a){if(a||this.q==0)this.La=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.La);this.Eh=this.startTime+this.duration;this.tg=this.startTime;this.La||this.Cc();Kj(this,"play");this.q==-1&&this.Fg();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.La=1;Lj(this,this.La);this.Gg();this.ff()};
p.g=function(){this.q!=0&&this.stop(!1);this.Dg();Ej.b.g.call(this)};function Ij(a,b){a.La=(b-a.startTime)/(a.Eh-a.startTime);if(a.La>=1)a.La=1;a.Hh=1E3/(b-a.tg);a.tg=b;Lj(a,a.La);a.La==1?(a.q=0,Jj(a),Kj(a,"finish"),a.ff()):a.q==1&&a.Cg()}function Lj(a,b){ka(a.nh)&&(b=a.nh(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.Cg=function(){Kj(this,"animate")};p.Cc=function(){Kj(this,"begin")};p.Dg=function(){Kj(this,"destroy")};
p.ff=function(){Kj(this,"end")};p.Fg=function(){Kj(this,"resume")};p.Gg=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.La=b.La;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.Je=d;this.nb=l;Bj.call(this,a,b,c);a=this.Sa;this.Je.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.Sa!=a||this.nb){if(this.Je.style.display=="none")this.Je.style.display="";var b=this.B().offsetHeight,c=0;this.nb?(a=this.Sa,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.Sa=a;this.nb=l;if(!a)this.Je.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.he=function(){return this.data.id};p.yc=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.yc()&&b.push(g.he())}return b}
p.Ng=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.Ng();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.priority_capability==j?this.p.appendChild(a,O("td",{},"Not supported")):(this.Wa=P("input"),this.Wa.value=b.value,this.Wa.maxLength=3,this.Wa.size=3,b.priority_capability=="full"?(this.qa=new $,this.qa.bb(new ti("Inherit")),
this.qa.bb(new ti("Static")),this.qa.xa(b.current_mode=="inherit"?0:1),this.ui(),b=P("td"),this.qa.L(b),this.p.appendChild(b,this.Wa),this.p.appendChild(a,b)):b.priority_capability=="static"&&this.p.appendChild(a,this.Wa));this.e=a};p.o=function(){Rj.b.o.call(this);this.qa!=j&&(F(this.qa,"action",this.ui,!1,this),F(this.qa.a(),D,function(a){a.stopPropagation()}));this.Wa!=j&&F(this.Wa,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.Wa&&qc(this.Wa);this.qa&&(qc(this.qa.a()),qc(this.qa),this.qa.K());qc(this.a())};p.j=function(){if(!this.Jh()){Rj.b.j.call(this);this.Ja.j();this.Ja=j;if(this.qa)this.qa.j(),this.qa=j;this.Wa=j}};p.he=function(){return this.data.id};p.yc=function(){return this.Ja.sb()};p.Mg=function(){if(this.data.priority.priority_capability!=j)return this.Wa.value};p.ui=function(){this.Wa.style.visibility=this.qa.Wd().Eb()=="Static"?"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.Ng=function(){for(;ce(this);)fe(this,0).j()};p.update=function(a){this.Ng();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.Sg=W.c();var c=N("universe_save_button");we(c);F(c,D,function(){Uj(this,!1)},!1,this);this.yg=we(N("universe_merge_mode"));this.We=new Sj;this.We.n(N("input_ports"));this.lf=new Sj;this.lf.n(N("output_ports"));new Nj("additional_ports_expander","additional_ports");this.nc=new Pj;this.nc.n(N("universe_available_ports"));F(this.Sg,"universe_change",this.Mk,!1,this)}w(Tj,$h);p=Tj.prototype;p.jb=function(a){Tj.b.jb.call(this,a)};
p.lc=function(a){Tj.b.lc.call(this,a)};p.setActive=function(a){Tj.b.setActive.call(this,a);this.ha()&&Vj(this)};function Vj(a){Pg(a.Sg,a.J);a.nc.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.yg.xa(0):this.yg.xa(1),this.We.update(a.Oc.input_ports),this.lf.update(a.Oc.output_ports))};
function Wj(a,b){var c=a.Mg();if(c!=j){var d={};d.id=a.he();d.Mg=c;c=a.data.priority.priority_capability;c=c=="full"?a.qa.s()=="Inherit"?"inherit":"static":c=="static"?"static":j;if(c!=j)d.mode=c;b.push(d)}}
function Uj(a,b){for(var c=Y.c(),d=[],g=[],h=!1,i=ce(a.We),k=0;k<i;++k){var m=T(a.We,k);m.yc()?(h=!0,Wj(m,d)):g.push(m.he())}i=ce(a.lf);for(k=0;k<i;++k)m=T(a.lf,k),m.yc()?(h=!0,Wj(m,d)):g.push(m.he());i=Qj(a.nc);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.Sg,a.J,h,a.yg.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.Pa=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.Va=[];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.gf,!1,this);F(this.Ca,Hb,this.hf,!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.gf,!1,this);mc(this.Ca,Hb,this.hf,!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.Va[d]);c.Va.splice(d.jd,1);d.ue(l);Tc(d.bd);Tc(d.$);for(var g=0;d=c.Va[g];g++)d.ue(c,g)}c=a.Va.length;ga(j)&&j!=c?(c=j,a.Va.splice(c,0,b),a.Ca.insertBefore(b.bd,a.Ca.childNodes[c])):(a.Va.push(b),a.Ca.appendChild(b.bd));b.ue(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.Va[d];d++)c.jd=d}
p.xa=function(a){if(a>=0&&a<this.Va.length&&(a=this.Va[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.Ub=function(){return this.Xa?this.Xa.jd:-1};p.B=function(){return this.$||l};p.a=function(){return this.ta||l};p.gf=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.hf=function(a){if(!a.altKey&&!a.metaKey&&!a.ctrlKey)switch(a.keyCode){case 37:a=this.Xa.jd-1;this.xa(a<0?this.Va.length-1:a);break;case 39:a=this.Xa.jd+1;this.xa(a>=this.Va.length?0:a);break;case 36:this.xa(0);break;case 35:this.xa(this.Va.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.ue=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.Xg(!0)}w(ek,ti);ek.prototype.Ec=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.Md=this.Ab=j;this.Yf=[];this.mb=[];this.wa=j;this.Qd=ae(b,"showAllSectionsButton");this.Qd.za("Show All Attributes");this.Qd.u(!1);F(this.Qd,"action",function(){for(var a=0;a<this.mb.length;++a)this.mb[a].Sa||(this.mb[a].vd(!0),this.wa[a].loaded||ik(this,a))},!1,this);this.Ld=ae(b,"hideAllSectionsButton");this.Ld.za("Hide All Attributes");this.Ld.u(!1);F(this.Ld,"action",function(){for(var a=0;a<this.mb.length;++a)this.mb[a].Sa&&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.of=new pf(3E4);F(this.of,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.Md=ki(b);a.Qd.u(!0);a.Ld.u(!0)}hk.prototype.clear=function(){this.Md=j;this.Qd.u(!1);this.Ld.u(!1);this.element.innerHTML=""};
hk.prototype.rk=function(a){a=a.target.Eb();if(a=="Never")this.of.stop();else{var b=jk[a];b!=j?this.of.setInterval(b):Ng.info("Invalid timeout "+a);this.of.start()}};hk.prototype.sk=function(){for(var a=0;a<this.mb.length;++a)this.mb[a].Sa&&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.Yf=[];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.Yf.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.Md,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.Yf[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.Sa&&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.Ub(),m=c[i].value[m].value,h+=k+"="+m+"&"}Vg(W.c(),a.Ab,a.Md,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.wf=new ge(new S,new S,"horizontal");this.wf.og=250;this.wf.ed=2;this.wf.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.fh=new pf(rk);F(this.fh,rf,this.xe,!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.Md=j;this.wi.clear()};pk.prototype.lc=function(a){je(this.wf,new G(a.width-7,a.height-67))};pk.prototype.setActive=function(a){pk.b.setActive.call(this,a);this.xe();this.ha()?this.xe():this.fh.stop()};
pk.prototype.xe=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.fh.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.na;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.Gc=[]}w(vk,Ej);vk.prototype.Fg=function(){wk(this,function(a){a.play(a.La==0)});vk.b.Fg.call(this)};vk.prototype.Gg=function(){wk(this,function(a){a.stop()});vk.b.Gg.call(this)};vk.prototype.Dg=function(){xk(this);vk.b.Dg.call(this)};function xk(a){tb(a.Gc,function(a){a.j()})}function yk(){vk.call(this)}w(yk,vk);yk.prototype.Cc=function(){for(var a=0;a<this.Gc.length;a++)this.Gc[a].play();yk.b.Cc.call(this)};function wk(a,b){tb(a.Gc,b)}
yk.prototype.add=function(a){this.Gc.push(a);this.duration=Math.max(this.duration,a.duration)};yk.prototype.remove=function(a){if(zb(this.Gc,a)&&a.duration==this.duration)this.duration=0,tb(this.Gc,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.Cg=function(){this.Ed();zk.b.Cg.call(this)};zk.prototype.ff=function(){this.Ed();zk.b.ff.call(this)};zk.prototype.Cc=function(){this.Ed();zk.b.Cc.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.Cc=function(){this.zd=[this.element.offsetLeft,this.element.offsetTop];Bk.b.Cc.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.Ua=100;p.Ea=0;p.Bd=1;p.rb=!1;p.od=!1;p.ia=function(a){a=Fk(this,a);if(this.Ha!=a)this.Ha=a+this.Ea>this.Ua?this.Ua-this.Ea:a<this.gb?this.gb:a,!this.rb&&!this.od&&this.dispatchEvent("change")};p.s=function(){return Fk(this,this.Ha)};p.re=function(a){a=Fk(this,a);if(this.Ea!=a)this.Ea=a<0?0:this.Ha+a>this.Ua?this.Ua-this.Ha:a,!this.rb&&!this.od&&this.dispatchEvent("change")};
p.Tb=function(){return this.Bd==l?this.Ea:Math.round(this.Ea/this.Bd)*this.Bd};p.vf=function(a){if(this.gb!=a){var b=this.rb;this.rb=!0;this.gb=a;if(a+this.Ea>this.Ua)this.Ea=this.Ua-this.gb;a>this.Ha&&this.ia(a);if(a>this.Ua)this.Ea=0,this.uf(a),this.ia(a);this.rb=b;!this.rb&&!this.od&&this.dispatchEvent("change")}};p.pa=function(){return Fk(this,this.gb)};
p.uf=function(a){a=Fk(this,a);if(this.Ua!=a){var b=this.rb;this.rb=!0;this.Ua=a;a<this.Ha+this.Ea&&this.ia(a-this.Ea);if(a<this.gb)this.Ea=0,this.vf(a),this.ia(this.Ua);if(a<this.gb+this.Ea)this.Ea=this.Ua-this.gb;this.rb=b;!this.rb&&!this.od&&this.dispatchEvent("change")}};p.ua=function(){return Fk(this,this.Ua)};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.Xe=!1;p.Wj=!1;p.Qb=10;p.ce=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.tc=new jd(this.Da);this.Ob.Vf=this.tc.Vf=s;this.ba=new ze(this.a());this.de=new tk(this.a());this.G().f(this.Ob,"beforedrag",this.Nh).f(this.tc,"beforedrag",this.Nh).f(this.Ob,["start","end"],this.Qh).f(this.tc,["start","end"],this.Qh).f(this.ba,"key",this.hg).f(this.a(),"mousedown",this.Ej).f(this.de,"mousewheel",this.Fj);this.a().tabIndex=0;Jk(this)};p.K=function(){Gk.b.K.call(this);Lb(this.Ob,this.tc,this.ba,this.de)};
p.Nh=function(a){var b=a.Nd==this.Ob?this.I:this.Da,c;this.C=="vertical"?(c=this.a().clientHeight-b.offsetHeight,c=(c-a.top)/c*(this.ua()-this.pa())+this.pa()):c=a.left/(this.a().clientWidth-b.offsetWidth)*(this.ua()-this.pa())+this.pa();c=a.Nd==this.Ob?Math.min(Math.max(c,this.pa()),this.s()+this.Tb()):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.hg=function(a){var b=!0;switch(a.keyCode){case 36:Lk(this,this.pa());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.gh);break;case 39:case 38:Mk(this,a.shiftKey?this.Qb:this.gh);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.ah(a);this.Za=Ok(this,Nk(this,a));this.Vh=this.C=="vertical"?this.af<this.Za.offsetTop:this.af>this.Za.offsetLeft+this.Za.offsetWidth;a=K(this.a());this.G().f(a,"mouseup",this.Ph,!0).f(this.a(),"mousemove",this.ah);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.gh);a.preventDefault()};
p.Rh=function(){var a;if(this.C=="vertical"){var b=this.af,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.af,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.ah)};
function Qk(a,b){var c=Bd(b,a.a());return a.C=="vertical"?c.y:c.x}p.ah=function(a){this.af=Qk(this,a)};function Nk(a,b){var c=a.pa(),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.Tb();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.pa(),a.ua()-a.ce),d=uh(d,a.pa()+a.ce,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.ce&&(d=c-a.r.s());var g=d||a.r.Tb();b==a.I&&c>=a.pa()&&c<=a.r.s()+g-a.ce&&(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.re(d)}
function Rk(a,b,c){if(a.pa()<=b&&b<=a.ua()-c&&a.ce<=c&&c<=a.ua()-b&&!(b==a.s()&&c==a.Tb()))a.r.od=!0,a.r.re(0),a.r.ia(b),a.r.re(c),a.r.od=!1,Jk(a),a.dispatchEvent("change")}p.pa=function(){return this.r.pa()};p.vf=function(a){this.r.vf(a)};p.ua=function(){return this.r.ua()};p.uf=function(a){this.r.uf(a)};function Ok(a,b){return b<=a.r.s()+a.r.Tb()/2?a.I:a.Da}p.Ij=function(){Jk(this);Ik(this);this.dispatchEvent("change")};
function Jk(a){if(a.I&&!a.Xe){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.ef+"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.ef+"px",a.O.style.width=b.size+"px"}}function Tk(a,b,c){var d=Math.ceil(c/2);return{ef: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.pa(),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.pa()));a.Xe&&a.Fe.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.Tb());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.ef],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.ef,a.O.offsetTop],100)),c.add(new Ck(a.O,a.O.offsetWidth,g.size,
100)))}a.Fe=c;a.G().f(c,"end",a.nj);a.Xe=!0;Kk(a,d,b);c.play(!1)}p.nj=function(){this.Xe=!1};p.te=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.Fe&&this.Fe.j();delete this.Fe;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.de&&(this.de.j(),delete this.de);this.Ob&&(this.Ob.j(),delete this.Ob);this.tc&&(this.tc.j(),delete this.tc)};p.gh=1;p.s=function(){return this.r.s()};p.ia=function(a){Kk(this,this.I,a)};p.Tb=function(){return this.r.Tb()};p.re=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.pa()),U(b,"valuemax",a.ua()),U(b,"valuenow",a.s()))};function Uk(a){Gk.call(this,a);this.r.re(0)}w(Uk,Gk);Uk.prototype.i=function(a){return a=="vertical"?"goog-slider-vertical":"goog-slider-horizontal"};function Vk(){this.kc=!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.qe(c,this.data[c])};
function Yk(a){if(!a.kc){var b=new ii;a.gc=new gi(O("div","ola-icon ola-icon-prev"));a.gc.za("Previous Page");a.Bc=new gi(O("div","ola-icon ola-icon-next"));a.Bc.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.Bc,!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.Bc,"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.te(Hk.Ui);i.vf(0);i.uf(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.qe(c,b);this.data[c]!=b&&(this.data[c]=b,this.dispatchEvent(new Wk))}}(b),!1,a);a.yd.push(i)}a.kc=!0;Zk(a,0)}}p.update=function(){this.Ya==0?this.gc.u(!1):this.gc.u(!0);this.Ya==496?this.Bc.u(!1):this.Bc.u(!0)};p.$j=function(){this.Ya+=16;this.gc.u(!0);if(this.Ya>=496)this.Ya=496,this.Bc.u(!1);Xk(this)};p.pk=function(){this.Ya-=16;this.Bc.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].ia(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.qe(d,b);for(d=0;d<a.yd.length;++d)a.yd[d].ia(b);a.dispatchEvent(new Wk)}
p.qe=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.bh=new pf(1E3);this.ee=!0;F(this.bh,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.ee=!0,Yk(this.$c),this.$c.update(),al(this)):this.bh.stop()};
function al(a){ah(W.c(),a.J,function(b){a.$c.setData(b.dmx);a.ee=!1;a.ha()&&a.bh.start()})}$k.prototype.xh=function(){if(!this.ee){this.ee=!0;var a=this.$c.getData(),b=this;bh(W.c(),this.J,a,function(){b.ee=!1})}};function bl(a,b){this.element=N(a);this.Bg=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.Hd()}));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.Ub()].lc(b)}bl.prototype.Pa=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.Pa.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.Ub()].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.Bg.Hd())};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.hc.hostname;N("server_ip").innerHTML=a.hc.ip;N("server_broadcast").innerHTML=a.hc.broadcast;N("server_mac").innerHTML=a.hc.hw_address;N("server_instance_name").innerHTML=a.hc.instance_name;N("server_version").innerHTML=a.hc.version;N("server_uptime").innerHTML=a.hc.up_since;if(!a.hc.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.kh.toString()),O("td",{},this.$a.lh.toString()),O("td",{},this.$a.mh.toString()))};
fl.prototype.update=function(a){var b=Uc(this.a()),b=Wc(b);b.innerHTML=a.name();b=Wc(b);b.innerHTML=a.kh.toString();b=Wc(b);b.innerHTML=a.lh.toString();b=Wc(b);b.innerHTML=a.mh.toString()};function gl(){}gl.prototype.fe=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.hh=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.hh,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.Bg=b;var c=N("cancel_new_universe_button");we(c);F(c,D,b.Hd,!1,b);c=N("confirm_new_universe_button");we(c);F(c,D,this.Xi,!1,this);this.nc=new Pj;this.nc.n(N("available_ports"))}w(il,Xj);il.prototype.Pa=function(){N("new_universe_id").value="";N("new_universe_name").value="";this.nc.update();bl.b.Pa.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.nc);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.Bg,a=a.universe,jl(b),b.Bf.Pa(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.bf=F(this.Qc,"resize",this.Jj,!1,this);this.xd=Mc(this.Qc);if(A&&Oa||Ta&&this.Qc.self!=this.Qc.top)this.Cf=window.setInterval(ra(this.uh,this),nl)}w(ml,Q);var nl=500;p=ml.prototype;p.bf=l;p.Qc=l;p.xd=l;p.Cf=l;p.Mh=function(){return this.xd?this.xd.Ba():l};p.g=function(){ml.b.g.call(this);if(this.bf)oc(this.bf),this.bf=l;if(this.Cf)window.clearInterval(this.Cf),this.Cf=l;this.xd=this.Qc=l};p.Jj=function(){this.uh()};
p.uh=function(){var a=Mc(this.Qc);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.Bf=new bl("universe_frame",this);var a=this;this.Kg=new kl("plugin_frame",function(b){Og(a.pd,b);jl(a);a.Kg.Pa()});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.xf=new ge(b,c,"horizontal");this.xf.og=130;this.xf.ed=2;this.xf.n(N("split_pane"));this.Oi=new ml;this.jh();F(this.Oi,"resize",this.jh,!1,this);pl(this);this.Hd();N("split_pane").style.visibility=
"visible"}
function pl(a){var b=N("home_control");we(b);F(b,D,a.Hd,!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.Kg.Pa()}));F(a.pd,"plugin_list_change",a.Nk,!1,a);b=new Te;b.n(N("universe_container"));a.hh=new df(b,new hf(function(b){b=b.id();jl(a);a.Bf.Pa(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.hh,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.Hd=function(){jl(this);this.Uh.Pa()};p.Si=function(){jl(this);this.ii.Pa()};function jl(a){a.Uh.Rc();a.Bf.Rc();a.Kg.Rc();a.ii.Rc()}
p.jh=function(){var a=this.Oi.Mh();je(this.xf,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.Wg(new rh(b.df,3));cl(this.Bf)};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]={};
|