blob: 7c86bba46fea2536c6dac14ca66c4547e5d9b9fa [file] [log] [blame]
(function (){ function h(a){throw a;}
var i=true,j=null,k=false,m,o=this,aa=function(a,b,c){a=a.split(".");c=c||o;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:c[d]={}},ba=function(){},ca=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";
if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},q=function(a){return ca(a)=="array"},da=function(a){var b=ca(a);return b=="array"||b=="object"&&typeof a.length=="number"},s=function(a){return typeof a=="string"},ea=function(a){return ca(a)=="function"},
fa=function(a){a=ca(a);return a=="object"||a=="array"||a=="function"},ia=function(a){return a[ga]||(a[ga]=++ha)},ga="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ha=0,ja=function(a,b){var c=b||o;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}},ka=function(a){var b=Array.prototype.slice.call(arguments,
1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},la=Date.now||function(){return+new Date},u=function(a,b){function c(){}c.prototype=b.prototype;a.l=b.prototype;a.prototype=new c};var ma=function(a){this.stack=Error().stack||"";if(a)this.message=String(a)};u(ma,Error);ma.prototype.name="CustomError";var na=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a},ta=function(a,b){if(b)return a.replace(oa,"&amp;").replace(pa,"&lt;").replace(qa,"&gt;").replace(ra,"&quot;");else{if(!sa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(oa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(pa,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(qa,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(ra,"&quot;");return a}},oa=/&/g,pa=/</g,qa=/>/g,ra=/\"/g,
sa=/[&<>\"]/,va=function(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),g=0;c==0&&g<f;g++){var l=d[g]||"",n=e[g]||"",p=RegExp("(\\d*)(\\D*)","g"),G=RegExp("(\\d*)(\\D*)","g");do{var t=p.exec(l)||["","",""],r=G.exec(n)||["","",""];if(t[0].length==0&&r[0].length==0)break;c=ua(t[1].length==0?0:parseInt(t[1],10),r[1].length==0?0:parseInt(r[1],10))||ua(t[2].length==0,r[2].length==0)||
ua(t[2],r[2])}while(c==0)}return c},ua=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var wa=function(a,b){b.unshift(a);ma.call(this,na.apply(j,b));b.shift();this.Nc=a};u(wa,ma);wa.prototype.name="AssertionError";var xa=function(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var e=c}h(new wa(""+d,e||[]))}return a};var v=function(a){return a[a.length-1]},w=Array.prototype,ya=w.indexOf?function(a,b,c){xa(a.length!=j);return w.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:c<0?Math.max(0,a.length+c):c;if(s(a)){if(!s(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},za=w.forEach?function(a,b,c){xa(a.length!=j);w.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=function(a,b,c){for(var d=
s(a)?a.split(""):a,e=a.length-1;e>=0;--e)e in d&&b.call(c,d[e],e,a)},Ba=w.map?function(a,b,c){xa(a.length!=j);return w.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=s(a)?a.split(""):a,g=0;g<d;g++)if(g in f)e[g]=b.call(c,f[g],g,a);return e},Ca=w.every?function(a,b,c){xa(a.length!=j);return w.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return k;return i},Da=function(a,b){var c=ya(a,b),d;if(d=c>=0){xa(a.length!=
j);w.splice.call(a,c,1)}return d},Ea=function(){return w.concat.apply(w,arguments)},Fa=function(a){if(q(a))return Ea(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},Ga=function(a,b,c){xa(a.length!=j);return arguments.length<=2?w.slice.call(a,b):w.slice.call(a,b,c)},Ha=function(a,b,c,d,e){for(var f=0,g=a.length,l;f<g;){var n=f+g>>1,p;p=c?b.call(e,a[n],n,a):b(d,a[n]);if(p>0)f=n+1;else{g=n;l=!p}}return l?f:~f},Ia=function(a,b){return a>b?1:a<b?-1:0};var x="StopIteration"in o?o.StopIteration:Error("StopIteration"),Ja=function(){};Ja.prototype.next=function(){h(x)};Ja.prototype.Ma=function(){return this};
var Ka=function(a){if(a instanceof Ja)return a;if(typeof a.Ma=="function")return a.Ma(k);if(da(a)){var b=0,c=new Ja;c.next=function(){for(;;){if(b>=a.length)h(x);if(b in a)return a[b++];else b++}};return c}h(Error("Not implemented"))},La=function(a,b,c){if(da(a))try{za(a,b,c)}catch(d){if(d!==x)h(d)}else{a=Ka(a);try{for(;;)b.call(c,a.next(),undefined,a)}catch(e){if(e!==x)h(e)}}};var Ma=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};Ma.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var y=function(a,b){this.width=a;this.height=b};y.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};y.prototype.Ea=function(){return!(this.width*this.height)};y.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};y.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Na=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Oa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Pa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Qa=function(a,b){var c;if(c=b in a)delete a[b];return c},Ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sa=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Ra.length;e++){b=Ra[e];if(Object.prototype.hasOwnProperty.call(c,
b))a[b]=c[b]}}},Ta=function(){var a=arguments.length;if(a==1&&q(arguments[0]))return Ta.apply(j,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=i;return b};var Ua,Va,Wa,Xa,Ya,Za,$a=function(){return o.navigator?o.navigator.userAgent:j},ab=function(){return o.navigator};Ya=Xa=Wa=Va=Ua=k;var bb;if(bb=$a()){var cb=ab();Ua=bb.indexOf("Opera")==0;Va=!Ua&&bb.indexOf("MSIE")!=-1;Xa=(Wa=!Ua&&bb.indexOf("WebKit")!=-1)&&bb.indexOf("Mobile")!=-1;Ya=!Ua&&!Wa&&cb.product=="Gecko"}var db=Ua,z=Va,A=Ya,B=Wa,eb=Xa,fb=ab();Za=(fb&&fb.platform||"").indexOf("Mac")!=-1;var gb=!!ab()&&(ab().appVersion||"").indexOf("X11")!=-1,hb;
a:{var ib="",jb;if(db&&o.opera){var kb=o.opera.version;ib=typeof kb=="function"?kb():kb}else{if(A)jb=/rv\:([^\);]+)(\)|;)/;else if(z)jb=/MSIE\s+([^\);]+)(\)|;)/;else if(B)jb=/WebKit\/(\S+)/;if(jb){var lb=jb.exec($a());ib=lb?lb[1]:""}}if(z){var mb,nb=o.document;mb=nb?nb.documentMode:undefined;if(mb>parseFloat(ib)){hb=String(mb);break a}}hb=ib}var ob=hb,pb={},C=function(a){return pb[a]||(pb[a]=va(ob,a)>=0)};var qb,rb=!z||C("9");z&&C("9");var sb=function(a){var b;b=(b=a.className)&&typeof b.split=="function"?b.split(/\s+/):[];var c;c=Ga(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!(ya(b,c[e])>=0)){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c};var H=function(a){return a?new E(F(a)):qb||(qb=new E)},ub=function(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(!B||tb(document)||C("528"))&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,g;g=a[f];f++)if(b==g.nodeName)d[e++]=g;d.length=e;return d}else return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++){b=g.className;if(typeof b.split=="function"&&
ya(b.split(/\s+/),c)>=0)d[e++]=g}d.length=e;return d}else return a},wb=function(a,b){Na(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in vb)a.setAttribute(vb[d],c);else a[d]=c})},vb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},xb=function(a){var b=a.document;if(B&&!C("500")&&!eb){if(typeof a.innerHeight==
"undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new y(a.innerWidth,b)}a=tb(b);if(db&&!C("9.50"))a=k;a=a?b.documentElement:b.body;return new y(a.clientWidth,a.clientHeight)},yb=function(a){return a?a.parentWindow||a.defaultView:window},Ab=function(){return zb(document,arguments)},zb=function(a,b){var c=b[0],d=b[1];if(!rb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ta(d.name),'"');if(d.type){c.push(' type="',ta(d.type),
'"');var e={};Sa(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)if(s(d))c.className=d;else q(d)?sb.apply(j,[c].concat(d)):wb(c,d);b.length>2&&Bb(a,c,b,2);return c},Bb=function(a,b,c,d){function e(g){if(g)b.appendChild(s(g)?a.createTextNode(g):g)}for(d=d;d<c.length;d++){var f=c[d];da(f)&&!(fa(f)&&f.nodeType>0)?za(Cb(f)?Fa(f):f,e):e(f)}},tb=function(a){return a.compatMode=="CSS1Compat"},Db=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):j},Eb=function(a,b){var c=
b.parentNode;c&&c.replaceChild(a,b)},F=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Fb=function(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{for(var c;c=a.firstChild;)a.removeChild(c);a.appendChild(F(a).createTextNode(b))}},Cb=function(a){if(a&&typeof a.length=="number")if(fa(a))return typeof a.item=="function"||typeof a.item=="string";else if(ea(a))return typeof a.item==
"function";return k},E=function(a){this.h=a||o.document||document};E.prototype.n=H;var Gb=function(a){return a.h};E.prototype.c=function(a){return s(a)?this.h.getElementById(a):a};E.prototype.k=function(){return zb(this.h,arguments)};E.prototype.createElement=function(a){return this.h.createElement(a)};E.prototype.createTextNode=function(a){return this.h.createTextNode(a)};var Hb=function(a){a=!B&&tb(a.h)?a.h.documentElement:a.h.body;return new Ma(a.scrollLeft,a.scrollTop)};
E.prototype.appendChild=function(a,b){a.appendChild(b)};E.prototype.append=function(a){Bb(F(a),a,arguments,1)};var I=function(a,b,c,d,e){this.o=!!b;a&&Ib(this,a,d);this.V=e!=undefined?e:this.p||0;if(this.o)this.V*=-1;this.Vb=!c};u(I,Ja);I.prototype.r=j;I.prototype.p=0;I.prototype.Ib=k;var Ib=function(a,b,c,d){if(a.r=b)a.p=typeof c=="number"?c:a.r.nodeType!=1?0:a.o?-1:1;if(typeof d=="number")a.V=d};
I.prototype.next=function(){var a;if(this.Ib){if(!this.r||this.Vb&&this.V==0)h(x);a=this.r;var b=this.o?-1:1;if(this.p==b){var c=this.o?a.lastChild:a.firstChild;c?Ib(this,c):Ib(this,a,b*-1)}else(c=this.o?a.previousSibling:a.nextSibling)?Ib(this,c):Ib(this,a.parentNode,b*-1);this.V+=this.p*(this.o?-1:1)}else this.Ib=i;a=this.r;if(!this.r)h(x);return a};
I.prototype.splice=function(){var a=this.r,b=this.o?1:-1;if(this.p==b){this.p=b*-1;this.V+=this.p*(this.o?-1:1)}this.o=!this.o;I.prototype.next.call(this);this.o=!this.o;b=da(arguments[0])?arguments[0]:arguments;for(var c=b.length-1;c>=0;c--)a.parentNode&&a.parentNode.insertBefore(b[c],a.nextSibling);Db(a)};var Jb,Kb=!z||C("9"),Lb=z&&!C("8");var Mb=function(){};Mb.prototype.kb=k;Mb.prototype.u=function(){if(!this.kb){this.kb=i;this.g()}};Mb.prototype.g=function(){};var J=function(a,b){this.type=a;this.currentTarget=this.target=b};u(J,Mb);m=J.prototype;m.g=function(){delete this.type;delete this.target;delete this.currentTarget};m.U=k;m.qa=i;m.stopPropagation=function(){this.U=i};m.preventDefault=function(){this.qa=k};var Nb=function(a){a.preventDefault()};var K=function(a,b){a&&this.Da(a,b)};u(K,J);var Ob=[1,4,2];m=K.prototype;m.target=j;m.relatedTarget=j;m.offsetX=0;m.offsetY=0;m.clientX=0;m.clientY=0;m.screenX=0;m.screenY=0;m.button=0;m.keyCode=0;m.charCode=0;m.ctrlKey=k;m.altKey=k;m.shiftKey=k;m.metaKey=k;m.yc=k;m.G=j;
m.Da=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(A)try{d=d.nodeName&&d}catch(e){d=j}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?a.clientY:a.pageY;this.screenX=a.screenX||0;
this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.yc=Za?a.metaKey:a.ctrlKey;this.state=a.state;this.G=a;delete this.qa;delete this.U};m.stopPropagation=function(){K.l.stopPropagation.call(this);if(this.G.stopPropagation)this.G.stopPropagation();else this.G.cancelBubble=i};
m.preventDefault=function(){K.l.preventDefault.call(this);var a=this.G;if(a.preventDefault)a.preventDefault();else{a.returnValue=k;if(Lb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};m.g=function(){K.l.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.G=j};var L=function(a,b){this.yb=b;this.R=[];if(a>this.yb)h(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.R.push(this.C?this.C():{})};u(L,Mb);L.prototype.C=j;L.prototype.jb=j;var Pb=function(a){if(a.R.length)return a.R.pop();return a.C?a.C():{}},Rb=function(a,b){a.R.length<a.yb?a.R.push(b):Qb(a,b)},Qb=function(a,b){if(a.jb)a.jb(b);else if(fa(b))if(ea(b.u))b.u();else for(var c in b)delete b[c]};
L.prototype.g=function(){L.l.g.call(this);for(var a=this.R;a.length;)Qb(this,a.pop());delete this.R};var Sb;var Tb=(Sb="ScriptEngine"in o&&o.ScriptEngine()=="JScript")?o.ScriptEngineMajorVersion()+"."+o.ScriptEngineMinorVersion()+"."+o.ScriptEngineBuildVersion():"0";var Ub=function(){},Vb=0;m=Ub.prototype;m.key=0;m.ha=k;m.Oa=k;m.Da=function(a,b,c,d,e,f){if(ea(a))this.vb=i;else if(a&&a.handleEvent&&ea(a.handleEvent))this.vb=k;else h(Error("Invalid listener argument"));this.ca=a;this.Db=b;this.src=c;this.type=d;this.capture=!!e;this.Ca=f;this.Oa=k;this.key=++Vb;this.ha=k};m.handleEvent=function(a){if(this.vb)return this.ca.call(this.Ca||this.src,a);return this.ca.handleEvent.call(this.ca,a)};var Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc;
(function(){function a(){return{j:0,v:0}}function b(){return[]}function c(){var r=function(D){return g.call(r.src,r.key,D)};return r}function d(){return new Ub}function e(){return new K}var f=Sb&&!(va(Tb,"5.7")>=0),g;ac=function(r){g=r};if(f){Wb=function(){return Pb(l)};Xb=function(r){Rb(l,r)};Yb=function(){return Pb(n)};Zb=function(r){Rb(n,r)};$b=function(){return Pb(p)};bc=function(){Rb(p,c())};cc=function(){return Pb(G)};dc=function(r){Rb(G,r)};ec=function(){return Pb(t)};fc=function(r){Rb(t,r)};
var l=new L(0,600);l.C=a;var n=new L(0,600);n.C=b;var p=new L(0,600);p.C=c;var G=new L(0,600);G.C=d;var t=new L(0,600);t.C=e}else{Wb=a;Xb=ba;Yb=b;Zb=ba;$b=c;bc=ba;cc=d;dc=ba;ec=e;fc=ba}})();var gc={},M={},N={},hc={},O=function(a,b,c,d,e){if(b)if(q(b)){for(var f=0;f<b.length;f++)O(a,b[f],c,d,e);return j}else{d=!!d;var g=M;b in g||(g[b]=Wb());g=g[b];if(!(d in g)){g[d]=Wb();g.j++}g=g[d];var l=ia(a),n;g.v++;if(g[l]){n=g[l];for(f=0;f<n.length;f++){g=n[f];if(g.ca==c&&g.Ca==e){if(g.ha)break;return n[f].key}}}else{n=g[l]=Yb();g.j++}f=$b();f.src=a;g=cc();g.Da(c,f,a,b,d,e);c=g.key;f.key=c;n.push(g);gc[c]=g;N[l]||(N[l]=Yb());N[l].push(g);if(a.addEventListener){if(a==o||!a.ib)a.addEventListener(b,
f,d)}else a.attachEvent(ic(b),f);return c}else h(Error("Invalid event type"))},jc=function(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)jc(a,b[f],c,d,e);return j}a=O(a,b,c,d,e);gc[a].Oa=i;return a},kc=function(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)kc(a,b[f],c,d,e);return j}d=!!d;a=lc(a,b,d);if(!a)return k;for(f=0;f<a.length;f++)if(a[f].ca==c&&a[f].capture==d&&a[f].Ca==e)return P(a[f].key);return k},P=function(a){if(!gc[a])return k;var b=gc[a];if(b.ha)return k;var c=b.src,d=b.type,e=b.Db,
f=b.capture;if(c.removeEventListener){if(c==o||!c.ib)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(ic(d),e);c=ia(c);e=M[d][f][c];if(N[c]){var g=N[c];Da(g,b);g.length==0&&delete N[c]}b.ha=i;e.zb=i;mc(d,f,c,e);delete gc[a];return i},mc=function(a,b,c,d){if(!d.Fa)if(d.zb){for(var e=0,f=0;e<d.length;e++)if(d[e].ha){var g=d[e].Db;g.src=j;bc(g);dc(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.zb=k;if(f==0){Zb(d);delete M[a][b][c];M[a][b].j--;if(M[a][b].j==0){Xb(M[a][b]);delete M[a][b];
M[a].j--}if(M[a].j==0){Xb(M[a]);delete M[a]}}}},nc=function(a,b,c){var d=0,e=a==j,f=b==j,g=c==j;c=!!c;if(e)Na(N,function(n){for(var p=n.length-1;p>=0;p--){var G=n[p];if((f||b==G.type)&&(g||c==G.capture)){P(G.key);d++}}});else{a=ia(a);if(N[a]){a=N[a];for(e=a.length-1;e>=0;e--){var l=a[e];if((f||b==l.type)&&(g||c==l.capture)){P(l.key);d++}}}}return d},lc=function(a,b,c){var d=M;if(b in d){d=d[b];if(c in d){d=d[c];a=ia(a);if(d[a])return d[a]}}return j},ic=function(a){if(a in hc)return hc[a];return hc[a]=
"on"+a},pc=function(a,b,c,d,e){var f=1;b=ia(b);if(a[b]){a.v--;a=a[b];if(a.Fa)a.Fa++;else a.Fa=1;try{for(var g=a.length,l=0;l<g;l++){var n=a[l];if(n&&!n.ha)f&=oc(n,e)!==k}}finally{a.Fa--;mc(c,d,b,a)}}return Boolean(f)},oc=function(a,b){var c=a.handleEvent(b);a.Oa&&P(a.key);return c};
ac(function(a,b){if(!gc[a])return i;var c=gc[a],d=c.type,e=M;if(!(d in e))return i;e=e[d];var f,g;if(Jb===undefined)Jb=z&&!o.addEventListener;if(Jb){var l;if(!(l=b))a:{l="window.event".split(".");for(var n=o;f=l.shift();)if(n[f])n=n[f];else{l=j;break a}l=n}f=l;l=i in e;n=k in e;if(l){if(f.keyCode<0||f.returnValue!=undefined)return i;a:{var p=k;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(G){p=i}if(p||f.returnValue==undefined)f.returnValue=i}}p=ec();p.Da(f,this);f=i;try{if(l){for(var t=Yb(),r=p.currentTarget;r;r=
r.parentNode)t.push(r);g=e[i];g.v=g.j;for(var D=t.length-1;!p.U&&D>=0&&g.v;D--){p.currentTarget=t[D];f&=pc(g,t[D],d,i,p)}if(n){g=e[k];g.v=g.j;for(D=0;!p.U&&D<t.length&&g.v;D++){p.currentTarget=t[D];f&=pc(g,t[D],d,k,p)}}}else f=oc(c,p)}finally{if(t){t.length=0;Zb(t)}p.u();fc(p)}return f}d=new K(b,this);try{f=oc(c,d)}finally{d.u()}return f});var Q=function(a){this.$a=a};u(Q,Mb);
var qc=new L(0,100),R=function(a,b,c,d,e,f){if(q(c))for(var g=0;g<c.length;g++)R(a,b,c[g],d,e,f);else rc(a,O(b,c,d||a,e||k,f||a.$a||a));return a},sc=function(a,b,c,d,e,f){if(q(c))for(var g=0;g<c.length;g++)sc(a,b,c[g],d,e,f);else rc(a,jc(b,c,d||a,e||k,f||a.$a||a));return a},rc=function(a,b){if(a.a)a.a[b]=i;else if(a.M){a.a=Pb(qc);a.a[a.M]=i;a.M=j;a.a[b]=i}else a.M=b},tc=function(a,b,c,d,e,f){if(a.M||a.a)if(q(c))for(var g=0;g<c.length;g++)tc(a,b,c[g],d,e,f);else{a:{d=d||a;f=f||a.$a||a;e=!!(e||k);if(b=
lc(b,c,e))for(c=0;c<b.length;c++)if(b[c].ca==d&&b[c].capture==e&&b[c].Ca==f){b=b[c];break a}b=j}if(b){b=b.key;P(b);if(a.a)Qa(a.a,b);else if(a.M==b)a.M=j}}return a};Q.prototype.ga=function(){if(this.a){for(var a in this.a){P(a);delete this.a[a]}Rb(qc,this.a);this.a=j}else this.M&&P(this.M)};Q.prototype.g=function(){Q.l.g.call(this);this.ga()};Q.prototype.handleEvent=function(){h(Error("EventHandler.handleEvent not implemented"))};var S=function(){};u(S,Mb);m=S.prototype;m.ib=i;m.Ha=j;m.db=function(a){this.Ha=a};m.addEventListener=function(a,b,c,d){O(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){kc(this,a,b,c,d)};
m.dispatchEvent=function(a){a=a;if(s(a))a=new J(a,this);else if(a instanceof J)a.target=a.target||this;else{var b=a;a=new J(a.type,this);Sa(a,b)}b=1;var c,d=a.type,e=M;if(d in e){e=e[d];d=i in e;var f;if(d){c=[];for(f=this;f;f=f.Ha)c.push(f);f=e[i];f.v=f.j;for(var g=c.length-1;!a.U&&g>=0&&f.v;g--){a.currentTarget=c[g];b&=pc(f,c[g],a.type,i,a)&&a.qa!=k}}if(k in e){f=e[k];f.v=f.j;if(d)for(g=0;!a.U&&g<c.length&&f.v;g++){a.currentTarget=c[g];b&=pc(f,c[g],a.type,k,a)&&a.qa!=k}else for(c=this;!a.U&&c&&
f.v;c=c.Ha){a.currentTarget=c;b&=pc(f,c,a.type,k,a)&&a.qa!=k}}a=Boolean(b)}else a=i;return a};m.g=function(){S.l.g.call(this);nc(this);this.Ha=j};var uc=function(a){a=String(a);var b;b=/^\s*$/.test(a)?k:/^[\],:{}\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,""));if(b)try{return eval("("+a+")")}catch(c){}h(Error("Invalid JSON string: "+a))},vc=function(){},xc=function(a,b,c){switch(typeof b){case "string":wc(a,b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");
break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==j){c.push("null");break}if(q(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++){c.push(e);xc(a,b[f],c);e=","}c.push("]");break}c.push("{");d="";for(e in b)if(b.hasOwnProperty(e)){f=b[e];if(typeof f!="function"){c.push(d);wc(a,e,c);c.push(":");xc(a,f,c);d=","}}c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}},yc={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f",
"\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},zc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,wc=function(a,b,c){c.push('"',b.replace(zc,function(d){if(d in yc)return yc[d];var e=d.charCodeAt(0),f="\\u";if(e<16)f+="000";else if(e<256)f+="00";else if(e<4096)f+="0";return yc[d]=f+e.toString(16)}),'"')};var Ac=function(a){this.w=Sb?[]:"";a!=j&&this.append.apply(this,arguments)};Ac.prototype.i=function(a){this.clear();this.append(a)};if(Sb){Ac.prototype.Na=0;Ac.prototype.append=function(a,b){if(b==j)this.w[this.Na++]=a;else{this.w.push.apply(this.w,arguments);this.Na=this.w.length}return this}}else Ac.prototype.append=function(a,b){this.w+=a;if(b!=j)for(var c=1;c<arguments.length;c++)this.w+=arguments[c];return this};Ac.prototype.clear=function(){if(Sb)this.Na=this.w.length=0;else this.w=""};
Ac.prototype.toString=function(){if(Sb){var a=this.w.join("");this.clear();a&&this.append(a);return a}else return this.w};var Bc=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Bc.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var Dc=function(a,b,c){a.style[Cc(c)]=b},Ec=function(a,b){var c=F(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,""))return c[b];return j},T=function(a,b){return Ec(a,b)||(a.currentStyle?a.currentStyle[b]:j)||a.style[b]},Gc=function(a,b,c){var d,e=A&&(Za||gb)&&C("1.9");if(b instanceof Ma){d=b.x;b=b.y}else{d=b;b=c}a.style.left=Fc(d,e);a.style.top=Fc(b,e)},Hc=function(a){if(z)return a.offsetParent;var b=F(a),c=T(a,"position"),d=c=="fixed"||c=="absolute";for(a=
a.parentNode;a&&a!=b;a=a.parentNode){c=T(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return j},Ic=function(a){var b,c=F(a),d=T(a,"position"),e=A&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new Ma(0,0),g;b=c?c.nodeType==9?c:F(c):document;if(g=z){g=H(b);g=!tb(g.h)}g=g?b.body:b.documentElement;if(a==g)return f;
if(a.getBoundingClientRect){d=a.getBoundingClientRect();if(z){a=a.ownerDocument;d.left-=a.documentElement.clientLeft+a.body.clientLeft;d.top-=a.documentElement.clientTop+a.body.clientTop}b=d;c=Hb(H(c));f.x=b.left+c.x;f.y=b.top+c.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);c=c.getBoxObjectFor(g);f.x=b.screenX-c.screenX;f.y=b.screenY-c.screenY}else{e=a;do{f.x+=e.offsetLeft;f.y+=e.offsetTop;if(e!=a){f.x+=e.clientLeft||0;f.y+=e.clientTop||0}if(B&&T(e,"position")=="fixed"){f.x+=c.body.scrollLeft;
f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(db||B&&d=="absolute")f.y-=c.body.offsetTop;for(e=a;(e=Hc(e))&&e!=c.body&&e!=g;){f.x-=e.scrollLeft;if(!db||e.tagName!="TR")f.y-=e.scrollTop}}return f},Jc=function(a,b,c){if(b instanceof y){c=b.height;b=b.width}else{if(c==undefined)h(Error("missing height argument"));c=c}a.style.width=Fc(b,i);a.style.height=Fc(c,i)},Fc=function(a,b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a},Kc=function(a){var b=db&&!C("10");if(T(a,"display")!=
"none")return b?new y(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new y(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new y(b,a)},Lc={},Cc=function(a){return Lc[a]||(Lc[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},
Mc=function(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+")"},U=function(a,b){a.style.display=b?"":"none"},Nc=function(a,b){if(z)a.cssText=b;else a[B?"innerText":"innerHTML"]=b};var Oc=function(a){this.b=a;a=z?"focusout":"blur";this.nc=O(this.b,z?"focusin":"focus",this,!z);this.oc=O(this.b,a,this,!z)};u(Oc,S);Oc.prototype.handleEvent=function(a){var b=new K(a.G);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.u()}};Oc.prototype.g=function(){Oc.l.g.call(this);P(this.nc);P(this.oc);delete this.b};var Pc=function(a,b,c){this.target=a;this.handle=b||a;this.ab=c||new Bc(NaN,NaN,NaN,NaN);this.h=F(a);this.m=new Q(this);O(this.handle,"mousedown",this.Fb,k,this)};u(Pc,S);var Qc=z||A&&C("1.9.3");m=Pc.prototype;m.screenX=0;m.screenY=0;m.Gb=0;m.Hb=0;m.ja=0;m.ka=0;m.mb=i;m.L=k;m.sb=0;m.qc=0;m.lc=k;m.Y=function(){return this.m};m.g=function(){Pc.l.g.call(this);kc(this.handle,"mousedown",this.Fb,k,this);this.m.u();delete this.target;delete this.handle;delete this.m};
m.Fb=function(a){if(this.mb&&!this.L&&(a.type!="mousedown"||(Kb?a.G.button==0:a.type=="click"?i:!!(a.G.button&Ob[0])))){if(this.sb==0){Rc(this,a);if(this.L)a.preventDefault();else return}else a.preventDefault();var b=this.h,c=b.documentElement,d=!Qc;R(this.m,b,"mousemove",this.rc,d);R(this.m,b,"mouseup",this.ya,d);if(Qc){c.setCapture(k);R(this.m,c,"losecapture",this.ya)}else R(this.m,yb(b),"blur",this.ya);z&&this.lc&&R(this.m,b,"dragstart",Nb);this.Ec&&R(this.m,this.Ec,"scroll",this.vc,d);this.screenX=
this.Gb=a.screenX;this.screenY=this.Hb=a.screenY;this.ja=this.target.offsetLeft;this.ka=this.target.offsetTop;this.pa=Hb(H(this.h));this.qc=la()}};var Rc=function(a,b){if(a.dispatchEvent(new Sc("start",a,b.clientX,b.clientY,b))!==k)a.L=i};Pc.prototype.ya=function(a,b){this.m.ga();Qc&&this.h.releaseCapture();if(this.L){this.L=k;this.dispatchEvent(new Sc("end",this,a.clientX,a.clientY,a,Tc(this,this.ja),Uc(this,this.ka),b))}};
Pc.prototype.rc=function(a){if(this.mb){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.L){var d=this.Gb-this.screenX,e=this.Hb-this.screenY;if(d*d+e*e>this.sb){Rc(this,a);if(!this.L){this.ya(a);return}}}c=Vc(this,b,c);b=c.x;c=c.y;if(this.L)if(this.dispatchEvent(new Sc("beforedrag",this,a.clientX,a.clientY,a,b,c))!==k){Wc(this,a,b,c,k);a.preventDefault()}}};
var Vc=function(a,b,c){var d=Hb(H(a.h));b+=d.x-a.pa.x;c+=d.y-a.pa.y;a.pa=d;a.ja+=b;a.ka+=c;return new Ma(Tc(a,a.ja),Uc(a,a.ka))};Pc.prototype.vc=function(a){var b=Vc(this,0,0);a.clientX=this.pa.x-this.screenX;a.clientY=this.pa.x-this.screenY;Wc(this,a,b.x,b.y,i)};
var Wc=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new Sc("drag",a,b.clientX,b.clientY,b,c,d))},Tc=function(a,b){var c=a.ab,d=!isNaN(c.left)?c.left:j;c=!isNaN(c.width)?c.width:0;return Math.min(d!=j?d+c:Infinity,Math.max(d!=j?d:-Infinity,b))},Uc=function(a,b){var c=a.ab,d=!isNaN(c.top)?c.top:j;c=!isNaN(c.height)?c.height:0;return Math.min(d!=j?d+c:Infinity,Math.max(d!=j?d:-Infinity,b))},Sc=function(a,b,c,d,e,f,g,l){J.call(this,a);this.clientX=c;this.clientY=
d;this.Kc=e;this.left=f!==undefined?f:b.ja;this.top=g!==undefined?g:b.ka;this.Mc=b;this.Lc=!!l};u(Sc,J);var Xc=function(a){if(typeof a.Ba=="function")return a.Ba();if(s(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Oa(a)},Yc=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(da(a)||s(a))za(a,b,c);else{var d;if(typeof a.Ya=="function")d=a.Ya();else if(typeof a.Ba!="function")if(da(a)||s(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f);d=d}else d=Pa(a);else d=void 0;e=Xc(a);f=e.length;for(var g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};var Zc=function(a){this.N={};this.a=[];var b=arguments.length;if(b>1){if(b%2)h(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.i(arguments[c],arguments[c+1])}else if(a){if(a instanceof Zc){b=a.Ya();c=a.Ba()}else{b=Pa(a);c=Oa(a)}for(var d=0;d<b.length;d++)this.i(b[d],c[d])}};m=Zc.prototype;m.j=0;m.La=0;m.Ba=function(){$c(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.N[this.a[b]]);return a};m.Ya=function(){$c(this);return this.a.concat()};m.Ea=function(){return this.j==0};
m.clear=function(){this.N={};this.La=this.j=this.a.length=0};var $c=function(a){if(a.j!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];if(Object.prototype.hasOwnProperty.call(a.N,d))a.a[c++]=d;b++}a.a.length=c}if(a.j!=a.a.length){var e={};for(c=b=0;b<a.a.length;){d=a.a[b];if(!Object.prototype.hasOwnProperty.call(e,d)){a.a[c++]=d;e[d]=1}b++}a.a.length=c}},ad=function(a,b,c){if(Object.prototype.hasOwnProperty.call(a.N,b))return a.N[b];return c};
Zc.prototype.i=function(a,b){if(!Object.prototype.hasOwnProperty.call(this.N,a)){this.j++;this.a.push(a);this.La++}this.N[a]=b};Zc.prototype.Ma=function(a){$c(this);var b=0,c=this.a,d=this.N,e=this.La,f=this,g=new Ja;g.next=function(){for(;;){if(e!=f.La)h(Error("The map has changed since the iterator was created"));if(b>=c.length)h(x);var l=c[b++];return a?l:d[l]}};return g};var bd=o.window;var cd=function(){};(function(a){a.pb=function(){return a.mc||(a.mc=new a)}})(cd);cd.prototype.Ab=0;cd.pb();var V=function(a){this.xa=a||H();this.Bc=dd};u(V,S);V.prototype.tb=cd.pb();var dd=j;m=V.prototype;m.aa=j;m.H=k;m.b=j;m.Bc=j;m.pc=j;m.fa=j;m.ua=j;m.ta=j;m.Jc=k;m.c=function(){return this.b};m.Y=function(){return this.$||(this.$=new Q(this))};m.db=function(a){if(this.fa&&this.fa!=a)h(Error("Method not supported"));V.l.db.call(this,a)};m.n=function(){return this.xa};m.k=function(){this.b=this.xa.createElement("div")};
m.ia=function(a){if(this.H)h(Error("Component already rendered"));this.b||this.k();a?a.insertBefore(this.b,j):this.xa.h.body.appendChild(this.b);if(!this.fa||this.fa.H)this.za()};m.za=function(){this.H=i;ed(this,function(a){!a.H&&a.c()&&a.za()})};m.ma=function(){ed(this,function(a){a.H&&a.ma()});this.$&&this.$.ga();this.H=k};
m.g=function(){V.l.g.call(this);this.H&&this.ma();if(this.$){this.$.u();delete this.$}ed(this,function(a){a.u()});!this.Jc&&this.b&&Db(this.b);this.fa=this.pc=this.b=this.ta=this.ua=j};var ed=function(a,b,c){a.ua&&za(a.ua,b,c)};
V.prototype.removeChild=function(a,b){if(a){var c=s(a)?a:a.aa||(a.aa=":"+(a.tb.Ab++).toString(36)),d;if(this.ta&&c){d=this.ta;d=c in d?d[c]:void 0;d=d||j}else d=j;a=d;if(c&&a){Qa(this.ta,c);Da(this.ua,a);if(b){a.ma();a.b&&Db(a.b)}c=a;if(c==j)h(Error("Unable to set parent component"));c.fa=j;V.l.db.call(c,j)}}if(!a)h(Error("Child is not in parent component"));return a};var W=function(a,b,c){V.call(this,c);this.t=a||"modal-dialog";this.gb=!!b;this.s=fd};u(W,V);m=W.prototype;m.Aa=j;m.Yb=i;m.qb=i;m.gb=k;m.oa=i;m.lb=i;m.Rb=0.5;m.Mb="";m.Ra="";m.s=j;m.W=j;m.hb=k;m.Wb=k;m.f=j;m.d=j;m.Ka=j;m.sa=j;m.Lb=j;m.Ja=j;m.va=j;m.z=j;
m.k=function(){gd(this);var a=this.n();this.b=a.k("div",{className:this.t,tabIndex:0},this.Ka=a.k("div",{className:this.t+"-title",id:this.aa||(this.aa=":"+(this.tb.Ab++).toString(36))},this.sa=a.k("span",this.t+"-title-text",this.Mb),this.Ja=a.k("span",this.t+"-title-close")),this.va=a.k("div",this.t+"-content"),this.z=a.k("div",this.t+"-buttons"),this.Jb=a.k("span",{tabIndex:0}));this.Lb=this.Ka.id;a=this.c();if(A){a.setAttribute("role","dialog");a.Cc="dialog"}A&&this.c().setAttribute("aria-labelledby",
this.Lb||"");if(this.Ra)this.va.innerHTML=this.Ra;U(this.Ja,this.qb);U(this.c(),k);if(this.s){a=this.s;a.b=this.z;a.ia()}};var gd=function(a){if(a.gb&&a.oa&&!a.d){var b;b=a.n().k("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});a.d=b;a.d.className=a.t+"-bg";U(a.d,k);Mc(a.d,0)}else if((!a.gb||!a.oa)&&a.d){Db(a.d);a.d=j}if(a.oa&&!a.f){a.f=a.n().k("div",a.t+"-bg");Mc(a.f,a.Rb);U(a.f,k)}else if(!a.oa&&a.f){Db(a.f);a.f=j}};
W.prototype.ia=function(a){if(this.H)h(Error("Component already rendered"));this.c()||this.k();a=a||Gb(this.n()).body;this.d&&a.appendChild(this.d);this.f&&a.appendChild(this.f);W.l.ia.call(this,a)};
W.prototype.za=function(){W.l.za.call(this);this.Aa=new Oc(Gb(this.n()));if(this.lb&&!this.W){var a=new Pc(this.c(),this.Ka);sb(this.Ka,this.t+"-title-draggable");this.W=a}R(R(this.Y(),this.Ja,"click",this.wc),this.Aa,"focusin",this.uc);a=this.c();if(A){a.setAttribute("role","dialog");a.Cc="dialog"}this.sa.id!==""&&A&&this.c().setAttribute("aria-labelledby",this.sa.id)};W.prototype.ma=function(){this.hb&&hd(this,k);this.Aa.u();this.Aa=j;if(this.W){this.W.u();this.W=j}W.l.ma.call(this)};
var hd=function(a,b){if(b!=a.hb){var c=Gb(a.n()),d=yb(c)||window;a.H||a.ia(c.body);if(b){id(a);jd(a);R(R(R(a.Y(),a.c(),"keydown",a.Ga,i),a.c(),"keypress",a.Ga,i),d,"resize",a.Cb,i)}else tc(tc(tc(a.Y(),a.c(),"keydown",a.Ga,i),a.c(),"keypress",a.Ga,i),d,"resize",a.Cb,i);a.d&&U(a.d,b);a.f&&U(a.f,b);U(a.c(),b);b&&a.focus();if(a.hb=b)R(a.Y(),a.z,"click",a.Bb);else{tc(a.Y(),a.z,"click",a.Bb);a.dispatchEvent("afterhide");a.Wb&&a.u()}}};
W.prototype.focus=function(){try{this.c().focus()}catch(a){}if(this.s){var b=this.s.wa;if(b)for(var c=Gb(this.n()),d=this.z.getElementsByTagName("button"),e=0,f;f=d[e];e++)if(f.name==b){try{if(B||db){var g=c.createElement("input");g.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.c().appendChild(g);g.focus();this.c().removeChild(g)}f.focus()}catch(l){}break}}};
var id=function(a){a.d&&U(a.d,k);a.f&&U(a.f,k);var b=Gb(a.n()),c=xb(yb(b)||window||window),d=Math.max(b.body.scrollWidth,c.width);b=Math.max(b.body.scrollHeight,c.height);if(a.d){U(a.d,i);Jc(a.d,d,b)}if(a.f){U(a.f,i);Jc(a.f,d,b)}if(a.lb){c=Kc(a.c());a.W.ab=new Bc(0,0,d-c.width,b-c.height)}},jd=function(a){var b=Gb(a.n()),c=yb(b)||window;if(T(a.c(),"position")=="fixed")var d=b=0;else{d=Hb(a.n());b=d.x;d=d.y}var e=Kc(a.c());c=xb(c||window);Gc(a.c(),Math.max(b+c.width/2-e.width/2,0),Math.max(d+c.height/
2-e.height/2,0))};m=W.prototype;m.wc=function(){if(this.qb){var a=this.s,b=a&&a.Pa;if(b)this.dispatchEvent(new kd(b,ad(a,b)))&&hd(this,k);else hd(this,k)}};m.g=function(){W.l.g.call(this);if(this.f){Db(this.f);this.f=j}if(this.d){Db(this.d);this.d=j}this.Jb=this.z=this.Ja=j};m.Bb=function(a){a:{for(a=a.target;a!=j&&a!=this.z;){if(a.tagName=="BUTTON"){a=a;break a}a=a.parentNode}a=j}if(a&&!a.disabled){a=a.name;this.dispatchEvent(new kd(a,ad(this.s,a)))&&hd(this,k)}};
m.Ga=function(a){var b=k,c=k,d=this.s,e=a.target;if(a.type=="keydown")if(this.Yb&&a.keyCode==27){var f=d&&d.Pa;e=e.tagName=="SELECT"&&!e.disabled;if(f&&!e){c=i;b=this.dispatchEvent(new kd(f,ad(d,f)))}else e||(b=i)}else{if(a.keyCode==9&&a.shiftKey&&e==this.c())c=i}else if(a.keyCode==13){if(e.tagName=="BUTTON")f=e.name;else if(d){var g=d.wa,l;if(l=g)a:{l=d.b.getElementsByTagName("BUTTON");for(var n=0,p;p=l[n];n++)if(p.name==g||p.id==g){l=p;break a}l=j}l=l;e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT")&&
!e.disabled;if(l&&!l.disabled&&!e)f=g}if(f){c=i;b=this.dispatchEvent(new kd(f,String(ad(d,f))))}}if(b||c){a.stopPropagation();a.preventDefault()}b&&hd(this,k)};m.Cb=function(){id(this)};m.uc=function(a){if(this.Jb==a.target){a=this.ac;if(ea(a)){if(this)a=ja(a,this)}else if(a&&typeof a.handleEvent=="function")a=ja(a.handleEvent,a);else h(Error("Invalid listener argument"));bd.setTimeout(a,0)}};m.ac=function(){z&&Gb(this.n()).body.focus();this.c().focus()};
var kd=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};u(kd,J);var X=function(a){this.xa=a||H();Zc.call(this)},fd;u(X,Zc);m=X.prototype;m.t="goog-buttonset";m.wa=j;m.b=j;m.Pa=j;m.i=function(a,b,c,d){Zc.prototype.i.call(this,a,b);if(c)this.wa=a;if(d)this.Pa=a;return this};m.ia=function(){if(this.b){this.b.innerHTML="";var a=H(this.b);Yc(this,function(b,c){var d=a.k("button",{name:c},b);if(c==this.wa)d.className=this.t+"-default";this.b.appendChild(d)},this)}};
(new X).i("ok","OK",i,i);fd=(new X).i("ok","OK",i).i("cancel","Cancel",k,i);(new X).i("yes","Yes",i).i("no","No",k,i);(new X).i("yes","Yes").i("no","No",i).i("cancel","Cancel",k,i);(new X).i("continue","Continue").i("save","Save").i("cancel","Cancel",i,i);var ld=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc](?:[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc])?","g"),md=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff](?:[^\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff])?",
"g"),nd=RegExp("^[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff]"),od=RegExp("[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff][\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*$"),
pd=RegExp("[\u0000-\u001f\u0085\u00a0\u1680\u180e\u2000-\u200f\u2028\u2029\u202f\u205f\u3000]"),qd=RegExp("^[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\u200e]+$"),rd=RegExp("^[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\u200f]+$"),
sd=RegExp("^[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*\\d"),td=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ud=function(a,b){this.text=a;this.index=b},vd=function(a){for(var b=[],c;c=ld.exec(a);)b.push(new ud(c[0],
c.index));return b},wd=function(a){for(var b=[],c;c=md.exec(a);)b.push(new ud(c[0],c.index));return b},xd=function(a){if(a=sd.exec(a))return new ud(a[0],0);return j},yd={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",'"':'\\"',"'":"\\'","\\":"\\\\"},zd=function(a){for(var b=[],c=0;c<a.length;c++){var d=b,e=c,f;f=a.charAt(c);if(f in yd)f=yd[f];else{var g=f;if(pd.test(f)){var l=f.charCodeAt(0);g="\\u";if(l<4096){g+="0";if(l<256){g+="0";if(l<16)g+="0"}}g+=l.toString(16)}f=yd[f]=g}d[e]=
f}return b.join("")},Ad=function(a){return a.nodeName+"="+("'"+zd(a.nodeValue)+"'")},Bd=function(a){var b=[];if(a.attributes)for(var c=0;c<a.attributes.length;++c){var d=a.attributes[c];if(d.specified===undefined||d.specified)b.push(d)}a=[a.nodeName.toLowerCase()];b=Ba(b,Ad);b.sort();a=a.concat(b);return"<"+a.join(" ")+">"},Cd=function(a){var b=[];for(a=a;a;a=a.parentNode){b.push(Bd(a));if(a.id||a.nodeName=="BODY")break}b.reverse();return b.join("")},Dd=function(a){var b=[],c=new I(a);La(c,function(){c.r.nodeType==
3&&b.push(c.r.data)});return b.join("")},Ed=Ta("ADDRESS","BLOCKQUOTE","BODY","CAPTION","CENTER","COL","COLGROUP","DIR","DIV","DL","DD","DT","FIELDSET","FORM","H1","H2","H3","H4","H5","H6","HR","ISINDEX","OL","LI","MAP","MENU","OPTGROUP","OPTION","P","PRE","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","TL","UL"),Fd=Ta("inline","inline-block","inline-table"),Gd={element:j,style:j},Hd=function(a){if(Gd.element==a)return Gd.style;var b=(a.currentStyle?a.currentStyle.display:j)||Ec(a,"display");Gd={element:a,
style:b};return b},Id=function(a){var b=Hd(a);return b?!Fd[b]:!!Ed[a.tagName]},Jd=function(a){if(a.nodeType==1){if(a.nodeName=="SCRIPT"||a.nodeName=="STYLE")return k;return Hd(a)!="none"}return i};var Kd=function(a,b,c){this.T=a;this.Gc=b;this.Xb=c;this.S=[]};Kd.prototype.rb=function(){if(this.S.length==0)for(var a=0;a<this.T.length;++a)this.S.push(Ld(this.T[a],a==0?this.Gc:0,a==this.T.length-1?this.Xb:this.T[a].length));else for(a=0;a<this.S.length;++a)Eb(this.S[a],this.T[a]);return Ic(this.S[0])};Kd.prototype.Nb=function(){if(this.S.length!=0)for(var a=0;a<this.T.length;++a)Eb(this.T[a],this.S[a])};
var Ld=function(a,b,c){b=b||0;c=c||a.data.length;var d=[];b>0&&d.push(a.data.substring(0,b));d.push(Ab("span",{style:"color:red; background-color:yellow"},a.data.substring(b,c)));c<a.data.length&&d.push(a.data.substring(c));b=Ab("span",j,d);Eb(b,a);return b};var Md=function(a){this.b=a};Md.prototype.cb=j;Md.prototype.rb=function(){this.cb=T(this.b,"backgroundColor");var a=this.b;s("background-color")?Dc(a,"yellow","background-color"):Na("background-color",ka(Dc,a));return Ic(this.b)};Md.prototype.Nb=function(){if(this.cb!=j){var a=this.b;s("background-color")?Dc(a,this.cb,"background-color"):Na("background-color",ka(Dc,a))}};var Y=function(a,b,c,d){if(typeof a=="object"){b=["id","type","severity","atText","locationDescription","precededByText","followedByText"];c=["id","type","severity"];for(d=0;d<b.length;++d){var e=b[d];this[e]=e in a?a[e]:j;if(this[e]==j&&ya(c,e)>=0)h("Required field '"+e+"' not found in bidichecker.Error.")}}else{if(b==undefined)h("Required parameter 'opt_severity' not found in bidichecker.Error.");this.id=Nd++;this.type=a;this.severity=b;Od[this.id]=c||j;this.atText=d||j}};
Y.prototype.precededByText=j;Y.prototype.followedByText=j;Y.prototype.locationDescription=j;Y.prototype.asString=j;var Nd=0,Od=[];Y.prototype.Z=function(){return Od[this.id]||j};Y.prototype.toString=function(){var a=new Ac("[",this.severity.toString(),"] ",this.type),b;if(b=this.atText)a.append(": ","'"+zd(b)+"'");if(b=this.precededByText)a.append(" preceded by ","'"+zd(b)+"'");if(b=this.followedByText)a.append(" followed by ","'"+zd(b)+"'");if(b=this.locationDescription)a.append(" in ",b);return a.toString()};var Pd=function(a){this.A=a;this.q=0;this.ob=this.Q=this.P=j};Pd.prototype.ic=function(){var a;if(/[^0-9]/.test(this.Q.value))a=-1;else{a=this.Q.value;var b=Number(a);a=b==0&&/^[\s\xa0]*$/.test(a)?NaN:b;a=a-1}a=a;if(a>=0&&a<this.A.length&&a!=this.q){Qd(this);this.q=a;this.Q.value=this.q+1;Rd(this)}else this.Q.value=this.q+1};Pd.prototype.ec=function(a){a=a.key=="next"?this.q==this.A.length-1?0:this.q+1:this.q==0?this.A.length-1:this.q-1;Qd(this);this.q=a;this.Q.value=this.q+1;Rd(this);return k};
var Rd=function(a){var b=a.A[a.q],c=b.Z();if(c){var d=c.rb();c=window.scrollY;window.scrollTo(0,d.y-100);d=new Ma(a.P.offsetLeft,a.P.offsetTop);Gc(a.P,d.x,d.y+(window.scrollY-c))}Fb(a.ob,b.toString())},Qd=function(a){(a=a.A[a.q].Z())&&a.Nb()};var Sd=function(a,b){this.Qa=a;this.r=b},Td=function(a){this.ea=[new Sd(0,a)];this.xb=a};Td.prototype.append=function(a,b){if(this.xb!=b){this.ea.push(new Sd(a,b));this.xb=b}};var Ud=function(a,b){var c=Ha(a.ea,function(d,e){return d-e.Qa}||Ia,k,b);return c>=0?c:-c-2};Td.prototype.Va=function(a){return this.ea[Ud(this,a)].r};Td.prototype.Z=function(a,b){for(var c=Ud(this,a),d=Ud(this,a+b-1),e=[],f=c;f<=d;++f)e.push(this.ea[f].r);return new Kd(e,a-this.ea[c].Qa,a+b-this.ea[d].Qa)};
var Vd=function(a,b,c,d,e){this.wb=b;this.ub=e;this.Sb=d;this.fb=[a];this.Kb=a.length;this.bb=new Td(c)};Vd.prototype.Ia=j;Vd.prototype.Ea=function(){return Ca(this.fb,function(a){return a.length==0})};Vd.prototype.append=function(a,b){this.bb.append(this.Kb,b);this.Kb+=a.length;this.fb.push(a);this.Ia=j};var Wd=function(a){if(a.Ia===j)a.Ia=a.fb.join("");return a.Ia};Vd.prototype.Va=function(a){return this.bb.Va(a)};Vd.prototype.Z=function(a,b){return this.bb.Z(a,b)};var Xd=new Vd("",k,j,j,k);var Yd=function(a){this.da=new I(a);this.Dc=a;this.B=["rtl"==T(a,"direction")];this.ba=[];this.O=[a];this.X=[]};u(Yd,S);Yd.prototype.I=j;Yd.prototype.go=function(){try{for(;;Zd(this));}catch(a){if(a!==x)h(a);else this.dispatchEvent("EndOfDom")}};
var Zd=function(a){for(var b=a.da.next();a.da.p==1&&!Jd(b);){b=a.da;var c=b.o?-1:1;if(b.p==c){b.p=c*-1;b.V+=b.p*(b.o?-1:1)}b=a.da.next()}a.I=b;if(a.da.p==1){b=a.I;c="rtl"==T(b,"direction");a.ba.push(v(a.ba)||c!=v(a.B)||$d(a,b));a.B.push(c);if(b.nodeName=="IFRAME"||b.nodeName=="FRAME")a.X.push(b);else Id(b)&&a.O.push(b);a.dispatchEvent("StartTag")}else if(a.da.p==-1){a.dispatchEvent("EndTag");a.B.pop();a.ba.pop();a.I==v(a.O)&&a.O.pop()}else a.I.nodeType==3&&a.dispatchEvent("TextNode")};
Yd.prototype.Xa=function(){return this.X};var $d=function(a,b){if(!b.dir||b==a.Dc)return k;for(var c=b.firstChild;c;c=c.nextSibling)if(c.nodeType==1&&Id(c))return k;return i};var ae=function(a){this.K=Xd;this.m=new Q(this);R(this.m,a,"TextNode",this.Za);sc(this.m,a,"EndOfDom",this.gc)};u(ae,S);ae.prototype.Za=function(a){a=a.target;var b=a.I;if(v(a.B)==this.K.wb&&v(a.O)==this.K.Sb&&v(a.ba)==this.K.ub)this.K.append(b.data,b);else{this.K.Ea()||this.dispatchEvent("DirChunk");this.K=new Vd(b.data,v(a.B),b,v(a.O),v(a.ba))}};ae.prototype.gc=function(){this.K.Ea()||this.dispatchEvent("DirChunk");this.dispatchEvent("EndOfChunks");this.m.ga()};var Z=function(){};aa("bidichecker.FilterFactory",Z,void 0);var $=function(){};Z.ComposableFilter_=$;$.prototype.Ob=function(a){return be(this,a)};$.prototype.and=$.prototype.Ob;$.prototype.tc=function(){return ce(this)};$.prototype.not=$.prototype.tc;$.prototype.xc=function(a){return de(this,a)};$.prototype.or=$.prototype.xc;
var te=function(a){var b=a.opcode;switch(b){case "AND":return new ee(a);case "AT_TEXT":return new fe(a);case "AT_TEXT_REGEXP":return new ge(a);case "FOLLOWED_BY_TEXT":return new he(a);case "FOLLOWED_BY_TEXT_REGEXP":return new ie(a);case "LOCATION_CLASS":return new je(a);case "LOCATION_CLASS_REGEXP":return new ke(a);case "LOCATION_ID":return new le(a);case "LOCATION_ID_REGEXP":return new me(a);case "NOT":return new ne(a);case "OR":return new oe(a);case "PRECEDED_BY_TEXT":return new pe(a);case "PRECEDED_BY_TEXT_REGEXP":return new qe(a);
case "SEVERITY":return new re(a);case "TYPE":return new se(a);default:h("Unknown filter opcode: '"+b+"'")}},ue=function(a){if(!a)return j;a=uc(a);return Ba(a,function(b){return te(b)})},be=function(a,b){return new ee({filter1:a,filter2:b})};Z.and=be;Z.atText=function(a){return new fe({atText:a||""})};Z.atTextRegexp=function(a){return new ge({atTextRegexp:a||""})};Z.followedByText=function(a){return new he({followedByText:a||""})};
Z.followedByTextRegexp=function(a){return new ie({followedByTextRegexp:a||""})};Z.locationClass=function(a){if(!a||a=="")h("Empty or null argument to bidichecker.FilterFactory.locationClass");return new je({className:a})};Z.locationClassRegexp=function(a){if(!a||a=="")h("Empty or null argument to bidichecker.FilterFactory.locationClassRegexp");return new ke({classRegexp:a})};Z.locationId=function(a){if(!a||a=="")h("Empty or null argument to bidichecker.FilterFactory.locationId");return new le({id:a})};
Z.locationIdRegexp=function(a){if(!a||a=="")h("Empty or null argument to bidichecker.FilterFactory.locationIdRegexp");return new me({idRegexp:a})};var ce=function(a){return new ne({filter:a})};Z.not=ce;var de=function(a,b){return new oe({filter1:a,filter2:b})};Z.or=de;Z.precededByText=function(a){return new pe({precededByText:a||""})};Z.precededByTextRegexp=function(a){return new qe({precededByTextRegexp:a||""})};Z.severityFrom=function(a){return new re({severityThreshold:a})};Z.type=function(a){return new se({type:a})};
var ve=function(a,b){if(!(b in a))h("No '"+b+"' parameter found for '"+a.opcode+"' filter")},we=function(a,b,c){ve(a,b);if(typeof a[b]!=c)h("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected "+c)},xe=function(a,b){we(a,b,"string");return a[b]},ye=function(a,b){ve(a,b);var c=a[b],d;if(typeof c=="string")d=c;else if(c instanceof RegExp)d=c.source;else h("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected string or RegExp");return RegExp("^("+d+")$")},ze=function(a,
b){we(a,b,"object");var c=a[b];if(c instanceof $)return c;else if(typeof c.opcode=="string")return te(c);else h("Can't make a filter out of the '"+b+"' parameter of '"+a.opcode+"' filter")},ee=function(a){this.Ta=ze(a,"filter1");this.Ua=ze(a,"filter2")};u(ee,$);ee.prototype.e=function(a,b){return this.Ta.e(a,b)&&this.Ua.e(a,b)};var fe=function(a){this.Qb=xe(a,"atText")};u(fe,$);fe.prototype.e=function(a){return this.Qb==(a.atText||"")};var ge=function(a){this.Pb=ye(a,"atTextRegexp")};u(ge,$);
ge.prototype.e=function(a){return this.Pb.test(a.atText||"")};var he=function(a){this.cc=xe(a,"followedByText")};u(he,$);he.prototype.e=function(a){return this.cc==(a.followedByText||"")};var ie=function(a){this.bc=ye(a,"followedByTextRegexp")};u(ie,$);ie.prototype.e=function(a){return this.bc.test(a.followedByText||"")};var je=function(a){this.Tb=xe(a,"className")};u(je,$);
je.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.className)for(var e=d.className.split(/\s/),f=0;f<e.length;++f)if(this.Tb==e[f])return i;return k};var ke=function(a){this.Ub=ye(a,"classRegexp")};u(ke,$);ke.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.className)for(var e=d.className.split(/\s/),f=0;f<e.length;++f)if(this.Ub.test(e[f]))return i;return k};var le=function(a){this.aa=xe(a,"id")};u(le,$);
le.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.aa==d.id)return i;return k};var me=function(a){this.kc=ye(a,"idRegexp")};u(me,$);me.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.kc.test(d.id))return i;return k};var ne=function(a){this.Zb=ze(a,"filter")};u(ne,$);ne.prototype.e=function(a,b){return!this.Zb.e(a,b)};var oe=function(a){this.Ta=ze(a,"filter1");this.Ua=ze(a,"filter2")};u(oe,$);
oe.prototype.e=function(a,b){return this.Ta.e(a,b)||this.Ua.e(a,b)};var pe=function(a){this.Ac=xe(a,"precededByText")};u(pe,$);pe.prototype.e=function(a){return this.Ac==(a.precededByText||"")};var qe=function(a){this.zc=ye(a,"precededByTextRegexp")};u(qe,$);qe.prototype.e=function(a){return this.zc.test(a.precededByText||"")};var re=function(a){we(a,"severityThreshold","number");this.Fc=a.severityThreshold};u(re,$);re.prototype.e=function(a){return this.Fc<=a.severity};
var se=function(a){this.Ic=xe(a,"type")};u(se,$);se.prototype.e=function(a){return this.Ic==a.type};var Ae=function(){this.X=[]};u(Ae,S);m=Ae.prototype;m.start=function(){this.dispatchEvent("StartFrames")};m.end=function(){this.dispatchEvent("EndFrames")};m.push=function(a){this.X.push(a);this.dispatchEvent("EnterFrame")};m.pop=function(){this.dispatchEvent("ExitFrame");this.X.pop()};m.Xa=function(){return this.X};var Be=function(a,b){this.dc=a;this.$b=b||[];this.A=[]};Be.prototype.Hc=k;Be.prototype.Wa=function(){return this.A};var De=function(a,b,c){var d=a.dc.Xa().slice(0);c&&d.push(c);if(Ca(a.$b,function(e){return!e.e(b,d)})){c=Ce(a,d);if(c!="")b.locationDescription=c;a.A.push(b);if(a.Hc)h(b.toString()+"\n")}},Ce=function(a,b){var c=[];Aa(b,function(d){c.push(Cd(d))});return c.join(" in ")};var Ee=function(a,b){this.sc=!!b;this.na=new Ae;this.nb=new Be(this.na,a)};Ee.prototype.F=j;Ee.prototype.Sa=j;Ee.prototype.Wa=function(){return this.nb.Wa()};
var Ie=function(a,b,c){var d,e=a.nb;d=[new Fe(e),new Ge(e)];c!=0&&d.unshift(new He(c==-1,e));a.F=new Yd(b);a.Sa=a.sc?new ae(a.F):j;for(b=0;b<d.length;++b)d[b].eb(a);a.F.go();d=a.F.Xa();for(b=0;b<d.length;++b){e=d[b];a.na.push(e);try{var f=(B?e.document||e.contentWindow.document:e.contentDocument||e.contentWindow.document).body;if(e.tagName=="IFRAME")c=0;Ie(a,f,c)}catch(g){}a.na.pop()}};var He=function(a,b){this.Eb=a;this.la=b};He.prototype.eb=function(a){jc(a.F,"StartTag",this)};He.prototype.handleEvent=function(a){a=a.target;if(this.Eb!=v(a.B))De(this.la,new Y("Overall directionality not "+(this.Eb?"RTL":"LTR"),1,new Md(a.I)))};var Ge=function(a){this.la=a;this.ra=[]};m=Ge.prototype;m.J=j;m.eb=function(a){var b=new Q(this);R(b,a.F,"StartTag",this.jc);R(b,a.F,"EndTag",this.hc);R(b,a.F,"TextNode",this.Za);sc(b,a.F,"EndOfDom",b.ga,k,b)};m.jc=function(a){a=a.target;var b=a.I;if(b.dir||b==v(a.O))this.J=j};m.hc=function(a){a=a.target;var b=a.I;if(b==v(a.O))this.J=j;else if(b.dir)if(v(a.B)==a.B[a.B.length-2])this.J=j;else{this.J=b;this.ra=[]}};
m.Za=function(a){a=a.target;var b=a.I;if(this.J){this.ra.push(b);var c=xd(b.data);if(c){var d=Ba(this.ra,function(f){return f.data}).join(""),e=v(this.ra).parentNode;De(this.la,Je(this,d.substr(0,d.length-(b.data.length-c.text.length)),c.text.length,v(a.B),v(a.ba)),e);this.J=j}else if(td.test(b.data))this.J=j}};var Je=function(a,b,c,d,e){b=new Y("Declared "+(d?"LTR":"RTL")+" spillover to number",e?4:2,new Kd(a.ra,0,c),b);a=Dd(a.J);b.precededByText=a;return b};var Fe=function(a){this.la=a};Fe.prototype.eb=function(a){var b=new Q(this);R(b,a.Sa,"DirChunk",this.fc);sc(b,a.Sa,"EndOfChunks",b.ga,k,b)};Fe.prototype.fc=function(a){var b=this,c=a.target.K;if(c.wb){a=wd(Wd(c));za(a,function(d){(qd.exec(d.text)?i:k)||Ke(b,c,d,"Undeclared LTR text")})}else{a=vd(Wd(c));za(a,function(d){(rd.exec(d.text)?i:k)||Ke(b,c,d,"Undeclared RTL text")})}};
var Ke=function(a,b,c,d){var e=b.ub?4:3,f=b.Z(c.index,c.text.length);d=new Y(d,e,f,c.text);e=Wd(b);f=c.index;var g=od.exec(e.substr(0,f));f=g?new ud(g[0],f-g[0].length):j;if(f){if(d.severity==3)d.severity=2;d.precededByText=f.text}f=c.index+c.text.length;e=(e=nd.exec(e.substr(f)))?new ud(e[0],f):j;if(e){if(d.severity==3)d.severity=2;d.followedByText=e.text}b=b.Va(c.index).parentNode;De(a.la,d,b)};var Le=function(a){Ee.call(this,a,i)};u(Le,Ee);var Me=function(a,b,c){Od=[];Nd=0;c=new Le(c);b=b||top.document.body;a=a?-1:1;c.na.start();Ie(c,b,a);c.na.end();return c.Wa()};aa("bidichecker.checkPage",Me,void 0);aa("bidichecker.checkPageToJson",function(a,b,c){c=ue(c);a=Me(a,b,c);for(b=0;b<a.length;++b){c=a[b];c.asString=c.toString()}b=[];xc(new vc,a,b);return b.join("")},void 0);
var Ne=function(a){a=new Pd(a);if(!(a.P||a.A.length==0)){a.D=new W("bidichecker-dialog");var b=a.D;b.Mb="BidiChecker error browser";b.sa&&Fb(b.sa,"BidiChecker error browser");b=a.D;b.oa=k;gd(b);b.n();var c=new X;c.i("prev","< Prev");c.i("next","Next >");b=a.D;b.s=c;if(b.z)if(b.s){c=b.s;c.b=b.z;c.ia()}else b.z.innerHTML="";b=a.D;b.Ra='<div id="bidichecker-dialog-error-text" class="bidichecker-dialog-error-text"> </div><p>Error <input name="current" id="bidichecker-dialog-error-num" type="text" size="3" value="1" /> of <span id="bidichecker-dialog-error-count"></span></p><p style="font-size:75%">Drag this box if it conceals a part of the page you need.</p>';
if(b.va)b.va.innerHTML='<div id="bidichecker-dialog-error-text" class="bidichecker-dialog-error-text"> </div><p>Error <input name="current" id="bidichecker-dialog-error-num" type="text" size="3" value="1" /> of <span id="bidichecker-dialog-error-count"></span></p><p style="font-size:75%">Drag this box if it conceals a part of the page you need.</p>';hd(a.D,i);a.P=a.D.c();b=H(a.P);var d=j;if(z){d=b.h.createStyleSheet();Nc(d,".bidichecker-dialog-bg { position: absolute; top: 0; left: 0; }.bidichecker-dialog { position: absolute; padding: 5px; background-color: #fcb; border: 1px solid #000; font-family: arial, sans-serif; width: 475px; color: #000; outline: none; direction: ltr }.bidichecker-dialog a, .bidichecker-dialog a:link,.bidichecker-dialog a:visited { color: #0066cc; cursor: pointer; }.bidichecker-dialog-title { position: relative; background-color: #f9efeb; color: #000000; padding: 10px 15px; font-size: 16px; font-weight: bold; vertical-align: middle; cursor: pointer; cursor: hand }.bidichecker-dialog-content { padding: 15px; font-size: 90%; background-color: #fff }.bidichecker-dialog-buttons { padding: 0 15px 15px; background-color: #fff }.bidichecker-dialog-error-text { font-weight: bold; font-size: 125%; color: #f00; height: 80px; overflow: auto; border: 1px dotted #f00 }")}else{c=
ub(b.h,"head",void 0,void 0)[0];if(!c){d=ub(b.h,"body",void 0,void 0)[0];c=b.k("head");d.parentNode.insertBefore(c,d)}d=b.k("style");Nc(d,".bidichecker-dialog-bg { position: absolute; top: 0; left: 0; }.bidichecker-dialog { position: absolute; padding: 5px; background-color: #fcb; border: 1px solid #000; font-family: arial, sans-serif; width: 475px; color: #000; outline: none; direction: ltr }.bidichecker-dialog a, .bidichecker-dialog a:link,.bidichecker-dialog a:visited { color: #0066cc; cursor: pointer; }.bidichecker-dialog-title { position: relative; background-color: #f9efeb; color: #000000; padding: 10px 15px; font-size: 16px; font-weight: bold; vertical-align: middle; cursor: pointer; cursor: hand }.bidichecker-dialog-content { padding: 15px; font-size: 90%; background-color: #fff }.bidichecker-dialog-buttons { padding: 0 15px 15px; background-color: #fff }.bidichecker-dialog-error-text { font-weight: bold; font-size: 125%; color: #f00; height: 80px; overflow: auto; border: 1px dotted #f00 }");
b.appendChild(c,d)}a.P.style.zIndex=1E4;b=a.D.n();Fb(b.c("bidichecker-dialog-error-count"),a.A.length+"");a.Q=b.c("bidichecker-dialog-error-num");a.ob=b.c("bidichecker-dialog-error-text");jd(a.D);Rd(a);O(a.D,"dialogselect",a.ec,k,a);a.Q.onchange=ja(a.ic,a)}};aa("bidichecker.runGui",Ne,void 0);aa("bidichecker.runGuiFromJson",function(a){a=uc(a);a=Ba(a,function(b){return new Y(b)});Ne(a)},void 0); })()