(function(){function f(a){throw a;}var i=void 0,j=!0,k=null,m=!1;function p(a){return function(){return this[a]}}function s(a){return function(){return a}}var u,v=this;function aa(a,b){var c=a.split("."),d=v;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==i?d[e]=b:d=d[e]?d[e]:d[e]={}}function y(a){a.N=function(){return a.fc||(a.fc=new a)}}
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function z(a){return"array"==ba(a)}function ea(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function A(a){return"string"==typeof a}function fa(a){return"function"==ba(a)}function ga(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function ha(a){return a[ia]||(a[ia]=++ja)}var ia="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ja=0;
function ka(a,b,c){return a.call.apply(a.bind,arguments)}function la(a,b,c){a||f(Error());if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function ma(a,b,c){ma=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return ma.apply(k,arguments)}
function na(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var oa=Date.now||function(){return+new Date};function B(a,b){function c(){}c.prototype=b.prototype;a.d=b.prototype;a.prototype=new c;a.prototype.constructor=a};function pa(){}pa.prototype.ib=m;pa.prototype.M=function(){this.ib||(this.ib=j,this.g())};pa.prototype.g=function(){this.Vb&&qa.apply(k,this.Vb)};function qa(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?qa.apply(k,d):d&&"function"==typeof d.M&&d.M()}};function ra(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function sa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}var ta=/^[a-zA-Z0-9\-_.!~*'()]*$/;function ua(a){if(!va.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(wa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(xa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ya,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(za,"&quot;"));return a}var wa=/&/g,xa=/</g,ya=/>/g,za=/\"/g,va=/[&<>\"]/;var C=Array.prototype,Aa=C.indexOf?function(a,b,c){return C.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(A(a))return!A(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},D=C.forEach?function(a,b,c){C.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=A(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)};function Da(a){for(var b=E.getAll(),c=A(b)?b.split(""):b,d=b.length-1;0<=d;--d)d in c&&a.call(i,c[d],d,b)}
function Ea(a,b){if(a.reduce)return a.reduce(b,0);var c=0;D(a,function(d,e){c=b.call(i,c,d,e,a)});return c}var Fa=C.every?function(a,b,c){return C.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=A(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return m;return j};function Ga(a,b,c){for(var d=a.length,e=A(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function Ha(a,b){return 0<=Aa(a,b)}
function Ia(a){if(!z(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ja(a,b){var c=Aa(a,b);0<=c&&C.splice.call(a,c,1)}function Ka(a,b){var c=Ga(a,b,i);0<=c&&C.splice.call(a,c,1)}function La(a){return C.concat.apply(C,arguments)}function Ma(a){if(z(a))return La(a);for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}function Na(a,b,c,d){C.splice.apply(a,Oa(arguments,1))}function Oa(a,b,c){return 2>=arguments.length?C.slice.call(a,b):C.slice.call(a,b,c)};var Pa,Qa,Ua,Va;function Wa(){return v.navigator?v.navigator.userAgent:k}Va=Ua=Qa=Pa=m;var Xa;if(Xa=Wa()){var Ya=v.navigator;Pa=0==Xa.indexOf("Opera");Qa=!Pa&&-1!=Xa.indexOf("MSIE");Ua=!Pa&&-1!=Xa.indexOf("WebKit");Va=!Pa&&!Ua&&"Gecko"==Ya.product}var Za=Pa,G=Qa,H=Va,I=Ua,$a=v.navigator,ab=-1!=($a&&$a.platform||"").indexOf("Mac"),bb;
a:{var cb="",db;if(Za&&v.opera)var eb=v.opera.version,cb="function"==typeof eb?eb():eb;else if(H?db=/rv\:([^\);]+)(\)|;)/:G?db=/MSIE\s+([^\);]+)(\)|;)/:I&&(db=/WebKit\/(\S+)/),db)var fb=db.exec(Wa()),cb=fb?fb[1]:"";if(G){var gb,hb=v.document;gb=hb?hb.documentMode:i;if(gb>parseFloat(cb)){bb=""+gb;break a}}bb=cb}var kb={};
function J(a){var b;if(!(b=kb[a])){b=0;for(var c=sa(""+bb).split("."),d=sa(""+a).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var h=c[g]||"",l=d[g]||"",n=RegExp("(\\d*)(\\D*)","g"),o=RegExp("(\\d*)(\\D*)","g");do{var x=n.exec(h)||["","",""],q=o.exec(l)||["","",""];if(0==x[0].length&&0==q[0].length)break;b=((0==x[1].length?0:parseInt(x[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==x[1].length?0:parseInt(x[1],10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==x[2].length)<(0==
q[2].length)?-1:(0==x[2].length)>(0==q[2].length)?1:0)||(x[2]<q[2]?-1:x[2]>q[2]?1:0)}while(0==b)}b=kb[a]=0<=b}return b}var lb={};function mb(){return lb[9]||(lb[9]=G&&!!document.documentMode&&9<=document.documentMode)};var nb=!G||mb(),ob=!G||mb(),pb=G&&!J("8");!I||J("528");H&&J("1.9b")||G&&J("8")||Za&&J("9.5")||I&&J("528");!H||J("8");function K(a,b){this.type=a;this.currentTarget=this.target=b}B(K,pa);u=K.prototype;u.g=function(){delete this.type;delete this.target;delete this.currentTarget};u.ea=m;u.Ca=j;u.stopPropagation=function(){this.ea=j};u.preventDefault=function(){this.Ca=m};function qb(a){qb[" "](a);return a}qb[" "]=function(){};function rb(a,b){a&&this.za(a,b)}B(rb,K);var sb=[1,4,2];u=rb.prototype;u.target=k;u.relatedTarget=k;u.offsetX=0;u.offsetY=0;u.clientX=0;u.clientY=0;u.screenX=0;u.screenY=0;u.button=0;u.keyCode=0;u.charCode=0;u.ctrlKey=m;u.altKey=m;u.shiftKey=m;u.metaKey=m;u.xb=m;u.H=k;
u.za=function(a,b){var c=this.type=a.type;K.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(H){var e;a:{try{qb(d.nodeName);e=j;break a}catch(g){}e=m}e||(d=k)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=I||a.offsetX!==i?a.offsetX:a.layerX;this.offsetY=I||a.offsetY!==i?a.offsetY:a.layerY;this.clientX=a.clientX!==i?a.clientX:a.pageX;this.clientY=a.clientY!==i?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||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.xb=ab?a.metaKey:a.ctrlKey;this.state=a.state;this.H=a;delete this.Ca;delete this.ea};function tb(a){return nb?0==a.H.button:"click"==a.type?j:!!(a.H.button&sb[0])}
u.stopPropagation=function(){rb.d.stopPropagation.call(this);this.H.stopPropagation?this.H.stopPropagation():this.H.cancelBubble=j};u.preventDefault=function(){rb.d.preventDefault.call(this);var a=this.H;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,pb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};u.g=function(){rb.d.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.H=k};function ub(){}var vb=0;u=ub.prototype;u.key=0;u.ga=m;u.Bb=m;u.za=function(a,b,c,d,e,g){fa(a)?this.Hb=j:a&&a.handleEvent&&fa(a.handleEvent)?this.Hb=m:f(Error("Invalid listener argument"));this.oa=a;this.Lb=b;this.src=c;this.type=d;this.capture=!!e;this.Sa=g;this.Bb=m;this.key=++vb;this.ga=m};u.handleEvent=function(a){return this.Hb?this.oa.call(this.Sa||this.src,a):this.oa.handleEvent.call(this.oa,a)};function wb(a,b){for(var c in a)b.call(i,a[c],c,a)}function xb(a,b,c){b in a&&f(Error('The object already contains the key "'+b+'"'));a[b]=c}var yb="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");function zb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<yb.length;g++)c=yb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Ab={},M={},N={},Bb={};
function O(a,b,c,d,e){if(b){if(z(b)){for(var g=0;g<b.length;g++)O(a,b[g],c,d,e);return k}var d=!!d,h=M;b in h||(h[b]={D:0,B:0});h=h[b];d in h||(h[d]={D:0,B:0},h.D++);var h=h[d],l=ha(a),n;h.B++;if(h[l]){n=h[l];for(g=0;g<n.length;g++)if(h=n[g],h.oa==c&&h.Sa==e){if(h.ga)break;return n[g].key}}else n=h[l]=[],h.D++;g=Cb();g.src=a;h=new ub;h.za(c,g,a,b,d,e);c=h.key;g.key=c;n.push(h);Ab[c]=h;N[l]||(N[l]=[]);N[l].push(h);a.addEventListener?(a==v||!a.Db)&&a.addEventListener(b,g,d):a.attachEvent(b in Bb?Bb[b]:
Bb[b]="on"+b,g);return c}f(Error("Invalid event type"))}function Cb(){var a=Db,b=ob?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b}function Eb(a,b,c,d,e){if(z(b))for(var g=0;g<b.length;g++)Eb(a,b[g],c,d,e);else if(d=!!d,a=Fb(a,b,d))for(g=0;g<a.length;g++)if(a[g].oa==c&&a[g].capture==d&&a[g].Sa==e){P(a[g].key);break}}
function P(a){if(!Ab[a])return m;var b=Ab[a];if(b.ga)return m;var c=b.src,d=b.type,e=b.Lb,g=b.capture;c.removeEventListener?(c==v||!c.Db)&&c.removeEventListener(d,e,g):c.detachEvent&&c.detachEvent(d in Bb?Bb[d]:Bb[d]="on"+d,e);c=ha(c);e=M[d][g][c];if(N[c]){var h=N[c];Ja(h,b);0==h.length&&delete N[c]}b.ga=j;e.Jb=j;Gb(d,g,c,e);delete Ab[a];return j}
function Gb(a,b,c,d){if(!d.Ya&&d.Jb){for(var e=0,g=0;e<d.length;e++)d[e].ga?d[e].Lb.src=k:(e!=g&&(d[g]=d[e]),g++);d.length=g;d.Jb=m;0==g&&(delete M[a][b][c],M[a][b].D--,0==M[a][b].D&&(delete M[a][b],M[a].D--),0==M[a].D&&delete M[a])}}function Hb(a){var b,c=0,d=b==k;b=!!b;if(a==k)wb(N,function(a){for(var e=a.length-1;0<=e;e--){var g=a[e];if(d||b==g.capture)P(g.key),c++}});else if(a=ha(a),N[a])for(var a=N[a],e=a.length-1;0<=e;e--){var g=a[e];if(d||b==g.capture)P(g.key),c++}}
function Fb(a,b,c){var d=M;return b in d&&(d=d[b],c in d&&(d=d[c],a=ha(a),d[a]))?d[a]:k}function Ib(a,b,c,d,e){var g=1,b=ha(b);if(a[b]){a.B--;a=a[b];a.Ya?a.Ya++:a.Ya=1;try{for(var h=a.length,l=0;l<h;l++){var n=a[l];n&&!n.ga&&(g&=Jb(n,e)!==m)}}finally{a.Ya--,Gb(c,d,b,a)}}return Boolean(g)}function Jb(a,b){var c=a.handleEvent(b);a.Bb&&P(a.key);return c}
function Db(a,b){if(!Ab[a])return j;var c=Ab[a],d=c.type,e=M;if(!(d in e))return j;var e=e[d],g,h;if(!ob){var l;if(!(l=b))a:{l=["window","event"];for(var n=v;g=l.shift();)if(n[g]!=k)n=n[g];else{l=k;break a}l=n}g=l;l=j in e;n=m in e;if(l){if(0>g.keyCode||g.returnValue!=i)return j;a:{var o=m;if(0==g.keyCode)try{g.keyCode=-1;break a}catch(x){o=j}if(o||g.returnValue==i)g.returnValue=j}}o=new rb;o.za(g,this);g=j;try{if(l){for(var q=[],L=o.currentTarget;L;L=L.parentNode)q.push(L);h=e[j];h.B=h.D;for(var t=
q.length-1;!o.ea&&0<=t&&h.B;t--)o.currentTarget=q[t],g&=Ib(h,q[t],d,j,o);if(n){h=e[m];h.B=h.D;for(t=0;!o.ea&&t<q.length&&h.B;t++)o.currentTarget=q[t],g&=Ib(h,q[t],d,m,o)}}else g=Jb(c,o)}finally{q&&(q.length=0),o.M()}return g}d=new rb(b,this);try{g=Jb(c,d)}finally{d.M()}return g};function Kb(){}B(Kb,pa);u=Kb.prototype;u.Db=j;u.bb=k;u.yb=function(a){this.bb=a};u.addEventListener=function(a,b,c,d){O(this,a,b,c,d)};u.removeEventListener=function(a,b,c,d){Eb(this,a,b,c,d)};
u.dispatchEvent=function(a){var b=a.type||a,c=M;if(b in c){if(A(a))a=new K(a,this);else if(a instanceof K)a.target=a.target||this;else{var d=a,a=new K(b,this);zb(a,d)}var d=1,e,c=c[b],b=j in c,g;if(b){e=[];for(g=this;g;g=g.bb)e.push(g);g=c[j];g.B=g.D;for(var h=e.length-1;!a.ea&&0<=h&&g.B;h--)a.currentTarget=e[h],d&=Ib(g,e[h],a.type,j,a)&&a.Ca!=m}if(m in c)if(g=c[m],g.B=g.D,b)for(h=0;!a.ea&&h<e.length&&g.B;h++)a.currentTarget=e[h],d&=Ib(g,e[h],a.type,m,a)&&a.Ca!=m;else for(e=this;!a.ea&&e&&g.B;e=e.bb)a.currentTarget=
e,d&=Ib(g,e,a.type,m,a)&&a.Ca!=m;a=Boolean(d)}else a=j;return a};u.g=function(){Kb.d.g.call(this);Hb(this);this.bb=k};function Lb(a,b){this.Aa=a||1;this.Ka=b||Mb;this.gb=ma(this.nc,this);this.sb=oa()}B(Lb,Kb);Lb.prototype.enabled=m;var Mb=v.window;u=Lb.prototype;u.l=k;u.setInterval=function(a){this.Aa=a;this.l&&this.enabled?(this.stop(),this.start()):this.l&&this.stop()};u.nc=function(){if(this.enabled){var a=oa()-this.sb;0<a&&a<0.8*this.Aa?this.l=this.Ka.setTimeout(this.gb,this.Aa-a):(this.dispatchEvent(Nb),this.enabled&&(this.l=this.Ka.setTimeout(this.gb,this.Aa),this.sb=oa()))}};
u.start=function(){this.enabled=j;this.l||(this.l=this.Ka.setTimeout(this.gb,this.Aa),this.sb=oa())};u.stop=function(){this.enabled=m;this.l&&(this.Ka.clearTimeout(this.l),this.l=k)};u.g=function(){Lb.d.g.call(this);this.stop();delete this.Ka};var Nb="tick";var Ob,Pb=!G||mb();!H&&!G||G&&mb()||H&&J("1.9.1");G&&J("9");function Qb(a){return(a=a.className)&&"function"==typeof a.split?a.split(/\s+/):[]}function Rb(a,b){var c=Qb(a),d=Oa(arguments,1),e;e=c;for(var g=0,h=0;h<d.length;h++)Ha(e,d[h])||(e.push(d[h]),g++);e=g==d.length;a.className=c.join(" ");return e}function Sb(a,b){var c=Qb(a),d=Oa(arguments,1),e;e=c;for(var g=0,h=0;h<e.length;h++)Ha(d,e[h])&&(Na(e,h--,1),g++);e=g==d.length;a.className=c.join(" ");return e};function Tb(a){return a?new Wb(Q(a)):Ob||(Ob=new Wb)}function Xb(a,b){wb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Yb?a.setAttribute(Yb[d],b):0==d.lastIndexOf("aria-",0)?a.setAttribute(d,b):a[d]=b})}var Yb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};
function Zb(a,b,c){function d(c){c&&b.appendChild(A(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var g=c[e];ea(g)&&!(ga(g)&&0<g.nodeType)?D($b(g)?Ma(g):g,d):d(g)}}function ac(a){var b=document,c=b.createElement("div");G?(c.innerHTML="<br>"+a,c.removeChild(c.firstChild)):c.innerHTML=a;if(1==c.childNodes.length)return c.removeChild(c.firstChild);for(a=b.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);return a}function bc(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function cc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function dc(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Q(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function ec(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else bc(a),a.appendChild(Q(a).createTextNode(b))}function fc(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,"number"==typeof a&&0<=a&&32768>a):m}
function $b(a){if(a&&"number"==typeof a.length){if(ga(a))return"function"==typeof a.item||"string"==typeof a.item;if(fa(a))return"function"==typeof a.item}return m}function Wb(a){this.F=a||v.document||document}u=Wb.prototype;u.Pa=Tb;u.a=function(a){return A(a)?this.F.getElementById(a):a};
u.j=function(a,b,c){var d=this.F,e=arguments,g=e[0],h=e[1];if(!Pb&&h&&(h.name||h.type)){g=["<",g];h.name&&g.push(' name="',ua(h.name),'"');if(h.type){g.push(' type="',ua(h.type),'"');var l={};zb(l,h);h=l;delete h.type}g.push(">");g=g.join("")}g=d.createElement(g);h&&(A(h)?g.className=h:z(h)?Rb.apply(k,[g].concat(h)):Xb(g,h));2<e.length&&Zb(d,g,e);return g};u.createElement=function(a){return this.F.createElement(a)};u.createTextNode=function(a){return this.F.createTextNode(a)};
u.appendChild=function(a,b){a.appendChild(b)};u.Mb=bc;u.contains=dc;function gc(a){this.Fb=a;this.Xa=[]}B(gc,pa);var hc=[];function R(a,b,c,d){z(c)||(hc[0]=c,c=hc);for(var e=0;e<c.length;e++)a.Xa.push(O(b,c[e],d||a,m,a.Fb||a));return a}function S(a,b,c,d,e,g){if(z(c))for(var h=0;h<c.length;h++)S(a,b,c[h],d,e,g);else{a:{d=d||a;g=g||a.Fb||a;e=!!e;if(b=Fb(b,c,e))for(c=0;c<b.length;c++)if(!b[c].ga&&b[c].oa==d&&b[c].capture==e&&b[c].Sa==g){b=b[c];break a}b=k}b&&(b=b.key,P(b),Ja(a.Xa,b))}return a}function ic(a){D(a.Xa,P);a.Xa.length=0}
gc.prototype.g=function(){gc.d.g.call(this);ic(this)};gc.prototype.handleEvent=function(){f(Error("EventHandler.handleEvent not implemented"))};function jc(a){K.call(this,"navigate");this.zb=a}B(jc,K);function kc(a,b,c,d){a&&!b&&f(Error("Can't use invisible history without providing a blank page."));var e;c?e=c:(e="history_state"+lc,document.write(ra(mc,e,e)),e=A(e)?document.getElementById(e):e);this.ya=e;this.P=c?Q(c)?Q(c).parentWindow||Q(c).defaultView:window:window;this.Tb=this.P.location.href.split("#")[0];this.Ta=b;G&&!b&&(this.Ta="https"==window.location.protocol?"https:///":'javascript:""');this.l=new Lb(nc);this.ha=!a;this.$=new gc(this);if(a||G&&!oc)d?a=d:(a="history_iframe"+lc,b=this.Ta?
'src="'+ua(this.Ta)+'"':"",document.write(ra(pc,a,b)),a=A(a)?document.getElementById(a):a),this.ma=a,this.Qb=j;G&&!oc&&(R(this.$,this.P,"load",this.hc),this.Ob=this.jb=m);this.ha?qc(this,rc(this),j):sc(this,this.ya.value);lc++}B(kc,Kb);kc.prototype.p=m;kc.prototype.qa=m;kc.prototype.na=k;var oc=G&&8<=document.documentMode||H&&J("1.9.2")||I&&J("532.1");u=kc.prototype;u.pa=k;u.g=function(){kc.d.g.call(this);this.$.M();this.J(m)};
u.J=function(a){if(a!=this.p)if(G&&!oc&&!this.jb)this.Ob=a;else if(a)if(Za?R(this.$,this.P.document,tc,this.lc):H&&R(this.$,this.P,"pageshow",this.jc),oc&&this.ha)R(this.$,this.P,"hashchange",this.ic),this.p=j,this.dispatchEvent(new jc(rc(this)));else{if(!G||this.jb)R(this.$,this.l,Nb,ma(this.Cb,this,j)),this.p=j,G||(this.na=rc(this)),this.l.start(),this.dispatchEvent(new jc(rc(this)))}else this.p=m,ic(this.$),this.l.stop()};u.hc=function(){this.jb=j;this.ya.value&&sc(this,this.ya.value,j);this.J(this.Ob)};
u.jc=function(a){a.H.persisted&&(this.J(m),this.J(j))};u.ic=function(){var a=uc(this.P);a!=this.na&&vc(this,a)};function rc(a){return a.pa!=k?a.pa:a.ha?uc(a.P):wc(a)||""}function uc(a){var a=a.location.href,b=a.indexOf("#");return 0>b?"":a.substring(b+1)}function qc(a,b,c){var d=a.P.location,a=a.Tb,e=-1!=d.href.indexOf("#");if(G||e||b)a+="#"+b;a!=d.href&&(c?d.replace(a):d.href=a)}
function sc(a,b,c,d){if(a.Qb||b!=wc(a))if(a.Qb=m,b=""+b,b=!ta.test(b)?encodeURIComponent(b):b,G){var e=a.ma.contentDocument||a.ma.contentWindow.document;e.open("text/html",c?"replace":i);e.write(ra(xc,ua(d||a.P.document.title),b));e.close()}else if(d=a.Ta+"#"+b,a=a.ma.contentWindow)c?a.location.replace(d):a.location.href=d}
function wc(a){if(G)return a=a.ma.contentDocument||a.ma.contentWindow.document,a.body?decodeURIComponent(a.body.innerHTML.replace(/\+/g," ")):k;var b=a.ma.contentWindow;if(b){var c;try{c=decodeURIComponent(uc(b).replace(/\+/g," "))}catch(d){return a.qa||(a.qa!=j&&a.l.setInterval(yc),a.qa=j),k}a.qa&&(a.qa!=m&&a.l.setInterval(nc),a.qa=m);return c||k}return k}
u.Cb=function(){if(this.ha){var a=uc(this.P);a!=this.na&&vc(this,a)}if(!this.ha||G&&!oc)if(a=wc(this)||"",this.pa==k||a==this.pa)this.pa=k,a!=this.na&&vc(this,a)};function vc(a,b){a.na=a.ya.value=b;a.ha?(G&&!oc&&sc(a,b),qc(a,b)):sc(a,b);a.dispatchEvent(new jc(rc(a)))}u.lc=function(){this.l.stop();this.l.start()};
var tc=["mousedown","keydown","mousemove"],xc="<title>%s</title><body>%s</body>",pc='<iframe id="%s" style="display:none" %s></iframe>',mc='<input type="text" name="%s" id="%s" style="display:none">',lc=0,nc=150,yc=1E4;function zc(){return j};/*
 Portions of this code are from the Dojo Toolkit, received by
 The Closure Library Authors under the BSD license. All other code is
 Copyright 2005-2009 The Closure Library Authors. All Rights Reserved.

 The "New" BSD License:

 Copyright (c) 2005-2009, The Dojo Foundation
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.
 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.
 Neither the name of the Dojo Foundation nor the names of its contributors
 may be used to endorse or promote products derived from this software
 without specific prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var Ac=function(){function a(a,c){if(!a)return[];if(a.constructor==Array)return a;if(!A(a))return[a];if(A(c)&&(c=A(c)?document.getElementById(c):c,!c))return[];var c=c||document,e=c.ownerDocument||c.documentElement;Ba=c.contentType&&"application/xml"==c.contentType||Za&&(c.doctype||"[object XMLDocument]"==e.toString())||!!e&&(G?e.xml:c.xmlVersion||e.xmlVersion);return(e=d(a)(c))&&e.$a?e:b(e)}function b(a){if(a&&a.$a)return a;var b=[];if(!a||!a.length)return b;a[0]&&b.push(a[0]);if(2>a.length)return b;
ca++;if(G&&Ba){var c=ca+"";a[0].setAttribute("_zipIdx",c);for(var d=1,e;e=a[d];d++)a[d].getAttribute("_zipIdx")!=c&&b.push(e),e.setAttribute("_zipIdx",c)}else if(G&&a.Ub)try{for(d=1;e=a[d];d++)ib(e)&&b.push(e)}catch(g){}else{a[0]&&(a[0]._zipIdx=ca);for(d=1;e=a[d];d++)a[d]._zipIdx!=ca&&b.push(e),e._zipIdx=ca}return b}function c(a,b){if(!b)return 1;var c=ke(a);return!b[c]?b[c]=1:0}function d(a,b){if(Yc){var c=Zc[a];if(c&&!b)return c}if(c=$c[a])return c;var c=a.charAt(0),g=-1==a.indexOf(" ");0<=a.indexOf("#")&&
g&&(b=j);if(Yc&&!b&&-1==">~+".indexOf(c)&&(!G||-1==a.indexOf(":"))&&!(ad&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf("|=")){var h=0<=">~+".indexOf(a.charAt(a.length-1))?a+" *":a;return Zc[a]=function(b){try{9==b.nodeType||g||f("");var c=b.querySelectorAll(h);G?c.Ub=j:c.$a=j;return c}catch(e){return d(a,j)(b)}}}var l=a.split(/\s*,\s*/);return $c[a]=2>l.length?e(a):function(a){for(var b=0,c=[],d;d=l[b++];)c=c.concat(e(d)(a));return c}}function e(a){var b=bd(sa(a));if(1==b.length){var c=
g(b[0]);return function(a){if(a=c(a,[]))a.$a=j;return a}}return function(a){for(var a=Ra(a),c,d,e=b.length,Xc,h,Ub=0;Ub<e;Ub++){h=[];c=b[Ub];d=a.length-1;0<d&&(Xc={},h.$a=j);d=g(c);for(var l=0;c=a[l];l++)d(c,h,Xc);if(!h.length)break;a=h}return h}}function g(a){var b=cd[a.ra];if(b)return b;var c=a.Gb,c=c?c.ab:"",d=o(a,{ja:1}),e="*"==a.t,g=document.getElementsByClassName;if(c)g={ja:1},e&&(g.t=1),d=o(a,g),"+"==c?b=n(d):"~"==c?b=l(d):">"==c&&(b=h(d));else if(a.id)d=!a.Ib&&e?zc:o(a,{ja:1,id:1}),b=function(b,
c){var e=Tb(b).a(a.id),g;if(g=e&&d(e))if(!(g=9==b.nodeType)){for(g=e.parentNode;g&&!(g==b);)g=g.parentNode;g=!!g}if(g)return Ra(e,c)};else if(g&&/\{\s*\[native code\]\s*\}/.test(""+g)&&a.R.length&&!ad)var d=o(a,{ja:1,R:1,id:1}),q=a.R.join(" "),b=function(a,b){for(var c=Ra(0,b),e,g=0,h=a.getElementsByClassName(q);e=h[g++];)d(e,a)&&c.push(e);return c};else!e&&!a.Ib?b=function(b,c){for(var d=Ra(0,c),e,g=0,h=b.getElementsByTagName(a.mb());e=h[g++];)d.push(e);return d}:(d=o(a,{ja:1,t:1,id:1}),b=function(b,
c){for(var e=Ra(0,c),g,h=0,je=b.getElementsByTagName(a.mb());g=je[h++];)d(g,b)&&e.push(g);return e});return cd[a.ra]=b}function h(a){a=a||zc;return function(b,d,e){for(var g=0,h=b[dd];b=h[g++];)Sa(b)&&(!e||c(b,e))&&a(b,g)&&d.push(b);return d}}function l(a){return function(b,d,e){for(b=b[Ta];b;){if(Sa(b)){if(e&&!c(b,e))break;a(b)&&d.push(b)}b=b[Ta]}return d}}function n(a){return function(b,d,e){for(;b=b[Ta];)if(!jb||ib(b)){(!e||c(b,e))&&a(b)&&d.push(b);break}return d}}function o(a,b){if(!a)return zc;
var b=b||{},c=k;b.ja||(c=Ca(c,ib));b.t||"*"!=a.t&&(c=Ca(c,function(b){return b&&b.tagName==a.mb()}));b.R||D(a.R,function(a,b){var d=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=Ca(c,function(a){return d.test(a.className)});c.count=b});b.fa||D(a.fa,function(a){var b=a.name;Vb[b]&&(c=Ca(c,Vb[b](b,a.value)))});b.Na||D(a.Na,function(a){var b,d=a.fb;a.type&&ed[a.type]?b=ed[a.type](d,a.tb):d.length&&(b=le(d));b&&(c=Ca(c,b))});b.id||a.id&&(c=Ca(c,function(b){return!!b&&b.id==a.id}));c||"default"in b||(c=zc);return c}
function x(a){return L(a)%2}function q(a){return!(L(a)%2)}function L(a){var b=a.parentNode,c=0,d=b[dd],e=a._i||-1,g=b._l||-1;if(!d)return-1;d=d.length;if(g==d&&0<=e&&0<=g)return e;b._l=d;e=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[Ta])Sa(b)&&(b._i=++c,a===b&&(e=c));return e}function t(a){for(;a=a[Ta];)if(Sa(a))return m;return j}function fd(a){for(;a=a[me];)if(Sa(a))return m;return j}function da(a,b){return!a?"":"class"==b?a.className||"":"for"==b?a.htmlFor||"":"style"==b?a.style.cssText||"":
(Ba?a.getAttribute(b):a.getAttribute(b,2))||""}function ib(a){return 1==a.nodeType}function Ca(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}}function bd(a){function b(){0<=q&&(r.id=c(q,w).replace(/\\/g,""),q=-1);if(0<=o){var a=o==w?k:c(o,w);0>">~+".indexOf(a)?r.t=a:r.ab=a;o=-1}0<=n&&(r.R.push(c(n+1,w).replace(/\\/g,"")),n=-1)}function c(b,d){return sa(a.slice(b,d))}for(var a=0<=">~+".indexOf(a.slice(-1))?a+" * ":a+" ",d=[],e=-1,g=-1,h=-1,l=-1,n=-1,q=
-1,o=-1,x="",t="",L,w=0,da=a.length,r=k,F=k;x=t,t=a.charAt(w),w<da;w++)if("\\"!=x)if(r||(L=w,r={ra:k,fa:[],Na:[],R:[],t:k,ab:k,id:k,mb:function(){return Ba?this.mc:this.t}},o=w),0<=e)if("]"==t){F.fb?F.tb=c(h||e+1,w):F.fb=c(e+1,w);if((e=F.tb)&&('"'==e.charAt(0)||"'"==e.charAt(0)))F.tb=e.slice(1,-1);r.Na.push(F);F=k;e=h=-1}else"="==t&&(h=0<="|~^$*".indexOf(x)?x:"",F.type=h+t,F.fb=c(e+1,w-h.length),h=w+1);else 0<=g?")"==t&&(0<=l&&(F.value=c(g+1,w)),l=g=-1):"#"==t?(b(),q=w+1):"."==t?(b(),n=w):":"==t?
(b(),l=w):"["==t?(b(),e=w,F={}):"("==t?(0<=l&&(F={name:c(l+1,w),value:k},r.fa.push(F)),g=w):" "==t&&x!=t&&(b(),0<=l&&r.fa.push({name:c(l+1,w)}),r.Ib=r.fa.length||r.Na.length||r.R.length,r.pc=r.ra=c(L,w),r.mc=r.t=r.ab?k:r.t||"*",r.t&&(r.t=r.t.toUpperCase()),d.length&&d[d.length-1].ab&&(r.Gb=d.pop(),r.ra=r.Gb.ra+" "+r.ra),d.push(r),r=k);return d}function Ra(a,b){var c=b||[];a&&c.push(a);return c}var ad=I&&"BackCompat"==document.compatMode,dd=document.firstChild.children?"children":"childNodes",Ba=m,
ed={"*=":function(a,b){return function(c){return 0<=da(c,a).indexOf(b)}},"^=":function(a,b){return function(c){return 0==da(c,a).indexOf(b)}},"$=":function(a,b){return function(c){c=" "+da(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return 0<=(" "+da(b,a)+" ").indexOf(c)}},"|=":function(a,b){b=" "+b;return function(c){c=" "+da(c,a);return c==b||0==c.indexOf(b+"-")}},"=":function(a,b){return function(c){return da(c,a)==b}}},jb="undefined"==
typeof document.firstChild.nextElementSibling,Ta=!jb?"nextElementSibling":"nextSibling",me=!jb?"previousElementSibling":"previousSibling",Sa=jb?ib:zc,Vb={checked:function(){return function(a){return a.checked||a.attributes.checked}},"first-child":function(){return fd},"last-child":function(){return t},"only-child":function(){return function(a){return!fd(a)||!t(a)?m:j}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;0<=a;a--){var c=b[a].nodeType;if(1===c||3==c)return m}return j}},
contains:function(a,b){var c=b.charAt(0);if('"'==c||"'"==c)b=b.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(b)}},not:function(a,b){var c=bd(b)[0],d={ja:1};"*"!=c.t&&(d.t=1);c.R.length||(d.R=1);var e=o(c,d);return function(a){return!e(a)}},"nth-child":function(a,b){if("odd"==b)return x;if("even"==b)return q;if(-1!=b.indexOf("n")){var c=b.split("n",2),d=c[0]?"-"==c[0]?-1:parseInt(c[0],10):1,e=c[1]?parseInt(c[1],10):0,g=0,h=-1;0<d?0>e?e=e%d&&d+e%d:0<e&&(e>=d&&(g=e-e%d),e%=d):0>d&&(d*=
-1,0<e&&(h=e,e%=d));if(0<d)return function(a){a=L(a);return a>=g&&(0>h||a<=h)&&a%d==e};b=e}var l=parseInt(b,10);return function(a){return L(a)==l}}},le=G?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(c){return Ba?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},cd={},$c={},Zc={},Yc=!!document.querySelectorAll&&(!I||J("526")),ca=0,ke=G?function(a){return Ba?a.getAttribute("_uid")||a.setAttribute("_uid",++ca)||
ca:a.uniqueID}:function(a){return a._uid||(a._uid=++ca)};a.fa=Vb;return a}();aa("goog.dom.query",Ac);aa("goog.dom.query.pseudos",Ac.fa);function Bc(a,b,c,d,e){if(!G&&(!I||!J("525")))return j;if(ab&&e)return Cc(a);if(e&&!d||!c&&(17==b||18==b)||G&&d&&b==a)return m;switch(a){case 13:return!(G&&mb());case 27:return!I}return Cc(a)}function Cc(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||I&&0==a)return j;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return j;default:return m}};function Dc(a){a=""+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){}f(Error("Invalid JSON string: "+a))}function Ec(){this.cb=i}function Fc(a,b){var c=[];Gc(a,b,c);return c.join("")}
function Gc(a,b,c){switch(typeof b){case "string":Hc(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==k){c.push("null");break}if(z(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],Gc(a,a.cb?a.cb.call(b,""+g,e):e,c),e=",";c.push("]");break}c.push("{");d="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(e=b[g],"function"!=typeof e&&(c.push(d),Hc(g,c),c.push(":"),
Gc(a,a.cb?a.cb.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:f(Error("Unknown type: "+typeof b))}}var Ic={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Jc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Hc(a,b){b.push('"',a.replace(Jc,function(a){if(a in Ic)return Ic[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Ic[a]=e+b.toString(16)}),'"')};function Kc(){};function Lc(a){this.Ba=a;this.Nb=new Ec}u=Lc.prototype;u.Ba=k;u.Nb=k;u.set=function(a,b){b!==i?this.Ba.set(a,Fc(this.Nb,b)):this.Ba.remove(a)};u.get=function(a){a=this.Ba.get(a);if(a!==k)try{return Dc(a)}catch(b){f("Storage: Invalid value was encountered")}};u.remove=function(a){this.Ba.remove(a)};function Mc(){}B(Mc,Kc);function Nc(a){this.K=a}B(Nc,Mc);Nc.prototype.set=function(a,b){try{this.K.setItem(a,b)}catch(c){f("Storage mechanism: Quota exceeded")}};Nc.prototype.get=function(a){a=this.K.getItem(a);if(A(a)||a===k)return a;f("Storage mechanism: Invalid value was encountered")};Nc.prototype.remove=function(a){this.K.removeItem(a)};function Oc(){var a=k;try{a=window.localStorage||k}catch(b){}this.K=a}B(Oc,Nc);function Pc(a,b){a.style.display=b?"":"none"}var Qc=H?"MozUserSelect":I?"WebkitUserSelect":k;function Rc(a,b,c){c=!c?a.getElementsByTagName("*"):k;if(Qc){if(b=b?"none":"",a.style[Qc]=b,c)for(var a=0,d;d=c[a];a++)d.style[Qc]=b}else if(G||Za)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)};function Sc(){}y(Sc);Sc.prototype.gc=0;Sc.N();function T(a){this.G=a||Tb();this.Da=Tc}B(T,Kb);T.prototype.ec=Sc.N();var Tc=k;function Uc(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"}f(Error("Invalid component state"))}u=T.prototype;u.S=k;u.e=m;u.b=k;u.Da=k;u.Za=k;u.q=k;u.m=k;u.u=k;u.Rb=m;
u.o=function(){return this.S||(this.S=":"+(this.ec.gc++).toString(36))};u.Ga=function(a){if(this.q&&this.q.u){var b=this.q.u,c=this.S;c in b&&delete b[c];xb(this.q.u,a,this)}this.S=a};u.a=p("b");function Vc(a){return a.ka||(a.ka=new gc(a))}function Wc(a,b){a==b&&f(Error("Unable to set parent component"));b&&a.q&&a.S&&gd(a.q,a.S)&&a.q!=b&&f(Error("Unable to set parent component"));a.q=b;T.d.yb.call(a,b)}u.getParent=p("q");
u.yb=function(a){this.q&&this.q!=a&&f(Error("Method not supported"));T.d.yb.call(this,a)};u.Pa=p("G");u.j=function(){this.b=this.G.createElement("div")};function hd(a,b,c){a.e&&f(Error("Component already rendered"));a.b||a.j();b?b.insertBefore(a.b,c||k):a.G.F.body.appendChild(a.b);(!a.q||a.q.e)&&a.v()}u.Y=function(a){this.e&&f(Error("Component already rendered"));if(a&&this.L(a)){this.Rb=j;if(!this.G||this.G.F!=Q(a))this.G=Tb(a);this.hb(a);this.v()}else f(Error("Invalid element to decorate"))};
u.L=s(j);u.hb=function(a){this.b=a};u.v=function(){this.e=j;id(this,function(a){!a.e&&a.a()&&a.v()})};u.aa=function(){id(this,function(a){a.e&&a.aa()});this.ka&&ic(this.ka);this.e=m};u.g=function(){T.d.g.call(this);this.e&&this.aa();this.ka&&(this.ka.M(),delete this.ka);id(this,function(a){a.M()});!this.Rb&&this.b&&cc(this.b);this.q=this.Za=this.b=this.u=this.m=k};u.La=function(a,b){this.eb(a,jd(this),b)};
u.eb=function(a,b,c){a.e&&(c||!this.e)&&f(Error("Component already rendered"));(0>b||b>jd(this))&&f(Error("Child component index out of bounds"));if(!this.u||!this.m)this.u={},this.m=[];a.getParent()==this?(this.u[a.o()]=a,Ja(this.m,a)):xb(this.u,a.o(),a);Wc(a,this);Na(this.m,b,0,a);a.e&&this.e&&a.getParent()==this?(c=this.w(),c.insertBefore(a.a(),c.childNodes[b]||k)):c?(this.b||this.j(),b=U(this,b+1),hd(a,this.w(),b?b.b:k)):this.e&&!a.e&&a.b&&a.v()};u.w=p("b");
function kd(a){if(a.Da==k){var b;a:{b=a.e?a.b:a.G.F.body;var c=Q(b);if(c.defaultView&&c.defaultView.getComputedStyle&&(b=c.defaultView.getComputedStyle(b,k))){b=b.direction||b.getPropertyValue("direction");break a}b=""}a.Da="rtl"==(b||((a.e?a.b:a.G.F.body).currentStyle?(a.e?a.b:a.G.F.body).currentStyle.direction:k)||(a.e?a.b:a.G.F.body).style&&(a.e?a.b:a.G.F.body).style.direction)}return a.Da}u.Ha=function(a){this.e&&f(Error("Component already rendered"));this.Da=a};
function jd(a){return a.m?a.m.length:0}function gd(a,b){return a.u&&b?(b in a.u?a.u[b]:i)||k:k}function U(a,b){return a.m?a.m[b]||k:k}function id(a,b,c){a.m&&D(a.m,b,c)}function ld(a,b){return a.m&&b?Aa(a.m,b):-1}u.removeChild=function(a,b){if(a){var c=A(a)?a:a.o(),a=gd(this,c);if(c&&a){var d=this.u;c in d&&delete d[c];Ja(this.m,a);b&&(a.aa(),a.b&&cc(a.b));Wc(a,k)}}a||f(Error("Child is not in parent component"));return a};
u.Mb=function(a){for(;this.m&&0!=this.m.length;)this.removeChild(U(this,0),a)};function md(a,b){a&&nd(this,a,b)}B(md,Kb);u=md.prototype;u.b=k;u.Va=k;u.qb=k;u.Wa=k;u.X=-1;u.W=-1;
var od={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},pd={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},qd={61:187,59:186},rd=G||I&&J("525");u=md.prototype;
u.ac=function(a){if(I&&(17==this.X&&!a.ctrlKey||18==this.X&&!a.altKey))this.W=this.X=-1;rd&&!Bc(a.keyCode,this.X,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.W=H&&a.keyCode in qd?qd[a.keyCode]:a.keyCode};u.bc=function(){this.W=this.X=-1};
u.handleEvent=function(a){var b=a.H,c,d;G&&"keypress"==a.type?(c=this.W,d=13!=c&&27!=c?b.keyCode:0):I&&"keypress"==a.type?(c=this.W,d=0<=b.charCode&&63232>b.charCode&&Cc(c)?b.charCode:0):Za?(c=this.W,d=Cc(c)?b.keyCode:0):(c=b.keyCode||this.W,d=b.charCode||0,ab&&63==d&&!c&&(c=191));var e=c,g=b.keyIdentifier;c?63232<=c&&c in od?e=od[c]:25==c&&a.shiftKey&&(e=9):g&&g in pd&&(e=pd[g]);a=e==this.X;this.X=e;b=new sd(e,d,a,b);try{this.dispatchEvent(b)}finally{b.M()}};u.a=p("b");
function nd(a,b,c){a.Wa&&a.detach();a.b=b;a.Va=O(a.b,"keypress",a,c);a.qb=O(a.b,"keydown",a.ac,c,a);a.Wa=O(a.b,"keyup",a.bc,c,a)}u.detach=function(){this.Va&&(P(this.Va),P(this.qb),P(this.Wa),this.Wa=this.qb=this.Va=k);this.b=k;this.W=this.X=-1};u.g=function(){md.d.g.call(this);this.detach()};function sd(a,b,c,d){d&&this.za(d,i);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}B(sd,rb);function td(a,b){a.setAttribute("role",b);a.qc=b};function V(){}var ud;y(V);u=V.prototype;u.j=function(a){var b=a.Pa().j("div",this.lb(a).join(" "),a.C);vd(a,b);return b};u.w=function(a){return a};u.Z=function(a,b,c){if(a=a.a?a.a():a)if(G&&!J("7")){var d=wd(Qb(a),b);d.push(b);na(c?Rb:Sb,a).apply(k,d)}else c?Rb(a,b):Sb(a,b)};u.L=s(j);
u.Y=function(a,b){b.id&&a.Ga(b.id);var c=this.w(b);c&&c.firstChild?xd(a,c.firstChild.nextSibling?Ma(c.childNodes):c.firstChild):a.C=k;var d=0,e=this.z(),g=this.z(),h=m,l=m,c=m,n=Qb(b);D(n,function(a){if(!h&&a==e)h=j,g==e&&(l=j);else if(!l&&a==g)l=j;else{var b=d;if(!this.Pb){this.Oa||yd(this);var c=this.Oa,n={},o;for(o in c)n[c[o]]=o;this.Pb=n}a=parseInt(this.Pb[a],10);d=b|(isNaN(a)?0:a)}},this);a.f=d;h||(n.push(e),g==e&&(l=j));l||n.push(g);var o=a.I;o&&n.push.apply(n,o);if(G&&!J("7")){var x=wd(n);
0<x.length&&(n.push.apply(n,x),c=j)}if(!h||!l||o||c)b.className=n.join(" ");vd(a,b);return b};u.Ua=function(a){kd(a)&&this.Ha(a.a(),j);a.isEnabled()&&this.sa(a,a.i)};function vd(a,b){a.isEnabled()||zd(b,1,j);a.f&8&&zd(b,8,j);a.s&16&&zd(b,16,!!(a.f&16));a.s&64&&zd(b,64,!!(a.f&64))}u.Ea=function(a,b){Rc(a,!b,!G&&!Za)};u.Ha=function(a,b){this.Z(a,this.z()+"-rtl",b)};u.ba=function(a){var b;return a.s&32&&(b=a.k())?fc(b):m};
u.sa=function(a,b){var c;if(a.s&32&&(c=a.k())){if(!b&&a.f&32){try{c.blur()}catch(d){}a.f&32&&a.va(k)}fc(c)!=b&&(b?c.tabIndex=0:(c.tabIndex=-1,c.removeAttribute("tabIndex")))}};u.ta=function(a,b){Pc(a,b)};u.r=function(a,b,c){var d=a.a();if(d){var e=Ad(this,b);e&&this.Z(a,e,c);zd(d,b,c)}};function zd(a,b,c){ud||(ud={1:"disabled",8:"selected",16:"checked",64:"expanded"});(b=ud[b])&&a.setAttribute("aria-"+b,c)}
u.T=function(a,b){var c=this.w(a);if(c&&(bc(c),b))if(A(b))ec(c,b);else{var d=function(a){if(a){var b=Q(c);c.appendChild(A(a)?b.createTextNode(a):a)}};z(b)?D(b,d):ea(b)&&!("nodeType"in b)?D(Ma(b),d):d(b)}};u.k=function(a){return a.a()};u.z=s("goog-control");u.lb=function(a){var b=this.z(),c=[b],d=this.z();d!=b&&c.push(d);b=a.f;for(d=[];b;){var e=b&-b;d.push(Ad(this,e));b&=~e}c.push.apply(c,d);(a=a.I)&&c.push.apply(c,a);G&&!J("7")&&c.push.apply(c,wd(c));return c};
function wd(a,b){var c=[];b&&(a=a.concat([b]));D([],function(d){Fa(d,na(Ha,a))&&(!b||Ha(d,b))&&c.push(d.join("_"))});return c}function Ad(a,b){a.Oa||yd(a);return a.Oa[b]}function yd(a){var b=a.z();a.Oa={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function Bd(a,b){a||f(Error("Invalid class name "+a));fa(b)||f(Error("Invalid decorator function "+b));Cd[a]=b}var Dd={},Cd={};function W(a,b,c){T.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=ha(b);if(d=Dd[d])break;b=b.d?b.d.constructor:k}b=d?fa(d.N)?d.N():new d:k}this.c=b;this.C=a}B(W,T);u=W.prototype;u.C=k;u.f=0;u.s=39;u.ua=255;u.Ja=0;u.i=j;u.I=k;u.wa=j;u.Ma=m;u.Kb=k;u.k=function(){return this.c.k(this)};u.Qa=function(){return this.A||(this.A=new md)};
u.Z=function(a,b){b?a&&(this.I?Ha(this.I,a)||this.I.push(a):this.I=[a],this.c.Z(this,a,j)):a&&this.I&&(Ja(this.I,a),0==this.I.length&&(this.I=k),this.c.Z(this,a,m))};u.j=function(){var a=this.c.j(this);this.b=a;var b=this.Kb||i;b&&td(a,b);this.Ma||this.c.Ea(a,m);this.i||this.c.ta(a,m)};u.w=function(){return this.c.w(this.a())};u.L=function(a){return this.c.L(a)};u.hb=function(a){this.b=a=this.c.Y(this,a);var b=this.Kb||i;b&&td(a,b);this.Ma||this.c.Ea(a,m);this.i="none"!=a.style.display};
u.v=function(){W.d.v.call(this);this.c.Ua(this);if(this.s&-2&&(this.wa&&Ed(this,j),this.s&32)){var a=this.k();if(a){var b=this.Qa();nd(b,a);R(R(R(Vc(this),b,"key",this.U),a,"focus",this.Ra),a,"blur",this.va)}}};function Ed(a,b){var c=Vc(a),d=a.a();b?(R(R(R(R(c,d,"mouseover",a.pb),d,"mousedown",a.la),d,"mouseup",a.xa),d,"mouseout",a.ob),G&&R(c,d,"dblclick",a.Eb)):(S(S(S(S(c,d,"mouseover",a.pb),d,"mousedown",a.la),d,"mouseup",a.xa),d,"mouseout",a.ob),G&&S(c,d,"dblclick",a.Eb))}
u.aa=function(){W.d.aa.call(this);this.A&&this.A.detach();this.i&&this.isEnabled()&&this.c.sa(this,m)};u.g=function(){W.d.g.call(this);this.A&&(this.A.M(),delete this.A);delete this.c;this.I=this.C=k};u.T=function(a){this.c.T(this.a(),a);this.C=a};function xd(a,b){a.C=b}u.Ha=function(a){W.d.Ha.call(this,a);var b=this.a();b&&this.c.Ha(b,a)};u.Ea=function(a){this.Ma=a;var b=this.a();b&&this.c.Ea(b,a)};
u.ta=function(a,b){if(b||this.i!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.a();c&&this.c.ta(c,a);this.isEnabled()&&this.c.sa(this,a);this.i=a;return j}return m};u.isEnabled=function(){return!(this.f&1)};u.J=function(a){var b=this.getParent();if((!b||"function"!=typeof b.isEnabled||b.isEnabled())&&Fd(this,1,!a))a||(this.setActive(m),this.O(m)),this.i&&this.c.sa(this,a),this.r(1,!a)};u.O=function(a){Fd(this,2,a)&&this.r(2,a)};u.setActive=function(a){Fd(this,4,a)&&this.r(4,a)};
u.Ia=function(a){Fd(this,8,a)&&this.r(8,a)};function Gd(a,b){Fd(a,16,b)&&a.r(16,b)}u.Fa=function(a){Fd(this,32,a)&&this.r(32,a)};function Hd(a,b){Fd(a,64,b)&&a.r(64,b)}u.r=function(a,b){this.s&a&&b!=!!(this.f&a)&&(this.c.r(this,a,b),this.f=b?this.f|a:this.f&~a)};function Id(a,b,c){a.e&&a.f&b&&!c&&f(Error("Component already rendered"));!c&&a.f&b&&a.r(b,m);a.s=c?a.s|b:a.s&~b}function X(a,b){return!!(a.ua&b)&&!!(a.s&b)}
function Fd(a,b,c){return!!(a.s&b)&&!!(a.f&b)!=c&&(!(a.Ja&b)||a.dispatchEvent(Uc(b,c)))&&!a.ib}u.pb=function(a){(!a.relatedTarget||!dc(this.a(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&X(this,2)&&this.O(j)};u.ob=function(a){if((!a.relatedTarget||!dc(this.a(),a.relatedTarget))&&this.dispatchEvent("leave"))X(this,4)&&this.setActive(m),X(this,2)&&this.O(m)};
u.la=function(a){if(this.isEnabled()&&(X(this,2)&&this.O(j),tb(a)&&(!I||!ab||!a.ctrlKey)))X(this,4)&&this.setActive(j),this.c.ba(this)&&this.k().focus();!this.Ma&&tb(a)&&(!I||!ab||!a.ctrlKey)&&a.preventDefault()};u.xa=function(a){this.isEnabled()&&(X(this,2)&&this.O(j),this.f&4&&Jd(this,a)&&X(this,4)&&this.setActive(m))};u.Eb=function(a){this.isEnabled()&&Jd(this,a)};
function Jd(a,b){X(a,16)&&Gd(a,!(a.f&16));X(a,8)&&a.Ia(j);X(a,64)&&Hd(a,!(a.f&64));var c=new K("action",a);b&&(c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.xb=b.xb);return a.dispatchEvent(c)}u.Ra=function(){X(this,32)&&this.Fa(j)};u.va=function(){X(this,4)&&this.setActive(m);X(this,32)&&this.Fa(m)};u.U=function(a){return this.i&&this.isEnabled()&&this.nb(a)?(a.preventDefault(),a.stopPropagation(),j):m};u.nb=function(a){return 13==a.keyCode&&Jd(this,a)};
fa(W)||f(Error("Invalid component class "+W));fa(V)||f(Error("Invalid renderer class "+V));var Kd=ha(W);Dd[Kd]=V;Bd("goog-control",function(){return new W(k)});function Ld(a,b,c){this.vb=a;this.ia=b||m;this.S=c||0}Ld.prototype.o=p("S");Ld.prototype.Ga=function(a){this.S=a};function Md(){var a;a=new Oc;var b;a:{try{b=!!a.K&&!!a.K.getItem;break a}catch(c){}b=m}this.K=(a=b?a:k)?new Lc(a):k;this.V=[];this.ub=0}B(Md,Kb);Md.prototype.load=function(){if(this.K){Ia(this.V);var a=this.K.get("todos-closure");a&&D(a,function(a){a=new Ld(a.title,a.completed,a.id);a.o()>this.ub&&(this.ub=a.o());this.V.push(a)},this)}Nd(this,m)};function Od(a){var b=E,c=Ga(b.V,function(b){return a.o()===b.o()});-1===c?(0===a.o()&&a.Ga(++b.ub),b.V.push(a)):b.V[c]=a;Nd(b)}
Md.prototype.remove=function(a){Ka(this.V,function(b){return a.o()===b.o()});Nd(this)};function Nd(a,b){(b===i||b)&&Pd(a);a.dispatchEvent(new Qd(a))}Md.prototype.getAll=p("V");function Pd(a){if(a.K){var b=[];D(a.V,function(a){b.push({completed:a.ia,title:a.vb,id:a.o()})});a.K.set("todos-closure",b)}}function Qd(a){K.call(this,"change",a)}B(Qd,K);G&&J(8);"ScriptEngine"in v&&"JScript"==v.ScriptEngine()&&(v.ScriptEngineMajorVersion(),v.ScriptEngineMinorVersion(),v.ScriptEngineBuildVersion());function Rd(a){return"object"===typeof a&&a&&0===a.oc?a.content:(""+a).replace(Sd,Td)}var Ud={"\x00":"&#0;",'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\u000c":"&#12;","\r":"&#13;"," ":"&#32;","-":"&#45;","/":"&#47;","=":"&#61;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function Td(a){return Ud[a]}var Sd=/[\x00\x22\x26\x27\x3c\x3e]/g;function Vd(a){return"<strong>"+Rd(a.wb)+"</strong> "+(1==a.wb?"item":"items")+" left"};function Wd(){}B(Wd,V);y(Wd);Wd.prototype.j=function(a){var b='<button id="clear-completed">'+("Clear completed ("+Rd(a.C)+")")+"</button>",b=ac(b);vd(a,b);return b};Wd.prototype.L=s(m);Wd.prototype.T=function(a,b){a.innerHTML="Clear completed ("+Rd(b)+")"};Wd.prototype.r=function(a,b,c){(a=a.a())&&zd(a,b,c)};function Xd(){}B(Xd,V);y(Xd);Xd.prototype.j=function(a){var b='<span id="todo-count">'+Vd({wb:a.C})+"</span>",b=ac(b);vd(a,b);return b};Xd.prototype.L=s(m);Xd.prototype.T=function(a,b){a.innerHTML=Vd({wb:b})};Xd.prototype.r=function(a,b,c){(a=a.a())&&zd(a,b,c)};function Yd(){}B(Yd,V);y(Yd);Yd.prototype.j=function(a){var b;b='<li><div class="view"><input class="toggle" type="checkbox" '+(a.f&16?"checked":"")+"><label>"+Rd(a.C)+'</label><button class="destroy"></button></div><input class="edit" value="Rule the web"></li>';b=ac(b);vd(a,b);this.r(a,a.f,j);return b};Yd.prototype.r=function(a,b,c){var d=a.a();if(d){switch(b){case 16:this.Z(a,"done",c);(d?(d?d.childNodes[0]:k).childNodes[0]:k).checked=c;break;case 8:this.Z(a,"editing",c)}zd(d,b,c)}};
Yd.prototype.k=function(a){return a.a()?a.a().childNodes[1]:k};Yd.prototype.w=function(a){return a?(a?a.childNodes[0]:k).childNodes[1]:k};function Y(a){W.call(this,"",Yd.N(),a);Id(this,16,j);Id(this,8,j);this.ua&=-17;this.ua&=-9;this.Ea(j)}B(Y,W);Y.prototype.v=function(){Y.d.v.call(this);R(Vc(this),this.a(),"click",function(a){a.preventDefault()});R(Vc(this),this.a(),"dblclick",function(){this.Ia(j)});var a=this.a()?this.a().childNodes[1]:k;R(Vc(this),a,"keyup",function(a){13===a.H.keyCode&&this.Fa(m)})};
Y.prototype.xa=function(a){Y.d.xa.call(this,a);this.isEnabled()&&(a.target===(this.a()?(this.a()?this.a().childNodes[0]:k).childNodes[0]:k)?(Gd(this,!(this.f&16)),this.dispatchEvent("edit")):a.target===(this.a()?(this.a()?this.a().childNodes[0]:k).childNodes[2]:k)&&this.dispatchEvent("destroy"))};Y.prototype.Fa=function(a){Y.d.Fa.call(this,a);!a&&this.f&8&&(a=sa((this.a()?this.a().childNodes[1]:k).value),""===a?this.dispatchEvent("destroy"):(this.T(a),this.Ia(m),this.dispatchEvent("edit")))};
Y.prototype.Ia=function(a){Y.d.Ia.call(this,a);a&&(a=this.a()?this.a().childNodes[1]:k,a.value=this.C,a.focus())};function Zd(){}B(Zd,V);y(Zd);Zd.prototype.j=function(a){return a.Pa().j("div",this.z())};Zd.prototype.Y=function(a,b){b.id&&a.Ga(b.id);if("HR"==b.tagName){var c=b,b=this.j(a);c.parentNode&&c.parentNode.insertBefore(b,c);cc(c)}else Rb(b,this.z());return b};Zd.prototype.T=function(){};Zd.prototype.z=s("goog-menuseparator");function $d(a,b){W.call(this,k,a||Zd.N(),b);Id(this,1,m);Id(this,2,m);Id(this,4,m);Id(this,32,m);this.f=1}B($d,W);$d.prototype.v=function(){$d.d.v.call(this);td(this.a(),"separator")};Bd("goog-menuseparator",function(){return new $d});function ae(){}y(ae);function be(a,b){a&&(a.tabIndex=b?0:-1)}u=ae.prototype;u.j=function(a){return a.Pa().j("div",this.lb(a).join(" "))};u.w=function(a){return a};u.L=function(a){return"DIV"==a.tagName};u.Y=function(a,b){b.id&&a.Ga(b.id);var c=this.z(),d=m,e=Qb(b);e&&D(e,function(b){b==c?d=j:b&&(b==c+"-disabled"?a.J(m):b==c+"-horizontal"?ce(a,de):b==c+"-vertical"&&ce(a,ee))},this);d||Rb(b,c);fe(a,this.w(b));return b};
function fe(a,b){if(b)for(var c=b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(1==c.nodeType){var e;a:{e=i;for(var g=Qb(c),h=0,l=g.length;h<l;h++)if(e=g[h]in Cd?Cd[g[h]]():k)break a;e=k}e&&(e.b=c,a.isEnabled()||e.J(m),a.La(e),e.Y(c))}else(!c.nodeValue||""==sa(c.nodeValue))&&b.removeChild(c);c=d}}u.Ua=function(a){a=a.a();Rc(a,j,H);G&&(a.hideFocus=j)};u.k=function(a){return a.a()};u.z=s("goog-container");
u.lb=function(a){var b=this.z(),c=[b,a.da==de?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};function Z(a,b,c){T.call(this,c);this.c=b||ae.N();this.da=a||ee}B(Z,T);var de="horizontal",ee="vertical";u=Z.prototype;u.rb=k;u.A=k;u.c=k;u.da=k;u.i=j;u.p=j;u.kb=j;u.n=-1;u.h=k;u.ca=m;u.Ab=m;u.kc=j;u.Q=k;u.k=function(){return this.rb||this.c.k(this)};u.Qa=function(){return this.A||(this.A=new md(this.k()))};u.j=function(){this.b=this.c.j(this)};u.w=function(){return this.c.w(this.a())};u.L=function(a){return this.c.L(a)};u.hb=function(a){this.b=this.c.Y(this,a);"none"==a.style.display&&(this.i=m)};
u.v=function(){Z.d.v.call(this);id(this,function(a){a.e&&ge(this,a)},this);var a=this.a();this.c.Ua(this);this.ta(this.i,j);R(R(R(R(R(R(R(R(Vc(this),this,"enter",this.Zb),this,"highlight",this.$b),this,"unhighlight",this.dc),this,"open",this.cc),this,"close",this.Xb),a,"mousedown",this.la),Q(a),"mouseup",this.Yb),a,["mousedown","mouseup","mouseover","mouseout"],this.Wb);this.ba()&&he(this,j)};
function he(a,b){var c=Vc(a),d=a.k();b?R(R(R(c,d,"focus",a.Ra),d,"blur",a.va),a.Qa(),"key",a.U):S(S(S(c,d,"focus",a.Ra),d,"blur",a.va),a.Qa(),"key",a.U)}u.aa=function(){ie(this,-1);this.h&&Hd(this.h,m);this.ca=m;Z.d.aa.call(this)};u.g=function(){Z.d.g.call(this);this.A&&(this.A.M(),this.A=k);this.c=this.h=this.Q=this.rb=k};u.Zb=s(j);
u.$b=function(a){var b=ld(this,a.target);if(-1<b&&b!=this.n){var c=U(this,this.n);c&&c.O(m);this.n=b;c=U(this,this.n);this.ca&&c.setActive(j);this.kc&&this.h&&c!=this.h&&(c.s&64?Hd(c,j):Hd(this.h,m))}this.a().setAttribute("aria-activedescendant",a.target.a().id)};u.dc=function(a){a.target==U(this,this.n)&&(this.n=-1);this.a().setAttribute("aria-activedescendant","")};u.cc=function(a){if((a=a.target)&&a!=this.h&&a.getParent()==this)this.h&&Hd(this.h,m),this.h=a};
u.Xb=function(a){a.target==this.h&&(this.h=k)};u.la=function(a){this.p&&(this.ca=j);var b=this.k();b&&fc(b)?b.focus():a.preventDefault()};u.Yb=function(){this.ca=m};u.Wb=function(a){var b;a:{b=a.target;if(this.Q)for(var c=this.a();b&&b!==c;){var d=b.id;if(d in this.Q){b=this.Q[d];break a}b=b.parentNode}b=k}if(b)switch(a.type){case "mousedown":b.la(a);break;case "mouseup":b.xa(a);break;case "mouseover":b.pb(a);break;case "mouseout":b.ob(a)}};u.Ra=function(){};
u.va=function(){ie(this,-1);this.ca=m;this.h&&Hd(this.h,m)};u.U=function(a){return this.isEnabled()&&this.i&&(0!=jd(this)||this.rb)&&this.nb(a)?(a.preventDefault(),a.stopPropagation(),j):m};
u.nb=function(a){var b=U(this,this.n);if(b&&"function"==typeof b.U&&b.U(a)||this.h&&this.h!=b&&"function"==typeof this.h.U&&this.h.U(a))return j;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return m;switch(a.keyCode){case 27:if(this.ba())this.k().blur();else return m;break;case 36:ne(this);break;case 35:oe(this);break;case 38:if(this.da==ee)pe(this);else return m;break;case 37:if(this.da==de)kd(this)?qe(this):pe(this);else return m;break;case 40:if(this.da==ee)qe(this);else return m;break;case 39:if(this.da==
de)kd(this)?pe(this):qe(this);else return m;break;default:return m}return j};function ge(a,b){var c=b.a(),c=c.id||(c.id=b.o());a.Q||(a.Q={});a.Q[c]=b}u.La=function(a,b){Z.d.La.call(this,a,b)};u.eb=function(a,b,c){a.Ja|=2;a.Ja|=64;(this.ba()||!this.Ab)&&Id(a,32,m);a.e&&m!=a.wa&&Ed(a,m);a.wa=m;Z.d.eb.call(this,a,b,c);a.e&&this.e&&ge(this,a);b<=this.n&&this.n++};
u.removeChild=function(a,b){if(a=A(a)?gd(this,a):a){var c=ld(this,a);-1!=c&&(c==this.n?a.O(m):c<this.n&&this.n--);var d=a.a();d&&d.id&&this.Q&&(c=this.Q,d=d.id,d in c&&delete c[d])}c=a=Z.d.removeChild.call(this,a,b);c.e&&j!=c.wa&&Ed(c,j);c.wa=j;return a};function ce(a,b){a.a()&&f(Error("Component already rendered"));a.da=b}
u.ta=function(a,b){if(b||this.i!=a&&this.dispatchEvent(a?"show":"hide")){this.i=a;var c=this.a();c&&(Pc(c,a),this.ba()&&be(this.k(),this.p&&this.i),b||this.dispatchEvent(this.i?"aftershow":"afterhide"));return j}return m};u.isEnabled=p("p");u.J=function(a){if(this.p!=a&&this.dispatchEvent(a?"enable":"disable"))a?(this.p=j,id(this,function(a){a.Sb?delete a.Sb:a.J(j)})):(id(this,function(a){a.isEnabled()?a.J(m):a.Sb=j}),this.ca=this.p=m),this.ba()&&be(this.k(),a&&this.i)};u.ba=p("kb");
u.sa=function(a){a!=this.kb&&this.e&&he(this,a);this.kb=a;this.p&&this.i&&be(this.k(),a)};function ie(a,b){var c=U(a,b);c?c.O(j):-1<a.n&&U(a,a.n).O(m)}u.O=function(a){ie(this,ld(this,a))};function ne(a){re(a,function(a,c){return(a+1)%c},jd(a)-1)}function oe(a){re(a,function(a,c){a--;return 0>a?c-1:a},0)}function qe(a){re(a,function(a,c){return(a+1)%c},a.n)}function pe(a){re(a,function(a,c){a--;return 0>a?c-1:a},a.n)}
function re(a,b,c){for(var c=0>c?ld(a,a.h):c,d=jd(a),c=b.call(a,c,d),e=0;e<=d;){var g=U(a,c);if(g&&g.i&&g.isEnabled()&&g.s&2){ie(a,c);break}e++;c=b.call(a,c,d)}};function se(){}B(se,ae);y(se);se.prototype.L=function(a){return"UL"==a.tagName};se.prototype.Ua=function(){};function te(a){Z.call(this,ee,se.N(),a);this.sa(m);this.Ab=j}B(te,Z);te.prototype.la=function(){this.p&&(this.ca=j)};var E=new Md;E.addEventListener("change",ue);var ve=new te;ve.Y(document.getElementById("todo-list"));var we=document.getElementById("main"),xe=document.getElementById("footer"),ye=new W(k,Xd.N());hd(ye,xe);var ze=new W(k,Wd.N());hd(ze,xe);O(ze,"action",function(){Da(function(a){a.ia&&E.remove(a)})});var Ae=document.getElementById("toggle-all");O(Ae,"click",function(){var a=Ae.checked;D(E.getAll(),function(b){b=new Ld(b.vb,a,b.o());Od(b)})});var Be="/",Ce="/active",De="/completed",Ee=Be,$=new kc;
O($,"navigate",function(a){switch(a.zb){case Be:case Ce:case De:a.zb!==Ee&&(Ee=a.zb,ue());break;default:a=Be,rc($)!=a&&($.ha?(qc($,a,j),oc||G&&sc($,a,j,i),$.p&&$.Cb()):(sc($,a,j),$.pa=$.na=$.ya.value=a,$.dispatchEvent(new jc(a))))}});
function ue(){ve.Mb(j);var a=E.getAll();D(a,function(a){if(!(Ee===Ce&&a.ia||Ee===De&&!a.ia)){var b=new Y;b.T(a.vb);Gd(b,a.ia);b.Za=a;ve.La(b,j)}});var b=Ea(a,function(a,b){return b.ia?a+1:a}),c=a.length-b;Ae.checked=0===c;ye.T(c.toString());ze.T(b.toString());ze.ta(0<b);Pc(we,0<a.length);Pc(xe,0<a.length);a=Ac("#filters a");D(a,function(a,b){a.className=Ee===Be&&0===b||Ee===Ce&&1===b||Ee===De&&2===b?"selected":""})}O(ve,"edit",function(a){a=a.target;a=new Ld(a.C,!!(a.f&16),a.Za.o());Od(a)});
O(ve,"destroy",function(a){a=a.target.Za;a!==k&&E.remove(a)});var Fe=document.getElementById("new-todo");O(Fe,"keyup",function(a){13===a.keyCode&&(a=sa(Fe.value),""!==a&&(Fe.value="",Od(new Ld(a))))});E.load();$.J(j);})();
